/* =========================================================
   SHRIPAL SINGH SMARAK SHIKSHAN SANSTHAN & COLLEGE
   Custom Stylesheet - Premium & Responsive Educational Design
   Cohesive Color Theme: Golden, Navy Blue, and Sky Blue
   ========================================================= */

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

:root {
  /* Cohesive Theme Color Tokens */
  --navy: #0A2540;
  --navy-dark: #071D33;
  --sky: #0ea5e9;
  --sky-hover: #0284c7;
  --gold: #eab308;
  --gold-hover: #ca8a04;
  --gold-light: #fef08a;

  --dark: #0f172a;
  --light: #f8f9fa;
  --white: #ffffff;
  --gray-200: #e2e8f0;
  --gray-500: #64748b;
  --gray-700: #334155;

  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Poppins', sans-serif;

  /* Layered Shadows */
  --shadow-sm: 0 2px 4px rgba(10, 37, 64, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(10, 37, 64, 0.05), 0 8px 16px -8px rgba(10, 37, 64, 0.05);
  --shadow-lg: 0 20px 30px -10px rgba(10, 37, 64, 0.08), 0 15px 20px -15px rgba(10, 37, 64, 0.06), 0 0 1px rgba(10, 37, 64, 0.1);
  --shadow-3d: 0 20px 40px rgba(10, 37, 64, 0.12), 0 15px 20px rgba(10, 37, 64, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.2);

  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius: 16px;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background-color: var(--white);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-headings);
  color: var(--navy);
  font-weight: 700;
}

/* =========================================================
   PRELOADER
   ========================================================= */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid var(--gray-200);
  border-top-color: var(--sky);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   HEADER / BRANDING / TOP BAR
   ========================================================= */
.topbar {
  background-color: var(--navy);
  color: var(--white);
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

.topbar a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.topbar a:hover {
  color: var(--gold);
}

.topbar-right a {
  margin-left: 15px;
}

.topbar-social a {
  margin-left: 12px;
  font-size: 0.95rem;
}

.brand-section {
  padding: 15px 0;
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.brand-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.brand-logo-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand-logo-left img {
  height: 75px;
  width: auto;
}

.brand-text h1 {
  font-size: 1.6rem;
  margin-bottom: 0;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-text h2 {
  font-size: 1.4rem;
  margin-bottom: 2px;
  font-weight: 700;
  color: var(--sky);
  letter-spacing: -0.5px;
}

.brand-text p {
  font-size: 0.8rem;
  margin-bottom: 0;
  color: var(--gray-500);
  font-weight: 500;
}

.brand-badge-right {
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 2px solid var(--gold);
  padding-left: 15px;
}

.brand-badge-right .years-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy);
  font-family: var(--font-headings);
  line-height: 1;
}

.brand-badge-right .years-text {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--sky);
  text-transform: uppercase;
}

/* =========================================================
   STICKY STYLISH NAVBAR
   ========================================================= */
.custom-navbar {
  background-color: var(--navy);
  padding: 0;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  z-index: 1000;
}

.custom-navbar .navbar-brand img {
  max-height: 42px;
  width: auto;
  vertical-align: middle;
}

.custom-navbar.sticky-nav {
  position: fixed;
  top: 0;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: slideDown 0.4s ease-in-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

.custom-navbar .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-family: var(--font-headings);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.88rem;
  padding: 18px 12px !important;
  letter-spacing: 0.5px;
  transition: var(--transition);
  position: relative;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active {
  color: var(--gold) !important;
  background-color: rgba(255, 255, 255, 0.05);
}

.custom-navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--gold);
  transition: var(--transition);
}

.custom-navbar .nav-link:hover::after,
.custom-navbar .nav-link.active::after {
  width: 100%;
}

.custom-navbar .dropdown-menu {
  background-color: var(--navy);
  border: none;
  border-top: 3px solid var(--gold);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: var(--shadow-lg);
  margin-top: 0;
  padding: 10px 0;
}

