
/* ── CSS CUSTOM PROPERTIES ── */
:root {
  /* Primary Palette - Vibrant & Bright */
  --primary: #0d47a1;
  --primary-light: #1565c0;
  --accent: #ff9800;
  --accent-light: #ffb74d;
  --accent-dark: #f57c00;

  /* Secondary - Vivid Colors */
  --emerald: #00e676;
  --sky: #0277bd;
  --violet: #7c4dff;
  --rose: #ff4081;

  /* Neutrals - Balanced */
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #eeeeee;
  --gray-300: #e0e0e0;
  --gray-400: #bdbdbd;
  --gray-500: #9e9e9e;
  --gray-600: #757575;
  --gray-700: #616161;
  --gray-800: #424242;
  --gray-900: #212121;

  /* Gradients - Minimal */
  --grad-hero: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
  --grad-accent: linear-gradient(135deg, #ff9800, #f57c00);
  --grad-card: #ffffff;
  --grad-emerald: #00c853;
  --grad-sky: #0277bd;
  --grad-blue-glow: none;

  /* Shadows - Very Subtle */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 2px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-xl: 0 6px 20px rgba(0,0,0,0.15);
  --shadow-glow: none;

  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Inter', system-ui, sans-serif;

  /* Spacing */
  --section-py: 80px;
  --container-max: 1200px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── RESET & BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  color: #424242;
  background: #fafafa;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s var(--ease);
}

ul, ol {
  list-style: none;
}

/* ── CONTAINER ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── SECTION ── */
.section {
  padding: var(--section-py) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f5f5f5;
  color: #1565c0;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  border: 1px solid #eeeeee;
}

.section-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  color: #424242;
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.section-subtitle {
  font-size: 16px;
  color: #1565c0;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease);
}

.btn:hover::after {
  transform: translateX(100%);
}

.btn-primary {
  background: #ff9800;
  color: var(--white);
  box-shadow: 0 2px 6px rgba(255,152,0,0.3);
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,152,0,0.4);
  background: #f57c00;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-3px);
}

.btn-dark {
  background: linear-gradient(135deg, #1a1f3a, #2d3561);
  color: var(--white);
  box-shadow: 0 6px 25px rgba(26,31,58,0.4);
}

.btn-dark:hover {
  background: linear-gradient(135deg, #2d3561, #3d4d7a);
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(26,31,58,0.5);
}

.btn-sm {
  padding: 9px 20px;
  font-size: 13px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}

/* ── TOP BAR ── */
.top-bar {
  background: var(--primary);
  color: rgba(255,255,255,0.8);
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-contact {
  display: flex;
  gap: 24px;
  align-items: center;
}

.top-bar-contact a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
}

.top-bar-contact a:hover {
  color: var(--accent);
}

.top-bar-contact i {
  color: var(--accent);
  font-size: 14px;
}

/* ── NAVIGATION ── */
.site-nav {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.3s var(--ease);
  border-bottom: 1px solid #eeeeee;
}

.site-nav.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border-bottom-color: #e0e0e0;
  background: #ffffff;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}

.nav-brand img.nav-logo {
  height: 90px;
  object-fit: contain;
  transition: transform 0.3s var(--ease);
  max-width: 140px;
  width: auto;
  border: none;
  outline: none;
  display: block;
}

.nav-brand img.nav-logo:first-child {
  position: relative;
  z-index: 1;
}

.nav-brand img.nav-logo:last-child {
  position: absolute;
  left: 80px;
  z-index: 2;
  height: 110px;
  max-width: 200px;
}

.nav-brand img.nav-logo:hover {
  transform: scale(1.05);
}

.nav-brand:hover img.nav-logo {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #0d47a1;
  border-radius: var(--radius-sm);
  transition: all 0.25s var(--ease);
  position: relative;
}

.nav-link i {
  font-size: 16px;
  color: var(--accent);
}

.nav-link:hover {
  color: #01579b;
  background: var(--gray-100);
}

.nav-link.active {
  color: #01579b;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s var(--ease);
  z-index: 100;
  border: 1px solid var(--gray-200);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease);
}

.nav-dropdown-item i {
  font-size: 16px;
  color: var(--accent);
  width: 20px;
  text-align: center;
}

.nav-dropdown-item:hover {
  background: var(--gray-100);
  color: var(--primary);
  padding-left: 18px;
}

.nav-cta {
  margin-left: 12px;
}

.nav-cta .btn {
  padding: 10px 20px;
  font-size: 13px;
}

/* Mobile Top Call */
.mobile-top-call { display: none !important; }
.mobile-nav-wrapper { display: none; }

@keyframes pulse-call {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@media (max-width: 768px) {
  .mobile-nav-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .mobile-top-call {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #059669; /* Default green, can be overridden inline */
    color: white;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(5,150,105,0.3);
    animation: pulse-call 2s infinite;
  }
  #floating-call-btn { display: none !important; }
  #sticky-call-bar { display: block !important; }
}
@media (min-width: 769px) {
  #floating-call-btn { display: block !important; }
  #sticky-call-bar { display: none !important; }
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── HERO SECTION ── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: 
    linear-gradient(135deg, #5a6fd8 0%, #6b5b95 25%, #d084e8 50%, #4a9fe5 75%, #00d4e0 100%);
  background-size: 400% 400%;
  animation: gradientWave 20s ease infinite;
  overflow: hidden;
}

@keyframes gradientWave {
  0% { background-position: 0% 50%; }
  25% { background-position: 50% 100%; }
  50% { background-position: 100% 50%; }
  75% { background-position: 50% 0%; }
  100% { background-position: 0% 50%; }
}

.hero::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255,152,0,0.2) 0%, transparent 25%),
    radial-gradient(circle at 80% 80%, rgba(255,64,129,0.15) 0%, transparent 25%),
    radial-gradient(circle at 40% 20%, rgba(33,150,243,0.15) 0%, transparent 25%),
    radial-gradient(circle at 60% 70%, rgba(156,39,176,0.15) 0%, transparent 25%);
  animation: rotate 30s linear infinite;
  z-index: 1;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0px, transparent 1px, transparent 40px, rgba(255,255,255,0.03) 41px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0px, transparent 1px, transparent 40px, rgba(255,255,255,0.03) 41px),
    linear-gradient(90deg, rgba(255,152,0,0.08) 0%, transparent 50%, rgba(33,150,243,0.08) 100%);
  z-index: 2;
  animation: gridSlide 15s linear infinite;
}

