/* ==========================================================================
   Modish Public School - Modern Design System & Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  /* Core Brand Colors */
  --primary: #991B1B;        /* Deep Heritage Maroon */
  --primary-dark: #7F1D1D;   /* Dark Crimson */
  --primary-light: #B91C1C;  /* Vibrant Maroon */
  --primary-subtle: #FEF2F2; /* Soft Maroon Tint */
  --accent: #D97706;         /* Royal Amber/Gold */
  --accent-light: #FDE68A;   /* Soft Gold */
  --accent-dark: #B45309;

  /* Neutrals & Surfaces */
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50:  #F8FAFC;
  --bg-white:  #FFFFFF;
  --text-main: #1E293B;
  --text-muted: #64748B;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Outfit', sans-serif;

  /* Spacing */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;

  /* Borders & Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 6px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 35px -5px rgba(0, 0, 0, 0.12), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 25px rgba(217, 119, 6, 0.25);

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   CSS Reset & Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--slate-50);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.25;
  margin-bottom: var(--space-sm);
}

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

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

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

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ==========================================================================
   Top Header Bar & Action Buttons
   ========================================================================== */
.top-bar {
  background: linear-gradient(90deg, #7F1D1D 0%, #991B1B 100%);
  color: #FFFFFF;
  padding: 8px 0;
  font-size: 0.86rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1001;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.top-bar a {
  color: rgba(255, 255, 255, 0.95);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.top-bar a:hover {
  color: var(--accent-light);
}

.top-badge {
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

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

/* Topbar CTA Action Buttons */
.topbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  font-family: var(--font-body);
}

.topbar-btn-admission {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.topbar-btn-admission:hover {
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.45);
}

.topbar-btn-bank {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.topbar-btn-bank:hover {
  background: #FFFFFF;
  color: var(--primary) !important;
  transform: translateY(-1px);
}

.social-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF !important;
  font-size: 0.8rem;
  transition: var(--transition);
}

.social-circle:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ==========================================================================
   Bank Details Right-Side Slide-Out Drawer (Popup Out)
   ========================================================================== */
.bank-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.bank-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.bank-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: #FFFFFF;
  z-index: 9999;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.25);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.bank-drawer.active {
  transform: translateX(0);
}

.bank-drawer-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #FFFFFF;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--accent);
}

.bank-drawer-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bank-drawer-title i {
  font-size: 1.4rem;
  color: var(--accent-light);
}

.bank-drawer-title h3 {
  color: #FFFFFF;
  font-size: 1.25rem;
  margin: 0;
  font-weight: 700;
}

.bank-drawer-title span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  display: block;
}

.bank-drawer-close {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.bank-drawer-close:hover {
  background: var(--accent);
  transform: rotate(90deg);
}

.bank-drawer-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Modal Bank Account Cards */
.drawer-bank-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.drawer-bank-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.drawer-bank-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--slate-200);
}

.drawer-bank-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-bank-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.drawer-bank-name {
  font-weight: 700;
  color: var(--slate-900);
  font-size: 0.95rem;
  margin: 0;
}

