/* BSERI Website Theme CSS */
/* Design System & Components for ISO Certification Courses */

/* ==========================================
   SCROLLBAR STYLING
   ========================================== */

/* Webkit browsers (Chrome, Safari, Edge) */
.megamenu-courses::-webkit-scrollbar,
.megamenu-featured::-webkit-scrollbar {
  width: 8px;
}

.megamenu-courses::-webkit-scrollbar-track,
.megamenu-featured::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.megamenu-courses::-webkit-scrollbar-thumb,
.megamenu-featured::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.megamenu-courses::-webkit-scrollbar-thumb:hover,
.megamenu-featured::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Firefox */
.megamenu-courses,
.megamenu-featured {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

/* ==========================================
   CSS VARIABLES (DESIGN TOKENS)
   ========================================== */

:root {
  /* Brand Colors */
  --brand: #1d4ed8; /* Blue primary */
  --brand-2: #06b6d4; /* Cyan accent */
  --ink: #0f172a; /* Text dark */
  --muted: #64748b; /* Secondary text */
  --bg: #ffffff; /* Page background */
  --surface: #f8fafc; /* Section background */
  --highlight: #f59e0b; /* CTA/hover accent */
  --success: #10b981; /* Success green */
  --danger: #ef4444; /* Error red */
  --warning: #f59e0b; /* Warning amber */

  /* Extended Palette */
  --brand-light: #3b82f6;
  --brand-lighter: #dbeafe;
  --surface-2: #e2e8f0;
  --surface-3: #cbd5e1;
  --border: #e2e8f0;
  --border-dark: #94a3b8;

  /* Typography Scale */
  --text-xs: 0.75rem; /* 12px */
  --text-sm: 0.875rem; /* 14px */
  --text-base: 1rem; /* 16px */
  --text-lg: 1.125rem; /* 18px */
  --text-xl: 1.25rem; /* 20px */
  --text-2xl: 1.5rem; /* 24px */
  --text-3xl: 1.875rem; /* 30px */
  --text-4xl: 2.25rem; /* 36px */
  --text-5xl: 3rem; /* 48px */
  --text-6xl: 3.75rem; /* 60px */

  /* Line Heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  /* Spacing */
  --space-1: 0.25rem; /* 4px */
  --space-2: 0.5rem; /* 8px */
  --space-3: 0.75rem; /* 12px */
  --space-4: 1rem; /* 16px */
  --space-5: 1.25rem; /* 20px */
  --space-6: 1.5rem; /* 24px */
  --space-8: 2rem; /* 32px */
  --space-10: 2.5rem; /* 40px */
  --space-12: 3rem; /* 48px */
  --space-16: 4rem; /* 64px */
  --space-20: 5rem; /* 80px */
  --space-24: 6rem; /* 96px */

  /* Border Radius */
  --radius-sm: 0.125rem; /* 2px */
  --radius: 0.375rem; /* 6px */
  --radius-md: 0.5rem; /* 8px */
  --radius-lg: 0.75rem; /* 12px */
  --radius-xl: 1rem; /* 16px */
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition: 200ms ease-in-out;
  --transition-slow: 300ms ease-in-out;
}

/* ==========================================
   BASE STYLES & TYPOGRAPHY
   ========================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Pulse Animation for Process Steps */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.4;
  }
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

body {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--ink);
  background-color: var(--bg);
  margin: 0;
  padding: 0;
}

/* Typography Hierarchy */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "EB Garamond", serif;
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--ink);
  margin-bottom: var(--space-4);
}

h1 {
  font-size: var(--text-5xl);
  font-weight: 700;
}

h2 {
  font-size: var(--text-4xl);
  font-weight: 600;
}

h3 {
  font-size: var(--text-3xl);
  font-weight: 600;
}

h4 {
  font-size: var(--text-2xl);
  font-weight: 600;
}

h5 {
  font-size: var(--text-xl);
  font-weight: 500;
}

h6 {
  font-size: var(--text-lg);
  font-weight: 500;
}

p {
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}

.lead {
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  color: var(--muted);
}

.text-muted {
  color: var(--muted);
}

