/* Alphabet chart pages: Gojri, Kannada, Kurukh, Gujarati, Kashmiri
   (markup: partials/layouts/alphabet-chart.hbs). Tamil has its own file. */

.alphabet-chart-page {
    --ac-primary: #3a6b4a;
    --ac-primary-hover: #4a7c59;
    --ac-accent: #d4a373;
    --ac-bg: #f5f4ef;
    --ac-bg-light: #fafaf7;
    --ac-white: #ffffff;
    --ac-text-primary: #333;
    --ac-text-secondary: #666;
    --ac-text-muted: #777;
    --ac-border-light: rgba(0, 0, 0, 0.08);
    --ac-radius-lg: 16px;
    --ac-radius-md: 10px;
    --ac-radius-full: 100px;
    --ac-transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background-color: var(--ac-bg);
}

/* ── Hero Section (full-bleed image hero) ── */
.ac-hero {
    position: relative;
    height: 75vh;
    margin-top: -130px;
    min-height: 550px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 10%;
    text-align: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.ac-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.55));
    z-index: 1;
}

.ac-hero > * {
    position: relative;
    z-index: 2;
}

.ac-hero h1 {
    font-family: var(--font-heading);
    font-size: 5.5rem;
    color: var(--color-white);
    margin-bottom: 25px;
    font-weight: 400;
}

.ac-hero p {
    font-size: var(--fs-hero-intro);
    color: rgba(255, 255, 255, 0.9);
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ── Section Header ── */
.ac-section-header {
    padding: 0 10%;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
}

.ac-section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--ac-primary);
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    white-space: nowrap;
}

.ac-section-title svg {
    color: var(--ac-primary-hover);
    flex-shrink: 0;
}

.ac-section-line {
    flex: 1;
    height: 1px;
    background: var(--ac-border-light);
}

/* ── Resource Grid ── */
.ac-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    padding: 0 5% 80px;
}

.ac-grid>* {
    flex: 0 1 calc(25% - 24px);
    min-width: 280px;
}

/* ── Educator Note Section ── */
.ac-educator-note-section {
    padding: 100px 0;
    background: var(--bg-paper);
    border-top: 1px solid var(--ac-border-light);
}

.ac-educator-note-card {
    background: var(--ac-white);
    border-radius: var(--ac-radius-lg);
    padding: 60px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.03);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.ac-educator-note-card::before {
    content: "i";
    position: absolute;
    top: -20px;
    right: -20px;
    font-family: var(--font-serif);
    font-size: 15rem;
    font-weight: 800;
    color: var(--ac-primary);
    opacity: 0.03;
    pointer-events: none;
}

.ac-educator-note-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.ac-educator-icon {
    width: 54px;
    height: 54px;
    background: var(--ac-primary);
    color: var(--color-white);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.ac-educator-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    color: var(--ac-primary);
    margin: 0;
    font-weight: 800;
}

.ac-educator-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--ac-text-secondary);
}

.ac-educator-content a {
    font-weight: 700;
    color: var(--ac-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ac-educator-content a:hover {
    color: var(--ac-primary-hover);
    text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
    .ac-grid>* {
        flex: 0 1 calc(33.333% - 24px);
    }
}

@media (max-width: 992px) {
    .ac-grid>* {
        flex: 0 1 calc(50% - 24px);
    }

    .ac-educator-note-card {
        padding: 40px;
    }

    .ac-educator-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .ac-hero {
        margin-top: -85px;
        height: 100vh;
        min-height: 400px;
        padding: 90px 6% 40px;
    }

    .ac-hero h1 {
        font-size: 3.5rem;
    }

    .ac-hero p {
        font-size: var(--fs-hero-intro);
    }

    .ac-grid>* {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .ac-section-header {
        padding: 0 5%;
        flex-wrap: wrap;
    }

    .ac-section-title {
        font-size: 1.8rem;
    }

    .ac-educator-note-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .ac-educator-note-card {
        padding: 30px 24px;
    }
}

@media (max-width: 480px) {
    .ac-hero h1 {
        font-size: 2.6rem;
    }

    .ac-section-title {
        font-size: 1.5rem;
    }
}

/* ── Explore More Section ── */
.ac-explore-more {
    text-align: center;
    padding: 60px 5% 80px;
    background-color: transparent;
}

.ac-explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--ac-primary);
    color: var(--color-white) !important;
    border-radius: var(--ac-radius-full);
    text-decoration: none !important;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--ac-transition);
    box-shadow: 0 4px 15px rgba(74, 124, 89, 0.2);
}

.ac-explore-btn:hover {
    background: var(--ac-primary-hover);
    box-shadow: 0 8px 25px rgba(74, 124, 89, 0.3);
    transform: translateY(-2px);
}