/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --primary: #D4A373;       /* Luxury Academic Gold */
    --primary-dark: #B5835A;
    --secondary: #457B9D;     /* Slate Blue */
    --secondary-dark: #1D3557;
    --accent-orange: #E76F51;  /* Terracotta Accent */
    --accent-yellow: #FAEDCD;  /* Soft Warm Creamy Yellow */
    --bg-cream: #FCFAF6;       /* Luxury Cream Base */
    --bg-white: #FFFFFF;
    --text-dark: #2B221E;      /* Rich Dark Brown-Black */
    --text-muted: #6C5A55;
    --border-color: #E6DFD5;
    --shadow-sm: 0 4px 6px rgba(43, 34, 30, 0.05);
    --shadow-md: 0 10px 20px rgba(43, 34, 30, 0.08);
    --shadow-lg: 0 20px 40px rgba(43, 34, 30, 0.12);
    --shadow-3d: 0 22px 45px rgba(43, 34, 30, 0.14), 0 2px 0 rgba(255,255,255,0.86) inset;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius: 24px; /* Increased border radius for friendly kid-school luxury feel */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at 8% 6%, rgba(212, 163, 115, 0.13), transparent 28%),
        radial-gradient(circle at 96% 18%, rgba(69, 123, 157, 0.10), transparent 24%),
        linear-gradient(180deg, #fffdfa 0%, var(--bg-cream) 42%, #fffaf1 100%);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Utility Typography & Layout --- */
.text-center { text-align: center; }
.section-padding { padding: 80px 0; }
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}
.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}
.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    margin: 15px auto 0 auto;
    border-radius: 2px;
}
.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    box-shadow: 0 5px 0 rgba(43, 34, 30, 0.08);
}
.btn-primary {
    background-color: var(--primary);
    color: var(--bg-white);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 0 rgba(43, 34, 30, 0.10), var(--shadow-md);
}
.btn-secondary {
    background-color: transparent;
    color: var(--secondary);
    border-color: var(--secondary);
}
.btn-secondary:hover {
    background-color: var(--secondary);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-accent {
    background-color: var(--accent-orange);
    color: var(--bg-white);
}
.btn-accent:hover {
    background-color: #d85d40;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* --- Sticky Header & Navigation --- */
header.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(253, 251, 247, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}
header.sticky-header.scrolled {
    background: rgba(253, 251, 247, 0.95);
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-link img {
    height: 48px;
    width: auto;
}
.school-meta-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.35rem;
    line-height: 1.1;
    color: var(--text-dark);
}
.school-meta-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: var(--primary-dark);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* --- Nav Menu & Dropdowns --- */
nav.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-link {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition-smooth);
}
.nav-link:hover {
    color: var(--primary-dark);
}
.nav-link:hover::after {
    width: 100%;
}
.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}
.nav-link.active::after {
    width: 100%;
}
.header-cta-btn {
    background-color: var(--accent-orange) !important;
    border-color: var(--accent-orange) !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(231, 111, 81, 0.3);
}
.header-cta-btn:hover {
    background-color: #d85d40 !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 6px 15px rgba(231, 111, 81, 0.4) !important;
}

/* Nav Dropdown Desktop Menu */
.nav-dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-menu-box {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: 20px;
    padding: 12px 0;
    min-width: 260px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1010;
    display: flex;
    flex-direction: column;
}
.dropdown-menu-box a {
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-smooth);
    border-left: 3px solid transparent;
}
.dropdown-menu-box a i {
    color: var(--primary);
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}
.dropdown-menu-box a:hover {
    background-color: rgba(212, 163, 115, 0.1);
    color: var(--primary-dark);
    border-left-color: var(--primary);
    padding-left: 28px;
}
.dropdown-menu-box a:hover i {
    transform: scale(1.2);
}
.nav-dropdown:hover .dropdown-menu-box {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(8px);
}
.dropdown-icon {
    transition: transform 0.3s ease;
}
.nav-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
}