.text-brand {
  color: var(--brand);
}

.text-success {
  color: var(--success);
}

/* ==========================================
   HERO SECTION ENHANCEMENTS
   ========================================== */

.hero {
  position: relative;
  padding: var(--space-20) 0;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: white;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero {
    padding: var(--space-16) 0;
  }
}

/* Specific styling for catalog page hero - Fixed height of 420px */
.catalog-hero {
  min-height: 420px !important;
  height: 420px !important;
  max-height: 420px !important;
  padding: 60px 0 !important;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .catalog-hero {
    height: 420px !important;
    max-height: 420px !important;
    padding: 40px 0 !important;
  }
}

.hero-title {
  font-size: clamp(var(--text-3xl), 4.5vw, var(--text-5xl));
  font-weight: 700;
  line-height: var(--leading-tight);
  margin-bottom: var(--space-6);
}

.hero-subtitle {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  line-height: var(--leading-relaxed);
  opacity: 0.9;
  margin-bottom: var(--space-8);
  max-width: 90%;
}

.hero-subtext {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-5) 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-subtext .h6 {
  font-size: clamp(var(--text-base), 1.2vw, var(--text-lg));
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  margin-bottom: var(--space-2);
}

.hero-subtext .small {
  font-size: clamp(var(--text-xs), 1vw, var(--text-sm));
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  line-height: 1.4;
}

/* Stats styling improvements */
.stat-item {
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all var(--transition);
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.stat-number {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-1);
}

.stat-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* ==========================================
   FACULTY SECTION ENHANCEMENTS
   ========================================== */

.faculty-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto var(--space-6);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border: 4px solid var(--brand-lighter);
  transition: all var(--transition);
}

.faculty-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.faculty-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: all var(--transition);
}

.faculty-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-bottom: var(--space-6);
}

.faculty-credentials .badge {
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-3);
  font-weight: 500;
  border-radius: var(--radius-full);
}

.faculty-stats {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-top: var(--space-6);
}

.faculty-stats .h6 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--brand);
  margin-bottom: var(--space-1);
}

.faculty-stats small {
  font-size: var(--text-xs);
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================
   BUTTON COMPONENTS
   ========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: "Poppins", sans-serif;
  font-size: var(--text-base);
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1;
}

.btn:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--brand);
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background-color: var(--brand-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  color: white;
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
}

.btn-outline:hover {
  background-color: var(--brand);
  color: white;
  text-decoration: none;
}

.btn-accent {
  background-color: var(--highlight);
  color: white;
}

.btn-accent:hover {
  background-color: #d97706;
  color: white;
  text-decoration: none;
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

/* ==========================================
   CARD COMPONENTS
   ========================================== */

.card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.card-glass {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-elevated {
  box-shadow: var(--shadow-xl);
}

.card-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--border);
}

.card-body {
  padding: var(--space-6);
}

.card-footer {
  padding: var(--space-6);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

/* ==========================================
   NAVIGATION COMPONENTS
   ========================================== */

.navbar {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  transition: all var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: var(--text-xl);
  color: #1f2937;
  text-decoration: none;
  letter-spacing: -0.025em;
}

.navbar-brand:hover {
  color: var(--brand);
  text-decoration: none;
}

.navbar-brand img {
  height: 90px;
  width: auto;
}

.nav-link {
  color: #1f2937;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  transition: all var(--transition);
  letter-spacing: 0.025em;
}

.nav-link:hover {
  color: #1d4ed8;
  background-color: #f3f4f6;
  text-decoration: none;
  transform: translateY(-1px);
}

.dropdown-toggle {
  font-weight: 500;
  letter-spacing: 0.025em;
}

.dropdown-toggle::after {
  display: none;
}

.dropdown-toggle .bi-chevron-down {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
  opacity: 0.8;
}

.dropdown.show .dropdown-toggle .bi-chevron-down {
  transform: rotate(180deg);
}

.nav-link.active {
  color: #1d4ed8;
  background-color: #f3f4f6;
  font-weight: 500;
}

/* Megamenu Styles */
.megamenu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-top: 3px solid var(--brand);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition);
}

