/* =========================================
   ADMISSIONS PAGE – Modern Premium Design
   ========================================= */

/* --- Hero: "School Culture" editorial slider --- */
.adm-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 55% 70% at 100% 0%, rgba(212, 175, 55, 0.10) 0%, transparent 70%),
        linear-gradient(180deg, #fbf8f1 0%, #f6f1e6 100%);
    padding: 80px 0 90px;
}

/* Navy block anchoring the image composition on the right */
.adm-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 34%;
    background: #0a1f44;
}

.adm-hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 34%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23d4af37' stroke-opacity='0.14' stroke-width='1'%3E%3Crect x='18' y='18' width='20' height='20'/%3E%3Crect x='18' y='18' width='20' height='20' transform='rotate(45 28 28)'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 56px 56px;
}

.adm-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr);
    gap: 60px;
    align-items: center;
}

/* Copy */
.adm-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #9a7a1c;
    margin-bottom: 22px;
}

.adm-hero-eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d4af37;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
}

.adm-hero-title {
    font-size: clamp(2.3rem, 3.6vw, 3.4rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.5px;
    color: #0a1f44;
    margin-bottom: 0;
}

.adm-hero-kicker {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 14px;
}

.adm-hero-rule {
    display: block;
    width: 64px;
    height: 3px;
    margin: 26px 0 24px;
    border-radius: 2px;
    background: #d4af37;
}

.adm-hero-text {
    max-width: 46ch;
    font-size: 1.08rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 34px;
}

.adm-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
}

.adm-hero-call {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: #0a1f44;
    line-height: 1.25;
}

.adm-hero-call small {
    display: block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #718096;
}

.adm-hero-call-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(10, 31, 68, 0.18);
    color: #0a1f44;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.adm-hero-call-icon svg {
    width: 18px;
    height: 18px;
}

.adm-hero-call:hover {
    color: #0a1f44;
}

.adm-hero-call:hover .adm-hero-call-icon {
    background: #0a1f44;
    border-color: #0a1f44;
    color: #d4af37;
}

/* Slider */
.adm-slider {
    position: relative;
}

.adm-slider-frame {
    position: relative;
}

/* Offset gold outline behind the photo */
.adm-slider-accent {
    position: absolute;
    top: -18px;
    left: -18px;
    width: 62%;
    height: 72%;
    border: 1px solid #d4af37;
    border-radius: 6px;
    pointer-events: none;
}

.adm-slider-stage {
    position: relative;
    aspect-ratio: 1.625;
    overflow: hidden;
    border-radius: 6px;
    background: #0a1f44;
    box-shadow: 0 30px 60px -28px rgba(10, 31, 68, 0.55), 0 2px 6px rgba(10, 31, 68, 0.12);
}

.adm-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s var(--easing-premium), visibility 1s;
}

.adm-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.adm-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.035);
    transition: transform 6s ease-out;
}

.adm-slide.is-active img {
    transform: scale(1);
}

/* Counter badge overlapping the photo's lower-left corner */
.adm-slider-badge {
    position: absolute;
    left: 28px;
    bottom: -26px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 22px;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 16px 34px -18px rgba(10, 31, 68, 0.45);
}

.adm-slider-count {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #a0aec0;
}

.adm-slider-count b {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0a1f44;
}

.adm-slider-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #9a7a1c;
}

/* Thumbnail strip — hidden (slider auto-rotates on its own) */
.adm-slider-thumbs {
    display: none !important;
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 22px;
}

.adm-thumb {
    position: relative;
    width: 116px;
    aspect-ratio: 1.625;
    padding: 0;
    border: 0;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    background: #0a1f44;
    opacity: 0.55;
    transition: opacity 0.35s ease, transform 0.35s var(--easing-premium);
}

.adm-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.adm-thumb:hover,
.adm-thumb:focus-visible {
    opacity: 0.9;
}

.adm-thumb:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 3px;
}

.adm-thumb.is-active {
    opacity: 1;
    transform: translateY(-3px);
}

.adm-thumb-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.35);
}

.adm-thumb-progress::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #d4af37;
    transform: scaleX(0);
    transform-origin: left;
}

.adm-thumb.is-active .adm-thumb-progress::after {
    animation: admProgress var(--adm-interval, 5000ms) linear forwards;
}

.adm-slider.is-paused .adm-thumb.is-active .adm-thumb-progress::after {
    animation-play-state: paused;
}

@keyframes admProgress {
    to {
        transform: scaleX(1);
    }
}

/* Hero — tablet */
@media (max-width: 1024px) {
    .adm-hero {
        padding: 64px 0 72px;
    }

    .adm-hero::before,
    .adm-hero::after {
        top: auto;
        width: 100%;
        height: 42%;
    }

    .adm-hero-inner {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 0 32px;
        max-width: 760px;
    }

    .adm-hero-text {
        max-width: 60ch;
    }

    .adm-slider-badge {
        bottom: -20px;
        padding: 10px 18px;
    }

    .adm-slider-thumbs {
        justify-content: flex-start;
        margin-top: 40px;
    }
}

