/* ==========================================================================
   Geometric Balance Design Theme Stylesheet
   Applied to New English Academy of Genius, Wardha Website
   Design Concept: "Geometric Balance" - A modern, structured theme with sharp lines,
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Geometric Theme Variables */
  --primary-color: #1a365d;       /* Deep Navy */
  --secondary-color: #2c5282;     /* Cadet Blue */
  --accent-color: #d69e2e;        /* Gold Accent */
  --accent-hover: #b7791f;        /* Darker Gold Accent */
  --bg-light: #f7fafc;            /* Light Slate Grey Background */
  --text-dark: #2d3748;           /* Slate Dark Text */
  --text-muted: #718096;          /* Slate Grey */
  --white-color: #ffffff;
  
  /* Typography */
  --font-display: 'Space Grotesk', 'Segoe UI', Roboto, -apple-system, sans-serif;
  --font-body: 'Segoe UI', Roboto, -apple-system, sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
  font-size: 0.95rem;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

p {
  color: var(--text-dark);
  opacity: 0.9;
  line-height: 1.6;
}

/* Fade animation for geometric content transitions */
.page-view {
  animation: geometricFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes geometricFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   NAVIGATION BAR & UTILITIES
   ========================================================================== */
/* Top utility bar override to match Deep Navy */
.top-utility-bar {
  background-color: #1a365d !important;
  border-bottom: 2px solid var(--accent-color) !important;
}

/* Main Nav Header override for Geometric contrast */
.navbar-custom {
  background-color: var(--white-color) !important;
  border-bottom: 3px solid var(--primary-color) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  padding-top: 12px;
  padding-bottom: 12px;
}

.navbar-custom.scrolled {
  padding-top: 8px;
  padding-bottom: 8px;
  background-color: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Override dark/white brand text dynamically for light navbar style */
.navbar-custom .navbar-brand .brand-title {
  color: var(--primary-color) !important;
}

.navbar-custom .navbar-brand .brand-subtitle {
  color: var(--secondary-color) !important;
}

/* Override brand icon block bg */
.navbar-custom .navbar-brand .brand-logo-container {
  background-color: rgba(26, 54, 93, 0.08) !important;
  border: 1px solid rgba(26, 54, 93, 0.15) !important;
}

.navbar-custom .navbar-brand i {
  color: var(--accent-color) !important;
}

/* Mobile Toggler overrides */
.navbar-custom .navbar-toggler {
  border-color: rgba(26, 54, 93, 0.2) !important;
}

.navbar-custom .navbar-toggler-icon {
  filter: invert(0.2) sepia(0.5) saturate(5) hue-rotate(200deg); /* Adjust hamburger icon color value */
}

/* Menu Links to Match "Geometric Balance" */
.navbar-custom .nav-link {
  color: var(--secondary-color) !important;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 16px !important;
  transition: all 0.2s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--accent-color) !important;
  background-color: rgba(214, 158, 46, 0.05) !important;
  border-radius: 4px;
}

/* Dropdown styling */
.navbar-custom .dropdown-menu {
  background-color: var(--white-color);
  border: 1px solid #e2e8f0;
  border-top: 3px solid var(--accent-color);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  margin-top: 4px;
}

.navbar-custom .dropdown-item {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary-color);
  padding: 10px 18px;
  transition: all 0.2s ease;
}

.navbar-custom .dropdown-item:hover {
  background-color: var(--bg-light);
  color: var(--accent-color);
}

/* ==========================================================================
   CARDS & GRID LAYOUTS
   ========================================================================== */
.card, .card-hover {
  background: var(--white-color) !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 4px solid var(--accent-color) !important;
  padding: 20px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05) !important;
  border-color: #cbd5e1 !important;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-brand-primary, 
