/**
 * ==========================================================================
 * VIJETHA COLLEGE - Main Stylesheet
 * ==========================================================================
 * 
 * Primary stylesheet for Vijetha Junior & Degree College website.
 * Contains global styles, layout components, and shared UI elements.
 * 
 * @version     2.0.0
 * @updated     2026-03-14
 * 
 * COLOR PALETTE:
 * - Primary Orange:    #E8402A
 * - Secondary Yellow:  #F08C1C
 * - Dark Red:          #A70000
 * - Light Background:  #F7F6EC
 * - Cream:             #FAEBD7
 * - Black:             #000000
 * - White:             #FFFFFF
 * 
 * TYPOGRAPHY:
 * - Headings:          'Rubik', sans-serif
 * - Body:              'Hubot Sans', sans-serif
 * 
 * Z-INDEX HIERARCHY:
 * - Modal Overlay:     10000
 * - Floating Buttons:  9999
 * - Enquiry Button:    9998
 * - Popup Forms:       2000
 * - Top Bar:           1031
 * - Navbar:            1030
 * 
 * BREAKPOINTS:
 * - Desktop:           > 992px
 * - Tablet:            768px - 991px
 * - Mobile:            < 768px
 * - Small Mobile:      < 576px
 * 
 * ==========================================================================
 */


/* --------------------------------------------------------------------------
 * ENQUIRY POPUP MODAL
 * --------------------------------------------------------------------------
 * Modal overlay and form container for lead capture.
 * Triggered by floating "Enquiry Now" button and CTA buttons.
 * -------------------------------------------------------------------------- */

.popup-contact-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.popup-enquiry-box {
  background: #fff;
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: popupIn 0.3s ease-out;
}
@keyframes popupIn {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f5f5f5;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  color: #666;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.popup-close:hover {
  background: #E8402A;
  color: #fff;
}

/* Popup Header */
.popup-enquiry-header {
  text-align: center;
  margin-bottom: 24px;
}
.popup-enquiry-header h3 {
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}
.popup-enquiry-header p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* Enquiry Form */
.popup-enquiry-form .form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}
.popup-enquiry-form .form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.popup-enquiry-form .form-group.full-width {
  margin-bottom: 20px;
}
.popup-enquiry-form label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}
.popup-enquiry-form input,
.popup-enquiry-form select,
.popup-enquiry-form textarea {
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}
.popup-enquiry-form input:focus,
.popup-enquiry-form select:focus,
.popup-enquiry-form textarea:focus {
  outline: none;
  border-color: #E8402A;
  box-shadow: 0 0 0 3px rgba(232, 64, 42, 0.1);
}
.popup-enquiry-form input::placeholder,
.popup-enquiry-form textarea::placeholder {
  color: #999;
}
.popup-enquiry-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Submit Button */
.popup-enquiry-submit {
  width: 100%;
  padding: 14px 24px;
  background: #E8402A;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.popup-enquiry-submit:hover {
  background: #A70000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Popup - Mobile Responsive */
@media (max-width: 640px) {
  .popup-enquiry-box {
    padding: 24px 20px;
    max-width: 95vw;
    margin: 10px;
  }
  .popup-enquiry-header h3 {
    font-size: 22px;
  }
  .popup-enquiry-form .form-row {
    flex-direction: column;
    gap: 12px;
  }
  .popup-close {
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
  }
}


/* --------------------------------------------------------------------------
 * GLOBAL RESET & BASE STYLES
 * --------------------------------------------------------------------------
 * Foundation styles applied to all pages. Handles box-sizing, overflow
 * prevention, and base typography setup.
 * -------------------------------------------------------------------------- */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden !important;
  overflow-y: scroll !important;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  scrollbar-gutter: stable;
}

body {
  font-family: 'Hubot Sans', sans-serif;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  padding-top: 114px; /* Space for fixed top-bar (34px) + navbar (80px) */
  overflow-x: hidden !important;
  position: relative;
}

/* Clip overflow on all content except fixed elements */
body > *:not(.enquiry-btn):not(.enquiry-modal):not(.back-to-top):not(.main-navbar):not(.top-bar) {
  max-width: 100%;
  overflow-x: clip;
}

/* Prevent layout shift when modals open */
body.modal-open {
  padding-right: 0 !important;
  overflow: hidden !important;
}

/* Prevent Bootstrap from adding padding to body */
body[style*="padding-right"] {
  padding-right: 0 !important;
}

/* Fixed width for header elements */
.top-bar,
.main-navbar {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
}

p, span, a, li, td, th, label, input, textarea, select, button {
  font-family: 'Hubot Sans', sans-serif;
}

.btn, .badge, .card-title, .section-title, .stat-item h3 {
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
}

/* Ensure all sections fill full width */
section {
  width: 100%;
  max-width: 100%;
}


/* --------------------------------------------------------------------------
 * KEYFRAME ANIMATIONS
 * --------------------------------------------------------------------------
 * Reusable CSS animations for entrance effects and micro-interactions.
 * Used throughout the site for hero content, cards, and scroll reveals.
 * -------------------------------------------------------------------------- */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}


/* --------------------------------------------------------------------------
 * SCROLL-TRIGGERED ANIMATIONS
 * --------------------------------------------------------------------------
 * Animation classes applied via JavaScript IntersectionObserver.
 * Elements start hidden and animate when scrolled into viewport.
 * 
 * Usage: Add .animate-on-scroll + animation class (e.g., .animate-fade-up)
 * JS adds .animated class when element enters viewport
 * -------------------------------------------------------------------------- */

/* Base state - hidden before animation */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Fade Up - slides up from below */
.animate-fade-up {
  transform: translateY(40px);
}
.animate-fade-up.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Fade In - simple opacity transition */
.animate-fade-in {
  opacity: 0;
}
.animate-fade-in.animated {
  opacity: 1;
}

/* Slide Left - enters from left side */
.animate-slide-left {
  transform: translateX(-50px);
}
.animate-slide-left.animated {
  opacity: 1;
  transform: translateX(0);
}

/* Slide Right - enters from right side */
.animate-slide-right {
  transform: translateX(50px);
}
.animate-slide-right.animated {
  opacity: 1;
  transform: translateX(0);
}