@keyframes gridSlide {
  0% { background-position: 0 0, 0 0, 0 0; }
  100% { background-position: 40px 40px, 40px 40px, 100% 0; }
}

.hero-dots {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle, rgba(255,255,255,0.4) 2px, transparent 2px),
    radial-gradient(circle, rgba(255,152,0,0.3) 1px, transparent 1px),
    radial-gradient(circle, rgba(33,150,243,0.3) 1px, transparent 1px);
  background-size: 100px 100px, 150px 150px, 80px 80px;
  background-position: 0 0, 50px 50px, 25px 75px;
  z-index: 3;
  animation: dotsFloat 25s ease-in-out infinite;
}

@keyframes dotsFloat {
  0%, 100% { 
    background-position: 0 0, 50px 50px, 25px 75px;
    opacity: 0.4;
  }
  50% { 
    background-position: 100px 100px, 150px 150px, 125px 175px;
    opacity: 0.8;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
}

.hero-text {
  color: var(--white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: linear-gradient(135deg, rgba(255,152,0,0.25), rgba(255,87,34,0.25));
  border: 2px solid rgba(255,152,0,0.4);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(255,152,0,0.3);
}

.hero-badge i {
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.hero-title {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-title .highlight {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat-item {
  text-align: left;
}

.hero-stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

/* Hero Lead Form (Desktop Only) */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-lead-form {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  animation: formFloat 6s ease-in-out infinite;
}

@keyframes formFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.hero-form-header {
  text-align: center;
  margin-bottom: 24px;
}

.hero-form-icon {
  width: 60px;
  height: 60px;
  background: var(--grad-accent);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 32px;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(255,152,0,0.3);
}

.hero-form-header h3 {
  font-size: 22px;
  font-weight: 800;
  color: #333333;
  margin-bottom: 6px;
}

.hero-form-header p {
  font-size: 13px;
  color: rgba(0,0,0,0.6);
  margin: 0;
}

.hero-form .form-group {
  margin-bottom: 14px;
}

.hero-form .form-group input,
.hero-form .form-group select {
  width: 100%;
  padding: 13px 16px;
  font-size: 14px;
  font-family: var(--font-family);
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-md);
  color: #333333;
  outline: none;
  transition: all 0.3s var(--ease);
}

.hero-form .form-group input::placeholder {
  color: rgba(0,0,0,0.4);
}

.hero-form .form-group input:focus,
.hero-form .form-group select:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,1);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.2);
}

.hero-form .form-group select {
  cursor: pointer;
  color: #333333;
}

.hero-form .form-group select option {
  background: #ffffff;
  color: #333333;
}

.hero-form .btn {
  margin-top: 6px;
}

.hero-form-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 11px;
  color: rgba(0,0,0,0.6);
}

.hero-form-trust i {
  color: var(--emerald);
  font-size: 14px;
}

/* ── SEARCH BAR ── */
.search-section {
  margin-top: -40px;
  position: relative;
  z-index: 20;
  padding-bottom: 60px;
}

.search-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  box-shadow: var(--shadow-xl);
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--gray-200);
}

.search-card input,
.search-card select {
  flex: 1;
  padding: 14px 18px;
  font-size: 15px;
  font-family: var(--font-family);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--gray-50);
  color: var(--gray-700);
  transition: all 0.3s var(--ease);
  outline: none;
}

.search-card input:focus,
.search-card select:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(245,158,11,0.1);
}

.search-card .btn {
  padding: 14px 28px;
  flex-shrink: 0;
}

/* ── COLLEGE CARDS ── */
.college-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.college-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #eeeeee;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.college-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,152,0,0.1), transparent);
  transition: left 0.6s;
}

.college-card:hover::before {
  left: 100%;
}

.college-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  border-color: #bdbdbd;
}

.college-card-img {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.college-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.college-card:hover .college-card-img img {
  transform: scale(1.08);
}

.college-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--grad-accent);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(255,152,0,0.4);
}

.college-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.college-card-name {
  font-size: 16px;
  font-weight: 600;
  color: #424242;
  margin-bottom: 6px;
  line-height: 1.3;
}

.college-card-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #757575;
  margin-bottom: 12px;
}

.college-card-location i {
  color: var(--accent);
  font-size: 14px;
}

.college-card-desc {
  font-size: 13px;
  color: #616161;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.college-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--gray-200);
  margin-top: auto;
  gap: 8px;
  flex-wrap: wrap;
}

.college-card-approvals {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.college-card-approvals .approval-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 0.3s var(--ease);
}

.college-card-approvals .approval-tag img {
  height: 16px;
  width: auto;
  object-fit: contain;
}

.college-card:hover .approval-tag {
  border-color: var(--gray-300);
}


.college-card-footer .btn {
  padding: 8px 18px;
  font-size: 12px;
}

/* ── WHY CHOOSE US ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  border: 1px solid #eeeeee;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2196f3, #00d4ff);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: #bdbdbd;
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: #f5f5f5;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
  color: #ff9800;
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}

.feature-card:hover .feature-icon {
  background: #ff9800;
  color: var(--white);
  transform: scale(1.05);
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: #424242;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: #616161;
  line-height: 1.6;
}

/* ── COURSE CARDS ── */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.course-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  border: 1px solid var(--gray-200);
  cursor: pointer;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.course-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 24px;
  color: var(--white);
}

