/* =====================================
   AGENTS OF CHANGE
   Version 0.6.1
   Homepage With Photograph
   ===================================== */


/* GENERAL */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 24px;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Noto Sans Bengali",
        "Hind Siliguri",
        Arial,
        sans-serif;

    background: #f6f8f3;
    color: #26362b;

    line-height: 1.7;
}

h1, h2, h3, h4 {
    line-height: 1.4;
}

p {
    font-size: 17px;
    line-height: 1.8;
}

a {
    color: inherit;
}

button {
    font-family: inherit;
}

section {
    scroll-margin-top: 24px;
}


/* LANGUAGE SWITCH */

.language-switch {
    max-width: 1160px;
    margin: 0 auto 20px;

    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;

    gap: 10px;
}

.language-switch button {
    min-height: 48px;
    padding: 12px 22px;

    border: 2px solid #226c40;
    border-radius: 30px;

    background: white;
    color: #226c40;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;
}

.language-switch button.active {
    background: #226c40;
    color: white;
}

.language-switch button:hover {
    background: #184d30;
    color: white;
}

.language-switch button:focus-visible {
    outline: 3px solid #d99c35;
    outline-offset: 3px;
}


/* DEMONSTRATION NOTICE */

.demo-notice {
    max-width: 1160px;
    margin: 0 auto 22px;

    padding: 16px 22px;

    background: #fff8e9;

    border: 1px solid #efd9a8;
    border-left: 5px solid #b47720;

    border-radius: 10px;
}

.demo-notice strong {
    display: block;

    color: #805019;
    font-size: 17px;

    margin-bottom: 5px;
}

.demo-notice p {
    margin: 0;

    color: #59472e;
    font-size: 15px;

    line-height: 1.7;
}


/* NAVIGATION */

nav {
    max-width: 1160px;
    margin: 0 auto 26px;

    padding: 12px 18px;

    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 8px;

    background: #206a40;

    border-radius: 14px;

    box-shadow: 0 6px 20px rgba(25, 70, 40, 0.12);
}

nav a {
    display: inline-flex;
    align-items: center;

    min-height: 48px;
    padding: 11px 15px;

    color: white;

    text-decoration: none;

    font-size: 15px;
    font-weight: 600;

    border-radius: 8px;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.16);
}

nav a:focus-visible {
    outline: 3px solid #ffe2a0;
    outline-offset: 2px;
}


/* MAIN SECTIONS */

main {
    max-width: 1160px;
    margin: 0 auto;
}

main section {
    margin-bottom: 26px;
    padding: 36px;

    background: white;

    border: 1px solid #e4ebe1;
    border-radius: 18px;

    box-shadow: 0 5px 24px rgba(25, 60, 35, 0.04);
}


/* =====================================
   HERO SECTION
   ===================================== */

main section.hero-section {
    display: grid;

    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(0, 0.9fr);

    gap: 38px;

    align-items: center;

    padding: 46px;

    background: linear-gradient(
        135deg,
        #ffffff,
        #f0f8ee
    );

    border: 1px solid #dce9d8;
}

.hero-content {
    min-width: 0;
}

.hero-label {
    display: inline-block;

    padding: 8px 15px;

    background: #e2efdf;
    color: #226c40;

    border-radius: 30px;

    font-size: 14px;
    font-weight: 700;

    margin: 0 0 22px;
}

.hero-content h1 {
    margin: 0 0 12px;

    color: #195c36;

    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;

    line-height: 1.3;
}

.hero-subtitle {
    margin: 0 0 20px;

    color: #64796a;

    font-size: 23px;
    font-weight: 500;
}

.hero-description {
    max-width: 580px;
    margin: 0 0 20px;

    color: #43574a;

    font-size: 19px;
    line-height: 1.9;
}

.hero-location {
    display: inline-block;

    margin: 0 0 24px;
    padding: 9px 14px;

    color: #425f48;
    background: #eaf2e5;

    border-radius: 9px;

    font-size: 15px;
}


