/* =====================================================
   RAYS CULTURE PUBLIC SCHOOL — Custom Styles
   Colors picked directly from the school logo:
   - Red     #C10404  (sun & flames — primary brand color)
   - Gold    #E3A712  (flame highlights — accent)
   - Maroon  #4A150A  (ribbon banner — secondary/dark accent)
   - Cream   #FBF3E4  (book pages — background)
   - Charcoal #241A15 (logo text — body text)
   Type: "Fraunces" for headings, "Karla" for body
   ===================================================== */

:root {
    --red: #8d2f2f;
    --red-dark: #7A0202;
    --gold: #E3A712;
    --gold-light: #F7C948;
    --maroon: #4A150A;
    --cream: #FBF3E4;
    --charcoal: #241A15;
    --grey-mid: #6E5D52;
    --white: #FFFFFF;

    --font-display: "Fraunces", serif;
    --font-body: "Karla", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background: var(--cream);
    line-height: 1.65;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--red);
    font-weight: 600;
    line-height: 1.2;
}

h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: .5rem; }
h3 { font-size: 1.25rem; }

p { color: var(--grey-mid); max-width: 62ch; }

a { text-decoration: none; }

.section { padding: 5.5rem 0; }
.section-eyebrow {
    color: var(--maroon);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.05rem;
    margin-bottom: .25rem;
}
.section-sub { max-width: 620px; margin-left: auto; margin-right: auto; }
.text-center p.section-sub { margin-top: .5rem; }

/* ================= Buttons ================= */
.btn-cta {
    background: var(--gold);
    border: none;
    color: var(--maroon);
    font-weight: 700;
    padding: .7rem 1.6rem;
    border-radius: 3px;
    transition: transform .15s ease, background .2s ease;
}
.btn-cta:hover { background: var(--gold-light); color: var(--maroon); transform: translateY(-2px); }

.btn-outline-cta {
    border: 2px solid var(--red);
    color: var(--red);
    font-weight: 700;
    padding: .65rem 1.6rem;
    border-radius: 3px;
    background: transparent;
}
.btn-outline-cta:hover { background: var(--red); color: var(--white); }

/* ================= Navbar ================= */
.navbar-custom {
    background: rgba(251, 243, 228, 0.96);
    backdrop-filter: blur(6px);
    box-shadow: 0 1px 0 rgba(193, 4, 4, .1);
    padding: .6rem 0;
    transition: padding .2s ease;
}
.navbar-brand { display: flex; align-items: center; gap: .6rem; }
.brand-logo { height: 52px; width: auto; }
.brand-text {
    font-family: var(--font-display);
    color: var(--red);
    font-weight: 600;
    font-size: 24px;
    line-height: 1.3;
}
.navbar-nav .nav-link {
    color: var(--charcoal);
    font-weight: 600;
    margin: 0 .5rem;
}
.navbar-nav .nav-link:hover { color: var(--red); }

/* ---- "About" dropdown menu ---- */
.navbar-nav .dropdown-menu {
    background: var(--white);
    border: 1px solid rgba(193,4,4,.12);
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
    padding: .4rem;
    margin-top: 0;   /* <-- gap hata diya */
}
.navbar-nav .dropdown-item {
    color: var(--charcoal);
    font-weight: 600;
    font-size: .92rem;
    border-radius: 4px;
    padding: .55rem .9rem;
}
.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
    background: var(--gold);
    color: var(--maroon);
}
.navbar-nav .dropdown-item.active { background: var(--red); color: var(--white); }
@media (min-width: 992px) {
    .navbar-nav .dropdown-menu { min-width: 220px; }
}

