/* ---------- FONT FACE (Estedad - TTF local) ---------- */
@font-face {
    font-family: 'Estedad';
    src: url('fonts/Estedad-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Estedad';
    src: url('fonts/Estedad-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Estedad';
    src: url('fonts/Estedad-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Estedad';
    src: url('fonts/Estedad-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ---------- RESET & BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Estedad', sans-serif;
    background-color: #f9fafc;
    color: #1e293b;
    line-height: 1.6;
    font-weight: 400;
    padding: 0 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.3;
    color: #0f172a;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #1e293b;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

p {
    margin-bottom: 1.25rem;
    color: #334155;
    font-weight: 400;
    text-align: justify;
}

/* ---------- HEADER ---------- */
.site-header {
    padding: 2rem 0 1.5rem;
    border-bottom: 1px solid #e9eef3;
    margin-bottom: 2.5rem;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.site-title {
    font-size: 2rem;
    font-weight: 800;
    color: #014b22;
    letter-spacing: -0.01em;
    line-height: 1.3;
    background: linear-gradient(145deg, #0b2b4a 0%, #2c3e5e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge-year {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #eef2f6;
    color: #1e3a5f;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

/* ---------- ACTION BUTTONS (یک سطر در دسکتاپ) ---------- */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.3rem;
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
    cursor: pointer;
    white-space: nowrap;
}

.btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    flex-shrink: 0;
}

.btn:hover {
    transform: translateY(-1px);
}

/* دکمه سایت خبری - رنگ خنثی */
.btn-news {
    background: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
}

.btn-news:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

/* دکمه پسرانه - آبی پاستلی هماهنگ با سکشن پسرانه */
.btn-boys {
    background: #eef7ff;
    color: #1a4b7a;
    border-color: #d4e6f7;
}

.btn-boys:hover {
    background: #dcecfb;
    border-color: #b8d0e7;
}

/* دکمه دخترانه - صورتی پاستلی هماهنگ با سکشن دخترانه */
.btn-girls {
    background: #fef0f5;
    color: #a13c5e;
    border-color: #fadbe6;
}

.btn-girls:hover {
    background: #fbe0ea;
    border-color: #f0b8ce;
}

/* ---------- CARDS & SECTIONS ---------- */
.section {
    margin-bottom: 3rem;
}

.intro-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 1.8rem 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02), 0 1px 4px rgba(0, 0, 0, 0.03);
    border: 1px solid #eef2f6;
    margin-bottom: 2rem;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-around;
    margin: 2rem 0 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    padding: 1.2rem 1.8rem;
    border-radius: 20px;
    border: 1px solid #e9eef3;
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
    transition: all 0.15s ease;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #007a25;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    color: #4b5b6e;
    font-weight: 400;
}

/* ---------- SCHOOL CARDS ---------- */
.schools-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 2.5rem 0 1.5rem;
}

.schools-section-title svg {
    width: 32px;
    height: 32px;
    stroke: #2c5f8a;
    stroke-width: 1.8;
    fill: none;
}

.gender-group {
    margin-bottom: 3rem;
    border-radius: 28px;
    padding: 1.8rem 1.8rem 2rem;
    transition: background 0.2s;
    scroll-margin-top: 1.5rem;
}

.gender-group.girls {
    background: #fef0f5;
    border: 1px solid #fadbe6;
}

.gender-group.boys {
    background: #eef7ff;
    border: 1px solid #d4e6f7;
}

.gender-header {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0b2b4a;
    margin-bottom: 1.8rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px dashed rgba(44, 95, 138, 0.2);
}

.gender-group.girls .gender-header {
    border-bottom-color: rgba(190, 80, 120, 0.2);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.school-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 1.6rem 1.5rem 1.5rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03), 0 2px 8px rgba(0, 0, 0, 0.02);
    border: 1px solid #e9eef3;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
}

.school-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.03);
    border-color: #b8d0e7;
}

.gender-group.girls .school-card:hover {
    border-color: #f0b8ce;
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 0.75rem;
}

.card-icon svg {
    width: 24px;
    height: 24px;
    stroke: #3b6e9f;
    stroke-width: 1.6;
    fill: none;
}

.gender-group.girls .card-icon svg {
    stroke: #b84a6e;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f2b44;
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.card-address {
    font-size: 0.9rem;
    color: #4a5a6e;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.card-address svg {
    width: 18px;
    height: 18px;
    stroke: #7b8fa3;
    stroke-width: 1.8;
    fill: none;
    flex-shrink: 0;
    margin-top: 3px;
}

.card-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c5f8a;
    direction: ltr;
    background: #eef4fa;
    padding: 0.25rem 0.9rem;
    border-radius: 40px;
    border: 1px solid #d4e2f0;
    align-self: flex-start;
    margin-top: 0.25rem;
    margin-bottom: 0.75rem;
}

.gender-group.girls .card-phone {
    color: #a13c5e;
    background: #fce9f0;
    border-color: #f5d0de;
}

.card-phone svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
}

.card-link-hint {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #5e7d9c;
    font-weight: 500;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px dashed #e2e8f0;
}

.gender-group.girls .card-link-hint {
    color: #a13c5e;
    border-top-color: #f5d0de;
}

.card-link-hint svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
}

/* ---------- FOOTER ---------- */
.site-footer {
    margin-top: 3rem;
    padding: 1.5rem 0 2rem;
    border-top: 1px solid #e9eef3;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 700px) {
    body {
        padding: 0 0.75rem;
    }

    h1 {
        font-size: 1.6rem;
    }

    .site-title {
        font-size: 1.4rem;
    }

    .badge-year {
        font-size: 0.8rem;
    }

    .logo-img {
        height: 55px;
    }

    .intro-card {
        padding: 1.25rem 1.25rem;
    }

    .action-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
    }

    .btn {
        justify-content: center;
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .gender-group {
        padding: 1.2rem 1rem 1.5rem;
    }

    .gender-header {
        font-size: 1.3rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .school-card {
        padding: 1.3rem 1.2rem;
    }

    .stat-item {
        padding: 0.8rem 1rem;
        min-width: 80px;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .stats-grid {
        gap: 0.8rem;
    }

    .card-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 420px) {
    .school-card {
        padding: 1.1rem 1rem;
    }

    .card-address {
        font-size: 0.82rem;
    }

    .card-phone {
        font-size: 0.8rem;
        padding: 0.2rem 0.7rem;
    }

    .logo-container {
        flex-direction: column;
        gap: 0.3rem;
    }

    .logo-img {
        height: 50px;
    }
}