/* HERO BUTTONS */

.hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;
}

.primary-button,
.secondary-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 50px;
    padding: 13px 22px;

    border-radius: 9px;

    font-size: 16px;
    font-weight: 700;

    text-align: center;
    text-decoration: none;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.primary-button {
    background: #206a40;
    color: white;
}

.primary-button:hover {
    background: #164d2e;
    transform: translateY(-2px);
}

.secondary-button {
    background: white;
    color: #206a40;

    border: 2px solid #206a40;
}

.secondary-button:hover {
    background: #e5f1e3;
}

.primary-button:focus-visible,
.secondary-button:focus-visible {
    outline: 3px solid #d99c35;
    outline-offset: 3px;
}


/* =====================================
   HOMEPAGE PHOTOGRAPH
   ===================================== */

.hero-photo {
    margin: 0;
    min-width: 0;
}

.hero-photo img {
    display: block;

    width: 100%;
    height: 460px;

    object-fit: cover;
    object-position: center center;

    border-radius: 16px;

    box-shadow:
        0 15px 35px rgba(30, 60, 40, 0.16);
}

.hero-photo figcaption {
    margin-top: 11px;
    padding: 0 4px;

    color: #68776b;

    font-size: 13px;
    line-height: 1.6;
}


/* =====================================
   LEARNING AREAS PANEL
   ===================================== */

main section.focus-section {
    padding: 0;

    background: transparent;

    border: none;
    box-shadow: none;
}

.hero-visual {
    padding: 30px;

    background: linear-gradient(
        145deg,
        #206a40,
        #164c31
    );

    border-radius: 18px;

    color: white;
}

.hero-visual-heading {
    margin: 0 0 24px;

    color: white;

    text-align: center;

    font-size: 24px;
    font-weight: 700;
}

.hero-visual-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 16px;
}

.hero-visual-card {
    display: flex;
    align-items: center;

    gap: 16px;

    padding: 20px;

    background: rgba(255, 255, 255, 0.12);

    border: 1px solid rgba(255, 255, 255, 0.18);

    border-radius: 12px;
}

.hero-visual-card span {
    font-size: 38px;
    line-height: 1.2;

    flex-shrink: 0;
}

.hero-visual-card p {
    margin: 0;

    font-size: 17px;
    font-weight: 600;

    color: white;
}


/* =====================================
   EDUCATIONAL SECTIONS
   ===================================== */

.section-label {
    display: inline-block;

    margin: 0 0 12px;
    padding: 6px 13px;

    background: #e9f3e7;
    color: #29663c;

    border-radius: 20px;

    font-size: 13px;
    font-weight: 700;
}

.learning-section h2 {
    margin: 0 0 10px;

    color: #206a40;

    font-size: 29px;
}

.section-description {
    max-width: 750px;

    color: #647168;

    font-size: 18px;

    margin-bottom: 10px;
}


/* EDUCATIONAL CARD GRIDS */

#health-topics-bn,
#health-topics-en,
#hygiene-topics-bn,
#hygiene-topics-en,
#elderly-topics-bn,
#elderly-topics-en {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;

    margin-top: 25px;

    align-items: start;
}


/* EDUCATIONAL CARDS */