.custom-navbar .dropdown-item {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 10px 20px;
  transition: var(--transition);
}

.custom-navbar .dropdown-item:hover {
  background-color: var(--sky);
  color: var(--white) !important;
}

/* =========================================================
   HERO BANNER & CAROUSEL
   ========================================================= */
.hero-slider {
  height: 600px;
  position: relative;
}

.hero-slider .carousel-inner,
.hero-slider .carousel-item {
  height: 100%;
}

.hero-slider .carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) contrast(1.05);
}

.hero-slider .carousel-caption {
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  text-align: left;
  max-width: 750px;
  left: 8%;
  padding-right: 20px;
}

.hero-badge {
  display: inline-block;
  background-color: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(234, 179, 8, 0.3);
}

.hero-slider h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-slider p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  font-weight: 300;
  line-height: 1.5;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-btn {
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
  text-transform: uppercase;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
}

.hero-btn-primary {
  background-color: var(--sky);
  color: var(--white);
  border: 2px solid var(--sky);
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

.hero-btn-primary:hover {
  background-color: var(--sky-hover);
  border-color: var(--sky-hover);
  transform: translateY(-2px);
}

.hero-btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.hero-btn-outline:hover {
  background-color: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}

/* Carousel Indicators Styling */
.hero-slider .carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  margin: 0 6px;
  transition: var(--transition);
}

.hero-slider .carousel-indicators .active {
  background-color: var(--gold);
  width: 28px;
  border-radius: 10px;
}

/* =========================================================
   GLOBAL SECTIONS & TITLES
   ========================================================= */
.section-padding {
  padding: 80px 0;
}

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

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title span.subtitle {
  display: block;
  font-size: 0.85rem;
  color: var(--sky);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.section-title h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy);
  display: inline-block;
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 0;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background-color: var(--sky);
  border-radius: 2px;
}

.section-title h2::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background-color: var(--gold);
  border: 3px solid var(--white);
  border-radius: 50%;
  z-index: 1;
}

.bilingual-title {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hindi-title {
  font-family: var(--font-headings);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--sky);
  margin-bottom: 4px;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-premium {
  padding: 10px 24px;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.btn-premium-primary {
  background-color: var(--sky);
  color: var(--white) !important;
  border: 1px solid var(--sky);
}

.btn-premium-primary:hover {
  background-color: var(--sky-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-premium-secondary {
  background-color: var(--navy);
  color: var(--white) !important;
  border: 1px solid var(--navy);
}

.btn-premium-secondary:hover {
  background-color: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-premium-accent {
  background-color: var(--gold);
  color: var(--navy) !important;
  border: 1px solid var(--gold);
}

.btn-premium-accent:hover {
  background-color: var(--gold-hover);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-premium-outline-primary {
  background-color: transparent;
  color: var(--sky) !important;
  border: 2px solid var(--sky);
}

.btn-premium-outline-primary:hover {
  background-color: var(--sky);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* =========================================================
   PREMIUM CARDS (MODERN 3D, BUBBLES, WAVES, SHADOWS)
   ========================================================= */
.card-premium,
.service-card-gradient,
.member-card-circular,
.blog-card {
  position: relative;
  background-color: var(--white);
  border: 1px solid rgba(10, 37, 64, 0.08);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease, border-color 0.3s ease;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg) translateZ(0px);
  transform-style: preserve-3d;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

/* 3D Tilt Hover effect */
.card-premium:hover,
.service-card-gradient:hover,
.member-card-circular:hover,
.blog-card:hover {
  transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateZ(10px) translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(14, 165, 233, 0.3);
}

/* Decorative background bubbles */
.card-premium .card-bubble,
.service-card-gradient .card-bubble,
.member-card-circular .card-bubble,
.blog-card .card-bubble {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transition: var(--transition);
}

.bubble-1 {
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, transparent 70%);
  top: -30px;
  right: -30px;
}

.bubble-2 {
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(234, 179, 8, 0.08) 0%, transparent 70%);
  bottom: -40px;
  left: -40px;
}

.card-premium:hover .bubble-1,
.service-card-gradient:hover .bubble-1,
.member-card-circular:hover .bubble-1,
.blog-card:hover .bubble-1 {
  transform: translate(-10px, 10px) scale(1.1);
}

/* Wavy line design element (SVG embedded via data URI) */
.card-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 45px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%230ea5e9' fill-opacity='0.04' d='M0,192L48,197.3C96,203,192,213,288,208C384,203,480,181,576,181.3C672,181,768,203,864,197.3C960,192,1056,160,1152,144C1248,128,1344,128,1392,128L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

.card-premium .card-img-wrapper,
.blog-card .blog-card-img-wrapper {
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/10;
  z-index: 1;
}

.card-premium .card-img-top,
.blog-card .blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.card-premium:hover .card-img-top,
.blog-card:hover .blog-card-img {
  transform: scale(1.08);
}

.card-premium .card-body,
.blog-card .card-body {
  padding: 26px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.card-premium .card-title,
.blog-card .card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--navy);
}

.card-premium .card-text,
.blog-card .card-text {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* =========================================================
   SERVICE CARDS (GLASSMORPHISM & 3D GRADIENT)
   ========================================================= */
.service-card-gradient {
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.02) 0%, rgba(14, 165, 233, 0.04) 100%);
  padding: 35px 25px;
}

.service-card-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--sky) 100%);
  opacity: 0;
  z-index: -1;
  transition: var(--transition);
}

