/* ============================================
   ELIGIBILITY & DOCUMENTS PAGE — PREMIUM STYLES
   Cambridge Model Sr. Sec. School
   ============================================ */

/* ============================================
   QUICK STATS SECTION
   ============================================ */
.elig-stats-section {
    padding: 0;
    position: relative;
    z-index: 2;
    margin-top: -50px;
}

.elig-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.elig-stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(201, 162, 77, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.elig-stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(201, 162, 77, 0.3);
}

.elig-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0B3D2E, #155d47);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: #C9A24D;
    font-size: 20px;
}

.elig-stat-number {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0B3D2E;
    margin-bottom: 4px;
}

.elig-stat-label {
    font-size: 0.82rem;
    color: #6b7280;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ============================================
   SECTION HEADER SHARED
   ============================================ */
.elig-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.elig-badge {
    display: inline-block;
    background: linear-gradient(135deg, #0B3D2E, #155d47);
    color: #C9A24D;
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.elig-section-header h2 {
    font-size: 2.1rem;
    font-weight: 700;
    color: #0B3D2E;
    margin-bottom: 14px;
}

.elig-section-header p {
    color: #6b7280;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   ELIGIBILITY TABLE SECTION
   ============================================ */
.elig-criteria-section {
    padding: 80px 0;
    background: #fff;
}

.elig-table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(201, 162, 77, 0.15);
}

.elig-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.elig-table thead tr {
    background: linear-gradient(135deg, #0B3D2E, #155d47);
}

.elig-table thead th {
    padding: 18px 24px;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-align: left;
    white-space: nowrap;
}

.elig-table thead th i {
    color: #C9A24D;
    margin-right: 8px;
}

.elig-table tbody tr {
    border-bottom: 1px solid #f0ebe3;
    transition: background 0.3s ease;
}

.elig-table tbody tr:last-child {
    border-bottom: none;
}

.elig-table tbody tr:nth-child(even) {
    background: #FFF8EE;
}

.elig-table tbody tr:hover {
    background: #FFF0DB;
}

.elig-table tbody td {
    padding: 16px 24px;
    color: #374151;
    vertical-align: middle;
}

.elig-class-tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

.elig-tag-primary {
    background: rgba(11, 61, 46, 0.08);
    color: #0B3D2E;
}

.elig-tag-secondary {
    background: rgba(21, 93, 71, 0.1);
    color: #155d47;
}

.elig-tag-accent {
    background: rgba(201, 162, 77, 0.12);
    color: #8B6914;
}

.elig-tag-gold {
    background: linear-gradient(135deg, #C9A24D, #D4AF61);
    color: #fff;
}

.elig-age-note {
    color: #9ca3af;
    font-size: 0.82rem;
    font-style: italic;
}

/* ============================================
   DOCUMENTS SECTION
   ============================================ */
.elig-docs-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #FFF8EE, #FFF0DB);
}

.elig-docs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.elig-doc-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(201, 162, 77, 0.1);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.elig-doc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
    border-color: rgba(201, 162, 77, 0.25);
}

.elig-doc-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0B3D2E, #155d47);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C9A24D;
    font-size: 18px;
}

.elig-doc-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0B3D2E;
    margin-bottom: 3px;
}

.elig-doc-content p {
    font-size: 0.83rem;
    color: #6b7280;
    line-height: 1.5;
}

.elig-doc-check {
    margin-left: auto;
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    background: rgba(11, 61, 46, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0B3D2E;
    font-size: 12px;
    transition: all 0.3s ease;
}

.elig-doc-card:hover .elig-doc-check {
    background: #0B3D2E;
    color: #C9A24D;
}

/* ============================================
   DOWNLOADS SECTION
   ============================================ */
.elig-downloads-section {
    padding: 80px 0;
    background: #fff;
}

.elig-download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.elig-download-card {
    background: #fff;
    border-radius: 18px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(201, 162, 77, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.elig-download-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.1);
    border-color: rgba(201, 162, 77, 0.3);
}

.elig-download-icon-wrap {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: linear-gradient(135deg, #FFF8EE, #FFF0DB);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 26px;
    color: #C9A24D;
    transition: all 0.35s ease;
}

.elig-download-card:hover .elig-download-icon-wrap {
    background: linear-gradient(135deg, #0B3D2E, #155d47);
}

.elig-download-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0B3D2E;
    margin-bottom: 10px;
}

.elig-download-card p {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.65;
    margin-bottom: 20px;
}

.elig-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0B3D2E, #155d47);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.elig-download-btn:hover {
    background: linear-gradient(135deg, #155d47, #1a7a5e);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(11, 61, 46, 0.25);
}

/* ============================================
   IMPORTANT NOTES SECTION
   ============================================ */
.elig-notes-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #FFF8EE, #FFF0DB);
}

.elig-notes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.elig-note-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 3px 18px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(201, 162, 77, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.elig-note-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #C9A24D, #0B3D2E);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.elig-note-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.elig-note-card:hover::before {
    opacity: 1;
}

.elig-note-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #FFF8EE, #FFF0DB);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C9A24D;
    font-size: 20px;
    margin-bottom: 16px;
    transition: all 0.35s ease;
}

.elig-note-card:hover .elig-note-icon {
    background: linear-gradient(135deg, #0B3D2E, #155d47);
}

.elig-note-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0B3D2E;
    margin-bottom: 10px;
}

.elig-note-card p {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.7;
}

/* ============================================
   CTA SECTION
   ============================================ */
.elig-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0B3D2E 0%, #155d47 50%, #0B3D2E 100%);
    position: relative;
    overflow: hidden;
}

