.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    display: flex;
    align-items: center;
    z-index: 1000;
}

.logo {
    margin-right: 2rem;
}

.logo img {
    height: 40px;
    width: auto;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #007bff;
}

body {
    margin-top: 80px; /* Add space below the fixed topbar */
    padding: 0;
    font-family: Arial, sans-serif;
}
/* layout for page content */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.hero {
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
}

.hero h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
}

.lead {
    color: #444;
    max-width: 70ch;
}

.about-section {
    padding: 1.5rem 0;
}

.about-section h2 {
    margin-bottom: 0.5rem;
}

.about-section ul {
    margin: 0;
    padding-left: 1.2rem;
}

.cta {
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(90deg,#f8fafd,#ffffff);
    border: 1px solid #eef6ff;
}

.cta a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
}

@media (max-width:600px) {
    .nav-links { gap: 1rem; }
    .hero h1 { font-size: 1.5rem; }
}

/* Example item styles */
.example-item {
    text-align: center;
    padding: 1.5rem;
    /* outline/card for the whole section */
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    background: #fafafa;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    box-sizing: border-box;
}

/* container for multiple example items - aligns them side-by-side */
.example-list {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap; /* wrap on smaller screens */
}

/* allow three items side-by-side; they can shrink on smaller screens */
.example-list .example-item {
    flex: 1 1 calc(33.333% - 1rem);
    max-width: 360px; /* prevents items becoming too wide */
}

.example-logo-wrap {
    /* wrapper uses a percentage-based padding trick so height = 50% of its width
       This makes the visible area half the width (i.e., half-aspect) so the image's bottom will be cropped */
    width: 100%;
    margin: 0 auto 1rem auto;
    background: #fff; /* white card */
    padding: 0.25rem; /* padding around the visible area */
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    display: block;
    box-sizing: border-box;
    overflow: hidden; /* crop overflow */
    position: relative;
    /* create a box whose content box has height = 50% of its width
       padding-top creates the aspect space; subtract padding around it by using box-sizing */
    padding-top: 50%;
}

.example-logo-wrap > .example-logo {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: auto; /* preserve aspect ratio */
    display: block;
    /* center the image vertically within the cropped box without stretching */
    transform: translateY(-50%);
    object-position: center;
}

.example-text {
    color: #333;
    max-width: 60ch;
    margin: 0.5rem auto;
}
.go-btn {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.15s ease;
}
.go-btn:hover, .go-btn:focus {
    background-color: #0056b3;
}

@media (max-width:900px) {
    /* on medium screens stack to two columns where possible */
    .example-list .example-item { flex: 1 1 calc(50% - 1rem); }
}

@media (max-width:600px) {
    /* single column on small screens */
    .example-list .example-item { flex: 1 1 100%; max-width: 100%; }
}