.service-card-gradient .service-icon {
  font-size: 2.2rem;
  color: var(--sky);
  margin-bottom: 20px;
  transition: var(--transition);
  z-index: 1;
}

.service-card-gradient h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  transition: var(--transition);
  color: var(--navy);
  z-index: 1;
}

.service-card-gradient p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
  transition: var(--transition);
  z-index: 1;
}

.service-card-gradient .read-more-btn {
  color: var(--sky);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  z-index: 1;
}

/* Hover States for Gradient Service Cards */
.service-card-gradient:hover::before {
  opacity: 1;
}

.service-card-gradient:hover .service-icon {
  color: var(--gold);
  transform: translateZ(20px) scale(1.1);
}

.service-card-gradient:hover h4 {
  color: var(--white);
  transform: translateZ(15px);
}

.service-card-gradient:hover p {
  color: rgba(255, 255, 255, 0.85);
  transform: translateZ(10px);
}

.service-card-gradient:hover .read-more-btn {
  color: var(--gold);
  transform: translateZ(15px);
}

/* =========================================================
   BOARD MEMBERS SECTION (CIRCULAR CARDS)
   ========================================================= */
.member-card-circular {
  padding: 35px 20px;
  text-align: center;
}

.member-circular-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 5px solid var(--light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  z-index: 1;
  position: relative;
}

.member-card-circular:hover .member-circular-img {
  border-color: var(--gold);
  transform: translateZ(20px) scale(1.05);
}

.member-circular-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-card-circular h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--navy);
  z-index: 1;
}

.member-card-circular .position-badge {
  display: inline-block;
  background-color: rgba(14, 165, 233, 0.08);
  color: var(--sky);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 1;
}

.member-card-circular:hover .position-badge {
  background-color: var(--gold-light);
  color: var(--gold-hover);
}

.member-card-circular .member-phone {
  color: var(--gray-700);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  z-index: 1;
}

.member-card-circular .member-phone:hover {
  color: var(--sky);
}

.member-social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
  z-index: 1;
}

.member-social-links a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--light);
  color: var(--gray-500);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.85rem;
  transition: var(--transition);
  text-decoration: none;
}

.member-social-links a:hover {
  background-color: var(--navy);
  color: var(--white);
}

/* =========================================================
   STATISTICS SECTION (PREMIUM REDESIGN)
   ========================================================= */