.drawer-bank-branch {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.drawer-bank-data {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.drawer-data-row .lbl {
  color: var(--slate-600);
  font-weight: 500;
}

.drawer-copy-btn {
  background: #FFFFFF;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.drawer-copy-btn:hover {
  background: var(--primary-subtle);
  border-color: var(--primary);
}

/* ==========================================================================
   Main Header & Navigation
   ========================================================================== */
.site-header {
  background-color: var(--bg-white);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--slate-100);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.logo img {
  height: 58px;
  width: auto;
  transition: transform 0.25s ease;
}

.logo:hover img {
  transform: scale(1.02);
}

/* Main Navigation Bar */
.main-nav > ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 8px;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav > ul > li > a {
  color: var(--slate-800);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.main-nav > ul > li > a i.fa-chevron-down {
  font-size: 0.65rem;
  color: var(--slate-500);
  transition: transform 0.2s ease;
}

.main-nav > ul > li:hover > a {
  color: var(--primary);
  background-color: var(--primary-subtle);
}

.main-nav > ul > li:hover > a i.fa-chevron-down {
  transform: rotate(180deg);
  color: var(--primary);
}

/* Compact Submenu */
.main-nav .sub-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background-color: #FFFFFF;
  min-width: 215px;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.07);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  list-style: none;
  overflow: hidden;
}

.main-nav li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav .sub-menu li {
  width: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.main-nav .sub-menu li:last-child {
  border-bottom: none;
}

.main-nav .sub-menu a {
  padding: 8px 16px;
  display: block;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--slate-700);
  line-height: 1.35;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.main-nav .sub-menu a:hover {
  background-color: var(--primary-subtle);
  color: var(--primary);
  padding-left: 20px;
  font-weight: 600;
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: var(--slate-800);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
}

/* Standard Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.58rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: var(--font-body);
}

.btn-action-primary {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}

.btn-action-primary:hover {
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.45);
}

.btn-action-outline {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.btn-action-outline:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* ==========================================================================
   Hero Section (Pure Image Slider - No Text, No Dark Overlay, Auto Fit)
   ========================================================================== */
.hero-slider-section {
  position: relative;
  width: 100%;
  height: clamp(380px, 38vw, 560px);
  overflow: hidden;
  background-color: var(--slate-900);
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.85s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center; /* Keeps faces and heads visible regardless of screen size */
  display: block;
}

/* Slider Controls */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--slate-800);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.hero-arrow:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.08);
}

.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 20;
  background: rgba(0, 0, 0, 0.35);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(6px);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  width: 26px;
  background: var(--accent);
}

/* ==========================================================================
   Separate Welcome / About Us & Notice Board Section
   ========================================================================== */
.welcome-about-section {
  padding: var(--space-lg) 0;
  background: #FFFFFF;
  border-bottom: 1px solid var(--slate-200);
}

.welcome-inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 44px;
  align-items: start;
}

.welcome-content h2 {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.2;
  margin-bottom: 8px;
}

.welcome-content .lead {
  font-size: 1.15rem;
  color: var(--primary);
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 18px;
}

.welcome-content p {
  color: var(--slate-600);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Notice Board System (Matching Screenshot 2) */
.notice-board-wrapper {
  position: relative;
  width: 100%;
}

.notice-board-card {
  position: relative;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.04);
  padding: 30px 24px 20px;
  border: 1px solid var(--slate-200);
}

.notice-board-tag {
  position: absolute;
  top: -14px;
  left: 20px;
  background: #15803D; /* Deep Green */
  color: #FFFFFF;
  padding: 6px 18px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 10px rgba(21, 128, 61, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.notice-board-subtitle {
  font-size: 0.82rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--slate-500);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  display: block;
}

.notice-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.notice-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px dashed #0284C7; /* Cyan/Blue Dashed Divider */
  font-size: 0.94rem;
  line-height: 1.4;
  transition: var(--transition);
}

.notice-item:last-child {
  border-bottom: none;
}

.notice-item:hover {
  background-color: #F0F9FF;
  border-radius: var(--radius-sm);
  padding-left: 8px;
}

.notice-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--slate-900);
}

.notice-icon {
  color: #E11D48; /* Red Document Icon */
  font-size: 1.1rem;
  flex-shrink: 0;
}

.notice-title {
  font-weight: 600;
  color: var(--slate-800);
}

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

.notice-date {
  font-size: 0.85rem;
  color: var(--slate-600);
  font-weight: 500;
  white-space: nowrap;
}

.badge-new {
  color: #E11D48;
  font-weight: 800;
  font-size: 0.82rem;
  margin-left: 4px;
  animation: pulse 1.8s infinite;
}