.course-icon.eng { background: var(--grad-sky); }
.course-icon.med { background: linear-gradient(135deg, #dc2626, #f43f5e); }
.course-icon.mba { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }
.course-icon.law { background: var(--grad-emerald); }
.course-icon.arch { background: linear-gradient(135deg, #0d9488, #14b8a6); }
.course-icon.sci { background: linear-gradient(135deg, #ea580c, #f97316); }

.course-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.course-card p {
  font-size: 13px;
  color: var(--gray-500);
}

/* ── TESTIMONIALS ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 2px solid var(--gray-200);
  transition: all 0.4s var(--ease);
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(255,152,0,0.25);
  border-color: var(--accent-light);
}

.testimonial-card .stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
}

.testimonial-card .stars i {
  color: var(--accent);
  font-size: 16px;
}

.testimonial-card blockquote {
  font-size: 15px;
  color: #616161;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.testimonial-name {
  font-size: 14px;
  font-weight: 700;
  color: #0d47a1;
}

.testimonial-course {
  font-size: 12px;
  color: #757575;
}

/* ── LEAD FORM ── */
.lead-section {
  background: var(--primary);
  position: relative;
  overflow: hidden;
}

.lead-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(245,158,11,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(14,165,233,0.08) 0%, transparent 50%);
}

.lead-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.lead-text {
  color: var(--white);
}

.lead-text h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.lead-text p {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 24px;
}

.lead-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lead-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}

.lead-features li i {
  color: var(--accent);
  font-size: 18px;
}

.lead-form {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: 36px;
}

.lead-form h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.lead-form .form-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  font-size: 14px;
  font-family: var(--font-family);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  color: var(--white);
  outline: none;
  transition: all 0.3s var(--ease);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
}

.form-group select option {
  background: var(--primary);
  color: var(--white);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.lead-form .btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  margin-top: 6px;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 50px;
}

.footer-brand img {
  height: 85px;
  margin-bottom: 16px;
  max-width: 280px;
  width: auto;
}

.footer-brand-text {
  font-size: 42px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 1px;
  font-family: var(--font-display);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  transition: all 0.3s var(--ease);
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.footer-heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 22px;
  position: relative;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s var(--ease);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 6px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
}

.footer-contact-item i {
  color: var(--accent);
  font-size: 16px;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.5);
}

.footer-contact-item a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.4);
}

.footer-bottom-links a:hover {
  color: var(--accent);
}

/* ── WHATSAPP FLOAT ── */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  animation: whatsappFloat 3s ease-in-out infinite;
}

@keyframes whatsappFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.whatsapp-fab a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #25d366;
  color: var(--white);
  font-size: 26px;
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  transition: all 0.3s var(--ease);
  position: relative;
  animation: whatsappPulse 2s ease-in-out infinite;
}

@keyframes whatsappPulse {
  0%, 100% {
    box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  }
  50% {
    box-shadow: 0 6px 24px rgba(37,211,102,0.7), 0 0 0 10px rgba(37,211,102,0.1), 0 0 0 20px rgba(37,211,102,0.05);
  }
}

.whatsapp-fab a::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  background: linear-gradient(45deg, #25d366, #128c7e);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
  animation: whatsappRotate 3s linear infinite;
}

@keyframes whatsappRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.whatsapp-fab a:hover {
  transform: translateY(-4px) scale(1.1) rotate(5deg);
  box-shadow: 0 10px 30px rgba(37,211,102,0.6);
  animation: whatsappShake 0.5s ease-in-out;
}

@keyframes whatsappShake {
  0%, 100% {
    transform: translateY(-4px) scale(1.1) rotate(0deg);
  }
  25% {
    transform: translateY(-4px) scale(1.1) rotate(-5deg);
  }
  75% {
    transform: translateY(-4px) scale(1.1) rotate(5deg);
  }
}

.whatsapp-fab a:hover::before {
  opacity: 1;
}

/* ── PAGE HEADER ── */
.page-hero {
  background: var(--grad-hero);
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 30px 30px;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.page-hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 13px;
}

.breadcrumb-nav a {
  color: rgba(255,255,255,0.5);
}

.breadcrumb-nav a:hover {
  color: var(--accent);
}

.breadcrumb-nav span {
  color: var(--accent);
}

/* ── COLLEGE DETAIL PAGE ── */
.detail-section {
  padding: 50px 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
}

.detail-main {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px;
  border: 1px solid var(--gray-200);
}

.detail-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.sidebar-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 28px;
  border: 1px solid var(--gray-200);
  margin-bottom: 20px;
}

.detail-heading {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-heading i {
  color: var(--accent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0;
}

.stat-card {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  text-align: center;
  border: 1px solid var(--gray-200);
}

.stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-dark);
  margin-bottom: 2px;
}

.stat-label {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
}

.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.course-tag {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  transition: all 0.3s var(--ease);
}

.course-tag:hover {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}
/* ── RELATED COLLEGES SIDEBAR (Blog-Style) ── */
.related-colleges-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.related-college-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease);
  text-decoration: none;
}

.related-college-link:hover {
  background: var(--white);
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(245,158,11,0.1);
  transform: translateX(4px);
}

.related-college-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.related-college-info strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-college-info span {
  font-size: 11px;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 3px;
}

.related-college-info span i {
  font-size: 10px;
  color: var(--accent);
}

.related-arrow {
  font-size: 18px;
  color: var(--gray-300);
  flex-shrink: 0;
  transition: all 0.3s var(--ease);
}

.related-college-link:hover .related-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* ── FORM PAGES ── */
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
}

.contact-form-card .form-group input,
.contact-form-card .form-group select,
.contact-form-card .form-group textarea {
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  color: var(--gray-700);
  border-radius: var(--radius-md);
}

.contact-form-card .form-group input::placeholder,
.contact-form-card .form-group textarea::placeholder {
  color: var(--gray-400);
}

.contact-form-card .form-group input:focus,
.contact-form-card .form-group select:focus,
.contact-form-card .form-group textarea:focus {
  border-color: var(--accent);
  background: var(--white);
}