.dropdown:hover .megamenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.megamenu-content {
  padding: var(--space-8) 0;
}

.megamenu-column {
  padding: 0 var(--space-4);
}

.megamenu-header {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: var(--ink);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--brand);
}

.megamenu-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  color: var(--muted);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: all var(--transition);
}

.megamenu-link:hover {
  color: var(--brand);
  text-decoration: none;
}

.megamenu-link i {
  width: 20px;
  color: var(--brand-2);
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: white;
  padding: var(--space-12) 0;
  position: relative;
  overflow: hidden;
  height: 100vh;
  max-height: 100vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.min-vh-75 {
  min-height: 75vh;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-tag .badge {
  background: rgba(255, 255, 255, 0.15) !important;
  color: white !important;
  font-weight: 500;
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: white;
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.text-highlight {
  background: linear-gradient(45deg, var(--highlight), #ffb800);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(var(--text-base), 1.5vw, var(--text-lg));
  color: rgba(255, 255, 255, 0.95);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-6);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  font-weight: 400;
}

.hero-stats {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  margin-bottom: var(--space-6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-item {
  padding: var(--space-2);
}

.stat-number {
  font-size: clamp(var(--text-xl), 2vw, var(--text-2xl));
  font-weight: 700;
  color: var(--highlight);
  margin-bottom: var(--space-1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.stat-label {
  font-size: clamp(var(--text-xs), 0.9vw, var(--text-sm));
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.hero-actions {
  margin-bottom: var(--space-4);
}

.feature-tag {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.hero-visual {
  position: relative;
  width: 100%;
}

/* Ensure the Bootstrap column doesn't interfere with grid */
.col-lg-6 .hero-image-container {
  width: 100%;
  max-width: none;
  /* Better visual alignment */
  margin: 0 auto;
}

/* Enhanced visual polish for hero cards */
.hero-card .card {
  /* Smooth transitions */
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* Better border handling */
  border: 1px solid rgba(255, 255, 255, 0.25);
  /* Enhanced backdrop */
  backdrop-filter: blur(15px);
  /* Ensure proper stacking */
  position: relative;
  z-index: 1;
}

.hero-card:hover .card {
  /* Enhanced hover state */
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  z-index: 15;
}

.hero-image-container {
  position: relative;
  height: auto;
  min-height: 600px;
  width: 100%;
  /* Clean 2-column grid layout for hero cards */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 20px;
  align-items: start;
  /* Consistent row heights */
  grid-auto-rows: minmax(260px, auto);
  /* Ensure proper overflow handling */
  overflow: visible;
}

.hero-card {
  position: relative;
  width: 100%;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--shadow-lg);
  /* Ensure proper stacking and hover effects */
  pointer-events: auto;
  transform-origin: center center;
  /* Clean alignment */
  margin: 0;
  justify-self: stretch;
  /* Consistent card sizing */
  display: flex;
  flex-direction: column;
  /* Prevent overflow issues */
  overflow: visible;
}

/* Hero card CTA button styling */
.hero-card .btn {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  letter-spacing: 0.025em;
}

.hero-card .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

/* Enhanced Hero Card Content Styling */
.hero-card .card-body {
  padding: 1.25rem !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.hero-card h6 {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.5rem !important;
  line-height: 1.3 !important;
  color: #1e293b !important;
}

.hero-card small {
  font-size: 0.85rem !important;
  line-height: 1.4 !important;
  color: #64748b !important;
  font-weight: 500 !important;
}

.hero-card .badge {
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  padding: 0.35rem 0.7rem !important;
  border-radius: 6px !important;
  letter-spacing: 0.025em !important;
}

.hero-card .feature-icon-sm {
  width: 44px !important;
  height: 44px !important;
  border-radius: 10px !important;
  font-size: 1.2rem !important;
}

.hero-card .d-flex.gap-2 .badge {
  font-size: 0.7rem !important;
  padding: 0.25rem 0.6rem !important;
  border-radius: 4px !important;
  background: rgba(0, 0, 0, 0.08) !important;
  color: #475569 !important;
  font-weight: 500 !important;
}

.hero-card .d-flex.justify-content-between small {
  font-size: 0.8rem !important;
  color: #64748b !important;
  font-weight: 500 !important;
}

.hero-card .d-flex.justify-content-between .badge {
  font-size: 0.75rem !important;
  padding: 0.3rem 0.6rem !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
}

/* Additional spacing improvements */
.hero-card .d-flex.align-items-center.mb-3 {
  margin-bottom: 1rem !important;
}

.hero-card .d-flex.gap-2 {
  gap: 0.5rem !important;
  margin-bottom: 0.75rem !important;
}

.hero-card .d-flex.justify-content-between.align-items-center.mb-3 {
  margin-bottom: 1rem !important;
}

/* Enhanced icon styling */
.hero-card .feature-icon-sm i {
  font-size: 1.1rem !important;
}

/* Better text contrast and readability */
.hero-card .text-muted {
  color: #64748b !important;
  font-weight: 500 !important;
}

.hero-card .fw-bold {
  font-weight: 700 !important;
  color: #1e293b !important;
}

.hero-card .btn:active {
  transform: translateY(0);
}

.hero-card:hover {
  transform: translateY(-6px) scale(1.02);
  z-index: 15;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  /* Smooth hover without overflow issues */
}

.hero-card .card {
  border-radius: 12px !important;
  overflow: visible !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  /* Ensure proper content flow */
  position: relative;
}

/* Grid positioning for hero cards - Clean 2-column layout */
.hero-card:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}

.hero-card:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}

.hero-card:nth-child(3) {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
}

.hero-card:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
}

.hero-card:nth-child(5) {
  grid-column: 1;
  grid-row: 3;
  align-self: start;
}

.hero-card:nth-child(6) {
  grid-column: 2;
  grid-row: 3;
  align-self: start;
}

/* Grid layout - No floating animations needed */

/* Mobile responsive adjustments for hero cards */
@media (max-width: 992px) {
  .hero-image-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    min-height: 500px;
    grid-auto-rows: minmax(240px, auto);
  }
}

@media (max-width: 768px) {
  .hero-image-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    min-height: auto;
    margin-top: var(--space-8);
    grid-auto-rows: minmax(200px, auto);
  }
}

@media (max-width: 576px) {
  .hero-image-container {
    grid-template-columns: 1fr;
    gap: 16px;
    grid-auto-rows: minmax(180px, auto);
  }
}

.feature-icon-sm {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
}

.hero-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.decoration-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  animation: float 6s ease-in-out infinite;
}

.decoration-1 {
  width: 100px;
  height: 100px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.decoration-2 {
  width: 60px;
  height: 60px;
  top: 70%;
  left: 70%;
  animation-delay: 2s;
}

.decoration-3 {
  width: 80px;
  height: 80px;
  top: 40%;
  left: 85%;
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

.hero h1 {
  color: white;
  margin-bottom: var(--space-6);
}

.hero .lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-xl);
  margin-bottom: var(--space-8);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  backdrop-filter: blur(10px);
}

/* ==========================================
   SECTION STYLES
   ========================================== */

.section {
  padding: var(--space-20) 0;
}

.section-alt {
  background-color: var(--surface);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-16);
}

.section-title {
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-xl);
  color: var(--muted);
  line-height: var(--leading-relaxed);
}

/* ==========================================
   GRID & LAYOUT UTILITIES
   ========================================== */

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
}