/* Kids-friendly Floating background blobs */
.floating-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    z-index: 0;
    opacity: 0.15;
    animation: float-slow 18s infinite ease-in-out;
    pointer-events: none;
}
.blob-primary {
    background-color: var(--primary);
    width: 320px;
    height: 320px;
}
.blob-secondary {
    background-color: var(--secondary);
    width: 420px;
    height: 420px;
}
.blob-orange {
    background-color: var(--accent-orange);
    width: 280px;
    height: 280px;
}
.blob-yellow {
    background-color: #F9C74F;
    width: 250px;
    height: 250px;
}
@keyframes float-slow {
    0% { transform: translate(0px, 0px) rotate(0deg) scale(1); }
    33% { transform: translate(50px, -70px) rotate(120deg) scale(1.1); }
    66% { transform: translate(-30px, 40px) rotate(240deg) scale(0.9); }
    100% { transform: translate(0px, 0px) rotate(360deg) scale(1); }
}

/* Playful kid-school animations for cards & boxes */
.why-choose-grid .feature-box:hover {
    transform: translateY(-8px) scale(1.04) rotate(1.2deg) !important;
    border-color: var(--primary) !important;
    box-shadow: var(--shadow-lg) !important;
}
.custom-card:hover {
    transform: translateY(-8px) scale(1.03) rotate(-0.8deg) !important;
    border-color: var(--primary) !important;
    box-shadow: var(--shadow-lg) !important;
}
.profile-card:hover {
    transform: translateY(-5px) scale(1.01) !important;
    border-color: var(--primary) !important;
    box-shadow: var(--shadow-md) !important;
}

