/* ============================================================
   THE SANGAI EXPRESS — ABOUT PAGE
   Desktop sizing follows the original Prototype v11 About page.
   Load AFTER public.css and public-theme.css.
   ============================================================ */

#main-content .about-page,
main .about-page {
    display: block;
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    padding: 0 0 34px;
    box-sizing: border-box;
    color: var(--text-primary, #222222);
    font-family: var(--font-body, "Source Serif 4", Georgia, serif);
}

#main-content .about-page *,
main .about-page * {
    box-sizing: border-box;
}

/* Hero */
#main-content .about-page .about-hero,
main .about-page .about-hero {
    display: block;
    width: 100%;
    min-height: 0;
    margin: 0 0 32px;
    padding: 56px 40px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #222222 0%, #383838 100%);
    color: #ffffff;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.13);
}

#main-content .about-page .about-eyebrow,
main .about-page .about-eyebrow {
    display: block;
    margin: 0 0 12px;
    color: #e0aa12;
    font: 600 11px/1 Inter, Arial, sans-serif;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

#main-content .about-page .about-hero h1,
main .about-page .about-hero h1 {
    max-width: 790px;
    margin: 0 0 12px;
    padding: 0;
    color: #ffffff;
    font: 700 40px/1.15 "Playfair Display", Georgia, serif;
    letter-spacing: -0.35px;
}

#main-content .about-page .about-hero p,
main .about-page .about-hero p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font: 400 16px/1.6 "Source Serif 4", Georgia, serif;
}

/* Four statistics */
#main-content .about-page .about-stats,
main .about-page .about-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    margin: 0 0 36px;
    padding: 0;
}