/* ==========================================
   FEATURE CARDS
   ========================================== */

.feature-card {
  text-align: center;
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--brand-lighter);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  color: var(--brand);
  font-size: var(--text-2xl);
}

.feature-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.feature-description {
  color: var(--muted);
  line-height: var(--leading-relaxed);
}

/* ==========================================
   PROCESS STEPS
   ========================================== */

.process-steps {
  position: relative;
  padding: var(--space-8) 0;
}

.process-step {
  padding: var(--space-6);
  transition: all var(--transition);
}

.process-step:hover {
  transform: translateY(-4px);
}

.process-icon {
  position: relative;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
}

.process-step:hover .process-icon {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

.step-number {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--highlight);
  color: white;
  font-size: var(--text-sm);
  font-weight: 700;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.process-icon i {
  color: white;
  font-size: var(--text-2xl);
}

.process-step h4 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--ink);
}

.process-step p {
  color: var(--muted);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  margin-bottom: 0;
}

/* ==========================================
   FEATURE CARDS
   ========================================== */

/* ==========================================
   COURSE CARD
   ========================================== */

.course-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.course-card-header {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: white;
  padding: var(--space-6);
}

.course-code {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: var(--space-3);
}

.course-title {
  color: white;
  margin-bottom: var(--space-2);
  font-size: var(--text-xl);
}