/* Video Modal Player CSS */
.custom-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}
.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(43, 34, 30, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.video-modal-content {
    position: relative;
    z-index: 2010;
    width: 90%;
    max-width: 800px;
    background-color: #000;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--primary);
    transform: scale(0.85);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.custom-video-modal.active .video-modal-content {
    transform: scale(1);
    opacity: 1;
}
.video-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2020;
    transition: var(--transition-smooth);
}
.video-modal-close:hover {
    background: var(--accent-orange);
    transform: rotate(90deg);
}
.video-modal-iframe-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
}
.video-modal-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- Mobile Nav Overlay --- */
@media (max-width: 1024px) {
    .menu-toggle {
        display: block;
    }
    nav.nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100vw;
        max-width: 100vw;
        height: calc(100vh - 80px);
        background-color: var(--bg-cream);
        flex-direction: column;
        align-items: flex-start;
        padding: 40px;
        gap: 24px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
        z-index: 999;
    }
    nav.nav-menu.active {
        transform: translateX(0);
    }
    .nav-dropdown {
        width: 100%;
    }
    .nav-dropdown .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        border-bottom: 1px solid rgba(43, 34, 30, 0.05);
        padding: 8px 0;
    }
    .dropdown-menu-box {
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
        padding: 10px 0 10px 20px !important;
        width: 100% !important;
        display: none; /* controlled by JS */
        opacity: 1 !important;
        visibility: visible !important;
    }
    .dropdown-menu-box a {
        padding: 8px 12px !important;
        border-left: none !important;
    }
    .dropdown-menu-box a:hover {
        padding-left: 18px !important;
        background: none !important;
    }
    .nav-dropdown:hover .dropdown-icon {
        transform: none; /* Disable rotate hover in mobile */
    }
    .nav-dropdown.mobile-open .dropdown-icon {
        transform: rotate(180deg);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    .header-container {
        height: 68px;
        gap: 12px;
    }
    .logo-link {
        min-width: 0;
        flex: 1;
    }
    .logo-link img {
        height: 40px;
    }
    .school-meta-title {
        font-size: 1rem;
        line-height: 1.15;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .school-meta-subtitle {
        display: none;
    }
    .menu-toggle {
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        border: 1px solid var(--border-color);
        background: var(--bg-white);
    }
    nav.nav-menu {
        top: 68px;
        height: calc(100vh - 68px);
        padding: 22px 18px 34px;
        gap: 10px;
    }
    .nav-link,
    .nav-dropdown .dropdown-toggle {
        width: 100%;
        min-height: 44px;
        font-size: 1rem;
    }
    .header-cta-btn {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }
    .section-padding {
        padding: 52px 0;
    }
    .section-header {
        margin-bottom: 30px;
    }
    .section-header h2 {
        font-size: 2rem;
        line-height: 1.15;
    }
    .section-header p {
        font-size: 1rem;
    }
    .hero-slider {
        height: auto;
        min-height: 640px;
        padding-top: 68px;
    }
    .hero-slide {
        min-height: 640px;
    }
    .hero-slide::before {
        background: linear-gradient(180deg, rgba(43, 34, 30, 0.78) 0%, rgba(43, 34, 30, 0.52) 100%);
    }
    .hero-content {
        padding: 40px 18px;
    }
    .hero-content h1 {
        font-size: 2.35rem;
        line-height: 1.12;
        overflow-wrap: anywhere;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .hero-buttons,
    .admission-flex,
    .contact-grid,
    .notice-details {
        flex-direction: column;
        align-items: stretch;
    }
    .btn {
        width: 100%;
        min-height: 44px;
        padding: 12px 18px;
        white-space: normal;
        text-align: center;
    }
    .page-banner {
        height: auto !important;
        min-height: 220px;
        margin: 0 16px 32px !important;
        border-radius: 16px !important;
        padding: 32px 0;
    }
    .page-banner h1 {
        font-size: 2rem !important;
        line-height: 1.15;
    }
    section div[style*="grid-template-columns: 2fr 1fr"],
    section div[style*="grid-template-columns: repeat(auto-fill"] {
        grid-template-columns: 1fr !important;
    }
    .profile-card,
    .contact-card,
    .results-card,
    .feature-box,
    .custom-card {
        border-radius: 16px;
        padding: 22px;
    }
    .profile-img-container {
        width: min(220px, 100%);
        height: auto;
        aspect-ratio: 1;
    }
    .why-choose-grid,
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .results-card {
        padding: 24px 18px;
    }
    .results-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    .floating-btn-group {
        right: 14px;
        bottom: 14px;
        gap: 10px;
    }
}

/* --- Hero Banner Slider --- */
.hero-slider {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: #1a1a1a;
}
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(43, 34, 30, 0.8) 30%, rgba(43, 34, 30, 0.3) 100%);
    z-index: 1;
}
.hero-slide.active {
    opacity: 1;
    visibility: visible;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 24px;
    color: var(--bg-white);
    transform: translateY(30px);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s, opacity 1.2s ease-out 0.3s;
}
.hero-slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}
.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--bg-white);
}
.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 35px;
    color: #e5dfd9;
    font-weight: 300;
}
.hero-buttons {
    display: flex;
    gap: 16px;
}

/* Slider Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: var(--transition-smooth);
}
.slider-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}
.slider-prev { left: 30px; }
.slider-next { right: 30px; }

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.05rem; }
    .slider-arrow { display: none; }
}

/* --- Admission Open Marquee/Section --- */
.admission-banner {
    background-color: var(--accent-orange);
    color: var(--bg-white);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}
.admission-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.admission-title h3 {
    color: var(--bg-white);
    font-size: 1.8rem;
    margin-bottom: 5px;
}
.admission-title p {
    color: rgba(255, 255, 255, 0.9);
}

/* --- Profile Message (Principal/Chairman) --- */
.profile-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
    transition: var(--transition-smooth);
}
.profile-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.profile-img-container {
    width: 250px;
    height: 250px;
    flex-shrink: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 3px solid var(--accent-yellow);
}
.profile-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-info h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}
.profile-info .designation {
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}
.profile-info p {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-style: italic;
    margin-bottom: 20px;
}
@media (max-width: 768px) {
    .profile-card { flex-direction: column; text-align: center; padding: 24px; }
    .profile-img-container { margin: 0 auto; }
}