/* Hero — mobile */
@media (max-width: 640px) {
    .adm-hero {
        padding: 44px 0 52px;
    }

    .adm-hero::before,
    .adm-hero::after {
        height: 36%;
    }

    .adm-hero-inner {
        gap: 40px;
        padding: 0 20px;
    }

    .adm-hero-eyebrow {
        font-size: 0.7rem;
        letter-spacing: 1.5px;
        margin-bottom: 16px;
    }

    .adm-hero-kicker {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }

    .adm-hero-title {
        font-size: 2.05rem;
    }

    .adm-hero-rule {
        margin: 20px 0 18px;
    }

    .adm-hero-text {
        font-size: 1rem;
        margin-bottom: 26px;
    }

    .adm-hero-actions .btn {
        width: 100%;
    }

    .adm-slider-accent {
        display: none;
    }

    /* Thumbnails already show which photo is active on phones */
    .adm-slider-badge {
        display: none;
    }

    .adm-slider-thumbs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-top: 14px;
    }

    .adm-thumb {
        width: 100%;
    }
}

/* --- Admission Intro --- */
.admissions-intro-text {
    background: #f8fafc;
    padding: 40px 0;
    text-align: center;
}

.admissions-intro-text .container p {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.8;
}

/* --- Admission Overview (Split Layout) --- */
.admissions-overview {
    padding: 100px 0;
}

.overview-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.overview-text h2 {
    font-size: 2.2rem;
    color: #0a1f44;
    margin-bottom: 25px;
}

.overview-text p {
    font-size: 1.05rem;
    color: #4a5568;
    margin-bottom: 20px;
    line-height: 1.8;
}

.overview-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(10, 31, 68, 0.1);
}

/* --- Admission Process (Timeline) --- */
.admissions-process {
    background: #ffffff;
    padding: 100px 0;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 60px;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #eaeef3;
    z-index: 1;
}

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.step-number {
    width: 70px;
    height: 70px;
    background: #ffffff;
    border: 3px solid #d4af37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0a1f44;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.step-item:hover .step-number {
    transform: scale(1.1);
    background: #d4af37;
    color: #ffffff;
}

.step-content h3 {
    font-size: 1.15rem;
    color: #0a1f44;
    margin-bottom: 12px;
}

.step-content p {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.6;
}

/* --- Required Documents (Grid) --- */
.admissions-documents {
    background: #f8fafc;
    padding: 100px 0;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.doc-card {
    background: #ffffff;
    padding: 35px 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(10, 31, 68, 0.04);
    transition: all 0.3s ease;
}

.doc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(10, 31, 68, 0.08);
}

.doc-icon {
    font-size: 2.2rem;
    margin-bottom: 20px;
    display: block;
}

.doc-card h3 {
    font-size: 1.05rem;
    color: #0a1f44;
    margin: 0;
}

/* --- Age Criteria (Table) --- */
.admissions-age {
    background: #ffffff;
    padding: 100px 0;
}

.age-table-wrapper {
    max-width: 800px;
    margin: 40px auto 0;
    border: 1px solid #eaeef3;
    border-radius: 12px;
    overflow: hidden;
}

.age-table {
    width: 100%;
    border-collapse: collapse;
}

.age-table th,
.age-table td {
    padding: 20px 30px;
    text-align: left;
    border-bottom: 1px solid #eaeef3;
}

.age-table th {
    background: #0a1f44;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.age-table tr:last-child td {
    border-bottom: none;
}

.age-table tr:nth-child(even) {
    background: #fcfcfc;
}

.age-info-box {
    text-align: center;
    margin-top: 30px;
    color: #718096;
    font-size: 0.95rem;
}

/* --- Fee Policy --- */
.admissions-fee {
    background: #f8fafc;
    padding: 100px 0;
}

.fee-policy-box {
    background: #ffffff;
    border-left: 5px solid #d4af37;
    padding: 50px;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    max-width: 1000px;
    margin: 0 auto;
}

.fee-policy-box h2 {
    color: #0a1f44;
    margin-bottom: 20px;
}

.fee-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.fee-list li {
    position: relative;
    padding-left: 25px;
    color: #4a5568;
    font-weight: 600;
}

.fee-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #d4af37;
}

/* --- CTA Section --- */
.admissions-cta {
    background: #0a1f44;
    padding: 80px 0;
    text-align: center;
    color: #ffffff;
}

.admissions-cta h2 {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.admissions-cta p {
    margin-bottom: 35px;
    opacity: 0.9;
    font-size: 1.1rem;
}

.btn-apply {
    display: inline-block;
    background: #d4af37;
    color: #0a1f44;
    padding: 18px 50px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-apply:hover {
    transform: scale(1.05);
    background: #e5c04e;
    color: #0a1f44;
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsiveness --- */
@media (max-width: 1024px) {
    .overview-split {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .process-steps::before {
        display: none;
    }

    .process-steps {
        flex-direction: column;
        gap: 40px;
    }

    .step-item {
        padding: 0;
    }
}

@media (max-width: 768px) {
    .fee-policy-box {
        padding: 30px;
    }
}

/* "Join Our Family" CTA — school building photo behind the form */
.join-family-bg {
    background-color: #27408B;
    background-image:
        linear-gradient(180deg, rgba(10, 25, 47, 0.72) 0%, rgba(20, 40, 90, 0.55) 45%, rgba(10, 25, 47, 0.78) 100%),
        url('assets/islamicfoundationschool-3.webp');
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
}