.course-standard {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-sm);
}

.course-card-body {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-description {
  color: var(--muted);
  margin-bottom: var(--space-6);
  flex: 1;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.course-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--muted);
}

.course-meta-item i {
  color: var(--brand-2);
}

.course-outcomes {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-6);
}

.course-outcomes li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  color: var(--muted);
  font-size: var(--text-sm);
}

.course-outcomes li::before {
  content: "✓";
  color: var(--success);
  font-weight: bold;
  flex-shrink: 0;
}

/* ==========================================
   TABLE STYLES
   ========================================== */

.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.table th {
  background: var(--surface);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: var(--ink);
  padding: var(--space-4);
  text-align: left;
  border-bottom: 2px solid var(--border);
  font-size: var(--text-sm);
}

.table td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.table tbody tr:hover {
  background-color: var(--surface);
}

/* ==========================================
   LINK CARD GRID (Related Resources)
   ========================================== */

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
}

.link-card {
  display: grid;
  grid-template-columns: 44px 1fr 20px;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

.link-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-dark);
  text-decoration: none;
}

.link-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-lighter);
  color: var(--brand);
  font-size: 1.1rem;
}

.link-card .title {
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.link-card .desc {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
}

.link-card .chevron {
  color: var(--border-dark);
}

/* ==========================================
   EXAM SUMMARY CARDS
   ========================================== */

.exam-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 992px) {
  .exam-summary {
    grid-template-columns: 1fr 1fr;
  }
}

.summary-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: var(--space-5);
}

.summary-table th {
  width: 42%;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
}

.btn-soft {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-soft:hover {
  background: #fff;
  border-color: var(--border-dark);
}

/* ==========================================
   ACCORDION COMPONENT
   ========================================== */

.accordion {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  background: white;
  border: none;
  width: 100%;
  padding: var(--space-5);
  text-align: left;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition);
}

.accordion-header:hover {
  background: var(--surface);
}

.accordion-header[aria-expanded="true"] {
  background: var(--brand-lighter);
  color: var(--brand);
}

.accordion-icon {
  transition: transform var(--transition);
}

.accordion-header[aria-expanded="true"] .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  padding: var(--space-6);
  background: white;
  border-top: 1px solid var(--border);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), opacity var(--transition);
}

/* ==========================================
   TESTIMONIAL COMPONENT
   ========================================== */

.testimonial {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: var(--space-4);
  left: var(--space-6);
  font-size: 4rem;
  color: var(--brand-lighter);
  font-family: serif;
  line-height: 1;
}

.testimonial-content {
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--muted);
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--brand-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-weight: bold;
}

.testimonial-details h5 {
  margin: 0 0 var(--space-1);
  font-size: var(--text-base);
}

.testimonial-details p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
}

/* ==========================================
   FACULTY COMPONENT
   ========================================== */

.faculty-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
}

.faculty-initials {
  color: white;
  font-size: var(--text-xl);
  font-weight: 700;
  font-family: "Poppins", sans-serif;
}

.faculty-credentials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}

.faculty-credentials .badge {
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius);
  font-weight: 500;
}

.faculty-stats {
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

/* ==========================================
   STICKY CTA
   ========================================== */

.sticky-cta {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 999;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition);
}

.sticky-cta.active {
  transform: translateY(0);
  opacity: 1;
}

.sticky-cta .btn {
  border-radius: var(--radius-full);
  padding: var(--space-4) var(--space-6);
  box-shadow: var(--shadow-xl);
}

/* ==========================================
   BACK TO TOP
   ========================================== */

