@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:wght@400;600;700&display=swap");

:root {
  --primary-color: #163b5c; /* Deep charcoal */
  --secondary-color: #f4f4f4; /* Light grey */
  --accent-color: #d4af37; /* Earthy gold */
  --text-dark: #333333;
  --text-light: #666666;
  --bg-white: #ffffff;
  --bg-light: #f9f9f9;
  --bg-dark: #121212;
  --font-heading: "Playfair Display", serif;
  --font-body: "Inter", sans-serif;
  --transition: all 0.3s ease-in-out;
}

html {
  /* Fluid typography perfectly scales based on viewport */
  font-size: clamp(14px, 1.2vw + 10px, 16px);
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
}
p {
  text-align: justify;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-color);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

/* #heroAbout{
width:100%;
height:35vh; 
background-position:center;
background-repeat:no-repeat;
background-size:100% auto; 
margin:0;
padding:0;
}

#heroAbout .hero-overlay{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background:linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

#heroAbout .container{
height:100%;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
text-align:center;
}  */

.btn-primary-custom {
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid var(--primary-color);
  transition: var(--transition);
  font-size: 0.85rem;
}

.btn-primary-custom:hover {
  background-color: var(--primary-color);
  color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(22, 59, 92, 0.3);
  opacity: 0.9;
}

.btn-outline-custom {
  background-color: transparent;
  color: var(--primary-color);
  padding: 12px 30px;
  border-radius: 0;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid var(--primary-color);
  transition: var(--transition);
}

.btn-outline-custom:hover {
  background-color: var(--primary-color);
  color: var(--bg-white);
}

/* Typography Helpers */
.section-title {
  font-size: clamp(1.2rem, 4vw + 1rem, 2rem);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  height: 3px;
  width: 80px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    #d4af37,
    var(--primary-color)
  );
  border-radius: 2px;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.5vw + 0.3rem, 1.1rem);
  color: var(--text-light);
  margin-bottom: 1rem !important;
}

/* Top Bar */
.top-bar {
  background-color: var(--primary-color);
  color: #ffffff;
  font-size: 0.8rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar i {
  color: var(--accent-color);
  margin-right: 5px;
}

.top-bar a {
  color: var(--secondary-color);
}

.top-bar a:hover {
  color: var(--accent-color);
}

/* Main Navbar */
.navbar {
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  z-index: 1030;
}

.logo-bar {
  background-color: #ffffff;
  transition: var(--transition);
}

.logo-bar img {
  max-width: 100%;
  height: auto;
}

.navbar.sticky-top {
  border-top: 1px solid #f0f0f0;
}

.navbar.sticky-header {
  padding: 10px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw + 0.5rem, 1.8rem);
  color: var(--primary-color);
  letter-spacing: 1px;
}

.navbar-brand span {
  color: var(--accent-color);
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--primary-color) !important;
  text-transform: none;
  font-size: 0.85rem;
  letter-spacing: 1px;
  padding: 10px 12px !important;
  position: relative;
  transition: var(--transition);
}

.nav-link::before {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 2px;
  background-color: #d4af37;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: #d4af37 !important;
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 100%;
}

.menu-toggler {
  border: none;
  background: transparent;
  font-size: clamp(1.2rem, 2vw + 0.5rem, 1.5rem);
  color: var(--primary-color);
  cursor: pointer;
}

/* Offcanvas */
.offcanvas {
  background-color: #ffffff !important;
  color: var(--primary-color) !important;
  width: 320px !important;
  z-index: 3000;
}

.offcanvas-header {
  background-color: #e3e9f1 !important;
  border-bottom: 1px solid rgba(22, 59, 92, 0.08);
}

.offcanvas-header .btn-close {
  filter: none;
  opacity: 0.8;
}

.offcanvas-header .btn-close:hover {
  opacity: 1;
}

.offcanvas-body .nav-link {
  color: var(--primary-color) !important;
  font-size: 1.1rem;
  font-weight: 700;
  transition: var(--transition);
  border: none !important;
}

/* Unify padding and alignment in offcanvas mobile list (main links only) */
.offcanvas-body .mobile-nav-list > .nav-item {
  border-bottom: 1px solid rgba(22, 59, 92, 0.08) !important;
  margin: 0 !important;
}

.offcanvas-body .mobile-nav-list > .nav-item > .nav-link,
.offcanvas-body .mobile-nav-list > .nav-item > .d-flex > .nav-link {
  padding: 12px 0 !important; /* Force same vertical padding, zero horizontal padding for alignment */
  font-size: 1.05rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  margin: 0 !important;
  color: var(--primary-color) !important;
}

.offcanvas-body .mobile-nav-list > .nav-item > .d-flex {
  padding: 0 !important; /* Remove wrapper div double padding */
  margin: 0 !important;
  width: 100%;
}

.offcanvas-body .mobile-nav-list > .nav-item > .nav-link:hover,
.offcanvas-body .mobile-nav-list > .nav-item > .nav-link.active,
.offcanvas-body .mobile-nav-list > .nav-item > .d-flex > .nav-link:hover,
.offcanvas-body .mobile-nav-list > .nav-item > .d-flex > .nav-link.active {
  color: var(--accent-color) !important;
  padding-left: 10px !important;
}

.offcanvas-body .mobile-nav-list > .nav-item > .d-flex button {
  padding: 12px 10px !important;
  color: var(--primary-color) !important;
}

.offcanvas-body .nav-link::before {
  display: none;
}

.offcanvas .btn-link.text-white {
  color: var(--primary-color) !important;
}

.sub-menu .nav-link {
  font-size: 0.95rem;
  padding-left: 20px !important;
  color: var(--text-light) !important;
}

.sub-menu .nav-link:hover,
.sub-menu .nav-link.active {
  color: var(--accent-color) !important;
}

.offcanvas .social-btn {
  color: var(--primary-color) !important;
  border-color: rgba(22, 59, 92, 0.15) !important;
}

.offcanvas .social-btn:hover {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  border-color: var(--primary-color) !important;
}

.social-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  transition: var(--transition);
}

.social-btn:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
  border-color: var(--accent-color);
  transform: translateY(-3px);
}

.text-accent {
  color: var(--accent-color);
}

/* Responsive Desktop Navbar for screens below 1250px */
.desktop-menu-toggler {
  display: none;
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 8px;
  width: 35px;
  height: 35px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  position: absolute;
  right: 15px;
}

.desktop-menu-toggler:hover {
  background-color: var(--primary-color);
  color: #ffffff;
}

.desktop-menu-toggler i {
  font-size: 1.5rem;
  line-height: 1;
}

@media (max-width: 1250px) {
  .nav-link {
    font-size: 0.78rem;
    padding: 8px 6px !important;
    letter-spacing: 0.3px;
  }
}

/* Sticky Navbar Custom Layout & Breakpoints */
.navbar .sticky-logo-col {
  display: none !important;
}

.navbar .navbar-links-col {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  display: flex !important;
  justify-content: center !important;
}

.navbar .toggle-col {
  display: none !important;
}

.navbar .sticky-logo img {
  width: 100% !important;
  height: auto !important;
  max-height: 55px !important;
  object-fit: contain !important;
  object-position: left !important;
  display: block !important;
}

/* Below 1150px on non-sticky navbar, hide 4 links and show toggle */
@media (max-width: 1150px) {
  .navbar:not(.sticky-header) .nav-hide-under-1250 {
    display: none !important;
  }
  .navbar:not(.sticky-header) .toggle-col {
    display: block !important;
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }
  .navbar:not(.sticky-header) .desktop-menu-toggler {
    display: flex !important;
    position: static !important;
  }
  .navbar:not(.sticky-header) .nav-link {
    font-size: 0.8rem;
    padding: 8px 12px !important;
    letter-spacing: 0.5px;
  }
}

