/* =========================================================================
   Shantiniketan Montessori School Budni — Animated, Creative Theme
   Purple + Gold color scheme (different from Narmadapuram version)
   ========================================================================= */

:root {
    --ss-primary: #5b2c91;          /* Deep purple */
    --ss-primary-dark: #3a1a5c;     /* Darker purple */
    --ss-primary-light: #f3edfa;    /* Soft lavender */
    --ss-accent: #d4a017;           /* Royal gold */
    --ss-accent-dark: #b8870e;
    --ss-green: #2e8b57;            /* Forest green (campus reference) */
    --ss-pink: #e91e63;
    --ss-coral: #ff6f61;
    --ss-dark: #1a0e2e;
    --ss-muted: #6b5b7e;
    --ss-bg: #fbf9fd;

    --gradient-primary: linear-gradient(135deg, #5b2c91 0%, #3a1a5c 50%, #2c0f4a 100%);
    --gradient-accent:  linear-gradient(135deg, #d4a017 0%, #ff6f61 100%);
    --gradient-mesh:    radial-gradient(at 20% 20%, rgba(91,44,145,0.35) 0px, transparent 50%),
                        radial-gradient(at 80% 0%,  rgba(212,160,23,0.3)  0px, transparent 50%),
                        radial-gradient(at 80% 80%, rgba(233,30,99,0.25)  0px, transparent 50%);

    --shadow-sm:  0 2px 4px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md:  0 10px 25px -5px rgba(91,44,145,0.15), 0 8px 10px -6px rgba(91,44,145,0.08);
    --shadow-lg:  0 25px 50px -12px rgba(91,44,145,0.3);
    --shadow-glow: 0 0 30px rgba(212,160,23,0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    color: var(--ss-dark);
    line-height: 1.7;
    background: var(--ss-bg);
    overflow-x: hidden;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Cormorant+Garamond:wght@600;700;800&display=swap');

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

a { color: var(--ss-primary); text-decoration: none; transition: all 0.3s; }
a:hover { color: var(--ss-accent); }

/* =========================================================================
   SCROLL PROGRESS BAR
   ========================================================================= */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0;
    background: var(--gradient-accent);
    z-index: 9999;
    transition: width 0.1s;
    box-shadow: 0 0 10px rgba(212,160,23,0.7);
}

/* =========================================================================
   BUTTONS — animated with ripple
   ========================================================================= */
.btn { font-weight: 600; letter-spacing: 0.5px; padding: 0.75rem 1.9rem; border-radius: 50px; transition: all 0.4s cubic-bezier(0.4,0,0.2,1); position: relative; overflow: hidden; }
.btn::before { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; background: rgba(255,255,255,0.25); border-radius: 50%; transform: translate(-50%,-50%); transition: width 0.6s, height 0.6s; }
.btn:hover::before { width: 320px; height: 320px; }
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.btn-primary { background: var(--gradient-primary); border: none; color: #fff; }
.btn-primary:hover { background: var(--gradient-primary); color: #fff; box-shadow: 0 12px 30px rgba(91,44,145,0.45); }

.btn-warning, .btn-accent { background: var(--gradient-accent); border: none; color: #fff; }
.btn-warning:hover, .btn-accent:hover { color: #fff; box-shadow: 0 12px 30px rgba(212,160,23,0.55); }

.btn-light { background: #fff; color: var(--ss-primary); }
.btn-light:hover { background: var(--ss-accent); color: #fff; }

.btn-outline-primary { border: 2px solid var(--ss-primary); color: var(--ss-primary); background: transparent; }
.btn-outline-primary:hover { background: var(--ss-primary); color: #fff; }

/* =========================================================================
   HEADER & NAVIGATION
   ========================================================================= */
header { position: relative; z-index: 100; background: #fff; }

.sub-header {
    background: linear-gradient(90deg, var(--ss-primary-dark) 0%, var(--ss-primary) 100%);
    color: #fff;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
}
.sub-header::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    animation: shimmer 4s infinite;
}
@keyframes shimmer { to { left: 100%; } }

.sub-header .top-links a {
    color: rgba(255,255,255,0.92);
    transition: all 0.3s;
    position: relative;
}
.sub-header .top-links a:hover { color: var(--ss-accent); transform: translateY(-1px); }
.sub-header .top-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--ss-accent); transition: width 0.3s; }
.sub-header .top-links a:hover::after { width: 100%; }

.logo-bar {
    background: #fff;
    padding: 1rem 0 !important;
    box-shadow: 0 2px 10px rgba(91,44,145,0.05);
}
.logo-bar .brand-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    color: var(--ss-primary);
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--ss-primary) 0%, var(--ss-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo-bar .brand-text small { color: var(--ss-muted); font-size: 0.8rem; -webkit-text-fill-color: var(--ss-muted); }

.navbar-brand img { transition: transform 0.4s; }
.navbar-brand:hover img { transform: rotate(-5deg) scale(1.05); }

.header-top-contact a { color: var(--ss-muted); font-size: 0.9rem; transition: all 0.3s; }
.header-top-contact a:hover { color: var(--ss-primary); transform: translateX(3px); }

/* Sticky main nav */
.main-nav {
    background: var(--gradient-primary) !important;
    border: none;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 999;
    transition: all 0.3s;
}
.main-nav.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.2); backdrop-filter: blur(10px); }

.main-nav .nav-link {
    color: rgba(255,255,255,0.92) !important;
    padding: 1.1rem 1.4rem !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 1px;
    position: relative;
    transition: all 0.3s;
}
.main-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 3px;
    background: var(--ss-accent);
    transition: all 0.3s;
    transform: translateX(-50%);
}
.main-nav .nav-link:hover::before { width: 60%; }
.main-nav .nav-link:hover { color: #fff !important; transform: translateY(-2px); }

.main-nav .dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.18);
    margin-top: 0;
    padding: 0.5rem;
    animation: dropdownSlide 0.3s;
}
@keyframes dropdownSlide { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.main-nav .dropdown-item {
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.main-nav .dropdown-item:hover {
    background: var(--gradient-primary);
    color: #fff;
    transform: translateX(5px);
}

/* =========================================================================
   HERO CAROUSEL
   ========================================================================= */
#heroCarousel { position: relative; overflow: hidden; }
#heroCarousel .carousel-inner { background: var(--ss-primary-dark); }
#heroCarousel .carousel-item { height: 600px; overflow: hidden; }
#heroCarousel .carousel-item img,
#heroCarousel .placeholder-slide {
    height: 600px;
    object-fit: cover;
    width: 100%;
    animation: kenBurns 18s infinite alternate;
}
@keyframes kenBurns {
    0%   { transform: scale(1)    translate(0,0); }
    100% { transform: scale(1.15) translate(-20px,-15px); }
}
#heroCarousel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(58,26,92,0.6) 0%, transparent 50%),
        linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(44,15,74,0.7) 100%);
    z-index: 2;
    pointer-events: none;
}
#heroCarousel::after {
    content: '';
    position: absolute;
    top: 10%; right: 10%;
    width: 220px; height: 220px;
    background: var(--gradient-accent);
    border-radius: 50%;
    filter: blur(85px);
    opacity: 0.65;
    z-index: 1;
    animation: floatShape 8s ease-in-out infinite;
}
@keyframes floatShape {
    0%, 100% { transform: translate(0,0) scale(1); }
    50%      { transform: translate(-30px,30px) scale(1.1); }
}

.placeholder-slide {
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.placeholder-slide h2 {
    font-size: 4rem;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.carousel-caption {
    z-index: 10;
    bottom: 30%;
    left: 10%;
    right: 10%;
    text-align: left;
    background: transparent;
    animation: slideInUp 1.2s ease;
}
@keyframes slideInUp {
    from { opacity: 0; transform: translateY(60px); }
    to   { opacity: 1; transform: translateY(0); }
}
.carousel-caption h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4.2rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
    line-height: 1.1;
}
.carousel-caption p {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.95);
    max-width: 600px;
    margin-bottom: 2rem;
}
.carousel-caption .btn { padding: 0.9rem 2.5rem; }

.carousel-control-prev, .carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 30px;
    opacity: 0.85;
    transition: all 0.3s;
    z-index: 10;
}
.carousel-control-prev:hover, .carousel-control-next:hover {
    background: var(--ss-accent);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.carousel-indicators { z-index: 10; }
.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    margin: 0 6px;
    transition: all 0.3s;
}
.carousel-indicators .active {
    background: var(--ss-accent);
    border-color: var(--ss-accent);
    width: 30px;
    border-radius: 6px;
}

/* =========================================================================
   SECTION HEADINGS
   ========================================================================= */
.section { padding: 6rem 0; position: relative; }
.section-light { background: #fff; }
.section-bg { background: var(--gradient-mesh), var(--ss-bg); }

.section-tagline {
    display: inline-block;
    color: var(--ss-accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 3px;
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 60px;
}
.section-tagline::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 50px; height: 2px;
    background: var(--gradient-accent);
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--ss-dark);
    margin-bottom: 1.5rem;
    line-height: 1.15;
}
.section-title span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================================================
   FEATURE CARDS — 3D tilt & glow
   ========================================================================= */
.feature-item {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem 2rem !important;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4,0,0.2,1);
    border: 1px solid rgba(91,44,145,0.08) !important;
    box-shadow: var(--shadow-sm);
    z-index: 1;
}
.feature-item::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(212,160,23,0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}
.feature-item:hover {
    transform: translateY(-12px) rotate(-1deg);
    box-shadow: var(--shadow-lg);
    border-color: var(--ss-primary) !important;
}
.feature-item:hover::after { opacity: 1; }

