/* SPIE Student Chapter – CSIR-CSIO | White / Red / Black academic theme */

:root {
    --white: #ffffff;
    --black: #111111;
    --red: #c8102e;
    --red-dark: #9a0c23;
    --red-bright: #e8435b;
    --ink: #1a1a1a;
    --line: #e3e3e3;
}

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    background-color: var(--white);
    color: var(--ink);
}

.site-header {
    background-color: var(--black);
    color: var(--white);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header .logo {
    display: block;
    width: 150px;
    height: auto;
    background: var(--white);
    padding: 8px;
    border-radius: 3px;
}

.site-header h1 {
    margin: 0;
    font-size: 1.3rem;
}

.main-nav a[aria-current="page"] {
    text-decoration: underline;
    text-decoration-color: var(--red-bright);
    text-decoration-thickness: 3px;
    text-underline-offset: 7px;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
}

.main-nav a:hover {
    text-decoration: underline;
}

.section {
    padding: 40px 20px;
    max-width: 800px;
    margin: auto;
}

.section h2 {
    color: var(--black);
    border-bottom: 3px solid var(--red);
    padding-bottom: 5px;
}

.home-hero {
    padding: clamp(56px, 9vw, 112px) max(24px, calc((100% - 1120px) / 2));
    color: var(--black);
    background: var(--white);
    border-bottom: 4px solid var(--red);
}

.home-hero .eyebrow {
    color: var(--red);
}

.home-hero h2 {
    max-width: 800px;
    margin: 10px 0 18px;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.08;
}

.home-hero > p:not(.eyebrow) {
    max-width: 700px;
    font-size: 1.12rem;
    line-height: 1.7;
}

.button-link {
    display: inline-block;
    margin-top: 14px;
    padding: 12px 20px;
    border-radius: 4px;
    background: var(--red);
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
}

.button-link:hover {
    background: var(--red-dark);
}

.button-link:focus-visible {
    outline: 3px solid var(--red-bright);
    outline-offset: 2px;
}

.home-overview,
.page-intro,
.chapter-about {
    max-width: 1120px;
}

.page-intro .lead {
    max-width: 850px;
    color: var(--ink);
    font-size: 1.25rem;
    line-height: 1.6;
}

.chapter-about {
    line-height: 1.75;
}

.chapter-about ul {
    padding-left: 24px;
}

.chapter-about li {
    margin: 8px 0;
}

.event-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 30px;
}

.event-card,
.placeholder-panel {
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 4px solid var(--red);
    border-radius: 6px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.06);
}

.event-card h3,
.placeholder-panel h3 {
    color: var(--black);
}

.event-label {
    color: var(--red);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.event-card p,
.placeholder-panel p {
    line-height: 1.65;
}

.placeholder-panel {
    margin-top: 28px;
    max-width: 760px;
}

.home-overview > p {
    max-width: 900px;
    line-height: 1.75;
}

.affiliations {
    padding: 34px 20px;
    background: var(--white);
    border-top: 1px solid var(--line);
}

.affiliations-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.affiliations-inner > div:first-child {
    max-width: 540px;
}

.affiliations h2 {
    margin: 8px 0;
    color: var(--black);
}

.affiliations p:not(.eyebrow) {
    line-height: 1.6;
}

.partner-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex: 0 1 430px;
    padding: 18px 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.partner-logos img {
    display: block;
    width: auto;
    max-width: 175px;
    max-height: 92px;
    object-fit: contain;
}

.partner-logos img:last-child {
    max-height: 100px;
}


.spie-intro {
    max-width: 1120px;
    padding-top: 56px;
    padding-bottom: 56px;
}

.eyebrow {
    color: var(--red);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.spie-intro .lead {
    max-width: 850px;
    color: var(--ink);
    font-size: 1.35rem;
    line-height: 1.55;
}

.spie-intro > p:not(.eyebrow):not(.lead):not(.source-note) {
    max-width: 900px;
    line-height: 1.75;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 32px;
}

.feature-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 4px solid var(--red);
    border-radius: 8px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.06);
}

.feature-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 3;
    object-fit: cover;
}

.feature-card h3,
.feature-card p {
    margin-left: 18px;
    margin-right: 18px;
}

.feature-card h3 {
    color: var(--black);
}

.feature-card p {
    line-height: 1.6;
}

.source-note {
    margin-top: 24px;
    font-size: 0.9rem;
}

.source-note a {
    color: var(--red);
}

@media (max-width: 760px) {
    .affiliations-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .partner-logos {
        flex-basis: auto;
        flex-wrap: wrap;
    }

    .event-list {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .site-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .site-header h1 {
        font-size: 1.2rem;
    }

    .main-nav ul {
        flex-wrap: wrap;
    }
}

.site-footer {
    background-color: var(--black);
    color: var(--white);
    text-align: center;
    padding: 10px;
    font-size: 0.9em;
}