/* Rules applying ONLY when navbar has scrolled and has the sticky class */
.navbar.sticky-header .container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 3% !important;
  padding-right: 3% !important;
}

.navbar.sticky-header .sticky-logo-col {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex: 0 0 16.666667% !important;
  max-width: 16.666667% !important;
}

.navbar.sticky-header .sticky-logo {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.navbar.sticky-header .navbar-links-col {
  display: flex !important;
  align-items: center !important;
  flex: 0 0 83.333333% !important;
  max-width: 83.333333% !important;
  justify-content: center !important;
}

.navbar.sticky-header .toggle-col {
  display: none !important;
}

/* Redo the toggle breakpoint to 1500px only for the sticky navbar */
@media (max-width: 1500px) {
  .navbar.sticky-header .nav-hide-under-1250 {
    display: none !important;
  }
  .navbar.sticky-header .navbar-links-col {
    flex: 0 0 75% !important;
    max-width: 75% !important;
  }
  .navbar.sticky-header .nav-link {
    font-size: 0.8rem;
    padding: 8px 12px !important;
    letter-spacing: 0.5px;
  }
  .navbar.sticky-header .toggle-col {
    display: flex !important;
    flex: 0 0 8.333333% !important;
    max-width: 8.333333% !important;
    justify-content: flex-end !important;
    align-items: center !important;
  }
  .navbar.sticky-header .desktop-menu-toggler {
    display: flex !important;
    position: static !important;
  }
}

/* --- Navigation & Dropdown Core --- */

/* 1. Remove default arrow alignment issues */
.dropdown-toggle::after {
  vertical-align: middle;
}

/* 2. Custom Dropdown Styling (Your specific blue) */
.custom-dropdown {
  background-color: #163b5c !important; /* The specific blue */
  border: none;
  border-radius: 0;
  padding: 0;
  margin-top: 0; /* Changed from 25px to 0 to bridge the gap */
}

.custom-dropdown .dropdown-item {
  color: white !important;
  font-size: 0.95rem;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-transform: none;
  transition: background 0.3s;
}

/* 3. Hover state (Your slightly lighter blue) */
.custom-dropdown .dropdown-item:hover {
  background-color: #1e5a96 !important;
  color: white !important;
}

/* --- Hover Logic & "Touch" Fix --- */

@media (min-width: 992px) {
  /* Show menu on hover */
  .nav-item.dropdown:hover .dropdown-menu {
    display: block;
  }

  /* THE FIX: This invisible bridge fills the gap between navbar and menu 
       so the mouse 'touch' is never lost. */
  .nav-item.dropdown .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -30px; /* Adjust based on your navbar height */
    left: 0;
    width: 100%;
    height: 30px;
    background: transparent;
  }
}

/* --- Anti-White Color Fix (Locked Colors) --- */

/* 4. Keep "ABOUT US" text color consistent when clicked/active */
.nav-link.dropdown-toggle:focus,
.nav-link.dropdown-toggle:active,
.show > .nav-link.dropdown-toggle {
  background-color: transparent !important;
  color: inherit !important;
  outline: none !important;
  box-shadow: none !important;
}

/* 5. Prevent items from turning white or default blue when clicked or active */
.custom-dropdown .dropdown-item:active,
.custom-dropdown .dropdown-item:focus,
.custom-dropdown .dropdown-item.active,
.dropdown-menu > li > a:focus,
.dropdown-menu > li > a:active,
.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
  background-color: var(--accent-color) !important; /* Earthy Gold */
  color: var(--primary-color) !important; /* Deep brand blue */
  background-image: none !important; /* Removes Bootstrap gradients */
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
  background-color: rgba(26, 77, 140, 0.08) !important;
  color: var(--primary-color) !important;
}

.dropdown-menu .dropdown-item {
  font-size: 0.9rem;
}


/* --- Hero Section Styling --- */
.about-hero {
  background-size: cover !important;
  background-repeat: no-repeat !important;
  height: clamp(180px, 12vw + 100px, 270px);
  display: flex;
  align-items: center;
  position: relative;
  text-align: center;
}

.about-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55); /* Dark overlay */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content h1 {
  text-align: center;
  font-size: clamp(1.8rem, 4vw + 1rem, 3rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* --- Breadcrumb Customization --- */
.breadcrumb {
  background: transparent;
  padding: 0;
}

.breadcrumb-item a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb-item.active {
  font-weight: 500;
}

/* All breadcrumb items inside hero banner must be visible (white) against dark overlay */
.about-hero .breadcrumb-item {
  color: rgba(255, 255, 255, 0.8) !important;
}

.about-hero .breadcrumb-item a {
  color: #ffffff !important;
}

/* Changes the / to > like in your screenshot */
.breadcrumb-item + .breadcrumb-item::before {
  content: ">" !important;
  color: #ffffff !important;
}

:root {
  --jaya-blue: #1a4d8c;
  --jaya-light: #f8f9fa;
}

#aboutJaya {
  padding: 80px 0;
}

/* --- The Image Frame System --- */
.campus-frame-container {
  position: relative;
  padding: 30px;
}

.frame-outline {
  position: absolute;
  top: 0;
  left: 0;
  width: 90%;
  height: 90%;
  border: 2px solid var(--jaya-blue);
  border-radius: 20px;
  z-index: 1;
}

.frame-solid {
  position: relative;
  z-index: 2;
  background: white;
  padding: 15px;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
}

.campus-image {
  border-radius: 15px;
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.image-caption {
  position: absolute;
  bottom: 30px;
  right: -10px;
  background: var(--jaya-blue);
  color: white;
  padding: 10px 25px;
  border-radius: 5px;
  font-weight: 600;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
}

/* .frame-solid:hover {
    transform: translate(10px, -10px);
} */

/* --- Text Styling --- */
.ls-2 {
  letter-spacing: 2px;
}

.accent-body {
  border-left: 4px solid var(--jaya-blue);
  padding-left: 25px;
  margin: 30px 0;
}

.skill-card {
  background: white;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
}

.modern-quote {
  font-style: italic;
  font-size: 1.2rem;
  color: var(--jaya-blue);
  font-weight: 700;
  position: relative;
  padding-left: 40px;
}

.modern-quote::before {
  content: "“";
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 4rem;
  opacity: 0.2;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
  #aboutJaya {
    padding: 50px 0;
  }

  .campus-image {
    height: 300px;
  }

  .frame-outline {
    display: none;
  } /* Simplify for mobile */

  .accent-body {
    padding-left: 15px;
  }

  .display-5 {
    font-size: 2rem;
  }
}

:root {
  --jaya-blue: #1a4d8c;
  --soft-blue: #f0f4f8;
  --text-dark: #333333;
  --transition-speed: 0.4s;
}

/* Section Container */
.identity-section {
  background-color: #ffffff;
  padding: 80px 0;
}

/* The Grid Row */
/* We use g-4 for consistent spacing between cards */
.identity-row {
  margin-bottom: 0;
}

/* Modern Card Styling (Updated for Row Layout) */
.modern-card {
  height: 100%; /* Ensures all cards are the same height */
  padding: 40px 25px;
  border-radius: 20px;
  background: #ffffff;
  border-top: 5px solid var(--jaya-blue); /* Moved from left to top for row balance */
  box-shadow: 0 10px 30px rgba(26, 77, 140, 0.08);
  transition: all var(--transition-speed) ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.modern-card:hover {
  background: var(--soft-blue);
  transform: translateY(-10px); /* Lifts up instead of sliding right */
  box-shadow: 0 15px 40px rgba(26, 77, 140, 0.15);
}

/* Image Frame */
.img-frame {
  display: inline-block;
  padding: 15px;
  background: white;
  border-radius: 50%; /* Circle looks better in a row */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 25px;
}

/* Hero Slider */
.hero-section {
  position: relative;
  height: clamp(240px, 64vh, 520px);
  margin-top: 0;
  overflow: hidden;
  padding: 0 !important;
  margin: 0 !important;
}

.heroSwiper {
  width: 100%;
  height: 100%;
}

.heroSwiper .swiper-slide {
  position: relative;
  width: 100%;
  height: 100%;
}

.heroSwiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.topic-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.modern-card:hover .topic-img {
  transform: scale(1.1);
}

/* Typography */
.identity-title {
  color: var(--jaya-blue);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  text-transform: uppercase;
}

/* Decorative centered underline */
.identity-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background-color: var(--jaya-blue);
}

.identity-text {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 400;
  margin-top: 10px;
}

/* --- Mobile & Tablet Responsive --- */
@media (max-width: 991px) {
  /* Tablet View: 2 cards per row might look better, or keep 1 */
  .identity-section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .identity-section {
    padding: 40px 0;
  }

  .modern-card {
    padding: 30px 20px;
    margin-bottom: 20px; /* Space between stacked cards */
    transform: none !important; /* Disable hover lift on mobile for better UX */
  }

  .identity-title {
    font-size: 1.3rem;
  }

  .identity-text {
    font-size: 0.95rem;
  }

  .topic-img {
    width: 70px;
    height: 70px;
  }
}

/* --- Chairman Section Layout --- */
#chairmanSection {
  background: #ffffff;
  padding: 80px 0;
}