.count-num {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem;
    font-weight: 800;
    color: var(--ss-primary);
    line-height: 1;
    opacity: 0.08;
    transition: all 0.4s;
}
.feature-item:hover .count-num {
    opacity: 0.18;
    transform: scale(1.1) rotate(-5deg);
    color: var(--ss-accent);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 1.5rem !important;
    transition: all 0.5s;
    position: relative;
}
.feature-icon i { font-size: 2rem; color: #fff !important; transition: transform 0.5s; }
.feature-icon img { max-height: 50px; filter: brightness(0) invert(1); }
.feature-item:hover .feature-icon {
    transform: rotate(360deg) scale(1.1);
    border-radius: 50%;
    background: var(--gradient-accent);
    box-shadow: 0 10px 30px rgba(212,160,23,0.45);
}

.feature-item h4 {
    color: var(--ss-primary);
    font-weight: 700;
    margin-bottom: 0.8rem;
    transition: color 0.3s;
}
.feature-item p { color: var(--ss-muted); margin-bottom: 0; }

/* =========================================================================
   ABOUT SECTION
   ========================================================================= */
.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}
.about-image-wrapper img {
    width: 100%;
    border-radius: 20px;
    transition: transform 0.6s;
}
.about-image-wrapper:hover img { transform: scale(1.05); }
.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: 20px; right: -20px;
    width: 100%; height: 100%;
    background: var(--gradient-accent);
    border-radius: 20px;
    z-index: -1;
    transition: all 0.5s;
}
.about-image-wrapper:hover::before { top: 10px; right: -10px; }

