/* ==================================================
   ESMAC 2026 — Committee pages
   Loaded AFTER style.css (uses its colour / hexagon variables)
   Used by: organising-committee.html, advisory-committee.html
================================================== */

/* ---- current page in navbar (script.js does not touch this class) ---- */
.nav-links > li > a.current,
.dropdown a.current { color: var(--green); }

.nav-links > li > a.current::after { transform: scaleX(1); }

.dropdown a.current { background: var(--soft); }

/* ==================================================
   BANNER  (college photo + page title)
================================================== */

.page-top {
    padding-top: 68px;
    background: var(--white);
}

.page-banner {
    position: relative;
    height: clamp(115px, 17vw, 200px);
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, var(--blue));
    border-bottom: 5px solid transparent;
    border-image: var(--grad-brand) 1;
}

.page-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* darkens the photo so the title stays readable */
.page-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 26, 69, 0.10) 0%, rgba(13, 26, 69, 0.78) 100%);
}

.page-banner-text {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    text-align: center;
    color: #fff;
    animation: rise 0.8s cubic-bezier(.2, .7, .2, 1) both;
}

.page-banner-text h1 {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.1;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.35);
}

/* ==================================================
   SECTIONS
================================================== */

.committee-section { padding: 72px 0; }

.section-heading.center { margin-bottom: 40px; text-align: center; }
.section-heading.center .heading-line { justify-content: center; }

/* ==================================================
   PERSON CARDS  (photo + name + designation)
================================================== */

.card-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
}

.card-row.chief { max-width: 740px; margin: 0 auto; }

.person-card {
    position: relative;
    overflow: hidden;
    flex: 0 1 var(--w, 280px);
    min-width: 0;
    padding: 30px 24px 26px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.person-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: var(--grad-brand);
}

.person-card:hover {
    transform: translateY(-4px);
    border-color: rgba(31, 154, 61, 0.4);
    box-shadow: var(--shadow-md);
}

.person-card h3 {
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.25;
    color: var(--navy);
}

.person-card p {
    margin-top: 6px;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--muted);
}

/* hexagon photo: gradient ring (outer) + photo (inner) */
.hex-photo {
    display: grid;
    place-items: center;
    width: 200px;
    height: 174px;
    margin: 0 auto 20px;
    background: var(--grad-brand);
    clip-path: var(--hex);
}

.hex-inner {
    position: relative;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    overflow: hidden;
    clip-path: var(--hex);
    /* silhouette shown until the real photo is added */
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='38' r='16' fill='%23bcc6dc'/%3E%3Cpath d='M18 92c2-22 16-32 32-32s30 10 32 32z' fill='%23bcc6dc'/%3E%3C/svg%3E")
        center / 78% no-repeat,
        var(--soft);
}

.hex-inner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 118%;
    object-fit: cover;
}

/* ==================================================
   MEMBER LIST  (2 columns, hexagon bullet)
================================================== */

.member-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 30px;
}

.member-grid-gap { margin-top: 44px; }

.member {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 22px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.member::before {
    content: "";
    flex-shrink: 0;
    width: 20px; height: 20px;
    margin-top: 4px;
    background: var(--grad-blue);
    clip-path: var(--hex);
    transition: background 0.2s, transform 0.4s;
}

.member:hover {
    transform: translateY(-3px);
    border-color: rgba(31, 154, 61, 0.4);
    box-shadow: var(--shadow-md);
}

.member:hover::before { background: var(--grad-green); transform: rotate(60deg); }

.member h3 {
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.3;
    color: var(--navy);
}

.member p {
    margin-top: 2px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
}

/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 900px) {
    .page-top { padding-top: 62px; }
    .committee-section { padding: 56px 0; }
    .member-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .person-card { flex-basis: 100%; }
    .hex-photo { width: 170px; height: 147px; }
    .member { padding: 14px 18px; }
}

/* ==================================================
   PUBLICATION + SPEAKERS pages
================================================== */

/* intro sentence above the journal list */
.lead-text {
    max-width: 820px;
    margin: 0 auto 40px;
    padding: 4px 0 4px 22px;
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.55;
    font-weight: 700;
    color: var(--navy);
    border-left: 5px solid transparent;
    border-image: linear-gradient(180deg, var(--blue), var(--green)) 1;
}

/* single centred column of journals */
.member-grid-single {
    grid-template-columns: 1fr;
    max-width: 760px;
    margin: 0 auto;
}

@media (max-width: 560px) {
    .lead-text { font-size: 19px; }
}