/* =========================================================
   ADNI ISLAMIC SCHOOL - TAQWIM & FEES
========================================================= */

:root {
    --primary: #273480;
    --primary-light: #3b4ea3;
    --secondary: #c5a253;
    --secondary-dark: #ae8b42;
    --white: #ffffff;
    --background: #f8fafc;
    --soft-grey: #f1f5f9;
    --text-dark: #273480;
    --text-body: #64748b;
    --border: #e8edf3;
    --shadow-soft: 0 15px 45px rgba(39, 52, 128, 0.08);
    --shadow-hover: 0 22px 55px rgba(39, 52, 128, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--background);
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a { text-decoration: none; }

/* NAVBAR */
.page-navbar {
    padding: 14px 0;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 25px rgba(0,0,0,.05);
}

.navbar-logo { height: 48px; width: auto; }

.page-navbar .nav-link {
    position: relative;
    margin: 0 8px;
    color: var(--primary);
    font-size: .94rem;
    font-weight: 600;
}

.page-navbar .nav-link:hover,
.page-navbar .nav-link.active { color: var(--secondary); }

.page-navbar .nav-link.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 1px;
    width: 24px;
    height: 2px;
    background: var(--secondary);
    transform: translateX(-50%);
}

.dropdown-menu {
    padding: 12px;
    border: 0;
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
}

.dropdown-item {
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text-dark);
    font-size: .9rem;
}

.dropdown-item:hover {
    background: var(--soft-grey);
    color: var(--primary);
}

/* BUTTONS */
.btn {
    border-radius: 50px;
    padding: 11px 23px;
    font-weight: 600;
    transition: all .3s ease;
}

.btn-adni-primary {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: #fff;
}

.btn-adni-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: #fff;
    transform: translateY(-2px);
}

.btn-adni-gold {
    background: var(--secondary);
    border: 1px solid var(--secondary);
    color: #fff;
}

.btn-adni-gold:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline-adni {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-adni:hover {
    background: var(--primary);
    color: #fff;
}

/* HERO */
.resource-hero {
    position: relative;
    min-height: 570px;
    display: flex;
    align-items: center;
    padding: 150px 0 100px;
    overflow: hidden;
    background: linear-gradient(135deg,#202b70 0%,#273480 50%,#35469d 100%);
}

.resource-hero-decoration {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
}

.resource-circle-1 {
    width: 450px; height: 450px;
    top: -200px; right: -100px;
}

.resource-circle-2 {
    width: 350px; height: 350px;
    bottom: -200px; left: -100px;
}

.page-kicker {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--secondary);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.resource-hero h1 {
    margin-bottom: 20px;
    color: #fff;
    font-size: clamp(3rem,6vw,5rem);
    font-weight: 800;
}

.resource-hero p {
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255,255,255,.72);
    font-size: 1.1rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 35px;
}

/* QUICK ACCESS */
.quick-access-section {
    position: relative;
    z-index: 5;
    margin-top: -65px;
}

.quick-access-card {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
    transition: all .35s ease;
}

.quick-access-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-hover);
}

.quick-icon {
    width: 65px; height: 65px; min-width: 65px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 18px;
    background: rgba(39,52,128,.08);
    color: var(--primary);
    font-size: 1.6rem;
}

.quick-content { flex: 1; }

.quick-content span,
.section-tag,
.fee-level {
    color: var(--secondary);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.quick-content h3 { margin: 3px 0 6px; font-size: 1.3rem; }
.quick-content p { margin: 0; color: var(--text-body); font-size: .88rem; line-height: 1.5; }
.quick-arrow { color: var(--primary); font-size: 1.3rem; }

/* SECTIONS */
.resource-section { padding: 110px 0; }
.resource-section .section-tag { display: inline-block; margin-bottom: 10px; letter-spacing: 2px; }
.resource-section h2 { margin-bottom: 15px; font-size: clamp(2.2rem,4vw,3.2rem); font-weight: 800; }
.resource-section .row:first-child p { margin-bottom: 50px; }

/* CURRENT TAQWIM */
.featured-document {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 35px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.featured-document-icon {
    width: 90px; height: 90px; min-width: 90px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 22px;
    background: var(--primary);
    color: #fff;
    font-size: 2rem;
}

.featured-document-content { flex: 1; }

.document-status {
    display: inline-block;
    margin-bottom: 8px;
    padding: 5px 12px;
    background: rgba(197,162,83,.12);
    border-radius: 30px;
    color: var(--secondary-dark);
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.featured-document h3 { margin-bottom: 8px; font-size: 1.45rem; }
.featured-document p { margin: 0; font-size: .9rem; }

.document-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
    color: #94a3b8;
    font-size: .8rem;
}

.document-meta i { margin-right: 5px; color: var(--secondary); }

.document-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 140px;
}

/* FEES */
.fees-section { background: #fff; }

.fee-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 25px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 22px;
    transition: all .35s ease;
}

.fee-card:hover {
    transform: translateY(-8px);
    background: #fff;
    box-shadow: var(--shadow-hover);
}

.fee-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.fee-icon {
    width: 58px; height: 58px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 16px;
    background: var(--primary);
    color: #fff;
    font-size: 1.4rem;
}

.fee-year {
    padding: 5px 11px;
    background: rgba(197,162,83,.12);
    border-radius: 30px;
    color: var(--secondary-dark);
    font-size: .65rem;
    font-weight: 700;
}

.fee-card-body { flex: 1; }
.fee-card h3 { margin: 5px 0 10px; font-size: 1.25rem; }
.fee-card p { margin: 0; color: var(--text-body); font-size: .88rem; }

.fee-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.fee-view {
    flex: 1;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    height: 43px;
    border-radius: 50px;
    background: var(--primary);
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
}

.fee-view:hover { background: var(--primary-light); color: #fff; }

.fee-download {
    width: 43px; height: 43px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--primary);
}

.fee-download:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}