.about-image-wrapper .badge-floating {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    animation: floatBadge 3s ease-in-out infinite;
}
@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
.badge-floating .num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.7rem;
    font-weight: 800;
    color: var(--ss-primary);
    line-height: 1;
}
.badge-floating .label {
    font-size: 0.85rem;
    color: var(--ss-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vision-box {
    background: linear-gradient(135deg, var(--ss-primary-light) 0%, #fff 100%);
    padding: 1.5rem !important;
    border-radius: 16px;
    border-left: 4px solid var(--ss-accent);
    transition: all 0.3s;
}
.vision-box:hover { transform: translateX(5px); box-shadow: var(--shadow-md); }
.vision-box i { color: var(--ss-accent) !important; }

/* =========================================================================
   COUNTER STATS
   ========================================================================= */
.counter-section {
    background: var(--gradient-primary);
    padding: 4rem 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.counter-section::before {
    content: '';
    position: absolute;
    top: -50%; left: -10%;
    width: 60%; height: 200%;
    background: radial-gradient(circle, rgba(212,160,23,0.22) 0%, transparent 70%);
    animation: rotateBlob 20s linear infinite;
}
@keyframes rotateBlob {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.counter-item { text-align: center; position: relative; z-index: 2; }
.counter-item .number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.8rem;
    font-weight: 800;
    color: var(--ss-accent);
    line-height: 1;
    display: block;
    margin-bottom: 0.5rem;
}
.counter-item .label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
}
.counter-item i { font-size: 2.5rem; opacity: 0.5; margin-bottom: 1rem; }

/* =========================================================================
   ADMISSION BANNER
   ========================================================================= */
.admission-banner {
    background: var(--gradient-primary);
    padding: 6rem 0 !important;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.admission-banner::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 500px; height: 500px;
    background: var(--gradient-accent);
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.45;
    animation: floatBlob 10s ease-in-out infinite;
}
@keyframes floatBlob {
    0%, 100% { transform: translate(0,0); }
    50%      { transform: translate(-50px,50px); }
}
.admission-banner h2 {
    font-size: 3.8rem !important;
    color: #fff !important;
    margin-bottom: 1.5rem;
    position: relative;
}
.admission-banner h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    margin-top: 1rem;
    border-radius: 2px;
}
.admission-banner p { font-size: 1.1rem; opacity: 0.95; }

/* =========================================================================
   HIGHLIGHTS GRID
   ========================================================================= */
.highlight-item {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 280px;
    box-shadow: var(--shadow-md);
    transition: transform 0.5s;
}
.highlight-item:hover { transform: translateY(-8px); }
.highlight-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s;
}
.highlight-item:hover img { transform: scale(1.15) rotate(2deg); }

.highlight-mask {
    background: linear-gradient(to bottom, transparent 30%, rgba(58,26,92,0.95) 100%);
    padding: 2rem !important;
    transition: all 0.4s;
}
.highlight-item:hover .highlight-mask {
    background: linear-gradient(to bottom, rgba(91,44,145,0.4) 0%, rgba(212,160,23,0.9) 100%);
}
.highlight-mask h5 {
    color: #fff !important;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 0;
    transform: translateY(0);
    transition: transform 0.4s;
}
.highlight-mask::after {
    content: '→';
    color: #fff;
    font-size: 1.5rem;
    margin-left: 0.5rem;
    opacity: 0;
    transition: all 0.4s;
}
.highlight-item:hover .highlight-mask::after {
    opacity: 1;
    margin-left: 1rem;
}

/* =========================================================================
   TESTIMONIALS — glassmorphism
   ========================================================================= */
.testimonial-area {
    background:
        linear-gradient(135deg, rgba(91,44,145,0.95) 0%, rgba(58,26,92,0.95) 100%),
        url('/images/testimonial-bg.jpg') center/cover fixed;
    padding: 6rem 0 !important;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.testimonial-area::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(at 20% 20%, rgba(212,160,23,0.22) 0px, transparent 50%),
        radial-gradient(at 80% 80%, rgba(233,30,99,0.18) 0px, transparent 50%);
}

.testimonial-area .section-title { color: #fff; }
.testimonial-area .section-tagline { color: var(--ss-accent); }

.testimonial-item {
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem !important;
    position: relative;
    transition: all 0.4s;
    border-top: 4px solid var(--ss-accent);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.testimonial-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.testimonial-item::before {
    content: '"';
    position: absolute;
    top: -10px; left: 30px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 8rem;
    color: var(--ss-accent);
    line-height: 1;
    opacity: 0.18;
}
.testimonial-item p {
    font-style: italic;
    color: var(--ss-dark);
    font-size: 1rem;
    line-height: 1.8;
}
.testimonial-item h5 {
    color: var(--ss-primary) !important;
    font-family: 'Cormorant Garamond', serif;
    margin-bottom: 0;
}
.testimonial-item small { color: var(--ss-accent); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* =========================================================================
   PAGE BANNER
   ========================================================================= */
.page-banner {
    background: var(--gradient-primary);
    padding: 5rem 0 4rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(212,160,23,0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(233,30,99,0.25) 0%, transparent 50%);
}
.page-banner::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--ss-bg);
    transform: skewY(-2deg);
}
.page-banner h1 {
    color: #fff !important;
    font-size: 3.6rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}
.page-banner .badge {
    background: var(--gradient-accent) !important;
    color: #fff !important;
    font-size: 0.85rem;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(212,160,23,0.45);
}
.page-banner .breadcrumb { background: transparent; }
.page-banner .breadcrumb-item a { color: rgba(255,255,255,0.9); transition: all 0.3s; }
.page-banner .breadcrumb-item a:hover { color: var(--ss-accent); }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* =========================================================================
   PAGE CONTENT
   ========================================================================= */
.page-content { font-size: 1.05rem; line-height: 1.85; }
.page-content h3, .page-content h4 {
    color: var(--ss-primary);
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.2rem;
}
.page-content h3::before, .page-content h4::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 4px; height: 70%;
    background: var(--gradient-accent);
    border-radius: 2px;
    transform: translateY(-50%);
}
.page-content ul { padding-left: 1.5rem; }
.page-content li { margin-bottom: 0.5rem; position: relative; }
.page-content ul li::marker { color: var(--ss-accent); font-weight: bold; }
.page-content table { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.page-content table th { background: var(--ss-primary-light); color: var(--ss-primary); }

/* =========================================================================
   FACILITIES PAGE
   ========================================================================= */
.facility-row {
    margin-bottom: 5rem !important;
    padding: 2rem;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s;
}
.facility-row:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.facility-row img {
    width: 100%;
    border-radius: 16px;
    transition: transform 0.6s;
}
.facility-row:hover img { transform: scale(1.05); }
.facility-row .section-title { font-size: 2.2rem; }

/* =========================================================================
   GALLERY GRID
   ========================================================================= */
.gallery-thumb {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s;
}
.gallery-thumb img { transition: transform 0.6s; }
.gallery-thumb::before {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(91,44,145,0.85), rgba(212,160,23,0.85));
    color: #fff;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 2;
}
.gallery-thumb:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.gallery-thumb:hover img { transform: scale(1.1); }
.gallery-thumb:hover::before { opacity: 1; }

/* =========================================================================
   CONTACT CARDS
   ========================================================================= */
.contact-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem !important;
    text-align: center;
    border: 1px solid rgba(91,44,145,0.08);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}