/* --- Compact Image Styling with Reduced Height --- */
.chairman-image-container-small {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  max-width: 320px;
  margin-left: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.chairman-image-container-small img {
  width: 100%;
  height: 350px; /* Set the specific height you want here */
  object-fit: cover; /* Crops the image to fill the area without stretching */
  object-position: top; /* Ensures the face remains visible */
}

.chairman-label-compact {
  background: #2c75c0;
  color: #fff;
  padding: 12px; /* Slightly reduced padding to match shorter height */
  text-align: center;
}

.chairman-label-compact h4 {
  font-size: 1.1rem;
  font-weight: 700;
}

/* --- Content Styling: Curved Left Accent (Reduced Padding) --- */
.chairman-content-balanced {
  background: transparent;
  border-left: 5px solid #1a4d8c;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;

  margin-left: 20px;
  padding: 5px 0 5px 25px; /* Decreased padding from 35px to 25px */
}

/* --- Decreased Text Sizes --- */
.lead-text {
  font-size: 1.25rem !important; /* Decreased from 1.4rem */
  font-weight: 700 !important;
  color: #2c75c0;
  line-height: 1.4;
  margin-bottom: 15px; /* Tighter spacing */
}

.message-para {
  font-weight: 500;
  font-size: 1.05rem; /* Decreased from 1.15rem */
  line-height: 1.7; /* Decreased spacing from 2 to 1.7 */
  color: #1a1a1a;
  text-align: justify;
  margin-bottom: 15px; /* Tighter spacing */
}

/* --- Smaller Quote Style --- */
.quote-header {
  margin-bottom: 1.5rem; /* Decreased gap */
  display: block;
}

.quote-header p {
  font-size: 1.25rem; /* Decreased from 1.5rem */
  color: #1a4d8c;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 5px;
}

.quote-header .blockquote-footer {
  display: block;
  font-size: 1.05rem; /* Decreased from 1.05rem */
  color: #666;
  font-weight: 700;
  letter-spacing: 0.5px;

  padding-top: 9px;
}
/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
  .chairman-image-container-small {
    margin: 0 auto 30px auto;
  }
  .chairman-content-balanced {
    margin-left: 0;
    padding-left: 20px;
  }
}

/* --- Secretary Section Layout --- */
#secretarySection {
  background: #ffffff;
  padding: 60px 0;
}

/* --- Image Styling (No Card/Shadow Box) --- */
.secretary-image-container-small {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  max-width: 320px;
  margin-left: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Soft shadow like Chairman */
}

.secretary-image-container-small img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: top;
}

.secretary-label-compact {
  background: #2c75c0;
  color: #fff;
  padding: 12px;
  text-align: center;
}

.secretary-label-compact h4 {
  font-size: 1.1rem;
  font-weight: 700;
}

/* --- Content Styling: Curved Left Accent (Matches Chairman) --- */
.secretary-content-balanced {
  background: transparent;
  border-left: 5px solid #1a4d8c;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;

  margin-left: 20px;
  padding: 5px 0 5px 25px;
}

/* --- Text Styling (Small & Compact) --- */
.lead-text {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: #2c75c0;
  line-height: 1.4;
  margin-bottom: 15px;
}

.message-para {
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.6;
  color: #1a1a1a;
  text-align: justify;
  margin-bottom: 12px;
}

.quote-header p {
  font-size: 1.5rem;
  color: #1a4d8c;
  font-weight: 600;
  margin-bottom: 5px;
}

/* --- Mobile View --- */
@media (max-width: 991px) {
  .secretary-image-container-small {
    margin: 0 auto 20px auto;
  }
  .secretary-content-balanced {
    margin-left: 0;
    padding-left: 15px;
  }
}

/* --- Vice Chairman Section Layout --- */
#viceChairmanSection {
  background: #ffffff;
  padding: 60px 0;
}

/* --- Compact Image Styling --- */
.vice-image-container-small {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  max-width: 320px;
  margin-left: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.vice-image-container-small img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: top;
}

.vice-label-compact {
  background: #2c75c0;
  color: #fff;
  padding: 12px;
  text-align: center;
}

.vice-label-compact h4 {
  font-size: 1.1rem;
  font-weight: 700;
}

/* --- Content Styling: Curved Left Accent --- */
.vice-content-balanced {
  background: transparent;
  border-left: 5px solid #1a4d8c;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;

  margin-left: 20px;
  padding: 5px 0 5px 25px; /* Compact padding like others */
}

/* --- Text Styling (Small & Compact) --- */
.lead-text {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: #1a4d8c;
  line-height: 1.4;
  margin-bottom: 15px;
}

.message-para {
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.6;
  color: #1a1a1a;
  text-align: justify;
  margin-bottom: 12px;
}

/* --- Mobile View --- */
@media (max-width: 991px) {
  .vice-image-container-small {
    margin: 0 auto 20px auto;
  }
  .vice-content-balanced {
    margin-left: 0;
    padding-left: 15px;
  }
}

/* 2x2 Grid Structure */
#gallerySection .row.g-4 {
  display: flex;
  flex-wrap: wrap;
}

/* Force 2 items per row on desktop and tablet */
#gallerySection .col-md-6.col-lg-3 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 10px; /* Decreased padding between cards */
}

/* Main Page Card Styles */
.gallery-link-card {
  text-decoration: none !important;
  display: block;
  color: inherit;
  transition: 0.3s;
  margin-bottom: 10px;
  padding: 0; /* Removed padding around the card itself */
}

.img-box-wrapper {
  position: relative;
  height: 350px;
  border-radius: 20px;
  overflow: hidden;
  /* Box shadow removed as requested */
}

.img-box-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Glass-morphism Hover Effect (Lite Black Shade) */
.hover-label {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45); /* Lite black shade */
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.4s ease;
}