.elig-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(201, 162, 77, 0.06);
}

.elig-cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(201, 162, 77, 0.04);
}

.elig-cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.elig-cta-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.elig-cta-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.elig-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.elig-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    background: linear-gradient(135deg, #C9A24D, #D4AF61);
    color: #0B3D2E;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.35s ease;
    box-shadow: 0 4px 16px rgba(201, 162, 77, 0.3);
}

.elig-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 162, 77, 0.45);
}

.elig-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    background: transparent;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.35);
    transition: all 0.35s ease;
}

.elig-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .elig-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .elig-stats-section {
        margin-top: -20px;
    }

    .elig-docs-grid {
        grid-template-columns: 1fr;
    }

    .elig-download-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .elig-notes-grid {
        grid-template-columns: 1fr;
    }

    .elig-section-header h2 {
        font-size: 1.7rem;
    }

    .elig-cta-content h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 768px) {
    /* --- Table to Card Layout --- */
    .elig-table-wrapper {
        overflow-x: visible;
        box-shadow: none;
        border: none;
        border-radius: 0;
    }

    .elig-table,
    .elig-table thead,
    .elig-table tbody,
    .elig-table th,
    .elig-table td,
    .elig-table tr {
        display: block;
    }

    .elig-table thead {
        display: none;
    }

    .elig-table tbody tr {
        background: #fff;
        border-radius: 14px;
        margin-bottom: 14px;
        padding: 18px 20px;
        box-shadow: 0 3px 16px rgba(0, 0, 0, 0.06);
        border: 1px solid rgba(201, 162, 77, 0.12);
        border-bottom: 1px solid rgba(201, 162, 77, 0.12);
    }

    .elig-table tbody tr:nth-child(even) {
        background: #fff;
    }

    .elig-table tbody tr:hover {
        background: #fff;
    }

    .elig-table tbody td {
        padding: 6px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #f5f0e8;
        font-size: 0.88rem;
    }

    .elig-table tbody td:last-child {
        border-bottom: none;
    }

    .elig-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #0B3D2E;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        min-width: 110px;
        flex-shrink: 0;
    }

    .elig-table tbody td:first-child {
        border-bottom: 1px solid #f5f0e8;
        padding-bottom: 10px;
        margin-bottom: 4px;
    }

    .elig-class-tag {
        font-size: 0.82rem;
        padding: 4px 12px;
    }

    /* --- Documents grid single column --- */
    .elig-docs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .elig-stats-section {
        margin-top: 0;
    }

    .elig-stats-section {
        margin-top: 0;
    }

    .elig-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .elig-stat-card {
        padding: 18px 10px;
    }

    .elig-stat-icon {
        width: 42px;
        height: 42px;
        font-size: 16px;
        margin-bottom: 10px;
    }

    .elig-stat-number {
        font-size: 1rem;
    }

    .elig-stat-label {
        font-size: 0.7rem;
    }

    .elig-criteria-section,
    .elig-docs-section,
    .elig-downloads-section,
    .elig-notes-section,
    .elig-cta-section {
        padding: 50px 0;
    }

    .elig-section-header {
        margin-bottom: 32px;
    }

    .elig-section-header h2 {
        font-size: 1.35rem;
    }

    .elig-section-header p {
        font-size: 0.9rem;
    }

    .elig-table tbody tr {
        padding: 14px 16px;
    }

    .elig-table tbody td {
        font-size: 0.83rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .elig-table tbody td::before {
        font-size: 0.72rem;
    }

    .elig-doc-card {
        padding: 14px 16px;
        gap: 12px;
    }

    .elig-doc-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 15px;
    }

    .elig-doc-content h4 {
        font-size: 0.88rem;
    }

    .elig-doc-content p {
        font-size: 0.78rem;
    }

    .elig-doc-check {
        width: 26px;
        height: 26px;
        min-width: 26px;
        font-size: 10px;
    }

    .elig-download-card {
        padding: 28px 22px;
    }

    .elig-note-card {
        padding: 24px 20px;
    }

    .elig-note-icon {
        width: 40px;
        height: 40px;
        font-size: 17px;
        margin-bottom: 12px;
    }

    .elig-cta-content h2 {
        font-size: 1.35rem;
    }

    .elig-cta-content p {
        font-size: 0.92rem;
    }

    .elig-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .elig-btn-primary,
    .elig-btn-secondary {
        width: 100%;
        justify-content: center;
        max-width: 280px;
    }
}