.back-to-top {
  position: fixed;
  bottom: var(--space-6);
  left: var(--space-6);
  width: 50px;
  height: 50px;
  background: var(--brand);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition);
  z-index: 998;
}

.back-to-top.active {
  transform: translateY(0);
  opacity: 1;
}

.back-to-top:hover {
  background: var(--brand-2);
  transform: translateY(-2px);
}

/* ==========================================
   BREADCRUMB
   ========================================== */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) 0;
  font-size: var(--text-sm);
}

.breadcrumb-item {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb-item:hover {
  color: var(--brand);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--ink);
  font-weight: 500;
}

.breadcrumb-separator {
  color: var(--border-dark);
}

/* ==========================================
   SKIP LINK (ACCESSIBILITY)
   ========================================== */

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--brand);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: var(--radius);
  z-index: 1000;
  transition: all var(--transition);
}

.skip-link:focus {
  top: 6px;
  color: white;
  text-decoration: none;
}

/* ==========================================
   MODAL COMPONENT
   ========================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1060;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  margin: 0;
  font-size: var(--text-xl);
}

.modal-close {
  background: none;
  border: none;
  font-size: var(--text-xl);
  cursor: pointer;
  color: var(--muted);
  padding: var(--space-2);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.modal-close:hover {
  background: var(--surface);
  color: var(--ink);
}

.modal-body {
  padding: var(--space-6);
}

.modal-footer {
  padding: var(--space-6);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
}

/* ==========================================
   FORM COMPONENTS
   ========================================== */

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: var(--ink);
}

.form-control {
  width: 100%;
  padding: var(--space-3);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--text-base);
  transition: all var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.form-control:invalid {
  border-color: var(--danger);
}

.form-text {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-top: var(--space-1);
}

.form-error {
  font-size: var(--text-sm);
  color: var(--danger);
  margin-top: var(--space-1);
}

/* ==========================================
   ALERT COMPONENT
   ========================================== */

.alert {
  padding: var(--space-4);
  border-radius: var(--radius);
  margin-bottom: var(--space-4);
  border-left: 4px solid;
}

.alert-info {
  background: #eff6ff;
  border-color: var(--brand);
  color: #1e40af;
}

.alert-success {
  background: #ecfdf5;
  border-color: var(--success);
  color: #047857;
}

.alert-warning {
  background: #fffbeb;
  border-color: var(--warning);
  color: #92400e;
}

.alert-danger {
  background: #fef2f2;
  border-color: var(--danger);
  color: #b91c1c;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

/* Spacing */
.m-0 {
  margin: 0;
}
.mt-0 {
  margin-top: 0;
}
.mb-0 {
  margin-bottom: 0;
}
.mt-4 {
  margin-top: var(--space-4);
}
.mb-4 {
  margin-bottom: var(--space-4);
}
.mt-8 {
  margin-top: var(--space-8);
}
.mb-8 {
  margin-bottom: var(--space-8);
}

.p-0 {
  padding: 0;
}
.pt-0 {
  padding-top: 0;
}
.pb-0 {
  padding-bottom: 0;
}
.pt-4 {
  padding-top: var(--space-4);
}
.pb-4 {
  padding-bottom: var(--space-4);
}

/* Text Alignment */
.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}

/* Display */
.d-none {
  display: none;
}
.d-block {
  display: block;
}
.d-flex {
  display: flex;
}
.d-grid {
  display: grid;
}

/* Flex utilities */
.flex-column {
  flex-direction: column;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.align-center {
  align-items: center;
}
.gap-4 {
  gap: var(--space-4);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
  :root {
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
    --text-3xl: 1.5rem;
    --space-20: 3rem;
  }

  .hero {
    padding: var(--space-16) 0;
  }

  .section {
    padding: var(--space-16) 0;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .course-meta {
    flex-direction: column;
    gap: var(--space-2);
  }

  .megamenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    border-top: 1px solid var(--border);
  }

  .megamenu-content {
    padding: var(--space-4) 0;
  }

  .sticky-cta {
    bottom: var(--space-4);
    right: var(--space-4);
  }

  .back-to-top {
    bottom: var(--space-4);
    left: var(--space-4);
  }
}

/* ==========================================
   ADDITIONAL UTILITY CLASSES
   ========================================== */

.process-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
  border-radius: var(--radius-full);
  opacity: 0.6;
  z-index: 1;
}

