/* ============================================
   Madrasa Public Website - Custom CSS
   Theme: Islamic Green + Gold
   Fonts: Noto Serif Bengali + Inter
   Framework: Bootstrap 5.3.3
   ============================================ */

:root {
    /* Primary Colors - Islamic Green */
    --primary: #0d6e3f;
    --primary-dark: #094d2c;
    --primary-darker: #063a1e;
    --primary-light: #e8f5e9;
    --primary-50: #f0fdf4;
    --primary-100: #dcfce7;
    --primary-200: #bbf7d0;

    /* Accent - Gold */
    --accent: #c59b2c;
    --accent-light: #f5e6b8;
    --accent-dark: #a07d1e;

    /* Text Colors */
    --text-dark: #1a2e1a;
    --text-body: #3a4a3a;
    --text-muted: #6b7c6b;
    --text-light: #94a394;

    /* Background Colors */
    --bg-body: #f8faf7;
    --bg-white: #ffffff;
    --bg-light: #f0f5ef;
    --bg-cream: #faf9f5;

    /* Border */
    --border: #d4e4d4;
    --border-light: #e8f0e8;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);

    /* Border Radius */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Fonts */
    --font-bn: 'Noto Serif Bengali', 'Hind Siliguri', sans-serif;
    --font-en: 'Inter', sans-serif;
    --font-ar: 'Amiri', serif;

    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;
}

/* ============================================
   GLOBAL
   ============================================ */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-bn);
    color: var(--text-body);
    background: var(--bg-body);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
    color: var(--primary-dark);
}

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

::selection {
    background: var(--primary);
    color: #fff;
}

/* Section helpers */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-align: center;
    font-family: var(--font-bn);
}

.section-title-icon {
    color: var(--accent);
    font-size: 0.85em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    margin: 12px auto 20px;
    border-radius: 2px;
}

.section-divider-left {
    margin-left: 0;
}

.bg-light-section {
    background: var(--bg-light);
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: var(--primary-darker);
    color: rgba(255,255,255,0.85);
    padding: 7px 0;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
}

.top-bar i {
    margin-right: 5px;
    font-size: 0.78rem;
}

.top-bar a {
    color: rgba(255,255,255,0.85);
}

.top-bar a:hover {
    color: #fff;
}

.top-bar-left span {
    display: inline-flex;
    align-items: center;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-admin-login {
    background: rgba(255,255,255,0.12);
    padding: 3px 14px;
    border-radius: 4px;
    font-size: 0.78rem;
    border: 1px solid rgba(255,255,255,0.2);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-admin-login:hover {
    background: rgba(255,255,255,0.22);
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}

/* ============================================
   NAVBAR
   ============================================ */
#mainNavbar {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
    transition: var(--transition);
    z-index: 1050;
}

#mainNavbar.scrolled {
    padding: 6px 0;
    box-shadow: var(--shadow-md);
}

#mainNavbar.navbar-transparent {
    background: transparent;
    box-shadow: none;
}

#mainNavbar.navbar-transparent.scrolled {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
}

#mainNavbar.navbar-transparent .nav-link {
    color: rgba(255,255,255,0.9) !important;
}

#mainNavbar.navbar-transparent .nav-link:hover,
#mainNavbar.navbar-transparent .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.15);
}

#mainNavbar.navbar-transparent .navbar-brand {
    color: #fff !important;
}

#mainNavbar.navbar-transparent .brand-address {
    color: rgba(255,255,255,0.7);
}

#mainNavbar.navbar-transparent .navbar-toggler {
    color: #fff;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--primary-dark) !important;
    padding: 0;
}

.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
}

.brand-icon-wrap {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    font-family: var(--font-bn);
}

.brand-address {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.2;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 8px 14px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 0.92rem;
    white-space: nowrap;
}

.nav-link i {
    margin-right: 3px;
    font-size: 0.82rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
    background: var(--primary-light);
}

.navbar-toggler {
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-carousel {
    position: relative;
}

.hero-static,
.hero-slide {
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-dark) 30%, var(--primary) 70%, #147a4a 100%);
    color: #fff;
    padding: 90px 0 80px;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    min-height: 520px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(6,58,30,0.92) 0%, rgba(9,77,44,0.85) 30%, rgba(13,110,63,0.75) 70%, rgba(20,122,74,0.8) 100%);
    z-index: 1;
}

.hero-static::before,
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-islamic-greeting {
    font-family: var(--font-ar);
    font-size: 1.4rem;
    color: var(--accent-light);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    font-family: var(--font-bn);
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 550px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-bn);
}

.btn-hero-primary {
    background: var(--accent);
    color: var(--primary-dark);
    border: 2px solid var(--accent);
}

.btn-hero-primary:hover {
    background: #d4aa35;
    border-color: #d4aa35;
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(197, 155, 44, 0.4);
}

.btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-hero-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

.hero-image-wrap {
    text-align: center;
    position: relative;
    z-index: 3;
}

.hero-image {
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-height: 400px;
    object-fit: cover;
}

.hero-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: var(--bg-body);
    clip-path: polygon(0 60%, 100% 0, 100% 100%, 0% 100%);
    z-index: 4;
}

/* Carousel controls */
.hero-section .carousel-indicators {
    bottom: 70px;
    z-index: 5;
}

.hero-section .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    opacity: 1;
    transition: var(--transition);
}

.hero-section .carousel-indicators button.active {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.2);
}

.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
    z-index: 5;
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    margin: 0 15px;
    opacity: 0;
    transition: var(--transition);
}

.hero-section:hover .carousel-control-prev,
.hero-section:hover .carousel-control-next {
    opacity: 1;
}

.hero-section .carousel-control-prev:hover,
.hero-section .carousel-control-next:hover {
    background: rgba(255,255,255,0.25);
}

/* ============================================
   COUNTER / STATS
   ============================================ */
.counter-section {
    background: var(--bg-white);
    padding: 40px 0;
    margin-top: -25px;
    position: relative;
    z-index: 5;
}

.counter-card {
    text-align: center;
    padding: 25px 15px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.counter-card:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

.counter-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
}

.counter-icon.green   { background: #dcfce7; color: var(--primary); }
.counter-icon.gold    { background: #fef3c7; color: var(--accent); }
.counter-icon.blue    { background: #dbeafe; color: #2563eb; }
.counter-icon.emerald { background: #d1fae5; color: #059669; }

.counter-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 5px;
    font-family: var(--font-en);
}

.counter-label {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.92rem;
}

/* ============================================
   NOTICE CARDS
   ============================================ */
.notice-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.notice-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.notice-card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.notice-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.notice-card:hover .notice-card-image img {
    transform: scale(1.05);
}

.notice-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.notice-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.notice-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
}

.notice-type-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
}

.notice-type-badge.urgent    { background: #fee2e2; color: #dc2626; }
.notice-type-badge.exam      { background: #dbeafe; color: #2563eb; }
.notice-type-badge.holiday   { background: #fef3c7; color: #d97706; }
.notice-type-badge.admission { background: #d1fae5; color: #059669; }

.notice-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.5;
}

.notice-card-title a {
    color: var(--text-dark);
}

.notice-card-title a:hover {
    color: var(--primary);
}

.notice-card-excerpt {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    flex: 1;
}

.notice-read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    transition: var(--transition);
}

.notice-read-more:hover {
    color: var(--primary-dark);
    gap: 8px;
}

/* ============================================
   EVENT CARDS
   ============================================ */
.event-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.event-card-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.event-card:hover .event-card-image img {
    transform: scale(1.05);
}

.event-card-image-placeholder {
    background: linear-gradient(135deg, var(--primary-light), #e0f2e9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.3;
}

.event-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
}

.event-status-badge.upcoming { background: #dcfce7; color: #166534; }
.event-status-badge.past     { background: #fee2e2; color: #991b1b; }

.event-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-date-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    margin-bottom: 12px;
    width: fit-content;
}

.event-day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    font-family: var(--font-en);
}

.event-month {
    font-size: 0.78rem;
    font-weight: 500;
    opacity: 0.9;
}

.event-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.5;
}

.event-card-title a {
    color: var(--text-dark);
}

.event-card-title a:hover {
    color: var(--primary);
}

.event-card-excerpt {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    flex: 1;
}

.event-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.event-card-info i {
    color: var(--primary);
    margin-right: 4px;
}

.event-upcoming {
    border-left: 3px solid var(--primary);
}

.event-past {
    border-left: 3px solid var(--text-light);
    opacity: 0.85;
}

/* ============================================
   PRINCIPAL SECTION
   ============================================ */
.principal-photo-wrap {
    text-align: center;
    padding: 20px;
}

.principal-photo {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--primary-light);
    box-shadow: var(--shadow-lg);
}

.principal-photo-placeholder {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), #e0f2e9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.3;
    margin: 0 auto;
}