.navbar-custom .btn-warning, 
.btn-brand-accent,
.btn-custom-amber {
  display: inline-block !important;
  padding: 12px 28px !important;
  background-color: var(--accent-color) !important;
  color: var(--white-color) !important;
  text-decoration: none;
  font-weight: 700 !important;
  border-radius: 4px !important;
  border: none !important;
  text-transform: uppercase !important;
  font-size: 13px !important;
  letter-spacing: 0.5px;
  transition: all 0.2s ease-in-out !important;
  cursor: pointer;
}

.btn-brand-primary:hover, 
.navbar-custom .btn-warning:hover, 
.btn-brand-accent:hover,
.btn-custom-amber:hover {
  background-color: var(--accent-hover) !important;
  color: var(--white-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(214, 158, 46, 0.3) !important;
}

/* Secondary outline button styles */
.btn-outline-light {
  padding: 12px 28px !important;
  border: 2px solid var(--white-color) !important;
  color: var(--white-color) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  border-radius: 4px !important;
  font-size: 13px !important;
  transition: all 0.2s ease-in-out;
  background: transparent !important;
}

.btn-outline-light:hover {
  background-color: var(--white-color) !important;
  color: var(--primary-color) !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   BADGES & PROGRAM TAGS
   ========================================================================== */
.badge-custom, .badge, .program-tag {
  display: inline-block !important;
  background: rgba(214, 158, 46, 0.12) !important;
  color: var(--accent-color) !important;
  border: 1px solid rgba(214, 158, 46, 0.25) !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   HERO / BANNER STYLES
   ========================================================================== */
/* Page Header Banners */
.page-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
  padding: 85px 0;
  color: var(--white-color);
  position: relative;
  overflow: hidden;
  border-bottom: 5px solid var(--accent-color);
}

.page-banner::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background: rgba(255, 255, 255, 0.03);
  clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
  pointer-events: none;
}

.page-banner h1 {
  color: var(--white-color) !important;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1px;
}

/* Slider Hero custom styles */
.carousel-inner {
  border-bottom: 5px solid var(--accent-color);
}

.carousel-item {
  position: relative;
}

.carousel-item::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 42%;
  background: var(--secondary-color);
  opacity: 0.45;
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   STATISTICS COUNTERS GRID
   ========================================================================== */
.stats-section {
  background-color: var(--secondary-color) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Grid layout for stat boxes to match Geometric Balance */
.stats-section .row {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px !important;
  background-color: rgba(255, 255, 255, 0.15); /* forms grid lines */
}

@media (max-width: 768px) {
  .stats-section .row {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

.stats-section .col-6 {
  width: 100% !important;
  margin: 0 !important;
}

.stats-section .p-3 {
  background-color: var(--primary-color) !important;
  padding: 50px 20px !important;
  text-align: center;
  height: 100%;
  border-radius: 0px !important; /* Sharp geometry */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.counter-number {
  font-size: 44px !important;
  font-weight: 800 !important;
  color: var(--accent-color) !important;
  margin-bottom: 6px;
  font-family: var(--font-display);
}

.stats-section .stats-label {
  font-size: 11px !important;
  font-weight: 700;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  color: var(--white-color) !important;
  opacity: 0.8;
}

/* ==========================================================================
   SIDEBAR & ANCHOR HEADERS
   ========================================================================== */
aside h3, .sidebar h3 {
  font-size: 18px !important;
  font-weight: 700;
  border-bottom: 2px solid var(--accent-color) !important;
  padding-bottom: 8px !important;
  margin-bottom: 16px !important;
}

/* ==========================================================================
   TIMELINE
   ========================================================================== */
.timeline {
  position: relative;
  padding: 30px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary-color);
  left: 50%;
  margin-left: -1.5px;
}

@media (max-width: 767px) {
  .timeline::before {
    left: 20px;
  }
}

.timeline-badge {
  width: 44px;
  height: 44px;
  line-height: 44px;
  background-color: var(--accent-color) !important;
  color: var(--white-color) !important;
  font-family: var(--font-display);
  font-weight: 800;
  position: absolute;
  top: 15px;
  left: 50%;
  margin-left: -22px;
  border-radius: 4px !important; /* Sharp geometric corners */
  text-align: center;
  z-index: 10;
  box-shadow: 0 0 0 6px var(--white-color), 0 4px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 767px) {
  .timeline-badge {
    left: 20px;
    margin-left: -22px;
  }
}

.timeline-panel {
  width: 44%;
  float: left;
  background: var(--white-color);
  border: 1px solid #e2e8f0 !important;
  border-top: 4px solid var(--primary-color) !important; /* Elegant top accent */
  padding: 24px;
  border-radius: 6px;
  position: relative;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.timeline-item:nth-child(even) .timeline-panel {
  float: right;
}

/* ==========================================================================
   FACULTY COUNCIL (TEAM CARDS)
   ========================================================================== */
.team-img-wrapper {
  overflow: hidden;
  height: 400px;
  background-color: #e2e8f0;
  border-bottom: 4px solid var(--primary-color); /* Geometric separation border */
}

.team-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .team-img-wrapper img {
  transform: scale(1.05);
}

/* ==========================================================================
   GALLERY FILTERING
   ========================================================================== */
.filter-btn {
  background-color: var(--white-color) !important;
  border: 1px solid #e2e8f0 !important;
  font-family: var(--font-display);
  font-weight: 650;
  color: var(--secondary-color) !important;
  padding: 10px 22px !important;
  border-radius: 4px !important; /* sharp corners */
  margin: 4px;
  transition: all 0.2s ease;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color) !important;
  color: var(--white-color) !important;
  border-color: var(--primary-color) !important;
}

/* Gallery hover overlays */
.gallery-card {
  overflow: hidden;
  position: relative;
  border-radius: 6px !important;
  cursor: pointer;
  height: 260px;
  border: 3px solid var(--white-color);
  box-shadow: 0 4px 8px rgba(0,0,0,0.03);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(26, 54, 93, 0.95) 0%, rgba(44, 82, 130, 0.7) 70%, transparent 100%) !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

/* ==========================================================================
   ADMISSIONS HERO TRIGGER override
   ========================================================================== */
.admissions-banner-trigger {
  background: linear-gradient(135deg, rgba(26, 54, 93, 0.95) 0%, rgba(44, 82, 130, 0.97) 100%), url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat !important;
  border-bottom: 5px solid var(--accent-color);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background-color: var(--primary-color) !important;
  border-top: 5px solid var(--accent-color) !important;
  color: #cbd5e1;
  font-size: 0.9rem;
}
.social-box {
  height: 35px;
  width: 35px;
  line-height: 20px;
  text-align: center;
  display: inline-block; /* Required to respect height/width on inline elements */
}

footer a {
  color: #cbd5e1 !important;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--accent-color) !important;
}

footer h5, footer h4 {
  color: var(--white-color) !important;
  font-family: var(--font-display);
  font-weight: 700;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 8px;
  margin-bottom: 16px;
  display: inline-block;
}

/* ==========================================================================
   TESTIMONIAL BUBBLE
   ========================================================================== */
.testimonial-bubble {
  background: var(--white-color);
  border: 1px solid #e2e8f0;
  border-left: 5px solid var(--accent-color); /* sharp left accent override */
  border-radius: 8px;
  padding: 30px;
  position: relative;
  box-shadow: 0 4px 8px rgba(0,0,0,0.02);
}

/* ==========================================================================
   GENERAL UTILITY SPACING
   ========================================================================== */
.section-padding {
  padding: 85px 0;
  background-color: var(--white-color);
}

/* Alternating Background for Structure rhythm */
section:nth-of-type(even) {
  background-color: var(--bg-light);
}

.section-title {
  position: relative;
  margin-bottom: 55px;
}

.section-title h2 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 65px;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

.section-title.text-center::after {
  left: 50%;
  margin-left: -32.5px;
}