.bg-gradient-primary {
  background: linear-gradient(
    135deg,
    var(--brand) 0%,
    var(--brand-2) 100%
  ) !important;
}

.rounded-4 {
  border-radius: var(--radius-xl) !important;
}

.lh-base {
  line-height: var(--leading-normal);
}

.fs-1 {
  font-size: var(--text-2xl);
}

.fs-6 {
  font-size: var(--text-base);
}

.g-4 > * {
  margin-bottom: var(--space-4);
}

.process-features {
  margin-top: var(--space-3);
}

/* ==========================================
   ENHANCED MEGAMENU STYLES
   ========================================== */

.mega-dropdown .megamenu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-6) 0;
  min-width: 800px;
  transform: translateY(10px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 1000;
}

.mega-dropdown:hover .megamenu {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.megamenu-section {
  margin-bottom: var(--space-4);
}

.megamenu-subheader {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================
   BSERI ISOLATED MASONRY GRID SYSTEM
   Complete CSS isolation with strong namespacing
   ========================================== */

/* Full-width masonry section that breaks out of container */
.bseri-masonry-fullwidth {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  overflow: hidden;
}

/* Container with max-width but full responsive behavior */
.bseri-masonry-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Main masonry grid using CSS Grid with areas */
.bseri-masonry {
  display: grid !important;
  grid-template-columns: repeat(12, 1fr) !important;
  grid-auto-rows: 100px !important;
  gap: 20px !important;
  grid-template-areas:
    "expert expert expert expert cert cert cert schedule schedule schedule courses courses"
    "expert expert expert expert cert cert cert schedule schedule schedule courses courses"
    "expert expert expert expert cert cert cert audit audit audit toolkit toolkit"
    "expert expert expert expert cert cert cert audit audit audit toolkit toolkit" !important;
}

/* Base card styling with complete isolation */
.masonry-card {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  transform: translateZ(0) !important;
  backface-visibility: hidden !important;
  will-change: transform, box-shadow !important;
}

.masonry-card:hover {
  transform: translateY(-12px) scale(1.03) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;
  z-index: 100 !important;
}

/* Grid area assignments */
.masonry-expert {
  grid-area: expert !important;
}

.masonry-certification {
  grid-area: cert !important;
}

.masonry-schedule {
  grid-area: schedule !important;
}

.masonry-courses {
  grid-area: courses !important;
}

.masonry-audit {
  grid-area: audit !important;
}

.masonry-toolkit {
  grid-area: toolkit !important;
}

/* Card content wrapper */
.masonry-card-content {
  height: 100% !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  position: relative !important;
  z-index: 2 !important;
}

/* Responsive breakpoints with different grid layouts */
@media (max-width: 1200px) {
  .bseri-masonry {
    grid-template-columns: repeat(8, 1fr) !important;
    grid-template-areas:
      "expert expert expert cert cert schedule schedule courses"
      "expert expert expert cert cert schedule schedule courses"
      "expert expert expert audit audit toolkit toolkit courses" !important;
  }
}

@media (max-width: 992px) {
  .bseri-masonry {
    grid-template-columns: repeat(6, 1fr) !important;
    grid-auto-rows: 120px !important;
    grid-template-areas:
      "expert expert expert cert cert cert"
      "expert expert expert schedule schedule courses"
      "audit audit audit toolkit toolkit courses" !important;
  }
}

@media (max-width: 768px) {
  .bseri-masonry-fullwidth {
    padding: 60px 0;
  }

  .bseri-masonry-wrapper {
    padding: 0 15px;
  }

  .bseri-masonry {
    grid-template-columns: repeat(4, 1fr) !important;
    grid-auto-rows: 140px !important;
    gap: 15px !important;
    grid-template-areas:
      "expert expert cert cert"
      "expert expert schedule courses"
      "audit audit toolkit toolkit" !important;
  }
}

@media (max-width: 480px) {
  .bseri-masonry {
    grid-template-columns: 1fr !important;
    grid-auto-rows: 200px !important;
    gap: 12px !important;
    grid-template-areas:
      "expert"
      "cert"
      "schedule"
      "courses"
      "audit"
      "toolkit" !important;
  }
}

/* Megamenu subheader styles */
.megamenu-subheader {
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--brand-lighter);
}

.megamenu-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  margin-bottom: var(--space-2);
}