.contact-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}
.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--ss-primary);
}
.contact-card:hover::before { transform: scaleX(1); }
.contact-card i {
    width: 70px; height: 70px;
    background: var(--gradient-primary);
    color: #fff !important;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem !important;
    transition: all 0.4s;
}
.contact-card:hover i {
    background: var(--gradient-accent);
    transform: rotate(360deg);
    border-radius: 50%;
}
.contact-card h5 { color: var(--ss-primary); font-weight: 700; margin: 1rem 0 0.5rem; }

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid #e9e1f5;
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    transition: all 0.3s;
}
.contact-form .form-control:focus {
    border-color: var(--ss-primary);
    box-shadow: 0 0 0 3px rgba(91,44,145,0.1);
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
    background: linear-gradient(180deg, var(--ss-primary-dark) 0%, #1a0a30 100%);
    color: rgba(255,255,255,0.85);
    padding: 2.5rem 0 !important;
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-accent);
}
.site-footer a { color: rgba(255,255,255,0.85); transition: all 0.3s; }
.site-footer a:hover { color: var(--ss-accent); }
.site-footer i.fab {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.site-footer a:hover i.fab {
    background: var(--ss-accent);
    transform: translateY(-3px) rotate(360deg);
}

/* =========================================================================
   BACK TO TOP
   ========================================================================= */
#back-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 50px; height: 50px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    border: none;
}
#back-to-top.show { opacity: 1; visibility: visible; }
#back-to-top:hover { transform: translateY(-5px) scale(1.1); background: var(--gradient-accent); }