#main-content .about-page .about-stat,
main .about-page .about-stat {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px 16px;
    border: 1px solid var(--border, #dddddd);
    border-radius: 8px;
    background: var(--bg-card, #ffffff);
    text-align: center;
}

#main-content .about-page .about-stat-number,
main .about-page .about-stat-number {
    margin: 0 0 6px;
    color: var(--text-primary, #222222);
    font: 700 30px/1 "Playfair Display", Georgia, serif;
}

#main-content .about-page .about-stat-label,
main .about-page .about-stat-label {
    color: var(--text-muted, #888888);
    font: 500 11px/1.4 Inter, Arial, sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Story and funding copy */
#main-content .about-page .about-body,
main .about-page .about-body {
    margin: 0;
    padding: 0;
    color: var(--text-primary, #222222);
    font: 400 17px/1.75 "Source Serif 4", Georgia, serif;
}

#main-content .about-page .about-body h2,
main .about-page .about-body h2 {
    margin: 36px 0 12px;
    padding: 0;
    color: var(--text-primary, #222222);
    font: 700 24px/1.3 "Playfair Display", Georgia, serif;
}

#main-content .about-page .about-story h2:first-child,
main .about-page .about-story h2:first-child {
    margin-top: 0;
}

#main-content .about-page .about-body p,
main .about-page .about-body p {
    margin: 0 0 16px;
    padding: 0;
    color: inherit;
}

/* Editorial principles */
#main-content .about-page .about-pillars,
main .about-page .about-pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    margin: 24px 0 32px;
    padding: 0;
}

#main-content .about-page .about-pillar,
main .about-page .about-pillar {
    display: block;
    min-width: 0;
    margin: 0;
    padding: 20px;
    border: 1px solid var(--border, #dddddd);
    border-left: 3px solid #d4a017;
    border-radius: 6px;
    background: var(--bg-card, #ffffff);
}

#main-content .about-page .about-pillar-icon,
main .about-page .about-pillar-icon {
    margin: 0 0 8px;
    color: var(--text-primary, #222222);
    font: 400 26px/1.1 Inter, Arial, sans-serif;
}

#main-content .about-page .about-pillar h3,
main .about-page .about-pillar h3 {
    margin: 0 0 6px;
    padding: 0;
    color: var(--text-primary, #222222);
    font: 700 15px/1.3 Inter, Arial, sans-serif;
}

#main-content .about-page .about-pillar p,
main .about-page .about-pillar p {
    margin: 0;
    color: var(--text-secondary, #666666);
    font: 400 13px/1.55 Inter, Arial, sans-serif;
}

/* Leadership cards */
#main-content .about-page .about-leadership,
main .about-page .about-leadership {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    margin: 16px 0 8px;
    padding: 0;
}

#main-content .about-page .about-person,
main .about-page .about-person {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
    border: 1px solid var(--border, #dddddd);
    border-radius: 8px;
    background: var(--bg-card, #ffffff);
    text-align: center;
}

#main-content .about-page .about-person-avatar,
main .about-page .about-person-avatar {
    display: flex;
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #555555, #292929);
    color: #ffffff;
    font: 700 26px/1 Inter, Arial, sans-serif;
}

#main-content .about-page .about-person h3,
main .about-page .about-person h3 {
    max-width: 100%;
    margin: 0 0 2px;
    padding: 0;
    color: var(--text-primary, #222222);
    font: 700 15px/1.3 Inter, Arial, sans-serif;
}

#main-content .about-page .about-person-role,
main .about-page .about-person-role {
    margin: 0;
    color: #b78300;
    font: 500 12px/1.3 Inter, Arial, sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

#main-content .about-page .about-related-links,
main .about-page .about-related-links {
    margin-top: 28px !important;
}

#main-content .about-page .about-related-links a,
main .about-page .about-related-links a {
    color: var(--primary, #222222);
    font-weight: 600;
    text-decoration: none;
}

#main-content .about-page .about-related-links a:hover,
main .about-page .about-related-links a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Tablet/mobile: keep the prototype's compact responsive behaviour. */
@media (max-width: 720px) {
    #main-content .about-page .about-hero,
    main .about-page .about-hero {
        padding: 36px 24px;
    }

    #main-content .about-page .about-hero h1,
    main .about-page .about-hero h1 {
        font-size: 30px;
    }

    #main-content .about-page .about-stats,
    main .about-page .about-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #main-content .about-page .about-pillars,
    #main-content .about-page .about-leadership,
    main .about-page .about-pillars,
    main .about-page .about-leadership {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    #main-content .about-page .about-hero,
    main .about-page .about-hero {
        padding: 28px 20px;
    }

    #main-content .about-page .about-hero h1,
    main .about-page .about-hero h1 {
        font-size: 25px;
    }

    #main-content .about-page .about-stat,
    main .about-page .about-stat {
        padding: 16px 10px;
    }

    #main-content .about-page .about-stat-number,
    main .about-page .about-stat-number {
        font-size: 26px;
    }

    #main-content .about-page .about-body,
    main .about-page .about-body {
        font-size: 15px;
    }

    #main-content .about-page .about-body h2,
    main .about-page .about-body h2 {
        font-size: 21px;
    }

    #main-content .about-page .about-pillar,
    main .about-page .about-pillar {
        padding: 16px;
    }
}

/* Shared site Dark Mode */
html[data-mode="dark"] #main-content .about-page,
html[data-theme="dark"] #main-content .about-page,
html[data-mode="dark"] main .about-page,
html[data-theme="dark"] main .about-page {
    color: #eeeeee;
}

html[data-mode="dark"] #main-content .about-stat,
html[data-mode="dark"] #main-content .about-pillar,
html[data-mode="dark"] #main-content .about-person,
html[data-theme="dark"] #main-content .about-stat,
html[data-theme="dark"] #main-content .about-pillar,
html[data-theme="dark"] #main-content .about-person,
html[data-mode="dark"] main .about-stat,
html[data-mode="dark"] main .about-pillar,
html[data-mode="dark"] main .about-person,
html[data-theme="dark"] main .about-stat,
html[data-theme="dark"] main .about-pillar,
html[data-theme="dark"] main .about-person {
    border-color: #3a3a3a;
    background: #222222;
}

html[data-mode="dark"] #main-content .about-body h2,
html[data-mode="dark"] #main-content .about-stat-number,
html[data-mode="dark"] #main-content .about-pillar h3,
html[data-mode="dark"] #main-content .about-person h3,
html[data-theme="dark"] #main-content .about-body h2,
html[data-theme="dark"] #main-content .about-stat-number,
html[data-theme="dark"] #main-content .about-pillar h3,
html[data-theme="dark"] #main-content .about-person h3,
html[data-mode="dark"] main .about-body h2,
html[data-mode="dark"] main .about-stat-number,
html[data-mode="dark"] main .about-pillar h3,
html[data-mode="dark"] main .about-person h3,
html[data-theme="dark"] main .about-body h2,
html[data-theme="dark"] main .about-stat-number,
html[data-theme="dark"] main .about-pillar h3,
html[data-theme="dark"] main .about-person h3 {
    color: #eeeeee;
}

html[data-mode="dark"] #main-content .about-pillar p,
html[data-mode="dark"] #main-content .about-stat-label,
html[data-theme="dark"] #main-content .about-pillar p,
html[data-theme="dark"] #main-content .about-stat-label,
html[data-mode="dark"] main .about-pillar p,
html[data-mode="dark"] main .about-stat-label,
html[data-theme="dark"] main .about-pillar p,
html[data-theme="dark"] main .about-stat-label {
    color: #aaaaaa;
}