/* --- Features Grid (Why Choose Us) --- */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.feature-box {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 35px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}
.feature-box:hover::before {
    transform: scaleX(1);
}
.feature-box:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
}
.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}
.feature-box h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}
.feature-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Statistics Section --- */
.stats-section {
    background-color: var(--accent-yellow);
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}
.stat-item h3 {
    font-size: 3.5rem;
    color: var(--accent-orange);
    margin-bottom: 5px;
}
.stat-item p {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* --- Grid Section (News, Events, Blogs) --- */
.three-column-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* --- Card Styles --- */
.custom-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-3d);
    transform-style: preserve-3d;
}
.custom-card:hover {
    transform: translateY(-8px) rotateX(1.5deg) rotateY(-1deg);
    box-shadow: 0 28px 55px rgba(43, 34, 30, 0.16);
}
.custom-card::after {
    content: '';
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent-orange));
    opacity: 0.72;
}
.card-media {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.custom-card:hover .card-media img {
    transform: scale(1.08);
}
.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary);
    color: var(--bg-white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(43, 34, 30, 0.18);
}
.card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    gap: 15px;
}
.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    line-height: 1.3;
}
.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* --- Testimonials Section (Slider) --- */
.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}
.testimonial-slide {
    display: none;
    text-align: center;
}
.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.8s ease;
}
.testimonial-text {
    font-size: 1.35rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 24px;
}
.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
}
.author-name h4 {
    font-size: 1.05rem;
    margin-bottom: 2px;
}
.author-name p {
    color: var(--primary-dark);
    font-size: 0.85rem;
    font-weight: 500;
}

/* --- Video Overlay / Section --- */
.video-section {
    position: relative;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    margin-bottom: 50px;
}
.video-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(43, 34, 30, 0.6);
}
.play-btn {
    position: relative;
    z-index: 2;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--bg-white);
    color: var(--accent-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 0 0 0 rgba(255,255,255,0.4);
    animation: pulse 2s infinite;
}
.play-btn:hover {
    transform: scale(1.1);
    background-color: var(--primary);
    color: var(--bg-white);
}

/* --- Contact / Call To Action Section --- */
.contact-cta {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 100%);
    color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 60px;
    text-align: center;
}
.contact-cta h2 {
    color: var(--bg-white);
    font-size: 2.3rem;
    margin-bottom: 20px;
}
.contact-cta p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 30px auto;
    font-size: 1.1rem;
}

/* --- Google Maps & Contact Info --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
}
.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    height: 450px;
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.contact-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.info-row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}
.info-icon {
    font-size: 1.5rem;
    color: var(--primary);
}
.info-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}
.info-text p {
    color: var(--text-muted);
}

/* --- Form Fields --- */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}
.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-cream);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}
.form-control:focus {
    border-color: var(--primary);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(212, 163, 115, 0.15);
}
textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* --- Notice Board / Listing --- */
.notice-row {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    transition: var(--transition-smooth);
}
.notice-row:hover {
    transform: translateX(5px);
    border-color: var(--primary);
}
.notice-details {
    display: flex;
    align-items: center;
    gap: 24px;
}
.notice-date-box {
    background-color: var(--accent-yellow);
    padding: 10px 18px;
    border-radius: 8px;
    text-align: center;
    min-width: 80px;
}
.notice-date-box .day {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    color: var(--accent-orange);
}
.notice-date-box .month {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.notice-info h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
}
.notice-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}
@media (max-width: 600px) {
    .notice-row { flex-direction: column; align-items: flex-start; gap: 20px; }
    .notice-details { flex-direction: column; align-items: flex-start; gap: 15px; }
    .notice-date-box { width: 100%; }
}

/* --- Results Search Component --- */
.results-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 40px;
    max-width: 700px;
    margin: 0 auto 50px auto;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}
.results-table th, .results-table td {
    padding: 14px;
    border: 1px solid var(--border-color);
    text-align: left;
}
.results-table th {
    background-color: var(--bg-cream);
    font-weight: 600;
}

/* --- Floating Communication Buttons --- */
.floating-btn-group {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}
.floating-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 1.6rem;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: var(--transition-smooth);
}
.floating-icon:hover {
    transform: scale(1.15) translateY(-3px);
}
.floating-whatsapp {
    background-color: #25D366;
}
.floating-call {
    background-color: var(--accent-orange);
}