/* White Button Style Text */
.hover-label span {
  color: #ffffff;
  padding: 10px 25px;
  border: 2px solid #ffffff;
  border-radius: 30px;
  font-weight: bolder;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.gallery-link-card:hover .hover-label {
  opacity: 1;
}

.gallery-link-card h4 {
  text-align: center;
  margin-top: 15px;
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a4d8c;
}

/* Quote Styling */
.quote-box {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 10%;
}

.quote-main {
  font-size: 1.6rem;
  font-family: "Playfair Display", serif;
  color: #1a4d8c;
  font-style: italic;
  display: block;
  line-height: 1.4;
}

.quote-sig {
  color: gray;
  font-size: 0.85rem;
  display: block;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 10px;
}

/* ==========================================
   MOBILE VIEW UPDATES
   ========================================== */
@media (max-width: 768px) {
  /* Quote size decrease for mobile */
  .quote-main {
    font-size: 1.2rem;
  }

  .quote-box {
    padding: 0 5%;
    margin-bottom: 30px;
  }

  /* Full width images on mobile */
  #gallerySection .col-md-6.col-lg-3 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 5px 15px; /* Minimal padding for mobile */
  }

  .img-box-wrapper {
    height: 250px; /* Reduced height for better mobile scrolling */
  }

  .gallery-link-card h4 {
    font-size: 1.2rem;
  }
}

/* Page Background */
.gallery-page-wrapper {
  background-color: #ffffff;
  padding: 60px 0;
}

/* Heading & Header Bar */
.gallery-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  border-bottom: 2px solid #f2f2f2;
  padding-bottom: 20px;
}

.gallery-header-bar h2 {
  color: #1a4d8c; /* Deep Coral */
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
}

/* Button Styling */
.btn-coral-outline {
  color: #163b5c;
  border: 2px solid #163b5c;
  padding: 10px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn-coral-outline:hover {
  background-color: #163b5c;
  color: #ffffff;
}

/* Image Grid Styling */
.wall-image-styled {
  width: 100%;
  height: 180px; /* Uniform height like Pongal ref */
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
  cursor: pointer;
}

.wall-image-styled:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(205, 91, 69, 0.2); /* Subtle Coral glow */
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .gallery-header-bar {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .wall-image-styled {
    height: 200px; /* Shorter on mobile */
  }

  .btn-coral-outline {
    width: 100%;
    text-align: center;
  }
}

/* --- B.Arch Full Page Styling --- */

#barchAdmission {
  padding-bottom: 80px !important;
}

.admission-top-bar {
  background: #f8f9fa;
  border-left: 5px solid #1a4d8c;
  padding: 15px 25px;
  font-size: 1.05rem;
  color: #444;
  display: inline-block;
  text-align: left;
}

.lead-text-sub {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
}

.duration-highlight {
  background: #1a4d8c;
  color: #fff;
  padding: 10px 25px;
  border-radius: 5px;
  display: inline-block;
  font-size: 1rem;
}

/* --- Modern Glass Card Styling --- */
.modern-glass-card {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 35px;
  transition: all 0.4s ease;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.modern-glass-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.6);
  border-color: #2c75c0;
}

.card-icon-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.card-icon-header i {
  font-size: 2rem;
  color: #1a4d8c;
  margin-right: 15px;
}

.card-icon-header h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1a4d8c;
  margin: 0;
}

/* Glass List Dots */
.glass-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  color: #333;
  line-height: 1.6;
}

.list-dot {
  width: 8px;
  height: 8px;
  background: #28a745; /* Success Green */
  border-radius: 50%;
  margin-top: 8px;
  margin-right: 12px;
  flex-shrink: 0;
}

/* --- Simple Mobile Glass --- */
@media (max-width: 991px) {
  .modern-glass-card {
    padding: 15px; /* Reduced padding for more text space */
    margin-bottom: 15px; /* Clear gap between stacked cards */
    backdrop-filter: blur(5px); /* Minimal blur for better performance */
    border-radius: 12px;
  }

  .card-icon-header h3 {
    font-size: 1.1rem; /* Clean, readable heading */
  }

  .glass-list li {
    font-size: 0.9rem; /* Standard mobile font size */
    margin-bottom: 10px;
  }

  .list-dot {
    display: none; /* Simple: remove dots on mobile to save space */
  }
}

:root {
  --jaya-blue: #1a4d8c;
  --jaya-green: #28a745;
  --light-gray: #f9f9f9;
}

.title-underline {
  width: 60px;
  height: 4px;
  background: var(--jaya-green);
  margin: 10px auto;
  border-radius: 2px;
}
.ls-1 {
  letter-spacing: 2px;
}

/* Checklist Styling */
.feature-checklist {
  list-style: none;
  padding: 0;
}
.feature-checklist li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 12px;
  color: #444;
  line-height: 1.6;
}
.feature-checklist li::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--jaya-green);
  font-size: 1.1rem;
}

/* Workshop Tags */
.mini-tag {
  background: var(--light-gray);
  border: 1px solid #eee;
  padding: 8px;
  text-align: center;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--jaya-blue);
  transition: 0.3s;
}
.mini-tag:hover {
  background: var(--jaya-blue);
  color: white;
  border-color: var(--jaya-blue);
}

/* Image Container Polish */
.img-frame-left {
  padding: 10px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 25px;
  transition: transform 0.4s ease;
}
.img-frame-left:hover {
  transform: scale(1.02);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .ps-lg-5 {
    padding-left: 15px !important;
    margin-top: 20px;
  }
  .border-bottom {
    border-bottom: 1px solid #eee !important;
  }
}

:root {
  --primary-blue: #1a4d8c;
  --charcoal-blue: #163b5c; /* Your specific charcoal color */
  --light-border: #e5e5e5;
}

/* --- Right Side Info Boxes --- */
.info-box {
  margin-bottom: 25px;
  margin-top: 25px;
}

.info-box h5 {
  color: var(--primary-blue);
  font-weight: 800;
  margin-bottom: 12px;
  font-size: 1.05rem;
  text-transform: uppercase;
  border-left: 4px solid var(--primary-blue);
  padding-left: 12px;
}

/* Vertical Spacing Tightness */
.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px !important; /* Decreased gap between rows */
}

.info-item i {
  color: var(--charcoal-blue); /* Deep Charcoal Applied */
  margin-top: 4px;
  width: 28px;
  font-size: 1.1rem;
}

.info-item p,
.info-item a {
  margin-bottom: 0;
  color: #555;
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.3 !important; /* Tightened line height for address blocks */
}

.info-item a:hover {
  color: var(--primary-blue);
  text-decoration: underline;
}

/* --- Responsive Mobile View --- */
@media (max-width: 991px) {
  .info-item {
    margin-bottom: 6px !important;
  }
  .info-item p,
  .info-item a {
    line-height: 1.2 !important;
  }
}

@media (max-width: 576px) {
  .info-box {
    margin-bottom: 20px !important;
  }
  .info-box h5 {
    font-size: 0.95rem;
  }
}

/* --- Map --- */
.map-container {
  height: 400px;
  width: 100%;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid #eee;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .contact-card {
    padding: 25px;
  }
}

/* Floating Sidebar Container */
.floating-sidebar {
  position: fixed;
  right: 20px;
  bottom: 10px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1050;
}

/* Individual Icon Style */
.float-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.float-icon:hover {
  transform: scale(1.1);
  color: white;
}
/* Colors from your image */
.enquiry-bg {
  background-color: #163b5c;
} /* Blue */
.message-bg {
  background-color: #3b82f6;
} /* Light Blue / Robot */
.whatsapp-bg {
  background-color: #25d366;
} /* WhatsApp Green */

/* Responsive: Hide or shrink on very small screens if needed */
@media (max-width: 576px) {
  .floating-sidebar {
    right: 10px;
  }
  .float-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

.ad-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.623);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999999;
  animation: fadeIn 0.4s ease;
}