.principal-message {
    position: relative;
    padding: 20px 30px;
}

.principal-quote-icon {
    font-size: 4rem;
    color: var(--primary-light);
    position: absolute;
    top: -10px;
    left: 0;
    line-height: 1;
}

.principal-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-body);
}

.principal-name {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid var(--primary-light);
}

.principal-name strong {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.principal-name span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.principal-sidebar-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 20px;
}

.principal-sidebar-photo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary-light);
}

.principal-sidebar-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-body);
}

.principal-sidebar-name {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--primary-dark);
}

/* ============================================
   ABOUT SECTION (Homepage)
   ============================================ */
.about-brief-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-body);
}

.about-features-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-feature-item {
    display: flex;
    gap: 15px;
    padding: 16px;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.about-feature-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.about-feature-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.about-feature-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.about-feature-item p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* About page specific */
.about-content-wrap {
    margin-bottom: 30px;
}

.content-heading {
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-body);
}

.about-highlight {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: 20px 25px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 25px 0;
    line-height: 1.8;
}

/* ============================================
   QUICK LINK CARDS (Homepage)
   ============================================ */
.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-body);
}

.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    color: var(--primary);
}

.quick-link-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 15px;
    transition: var(--transition);
}

.quick-link-card:hover .quick-link-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.quick-link-card h5 {
    margin-bottom: 5px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
}

.quick-link-card:hover h5 {
    color: var(--primary);
}

.quick-link-card p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ============================================
   FEATURE CARDS
   ============================================ */
.feature-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 1.7rem;
    background: var(--primary-light);
    color: var(--primary);
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   PAGE BANNER (Inner Pages)
   ============================================ */
.page-banner {
    background: linear-gradient(135deg, var(--primary-darker), var(--primary-dark), var(--primary));
    color: #fff;
    padding: 40px 0 30px;
    position: relative;
}

.page-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: var(--bg-body);
    clip-path: polygon(0 60%, 100% 0, 100% 100%, 0% 100%);
}

.page-banner h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.page-banner p {
    opacity: 0.8;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.page-banner .breadcrumb {
    background: rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    justify-content: flex-end;
}

.page-banner .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
}

.page-banner .breadcrumb-item a:hover {
    color: #fff;
}

.page-banner .breadcrumb-item.active {
    color: rgba(255,255,255,0.6);
}

.page-banner .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.4);
}

/* ============================================
   DETAIL ARTICLE (Notice/Event detail)
   ============================================ */
.detail-article {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.detail-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.detail-meta-item i {
    color: var(--primary);
}

.detail-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.4;
    font-family: var(--font-bn);
}

.detail-featured-image {
    margin-bottom: 25px;
    border-radius: var(--radius);
    overflow: hidden;
}

.detail-featured-image img {
    width: 100%;
    border-radius: var(--radius);
}

.detail-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-body);
}

.detail-content p {
    margin-bottom: 1rem;
}

.detail-content h2,
.detail-content h3,
.detail-content h4 {
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.detail-content ul,
.detail-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.detail-content img {
    border-radius: var(--radius-sm);
    margin: 15px 0;
}

.detail-content a {
    color: var(--primary);
    text-decoration: underline;
}

.detail-attachment {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

/* Event detail info bar */
.event-detail-info-bar {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.event-detail-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.event-detail-info-item i {
    font-size: 1.3rem;
    color: var(--primary);
}

.event-detail-info-item strong {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.event-detail-info-item span {
    display: block;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Share Buttons */
.detail-share {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.share-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.92rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    transition: var(--transition);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.facebook:hover {
    background: #0d65d9;
    transform: translateY(-2px);
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar-widget {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.sidebar-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    margin-bottom: 0;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5px;
    color: var(--text-body);
    transition: var(--transition);
}

.sidebar-list a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.sidebar-list-title {
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.4;
}

.sidebar-list-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    margin-left: 10px;
}

.sidebar-info {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.sidebar-info .sidebar-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}

.sidebar-contact-info {
    font-size: 0.9rem;
}

.sidebar-contact-info p {
    margin-bottom: 8px;
}

.sidebar-contact-info i {
    color: var(--primary);
    margin-right: 8px;
    width: 16px;
}

/* ============================================
   INFO CARDS
   ============================================ */
.info-card {
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    padding: 18px;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border-light);
    height: 100%;
}

.info-card-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.info-card-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow-md);
    height: 100%;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.contact-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.contact-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
}

.contact-value a {
    color: var(--text-dark);
}

.contact-value a:hover {
    color: var(--primary);
}

.contact-map-wrap {
    margin-top: 10px;
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: none;
}

/* ============================================
   RESULT PAGE
   ============================================ */
.result-search-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.result-search-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-light);
}

.result-search-header i {
    font-size: 1.5rem;
    color: var(--primary);
}

.result-search-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.result-table-wrap {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.result-table {
    border-collapse: separate;
    border-spacing: 0;
}

.result-table thead th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 15px;
    border: none;
    white-space: nowrap;
}

.result-table thead th:first-child {
    border-radius: var(--radius-sm) 0 0 0;
}

.result-table thead th:last-child {
    border-radius: 0 var(--radius-sm) 0 0;
}

.result-table tbody td {
    padding: 10px 15px;
    font-size: 0.9rem;
    vertical-align: middle;
    border-color: var(--border-light);
}

.result-table tbody tr:hover {
    background: var(--primary-50);
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--text-light);
    opacity: 0.3;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--primary-darker);
    color: rgba(255,255,255,0.85);
    padding: 60px 0 0;
}

.footer-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.footer-brand i {
    color: var(--accent);
    font-size: 1.5rem;
}

.footer-desc {
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.65);
    margin-bottom: 5px;
}

.footer-desc i {
    margin-right: 5px;
    color: var(--accent);
}

.footer-title {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255,255,255,0.65);
    font-size: 0.88rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-links a i {
    font-size: 0.7rem;
    margin-right: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
}

.footer-contact li i {
    color: var(--accent);
    margin-top: 4px;
    min-width: 16px;
}

.footer-contact a {
    color: rgba(255,255,255,0.65);
}

.footer-contact a:hover {
    color: var(--accent);
}

/* Footer Social */
.footer-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    transition: var(--transition);
}

.social-btn.facebook {
    background: #1877f2;
}

.social-btn.facebook:hover {
    background: #0d65d9;
    transform: translateY(-3px);
}

.social-btn.youtube {
    background: #ff0000;
}

.social-btn.youtube:hover {
    background: #cc0000;
    transform: translateY(-3px);
}