.notice-board-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--slate-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notice-mps-link {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.notice-mps-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

/* ==========================================================================
   Trust & Key Highlights Bar
   ========================================================================== */
.stats-strip {
  background: #FFFFFF;
  border-bottom: 1px solid var(--slate-200);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 30;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 24px 0;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  border-right: 1px solid var(--slate-200);
  padding-right: 16px;
}

.stat-item:last-child {
  border-right: none;
  padding-right: 0;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-content h4 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 2px;
  line-height: 1.1;
}

.stat-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.2;
}

/* ==========================================================================
   Modern Sections & Cards
   ========================================================================== */
.section {
  padding: var(--space-xl) 0;
}

.section-title-wrap {
  text-align: center;
  max-width: 650px;
  margin: 0 auto var(--space-lg);
}

.section-tag {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Grid System */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

/* Pillar Cards (About, Why Modish, Vision & Mission) */
.card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--slate-200);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.1);
  border-color: rgba(153, 27, 27, 0.2);
}

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

.card-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 14px;
}

.card p {
  color: var(--slate-600);
  font-size: 0.96rem;
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card ul {
  list-style: none;
  margin-bottom: 20px;
}

.card ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--slate-600);
  font-size: 0.94rem;
  line-height: 1.5;
}

.card ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--accent);
  font-size: 0.8rem;
}

/* ==========================================================================
   Principal's Message Section (Magazine Style)
   ========================================================================== */
.principal-section {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.split-layout {
  display: flex;
  align-items: stretch;
}

.split-image {
  flex: 0 0 42%;
  position: relative;
  min-height: 420px;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-image-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.split-image-badge strong {
  display: block;
  font-size: 1.05rem;
  color: #FFFFFF;
}

.split-image-badge span {
  font-size: 0.82rem;
  color: var(--accent-light);
}

.split-content {
  flex: 1;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-quote-icon {
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.85;
}

.split-content h2 {
  color: #FFFFFF;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.split-content h4 {
  color: var(--accent-light);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.split-content p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ==========================================================================
   Dynamic Photo Gallery & Lightbox Popup
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: var(--slate-200);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #FFFFFF;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-zoom-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.gallery-caption {
  font-size: 0.92rem;
  font-weight: 600;
  color: #FFFFFF;
}

.gallery-category {
  font-size: 0.74rem;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-caption-bar {
  margin-top: 14px;
  color: #FFFFFF;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lightbox-counter {
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: -10px;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.lightbox-close:hover {
  transform: scale(1.2);
  color: var(--accent);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-arrow:hover {
  background: var(--accent);
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.1);
}

.lightbox-arrow.prev { left: 24px; }
.lightbox-arrow.next { right: 24px; }

/* ==========================================================================
   Single Pages Modern Design
   ========================================================================== */
.page-header {
  position: relative;
  background: linear-gradient(135deg, #1E293B 0%, #7F1D1D 50%, #450A0A 100%);
  color: #FFFFFF;
  padding: 55px 0 80px;
  text-align: center;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><g fill="rgba(255,255,255,0.04)" fill-rule="evenodd"><path d="M0 40L40 0H20L0 20M40 40V20L20 40"/></g></svg>');
  opacity: 0.5;
}

.page-header-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.page-header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.2);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.breadcrumbs a {
  color: var(--accent-light);
}

.breadcrumbs a:hover {
  color: #FFFFFF;
}

.breadcrumbs span.separator {
  color: rgba(255, 255, 255, 0.4);
}

/* Single Page Content Container */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.content-box, .page-content-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--slate-200);
  margin-top: -45px;
  position: relative;
  z-index: 10;
  margin-bottom: var(--space-lg);
}

/* Standard Page Content Typography */
.page-content, .entry-content, .content-box {
  color: var(--slate-700);
  font-size: 1.02rem;
  line-height: 1.75;
}

.page-content h2, .content-box h2 {
  font-size: 1.85rem;
  color: var(--slate-900);
  margin-top: 2rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 8px;
}

.page-content h2::after, .content-box h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.page-content h3, .content-box h3 {
  font-size: 1.45rem;
  color: var(--primary);
  margin-top: 1.75rem;
  margin-bottom: 0.85rem;
}

.page-content p, .content-box p {
  margin-bottom: 1.25rem;
}

.page-content ul, .content-box ul {
  list-style: none;
  margin-bottom: 1.5rem;
  padding-left: 0;
}

.page-content ul li, .content-box ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  line-height: 1.6;
}

.page-content ul li::before, .content-box ul li::before {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--primary);
  font-size: 0.95rem;
}

.page-content ol, .content-box ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.page-content ol li, .content-box ol li {
  margin-bottom: 10px;
  padding-left: 6px;
}

/* Modern Data Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.75rem 0;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--slate-200);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.94rem;
}

table thead {
  background: linear-gradient(90deg, #7F1D1D 0%, #991B1B 100%);
  color: #FFFFFF;
}

table th {
  padding: 14px 18px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: none;
}

table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--slate-200);
  color: var(--slate-700);
}

table tbody tr:nth-child(even) {
  background-color: var(--slate-50);
}

table tbody tr:hover {
  background-color: #FEF2F2;
}

/* Copy Link & Action Buttons for Mandatory Disclosure */
.copy-link-btn {
  background: var(--slate-100);
  border: 1px solid var(--slate-300);
  color: var(--slate-700);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-left: 8px;
  transition: var(--transition);
}

.copy-link-btn:hover {
  background: var(--primary-subtle);
  color: var(--primary);
  border-color: var(--primary);
}

/* Callout */
.callout {
  padding: 20px 24px;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  border-left: 4px solid var(--primary);
  background: var(--primary-subtle);
}

.callout-gold {
  border-left-color: var(--accent);
  background: #FFFBEB;
}

.callout h4 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: var(--slate-900);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
  color: #FFFFFF;
  padding: 60px 0 20px;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  color: #FFFFFF;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--slate-300);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 18px;
}