.ad-popup-content {
  position: relative;
  width: 90%;
  max-width: 600px;
  animation: scaleIn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ad-close-btn {
  position: absolute;
  top: -20px;
  right: -20px;
  background: var(--primary-color);
  border: 2px solid white;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 10;
  transition: var(--transition);
}

.ad-close-btn:hover {
  background: var(--accent-color);
  transform: rotate(90deg);
}

.ad-image-wrapper {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  background: white;
}

.ad-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 576px) {
  .ad-close-btn {
    top: -18px;
    right: -15px;
  }
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px; /* Adjust this if it overlaps your float-icons */
  width: 45px;
  height: 45px;
  background-color: #0d3b66; /* Your Jaya Blue */
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 999;
  transition: all 0.3s ease;
  text-decoration: none;
}

.back-to-top:hover {
  background-color: #000;
  color: #fff;
  transform: translateY(-5px);
}

/* Responsive: Move it slightly on mobile if needed */
@media (max-width: 768px) {
  .back-to-top {
    right: 15px;
    bottom: 15px;
    width: 40px;
    height: 40px;
  }
}

.chat-box {
  position: fixed;
  bottom: 90px; /* Positioned above the float icon */
  right: 20px;
  width: 350px;
  background: #fff;
  border-radius: 12px;
  z-index: 1050;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.chat-header {
  background-color: #0d3b66; /* Your Institute Blue */
}

.chat-bubble.bot-msg {
  background-color: #f8f9fa;
  border-radius: 15px 15px 15px 0;
  border: 1px solid #e9ecef;
}

.btn-primary-custom {
  background-color: #0d3b66;
  border: none;
  color: white;
}

/* Mobile Responsiveness */
@media (max-width: 450px) {
  .chat-box {
    width: 90%;
    right: 5%;
    bottom: 80px;
  }
}

.heroSwiper .swiper-button-next,
.heroSwiper .swiper-button-prev {
  color: #fff;
  background: rgba(22, 59, 92, 0.5);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: var(--transition);
}

.heroSwiper .swiper-button-next:after,
.heroSwiper .swiper-button-prev:after {
  font-size: 20px;
  font-weight: bold;
}

.heroSwiper .swiper-button-next:hover,
.heroSwiper .swiper-button-prev:hover {
  background: var(--primary-color);
}

.heroSwiper .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #fff;
  opacity: 0.5;
}

.heroSwiper .swiper-pagination-bullet-active {
  background: var(--primary-color);
  opacity: 1;
}

.hero-title,
.hero-desc,
.hero-buttons {
  display: none !important;
}

/* Highlights Section */
.highlights-section {
  padding: 30px 0;
  background-color: var(--bg-white);
  position: relative;
  margin-top: -50px;
  z-index: 3;
}

.highlight-card {
  background: var(--bg-white);
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.highlightsSwiper .swiper-slide:nth-child(6n + 1) .highlight-card {
  background-color: #f0f7ff;
  border-top: 3px solid #007bff;
}
.highlightsSwiper .swiper-slide:nth-child(6n + 2) .highlight-card {
  background-color: #f0fff4;
  border-top: 3px solid #28a745;
}
.highlightsSwiper .swiper-slide:nth-child(6n + 3) .highlight-card {
  background-color: #fffaf0;
  border-top: 3px solid #fd7e14;
}
.highlightsSwiper .swiper-slide:nth-child(6n + 4) .highlight-card {
  background-color: #fff0f6;
  border-top: 3px solid #e83e8c;
}
.highlightsSwiper .swiper-slide:nth-child(6n + 5) .highlight-card {
  background-color: #f5f0ff;
  border-top: 3px solid #6f42c1;
}
.highlightsSwiper .swiper-slide:nth-child(6n + 6) .highlight-card {
  background-color: #f0fffb;
  border-top: 3px solid #20c997;
}

.highlightsSwiper .swiper-slide {
  height: auto; /* allows flexbox stretching of swiper row */
}

.highlight-card:hover {
  transform: translateY(-10px);
  border-bottom-color: var(--primary-color);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.highlight-icon {
  font-size: clamp(1.8rem, 4vw + 1rem, 2.5rem);
  color: var(--primary-color);
  margin-bottom: 15px;
}

.highlight-title {
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 1.5vw + 0.3rem, 1.1rem);
  font-weight: 600;
  color: var(--primary-color);
}

/* About Section */
.about-section {
  padding: 40px 0;
  background-color: var(--bg-light);
}

.about-img-container {
  position: relative;
  z-index: 1;
  padding-bottom: 20px;
  padding-right: 20px;
}

.about-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 4px solid var(--accent-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.about-img-wrapper img {
  width: 100%;
  border-radius: 12px;
  transition: var(--transition);
}

.about-img-wrapper:hover img {
  transform: scale(1.05);
}

.excellence-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(22, 59, 92, 0.98) 0%, rgba(10, 25, 40, 1) 100%);
  border: 3px solid var(--accent-color);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 15px 35px rgba(22, 59, 92, 0.4);
  z-index: 10;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 10px;
}

.excellence-badge:hover {
  transform: translateY(-8px) scale(1.05) rotate(5deg);
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.25);
  border-color: #ffffff;
}

.excellence-badge .badge-icon {
  font-size: 1.4rem;
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: 4px;
}

.excellence-badge .badge-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.excellence-badge .badge-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  font-family: var(--font-body);
}

.excellence-badge .badge-text {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1.2;
  margin-top: 2px;
}

@media (max-width: 576px) {
  .about-img-container {
    padding-bottom: 15px;
    padding-right: 15px;
  }
  .about-img-wrapper {
    border-radius: 12px;
    border: 3px solid var(--accent-color);
  }
  .about-img-wrapper img {
    border-radius: 9px;
  }
  .excellence-badge {
    bottom: -15px;
    right: -10px;
    width: 95px;
    height: 95px;
  }
  .excellence-badge .badge-icon {
    font-size: 1.1rem;
    margin-bottom: 2px;
  }
  .excellence-badge .badge-number {
    font-size: 1.35rem;
  }
  .excellence-badge .badge-text {
    font-size: 0.55rem;
    letter-spacing: 0.2px;
  }
}

.program-img-wrapper {
  z-index: 1;
}

.program-img-wrapper::before {
  content: "";
  position: absolute;
  top: -15px;
  left: -15px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--primary-color);
  border-radius: 1.5rem;
  z-index: -1;
}

.experience-badge {
  position: absolute;
  bottom: 30px;
  right: -20px;
  background-color: var(--primary-color);
  color: #fff;
  padding: 20px;
  border-radius: 1rem;
  text-align: center;
  min-width: 100px;
}

.program-icon-box {
  transition: var(--transition);
}

.program-info .btn-primary-custom:hover {
  background-color: var(--primary-color);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(22, 59, 92, 0.2);
}

.program-info .btn-outline-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(22, 59, 92, 0.1);
}

@media (max-width: 991px) {
  .experience-badge {
    right: 10px;
    bottom: 10px;
    padding: 15px;
  }
  .program-img-wrapper::before {
    display: none;
  }
}

/* Why Choose Section */
.why-choose-section {
  padding: 40px 0;
  background: radial-gradient(circle at 10% 20%, rgba(22, 59, 92, 0.98) 0%, rgba(10, 25, 42, 1) 90%);
  color: var(--bg-white);
  position: relative;
  overflow: hidden;
}

.why-choose-section::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, rgba(0,0,0,0) 70%);
  z-index: 0;
  pointer-events: none;
}

.why-choose-section .container {
  position: relative;
  z-index: 1;
}

.why-choose-section .section-title {
  color: var(--bg-white);
  font-size: clamp(2rem, 3.5vw + 0.5rem, 2.5rem);
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.why-choose-section .section-title::after {
  background-color: var(--accent-color);
  left: 50%;
  transform: translateX(-50%);
}

.why-feature-wrap {
  display: flex;
  align-items: flex-start;
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
  margin-bottom: 0;
  height: 100%;
}

.why-feature-wrap:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.08), 0 5px 15px rgba(0, 0, 0, 0.2);
}