/* Footer Map */
.footer-map {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.map-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.map-wrapper iframe {
    width: 100%;
    height: 250px;
    border: none;
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 40px;
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
}

.footer-custom-text {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 999;
    cursor: pointer;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.back-to-top.visible {
    display: flex;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for cards */
.fade-in:nth-child(1) { transition-delay: 0ms; }
.fade-in:nth-child(2) { transition-delay: 100ms; }
.fade-in:nth-child(3) { transition-delay: 200ms; }
.fade-in:nth-child(4) { transition-delay: 300ms; }
.fade-in:nth-child(5) { transition-delay: 400ms; }
.fade-in:nth-child(6) { transition-delay: 500ms; }

/* ============================================
   PAGINATION STYLES
   ============================================ */
.pagination .page-link {
    color: var(--primary);
    border-color: var(--border-light);
    font-weight: 500;
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pagination .page-link:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-dark);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1199px) {
    .hero-title { font-size: 2.4rem; }
}

@media (max-width: 991px) {
    .hero-title { font-size: 2rem; }
    .hero-static, .hero-slide { padding: 60px 0 50px; min-height: 420px; }
    .hero-slide { min-height: 440px; }
    .counter-number { font-size: 2rem; }
    .section-padding { padding: 60px 0; }
    .section-title { font-size: 1.7rem; }
    .detail-title { font-size: 1.5rem; }

    /* Navbar mobile */
    .navbar-collapse {
        background: var(--bg-white);
        padding: 15px;
        border-radius: var(--radius);
        margin-top: 10px;
        box-shadow: var(--shadow-md);
    }

    .nav-link {
        padding: 10px 16px !important;
    }
}

@media (max-width: 767px) {
    .top-bar .d-flex {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .top-bar-right {
        justify-content: center;
    }

    .hero-title { font-size: 1.7rem; }
    .hero-islamic-greeting { font-size: 1.1rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-static, .hero-slide { padding: 40px 0 35px; min-height: 360px; }
    .hero-slide { min-height: 380px; }
    .hero-buttons { flex-direction: column; }
    .btn-hero { width: 100%; justify-content: center; }

    .section-padding { padding: 45px 0; }
    .section-title { font-size: 1.4rem; }
    .section-subtitle { font-size: 0.92rem; margin-bottom: 2rem; }

    .counter-section { padding: 30px 0; }
    .counter-card { padding: 15px 10px; }
    .counter-number { font-size: 1.8rem; }
    .counter-icon { width: 45px; height: 45px; font-size: 1.2rem; }

    .page-banner { padding: 30px 0 20px; }
    .page-banner h1 { font-size: 1.3rem; }

    .detail-article { padding: 20px; }
    .detail-title { font-size: 1.3rem; }
    .event-detail-info-bar { flex-direction: column; gap: 12px; }

    .result-search-card { padding: 20px; }
    .result-table { font-size: 0.82rem; }
    .result-table thead th,
    .result-table tbody td { padding: 8px 10px; }

    .site-footer { padding: 40px 0 0; }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .page-banner .breadcrumb {
        justify-content: flex-start;
        margin-top: 10px;
    }
}

@media (max-width: 575px) {
    .hero-title { font-size: 1.4rem; }
    .notice-card-image { height: 160px; }
    .event-card-image { height: 150px; }
    .principal-photo { width: 160px; height: 160px; }
    .principal-photo-placeholder { width: 160px; height: 160px; font-size: 4rem; }
}

/* ============================================
   PRINT STYLES (Result page)
   ============================================ */
@media print {
    .top-bar,
    #mainNavbar,
    .page-banner,
    .back-to-top,
    .detail-share,
    .sidebar-widget,
    .site-footer,
    .btn,
    .result-search-card,
    .no-print {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
        font-size: 12pt;
    }

    .result-table-wrap {
        box-shadow: none;
        border: none;
        padding: 0;
    }

    .result-table thead th {
        background: #333;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .detail-article {
        box-shadow: none;
        border: none;
        padding: 0;
    }
}

/* ============================================
   BANGLA TEXT HANDLING
   ============================================ */
/* Ensure Bangla text renders properly */
body, p, span, div, a, h1, h2, h3, h4, h5, h6,
li, td, th, label, button, input, select, textarea {
    font-family: var(--font-bn), sans-serif;
}

/* English numbers should use Inter */
.counter-number,
.sidebar-list-date,
.event-day,
.info-card-value {
    font-family: var(--font-en), var(--font-bn), sans-serif;
}

/* Arabic text styling */
.hero-islamic-greeting,
[lang="ar"] {
    font-family: var(--font-ar), serif;
    direction: rtl;
    unicode-bidi: bidi-override;
}

/* ============================================
   DEPARTMENT CARDS
   ============================================ */
.dept-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-body);
}

.dept-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    color: var(--text-body);
}

.dept-card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin: 0 auto 15px;
    transition: var(--transition);
}

.dept-card:hover .dept-card-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.dept-card-body {
    padding: 25px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dept-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.dept-card-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 15px;
}

.dept-card-meta {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.dept-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Department Detail */
.dept-info-bar {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.dept-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dept-info-item i {
    font-size: 1.3rem;
    color: var(--primary);
}

.dept-info-item strong {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.dept-info-item span {
    display: block;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
}

.dept-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dept-features-list li {
    padding: 10px 15px;
    border-left: 3px solid var(--primary);
    background: var(--primary-light);
    margin-bottom: 8px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.92rem;
}

.dept-fee-box {
    background: var(--bg-cream);
    border: 1px solid var(--accent-light);
    border-radius: var(--radius);
    padding: 25px;
}

.dept-fee-box h5 {
    color: var(--accent-dark);
    margin-bottom: 10px;
}

/* ============================================
   ADMISSION PAGE
   ============================================ */
.admission-status-banner {
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
}

.admission-status-banner.open {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border: 2px solid #22c55e;
    color: #166534;
}

.admission-status-banner.closed {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border: 2px solid #ef4444;
    color: #991b1b;
}

.admission-status-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.admission-form-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.admission-form-card .form-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.admission-form-card .form-control,
.admission-form-card .form-select {
    border-radius: var(--radius-sm);
    border-color: var(--border);
    padding: 10px 14px;
}

.admission-form-card .form-control:focus,
.admission-form-card .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 63, 0.15);
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
}

.gallery-pill {
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--text-body);
    transition: var(--transition);
    text-decoration: none;
}

.gallery-pill:hover,
.gallery-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.gallery-grid-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-grid-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.gallery-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    transition: var(--transition);
}

.gallery-item-overlay h6 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.gallery-item-overlay .badge {
    font-size: 0.7rem;
}

.gallery-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #dc2626;
    transition: var(--transition);
}

.gallery-grid-item:hover .gallery-video-play {
    background: #fff;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Lightbox Modal */
.lightbox-modal .modal-dialog {
    max-width: 900px;
}

.lightbox-modal .modal-content {
    background: transparent;
    border: none;
}

.lightbox-modal .modal-body {
    padding: 0;
}

.lightbox-modal .btn-close {
    position: absolute;
    top: -40px;
    right: 0;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.lightbox-modal img {
    border-radius: var(--radius);
}

/* ============================================
   ACHIEVEMENT CARDS
   ============================================ */
.achievement-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    height: 100%;
}

.achievement-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.achievement-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 12px;
}

.achievement-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.achievement-year {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
}

.achievement-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 8px;
}

/* ============================================
   ADMISSION CTA BANNER (Homepage)
   ============================================ */
.admission-cta-section {
    background: linear-gradient(135deg, var(--primary-darker), var(--primary));
    color: #fff;
    padding: 50px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.admission-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.admission-cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.admission-cta-text {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.admission-cta-btn {
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.admission-cta-btn.btn-gold {
    background: var(--accent);
    color: var(--primary-dark);
    border: 2px solid var(--accent);
}

.admission-cta-btn.btn-gold:hover {
    background: #d4aa35;
    border-color: #d4aa35;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(197, 155, 44, 0.5);
}

.admission-cta-btn.btn-outline-white {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}

.admission-cta-btn.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 25px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    text-decoration: none;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #1da851;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.social-btn.whatsapp {
    background: #25d366;
}

.social-btn.whatsapp:hover {
    background: #1da851;
}

/* ============================================
   ENHANCED TEACHER CARDS
   ============================================ */
.teacher-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
}

.teacher-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.teacher-card:hover::before {
    opacity: 1;
}

.teacher-photo-wrap {
    text-align: center;
    padding: 25px 20px 10px;
}

.teacher-photo-wrap img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary-light);
    transition: var(--transition);
}

.teacher-card:hover .teacher-photo-wrap img {
    border-color: var(--primary);
    transform: scale(1.05);
}

.teacher-photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), #e0f2e9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.3;
    margin: 0 auto;
}

.teacher-info {
    padding: 15px 20px 20px;
    text-align: center;
}

.teacher-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.teacher-designation {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 8px;
}

.teacher-phone {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.teacher-phone a {
    color: var(--text-muted);
}

.teacher-phone a:hover {
    color: var(--primary);
}

/* ============================================
   DEPARTMENTS SECTION (Homepage)
   ============================================ */
.dept-home-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 15px;
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-body);
    height: 100%;
}

.dept-home-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    color: var(--text-body);
}

.dept-home-card .dept-card-icon {
    margin-bottom: 10px;
}

.dept-home-card h6 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.dept-home-card .dept-meta-badge {
    font-size: 0.72rem;
}

/* ============================================
   FORM SUCCESS/ERROR MESSAGES
   ============================================ */
.alert-success-custom {
    background: #dcfce7;
    border: 1px solid #22c55e;
    border-radius: var(--radius-sm);
    padding: 15px 20px;
    color: #166534;
}

.alert-error-custom {
    background: #fee2e2;
    border: 1px solid #ef4444;
    border-radius: var(--radius-sm);
    padding: 15px 20px;
    color: #991b1b;
}

/* Tab Nav */
.custom-tab-nav .nav-link {
    color: var(--text-body);
    font-weight: 500;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: var(--transition);
}

.custom-tab-nav .nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
    border-bottom: 3px solid var(--primary);
}

.custom-tab-nav .nav-link:hover {
    color: var(--primary);
    background: var(--primary-50);
}

/* =========================================================
   PREMIUM LUXURY LIGHT THEME OVERRIDE
   Goal: Agency-level elegant, warm, premium Islamic academic UI
   ========================================================= */