.footer-widget h3 {
  color: var(--accent-light);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-widget h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--accent);
}

.footer-widget ul {
  list-style: none;
}

.footer-widget ul li {
  margin-bottom: 10px;
}

.footer-widget a {
  color: var(--slate-300);
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.footer-widget a:hover {
  color: var(--accent-light);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--slate-300);
  font-size: 0.92rem;
}

.footer-contact-item i {
  color: var(--accent);
  margin-top: 4px;
  font-size: 1rem;
}

.footer-badge-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  transition: var(--transition);
}

.footer-badge-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.footer-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.footer-badge-info h5 {
  color: #FFFFFF;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.footer-badge-info span {
  color: var(--accent-light);
  font-size: 0.78rem;
  font-weight: 500;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  color: var(--slate-400);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .welcome-inner {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2) {
    border-right: none;
  }
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: block;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    box-shadow: var(--shadow-lg);
    border-bottom: 2px solid var(--primary);
    padding: 16px 0;
  }
  .main-nav.active {
    display: block;
  }
  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .main-nav > ul > li > a {
    padding: 10px 20px;
    border-radius: 0;
    justify-content: space-between;
  }
  .main-nav .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--slate-50);
    padding: 4px 0 8px 24px;
    display: none;
  }
  .main-nav li.open > .sub-menu {
    display: flex;
  }

  .top-bar-left, .top-bar-right {
    width: 100%;
    justify-content: center;
  }

  .bank-drawer {
    max-width: 100%;
  }

  .hero-slider-section {
    height: 340px;
  }
  .hero-arrow {
    display: none;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-right: none;
    padding-right: 0;
  }

  .split-layout {
    flex-direction: column;
  }
  .split-image {
    min-height: 300px;
  }
  .split-content {
    padding: 32px 24px;
  }

  .content-box, .page-content-card {
    padding: 24px 18px;
    margin-top: -25px;
  }
  .page-header {
    padding: 40px 0 65px;
  }
  .page-header h1 {
    font-size: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