.fee-notice {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
    padding: 28px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.fee-notice-icon {
    width: 55px; height: 55px; min-width: 55px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(39,52,128,.08);
    color: var(--primary);
    font-size: 1.3rem;
}

.fee-notice > div:nth-child(2) { flex: 1; }
.fee-notice h4 { margin-bottom: 5px; font-size: 1rem; }
.fee-notice p { margin: 0; font-size: .85rem; }

/* CTA */
.admission-cta-section { padding: 100px 0; background: var(--background); }

.admission-cta {
    position: relative;
    overflow: hidden;
    padding: 65px 30px;
    background: linear-gradient(135deg,#202b70,#273480);
    border-radius: 28px;
    text-align: center;
}

.admission-cta::before {
    content: "";
    position: absolute;
    width: 350px; height: 350px;
    top: -200px; right: -100px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
}

.cta-icon {
    position: relative;
    width: 70px; height: 70px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: #fff;
    font-size: 1.8rem;
}

.admission-cta > span {
    position: relative;
    color: var(--secondary);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.admission-cta h2 {
    position: relative;
    margin: 8px 0 12px;
    color: #fff;
    font-size: clamp(2rem,4vw,3rem);
}

.admission-cta p {
    position: relative;
    max-width: 650px;
    margin: 0 auto 28px;
    color: rgba(255,255,255,.7);
}

.admission-cta .btn { position: relative; }

/* FOOTER */
.resource-footer {
    padding: 60px 0 25px;
    background: #202b70;
    color: rgba(255,255,255,.65);
}

.footer-logo { height: 55px; margin-bottom: 15px; }
.resource-footer p { margin: 0; }

.footer-links {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 25px;
}

.footer-links a { color: rgba(255,255,255,.7); font-size: .88rem; }
.footer-links a:hover { color: var(--secondary); }

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.1);
    text-align: center;
    font-size: .8rem;
}

/* BACK TO TOP */
.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 999;
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all .3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover { background: var(--secondary); color: #fff; }

/* TABLET */
@media (max-width: 991.98px) {
    .page-navbar .navbar-collapse {
        margin-top: 15px;
        padding: 20px;
        background: #fff;
        border-radius: 15px;
        box-shadow: var(--shadow-soft);
    }

    .page-navbar .nav-link { margin: 3px 0; }
    .page-navbar .btn-adni-gold { margin-top: 15px; }
    .featured-document { flex-wrap: wrap; }

    .document-actions {
        width: 100%;
        flex-direction: row;
    }

    .document-actions .btn { flex: 1; }
}

/* MOBILE */
@media (max-width: 767.98px) {
    .resource-hero {
        min-height: auto;
        padding: 145px 0 120px;
    }

    .resource-hero h1 { font-size: 2.8rem; }

    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }

    .quick-access-section { margin-top: -70px; }
    .quick-access-card { padding: 22px; }

    .resource-section { padding: 80px 0; }

    .featured-document {
        align-items: flex-start;
        padding: 25px;
    }

    .featured-document-icon {
        width: 65px; height: 65px; min-width: 65px;
        border-radius: 16px;
        font-size: 1.5rem;
    }

    .featured-document-content { width: calc(100% - 90px); }
    .document-actions { width: 100%; }

    .fee-notice {
        flex-direction: column;
        align-items: flex-start;
    }

    .fee-notice .btn { width: 100%; }

    .resource-footer { text-align: center; }
    .footer-links { justify-content: center; }
}

/* SMALL MOBILE */
@media (max-width: 575.98px) {
    .navbar-logo { height: 42px; }

    .quick-access-card { gap: 15px; }

    .quick-icon {
        width: 55px; height: 55px; min-width: 55px;
    }

    .quick-arrow { display: none; }

    .featured-document { display: block; }
    .featured-document-icon { margin-bottom: 20px; }
    .featured-document-content { width: 100%; }

    .document-actions {
        flex-direction: column;
        margin-top: 25px;
    }

    .admission-cta {
        padding: 50px 20px;
        border-radius: 20px;
    }
}