/* ================= Hero ================= */
.hero-section {
    padding: 9rem 0 5rem;
    background:
        radial-gradient(circle at 85% 15%, rgba(227,167,18,.18), transparent 45%),
        var(--red);
    color: var(--white);
}
.eyebrow {
    color: var(--gold-light);
    font-weight: 700;
    letter-spacing: .3px;
    margin-bottom: .8rem;
}
.hero-section h1 {
    color: var(--white);
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    margin-bottom: 1.1rem;
}
.hero-section h1 .highlight { color: var(--gold-light); }
.hero-lead { color: #F6DCC9; max-width: 46ch; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.6rem 0 2.4rem; }
.hero-actions .btn-outline-cta { border-color: var(--gold-light); color: var(--gold-light); }
.hero-actions .btn-outline-cta:hover { background: var(--gold-light); color: var(--maroon); }

.hero-stats { display: flex; gap: 2.4rem; flex-wrap: wrap; }
.hero-stats > div { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-display); font-size: 2rem; color: var(--gold-light); font-weight: 700; }
.stat-label { color: #EFC1AE; font-size: .9rem; }

.hero-visual { display: flex; justify-content: center; margin-top: 2.5rem; }
.logo-showcase {
    background: var(--cream);
    border-radius: 16px;
    padding: 2.2rem;
    max-width: 380px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 60px rgba(0,0,0,.28);
}
.logo-showcase img { width: 100%; max-width: 300px; height: auto; }

/* ================= About ================= */
.value-card {
    background: var(--white);
    border: 1px solid rgba(193,4,4,.08);
    border-radius: 6px;
    padding: 1.6rem;
   
}
.value-card i { font-size: 1.6rem; color: var(--maroon); margin-bottom: .7rem; display: block; }
.value-card h3 { margin-bottom: .4rem; font-size: 1.1rem; }
.value-card p { font-size: .92rem; margin: 0; }

/* ================= Academics ================= */
.academics-section { background: var(--white); }
.academic-card {
    border: 1px solid rgba(193,4,4,.12);
    border-radius: 6px;
    padding: 2rem 1.6rem;
    height: 100%;
    background: var(--cream);
}
.academic-card.featured {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}
.academic-card.featured h3, .academic-card.featured .academic-range { color: var(--gold-light); }
.academic-card.featured p { color: #F6DCC9; }
.academic-range { color: var(--maroon); font-weight: 700; margin-bottom: .5rem; }

/* ================= Facilities ================= */
.facility-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.facility-list li { padding: .45rem 0; font-weight: 600; color: var(--charcoal); }
.facility-list i { color: var(--maroon); margin-right: .6rem; }

.facility-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.facility-tile {
    border-radius: 6px;
    padding: 2rem 1rem;
    color: var(--white);
    display: flex; flex-direction: column; align-items: center; gap: .6rem;
    font-weight: 700;
    text-align: center;
}
.facility-tile i { font-size: 1.8rem; }
.t1 { background: var(--red); }
.t2 { background: var(--maroon); }
.t3 { background: var(--gold); color: var(--maroon); }
.t4 { background: var(--red-dark); }

/* ================= Gallery ================= */
.gallery-photo {
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(193,4,4,.1);
}
.gallery-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.gallery-photo:hover img { transform: scale(1.05); }

/* ================= Admission ================= */
.admission-section { background: var(--white); }
.step-card {
    background: var(--cream);
    border-radius: 6px;
    padding: 1.8rem 1.2rem;
    height: 100%;
    text-align: center;
}
.step-num {
    display: inline-block;
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: .5rem;
}
.step-card h3 { font-size: 1.05rem; }
.step-card p { font-size: .88rem; margin: 0 auto; }

/* ================= Contact ================= */
.contact-form label { font-weight: 600; color: var(--red); }
.contact-form .form-control {
    border-radius: 4px;
    border: 1px solid rgba(193,4,4,.2);
    padding: .65rem .8rem;
}
.contact-form .form-control:focus {
    border-color: var(--maroon);
    box-shadow: 0 0 0 .2rem rgba(74,21,10,.15);
}

.contact-info-card {
    background: var(--red);
    color: var(--white);
    border-radius: 6px;
    padding: 1.8rem;
    margin-bottom: 1.2rem;
}
.contact-info-card h3 { color: var(--gold-light); margin-bottom: 1rem; }
.contact-info-card ul { list-style: none; padding: 0; margin: 0; }
.contact-info-card li { margin-bottom: .7rem; color: #F6DCC9; }
.contact-info-card i { color: var(--gold-light); margin-right: .6rem; width: 18px; }

.map-wrapper { border-radius: 6px; overflow: hidden; line-height: 0; }

/* ================= Footer ================= */
.site-footer {
    background: var(--red-dark);
    color: #E9C9BA;
    padding: 3.5rem 0 1.5rem;
}
.footer-logo-row { display: flex; align-items: center; gap: .7rem; margin-bottom: .5rem; }
.footer-logo-row img { height: 42px; width: auto; }
.footer-brand { color: var(--gold-light); font-family: var(--font-display); margin: 0; }
.footer-tagline { color: #D9AF9C; font-size: .92rem; }
.footer-heading { color: var(--white); margin-bottom: 1rem; font-size: 1rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; }
.footer-links li, .footer-contact li { margin-bottom: .6rem; font-size: .92rem; }
.footer-links a { color: #E9C9BA; }
.footer-links a:hover { color: var(--gold-light); }
.footer-contact i { margin-right: .5rem; color: var(--gold-light); }
.footer-contact a { color: #E9C9BA; }
.social-links { margin-top: 1rem; display: flex; gap: .8rem; }
.social-links a {
    width: 36px; height: 36px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
}
.social-links a:hover { background: var(--gold); border-color: var(--gold); color: var(--maroon); }
.footer-divider { border-color: rgba(255,255,255,.12); margin: 2rem 0 1.2rem; }
.footer-bottom { font-size: .85rem; color: #C9A38F; text-align: center; margin: 0; }

/* ================= Back to top ================= */
.back-to-top {
    position: fixed;
    right: 1.4rem; bottom: 1.4rem;
    width: 44px; height: 44px;
    background: var(--gold);
    color: var(--maroon);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .25s ease;
    z-index: 999;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ================= Accessibility ================= */
a:focus-visible, button:focus-visible, .form-control:focus-visible {
    outline: 3px solid var(--maroon);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
}

/* ================= Inner page header (e.g. Disclosure) ================= */
.page-header {
    padding: 9rem 0 3.5rem;
    background: var(--red);
    color: var(--white);
}
.page-header h1 { color: var(--white); font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: .8rem; }
.page-header .hero-lead { color: #F6DCC9; max-width: 70ch; }

/* ================= Mandatory Public Disclosure ================= */
.disclosure-section { background: var(--white); }
.disclosure-block { margin-bottom: 3rem; }
.disclosure-block h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid var(--gold);
    padding-bottom: .6rem;
    margin-bottom: 1.2rem;
}
.disclosure-table {
    border: 1px solid rgba(193,4,4,.15);
}
.disclosure-table th, .disclosure-table td {
    padding: .85rem 1rem;
    vertical-align: middle;
    border-color: rgba(193,4,4,.1);
}
.disclosure-table th {
    color: var(--red);
    font-family: var(--font-display);
    width: 48px;
}
.disclosure-table tbody tr:nth-child(odd) { background: var(--cream); }
.doc-link {
    color: var(--white);
    background: var(--maroon);
    padding: .35rem .9rem;
    border-radius: 4px;
    font-size: .85rem;
    font-weight: 700;
    white-space: nowrap;
}
.doc-link:hover { background: var(--red); color: var(--white); }
.disclosure-note {
    font-size: .85rem;
    color: var(--grey-mid);
    margin-top: .8rem;
}
.disclosure-note i { color: var(--maroon); margin-right: .4rem; }
.disclosure-footer-note {
    text-align: center;
    font-size: .95rem;
    border-top: 1px solid rgba(193,4,4,.1);
    padding-top: 2rem;
    margin-top: 1rem;
}
.document-class{text-align:center}

/* ================= Static content pages (About School, Vision, etc.) ================= */
.static-page-section { background: var(--white); }
.section-divider {
    border: none;
    border-top: 1px solid rgba(193,4,4,.12);
    margin: 3.5rem 0;
}

/* ================= Responsive ================= */
@media (max-width: 991.98px) {
    .hero-section { padding: 7.5rem 0 4rem; text-align: left; }
    .page-header { padding: 7.5rem 0 3rem; }
    .hero-stats { gap: 1.6rem; }
    .section { padding: 4rem 0; }
}

@media (max-width: 575.98px) {
    .hero-stats { flex-direction: column; gap: 1rem; }
    .facility-grid { grid-template-columns: 1fr 1fr; }
    .hero-actions .btn { width: 100%; text-align: center; }
    .brand-text { font-size: .95rem; }
    .brand-logo { height: 42px; }
.step-num {font-size: 1rem;}
}