:root {
    --primary: #0f5b43;
    --primary-dark: #083b2d;
    --primary-darker: #05281f;
    --primary-light: #e8f4ef;
    --primary-50: #f3fbf7;
    --primary-100: #e4f5ed;
    --primary-200: #ccebdd;
    --accent: #b98b2e;
    --accent-light: #fff0c8;
    --accent-dark: #8c651b;
    --text-dark: #16251f;
    --text-body: #3d5049;
    --text-muted: #71827b;
    --bg-body: #f8f4ea;
    --bg-white: rgba(255,255,255,.88);
    --bg-light: #f1eadc;
    --bg-cream: #fffaf0;
    --border: rgba(15,91,67,.13);
    --border-light: rgba(185,139,46,.18);
    --shadow-xs: 0 2px 8px rgba(8, 59, 45, .05);
    --shadow-sm: 0 10px 30px rgba(8, 59, 45, .08);
    --shadow-md: 0 18px 48px rgba(8, 59, 45, .11);
    --shadow-lg: 0 28px 80px rgba(8, 59, 45, .15);
    --shadow-xl: 0 38px 100px rgba(8, 59, 45, .2);
    --radius: 18px;
    --radius-sm: 12px;
    --radius-lg: 24px;
    --radius-xl: 34px;
    --transition: all .36s cubic-bezier(.22,1,.36,1);
}

html { scroll-padding-top: 96px; }
body {
    background:
        radial-gradient(circle at 10% 0%, rgba(255,240,200,.75), transparent 30%),
        radial-gradient(circle at 90% 10%, rgba(204,235,221,.8), transparent 26%),
        linear-gradient(180deg, #fffaf0 0%, #f7f0e4 40%, #f5efe3 100%);
    color: var(--text-body);
    letter-spacing: -.01em;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        linear-gradient(rgba(15,91,67,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15,91,67,.03) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.65), transparent 75%);
}

.container { position: relative; }
::selection { background: var(--accent); color: #fff; }

.section-padding { padding: 105px 0; position: relative; }
.bg-light-section {
    background:
        linear-gradient(135deg, rgba(255,255,255,.38), rgba(232,244,239,.72)),
        radial-gradient(circle at top right, rgba(185,139,46,.12), transparent 34%);
    border-top: 1px solid rgba(185,139,46,.12);
    border-bottom: 1px solid rgba(15,91,67,.08);
}
.section-title {
    font-size: clamp(2rem, 3.4vw, 3.25rem);
    line-height: 1.25;
    font-weight: 800;
    color: var(--primary-darker);
    letter-spacing: -.04em;
    margin-bottom: .65rem;
}
.section-title-icon {
    width: 52px;
    height: 52px;
    display: inline-grid;
    place-items: center;
    margin-right: 8px;
    border-radius: 18px;
    color: var(--accent);
    background: linear-gradient(135deg, #fff8e8, #f5e2ac);
    box-shadow: 0 16px 34px rgba(185,139,46,.18), inset 0 0 0 1px rgba(185,139,46,.18);
    vertical-align: middle;
}
.section-subtitle {
    font-size: 1.12rem;
    color: #697b72;
    max-width: 760px;
    margin-bottom: 3.7rem;
}
.section-divider {
    width: 120px;
    height: 5px;
    margin: 18px auto 22px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--primary), transparent);
    box-shadow: 0 8px 20px rgba(185,139,46,.2);
}