/* ── LEGAL PAGES ── */
.legal-content {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  border: 1px solid var(--gray-200);
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin: 32px 0 12px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal-content ul li {
  list-style: disc;
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 6px;
}

/* ── SCROLL ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s var(--ease);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.7s var(--ease);
}

.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.7s var(--ease);
}

.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── RESPONSIVE ── */

/* ── TABLET (max-width: 991px) ── */
@media (max-width: 991px) {
  .top-bar { 
    font-size: 11px;
    padding: 6px 0;
  }

  .top-bar-contact {
    gap: 12px;
  }

  .top-bar-contact a {
    font-size: 11px;
  }

  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 24px 40px;
    gap: 0;
    box-shadow: -8px 0 30px rgba(0,0,0,0.1);
    transition: right 0.35s var(--ease);
    overflow-y: auto;
    z-index: 1000;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 15px;
    border-radius: 0;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    opacity: 1;
    visibility: visible;
    display: none;
    margin: 4px 0;
    padding: 4px;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .nav-cta {
    margin: 16px 0 0;
  }

  .nav-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 0;
  }

  .hero-title { font-size: 32px; }
  .hero-subtitle { margin: 0 auto 32px; }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
    gap: 24px;
  }

  .hero-stat-item { text-align: center; }

  .hero-visual { display: none; }

  .search-card {
    flex-direction: column;
  }

  .lead-content {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-title {
    font-size: clamp(24px, 4vw, 34px);
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── SMALL TABLET / LARGE PHONE (max-width: 768px) ── */
@media (max-width: 768px) {
  .top-bar {
    font-size: 10px;
    padding: 5px 0;
  }

  .top-bar-inner {
    flex-direction: row;
    gap: 8px;
    justify-content: space-between;
  }

  .top-bar-contact {
    gap: 6px;
    flex-wrap: nowrap;
  }

  .top-bar-contact a {
    font-size: 10px;
    gap: 3px;
    white-space: nowrap;
  }

  .top-bar-contact i {
    font-size: 12px;
  }

  /* Hero section - Modern education-themed background for mobile */
  .hero {
    background: 
      linear-gradient(135deg, rgba(13,71,161,0.95) 0%, rgba(21,101,192,0.9) 50%, rgba(30,136,229,0.95) 100%),
      repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,0.03) 35px, rgba(255,255,255,0.03) 70px),
      linear-gradient(to bottom, #0d47a1, #1565c0) !important;
  }

  .hero-grid-bg {
    background-image:
      radial-gradient(circle at 20% 30%, rgba(255,152,0,0.15) 0%, transparent 50%),
      radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 0%, transparent 50%),
      radial-gradient(circle at 50% 50%, rgba(33,150,243,0.2) 0%, transparent 60%) !important;
  }

  .hero-dots {
    background-image: 
      radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px),
      radial-gradient(circle, rgba(255,152,0,0.1) 1px, transparent 1px) !important;
    background-size: 40px 40px, 60px 60px !important;
    background-position: 0 0, 30px 30px !important;
  }

  .container {
    padding: 0 16px;
  }

  .hero {
    min-height: auto;
    padding: 20px 0;
  }

  .hero-content {
    padding: 30px 0;
    gap: 24px;
  }

  .hero-title {
    font-size: 28px;
    letter-spacing: -0.5px;
  }

  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
  }

  .hero-stat-number {
    font-size: 22px;
  }

  .hero-stat-label {
    font-size: 11px;
  }

  .search-section {
    margin-top: -24px;
    padding-bottom: 40px;
  }

  .search-card {
    padding: 16px;
    border-radius: var(--radius-lg);
  }

  .search-card input,
  .search-card select {
    padding: 12px 14px;
    font-size: 14px;
  }

  .search-card .btn {
    width: 100%;
    padding: 12px;
  }

  .section-header {
    margin-bottom: 30px;
  }

  .section-title {
    font-size: 24px;
  }

  .section-subtitle {
    font-size: 14px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 24px 20px;
  }

  .college-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .college-card-img {
    height: 160px;
  }

  .college-card-body {
    padding: 16px;
  }

  .college-card-name {
    font-size: 15px;
  }

  .college-card-footer {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .college-card-footer .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .testimonial-card {
    padding: 20px;
  }

  /* Detail / College pages */
  .page-hero-content h1 {
    font-size: 22px;
    line-height: 1.3;
  }

  .page-hero-content p {
    font-size: 13px;
  }

  .breadcrumb-nav {
    font-size: 12px;
  }

  .detail-heading {
    font-size: 17px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
  }

  .stat-card {
    padding: 14px 8px;
  }

  .stat-value {
    font-size: 16px;
  }

  .stat-label {
    font-size: 10px;
  }

  .course-tags {
    gap: 6px;
  }

  .course-tag {
    font-size: 11px;
    padding: 5px 10px;
  }

  /* Sidebar on mobile */
  .sidebar-card {
    padding: 20px;
  }

  .sidebar-card h3 {
    font-size: 16px !important;
  }

  .sidebar-card .btn {
    font-size: 13px;
    padding: 11px 16px;
  }

  /* Form inputs */
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px 14px;
    font-size: 14px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Lead section */
  .lead-form {
    padding: 24px 20px;
  }

  .lead-text h2 {
    font-size: 24px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-brand img {
    height: 72px;
  }

  .footer-heading {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .footer-links li a {
    font-size: 13px;
    padding: 4px 0;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding-top: 16px;
  }

  .footer-bottom p,
  .footer-bottom-links a {
    font-size: 12px;
  }

  /* Legal pages */
  .legal-content {
    padding: 24px 16px;
  }

  .legal-content h2 {
    font-size: 18px;
  }

  .legal-content p,
  .legal-content ul li {
    font-size: 14px;
  }

  /* Approval tags */
  .college-card-approvals {
    gap: 4px;
  }

  .college-card-approvals .approval-tag {
    font-size: 9px;
    padding: 2px 6px;
  }

  .college-card-approvals .approval-tag img {
    height: 14px;
  }

  /* WhatsApp FAB */
  .whatsapp-fab a {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }
}

/* ── PHONE (max-width: 576px) ── */
@media (max-width: 576px) {
  :root {
    --section-py: 40px;
  }

  .container {
    padding: 0 14px;
  }

  .hero {
    min-height: auto;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .hero-badge {
    font-size: 11px;
    padding: 6px 14px;
    margin-bottom: 20px;
  }

  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 20px;
  }

  .hero-stat-number {
    font-size: 20px;
  }

  .hero-stat-label {
    font-size: 10px;
  }

  .search-card {
    padding: 14px;
    border-radius: var(--radius-md);
  }

  .btn {
    font-size: 13px;
    padding: 11px 20px;
  }

  .btn-lg {
    padding: 13px 24px;
    font-size: 14px;
  }

  /* Page hero for college pages */
  .page-hero {
    padding: 20px 0;
  }

  .page-hero-content h1 {
    font-size: 20px;
    line-height: 1.3;
    word-break: break-word;
  }

  .page-hero-content p {
    font-size: 12px;
    line-height: 1.5;
  }

  .breadcrumb-nav {
    font-size: 11px;
  }

  /* Stats grid - keep 3 columns but smaller */
  .stats-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
  }

  .stat-card {
    padding: 12px 6px;
    border-radius: 8px;
  }

  .stat-value {
    font-size: 14px;
    word-break: break-word;
  }

  .stat-label {
    font-size: 9px;
  }

  /* Detail sections */
  .detail-main {
    padding: 0;
  }

  .detail-heading {
    font-size: 16px;
    margin-bottom: 12px;
  }

  /* College image */
  .detail-main img {
    height: 200px !important;
    border-radius: 10px !important;
  }

  /* Courses */
  .course-tags {
    gap: 5px;
  }

  .course-tag {
    font-size: 11px;
    padding: 4px 8px;
  }

  /* Admission process steps */
  .detail-main [style*="display:flex"][style*="gap:14px"] {
    padding: 12px !important;
  }

  /* Facilities grid - 2 columns on phone */
  .detail-main [style*="grid-template-columns:repeat(auto-fit,minmax(180px"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }

  /* Contact form */
  .contact-form-card {
    padding: 20px;
  }

  /* Popup */
  .popup-card {
    max-width: 100%;
    margin: 10px;
    border-radius: var(--radius-lg);
  }

  .popup-header {
    padding: 20px 18px;
  }

  .popup-header h3 {
    font-size: 17px;
  }

  .popup-header p {
    font-size: 12px;
  }

  .popup-body {
    padding: 18px;
  }

  .popup-close {
    width: 32px;
    height: 32px;
    font-size: 18px;
    top: 12px;
    right: 12px;
  }

  /* Nav brand */
  .nav-brand img.nav-logo {
    max-width: 100px;
  }

  .nav-brand img.nav-logo:first-child {
    height: 63px;
  }

  .nav-brand img.nav-logo:last-child {
    height: 77px;
    left: 55px;
    max-width: 140px;
  }

  .nav-inner {
    padding: 0;
  }

  /* Section Padding */
  .section {
    padding: 40px 0;
  }

  .section-badge {
    font-size: 11px;
    padding: 5px 12px;
  }

  .section-title {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .section-subtitle {
    font-size: 13px;
  }

  /* Feature cards */
  .feature-card {
    padding: 20px 16px;
  }

  .feature-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .feature-card h3 {
    font-size: 16px;
  }

  .feature-card p {
    font-size: 13px;
  }

  /* Testimonial */
  .testimonial-card {
    padding: 18px;
  }
}

/* ── VERY SMALL PHONE (max-width: 400px) ── */
@media (max-width: 400px) {
  .container {
    padding: 0 12px;
  }

  .top-bar {
    font-size: 9px;
    padding: 5px 0;
  }

  .top-bar-inner {
    flex-direction: row;
    justify-content: space-between;
    gap: 6px;
  }

  .top-bar-contact {
    gap: 4px;
  }

  .top-bar-contact a {
    font-size: 9px;
    gap: 2px;
  }

  .top-bar-contact i {
    font-size: 10px;
  }

  .hero-content {
    padding: 24px 0;
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-subtitle {
    font-size: 13px;
  }

  .hero-actions .btn {
    width: 100%;
    font-size: 13px;
    padding: 12px 16px;
  }

  .hero-stats {
    gap: 10px;
  }

  .hero-stat-number {
    font-size: 18px;
  }

  .page-hero-content h1 {
    font-size: 18px;
  }

  .page-hero-content p {
    font-size: 11px;
  }

  .section-title {
    font-size: 20px;
  }

  /* Stats even smaller */
  .stat-value {
    font-size: 13px;
  }

  .stat-label {
    font-size: 8px;
  }

  .stat-card {
    padding: 10px 4px;
  }

  /* Sidebar card */
  .sidebar-card {
    padding: 16px;
    border-radius: 10px;
  }

  .sidebar-card h3 {
    font-size: 14px !important;
    margin-bottom: 12px !important;
  }

  /* Detail main text */
  .detail-main p {
    font-size: 13px !important;
    line-height: 1.7 !important;
  }

  .detail-main li {
    font-size: 12px !important;
    line-height: 1.6 !important;
  }

  .detail-heading {
    font-size: 15px;
  }

  /* Form inputs smaller */
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px 12px;
    font-size: 13px;
  }

  /* Course tags wrap better */
  .course-tag {
    font-size: 10px;
    padding: 3px 7px;
  }

  /* Approval tags */
  .college-card-approvals .approval-tag {
    font-size: 8px;
    padding: 2px 5px;
  }

  .college-card-approvals .approval-tag img {
    height: 12px;
  }

  /* Footer */
  .footer-heading {
    font-size: 14px;
  }

  .footer-links li a {
    font-size: 12px;
  }

  .footer-contact-item {
    font-size: 12px;
  }

  /* Popup even smaller */
  .popup-header h3 {
    font-size: 15px;
  }

  .popup-header {
    padding: 16px 14px;
  }

  .popup-body {
    padding: 14px;
  }

  /* Breadcrumb */
  .breadcrumb-nav {
    font-size: 10px;
  }

  /* Related colleges */
  .related-college-info strong {
    font-size: 12px;
  }

  .related-college-info span {
    font-size: 10px;
  }

  .related-college-link {
    padding: 10px 12px;
  }

  /* Facilities grid */
  .detail-main [style*="grid-template-columns:repeat(auto-fit,minmax(180px"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 4px !important;
  }

  .detail-main [style*="grid-template-columns:repeat(auto-fit,minmax(180px"] > div {
    font-size: 11px !important;
    padding: 8px 10px !important;
  }
}

/* ── ULTRA SMALL PHONE (max-width: 320px) ── */
@media (max-width: 320px) {
  .container {
    padding: 0 10px;
  }

  .top-bar {
    font-size: 8px;
  }

  .top-bar-contact a {
    font-size: 8px;
    gap: 2px;
  }

  .top-bar-contact i {
    font-size: 9px;
  }

  .hero-title {
    font-size: 20px;
  }

  .hero-subtitle {
    font-size: 12px;
  }

  .page-hero-content h1 {
    font-size: 16px;
  }

  .section-title {
    font-size: 18px;
  }

  .stat-value {
    font-size: 12px;
  }

  .stat-label {
    font-size: 7px;
  }

  .btn {
    font-size: 12px;
    padding: 10px 14px;
  }

  .nav-brand img {
    height: 68px;
  }

  .detail-heading {
    font-size: 14px;
  }

  .sidebar-card h3 {
    font-size: 13px !important;
  }

  .popup-card {
    margin: 6px;
  }

  .popup-header h3 {
    font-size: 14px;
  }
}

/* ── PREVENT OVERFLOW ON ALL SIZES ── */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

* {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
}

/* ── SAFE TOUCH TARGETS ── */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 44px;
    min-width: 44px;
  }

  .nav-link {
    min-height: 44px;
  }

  .nav-dropdown-item {
    min-height: 44px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    min-height: 44px;
  }
}