.stats-section {
  background: radial-gradient(circle at 30% 35%, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.06) 0%, transparent 80%);
  pointer-events: none;
}

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  padding: 35px 25px;
  transition: var(--transition);
  text-align: center;
  height: 100%;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.06) 0%, transparent 60%);
  transition: 0.5s ease;
  pointer-events: none;
  z-index: -1;
}

.stat-card:hover {
  transform: translateY(-8px);
  border-color: rgba(234, 179, 8, 0.35);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.stat-card .stat-icon {
  font-size: 2.2rem;
  color: var(--sky);
  margin-bottom: 15px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 65px;
  height: 65px;
  background: rgba(14, 165, 233, 0.08);
  border-radius: 50%;
  transition: var(--transition);
}

.stat-card:hover .stat-icon {
  background: var(--gold);
  color: var(--navy);
  transform: rotateY(360deg);
}

.stat-card h3 {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 5px;
  font-family: var(--font-headings);
}

.stat-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0;
  font-weight: 600;
}

/* =========================================================
   BLOG & NEWS CARDS
   ========================================================= */
.blog-card-img-wrapper {
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/10;
}

.blog-card-date-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--sky);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  z-index: 2;
  box-shadow: var(--shadow-sm);
  text-transform: uppercase;
}

.blog-card .card-body {
  padding: 24px;
}

.blog-card .card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-card .card-title a {
  color: var(--navy);
  text-decoration: none;
  transition: var(--transition);
}

.blog-card .card-title a:hover {
  color: var(--sky);
}

.blog-card .card-text {
  color: var(--gray-500);
  font-size: 0.88rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* =========================================================
   VERTICAL TIMELINE (ABOUT PAGE)
   ========================================================= */
.timeline-container {
  position: relative;
  padding-left: 30px;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 5px;
  width: 3px;
  height: 98%;
  background-color: var(--sky);
}

.timeline-item {
  position: relative;
  margin-bottom: 45px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-circle {
  position: absolute;
  left: -30px;
  top: 5px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background-color: var(--gold);
  border: 4px solid var(--white);
  box-shadow: 0 0 0 3px var(--sky);
  z-index: 2;
}

.timeline-content {
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.timeline-content:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--sky);
}

.timeline-year {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.timeline-content p {
  margin-bottom: 0;
  font-size: 0.88rem;
  color: var(--gray-500);
}

/* =========================================================
   TESTIMONIALS SECTION (FALLBACK AVATAR FIX)
   ========================================================= */
.testimonial-card {
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  position: relative;
  height: 100%;
}

.testimonial-card .quote-icon {
  font-size: 2.2rem;
  color: rgba(14, 165, 233, 0.1);
  position: absolute;
  top: 20px;
  right: 30px;
}

.testimonial-rating {
  color: var(--gold);
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.testimonial-text {
  font-size: 0.92rem;
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Testimonial Fallback user icon layout */
.testimonial-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--sky-light);
  color: var(--sky);
  font-size: 1.6rem;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(14, 165, 233, 0.2);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-user-info h5 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--navy);
}

.testimonial-user-info span {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* =========================================================
   GALLERY PAGE & LIGHTBOX
   ========================================================= */
.gallery-filter-btn {
  padding: 8px 20px;
  font-weight: 600;
  border-radius: 50px;
  border: 1px solid var(--gray-200);
  background-color: var(--white);
  color: var(--gray-700);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  margin: 4px;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background-color: var(--sky);
  border-color: var(--sky);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
  position: relative;
  cursor: pointer;
  background-color: var(--light);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(10, 37, 64, 0.85) 0%, rgba(10, 37, 64, 0.1) 80%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: var(--transition);
  z-index: 2;
}

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

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

.gallery-overlay h5 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 2px;
  font-weight: 600;
}

.gallery-overlay span {
  color: var(--gold);
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Lightbox Modal custom styles */
#lightboxModal .modal-content {
  background-color: transparent;
  border: none;
}

#lightboxModal .modal-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

#lightboxModal .lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
}

#lightboxModal .lightbox-caption {
  color: var(--white);
  text-align: center;
  margin-top: 15px;
  font-size: 1rem;
  font-weight: 500;
}