/* Scale In - grows from smaller size */
.animate-scale-in {
  transform: scale(0.9);
}
.animate-scale-in.animated {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays - cascading animations for child elements */
.animate-stagger > *:nth-child(1) { transition-delay: 0s; }
.animate-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.animate-stagger > *:nth-child(3) { transition-delay: 0.2s; }
.animate-stagger > *:nth-child(4) { transition-delay: 0.3s; }
.animate-stagger > *:nth-child(5) { transition-delay: 0.4s; }
.animate-stagger > *:nth-child(6) { transition-delay: 0.5s; }

/* Accessibility - respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll,
  .animate-fade-up,
  .animate-fade-in,
  .animate-slide-left,
  .animate-slide-right,
  .animate-scale-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* --------------------------------------------------------------------------
 * TOP BAR
 * --------------------------------------------------------------------------
 * Fixed bar at the very top of the page displaying contact info and
 * social media links. Uses primary orange (#E8402A) background.
 * Z-index: 1031 (above navbar)
 * Height: 34px (affects body padding-top calculation)
 * -------------------------------------------------------------------------- */

.top-bar {
  background: #E8402A;
  color: #FFFFFF;
  font-size: 14px;
  padding: 8px 0;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1031;
}

.top-bar i {
  margin-right: 6px;
}

.top-right a {
  color: #FFFFFF;
  margin-left: 12px;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.top-right a:hover {
  opacity: 1;
  transform: translateY(-2px);
}


/* --------------------------------------------------------------------------
 * MAIN NAVIGATION
 * --------------------------------------------------------------------------
 * Primary navigation bar positioned below top-bar. Fixed height of 80px.
 * Features mega-dropdown menus for Courses and About sections.
 * 
 * Positioning: fixed at top: 34px (below top-bar)
 * Z-index: 1030 (below top-bar, above content)
 * Background: Light cream (#F7F6EC), becomes semi-transparent on scroll
 * -------------------------------------------------------------------------- */

.main-navbar {
  background: #F7F6EC;
  height: 80px;
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  align-items: center;
  position: fixed;
  top: 34px; /* Below top-bar */
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1030;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Keep container full height for vertical centering */
.main-navbar .container-fluid {
  height: 100%;
  display: flex;
  align-items: center;
}

/* Scrolled state - adds blur effect and shadow */
.main-navbar.scrolled {
  background: rgba(247,246,236,0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}


/* --------------------------------------------------------------------------
 * TRANSPARENT HEADER MODE
 * --------------------------------------------------------------------------
 * Applied to pages with full-viewport hero sections. Header starts
 * transparent and transitions to solid on scroll via JavaScript.
 * 
 * Usage: Add .transparent-header class to <body>
 * JS adds .header-scrolled class when user scrolls past threshold
 * -------------------------------------------------------------------------- */

body.transparent-header {
  padding-top: 0;
}

body.transparent-header .top-bar {
  background: transparent;
  transition: background 0.3s ease;
}

body.transparent-header .main-navbar {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* White nav links for visibility over hero images */
body.transparent-header .main-navbar .nav-link {
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

body.transparent-header .main-navbar .nav-link:hover {
  color: #E8402A;
}

/* Invert logo to white for dark backgrounds */
body.transparent-header .navbar-brand img {
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

/* Mobile hamburger - white in transparent mode */
body.transparent-header .navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

body.transparent-header.header-scrolled .navbar-toggler-icon {
  filter: none;
}

/* Scrolled state - restore original colors */
body.transparent-header.header-scrolled .top-bar {
  background: #E8402A;
}

body.transparent-header.header-scrolled .main-navbar {
  background: rgba(247,246,236,0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

body.transparent-header.header-scrolled .main-navbar .nav-link {
  color: #000;
  text-shadow: none;
}

body.transparent-header.header-scrolled .main-navbar .nav-link:hover {
  color: #E8402A;
}

body.transparent-header.header-scrolled .navbar-brand img {
  filter: none;
}

/* Keep contact button consistent */
body.transparent-header .contact-btn {
  color: #fff !important;
  text-shadow: none;
}


/* --------------------------------------------------------------------------
 * FULLSCREEN HERO - DESKTOP
 * --------------------------------------------------------------------------
 * Creates fullscreen (100vh) hero banners on all pages with transparent
 * headers. Includes dark overlay for text readability.
 * 
 * Applies to: homepage hero, about-hero, courses-hero, etc.
 * Contains: full-viewport background image, gradient overlay, centered text
 * Mobile: Resets to auto height below 768px breakpoint
 * -------------------------------------------------------------------------- */

/* Apply full-screen hero only to home page */
body.transparent-header .hero-section {
  margin-top: 0;
  padding-top: 0;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

/* Other pages (non-transparent header): auto height hero, no extra margin needed as body has padding-top */
.about-hero,
.adm-hero,
.courses-hero,
.campuses-hero,
.conduct-hero,
.contact-hero,
.faculty-hero,
.infrastructure-hero,
.int-hero,
.leadership-hero,
.placements-hero,
.psychometric-hero,
.student-life-hero {
  margin-top: 0;
  padding-top: 0;
  height: auto;
  min-height: auto;
  overflow: hidden;
}

/* Desktop banner container - home page full screen */
body.transparent-header .hero-section .hero-desktop {
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Desktop banner container - other pages auto height */
.about-hero .banner-desktop,
.adm-hero .banner-desktop,
.courses-hero .banner-desktop,
.campuses-hero .banner-desktop,
.conduct-hero .banner-desktop,
.contact-hero .banner-desktop,
.faculty-hero .banner-desktop,
.infrastructure-hero .banner-desktop,
.int-hero .banner-desktop,
.leadership-hero .banner-desktop,
.placements-hero .banner-desktop,
.psychometric-hero .banner-desktop,
.student-life-hero .banner-desktop {
  width: 100%;
  height: auto;
  min-height: auto;
  position: relative;
  overflow: hidden;
}

/* Desktop banner image - home page fullscreen cover */
body.transparent-header .hero-section .hero-desktop .banner img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 20%;
  display: block;
  max-width: none;
}

/* Desktop banner image - other pages natural size */
.about-hero .banner-desktop img,
.adm-hero .banner-desktop img,
.courses-hero .banner-desktop img,
.campuses-hero .banner-desktop img,
.conduct-hero .banner-desktop img,
.contact-hero .banner-desktop img,
.faculty-hero .banner-desktop img,
.infrastructure-hero .banner-desktop img,
.int-hero .banner-desktop img,
.leadership-hero .banner-desktop img,
.placements-hero .banner-desktop img,
.psychometric-hero .banner-desktop img,
.student-life-hero .banner-desktop img {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
}

/* Gradient overlay for text readability - home page */
body.transparent-header .hero-section .hero-desktop .banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1;
  pointer-events: none;
}

/* No overlay for other pages */
.about-hero .banner-desktop::before,
.adm-hero .banner-desktop::before,
.courses-hero .banner-desktop::before,
.campuses-hero .banner-desktop::before,
.conduct-hero .banner-desktop::before,
.contact-hero .banner-desktop::before,
.faculty-hero .banner-desktop::before,
.infrastructure-hero .banner-desktop::before,
.int-hero .banner-desktop::before,
.leadership-hero .banner-desktop::before,
.placements-hero .banner-desktop::before,
.psychometric-hero .banner-desktop::before,
.student-life-hero .banner-desktop::before {
  display: none;
}

/* Ensure banner-text is above overlay */
.banner-desktop .banner-text {
  z-index: 2;
}

/* Mobile: Reset to normal */
@media (max-width: 768px) {
  body.transparent-header .hero-section {
    height: auto;
    min-height: auto;
  }
  
  .about-hero,
  .adm-hero,
  .courses-hero,
  .campuses-hero,
  .conduct-hero,
  .contact-hero,
  .faculty-hero,
  .infrastructure-hero,
  .int-hero,
  .leadership-hero,
  .placements-hero,
  .psychometric-hero,
  .student-life-hero {
    height: auto;
    min-height: auto;
  }
  
  body.transparent-header .hero-section .hero-desktop {
    height: auto;
    min-height: auto;
  }
  
  .about-hero .banner-desktop,
  .adm-hero .banner-desktop,
  .courses-hero .banner-desktop,
  .campuses-hero .banner-desktop,
  .conduct-hero .banner-desktop,
  .contact-hero .banner-desktop,
  .faculty-hero .banner-desktop,
  .infrastructure-hero .banner-desktop,
  .int-hero .banner-desktop,
  .leadership-hero .banner-desktop,
  .placements-hero .banner-desktop,
  .psychometric-hero .banner-desktop,
  .student-life-hero .banner-desktop {
    height: auto;
    min-height: auto;
  }
  
  body.transparent-header .hero-section .hero-desktop .banner img {
    position: relative;
    height: auto !important;
  }
  
  .about-hero .banner-desktop img,
  .adm-hero .banner-desktop img,
  .courses-hero .banner-desktop img,
  .campuses-hero .banner-desktop img,
  .conduct-hero .banner-desktop img,
  .contact-hero .banner-desktop img,
  .faculty-hero .banner-desktop img,
  .infrastructure-hero .banner-desktop img,
  .int-hero .banner-desktop img,
  .leadership-hero .banner-desktop img,
  .placements-hero .banner-desktop img,
  .psychometric-hero .banner-desktop img,
  .student-life-hero .banner-desktop img {
    position: relative;
    height: auto !important;
  }
  
  body.transparent-header .hero-section .hero-desktop .banner::before,
  .about-hero .banner-desktop::before,
  .adm-hero .banner-desktop::before,
  .courses-hero .banner-desktop::before,
  .campuses-hero .banner-desktop::before,
  .conduct-hero .banner-desktop::before,
  .contact-hero .banner-desktop::before,
  .faculty-hero .banner-desktop::before,
  .infrastructure-hero .banner-desktop::before,
  .int-hero .banner-desktop::before,
  .leadership-hero .banner-desktop::before,
  .placements-hero .banner-desktop::before,
  .psychometric-hero .banner-desktop::before,
  .student-life-hero .banner-desktop::before {
    display: none;
  }
}

/* increase logo size without increasing navbar */
.navbar-brand img {
  height: 80px;              /* increase logo size */
  width: auto;
  object-fit: contain;
}
/* remove extra spacing */
.navbar-brand {
  padding: 0;
  margin: 0;
}
/* keep menu vertically centered */
.navbar-nav {
  align-items: center;
}

.navbar-nav .nav-item {
  flex-shrink: 0;
}
.navbar-brand strong {
  font-size: 20px;
  letter-spacing: 1px;
}

.navbar-brand small {
  font-size: 12px;
  letter-spacing: 2px;
  color: #000000;
}

.nav-link {
  color: #000000;
  font-weight: 600;
  font-size: 14px;
  position: relative;
  /* transition: color 0.3s ease, border-color 0.3s ease; */
  padding: 0.5rem 0.7rem;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.nav-link:hover {
  color: #E8402A;
  border-bottom-color: #E8402A;
}

.nav-link.active {
  color: #E8402A;
  border-bottom-color: #E8402A;
}

.btn-apply {
  background: #E8402A;
  color: #FFFFFF;
  border-radius: 30px;
  padding: 10px 22px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-apply:hover {
  background: #A70000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}


/* --------------------------------------------------------------------------
 * DROPDOWN MENUS
 * --------------------------------------------------------------------------
 * Standard dropdown menus for navigation items. Opens on hover with
 * subtle fade animation. Includes underline animation on item hover.
 * -------------------------------------------------------------------------- */

/* Desktop only: show dropdown on hover */
@media (min-width: 992px) {
  .dropdown:hover .dropdown-menu {
    display: block;
  }
}

.dropdown-menu {
  background: white;
  border: none;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  border-radius: 0;
  padding: 0;
  margin-top: 0;
  display: none;
  min-width: 250px;
  animation: fadeIn 0.3s ease;
  position: absolute;
}

.dropdown-item {
  padding: 12px 25px;
  transition: background 0.3s ease, color 0.3s ease;
  color: #000000;
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px solid #F7F6EC;
  position: relative;
}

.dropdown-item:last-child {
  border-bottom: none;
}

/* Animated underline on hover */
.dropdown-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 25px;
  right: 25px;
  height: 2px;
  background: #E8402A;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.dropdown-item:hover {
  background: #FAEBD7;
  color: #E8402A;
}

.dropdown-item:hover::after {
  transform: scaleX(1);
}

.dropdown-item.active {
  color: #E8402A;
}

.dropdown-item.active::after {
  transform: scaleX(1);
}

/* Dropdown arrow indicator */
.dropdown-toggle::after {
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
  content: "";
  border-top: 5px solid;
  border-right: 4px solid transparent;
  border-bottom: 0;
  border-left: 4px solid transparent;
}


/* --------------------------------------------------------------------------
 * MEGA MENU
 * --------------------------------------------------------------------------
 * Full-width dropdown menu for Courses and About navigation items.
 * Multi-column layout with categorized links. Centered within viewport.
 * 
 * Structure: .mega-dropdown > .mega-menu > .mega-menu-inner > .mega-column
 * Max-width: 900px centered
 * -------------------------------------------------------------------------- */

.mega-dropdown {
  position: static;
}

.mega-menu {
  width: 100%;
  left: 0 !important;
  right: 0;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  background: #FFFFFF;
}

.mega-menu-inner {
  display: flex;
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 40px;
  gap: 50px;
}

.mega-column {
  flex: 1;
  min-width: 180px;
}

/* Column header with orange accent */
.mega-column-title {
  font-size: 13px;
  font-weight: 700;
  color: #E8402A;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #FAEBD7;
}

.mega-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-column ul li {
  margin-bottom: 8px;
}

/* Menu links with slide animation on hover */
.mega-column ul li a {
  color: #000000;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  display: block;
  padding: 6px 0;
}

.mega-column ul li a:hover {
  color: #E8402A;
  padding-left: 8px;
}

/* Show border when parent is hovered */
.nav-item.dropdown:hover .nav-link {
  border-bottom: 3px solid #E8402A;
}


/* --------------------------------------------------------------------------
 * NESTED SUBMENU
 * --------------------------------------------------------------------------
 * Second-level dropdowns for navigation items requiring sub-categories.
 * Opens to the right side on desktop hover.
 * -------------------------------------------------------------------------- */

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu .submenu {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  min-width: 220px;
  margin-left: 0;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  background: white;
  border-radius: 0;
}

/* Desktop only - hover to reveal submenu */
@media (min-width: 992px) {
  .dropdown-submenu:hover > .submenu {
    display: block !important;
  }
}

.dropdown-toggle-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.submenu-arrow {
  font-size: 10px;
  margin-left: 10px;
}


/* --------------------------------------------------------------------------
 * HERO SECTION - HOMEPAGE
 * --------------------------------------------------------------------------
 * Main hero section with image carousel. Full-width with overlay text.
 * Uses Bootstrap carousel-fade for smooth transitions.
 * 
 * Structure: .hero-section > .carousel > .carousel-inner > .carousel-item
 * Contains: .hero-desktop (desktop images), .hero-mobile (mobile images)
 * -------------------------------------------------------------------------- */

.hero-section {
  position: relative;
  height: auto;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  background: none;
}

.hero-section .carousel,
.hero-section .carousel-inner {
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

.hero-section .carousel-inner {
  position: relative;
}

.hero-section .carousel-item {
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

/* Carousel fade effect - prevents layout shift during transition */
.hero-section .carousel-fade .carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.hero-section .carousel-fade .carousel-item.active {
  position: relative;
  opacity: 1;
}

.hero-section .carousel-fade .carousel-item-next.carousel-item-start,
.hero-section .carousel-fade .carousel-item-prev.carousel-item-end {
  opacity: 1;
}

.hero-section .carousel-fade .active.carousel-item-start,
.hero-section .carousel-fade .active.carousel-item-end {
  opacity: 0;
}

.hero-section img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}


/* --------------------------------------------------------------------------
 * BANNER STYLES - ALL HERO SECTIONS
 * --------------------------------------------------------------------------
 * Shared styles for hero banners across all pages. Includes overlay text
 * positioning, typography, and CTA button styling.
 * -------------------------------------------------------------------------- */

.banner {
  position: relative;
  width: 100%;
}

.banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Overlay text container - positioned at left side */
.banner-text {
  position: absolute;
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  text-align: left;
  color: #fff;
  z-index: 2;
  max-width: 520px;
}

.banner-text h2 {
  font-family: 'Rubik', sans-serif;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 15px;
  text-shadow: none;
}

/* Orange accent text in headings */
.banner-text h2 span {
  color: #F08C1C;
}

.banner-text p {
  font-size: 16px;
  font-weight: 500;
  text-shadow: none;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Hero CTA Buttons - primary & secondary variants */
.hero-cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero-cta-buttons .btn-primary-cta {
  padding: 12px 24px;
  font-size: 14px;
  border-radius: 8px;
}

/* Ghost button style for secondary CTA */
.btn-secondary-cta {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-secondary-cta:hover {
  background: #fff;
  color: #E8402A;
  transform: translateY(-3px);
}

/* Large desktop breakpoint */
@media (max-width: 1200px) {
  .banner-text {
    max-width: 450px;
  }
  .banner-text h2 {
    font-size: 32px;
  }
}

@media (max-width: 991px) {
  .banner-text {
    left: 6%;
    max-width: 400px;
  }
  .banner-text h2 {
    font-size: 26px;
  }
  .banner-text p {
    font-size: 14px;
  }
  .hero-cta-buttons .btn-primary-cta,
  .btn-secondary-cta {
    padding: 10px 18px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .banner-text {
    left: 5%;
    max-width: 90%;
  }
  .banner-text h2 {
    font-size: 24px;
  }
  .banner-text p {
    font-size: 14px;
  }
}


/* --------------------------------------------------------------------------
 * MOBILE HERO BANNER
 * --------------------------------------------------------------------------
 * Separate mobile-optimized hero images with bottom-positioned text.
 * Shows/hides based on viewport width (768px breakpoint).
 * 
 * Desktop: .banner-desktop visible, .banner-mobile hidden
 * Mobile: .banner-desktop hidden, .banner-mobile visible
 * -------------------------------------------------------------------------- */

.banner-desktop {
  display: block;
}

.banner-mobile {
  display: none;
  position: relative;
  width: 100%;
  background: transparent;
}

.banner-mobile img {
  width: 100%;
  height: auto;
  display: block;
}

/* Mobile text overlay - positioned at bottom */
.banner-text-mobile {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: transparent;
  text-align: center;
  padding: 25px 20px 30px;
}

.banner-text-mobile h2 {
  font-family: 'Rubik', sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 12px;
  color: #fff;
  text-shadow: none;
}

.banner-text-mobile h2 span {
  color: #F08C1C;
}

.banner-text-mobile p {
  font-size: 14px;
  font-weight: 400;
  color: #333;
  text-shadow: none;
  margin: 0 0 15px 0;
  font-style: italic;
}

/* Mobile Hero CTA Buttons - centered layout */
.banner-text-mobile .hero-cta-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 15px;
}

.banner-text-mobile .btn-primary-cta {
  padding: 10px 18px;
  font-size: 13px;
  border-radius: 10px;
  background: #F08C1C;
}

.banner-text-mobile .btn-secondary-cta {
  padding: 10px 18px;
  font-size: 13px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #E8402A;
  color: #E8402A;
}

.banner-text-mobile .btn-secondary-cta:hover {
  background: #E8402A;
  color: #fff;
}

/* Mobile breakpoint - switch to mobile banner */
@media (max-width: 768px) {
  .banner-desktop {
    display: none;
  }
  .banner-mobile {
    display: block;
  }
  /* Remove padding from all hero sections on mobile */
  [class$="-hero"] {
    padding: 0 !important;
    min-height: auto !important;
  }
}


/* --------------------------------------------------------------------------
 * BUTTON VARIANTS
 * -------------------------------------------------------------------------- */

.btn-dark-primary {
  background: #E8402A;
  color: #FFFFFF;
  padding: 14px 28px;
  border-radius: 6px;
  transition: all 0.3s ease;
  transform: translateY(0);
}

.btn-dark-primary:hover {
  background: #A70000;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.btn-outline-light {
  padding: 14px 28px;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.6);
  color: #FFFFFF;
  background: transparent;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}


/* --------------------------------------------------------------------------
 * RESPONSIVE - TABLET & MOBILE
 * -------------------------------------------------------------------------- */

@media (max-width: 991px) {
  .hero-section,
  .hero-section .carousel,
  .hero-section .carousel-inner,
  .hero-section .carousel-item,
  .hero-section img {
    height: auto;
  }
}

@media (max-width: 768px) {
  .hero-section,
  .hero-section .carousel,
  .hero-section .carousel-inner,
  .hero-section .carousel-item,
  .hero-section img {
    height: auto;
  }
  
  .btn-dark-primary,
  .btn-outline-light {
    padding: 10px 20px;
    font-size: 14px;
  }

  .navbar-brand small {
    display: none;
  }
  
  .main-navbar {
    height: auto;
    min-height: 60px;
    padding: 0.5rem 0;
    top: 28px; /* Adjusted for smaller top-bar */
  }

  body {
    padding-top: 88px; /* Adjusted for tablet: top-bar (~28px) + navbar (~60px) */
  }
  
  .main-navbar .container-fluid {
    flex-wrap: wrap;
    padding: 0 1rem;
  }
  
  .navbar-brand img {
    height: 50px;
  }
  
  /* Mobile Toggler Button */
  .navbar-toggler {
    border: 2px solid #E8402A;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    background: transparent;
  }
  
  .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(232, 64, 42, 0.25);
    outline: none;
  }
  
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23E8402A' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.2em;
    height: 1.2em;
  }
  
  /* Mobile Menu Container */
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 16px 16px;
    padding: 0;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1000;
  }
  
  .navbar-collapse:not(.show) {
    display: none;
  }
  
  .navbar-collapse.show {
    display: block !important;
    padding: 1rem 0;
  }
  
  /* Mobile Menu Items */
  .navbar-nav {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 0 1rem;
  }
  
  .navbar-nav .nav-item {
    border-bottom: 1px solid #f0f0f0;
  }
  
  .navbar-nav .nav-item:last-child {
    border-bottom: none;
  }
  
  .navbar-nav .nav-link {
    padding: 0.9rem 0.5rem !important;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none !important;
  }
  
  .navbar-nav .nav-link:hover {
    background: rgba(232, 64, 42, 0.05);
    color: #E8402A;
  }
  
  /* Mobile Dropdown */
  .navbar-nav .dropdown-toggle::after {
    transition: transform 0.3s ease;
  }
  
  .navbar-nav .dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
  }
  
  .navbar-nav .dropdown-menu {
    position: static !important;
    float: none;
    width: 100%;
    box-shadow: none;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 0.5rem 0;
    padding: 0.5rem 0;
    display: none;
    animation: none;
  }
  
  .navbar-nav .dropdown.show .dropdown-menu {
    display: block;
  }
  
  .navbar-nav .dropdown-item {
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
    border-bottom: none;
  }
  
  .navbar-nav .dropdown-item:hover {
    background: rgba(232, 64, 42, 0.1);
    color: #E8402A;
  }

  /* Mobile Mega Menu */
  .mega-dropdown {
    position: relative;
  }
  
  .mega-menu {
    position: static !important;
    width: 100% !important;
    box-shadow: none !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    margin: 0.5rem 0 !important;
    padding: 0 !important;
    display: none;
  }
  
  .mega-dropdown.show .mega-menu {
    display: block !important;
  }
  
  .mega-menu-inner {
    flex-direction: column;
    padding: 15px 20px;
    gap: 20px;
  }
  
  .mega-column {
    min-width: 100%;
  }
  
  .mega-column-title {
    font-size: 12px;
    margin-bottom: 10px;
    padding-bottom: 8px;
  }
  
  .mega-column ul li a {
    padding: 8px 0;
    font-size: 14px;
  }
  
  .mega-column ul li a:hover {
    padding-left: 10px;
  }

  /* Mobile Nested Submenu */
  .dropdown-submenu .submenu {
    position: static;
    left: 0;
    box-shadow: none;
    background: #f0f0f0;
    padding-left: 1rem;
    margin: 0;
    display: none;
    border-radius: 8px;
  }

  .dropdown-submenu.show > .submenu {
    display: block !important;
    animation: submenuSlide 0.3s ease;
  }
  
  @keyframes submenuSlide {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .dropdown-submenu > .dropdown-toggle-sub {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .submenu-arrow {
    transition: transform 0.3s ease;
  }

  .dropdown-submenu.show .submenu-arrow {
    transform: rotate(90deg);
  }
  
  /* Mobile Contact Button */
  .navbar-nav .contact-btn {
    margin: 1rem 0.5rem 0.5rem;
    text-align: center;
    display: block;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
  }
  
  .top-bar {
    font-size: 12px;
    padding: 6px 0;
  }
  
  .top-bar .container {
    flex-direction: column;
    gap: 4px;
  }
  
  .top-right {
    display: flex;
    gap: 8px;
  }
  
  .top-right a {
    margin-left: 0;
  }
}

/* Small Mobile - Extra adjustments */
@media (max-width: 576px) {
  .main-navbar .container-fluid {
    padding: 0 0.75rem;
  }
  
  .navbar-brand img {
    height: 50px;
  }
  
  .navbar-nav .nav-link {
    padding: 0.8rem 0.3rem !important;
    font-size: 0.95rem;
  }
  
  .navbar-collapse {
    border-radius: 0 0 12px 12px;
  }
  
  .top-bar {
    display: none;
  }

  .main-navbar {
    top: 0; /* No top-bar on small mobile */
  }

  body {
    padding-top: 65px; /* Only navbar height on small mobile */
  }

  /* Transparent header on mobile - no top-bar */
  body.transparent-header {
    padding-top: 0;
  }

  body.transparent-header .main-navbar .navbar-collapse {
    background: rgba(247,246,236,0.98);
  }

  body.transparent-header .main-navbar .navbar-collapse .nav-link {
    color: #000;
    text-shadow: none;
  }

  .hero-badge {
    font-size: 10px;
    padding: 5px 10px;
    margin-bottom: 12px;
  }
}


/* --------------------------------------------------------------------------
 * TRUST SECTION - "BUILT ON TRUST"
 * --------------------------------------------------------------------------
 * Homepage section highlighting institutional values and features.
 * Two-column layout with features grid and image.
 * Background: Cream (#FAEBD7)
 * -------------------------------------------------------------------------- */

.trust-section {
  padding: 70px 0 40px;
  background: #FAEBD7;
}

.trust-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
  color: #1a1a1a;
}

.trust-desc {
  font-size: 16px;
  color: #333;
  line-height: 1.7;
  margin-bottom: 30px;
}

/* Features Grid - 2x2 layout */
.trust-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 30px;
}

.feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

/* Icon container with primary orange background */
.icon-box {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: #E8402A;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
}

.feature-item h6 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 3px;
  color: #1a1a1a;
}

.feature-item p {
  font-size: 13px;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

/* Image block with decorative elements */
.trust-image-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: visible;
  padding-left: 30px;
}

.trust-image-wrapper img {
  width: 100%;
  border-radius: 16px;
}

/* BADGE */
.trust-badge {
  position: absolute;
  bottom: 24px;
  left: 0;
  background: #E8402A;
  color: #FFFFFF;
  padding: 14px 16px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  z-index: 10;
}

.trust-badge h3 {
  font-size: 22px;
  margin-bottom: 2px;
  font-weight: 700;
}

.trust-badge span {
  font-size: 10px;
  letter-spacing: 1px;
  opacity: 0.9;
  text-transform: uppercase;
}

/* ===== MOBILE ===== */
@media (max-width: 991px) {
  .trust-title {
    font-size: 30px;
  }
  .trust-features {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .trust-section {
    padding: 50px 0;
  }
  .trust-title {
    font-size: 24px;
  }
  .trust-desc {
    font-size: 14px;
    margin-bottom: 24px;
  }
  .trust-features {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .icon-box {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 16px;
    border-radius: 8px;
  }
  .feature-item h6 {
    font-size: 14px;
  }
  .feature-item p {
    font-size: 12px;
  }
  .trust-image-wrapper {
    padding-left: 15px;
    margin-top: 30px;
  }
  .trust-badge {
    left: 0;
    bottom: 14px;
    padding: 10px 12px;
  }
  .trust-badge h3 {
    font-size: 18px;
  }
  .trust-badge span {
    font-size: 9px;
  }
}


/* --------------------------------------------------------------------------
 * PROGRAMS SECTION - COURSE CARDS
 * --------------------------------------------------------------------------
 * Homepage section displaying available courses/programs as cards.
 * Features grouped display (Intermediate, Degree) with card hover effects.
 * Background: Light (#F7F6EC)
 * -------------------------------------------------------------------------- */

.programs-section {
  padding: 70px 0 40px;
  background: #F7F6EC;
}

/* Section Header - title + view all link */
.programs-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 50px;
}

.programs-header h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
}

.programs-header p {
  max-width: 600px;
  color: #000000;
  font-size: 16px;
}

.view-all {
  font-weight: 600;
  color: #E8402A;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.view-all:hover {
  color: #A70000;
}

/* Program category labels (Intermediate, Degree) */
.programs-subheading {
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #E8402A;
  display: inline-block;
}

.programs-subheading span {
  font-weight: 400;
  color: #666;
}

.view-all i {
  margin-left: 6px;
}

/* Program Card - elevated card with hover effect */
.program-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 28px;
  height: 100%;
  border: 1px solid #F7F6EC;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Overlay layer for hover effect */
.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.program-card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  transform: translateY(-8px);
  border-color: rgba(15,18,32,0.1);
}

.program-card:hover::before {
  opacity: 1;
}

/* CARD TOP */
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.tag {
  background: #FAEBD7;
  color: #E8402A;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.duration {
  font-size: 14px;
  color: #000000;
}

/* CONTENT */
.program-card h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}

.program-card p {
  font-size: 15px;
  color: #000000;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}

.program-card h6 {
  margin-top: 24px;
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 700;
}

/* LIST */
.program-card ul {
  padding-left: 18px;
  margin-top: 12px;
  margin-bottom: 30px;
}

.program-card ul li {
  font-size: 14px;
  color: #000000;
  margin-bottom: 10px;
}

/* Program card images - base styles */
.program-card .card-image {
  height: 220px;
  border-radius: 16px 16px 0 0;
  margin: -28px -28px 20px -28px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Program card images - taller on desktop */
@media (min-width: 992px) {
  .program-card .card-image {
    height: 300px;
  }
}

/* Program card images - responsive adjustments */
@media (max-width: 991px) and (min-width: 769px) {
  .program-card .card-image {
    height: 350px;
    margin: -28px -28px 16px -28px;
  }
  
  .program-card {
    padding: 24px;
  }
  
  .program-card h4 {
    font-size: 18px;
  }
  
  .program-card p {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .program-card .card-image {
    height: 260px;
    margin: -24px -24px 16px -24px;
    border-radius: 12px 12px 0 0;
  }
  
  .program-card {
    padding: 24px;
    border-radius: 12px;
  }
  
  .program-card h4 {
    font-size: 18px;
  }
  
  .program-card p {
    font-size: 14px;
    line-height: 1.6;
  }
  
  .card-top {
    margin-bottom: 16px;
  }
  
  .tag {
    padding: 5px 12px;
    font-size: 12px;
  }
  
  .duration {
    font-size: 13px;
  }
  
  .details-link {
    padding: 10px 20px;
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .program-card .card-image {
    height: 250px;
    margin: -20px -20px 14px -20px;
    border-radius: 10px 10px 0 0;
  }
  
  .program-card {
    padding: 20px;
    border-radius: 10px;
  }
  
  .program-card h4 {
    font-size: 17px;
    margin-bottom: 10px;
  }
  
  .program-card p {
    font-size: 13px;
    margin-bottom: 16px;
  }
  
  .card-top {
    margin-bottom: 14px;
  }
  
  .tag {
    padding: 4px 10px;
    font-size: 11px;
  }
  
  .duration {
    font-size: 12px;
  }
  
  .details-link {
    padding: 10px 18px;
    font-size: 13px;
    width: 100%;
    justify-content: center;
  }
}

/* LINK */
.details-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #E8402A;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  z-index: 10;
  margin-top: auto;
}

.details-link:hover {
  background: #A70000;
  transform: translateX(5px);
  gap: 14px;
  color: white;
}

.details-link i {
  transition: transform 0.3s ease;
}

.details-link:hover i {
  transform: translateX(4px);
}

/* MOBILE */
@media (max-width: 768px) {
  .programs-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .programs-header h2 {
    font-size: 30px;
  }
  
  .programs-subheading {
    font-size: 18px;
    margin-bottom: 20px;
  }
}

@media (max-width: 576px) {
  .programs-header h2 {
    font-size: 26px;
  }
  
  .programs-header p {
    font-size: 14px;
  }
  
  .programs-subheading {
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 10px;
  }
  
  .view-all {
    font-size: 14px;
    margin-top: 10px;
  }
}


/* --------------------------------------------------------------------------
 * LEARNING ENVIRONMENT SECTION
 * --------------------------------------------------------------------------
 * Homepage section showcasing campus facilities with hover-reveal cards.
 * 4-column grid on desktop, horizontal scroll on mobile.
 * Background: White (#FFFFFF)
 * -------------------------------------------------------------------------- */

.learning-section {
  padding: 70px 0 40px;
  background: #FFFFFF;
}

/* Section tagline - uppercase accent text */
.section-tagline {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #E8402A;
  margin-bottom: 10px;
}

.learning-header h2 {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 16px;
}

.learning-header p {
  font-size: 16px;
  color: #555;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Cards Grid - 4 columns on desktop */
.learning-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

/* Learning Card - image with overlay */
.learning-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 260px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.learning-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* Dark overlay with text - reveals more content on hover */
.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  transition: background 0.4s ease;
}

.card-overlay h5 {
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px 0;
  transform: translateY(0);
  transition: transform 0.4s ease;
}

/* Hidden description - slides up on hover */
.card-overlay p {
  color: #ffffff;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Hover Effects */
.learning-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

.learning-card:hover img {
  transform: scale(1.1);
}

.learning-card:hover .card-overlay {
  background: rgba(0, 0, 0, 0.75);
}

.learning-card:hover .card-overlay h5 {
  transform: translateY(-5px);
}

.learning-card:hover .card-overlay p {
  opacity: 1;
  transform: translateY(0);
}

/* ===== MOBILE ===== */
@media (max-width: 991px) {
  .learning-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .learning-header h2 {
    font-size: 30px;
  }

  .learning-cards-wrapper {
    /* overflow: hidden; */
    width: 100%;
  }

  .learning-cards {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 0 16px 10px 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .learning-cards::-webkit-scrollbar {
    display: none;
  }

  .learning-card {
    min-width: calc(100vw - 64px);
    max-width: calc(100vw - 64px);
    height: 240px;
    flex-shrink: 0;
    scroll-snap-align: center;
  }

  /* Show description on mobile since no hover */
  .learning-card .card-overlay p {
    opacity: 1;
    transform: translateY(0);
    font-size: 12px;
  }

  /* Dots indicator */
  .learning-dots {
    display: flex !important;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
  }

  .learning-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .learning-dots .dot.active {
    background: #E8402A;
    transform: scale(1.2);
  }
}

/* Hide dots on desktop */
.learning-dots {
  display: none;
}


/* --------------------------------------------------------------------------
 * BEYOND THE CLASSROOM SECTION
 * --------------------------------------------------------------------------
 * Homepage section highlighting extracurricular activities and events.
 * Card-based layout with image and text content.
 * Background: Light (#F7F6EC)
 * -------------------------------------------------------------------------- */

.beyond-section {
  padding: 70px 0 40px;
  background: #F7F6EC;
}

.beyond-header {
  margin-bottom: 50px;
}

.beyond-header h2 {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 12px;
}

.beyond-header p {
  font-size: 16px;
  color: #555;
  max-width: 600px;
  margin: 0 auto;
}

/* Activity Card - text-only variant */
.beyond-card {
  background: #fff;
  padding: 35px 30px;
  border-radius: 16px;
  height: 100%;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.beyond-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* Activity Card - image variant */
.beyond-card.has-image {
  padding: 0;
  overflow: hidden;
  text-align: left;
}

.beyond-image {
  width: 100%;
  height: 370px;
  overflow: hidden;
}

.beyond-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.beyond-card.has-image:hover .beyond-image img {
  transform: scale(1.05);
}

.beyond-content {
  padding: 24px;
}

.beyond-content h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1a1a1a;
}

.beyond-content p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* Icon circle - fallback for cards without images */
.beyond-icon {
  width: 70px;
  height: 70px;
  background: #E8402A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.beyond-icon i {
  font-size: 28px;
  color: #fff;
}

.beyond-card h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.beyond-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 768px) {
  .beyond-section {
    padding: 50px 0;
  }
  .beyond-header h2 {
    font-size: 28px;
  }
  .beyond-card {
    padding: 28px 24px;
  }
  .beyond-card.has-image {
    padding: 0;
  }
  .beyond-image {
    height: 380px;
  }
  .beyond-content {
    padding: 20px;
  }
  .beyond-content h4 {
    font-size: 16px;
  }
  .beyond-icon {
    width: 60px;
    height: 60px;
  }
  .beyond-icon i {
    font-size: 24px;
  }
  .beyond-card h4 {
    font-size: 18px;
  }
}


/* --------------------------------------------------------------------------
 * VOICES SECTION - TESTIMONIALS/ACHIEVEMENTS
 * --------------------------------------------------------------------------
 * Dark-themed section showcasing student testimonials and achievements.
 * 3-column card grid with image, badge, and quote.
 * Background: Black (#000000)
 * -------------------------------------------------------------------------- */

.voices-section {
  padding: 120px 0;
  background: #000000;
  color: #ffffff;
}

/* Section Header */
.voices-header h2 {
  color: #ffff;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 12px;
}

.voices-header p {
  color: #FFFFFF;
  max-width: 700px;
  margin: 0 auto 60px;
}

/* Testimonial Cards Grid */
.voices-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Testimonial Card */
.voice-card {
  background: #ffffff;
  color: #000000;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  max-width: 550px;
  margin: 0 auto;
  transition: all 0.4s ease;
  border: 2px solid #F7F6EC;
  display: flex;
  flex-direction: column;
}

.voice-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(232,64,42,0.2);
  border-color: #E8402A;
}

/* Card Image */
.voice-image {
  width: 100%;
  height: 380px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.voice-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.voice-card:hover .voice-image img {
  transform: scale(1.1);
}

/* Card Content */
.voice-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.voice-content h5 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 14px;
  margin-bottom: 8px;
  color: #000000;
}

.voice-content small {
  display: block;
  color: #E8402A;
  margin-bottom: 16px;
  font-weight: 500;
  font-size: 13px;
}

/* Achievement Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #E8402A;
  color: #FFFFFF;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  align-self: flex-start;
}

.badge i {
  font-size: 13px;
}

/* Quote Block - styled italic text with left border */
.quote {
  font-size: 15px;
  line-height: 1.8;
  color: #000000;
  font-style: italic;
  margin: 0;
  position: relative;
  padding-left: 20px;
  border-left: 3px solid #E8402A;
}

/* Testimonials - Responsive */
@media (max-width: 991px) {
  .voices-cards {
    grid-template-columns: 1fr;
  }
  
  .voices-header h2 {
    font-size: 30px;
  }

  .voice-image {
    height: 380px;
  }

  .voice-content {
    padding: 25px;
  }
}

@media (max-width: 576px) {
  .voice-image {
    height: 380px;
  }

  .voice-content h5 {
    font-size: 19px;
  }

  .quote {
    font-size: 14px;
  }

  .badge {
    padding: 5px 10px;
    font-size: 10px;
    gap: 4px;
    border-radius: 14px;
  }

  .badge i {
    font-size: 10px;
  }
}


/* --------------------------------------------------------------------------
 * CTA SECTION - CALL TO ACTION
 * --------------------------------------------------------------------------
 * Homepage conversion section with title, description, CTAs, and info cards.
 * Two-column layout with rounded container.
 * Background: Cream (#FAEBD7)
 * -------------------------------------------------------------------------- */

.cta-section {
  padding: 70px 0 40px;
  background: #FAEBD7;
}

.cta-wrapper {
  background: #F7F6EC;
  border-radius: 40px;
  padding: 70px;
}

/* Left Column - Headlines and Buttons */
.cta-title {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
}

.cta-desc {
  font-size: 16px;
  color: #000000;
  max-width: 520px;
  margin-bottom: 34px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* CTA Button Variants */
.btn-primary-cta,
.btn-outline-cta {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary-cta:hover,
.btn-outline-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.btn-primary-cta {
  background: #E8402A;
  color: #FFFFFF;
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn-primary-cta:hover {
  background: #A70000;
}

.btn-outline-cta {
  background: #ffffff;
  border: 1px solid #F7F6EC;
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 600;
  color: #000000;
}

/* Right Column - Info Cards Grid */
.cta-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.cta-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.cta-card i {
  font-size: 26px;
  margin-bottom: 14px;
  color: #E8402A;
}

.cta-card h6 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.cta-card p {
  font-size: 14px;
  color: #000000;
  margin: 0;
}

/* CTA Section - Responsive */
@media (max-width: 768px) {
  .cta-wrapper {
    padding: 40px 24px;
    border-radius: 28px;
  }

  .cta-title {
    font-size: 30px;
  }

  .cta-cards {
    grid-template-columns: 1fr;
  }
}


/* --------------------------------------------------------------------------
 * SITE FOOTER
 * --------------------------------------------------------------------------
 * Main footer with brand info, navigation links, contact details, and
 * social media links. Multi-column layout on desktop.
 * Background: Black (#000000)
 * -------------------------------------------------------------------------- */

.site-footer {
  background: #000000;
  color: #FFFFFF;
  padding: 90px 0 40px;
}

/* Brand Logo and Name */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.footer-brand img {
  width: 55px;
}

.footer-brand span {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

/* Description Text */
.footer-desc {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 26px;
}

/* Social Media Icons */
.footer-socials {
  display: flex;
  gap: 14px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 14px;
}

/* Section Titles */
.footer-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
}

/* Navigation Links List */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #FFFFFF;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

/* Contact Information */
.footer-contact {
  font-size: 14px;
  margin-bottom: 12px;
}

/* Horizontal Divider */
.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 50px 0 30px;
}

/* Bottom Row - Copyright and Legal Links */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: #FFFFFF;
  text-decoration: none;
}

/* Footer - Responsive */
@media (max-width: 991px) {
  .site-footer {
    padding: 60px 0 30px;
  }
  
  .footer-divider {
    margin: 30px 0 20px;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 40px 0 25px;
  }
  
  .footer-brand img {
    width: 40px;
  }
  
  .footer-brand span {
    font-size: 16px;
  }
  
  .footer-desc {
    font-size: 13px;
    margin-bottom: 18px;
  }
  
  .footer-socials a {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }
  
  .footer-title {
    font-size: 14px;
    margin-bottom: 12px;
    margin-top: 20px;
  }
  
  .footer-links li {
    margin-bottom: 8px;
  }
  
  .footer-links a {
    font-size: 13px;
  }
  
  .footer-contact {
    font-size: 13px;
  }
  
  .footer-divider {
    margin: 25px 0 15px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    font-size: 12px;
    gap: 10px;
  }

  .footer-legal {
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
  }
}


/* --------------------------------------------------------------------------
 * WHY VIJETHA SECTION
 * --------------------------------------------------------------------------
 * Homepage section showcasing institutional USPs with interactive cards.
 * Cards reveal background images on hover with content fade-out effect.
 * Background: White (#FFFFFF)
 * -------------------------------------------------------------------------- */

.why-vijetha-section {
  padding: 70px 0 40px;
  background: white;
}

.section-heading {
  font-size: 42px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 20px;
}

/* USP Card - reveals image on hover */
.why-card {
  background: #F7F6EC;
  padding: 40px 25px;
  border-radius: 15px;
  height: 100%;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}

/* Background image layer - hidden by default, shown on hover */
.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('./assets/img/home/why/why-1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

/* Individual card background images */
.col-lg-3:nth-child(1) .why-card::before {
  background-image: url('./assets/img/home/Why-choose-us/Years-of-Excellence.webp');
}

.col-lg-3:nth-child(2) .why-card::before {
  background-image: url('./assets/img/home/Why-choose-us/Value-Based-Education.webp');
}

.col-lg-3:nth-child(3) .why-card::before {
  background-image: url('./assets/img/home/Why-choose-us/Junior-Degree-Colleges.webp');
}

.col-lg-3:nth-child(4) .why-card::before {
  background-image: url('./assets/img/home/Why-choose-us/Experienced-Faculty.webp');
}

.col-lg-3:nth-child(5) .why-card::before {
  background-image: url('./assets/img/home/Why-choose-us/Holistic-Development.webp');
}

.col-lg-3:nth-child(6) .why-card::before {
  background-image: url('./assets/img/home/Why-choose-us/Academic-Discipline.webp');
}

.col-lg-3:nth-child(7) .why-card::before {
  background-image: url('./assets/img/home/Why-choose-us/Guidance.webp');
}

.col-lg-3:nth-child(8) .why-card::before {
  background-image: url('./assets/img/home/Why-choose-us/Placement-Support.webp');
}

/* Dark overlay for image - shown on hover */
.why-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

/* Elevate card content above overlays */
.why-card > * {
  position: relative;
  z-index: 3;
  transition: all 0.4s ease;
}

/* Card hover state */
.why-card:hover {
  transform: translateY(-10px);
  border-color: #E8402A;
  box-shadow: 0 15px 40px rgba(232,64,42,0.15);
}

.why-card:hover::before,
.why-card:hover::after {
  opacity: 1;
}

/* Fade out content on hover to reveal image */
.why-card:hover h5,
.why-card:hover p,
.why-card:hover .why-icon {
  opacity: 0;
  transform: translateY(-20px);
}

/* Icon container */
.why-icon {
  width: 70px;
  height: 70px;
  background: #E8402A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all 0.4s ease;
  flex-shrink: 0;
}

.why-card:hover .why-icon {
  opacity: 0;
  transform: translateY(-20px) scale(1.1) rotate(5deg);
}

.why-icon i {
  font-size: 32px;
  color: white;
}

.why-card h5 {
  font-size: 18px;
  font-weight: 600;
  color: #000000;
  margin-bottom: 10px;
  line-height: 1.4;
  transition: all 0.4s ease;
}

.why-card p {
  font-size: 14px;
  color: #000000;
  margin: 0;
  line-height: 1.6;
  transition: all 0.4s ease;
}

/* Why Vijetha - Responsive */
@media (max-width: 991px) {
  .section-heading {
    font-size: 32px;
  }
  
  .why-vijetha-section {
    padding: 70px 0;
  }
  
  .why-card {
    min-height: 250px;
    padding: 30px 20px;
  }
}

@media (max-width: 768px) {
  .why-card {
    min-height: auto;
    margin-bottom: 20px;
  }
}


/* --------------------------------------------------------------------------
 * VIJETHA REIMAGINED SECTION
 * --------------------------------------------------------------------------
 * Two-column layout with features list and image carousel.
 * Showcases institutional transformation and Vision 2.0.
 * Background: Light (#F7F6EC)
 * -------------------------------------------------------------------------- */

.reimagined-section {
  padding: 70px 0 40px;
  background: #F7F6EC;
}

/* Section Badge - pill-shaped accent label */
.reimagined-content .section-badge {
  display: inline-block;
  background: rgba(232,64,42,0.1);
  color: #E8402A;
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(232,64,42,0.2);
}

.reimagined-content h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #000000;
}

.reimagined-desc {
  font-size: 17px;
  line-height: 1.8;
  color: #000000;
  margin-bottom: 40px;
}

/* Features List - icon + text rows */
.reimagined-features {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.reimagined-feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.reimagined-feature i {
  font-size: 28px;
  color: #E8402A;
  min-width: 40px;
  margin-top: 5px;
}

.reimagined-feature h5 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #000000;
}

.reimagined-feature p {
  font-size: 15px;
  color: #000000;
  margin: 0;
}

/* Visual Column - image carousel */
.reimagined-visual {
  position: relative;
  padding-left: 40px;
}

.reimagined-img-carousel {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
}

.reimagined-img-carousel .reimagined-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.reimagined-img-carousel .reimagined-img:first-child {
  position: relative;
}

.reimagined-img-carousel .reimagined-img.active {
  opacity: 1;
}

.reimagined-stat-box {
  position: absolute;
  bottom: 30px;
  left: 0;
  background: white;
  padding: 18px 22px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
  border-left: 4px solid #E8402A;
}

.reimagined-stat-box .stat-item {
  display: none;
  text-align: center;
}

.reimagined-stat-box .stat-item.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.reimagined-stat-box h3 {
  font-size: 32px;
  font-weight: 800;
  color: #E8402A;
  margin: 0;
}

.reimagined-stat-box p {
  font-size: 12px;
  color: #000000;
  margin: 3px 0 0 0;
  line-height: 1.4;
}

@media (max-width: 991px) {
  .reimagined-visual {
    padding-left: 0;
    margin-top: 40px;
  }
  
  .reimagined-content h2 {
    font-size: 32px;
  }

  .reimagined-content .section-badge {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 18px;
  }
  
  .reimagined-stat-box {
    bottom: 20px;
    left: 20px;
    padding: 14px 18px;
  }
  
  .reimagined-stat-box h3 {
    font-size: 26px;
  }
}


/* --------------------------------------------------------------------------
 * TESTIMONIALS SECTION
 * --------------------------------------------------------------------------
 * Student testimonials with profile cards including avatar, stars,
 * quote text, and placement details.
 * Background: Cream (#FAEBD7)
 * -------------------------------------------------------------------------- */

.testimonials-section {
  padding: 70px 0 40px;
  background: #FAEBD7;
}

/* Testimonial Card */
.testimonial-card-new {
  background: #FFFFFF;
  padding: 30px 24px;
  border-radius: 16px;
  height: 100%;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  position: relative;
}

.testimonial-card-new:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.1);
}

/* Avatar with decorative gradient ring */
.testimonial-avatar {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 18px;
}

.testimonial-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 3px solid #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  z-index: 2;
}

/* Gradient ring behind avatar */
.avatar-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  z-index: 1;
}

.avatar-ring.ring-red {
  background: conic-gradient(
    #E8402A 0deg 180deg,
    #F08C1C 180deg 270deg,
    transparent 270deg 360deg
  );
}

.avatar-ring.ring-orange {
  background: conic-gradient(
    #F08C1C 0deg 180deg,
    #E8402A 180deg 270deg,
    transparent 270deg 360deg
  );
}

.testimonial-name {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

/* Star rating display */
.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-bottom: 16px;
}

.testimonial-stars i {
  font-size: 14px;
  color: #F08C1C;
}

.testimonial-text-new {
  font-size: 14px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 20px;
}

/* Course and placement info */
.testimonial-meta {
  border-top: 1px solid #eee;
  padding-top: 16px;
  text-align: left;
}

.meta-course {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.meta-placement {
  font-size: 13px;
  color: #555;
  margin: 0;
}

.meta-placement strong {
  color: #E8402A;
}

/* Testimonials - Responsive */
@media (max-width: 991px) {
  .testimonials-section {
    padding: 60px 0;
  }
}

@media (max-width: 576px) {
  .testimonials-section {
    padding: 40px 0;
  }
  .testimonial-card-new {
    padding: 24px 20px;
  }
  .testimonial-avatar {
    width: 90px;
    height: 90px;
  }
  .avatar-ring {
    width: 90px;
    height: 90px;
  }
  .testimonial-avatar img {
    width: 70px;
    height: 70px;
  }
}


/* --------------------------------------------------------------------------
 * FAQ SECTION - HOMEPAGE
 * --------------------------------------------------------------------------
 * Accordion-based FAQ component using Bootstrap accordion.
 * Custom styling for expand/collapse animations.
 * Background: Light (#F7F6EC)
 * -------------------------------------------------------------------------- */

.faq-section-home {
  padding: 70px 0 40px;
  background: #F7F6EC;
}

.faq-section-home .accordion {
  border: none;
  background: transparent;
}

/* FAQ Item - rounded card style */
.faq-section-home .accordion-item {
  border: none;
  border-radius: 12px !important;
  margin-bottom: 16px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-section-home .accordion-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* FAQ Question Button */
.faq-section-home .accordion-button {
  padding: 20px 28px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  background: #fff;
  border: none;
  border-radius: 12px !important;
  box-shadow: none !important;
}

.faq-section-home .accordion-button:not(.collapsed) {
  color: #E8402A;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.faq-section-home .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23E8402A'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s ease;
}

.faq-section-home .accordion-button:not(.collapsed)::after {
  transform: rotate(-180deg);
}

.faq-section-home .accordion-body {
  padding: 20px 28px 24px;
  color: #555;
  font-size: 1rem;
  line-height: 1.7;
  background: #FAFAF8;
  border-top: none;
}

.faq-section-home .accordion-collapse {
  border-radius: 0 0 12px 12px;
}

@media (max-width: 768px) {
  .faq-section-home {
    padding: 60px 0;
  }
  
  .faq-section-home .accordion-button {
    padding: 16px 20px;
    font-size: 1rem;
  }
  
  .faq-section-home .accordion-body {
    padding: 16px 20px 20px;
    font-size: 0.95rem;
  }
}


/* --------------------------------------------------------------------------
 * GLOBAL MOBILE RESPONSIVE ENHANCEMENTS
 * --------------------------------------------------------------------------
 * Comprehensive mobile fixes for consistent UI across all pages.
 * Reduces section gaps, improves image visibility, and ensures
 * uniform spacing throughout the website.
 * -------------------------------------------------------------------------- */

/* Mobile Section Padding - Consistent spacing */
@media (max-width: 768px) {
  /* Reduce large section padding on mobile */
  .voices-section {
    padding: 50px 0;
  }
  
  .voices-header h2 {
    font-size: 26px;
  }
  
  .voices-header p {
    font-size: 14px;
    margin-bottom: 30px;
  }
  
  .voice-image {
    height: 440px;
  }
  
  .voice-content {
    padding: 20px;
  }
  
  .voice-content h5 {
    font-size: 18px;
  }
  
  /* Testimonials section mobile */
  .testimonials-section {
    padding: 50px 0;
  }
  
  /* CTA section mobile */
  .cta-section {
    padding: 50px 0 30px;
  }
  
  /* Consistent section spacing */
  .trust-section,
  .reimagined-section,
  .programs-section,
  .learning-section,
  .beyond-section {
    padding: 50px 0 30px;
  }
  
  /* Images - Better visibility on mobile */
  .img-fluid {
    max-width: 100%;
    height: auto;
  }
  
  /* Container padding on mobile */
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  /* Section headers mobile */
  section h2 {
    font-size: 26px !important;
  }
  
  /* Card gap reduction on mobile */
  .row.g-4 {
    --bs-gutter-y: 1rem;
    --bs-gutter-x: 1rem;
  }
  
  .row.g-5 {
    --bs-gutter-y: 1.5rem !important;
    --bs-gutter-x: 1rem !important;
  }

  .row.gy-5,
  .gy-5 {
    --bs-gutter-y: 1rem !important;
  }

  /* Margin bottom reduction */
  .mb-5 {
    margin-bottom: 2rem !important;
  }
  
  .mb-4 {
    margin-bottom: 1.25rem !important;
  }
  
  /* Text alignment for mobile readability */
  .text-center p {
    font-size: 14px;
    line-height: 1.6;
  }
}

/* Small Mobile - Extra compact */
@media (max-width: 480px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  
  /* Further reduce section padding - exclude hero sections */
  section:not(.hero-section):not([class*="-hero"]) {
    padding-top: 40px !important;
    padding-bottom: 30px !important;
  }
  
  /* Ensure hero sections have no extra padding */
  .hero-section,
  [class$="-hero"] {
    padding: 0 !important;
    margin: 0 !important;
  }
  
  /* Smaller headings on small screens */
  section h2 {
    font-size: 22px !important;
    line-height: 1.3;
  }
  
  section h3 {
    font-size: 18px;
  }
  
  /* Card images better fit */
  .voice-image {
    height: 300px;
  }
  
  /* Button sizing */
  .btn {
    padding: 10px 18px;
    font-size: 13px;
  }
  
  /* Row gaps compact */
  .row.g-4,
  .row.g-5 {
    --bs-gutter-y: 0.75rem;
    --bs-gutter-x: 0.5rem;
  }

  .row.gy-5,
  .gy-5 {
    --bs-gutter-y: 0.75rem !important;
  }
}