/* ── POPUP MODAL ── */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s var(--ease);
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 480px;
  width: 100%;
  padding: 0;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
  transform: scale(0.85) translateY(30px);
  transition: all 0.4s var(--ease-bounce);
  overflow: hidden;
}

.popup-overlay.active .popup-card {
  transform: scale(1) translateY(0);
}

.popup-header {
  background: var(--grad-hero);
  padding: 28px 32px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.popup-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(245,158,11,0.15) 0%, transparent 60%);
}

.popup-header h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
  position: relative;
  z-index: 2;
}

/* Popup Icon Bounce Animation */
@keyframes popupIconBounce {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.05);
  }
}

/* Sidebar Icon Pulse Animation */
@keyframes sidebarIconPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 6px 20px rgba(255,152,0,0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255,152,0,0.6), 0 0 0 8px rgba(255,152,0,0.1);
  }
}
  position: relative;
  z-index: 2;
}

.popup-header p {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  position: relative;
  z-index: 2;
}

.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  z-index: 10;
}

.popup-close:hover {
  background: rgba(255,255,255,0.2);
  transform: rotate(90deg);
}

.popup-body {
  padding: 28px 32px 32px;
}

.popup-body .form-group input,
.popup-body .form-group select,
.popup-body .form-group textarea {
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  color: var(--gray-700);
}