/* =========================================================================
   MODAL
   ========================================================================= */
.modal-content { border: none; border-radius: 20px; overflow: hidden; }
.modal-header {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    padding: 1.5rem 2rem;
}
.modal-header .btn-close { filter: invert(1); }
.modal-title { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 1.5rem; }
.modal-body { padding: 2rem; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1199px) {
    .section-title { font-size: 2.4rem; }
    .carousel-caption h2 { font-size: 3.2rem; }
    .admission-banner h2 { font-size: 3rem !important; }
}
@media (max-width: 991px) {
    .main-nav .nav-link { padding: 0.7rem 1rem !important; }
    #heroCarousel .carousel-item, #heroCarousel .carousel-item img { height: 400px; }
    .carousel-caption { bottom: 20%; left: 5%; right: 5%; }
    .carousel-caption h2 { font-size: 2.2rem; }
    .carousel-caption p { font-size: 1rem; }
    .section { padding: 4rem 0; }
    .section-title { font-size: 2rem; }
    .page-banner h1 { font-size: 2.3rem; }
    .admission-banner { padding: 4rem 0 !important; }
    .admission-banner h2 { font-size: 2.2rem !important; }
    .counter-item .number { font-size: 2.6rem; }
}
@media (max-width: 576px) {
    .sub-header { font-size: 0.75rem; }
    .sub-header .top-links { gap: 0.6rem !important; flex-wrap: wrap; }
    .logo-bar .brand-text { font-size: 1.1rem; }
    #heroCarousel .carousel-item, #heroCarousel .carousel-item img { height: 320px; }
    .carousel-caption h2 { font-size: 1.6rem; }
    .feature-icon { width: 60px; height: 60px; }
    .feature-icon i { font-size: 1.5rem; }
    .count-num { font-size: 3rem; }
    .badge-floating { padding: 0.6rem 1rem; }
    .badge-floating .num { font-size: 1.7rem; }
}

@media print {
    .sub-header, .main-nav, #back-to-top, .site-footer, .modal { display: none !important; }
    .page-banner { background: none; color: #000; }
}