/* --- Gallery Layout (Filter categories) --- */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}
.filter-btn {
    padding: 8px 20px;
    border-radius: 20px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-smooth);
}
.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    height: 250px;
    position: relative;
    cursor: pointer;
}
.gallery-item img, .gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(43, 34, 30, 0.6);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-item:hover img {
    transform: scale(1.06);
}

/* --- Footer --- */
footer {
    background-color: #1E1A18; /* Luxury Ebony Dark */
    color: #e5dfd9;
    padding: 80px 0 40px 0;
    border-top: 4px solid var(--primary);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}
.footer-column h3 {
    color: var(--bg-white);
    font-size: 1.3rem;
    margin-bottom: 24px;
    position: relative;
}
.footer-column h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
    margin-top: 10px;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}
.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e5dfd9;
    font-size: 1.1rem;
    border: 1px solid rgba(255,255,255,0.1);
}
.social-icon:hover {
    background-color: var(--primary);
    color: var(--bg-white);
    transform: translateY(-3px);
}
.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.9rem;
    color: #9c928e;
}

/* --- Popups / Modals (Native <dialog>) --- */
dialog.custom-popup {
    border: none;
    border-radius: var(--border-radius);
    padding: 30px;
    max-width: 500px;
    width: 90%;
    margin: auto;
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-cream);
    overflow: hidden;
}
dialog.custom-popup::backdrop {
    background-color: rgba(43, 34, 30, 0.6);
    backdrop-filter: blur(5px);
}
.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.popup-close {
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* --- Breadcrumb Navigation --- */
.breadcrumb {
    padding: 28px 24px 18px !important;
    font-size: 0.92rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 1280px;
    margin: 0 auto !important;
    font-weight: 600;
}
.breadcrumb a,
.breadcrumb span:last-child {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(230, 223, 213, 0.85);
    border-radius: 999px;
    padding: 8px 14px;
    box-shadow: 0 8px 22px rgba(43, 34, 30, 0.06);
}
.breadcrumb a:hover {
    color: var(--primary);
    border-color: var(--primary);
}
.breadcrumb-separator {
    margin: 0;
    color: var(--border-color);
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.page-banner {
    max-width: calc(1280px - 48px);
    margin: 0 auto 48px !important;
    border-radius: 28px !important;
    box-shadow: 0 26px 60px rgba(43, 34, 30, 0.16), 0 2px 0 rgba(255,255,255,0.35) inset !important;
    border: 1px solid rgba(255, 255, 255, 0.38);
}
.page-banner .container {
    padding: 0 28px;
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* --- Print Styles --- */
@media print {
    body { background: white; color: black; }
    header, footer, .floating-btn-group, .btn, .breadcrumb, form { display: none !important; }
    .container { width: 100%; max-width: 100%; padding: 0; }
    .results-card { border: none; box-shadow: none; padding: 0; }
}

@media (max-width: 768px) {
    .breadcrumb {
        padding: 18px 16px 14px !important;
        font-size: 0.86rem;
        overflow-x: auto;
        white-space: nowrap;
        gap: 8px;
    }
    .breadcrumb a,
    .breadcrumb span:last-child {
        padding: 7px 11px;
    }
    .page-banner {
        width: auto;
        max-width: none;
        margin: 0 16px 32px !important;
        border-radius: 18px !important;
    }
    .page-banner .container {
        padding: 0 22px;
    }
    .three-column-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .custom-card {
        border-radius: 16px;
    }
    .card-media {
        height: 180px;
    }
    .card-content {
        padding: 18px;
    }
    .card-content h3 {
        font-size: 1.18rem;
    }
    .rich-text-content {
        font-size: 1rem !important;
        line-height: 1.7 !important;
    }
    .rich-text-content ul,
    .rich-text-content ol {
        padding-left: 20px;
    }
    .container > div[style*="max-width: 800px"] h1 {
        font-size: 2rem !important;
        line-height: 1.18 !important;
    }
    .container > div[style*="max-width: 800px"] div[style*="height: 450px"] {
        height: 230px !important;
        border-radius: 16px !important;
    }
}