.popup-body .form-group input::placeholder,
.popup-body .form-group textarea::placeholder {
  color: var(--gray-400);
}

.popup-body .form-group input:focus,
.popup-body .form-group select:focus,
.popup-body .form-group textarea:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(245,158,11,0.1);
}

.popup-body .form-group select option {
  background: var(--white);
  color: var(--gray-700);
}

.popup-body .btn {
  width: 100%;
  margin-top: 6px;
}

.popup-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--gray-400);
}

.popup-trust i {
  color: var(--emerald);
  font-size: 14px;
}

/* ── COLLEGE CARD APPROVAL BADGES ── */
@media (max-width: 576px) {
  .popup-card {
    max-width: 100%;
    margin: 10px;
  }
  .popup-header {
    padding: 22px 20px;
  }
  .popup-body {
    padding: 20px;
  }
  .popup-header h3 {
    font-size: 18px;
  }
}

/* ── UTILITIES ── */
.text-accent { color: var(--accent) !important; }
.text-primary { color: var(--primary) !important; }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-section { margin-top: var(--section-py); }
.bg-gray { background: var(--gray-50); }

/* FORCE APPROVAL BADGE SIZING FOR MOBILE AND DESKTOP */

.college-card-approvals .approval-tag img {
  height: 14px !important;
  max-width: 20px !important;
  width: auto !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}
.college-card-approvals .approval-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 3px 8px !important;
  font-size: 10px !important;
  height: auto !important;
  width: auto !important;
  flex: 0 0 auto !important;
}


/* ── APPLY NOW POPUP (Different Design) ── */
.apply-popup-card {
  max-width: 600px;
  border: 3px solid var(--accent);
}

.apply-popup-header {
  background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
  padding: 32px;
}

.apply-popup-header::before {
  background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.2) 0%, transparent 60%);
}

.apply-popup-header h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.apply-popup-header p {
  font-size: 14px;
  color: rgba(255,255,255,0.9);
}

.apply-popup-card .popup-body {
  padding: 32px;
  background: linear-gradient(to bottom, #ffffff 0%, #fff8f0 100%);
}

.apply-popup-card .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.apply-popup-card .form-group label i {
  color: var(--accent);
  margin-right: 6px;
}

.apply-popup-card .form-group input,
.apply-popup-card .form-group select,
.apply-popup-card .form-group textarea {
  background: var(--white);
  border: 2px solid var(--gray-300);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.apply-popup-card .form-group input:focus,
.apply-popup-card .form-group select:focus,
.apply-popup-card .form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255,152,0,0.1);
}

.apply-popup-card .btn-primary {
  background: var(--grad-accent);
  font-size: 16px;
  font-weight: 700;
  padding: 16px 32px;
  box-shadow: 0 8px 24px rgba(255,152,0,0.3);
}

.apply-popup-card .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255,152,0,0.4);
}

.apply-popup-card .popup-trust {
  background: rgba(255,152,0,0.1);
  border: 1px solid rgba(255,152,0,0.2);
}




/* ============================================================
   FORM NOTIFICATION SYSTEM (Cloudflare Compatible)
   ============================================================ */

.form-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  z-index: 10000;
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.3s var(--ease);
  max-width: 400px;
}

.form-notification.show {
  transform: translateX(0);
  opacity: 1;
}

.form-notification-success {
  border-left: 4px solid #00e676;
}

.form-notification-error {
  border-left: 4px solid #ff5252;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gray-700);
  font-size: 15px;
  font-weight: 500;
}

.notification-content i {
  font-size: 24px;
  flex-shrink: 0;
}

.form-notification-success .notification-content i {
  color: #00e676;
}

.form-notification-error .notification-content i {
  color: #ff5252;
}

@media (max-width: 768px) {
  .form-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

/* ── POPUP MODAL ── */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-modal {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: var(--radius-xl);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s var(--ease);
}

.popup-overlay.active .popup-modal {
  transform: scale(1) translateY(0);
}

.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  z-index: 10;
  color: var(--gray-700);
  font-size: 20px;
}

.popup-close:hover {
  background: var(--accent);
  color: var(--white);
  transform: rotate(90deg);
}

.popup-header {
  background: var(--grad-hero);
  padding: 32px 24px;
  text-align: center;
  color: var(--white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.popup-icon {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 40px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.popup-header h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--white);
}

.popup-header p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.popup-body {
  padding: 32px 24px;
}

.popup-form .form-group {
  margin-bottom: 16px;
}

.popup-form .form-group input,
.popup-form .form-group select,
.popup-form .form-group textarea {
  width: 100%;
  padding: 13px 16px;
  font-size: 14px;
  font-family: var(--font-family);
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  color: var(--gray-700);
  outline: none;
  transition: all 0.3s var(--ease);
}

.popup-form .form-group input::placeholder,
.popup-form .form-group textarea::placeholder {
  color: var(--gray-400);
}

.popup-form .form-group input:focus,
.popup-form .form-group select:focus,
.popup-form .form-group textarea:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.1);
}