.why-icon {
  width: 54px;
  height: 54px;
  min-width: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.12);
  color: var(--accent-color);
  font-size: 1.5rem;
  margin-right: 20px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.why-feature-wrap:hover .why-icon {
  background: var(--accent-color);
  color: var(--primary-color);
  transform: scale(1.1) rotate(5deg);
}

.why-text h4 {
  color: var(--bg-white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.5vw + 0.3rem, 1.2rem);
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.why-feature-wrap:hover .why-text h4 {
  color: var(--accent-color);
}

.why-text p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

/* Facilities Section */
.facilities-section {
  padding: 30px 0;
  background-color: var(--bg-white);
}

.facility-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.facility-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.facility-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(22, 59, 92, 0.9), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  transition: var(--transition);
}

.facility-title {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.facility-card:hover img {
  transform: scale(1.1);
}

.facility-card:hover .facility-overlay {
  opacity: 1;
}

.facility-card:hover .facility-title {
  transform: translateY(0);
}

/* Testimonials */
.testimonials-section {
  padding: 40px 0;
  background: url("https://images.unsplash.com/photo-1541880084-5f532a2f4ee8?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80")
    center/cover fixed;
  position: relative;
}

.testimonials-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  opacity: 0.9;
}

.testimonialsSwiper .swiper-slide {
  display: flex;
  height: auto;
}

.testimonial-card {
  position: relative;
  z-index: 2;
  color: var(--bg-white);
  text-align: center;
  margin: 0;
  height: 100%;
  padding: 20px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.testimonial-quote {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.5vw + 0.5rem, 1.2rem);
  font-style: italic;
  margin-bottom: 30px;
  line-height: 1.6;
}

.testimonial-name {
  color: var(--accent-color);
  font-size: clamp(0.95rem, 1.5vw + 0.2rem, 1.1rem);
  font-weight: 700;
  margin-bottom: 5px;
  margin-top: auto;
}

.testimonial-role {
  font-size: clamp(0.75rem, 1.2vw + 0.1rem, 0.85rem);
  color: #aaaaaa;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Achievements */
.achievements-section {
  padding: 40px 0;
  background-color: var(--bg-white);
  border-bottom: 1px solid #eaeaea;
}

.achievement-logo {
  text-align: center;
  transition: var(--transition);
  padding: 20px;
}

.achievement-logo:hover {
  transform: translateY(-5px);
}

.achievement-logo i {
  font-size: clamp(2.5rem, 5vw + 0.5rem, 3.5rem);
  margin-bottom: 15px;
  display: inline-block;
}

.achievements-section .col-6:nth-child(1) .achievement-logo i {
  color: #2196f3;
} /* Shield - Blue */
.achievements-section .col-6:nth-child(2) .achievement-logo i {
  color: #4caf50;
} /* Mortarboard - Green */
.achievements-section .col-6:nth-child(3) .achievement-logo i {
  color: #ff9800;
} /* Trophy - Orange */
.achievements-section .col-6:nth-child(4) .achievement-logo i {
  color: #f44336;
} /* Star - Red */
.achievements-section .col-6:nth-child(5) .achievement-logo i {
  color: #9c27b0;
} /* Easel - Purple */

.achievement-title {
  font-size: clamp(0.8rem, 1.5vw + 0.1rem, 0.9rem);
  font-weight: 600;
  color: var(--text-dark);
}

/* Admission Process */
.admission-process-section {
  padding: 40px 0;
  background-color: var(--bg-light);
}

.process-step {
  text-align: center;
  position: relative;
  margin-bottom: 30px;
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--bg-white);
  font-size: clamp(1.2rem, 2vw + 0.5rem, 1.5rem);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
}

.step-title {
  font-size: clamp(0.95rem, 1.5vw + 0.3rem, 1.1rem);
  font-weight: 600;
}

@media (min-width: 992px) {
  .process-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 30px;
    right: -50%;
    width: 100%;
    height: 2px;
    background-color: #dddddd;
    z-index: 1;
  }
}

/* News & Events */
.news-events-section {
  padding: 40px 0;
}

.newsSwiper .swiper-slide {
  display: flex;
  height: auto;
}

.event-card {
  border: 1px solid #eaeaea;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.event-card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  border-color: var(--accent-color);
}

.event-date {
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 10px;
  text-align: center;
  font-weight: 700;
}

.event-date span {
  display: block;
  font-size: clamp(1.2rem, 2vw + 0.5rem, 1.5rem);
  line-height: 1;
}

.event-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.event-title {
  font-size: clamp(0.95rem, 1.5vw + 0.3rem, 1.1rem);
  margin-bottom: 10px;
}

/* Group Institutions / Admissions CTA Section */
.group-section {
  background: url("../images/JayaSchool_Back.jpg") no-repeat center center/cover fixed;
  min-height: 400px;
  display: flex;
  align-items: center;
  padding: 80px 0;
  color: var(--bg-white);
  text-align: center;
}

.group-section .section-title {
  color: var(--bg-white);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.group-section .section-title::after {
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-color);
}

.group-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(22, 59, 92, 0.9) 0%, rgba(10, 25, 40, 0.95) 100%);
  backdrop-filter: blur(2px);
  z-index: 0;
}

.group-text {
  font-size: clamp(1rem, 1.5vw + 0.3rem, 1.25rem);
  max-width: 800px;
  margin: 0 auto 30px;
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  line-height: 1.7;
}

/* CTA Buttons */
.btn-cta-apply {
  background-color: var(--accent-color);
  color: var(--primary-color) !important;
  border: 2px solid var(--accent-color);
  padding: 14px 35px;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  border-radius: 4px;
}

.btn-cta-apply:hover {
  background-color: transparent;
  color: var(--accent-color) !important;
  border-color: var(--accent-color);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
  transform: translateY(-3px);
}

.btn-cta-readmore {
  background-color: transparent;
  color: var(--bg-white) !important;
  border: 2px solid rgba(255, 255, 255, 0.8);
  padding: 14px 35px;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-radius: 4px;
}

.btn-cta-readmore:hover {
  background-color: var(--bg-white);
  color: var(--primary-color) !important;
  border-color: var(--bg-white);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

/* Enquiry Form */
.enquiry-section {
  padding: 40px 0;
  background-color: var(--bg-light);
}

.contact-info-box {
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 40px;
  height: 100%;
}

.contact-info-box h3 {
  color: var(--bg-white);
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}

.info-icon {
  font-size: clamp(1.2rem, 2vw + 0.5rem, 1.5rem);
  color: var(--accent-color);
  margin-right: 15px;
}

.info-text p {
  margin: 0;
  color: #cccccc;
}


.form-control,
.form-select {
  border-radius: 0;
  padding: 12px 15px;
  border: 1px solid #dddddd;
  margin-bottom: 5px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent-color);
  box-shadow: none;
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 40px 0 0;
}

.footer-title {
  color: #fff;
  font-family: var(--font-heading);
  margin-bottom: 25px;
  font-size: clamp(1rem, 2vw + 0.2rem, 1.2rem);
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ffffff;
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--bg-white);
  border-radius: 50%;
  margin-right: 10px;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