.megamenu-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.megamenu-link:hover {
  text-decoration: none;
  color: inherit;
}

.megamenu-link:hover .megamenu-item {
  background: var(--brand-lighter);
  transform: translateX(4px);
}

.megamenu-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-lg);
  flex-shrink: 0;
}

.megamenu-text {
  flex: 1;
}

.megamenu-badge {
  flex-shrink: 0;
}

.bg-orange {
  background: #ff6b35;
}

.bg-gradient {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
}

/* ==========================================
   FLOATING CARD ANIMATIONS FOR STANDARDS SECTION
   ========================================== */

/* Floating card animation for Standards section */
@keyframes autoScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(
      calc(-320px * 9 - 36px * 9)
    ); /* 9 cards width + gap */
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

/* Pause animation on hover */
.standards-carousel-container:hover .standards-track {
  animation-play-state: paused;
}

/* Custom scrollbar for horizontal scroll */
.standards-carousel::-webkit-scrollbar {
  height: 8px;
}

.standards-carousel::-webkit-scrollbar-track {
  background: rgba(226, 232, 240, 0.3);
  border-radius: 4px;
}

.standards-carousel::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
  border-radius: 4px;
  transition: background 0.3s ease;
}

.standards-carousel::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
}

/* Responsive adjustments for standards cards */
@media (max-width: 768px) {
  .standard-card {
    min-width: 280px !important;
  }

  @keyframes autoScroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-280px * 9 - 16px * 9));
    }
  }
}

@media (max-width: 576px) {
  .standards-carousel {
    padding: 10px 0 20px 0 !important;
  }

  .standard-card {
    min-width: 260px !important;
    padding: 24px 20px !important;
  }

  .standards-track {
    gap: 1rem !important;
  }
}

/* ==========================================
   FOOTER STYLES
   ========================================== */

.footer-dark {
  background: #2d3748;
  color: #e2e8f0;
}

.footer-main {
  border-bottom: 1px solid #4a5568;
}

.footer-title {
  color: #f7fafc;
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--brand);
  border-radius: var(--radius-full);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-2);
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: var(--text-sm);
  transition: all var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--brand-light);
  text-decoration: none;
  transform: translateX(4px);
}

.footer-brand h5 {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}

.footer-cta {
  background: rgba(255, 255, 255, 0.05);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social .social-icons {
  display: flex;
  gap: var(--space-3);
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-lg);
  text-decoration: none;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.social-link.linkedin {
  background: #0077b5;
}

.social-link.instagram {
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
}

.social-link.instagram-alt {
  background: linear-gradient(45deg, #833ab4, #fd1d1d, #fcb045);
}

.social-link:hover {
  transform: translateY(-2px) scale(1.1);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-lg);
}

.footer-bottom {
  background: #1a202c;
}

.footer-legal a:hover,
.footer-verification a:hover {
  color: var(--brand-light) !important;
}

/* ==========================================
   REDUCED MOTION ACCESSIBILITY
   ========================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================
   HIGH CONTRAST MODE
   ========================================== */

@media (prefers-contrast: high) {
  :root {
    --border: #000000;
    --border-dark: #000000;
  }

  .btn {
    border: 2px solid;
  }

  .card {
    border: 1px solid var(--border);
  }
}

/* ==========================================
   PRINT STYLES
   ========================================== */

@media print {
  .navbar,
  .sticky-cta,
  .back-to-top,
  .btn,
  .megamenu {
    display: none !important;
  }

  .hero {
    background: none !important;
    color: black !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  h1,
  h2,
  h3 {
    page-break-after: avoid;
  }
}