.health-topic-card {
    min-width: 0;
    padding: 25px;

    background: #f8fbf7;

    border: 1px solid #dde9dc;
    border-left: 5px solid #2d8550;

    border-radius: 13px;

    transition:
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.health-topic-card h3 {
    color: #206a40;

    font-size: 21px;

    margin: 0 0 10px;
}

.health-topic-card p {
    margin: 0;

    font-size: 17px;

    color: #55645a;

    line-height: 1.8;
}

.health-topic-icon {
    font-size: 48px;
    line-height: 1.3;

    margin-bottom: 14px;
}


/* EXPANDABLE CARDS */

details.health-topic-card {
    cursor: default;
}

details.health-topic-card summary {
    cursor: pointer;

    list-style: none;

    border-radius: 8px;
}

details.health-topic-card summary::-webkit-details-marker {
    display: none;
}

details.health-topic-card summary:focus-visible {
    outline: 3px solid #206a40;
    outline-offset: 5px;
}

details.health-topic-card[open] {
    background: white;

    border-left-color: #14552e;

    box-shadow:
        0 8px 25px rgba(20, 80, 40, 0.09);
}

.topic-expand-hint {
    margin-top: 16px !important;

    color: #206a40 !important;

    font-size: 16px !important;
    font-weight: 700;
}


/* DETAILED EDUCATIONAL CONTENT */

.topic-details {
    margin-top: 20px;
    padding-top: 18px;

    border-top: 2px solid #e1eee1;
}

.topic-details h4 {
    color: #206a40;

    font-size: 20px;

    margin: 24px 0 12px;
}

.topic-details p {
    font-size: 17px;
    line-height: 1.9;

    margin-bottom: 15px;
}

.topic-details ul,
.topic-details ol {
    margin: 12px 0 20px;
    padding-left: 28px;
}

.topic-details li {
    font-size: 17px;
    line-height: 1.9;

    margin-bottom: 13px;
    padding-left: 5px;
}


/* FIND HELP */

.coming-soon-section {
    background: #fdfbf5;
}

.coming-soon-section h2 {
    color: #206a40;
    font-size: 27px;
}

.coming-soon-label {
    display: inline-block;

    margin-top: 10px;
    padding: 9px 16px;

    background: #f8ecd1;
    color: #78521d;

    border-radius: 7px;

    font-weight: 700;
}


/* ABOUT */

.about-section {
    background: #f0f6ed;
}

.about-section h2 {
    color: #206a40;
    font-size: 28px;
}

.about-section p {
    max-width: 850px;
    color: #495d50;
}


/* =====================================
   TABLET
   ===================================== */

@media (max-width: 900px) {

    main section.hero-section {
        grid-template-columns: 1fr;
        padding: 35px;
    }

    .hero-photo img {
        height: 440px;
        object-position: center 45%;
    }

    #health-topics-bn,
    #health-topics-en,
    #hygiene-topics-bn,
    #hygiene-topics-en,
    #elderly-topics-bn,
    #elderly-topics-en {
        grid-template-columns: 1fr;
    }

    .hero-visual-grid {
        grid-template-columns: 1fr;
    }
}


/* =====================================
   MOBILE
   ===================================== */

@media (max-width: 600px) {

    body {
        padding: 12px;
    }

    .language-switch {
        justify-content: center;
        margin-bottom: 15px;
    }

    nav {
        padding: 10px;
        gap: 5px;
    }

    nav a {
        font-size: 14px;
        padding: 10px 12px;

        min-height: 44px;
    }

    main section {
        padding: 22px;
        margin-bottom: 17px;
    }

    main section.hero-section {
        padding: 27px 22px;
        gap: 25px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-description {
        font-size: 17px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .hero-photo img {
        height: 340px;
        object-position: center 45%;
    }

    .hero-photo figcaption {
        font-size: 12px;
    }

    .hero-visual {
        padding: 20px;
    }

    .hero-visual-heading {
        font-size: 21px;
    }

    .hero-visual-card {
        padding: 14px;
    }

    .hero-visual-card span {
        font-size: 32px;
    }

    .hero-visual-card p {
        font-size: 15px;
    }

    .learning-section h2 {
        font-size: 24px;
    }

    .health-topic-card {
        padding: 20px;
    }

    .health-topic-icon {
        font-size: 50px;
    }

    .topic-details li {
        font-size: 17px;
        margin-bottom: 15px;
    }

    .demo-notice {
        padding: 14px 16px;
    }

    .demo-notice p {
        font-size: 14px;
    }
}


/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}