.footer-bottom {
  background-color: #0c2237;
  padding: 20px 0;
  margin-top: 10px;
  font-size: clamp(0.8rem, 1.5vw + 0.1rem, 0.9rem);
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-bottom a:hover {
  color: var(--accent-color) !important;
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 991px) {
  .navbar-collapse {
    display: none !important;
  } /* Force offcanvas on tablet/mobile */
  .about-img-container {
    margin-top: 40px;
  }
  .highlights-section {
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
}

@media (min-width: 992px) {
  /* Stop Swiper From applying margins when disabled, force 3 column Grid Wrap */
  .desktop-grid-swiper .swiper-wrapper {
    flex-wrap: wrap !important;
    transform: translate3d(0px, 0, 0) !important;
  }
  .desktop-grid-swiper .swiper-slide {
    width: 33.333333% !important;
    margin-right: 0 !important;
    padding: 0 12px;
    margin-bottom: 24px;
  }
  .desktop-grid-swiper .swiper-pagination {
    display: none !important;
  }
}

/* Admission Swiper - Disabled layout logic for >= 768px */
@media (min-width: 768px) {
  .admissionSwiper .swiper-wrapper {
    flex-wrap: wrap !important;
    transform: translate3d(0px, 0, 0) !important;
    justify-content: center !important;
  }
  .admissionSwiper .swiper-slide.admission-slide {
    width: 33.333333% !important;
    margin-right: 0 !important;
    padding: 0 12px;
    margin-bottom: 24px;
    height: auto !important;
  }
  .admissionSwiper .swiper-pagination {
    display: none !important;
  }
}

@media (min-width: 992px) {
  .admissionSwiper .swiper-slide.admission-slide {
    width: 20% !important;
  }
}

/* Facilities Page Styles */
.facility-content .h2 {
  font-size: clamp(1.5rem, 3vw + 1rem, 2.2rem);
}

.feature-checklist li {
  line-height: 1.5;
}

.img-container {
  position: relative;
  z-index: 1;
}

.image-accent-border {
  position: absolute;
  top: 20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--primary-color);
  border-radius: 1.5rem;
  z-index: -1;
  opacity: 0.2;
}

.flex-row-reverse .image-accent-border {
  right: auto;
  left: -20px;
}

@media (max-width: 991px) {
  .image-accent-border {
    display: none;
  }

  .facility-content {
    text-align: center;
  }

  .feature-checklist li {
    justify-content: center;
    text-align: left;
  }
}

/* Running Marquee Announcement Bar Styling */
.marquee-scroll-text {
  animation: marquee-horizontal 25s linear infinite;
}

.marquee-scroll-text:hover {
  animation-play-state: paused;
}

.marquee-scroll-text a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease-in-out;
}

.marquee-scroll-text a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

@keyframes marquee-horizontal {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.animate-bounce {
  animation: megaphone-bounce 1s infinite alternate;
}

@keyframes megaphone-bounce {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-2px);
  }
}

/* Why Choose Us Section Styling */
.why-us-section {
  background-color: var(--bg-light);
}

.why-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-top-color 0.3s ease;
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(22, 59, 92, 0.1) !important;
  border-top-color: var(--primary-color) !important;
}

/* Why Choose Us Card Color Themes */

/* Blue Theme */
.why-card.card-theme-blue {
  background-color: #f0f7ff !important;
  border-top: 4px solid #007bff !important;
}
.why-card.card-theme-blue .why-icon-box {
  background-color: rgba(0, 123, 255, 0.1) !important;
  color: #007bff !important;
}
.why-card.card-theme-blue:hover .why-icon-box {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
}

/* Green Theme */
.why-card.card-theme-green {
  background-color: #f0fff4 !important;
  border-top: 4px solid #28a745 !important;
}
.why-card.card-theme-green .why-icon-box {
  background-color: rgba(40, 167, 69, 0.1) !important;
  color: #28a745 !important;
}
.why-card.card-theme-green:hover .why-icon-box {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
}

/* Orange Theme */
.why-card.card-theme-orange {
  background-color: #fffaf0 !important;
  border-top: 4px solid #fd7e14 !important;
}
.why-card.card-theme-orange .why-icon-box {
  background-color: rgba(253, 126, 20, 0.1) !important;
  color: #fd7e14 !important;
}
.why-card.card-theme-orange:hover .why-icon-box {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
}

/* Pink Theme */
.why-card.card-theme-pink {
  background-color: #fff0f6 !important;
  border-top: 4px solid #e83e8c !important;
}
.why-card.card-theme-pink .why-icon-box {
  background-color: rgba(232, 62, 140, 0.1) !important;
  color: #e83e8c !important;
}
.why-card.card-theme-pink:hover .why-icon-box {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
}

/* Purple Theme */
.why-card.card-theme-purple {
  background-color: #f5f0ff !important;
  border-top: 4px solid #6f42c1 !important;
}
.why-card.card-theme-purple .why-icon-box {
  background-color: rgba(111, 66, 193, 0.1) !important;
  color: #6f42c1 !important;
}
.why-card.card-theme-purple:hover .why-icon-box {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
}

/* Teal Theme */
.why-card.card-theme-teal {
  background-color: #f0fffb !important;
  border-top: 4px solid #20c997 !important;
}
.why-card.card-theme-teal .why-icon-box {
  background-color: rgba(32, 201, 151, 0.1) !important;
  color: #20c997 !important;
}
.why-card.card-theme-teal:hover .why-icon-box {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
}

/* Swiper layout override on Desktop to show static grid */
@media (min-width: 992px) {
  .whyUsSwiper .swiper-wrapper {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    transform: none !important;
    flex-wrap: wrap !important;
  }
  .whyUsSwiper .swiper-slide {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
  }
  .whyUsSwiper .swiper-pagination {
    display: none !important;
  }
}

/* Leadership Message Section */
.leadership-section {
  padding: 30px 0;
  background-color: var(--bg-light);
}

.leadership-card {
  background: #ffffff;
  border: 1px solid rgba(22, 59, 92, 0.1);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(22, 59, 92, 0.05);
  padding: 40px;
  position: relative;
  overflow: hidden;
  margin: 10px;
}

.leadership-card::before {
  content: "“";
  position: absolute;
  top: -20px;
  left: 30px;
  font-size: 10rem;
  font-family: var(--font-heading);
  color: rgba(22, 59, 92, 0.03);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.leadership-badge {
  background-color: rgba(22, 59, 92, 0.06);
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 6px 16px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.leadership-title {
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 20px;
}

.leadership-quote {
  font-style: italic;
  color: var(--text-dark);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 15px;
  font-weight: 600;
}

.leadership-text {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 25px;
  text-align: justify;
}

.leadership-btn {
  background-color: var(--primary-color);
  color: #ffffff;
  border-radius: 50px;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--primary-color);
  transition: var(--transition);
}

.leadership-btn:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
  border-color: var(--accent-color);
  box-shadow: 0 8px 15px rgba(212, 175, 55, 0.2);
  transform: translateY(-2px);
}

.leadership-img-container {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.leadership-img {
  width: 200px;
  height: 230px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  object-position: top;
}

.leadership-icon-badge {
  position: absolute;
  bottom: -10px;
  right: -10px;
  background-color: var(--accent-color);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.leadership-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.leadership-role {
  color: var(--accent-color);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
  text-align: center;
}

@media (min-width: 992px) {
  .leadership-divider {
    border-right: 1px solid rgba(22, 59, 92, 0.1);
  }
}

/* Group Partner Institutions Showcase Marquee */
.institutions-panel {
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.institute-scroll-container {
  overflow: hidden;
  width: 100%;
  position: relative;
}

/* Subtle fade gradient overlay on scroll edges for premium feel */
.institute-scroll-container::before,
.institute-scroll-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.institute-scroll-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-light) 0%, rgba(249, 249, 249, 0) 100%);
}

.institute-scroll-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-light) 0%, rgba(249, 249, 249, 0) 100%);
}

.institute-scroll-track {
  display: flex;
  width: max-content;
  padding: 20px 0;
  animation: instituteSlideAnimation 120s linear infinite;
}

.institute-scroll-track:hover {
  animation-play-state: paused;
}

.institute-card-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 360px;
  margin: 0 16px;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: var(--bg-white);
  border: 1.5px solid rgba(22, 59, 92, 0.06);
  box-shadow: 0 8px 20px rgba(22, 59, 92, 0.02);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
}