.popup-form .btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  margin-top: 8px;
}

.popup-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--gray-500);
}

.popup-trust i {
  color: var(--emerald);
  font-size: 16px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .popup-modal {
    max-width: 95%;
    margin: 20px;
  }
  
  .popup-header {
    padding: 24px 20px;
  }
  
  .popup-body {
    padding: 24px 20px;
  }
  
  .popup-header h3 {
    font-size: 20px;
  }
}


/* ── ENTRANCE EXAM CARDS (COMPACT - COLLEGE CARD STYLE) ── */
.exam-card-compact {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #eeeeee;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.exam-card-compact::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,152,0,0.1), transparent);
  transition: left 0.6s;
}

.exam-card-compact:hover::before {
  left: 100%;
}

.exam-card-compact:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  border-color: #bdbdbd;
}

.exam-card-compact .exam-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.exam-card-compact .exam-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.exam-card-compact .exam-title-group {
  flex: 1;
}

.exam-card-compact .exam-title {
  font-size: 16px;
  font-weight: 600;
  color: #424242;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.exam-card-compact .exam-subtitle {
  font-size: 13px;
  color: #757575;
  margin: 0;
}

.exam-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.exam-quick-info {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}

.exam-quick-info span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #757575;
  font-weight: 500;
}

.exam-quick-info span i {
  color: var(--accent);
  font-size: 14px;
}

.exam-desc-short {
  font-size: 13px;
  color: #616161;
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.exam-card-compact .exam-card-actions {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-200);
  margin-top: auto;
}

.exam-card-compact .exam-card-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 9px 16px;
  font-size: 12px;
  white-space: nowrap;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .exam-card-compact {
    margin-bottom: 16px;
  }

  .exam-card-compact .exam-card-header {
    padding: 14px;
  }

  .exam-card-compact .exam-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .exam-card-compact .exam-title {
    font-size: 15px;
  }

  .exam-card-compact .exam-subtitle {
    font-size: 12px;
  }

  .exam-card-body {
    padding: 14px;
  }

  .exam-quick-info {
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .exam-quick-info span {
    font-size: 11px;
  }

  .exam-quick-info span i {
    font-size: 13px;
  }

  .exam-desc-short {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .exam-card-compact .exam-card-actions {
    padding-top: 10px;
    gap: 6px;
  }

  .exam-card-compact .exam-card-actions .btn {
    padding: 8px 12px;
    font-size: 11px;
  }
}


/* ── BUTTON OUTLINE PRIMARY ── */
.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13,71,161,0.3);
}

/* ── POPUP MODAL ── */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s var(--ease);
}

.popup-overlay.active .popup-content {
  transform: scale(1) translateY(0);
}

.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-100);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  font-size: 20px;
  color: var(--gray-600);
}

.popup-close:hover {
  background: var(--accent);
  color: var(--white);
  transform: rotate(90deg);
}

.popup-header {
  text-align: center;
  margin-bottom: 28px;
}

.popup-icon {
  width: 72px;
  height: 72px;
  background: var(--grad-accent);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 36px;
  color: var(--white);
  box-shadow: 0 6px 20px rgba(255,152,0,0.4);
}

.popup-header h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.popup-header p {
  font-size: 14px;
  color: var(--gray-500);
  margin: 0;
}

.popup-content .form-group {
  margin-bottom: 16px;
}

.popup-content .form-group input,
.popup-content .form-group select {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  font-family: var(--font-family);
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  color: var(--gray-700);
  transition: all 0.3s var(--ease);
  outline: none;
}

.popup-content .form-group input::placeholder {
  color: var(--gray-400);
}

.popup-content .form-group input:focus,
.popup-content .form-group select:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(255,152,0,0.1);
}

.popup-content .form-group 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='%23757575' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.popup-content .btn {
  margin-top: 8px;
}

@media (max-width: 768px) {
  .popup-content {
    padding: 28px 20px;
  }

  .popup-header h3 {
    font-size: 20px;
  }

  .popup-icon {
    width: 60px;
    height: 60px;
    font-size: 30px;
  }
}