#lightboxModal .btn-close-lightbox {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
  outline: none;
}

/* =========================================================
   CONTACT SECTION & MAP
   ========================================================= */
.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}

.contact-info-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: rgba(14, 165, 233, 0.08);
  color: var(--sky);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.15rem;
  margin-right: 15px;
  flex-shrink: 0;
}

.contact-info-text h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--navy);
}

.contact-info-text p {
  font-size: 0.88rem;
  color: var(--gray-500);
  margin-bottom: 0;
}

.map-wrapper {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  height: 100%;
  min-height: 350px;
}

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

.custom-form .form-control {
  border-radius: 8px;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  font-size: 0.9rem;
  color: var(--dark);
}

.custom-form .form-control:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.custom-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer-dark {
  background-color: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 70px 0 0;
  font-size: 0.88rem;
  border-top: 5px solid var(--gold);
}

.footer-dark h4 {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-dark h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--gold);
}

.footer-logo-title h3 {
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.footer-logo-title h4 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  margin-bottom: 15px;
  padding: 0;
}

.footer-logo-title h4::after {
  display: none;
}

.footer-dark ul {
  padding: 0;
  list-style: none;
}

.footer-dark ul li {
  margin-bottom: 12px;
}

.footer-dark ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-dark ul li a:hover {
  color: var(--gold);
  padding-left: 5px;
}

.footer-social-icons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  transition: var(--transition);
  text-decoration: none;
}

.footer-social-icons a:hover {
  background-color: var(--gold);
  color: var(--navy);
  transform: translateY(-3px);
}

.footer-bottom {
  background-color: var(--navy-dark);
  padding: 20px 0;
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
  margin-bottom: 0;
  font-size: 0.8rem;
}

.footer-bottom a {
  color: var(--white);
}

.footer-bottom a:hover {
  color: var(--gold);
}

/* =========================================================
   BACK TO TOP BUTTON
   ========================================================= */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: var(--sky);
  color: var(--white);
  border: none;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

#backToTop:hover {
  background-color: var(--gold);
  color: var(--navy);
  transform: translateY(-3px);
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}

/* =========================================================
   MEDIA QUERIES
   ========================================================= */
@media (max-width: 991.98px) {
  .brand-container {
    justify-content: center;
    text-align: center;
    gap: 15px;
  }

  .topbar {
    display: none;
  }

  .brand-section {
    display: none;
  }

  .custom-navbar {
    display: block;
  }

  .brand-badge-right {
    border-left: none;
    border-top: 2px solid var(--gold);
    padding-left: 0;
    padding-top: 10px;
    width: 100%;
    justify-content: center;
  }

  .custom-navbar .nav-link {
    padding: 10px 20px !important;
  }

  .custom-navbar .nav-link::after {
    display: none;
  }

  .custom-navbar .dropdown-menu {
    border-radius: 0;
    border-top: none;
    border-left: 3px solid var(--gold);
    background-color: rgba(255, 255, 255, 0.03);
    margin-left: 20px;
  }

  .hero-slider {
    height: 500px;
  }

  .hero-slider .carousel-caption {
    left: 4%;
    right: 4%;
    padding-right: 0;
  }
}

@media (max-width: 767.98px) {
  .brand-logo-left {
    flex-direction: column;
    gap: 10px;
  }

  .brand-text h1 {
    font-size: 1.3rem;
  }

  .brand-text h2 {
    font-size: 1.15rem;
  }

  .hero-slider {
    height: 420px;
  }

  .hero-slider h2 {
    margin-bottom: 12px;
  }

  .hero-slider p {
    margin-bottom: 20px;
  }

  .section-padding {
    padding: 50px 0;
  }

  .section-title {
    margin-bottom: 35px;
  }

  .section-title h2 {
    font-size: 1.7rem;
  }

  .stats-section {
    padding: 40px 0;
  }

  .stat-card {
    margin-bottom: 30px;
  }

  .stat-card:last-child {
    margin-bottom: 0;
  }
}