.institute-card-item:hover {
  transform: translateY(-5px);
  border-color: rgba(22, 59, 92, 0.15);
  box-shadow: 0 15px 30px rgba(22, 59, 92, 0.08);
  background: var(--bg-light);
}

.institute-icon-container {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-white);
  border: 1.5px solid rgba(22, 59, 92, 0.06);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.jaya-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  transition: transform 0.3s ease;
}

.institute-card-item:hover .jaya-logo {
  transform: scale(1.08);
}

.institute-name-text {
  color: var(--primary-color);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.4;
  margin: 0;
}

.institute-type-badge {
  display: inline-flex;
  margin-top: 0.4rem;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(212, 175, 55, 0.12);
  color: #a8811d;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@keyframes instituteSlideAnimation {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Popup Admission Enquiry Form Modal Styling */
#enquiryModal .modal-dialog {
  max-width: 580px;
}

#enquiryModal .modal-content {
  border-radius: 16px;
  border-top: 5px solid var(--accent-color) !important;
  background-color: var(--bg-white);
  box-shadow: 0 15px 50px rgba(22, 59, 92, 0.25) !important;
  overflow: hidden;
  padding: 0;
}

#enquiryModal .modal-header {
  padding: 15px 20px 0 20px;
  border-bottom: none;
}

#enquiryModal .btn-close {
  background-color: rgba(22, 59, 92, 0.05);
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
  opacity: 0.8;
}

#enquiryModal .btn-close:hover {
  background-color: rgba(22, 59, 92, 0.15);
  transform: rotate(90deg);
  opacity: 1;
}

#enquiryModal .modal-body {
  padding: 0 25px 25px 25px !important;
}

#enquiryModal .modal-title {
  font-family: var(--font-heading);
  color: var(--primary-color) !important;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin: 0 !important;
}

.enquiry-subtitle {
  color: var(--text-light);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(22, 59, 92, 0.08) !important;
  padding-bottom: 10px !important;
  margin-bottom: 20px !important;
}

@media (max-width: 576px) {
  #enquiryModal .modal-dialog {
    max-width: calc(93% - 1rem);
    margin: 0.5rem auto;
  }

  #enquiryModal .modal-content {
    border-radius: 12px;
  }

  #enquiryModal .modal-header {
    padding: 12px 14px 0 14px;
  }

  #enquiryModal .modal-body {
    padding: 0 14px 14px 14px !important;
  }

  #enquiryModal .modal-title {
    font-size: 1.35rem;
  }

  .enquiry-subtitle {
    font-size: 0.82rem;
    padding-bottom: 8px !important;
    margin-bottom: 14px !important;
  }

  .enquiryForm .form-control,
  .enquiryForm .form-select {
    padding: 8px 12px;
  }

  .enquiryForm .row {
    --bs-gutter-x: 0.75rem;
  }

  .enquiryForm .mb-2 {
    margin-bottom: 0.6rem !important;
  }

  .enquiryForm .mb-3 {
    margin-bottom: 0.85rem !important;
  }

  .enquiryForm button[type="submit"] {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }
}

/* Form Controls */
.enquiryForm .form-label {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: var(--primary-color) !important;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.enquiryForm .form-control,
.enquiryForm .form-select {
  padding: 10px 14px;
  border-radius: 6px;
  border: 1.5px solid rgba(22, 59, 92, 0.12) !important;
  background-color: rgba(22, 59, 92, 0.015);
  color: var(--text-dark);
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.enquiryForm .form-control::placeholder {
  color: #a0aec0 !important;
  opacity: 0.8;
  font-size: 0.85rem;
}

.enquiryForm .form-control:focus,
.enquiryForm .form-select:focus {
  background-color: var(--bg-white) !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(22, 59, 92, 0.1) !important;
  outline: none;
}

/* Dropdown styling */
.enquiryForm .form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23163b5c' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-size: 12px 12px;
  background-position: right 14px center;
}

/* Submit Button Custom Overrides */
.enquiryForm button[type="submit"] {
  background-color: var(--accent-color) !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--accent-color) !important;
  padding: 12px 24px !important;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 6px !important;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25) !important;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  margin-top: 10px;
}

.enquiryForm button[type="submit"]:hover {
  background-color: transparent !important;
  color: var(--accent-color) !important;
  border-color: var(--accent-color) !important;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.45) !important;
  transform: translateY(-2px);
}

.enquiryForm .invalid-feedback {
  font-size: 0.72rem;
  font-weight: 600;
  color: #e53e3e;
  margin-top: 3px;
}

/* Contact Page Custom Styling */
.contact-form-card {
  border-top: 5px solid var(--accent-color) !important;
  background-color: var(--bg-white);
  box-shadow: 0 15px 40px rgba(22, 59, 92, 0.08) !important;
}

.info-box {
  background-color: var(--bg-white);
  border: 1.5px solid rgba(22, 59, 92, 0.08);
  padding: 28px 24px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 8px 25px rgba(22, 59, 92, 0.03);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.info-box:hover {
  transform: translateY(-4px);
  border-color: var(--accent-color);
  box-shadow: 0 12px 30px rgba(22, 59, 92, 0.08);
}

.info-box h5 {
  color: var(--primary-color);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item i {
  color: var(--accent-color);
  font-size: 1rem;
  width: 20px;
  margin-top: 4px;
  text-align: center;
}

.info-item p,
.info-item a {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.2s ease;
}

.info-item a:hover {
  color: var(--accent-color);
}

/* --- Mobile View Enhancements (Paragraph Font-Sizes, Line Heights, and Viewport Fixes) --- */
@media (max-width: 991.98px) {
  body {
    padding-top: 86px;
  }

  /* Prevent horizontal screen jiggle/overflow on mobile */
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  .navbar.d-lg-none.sticky-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    z-index: 1045;
  }

  /* Keep mobile logo constrained in narrow viewports (e.g. 320px) to prevent header overflow */
  .navbar-brand img {
    max-width: 230px;
    height: auto !important;
  }

  /* Reduce top and bottom paddings/margins of sections on mobile to prevent excessive scrolling gaps */
  section,
  .about-section,
  .programs-section,
  .news-events-section,
  .why-choose-section,
  .leadership-section,
  .facilities-section,
  .testimonials-section,
  .achievements-section,
  .group-section,
  .py-5 {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  /* Reduce vertical gaps and headings margin spacing on mobile */
  .mb-5, .my-5 {
    margin-bottom: 25px !important;
  }
  .mt-5, .my-5 {
    margin-top: 25px !important;
  }
  .section-title {
    margin-bottom: 15px !important;
  }

  /* Unify and decrease paragraph sizes & line heights on mobile for text hierarchy consistency */
  p, 
  .text-muted,
  .leadership-text,
  .testimonial-quote,
  .group-text,
  p.fs-5,
  p.fs-6 {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
  }

  /* Adjust spacing in the leadership cards on small screens */
  .leadership-card {
    padding: 24px 20px !important;
  }

  /* Prevent vertical images in the programs list from taking up too much vertical screen space */
  .program-img-wrapper img {
    height: 300px !important;
  }
}

/* ==========================================
   RECRUITERS CAROUSEL SECTION
   ========================================== */
.recruiters-section {
  position: relative;
  overflow: hidden;
}

.company-card {
  background: var(--bg-white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  cursor: pointer;
}

.company-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(22, 59, 92, 0.12);
  border-color: rgba(22, 59, 92, 0.2);
}

.company-logo {
  max-height: 50px;
  max-width: 100%;
  object-fit: contain;
  transition: all 0.3s ease;
}

.company-card:hover .company-logo {
  transform: scale(1.05);
}

/* Linear transitions for continuous smooth marquee swiper */
.companySwiper .swiper-wrapper {
  transition-timing-function: linear !important;
}