/* ── MOBILE SPECIFIC OPTIMIZATIONS ── */
@media (max-width: 480px) {
  .exam-card-compact {
    margin-bottom: 14px;
  }

  .exam-card-compact .exam-card-header {
    padding: 12px;
  }

  .exam-card-compact .exam-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .exam-card-compact .exam-title {
    font-size: 14px;
  }

  .exam-card-compact .exam-subtitle {
    font-size: 11px;
  }

  .exam-card-body {
    padding: 12px;
  }

  .exam-quick-info {
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .exam-quick-info span {
    font-size: 10px;
    padding: 4px 6px;
  }

  .exam-quick-info span i {
    font-size: 11px;
  }

  /* Fix table overflow on entrance exams page */
  table {
    font-size: 11px !important;
  }

  table th,
  table td {
    padding: 8px 10px !important;
    font-size: 11px !important;
  }

  /* Fix other exams grid on mobile */
  div[style*="grid-template-columns:repeat(auto-fit,minmax(260px,1fr))"] {
    grid-template-columns: 1fr !important;
  }

  /* Ensure comparison table is scrollable */
  div[style*="overflow-x:auto"] {
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 400px) {
  .exam-quick-info span {
    font-size: 10px;
  }

  .exam-desc-short {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .exam-card-compact .exam-card-actions {
    flex-direction: column;
    padding-top: 10px;
    gap: 6px;
  }

  .exam-card-compact .exam-card-actions .btn {
    width: 100%;
    padding: 9px 10px;
    font-size: 12px;
    white-space: normal;
    text-align: center;
  }

  /* Popup mobile optimization */
  .popup-content {
    padding: 20px 16px;
    margin: 10px;
  }

  .popup-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
    margin-bottom: 12px;
  }

  .popup-header h3 {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .popup-header p {
    font-size: 12px;
  }

  .popup-header {
    margin-bottom: 20px;
  }

  .popup-content .form-group {
    margin-bottom: 12px;
  }

  .popup-content .form-group input,
  .popup-content .form-group select {
    padding: 11px 14px;
    font-size: 14px;
  }

  .popup-close {
    width: 32px;
    height: 32px;
    font-size: 18px;
    top: 12px;
    right: 12px;
  }
}

/* ── DETAIL SECTION MOBILE ── */
@media (max-width: 768px) {
  .detail-section {
    padding: 30px 0;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .detail-main {
    order: 1;
  }

  .detail-sidebar {
    order: 2;
  }

  .page-hero {
    padding: 60px 0 40px;
  }

  .page-hero h1 {
    font-size: 22px;
    line-height: 1.3;
  }

  .page-hero p {
    font-size: 14px;
  }

  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }

  .container {
    padding: 0 16px;
    max-width: 100%;
  }

  /* Table responsive */
  table {
    font-size: 11px;
  }

  table th,
  table td {
    padding: 8px 10px !important;
  }

  /* Other exams grid */
  .detail-main > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Fix overflow on detail-main */
  .detail-main {
    padding: 20px !important;
    overflow-x: hidden;
  }

  /* Fix inline styled divs causing overflow */
  .detail-main > div[style*="padding:20px"],
  .detail-main > div[style*="padding:28px"] {
    padding: 16px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* CTA box on entrance page */
  .detail-main > div[style*="background:var(--primary)"] {
    padding: 20px !important;
  }

  .detail-main > div[style*="background:var(--primary)"] h2 {
    font-size: 18px !important;
  }

  .detail-main > div[style*="background:var(--primary)"] p {
    font-size: 13px !important;
  }

  .detail-main > div[style*="background:var(--primary)"] > div {
    flex-direction: column !important;
    gap: 10px !important;
  }

  /* Ensure tables don't overflow */
  .detail-main table {
    font-size: 11px !important;
  }

  .detail-main table th,
  .detail-main table td {
    padding: 8px 6px !important;
    font-size: 11px !important;
  }
}

@media (max-width: 480px) {
  .page-hero {
    padding: 50px 0 30px;
  }

  .page-hero h1 {
    font-size: 20px;
  }

  .page-hero p {
    font-size: 13px;
  }

  .container {
    padding: 0 12px;
  }

  /* Sidebar cards */
  .sidebar-card {
    padding: 16px;
  }

  .sidebar-card h3 {
    font-size: 15px;
  }

  /* Comparison table — scrollable wrapper */
  .detail-main > div[style*="overflow-x"] {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  table {
    min-width: 480px;
  }

  table th,
  table td {
    font-size: 10px !important;
    padding: 6px 4px !important;
  }

  /* Exam card action buttons stack vertically on small phones */
  .exam-card-compact .exam-card-actions {
    flex-direction: column;
    gap: 6px;
  }

  .exam-card-compact .exam-card-actions .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
    justify-content: center;
  }

  /* Fix button wrapping */
  .detail-main .btn {
    font-size: 12px !important;
    padding: 10px 16px !important;
  }

  /* Other Important Exams section */
  .detail-main > div[style*="grid-template-columns:repeat(auto-fit,minmax(260px"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .detail-main > div[style*="grid-template-columns:repeat(auto-fit,minmax(260px"] > div {
    padding: 16px !important;
  }

  .detail-main > div[style*="grid-template-columns:repeat(auto-fit,minmax(260px"] strong {
    font-size: 14px !important;
  }

  .detail-main > div[style*="grid-template-columns:repeat(auto-fit,minmax(260px"] p {
    font-size: 12px !important;
  }

  /* Detail main padding fix */
  .detail-main {
    padding: 16px !important;
  }
}


/* ═══════════════════════════════════════════════════════════
   COUNSELLORS SECTION
   ═══════════════════════════════════════════════════════════ */

.counsellors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.counsellor-card {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(33, 150, 243, 0.15);
  border: 2px solid #90caf9;
  transition: all 0.3s ease;
  text-align: center;
}

.counsellor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(33, 150, 243, 0.3);
  border-color: #2196f3;
  background: linear-gradient(135deg, #bbdefb 0%, #90caf9 100%);
}

.counsellor-avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: white;
  box-shadow: 0 8px 24px rgba(33, 150, 243, 0.4);
  animation: counsellorPulse 2s ease-in-out infinite;
}

@keyframes counsellorPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(33, 150, 243, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(33, 150, 243, 0.5);
  }
}

.counsellor-info {
  margin-top: 20px;
}

.counsellor-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.counsellor-role {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: #1976d2;
  font-weight: 600;
  margin-bottom: 10px;
}

.counsellor-role i {
  font-size: 16px;
}

.counsellor-expertise {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: #1565c0;
  margin-bottom: 20px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  display: inline-flex;
}

.counsellor-expertise i {
  font-size: 16px;
  color: #2196f3;
}

.counsellor-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
  color: white;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

.counsellor-phone-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(33, 150, 243, 0.5);
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
}

.counsellor-phone-btn i {
  font-size: 18px;
  animation: phoneRing 1.5s ease-in-out infinite;
}

@keyframes phoneRing {
  0%, 100% {
    transform: rotate(0deg);
  }
  10%, 30% {
    transform: rotate(-15deg);
  }
  20%, 40% {
    transform: rotate(15deg);
  }
  50% {
    transform: rotate(0deg);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .counsellors-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .counsellor-card {
    padding: 25px 20px;
  }

  .counsellor-avatar {
    width: 80px;
    height: 80px;
    font-size: 40px;
  }

  .counsellor-name {
    font-size: 20px;
  }

  .counsellor-phone-btn {
    font-size: 14px;
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .counsellor-card {
    padding: 20px 15px;
  }

  .counsellor-avatar {
    width: 70px;
    height: 70px;
    font-size: 36px;
  }

  .counsellor-name {
    font-size: 18px;
  }

  .counsellor-role,
  .counsellor-expertise {
    font-size: 13px;
  }

  .counsellor-phone-btn {
    font-size: 13px;
    padding: 10px 18px;
  }
}


/* Footer contact item with nested div support */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-contact-item i {
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item div {
  line-height: 1.6;
}

.footer-contact-item strong {
  color: var(--primary);
  display: block;
  margin-bottom: 2px;
}