/* Top bar + navigation */
.top-bar {
    background: linear-gradient(90deg, #073327, #0f5b43 48%, #073327);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.top-bar .d-flex { gap: 12px; }
.btn-admin-login, .btn-login-link {
    border-radius: 999px !important;
    padding: 7px 16px !important;
    background: rgba(255,255,255,.13) !important;
    border: 1px solid rgba(255,240,200,.32) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}
#mainNavbar {
    background: rgba(255,250,240,.78) !important;
    backdrop-filter: blur(22px) saturate(135%);
    -webkit-backdrop-filter: blur(22px) saturate(135%);
    border-bottom: 1px solid rgba(185,139,46,.16);
    box-shadow: 0 18px 55px rgba(8,59,45,.08);
    padding: 16px 0;
}
#mainNavbar.scrolled {
    padding: 9px 0;
    background: rgba(255,255,255,.86) !important;
    box-shadow: 0 18px 55px rgba(8,59,45,.13);
}
.navbar-brand { gap: 14px; }
.brand-logo, .brand-icon-wrap {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    background: linear-gradient(145deg, #fff8e8, #e6f4ee);
    box-shadow: 0 16px 38px rgba(8,59,45,.13), inset 0 0 0 1px rgba(185,139,46,.18);
    padding: 6px;
}
.brand-icon-wrap { color: var(--primary); font-size: 1.85rem; }
.brand-name {
    font-size: clamp(1rem, 1.45vw, 1.38rem);
    font-weight: 800;
    color: var(--primary-darker);
    letter-spacing: -.03em;
}
.brand-address { color: #75847e; max-width: 290px; }
.navbar-nav { gap: 4px; align-items: center; }
.nav-link {
    border-radius: 999px !important;
    padding: 10px 14px !important;
    color: #22362f !important;
    font-weight: 700;
    position: relative;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-dark) !important;
    background: linear-gradient(135deg, rgba(232,244,239,.95), rgba(255,240,200,.6)) !important;
    box-shadow: inset 0 0 0 1px rgba(15,91,67,.08), 0 10px 24px rgba(8,59,45,.08);
    transform: translateY(-1px);
}
.navbar-toggler {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #fff7e6;
    box-shadow: inset 0 0 0 1px rgba(185,139,46,.22), 0 12px 28px rgba(8,59,45,.08);
}

/* Hero */
.hero-section {
    min-height: 690px;
    padding: 0;
    color: var(--primary-darker);
    background:
        radial-gradient(circle at 15% 20%, rgba(255,240,200,.92), transparent 34%),
        radial-gradient(circle at 80% 25%, rgba(204,235,221,.9), transparent 36%),
        linear-gradient(135deg, #fff8ea 0%, #eef7f1 52%, #f8edda 100%) !important;
    overflow: hidden;
    border-bottom: 1px solid rgba(185,139,46,.18);
}
.hero-section::before {
    opacity: .42;
    background:
        linear-gradient(115deg, rgba(255,255,255,.55), transparent 38%),
        url("data:image/svg+xml,%3Csvg width='90' height='90' viewBox='0 0 90 90' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%230f5b43' stroke-opacity='.08'%3E%3Cpath d='M45 4l12 24 26 4-19 18 5 26-24-13-24 13 5-26L7 32l26-4z'/%3E%3Ccircle cx='45' cy='45' r='25'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-section::after {
    width: 540px;
    height: 540px;
    right: -160px;
    bottom: -190px;
    background: radial-gradient(circle, rgba(185,139,46,.25), transparent 66%);
}
.hero-static, .hero-carousel .carousel-item {
    min-height: 690px;
    display: flex;
    align-items: center;
    padding: 110px 0 120px;
}
.hero-overlay {
    background: linear-gradient(90deg, rgba(255,250,240,.9), rgba(255,250,240,.58), rgba(255,250,240,.82)) !important;
}
.hero-content { z-index: 3; }
.hero-islamic-greeting {
    display: inline-flex;
    color: var(--accent-dark);
    background: rgba(255,255,255,.58);
    border: 1px solid rgba(185,139,46,.2);
    border-radius: 999px;
    padding: 10px 18px;
    box-shadow: 0 12px 30px rgba(185,139,46,.12);
}
.hero-title {
    max-width: 860px;
    font-size: clamp(2.6rem, 5.7vw, 5.6rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -.065em;
    color: var(--primary-darker);
    text-shadow: none;
    margin-top: 18px;
    margin-bottom: 22px;
}
.hero-subtitle {
    max-width: 760px;
    color: #4a6258;
    opacity: 1;
    font-size: clamp(1.05rem, 1.6vw, 1.34rem);
    line-height: 1.95;
}
.hero-buttons { gap: 16px; margin-top: 32px; }
.btn-hero, .btn, .admission-cta-btn {
    border-radius: 999px !important;
    font-weight: 800;
    letter-spacing: -.01em;
    transition: var(--transition);
}
.btn-hero {
    padding: 15px 28px;
    box-shadow: 0 18px 40px rgba(8,59,45,.13);
}
.btn-hero-primary, .admission-cta-btn.btn-gold, .btn-success, .btn-outline-success:hover {
    color: #fff !important;
    border: 0 !important;
    background: linear-gradient(135deg, #0f5b43, #18835f 48%, #b98b2e) !important;
    box-shadow: 0 18px 44px rgba(15,91,67,.24), inset 0 1px 0 rgba(255,255,255,.22) !important;
}
.btn-hero-primary:hover, .admission-cta-btn.btn-gold:hover, .btn-success:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 60px rgba(15,91,67,.3) !important;
}
.btn-hero-outline, .btn-outline-success, .admission-cta-btn.btn-outline-white {
    color: var(--primary-dark) !important;
    border: 1px solid rgba(15,91,67,.18) !important;
    background: rgba(255,255,255,.7) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 36px rgba(8,59,45,.08) !important;
}
.btn-hero-outline:hover, .btn-outline-success:hover {
    color: #fff !important;
    transform: translateY(-4px);
}
.hero-image-wrap {
    border-radius: 38px;
    padding: 14px;
    background: linear-gradient(145deg, rgba(255,255,255,.76), rgba(255,240,200,.42));
    box-shadow: 0 35px 90px rgba(8,59,45,.18), inset 0 0 0 1px rgba(185,139,46,.2);
    transform: rotate(2deg);
}
.hero-image { border-radius: 28px; box-shadow: 0 24px 55px rgba(8,59,45,.18); }
.hero-shape {
    height: 88px;
    background: linear-gradient(180deg, rgba(255,250,240,0), var(--bg-body));
    clip-path: ellipse(72% 70% at 50% 100%);
}

/* Premium cards */
.counter-card,
.notice-card,
.event-card,
.dept-card,
.dept-home-card,
.quick-link-card,
.feature-card,
.principal-sidebar-card,
.info-card,
.contact-card,
.result-search-card,
.admission-form-card,
.gallery-grid-item,
.achievement-card,
.teacher-card,
.page-content-card,
.content-card,
.sidebar-card {
    border: 1px solid rgba(185,139,46,.16) !important;
    background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(255,250,240,.74)) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: 0 22px 60px rgba(8,59,45,.09), inset 0 1px 0 rgba(255,255,255,.84) !important;
    overflow: hidden;
    position: relative;
}
.counter-card::before,
.notice-card::before,
.event-card::before,
.dept-card::before,
.dept-home-card::before,
.quick-link-card::before,
.feature-card::before,
.contact-card::before,
.teacher-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,.55), transparent 42%), radial-gradient(circle at top right, rgba(185,139,46,.12), transparent 34%);
    opacity: .85;
}
.counter-card:hover,
.notice-card:hover,
.event-card:hover,
.dept-card:hover,
.dept-home-card:hover,
.quick-link-card:hover,
.feature-card:hover,
.info-card:hover,
.contact-card:hover,
.gallery-grid-item:hover,
.achievement-card:hover,
.teacher-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 34px 85px rgba(8,59,45,.15), inset 0 1px 0 rgba(255,255,255,.9) !important;
    border-color: rgba(185,139,46,.34) !important;
}
.counter-icon,
.dept-card-icon,
.quick-link-icon,
.contact-icon,
.teacher-photo-placeholder,
.principal-photo-placeholder {
    background: linear-gradient(135deg, #0f5b43, #1b8b66 55%, #b98b2e) !important;
    color: #fff !important;
    box-shadow: 0 18px 40px rgba(15,91,67,.22), inset 0 1px 0 rgba(255,255,255,.22) !important;
}
.counter-number,
.teacher-name,
.notice-card-title a,
.event-card-title a,
.dept-card-title,
.quick-link-card h5,
.contact-value,
.info-card-value {
    color: var(--primary-darker) !important;
    font-weight: 800;
}
.counter-label,
.notice-card-excerpt,
.event-card-excerpt,
.dept-card-desc,
.quick-link-card p { color: #71827b !important; }

.notice-card-image,
.event-card-image,
.gallery-grid-item,
.teacher-photo-wrap,
.principal-photo-wrap {
    border-radius: 28px;
    overflow: hidden;
}
.notice-card-image img,
.event-card-image img,
.gallery-grid-item img,
.teacher-photo-wrap img,
.principal-photo {
    transition: transform .75s cubic-bezier(.22,1,.36,1), filter .75s ease;
}
.notice-card:hover img,
.event-card:hover img,
.gallery-grid-item:hover img,
.teacher-card:hover img,
.principal-photo-wrap:hover img {
    transform: scale(1.08);
    filter: saturate(1.08) contrast(1.04);
}
.notice-date-badge,
.notice-type-badge,
.event-date-badge,
.dept-meta-badge,
.event-status-badge,
.gallery-pill,
.badge {
    border-radius: 999px !important;
    border: 1px solid rgba(185,139,46,.18);
    background: linear-gradient(135deg, #fff8e8, #e9f6ef) !important;
    color: var(--primary-dark) !important;
    box-shadow: 0 10px 24px rgba(8,59,45,.06);
    font-weight: 800;
}
.gallery-pill:hover, .gallery-pill.active {
    color: #fff !important;
    background: linear-gradient(135deg, #0f5b43, #b98b2e) !important;
    transform: translateY(-2px);
}
.notice-read-more,
.event-card-info i,
.footer-links a:hover,
.footer-contact a:hover { color: var(--accent-dark) !important; }

/* Page headers / inner content */
.page-header,
.inner-hero,
.admission-cta-section {
    background:
        radial-gradient(circle at 18% 15%, rgba(255,240,200,.85), transparent 34%),
        radial-gradient(circle at 86% 20%, rgba(204,235,221,.85), transparent 32%),
        linear-gradient(135deg, #fff9ed, #edf7f1) !important;
    color: var(--primary-darker) !important;
    border-bottom: 1px solid rgba(185,139,46,.18);
}
.page-header h1,
.inner-hero h1,
.admission-cta-title { color: var(--primary-darker) !important; font-weight: 900; letter-spacing: -.055em; }
.breadcrumb, .breadcrumb a { color: #60756b !important; }

/* Forms */
.form-control,
.form-select {
    min-height: 50px;
    border-radius: 16px !important;
    border: 1px solid rgba(15,91,67,.14) !important;
    background: rgba(255,255,255,.8) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 10px 24px rgba(8,59,45,.04);
}
.form-control:focus,
.form-select:focus {
    border-color: rgba(185,139,46,.58) !important;
    box-shadow: 0 0 0 .25rem rgba(185,139,46,.14), 0 18px 36px rgba(8,59,45,.08) !important;
}

/* Footer */
.site-footer {
    color: rgba(255,255,255,.82);
    background:
        radial-gradient(circle at 15% 0%, rgba(185,139,46,.3), transparent 28%),
        radial-gradient(circle at 85% 15%, rgba(39,139,101,.34), transparent 32%),
        linear-gradient(135deg, #05281f 0%, #083b2d 48%, #051d17 100%) !important;
    padding: 86px 0 0;
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='90' height='90' viewBox='0 0 90 90' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23fff0c8' stroke-opacity='.08'%3E%3Cpath d='M45 8l10 27 27 10-27 10-10 27-10-27L8 45l27-10z'/%3E%3C/g%3E%3C/svg%3E");
    opacity: .7;
}
.footer-brand,
.footer-title,
.footer-links,
.footer-contact,
.footer-social,
.footer-desc,
.footer-map,
.footer-bottom { position: relative; z-index: 1; }
.footer-brand {
    gap: 14px;
    color: #fff;
    font-weight: 900;
    font-size: 1.32rem;
}
.footer-logo,
.footer-brand i {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,240,200,.22);
    box-shadow: 0 18px 44px rgba(0,0,0,.22);
    padding: 8px;
}
.footer-title {
    color: #fff0c8 !important;
    font-weight: 900;
    letter-spacing: -.02em;
    margin-bottom: 22px;
}
.footer-title::after {
    width: 54px;
    height: 3px;
    background: linear-gradient(90deg, #fff0c8, transparent);
}
.footer-links a,
.footer-contact a,
.footer-desc,
.footer-contact li { color: rgba(255,255,255,.76) !important; }
.footer-links a:hover {
    color: #fff0c8 !important;
    transform: translateX(7px);
}
.footer-contact li i {
    color: #fff0c8 !important;
    background: rgba(255,255,255,.09);
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
}
.social-btn,
.whatsapp-float,
.back-to-top {
    box-shadow: 0 18px 42px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.22) !important;
}
.social-btn {
    border-radius: 18px !important;
    background: rgba(255,255,255,.11) !important;
    border: 1px solid rgba(255,240,200,.18);
    color: #fff !important;
}
.social-btn:hover { background: linear-gradient(135deg, #0f5b43, #b98b2e) !important; transform: translateY(-5px); }
.footer-bottom {
    margin-top: 58px;
    background: rgba(0,0,0,.18);
    border-top: 1px solid rgba(255,255,255,.1);
}
.map-wrapper {
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255,240,200,.18);
    box-shadow: 0 24px 70px rgba(0,0,0,.24);
}
.whatsapp-float {
    background: linear-gradient(135deg, #22c55e, #0f5b43) !important;
    border: 1px solid rgba(255,255,255,.3);
}
.back-to-top {
    background: linear-gradient(135deg, #0f5b43, #b98b2e) !important;
    border: 0 !important;
}

/* Tables and utility blocks */
.table, table {
    --bs-table-bg: rgba(255,255,255,.74);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(8,59,45,.07);
}
.table thead th, table thead th {
    background: linear-gradient(135deg, #0f5b43, #18795a) !important;
    color: #fff !important;
    border: 0 !important;
}
.alert {
    border-radius: 22px;
    border: 1px solid rgba(185,139,46,.18);
    box-shadow: 0 16px 38px rgba(8,59,45,.06);
}

/* Motion polish */
.fade-in { transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
@media (prefers-reduced-motion: no-preference) {
    .hero-islamic-greeting { animation: luxuryFloat 4.8s ease-in-out infinite; }
    .hero-image-wrap { animation: luxuryFloat 5.6s ease-in-out infinite; }
    @keyframes luxuryFloat { 0%,100% { transform: translateY(0) rotate(1deg); } 50% { transform: translateY(-10px) rotate(0deg); } }
}

/* Responsive premium tuning */
@media (max-width: 991.98px) {
    .section-padding { padding: 78px 0; }
    .top-bar { display: none; }
    #mainNavbar { padding: 10px 0; }
    .navbar-collapse {
        margin-top: 14px;
        padding: 16px;
        border-radius: 24px;
        background: rgba(255,255,255,.84);
        border: 1px solid rgba(185,139,46,.16);
        box-shadow: 0 20px 50px rgba(8,59,45,.1);
    }
    .navbar-nav { align-items: stretch; }
    .nav-link { padding: 13px 16px !important; }
    .hero-section, .hero-static, .hero-carousel .carousel-item { min-height: auto; }
    .hero-static, .hero-carousel .carousel-item { padding: 86px 0 98px; }
    .hero-title { font-size: clamp(2.25rem, 10vw, 4rem); }
    .hero-subtitle { font-size: 1.04rem; }
}
@media (max-width: 575.98px) {
    .brand-logo, .brand-icon-wrap { width: 48px; height: 48px; border-radius: 16px; }
    .brand-address { display: none; }
    .section-title-icon { width: 42px; height: 42px; border-radius: 14px; }
    .hero-buttons { flex-direction: column; }
    .btn-hero { width: 100%; justify-content: center; }
    .counter-card,
    .notice-card,
    .event-card,
    .dept-card,
    .dept-home-card,
    .quick-link-card,
    .feature-card,
    .teacher-card { border-radius: 24px !important; }
    .site-footer { padding-top: 58px; }
    .footer-bottom .row { gap: 10px; text-align: center; }
}

/* ============================================
   Requested Premium Header + Post-Hero Ticker
   ============================================ */
.premium-site-header {
    background:
        radial-gradient(circle at 18% 0%, rgba(255,240,200,.9), transparent 34%),
        radial-gradient(circle at 84% 20%, rgba(214,239,227,.86), transparent 30%),
        linear-gradient(135deg, rgba(255,253,247,.94), rgba(240,249,244,.93));
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border-bottom: 1px solid rgba(185,139,46,.22);
    box-shadow: 0 20px 60px rgba(8,59,45,.10);
    z-index: 1060;
    padding: 10px 0 12px;
}
.premium-brand-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
    align-items: center;
    gap: 24px;
    position: relative;
}
.premium-brand-name {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.premium-brand-bn { text-align: left; align-items: flex-start; }
.premium-brand-en { text-align: right; align-items: flex-end; }
.brand-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    color: var(--accent-dark);
    font-family: var(--font-en);
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .68rem;
    background: rgba(255,255,255,.64);
    border: 1px solid rgba(185,139,46,.18);
    border-radius: 999px;
    padding: 5px 11px;
    box-shadow: 0 10px 25px rgba(185,139,46,.08);
}
.brand-main-name {
    color: var(--primary-darker) !important;
    font-size: clamp(1.15rem, 2vw, 1.82rem);
    font-weight: 950;
    line-height: 1.25;
    letter-spacing: -.04em;
    text-wrap: balance;
}
.brand-main-name-en {
    font-family: var(--font-en);
    letter-spacing: -.055em;
}
.brand-address-line {
    color: #667970;
    font-size: .82rem;
    font-weight: 700;
    max-width: 420px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.premium-logo-center {
    width: 100px;
    height: 100px;
    border-radius: 32px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(145deg, rgba(255,255,255,.92), rgba(255,246,225,.74));
    border: 1px solid rgba(185,139,46,.26);
    box-shadow: 0 24px 58px rgba(8,59,45,.16), inset 0 1px 0 rgba(255,255,255,.85);
    position: relative;
    isolation: isolate;
}
.premium-logo-center::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 38px;
    background: linear-gradient(135deg, rgba(15,91,67,.18), rgba(185,139,46,.18));
    z-index: -1;
    opacity: .62;
}
.premium-center-logo {
    width: 78px;
    height: 78px;
    object-fit: contain;
    border-radius: 24px;
}
.logo-fallback {
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 2.1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}
.premium-mobile-toggler { display: none; }
.premium-menu-wrap {
    margin-top: 12px;
    padding: 0;
}
.premium-navbar {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px 8px;
    padding: 12px;
    border-radius: 26px;
    background: rgba(255,255,255,.58);
    border: 1px solid rgba(185,139,46,.15);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.78), 0 16px 40px rgba(8,59,45,.07);
}
.premium-navbar .nav-link {
    font-size: .9rem;
    padding: 9px 13px !important;
}
.premium-site-header.scrolled {
    padding: 7px 0 9px;
    background: rgba(255,253,247,.9) !important;
}
.premium-site-header.scrolled .premium-logo-center {
    width: 84px;
    height: 84px;
    border-radius: 28px;
}
.premium-site-header.scrolled .premium-center-logo {
    width: 64px;
    height: 64px;
}
.premium-site-header.scrolled .brand-kicker,
.premium-site-header.scrolled .brand-address-line { display: none; }
.premium-site-header.scrolled .premium-menu-wrap { margin-top: 8px; }

.premium-ticker-section {
    margin-top: -38px;
    position: relative;
    z-index: 5;
    padding-bottom: 34px;
}
.premium-ticker-card {
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(185,139,46,.22);
    background:
        radial-gradient(circle at 8% 0%, rgba(255,240,200,.72), transparent 28%),
        linear-gradient(145deg, rgba(255,255,255,.94), rgba(240,249,244,.88));
    box-shadow: 0 28px 80px rgba(8,59,45,.14), inset 0 1px 0 rgba(255,255,255,.86);
}
.ticker-lane {
    display: grid;
    grid-template-columns: 190px minmax(0,1fr);
    align-items: center;
    min-height: 58px;
}
.ticker-lane + .ticker-lane { border-top: 1px solid rgba(15,91,67,.10); }
.ticker-label {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, #0f5b43, #18835f 58%, #b98b2e);
    box-shadow: 12px 0 32px rgba(8,59,45,.10);
    white-space: nowrap;
}
.event-lane .ticker-label { background: linear-gradient(135deg, #b98b2e, #18835f 54%, #0f5b43); }
.ticker-track-wrap {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-track {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 16px;
    padding: 0 18px;
    animation: premiumTicker 28s linear infinite;
}
.ticker-track-reverse { animation-direction: reverse; animation-duration: 32s; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-darker) !important;
    font-weight: 850;
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(185,139,46,.16);
    box-shadow: 0 10px 24px rgba(8,59,45,.06);
}
.ticker-item::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(185,139,46,.13);
}
.ticker-item:hover {
    background: linear-gradient(135deg, #fff8e8, #e9f6ef);
    transform: translateY(-1px);
}
@keyframes premiumTicker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (max-width: 991.98px) {
    .premium-site-header { padding: 10px 0; }
    .premium-brand-row {
        grid-template-columns: auto minmax(0,1fr) auto;
        gap: 12px;
    }
    .premium-logo-center {
        grid-column: 1;
        grid-row: 1;
        width: 62px;
        height: 62px;
        border-radius: 22px;
    }
    .premium-center-logo { width: 48px; height: 48px; border-radius: 16px; }
    .premium-brand-bn {
        grid-column: 2;
        grid-row: 1;
    }
    .premium-brand-en { display: none; }
    .brand-kicker, .brand-address-line { display: none; }
    .brand-main-name { font-size: 1.08rem; }
    .premium-mobile-toggler {
        display: grid;
        place-items: center;
        grid-column: 3;
        grid-row: 1;
        margin-left: auto;
    }
    .premium-menu-wrap { margin-top: 0; }
    .premium-menu-wrap .navbar-collapse {
        margin-top: 14px;
        width: 100%;
    }
    .premium-navbar {
        align-items: stretch;
        justify-content: flex-start;
        border-radius: 24px;
        padding: 13px;
    }
    .premium-navbar .nav-item { width: 100%; }
    .premium-navbar .nav-link { width: 100%; padding: 13px 16px !important; }
    .premium-ticker-section { margin-top: -26px; padding-bottom: 26px; }
    .ticker-lane { grid-template-columns: 1fr; }
    .ticker-label {
        min-height: 44px;
        justify-content: center;
        box-shadow: none;
    }
    .ticker-track { padding: 10px 14px; animation-duration: 22s; }
    .ticker-track-reverse { animation-duration: 26s; }
}
@media (max-width: 575.98px) {
    .premium-logo-center { width: 56px; height: 56px; border-radius: 19px; }
    .premium-center-logo { width: 42px; height: 42px; }
    .premium-logo-center::before { inset: -5px; border-radius: 24px; }
    .brand-main-name { font-size: .98rem; line-height: 1.35; }
    .premium-ticker-card { border-radius: 24px; }
    .ticker-item { font-size: .88rem; padding: 7px 13px; }
}

/* =========================================================
   FINAL REWORK: Refined Premium Light Institutional Theme
   Palette: Ivory, champagne, muted emerald, ink navy
   ========================================================= */
:root{
    --primary:#12453f;
    --primary-dark:#0a2d2a;
    --primary-darker:#071f1d;
    --primary-light:#eef7f3;
    --accent:#b8914a;
    --accent-light:#efe1c2;
    --accent-dark:#80622e;
    --text-dark:#142624;
    --text-body:#43514f;
    --text-muted:#73807e;
    --bg-body:#f6f1e8;
    --bg-white:#fffdf8;
    --bg-light:#f2eadc;
    --bg-cream:#fbf6eb;
    --border:#e4d7bd;
    --border-light:#eee5d4;
    --shadow-sm:0 8px 24px rgba(20,38,36,.07);
    --shadow-md:0 16px 42px rgba(20,38,36,.10);
    --shadow-lg:0 26px 70px rgba(20,38,36,.14);
    --shadow-xl:0 36px 100px rgba(20,38,36,.18);
}

html, body{background:
    radial-gradient(circle at 8% 2%, rgba(184,145,74,.15), transparent 34%),
    radial-gradient(circle at 92% 0%, rgba(18,69,63,.10), transparent 32%),
    linear-gradient(180deg,#fbf7ee 0%, #f7f1e5 42%, #f9f5ec 100%) !important;
    color:var(--text-body);
}
body::before{
    content:""; position:fixed; inset:0; pointer-events:none; z-index:-1;
    background-image:linear-gradient(rgba(18,69,63,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(18,69,63,.025) 1px,transparent 1px);
    background-size:42px 42px;
}

.top-bar{
    background:linear-gradient(90deg,#082421,#123f3a,#082421) !important;
    border-bottom:1px solid rgba(239,225,194,.24);
    color:rgba(255,253,248,.88);
}
.btn-admin-login{
    background:rgba(184,145,74,.16)!important; border:1px solid rgba(239,225,194,.34)!important;
    color:#fff8e8!important; border-radius:999px; padding:5px 12px!important;
}

.premium-site-header{
    background:rgba(255,253,248,.88)!important;
    backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px);
    border-bottom:1px solid rgba(228,215,189,.8)!important;
    box-shadow:0 18px 55px rgba(20,38,36,.08)!important;
}
.premium-brand-row{
    min-height:122px!important; padding:18px 0 14px!important;
    display:grid!important; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important; align-items:center!important; gap:24px!important;
    position:relative;
}
.premium-brand-row::after{
    content:""; position:absolute; left:0; right:0; bottom:0; height:1px;
    background:linear-gradient(90deg,transparent,rgba(184,145,74,.45),rgba(18,69,63,.18),rgba(184,145,74,.45),transparent);
}
.premium-brand-name{padding:0 10px!important; min-width:0;}
.premium-brand-bn{text-align:left!important;}
.premium-brand-en{text-align:right!important; font-family:var(--font-en);}
.brand-kicker{
    display:inline-flex!important; align-items:center; gap:6px;
    color:#8b7039!important; background:rgba(184,145,74,.10); border:1px solid rgba(184,145,74,.22);
    border-radius:999px; padding:4px 12px; font-size:.74rem!important; font-weight:700; letter-spacing:.04em;
}
.brand-main-name{
    display:block!important; margin-top:9px!important;
    color:#102b28!important; font-weight:800!important; line-height:1.18!important;
    font-size:clamp(1.35rem,2.3vw,2.05rem)!important; letter-spacing:-.02em;
    text-shadow:0 1px 0 #fff;
}
.brand-main-name-en{font-size:clamp(1.05rem,1.75vw,1.55rem)!important; font-weight:800!important; text-transform:uppercase; letter-spacing:.025em;}
.brand-address-line{display:block!important; margin-top:8px!important; color:#697774!important; font-size:.86rem!important; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.premium-logo-center{
    width:104px!important; height:104px!important; display:grid!important; place-items:center!important;
    background:linear-gradient(145deg,#fffefa,#f4ead5)!important;
    border:1px solid rgba(184,145,74,.35)!important; border-radius:30px!important;
    box-shadow:inset 0 1px 0 #fff, 0 22px 44px rgba(18,69,63,.14), 0 0 0 8px rgba(255,253,248,.72)!important;
}
.premium-center-logo{max-width:78px!important; max-height:78px!important; object-fit:contain; filter:drop-shadow(0 8px 14px rgba(18,69,63,.16));}

.premium-menu-wrap{padding:12px 0 14px!important;}
.premium-navbar{display:flex!important; flex-wrap:wrap!important; justify-content:center!important; gap:8px!important; width:100%;}
.premium-navbar .nav-item{margin:0!important;}
.premium-navbar .nav-link{
    color:#263c39!important; background:rgba(255,253,248,.7)!important;
    border:1px solid rgba(228,215,189,.75)!important; border-radius:999px!important;
    padding:9px 15px!important; font-weight:700!important; font-size:.91rem!important; line-height:1.2!important;
    box-shadow:0 6px 18px rgba(20,38,36,.04)!important;
}
.premium-navbar .nav-link i{color:#a9853f!important; margin-right:5px;}
.premium-navbar .nav-link:hover,
.premium-navbar .nav-link.active{
    color:#fffaf0!important; background:linear-gradient(135deg,#0d3531,#17645b)!important;
    border-color:rgba(184,145,74,.58)!important; transform:translateY(-2px);
    box-shadow:0 14px 26px rgba(18,69,63,.18)!important;
}
.premium-navbar .nav-link:hover i,.premium-navbar .nav-link.active i{color:#e8c982!important;}

.hero-section{background:transparent!important; padding:18px 0 0!important; position:relative; overflow:visible!important;}
.hero-static,.hero-slide{
    min-height:560px!important; border-radius:0 0 42px 42px!important; overflow:hidden;
    background:
      linear-gradient(110deg,rgba(10,45,42,.94),rgba(18,69,63,.78) 45%,rgba(184,145,74,.26)),
      radial-gradient(circle at 76% 22%,rgba(239,225,194,.30),transparent 32%),
      linear-gradient(135deg,#103a36,#1c665c)!important;
    box-shadow:0 34px 90px rgba(18,69,63,.18)!important;
}
.hero-overlay{background:linear-gradient(90deg,rgba(7,31,29,.88),rgba(7,31,29,.54),rgba(184,145,74,.12))!important;}
.hero-static::before,.hero-slide::before{
    background-image:radial-gradient(circle at 22% 18%,rgba(255,253,248,.13),transparent 24%),linear-gradient(135deg,transparent 0 46%,rgba(255,253,248,.07) 46% 47%,transparent 47% 100%)!important;
}
.hero-content{min-height:560px!important;}
.hero-islamic-greeting{
    color:#ecd9ad!important; background:rgba(255,253,248,.09); border:1px solid rgba(239,225,194,.24);
    display:inline-block; padding:8px 18px; border-radius:999px; margin-bottom:18px!important;
}
.hero-title{font-size:clamp(2.2rem,5vw,4.8rem)!important; line-height:1.08!important; color:#fffdf8!important; letter-spacing:-.035em; max-width:920px;}
.hero-subtitle{color:rgba(255,253,248,.82)!important; font-size:1.18rem!important; max-width:730px!important;}
.btn-hero-primary{background:linear-gradient(135deg,#d8bd78,#a97e35)!important; color:#102b28!important; border:0!important; box-shadow:0 18px 36px rgba(184,145,74,.28)!important;}
.btn-hero-outline{background:rgba(255,253,248,.10)!important; color:#fffdf8!important; border:1px solid rgba(239,225,194,.45)!important; backdrop-filter:blur(12px);}
.hero-shape{display:none!important;}

.premium-ticker-section{margin-top:-28px!important; position:relative; z-index:4; padding-bottom:28px!important;}
.premium-ticker-card{
    background:rgba(255,253,248,.94)!important; border:1px solid rgba(228,215,189,.88)!important; border-radius:26px!important;
    box-shadow:0 24px 70px rgba(20,38,36,.13)!important; overflow:hidden;
}
.ticker-lane{display:grid!important; grid-template-columns:190px minmax(0,1fr)!important; align-items:center; min-height:54px; border-bottom:1px solid rgba(228,215,189,.68)!important;}
.ticker-lane:last-child{border-bottom:0!important;}
.ticker-label{height:100%; display:flex!important; align-items:center; justify-content:center; gap:8px; font-weight:800!important; color:#fffaf0!important; background:linear-gradient(135deg,#103a36,#17645b)!important;}
.event-lane .ticker-label{background:linear-gradient(135deg,#8b6426,#c19b54)!important; color:#142624!important;}
.ticker-track-wrap{background:linear-gradient(90deg,#fffdf8,#f7eedf)!important;}
.ticker-item{color:#263c39!important; font-weight:700!important;}
.ticker-item::before{background:#b8914a!important; box-shadow:0 0 0 4px rgba(184,145,74,.12);}

.section-padding{padding:92px 0!important;}
.section-title{color:#142624!important; font-size:clamp(1.75rem,3vw,2.65rem)!important; letter-spacing:-.02em;}
.section-subtitle{color:#6d7976!important;}
.section-divider{background:linear-gradient(90deg,transparent,#b8914a,#12453f,#b8914a,transparent)!important; height:2px!important; width:120px!important;}
.bg-light-section{background:linear-gradient(180deg,#f5ecdc,#fbf6eb)!important;}
.card,.notice-card,.event-card,.department-card,.teacher-card,.stat-card,.feature-card,.gallery-card{
    background:rgba(255,253,248,.92)!important; border:1px solid rgba(228,215,189,.82)!important; border-radius:24px!important;
    box-shadow:0 18px 50px rgba(20,38,36,.08)!important;
}
.card:hover,.notice-card:hover,.event-card:hover,.department-card:hover,.teacher-card:hover,.feature-card:hover,.gallery-card:hover{
    transform:translateY(-7px); box-shadow:0 28px 72px rgba(20,38,36,.14)!important; border-color:rgba(184,145,74,.55)!important;
}
.btn,.btn-success,.btn-primary,.btn-outline-success,.admission-cta-btn{border-radius:999px!important; font-weight:800!important;}
.btn-success,.btn-primary{background:linear-gradient(135deg,#103a36,#17645b)!important; border-color:#17645b!important;}
.footer,.site-footer{background:linear-gradient(145deg,#071f1d,#103a36)!important;}

@media (max-width:991.98px){
    .premium-brand-row{grid-template-columns:auto minmax(0,1fr) auto!important; min-height:auto!important; gap:14px!important;}
    .premium-brand-bn{order:2!important; text-align:left!important;}
    .premium-logo-center{order:1!important; width:72px!important; height:72px!important; border-radius:22px!important;}
    .premium-center-logo{max-width:54px!important; max-height:54px!important;}
    .premium-brand-en{display:none!important;}
    .premium-mobile-toggler{order:3!important; display:inline-flex!important; align-items:center; justify-content:center; width:46px; height:46px; border-radius:16px!important; background:#103a36!important; color:#fffdf8!important; border:0!important;}
    .premium-menu-wrap{padding:8px 0 12px!important;}
    .premium-navbar{align-items:stretch!important; gap:8px!important; padding-top:10px!important;}
    .premium-navbar .nav-link{border-radius:16px!important; padding:12px 14px!important;}
    .hero-static,.hero-slide,.hero-content{min-height:430px!important; border-radius:0 0 28px 28px!important;}
    .hero-title{font-size:2.1rem!important;}
    .ticker-lane{grid-template-columns:1fr!important;}
    .ticker-label{min-height:44px!important;}
}
@media (max-width:575.98px){
    .top-bar{font-size:.74rem!important;}
    .brand-kicker,.brand-address-line{display:none!important;}
    .brand-main-name{font-size:1.05rem!important; margin-top:0!important;}
    .hero-title{font-size:1.7rem!important;}
    .hero-subtitle{font-size:.94rem!important;}
    .section-padding{padding:62px 0!important;}
}

/* =========================================================
   FINAL FIX: Desktop one-line names + separated menu band
   ========================================================= */
@media (min-width: 992px){
    .premium-site-header{
        padding:0!important;
        background:rgba(255,253,248,.92)!important;
    }
    .premium-site-header > .container{
        max-width:min(1320px, calc(100vw - 56px));
    }
    .premium-brand-row{
        min-height:124px!important;
        padding:18px 0 16px!important;
        grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;
        gap:clamp(16px,2vw,34px)!important;
    }
    .premium-brand-row::after{display:none!important;}
    .premium-brand-name{
        min-width:0!important;
        max-width:100%!important;
        overflow:hidden!important;
    }
    .brand-main-name{
        display:block!important;
        width:100%!important;
        max-width:100%!important;
        white-space:nowrap!important;
        overflow:visible!important;
        text-overflow:clip!important;
        line-height:1.08!important;
        font-size:clamp(.72rem,1.48vw,1.58rem)!important;
        letter-spacing:-.055em!important;
        margin-top:8px!important;
    }
    .brand-main-name-en{
        white-space:nowrap!important;
        font-size:clamp(.68rem,1.22vw,1.28rem)!important;
        letter-spacing:-.025em!important;
        line-height:1.08!important;
    }
    .brand-kicker{
        font-size:clamp(.52rem,.62vw,.72rem)!important;
        padding:4px 10px!important;
        max-width:100%;
        white-space:nowrap;
    }
    .brand-address-line{
        font-size:clamp(.62rem,.72vw,.82rem)!important;
        max-width:100%!important;
    }
    .premium-logo-center{
        width:clamp(76px,7.2vw,104px)!important;
        height:clamp(76px,7.2vw,104px)!important;
        border-radius:clamp(22px,2.1vw,30px)!important;
    }
    .premium-center-logo{
        max-width:clamp(56px,5.4vw,78px)!important;
        max-height:clamp(56px,5.4vw,78px)!important;
    }
    .premium-menu-wrap{
        position:relative!important;
        width:100vw!important;
        margin-left:calc(50% - 50vw)!important;
        margin-right:calc(50% - 50vw)!important;
        margin-top:0!important;
        padding:11px max(28px, calc((100vw - 1320px) / 2 + 28px)) 13px!important;
        background:linear-gradient(180deg,rgba(250,244,233,.98),rgba(244,234,213,.98))!important;
        border-top:1px solid rgba(184,145,74,.22)!important;
        border-bottom:1px solid rgba(184,145,74,.25)!important;
        box-shadow:inset 0 1px 0 rgba(255,255,255,.85),0 10px 28px rgba(20,38,36,.06)!important;
    }
    .premium-menu-wrap::before{
        content:"";
        position:absolute;
        left:0; right:0; top:0;
        height:1px;
        background:linear-gradient(90deg,transparent,rgba(184,145,74,.56),rgba(18,69,63,.18),rgba(184,145,74,.56),transparent);
    }
    .premium-navbar{
        max-width:1320px!important;
        margin:0 auto!important;
        padding:0!important;
        background:transparent!important;
        border:0!important;
        box-shadow:none!important;
        justify-content:center!important;
        gap:7px!important;
    }
    .premium-navbar .nav-link{
        padding:8px 13px!important;
        font-size:clamp(.74rem,.82vw,.88rem)!important;
        background:rgba(255,253,248,.78)!important;
    }
    .premium-site-header.scrolled .premium-brand-row{
        min-height:82px!important;
        padding:10px 0!important;
    }
    .premium-site-header.scrolled .brand-main-name{
        font-size:clamp(.66rem,1.22vw,1.22rem)!important;
        margin-top:0!important;
    }
    .premium-site-header.scrolled .brand-main-name-en{
        font-size:clamp(.62rem,1.05vw,1.05rem)!important;
    }
    .premium-site-header.scrolled .premium-logo-center{
        width:70px!important;
        height:70px!important;
        border-radius:22px!important;
    }
    .premium-site-header.scrolled .premium-center-logo{
        max-width:52px!important;
        max-height:52px!important;
    }
}
