/* Language content styling */
body:not(.kannada) .en { display: block; }
body:not(.kannada) .kn { display: none; }
body.kannada .en { display: none; }
body.kannada .kn, body.kannada { 
  display: block; 
  font-family: 'Noto Sans Kannada', sans-serif; 
}

/* ---------------- ROOT COLORS ---------------- */
:root {
  --teal-primary: #008080;
  --teal-dark: #004d4d;
  --teal-light: #00cccc;
  --orange-primary: #ff7f50;
  --orange-dark: #e65c35;
  --orange-light: #ff9a75;
  --white: #ffffff;
  --gray-light: #f5f7fa;
  --gray-medium: #e2e8f0;
  --gray-dark: #2c3e50;
  --cream-bg: #fff8dc;
  --shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  --transition: all 0.4s ease;
  --border-radius: 15px;
}

/* ---------------- GLOBAL ---------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--cream-bg);
  color: var(--gray-dark);
  line-height: 1.7;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; }
p { margin-bottom: 1rem; }
a { 
  text-decoration: none; 
  color: inherit; 
  transition: var(--transition); 
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Smooth scroll bar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { 
  background: linear-gradient(to bottom, var(--teal-primary), var(--orange-primary)); 
  border-radius: 6px; 
}
::-webkit-scrollbar-track { background: #ddd; }

/* ---------------- HEADER STYLES ---------------- */
.page-header, .edusub-head {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 80, 80, 0.85), rgba(230, 92, 53, 0.85));
  overflow: hidden;
  margin-top: 0;
  padding-top: 80px;
}

.edusub-head {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--orange-dark) 100%);
  min-height: 30vh;
}

.header-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1));
  z-index: 0;
}

.header-content {
  max-width: 800px;
  z-index: 2;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  margin: 0 auto;
}

.page-header h1, .edusub-head h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  animation: fadeInDown 1.2s ease;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.page-header p, .edusub-head p {
  font-size: 1.4rem;
  margin-bottom: 40px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.scroll-indicator {
  animation: bounce 2s infinite;
  color: var(--white);
  margin-top: 40px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.scroll-indicator:hover { transform: translateY(5px); }
.scroll-indicator a { color: white; text-decoration: none; }
.scroll-indicator i { animation: bounce 2s infinite; }

/* ---------------- SECTION BASE ---------------- */
.section {
  padding: 30px;
  position: relative;
  background: var(--cream-bg);
  scroll-margin-top: 30px;
}

.section.alt, .section.cream { background: var(--cream-bg); }

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-primary), var(--orange-primary));
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  animation: bounce 2s infinite;
}

.section h2 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  color: var(--teal-dark);
  position: relative;
  display: inline-block;
}

.section h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--teal-primary), var(--orange-primary));
}

.section-header p {
  font-size: 1.2rem;
  color: var(--gray-dark);
  max-width: 600px;
  margin: 0 auto;
}

.section-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.section-content.reverse { flex-direction: row-reverse; }
.section-content .content, .section-content .image-container { 
  flex: 1; 
  min-width: 300px; 
}

.section-img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.6s ease;
}

.section-img:hover { transform: scale(1.03); }

/* Features in Overview */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 25px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.7);
  padding: 10px 15px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
}

.feature i { color: var(--teal-primary); font-size: 1.1rem; }

/* ---------------- UNIFIED GRID SYSTEMS ---------------- */
.stats-grid, .cards-grid, .initiatives-grid, .resources-grid, .features-grid,
.college-stats, .institute-stats, .school-stats,
.college-features-grid, .institute-features-grid, .school-features-grid,
.process-steps, .admission-info,
.edusub-grid, .school-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin: 40px 0;
  width: 100%;
  box-sizing: border-box;
}

/* Specific grid adjustments */
.stats-grid, .college-stats, .institute-stats, .school-stats {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.cards-grid {
  margin: 10px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: stretch;
}

/* ---------------- UNIFIED CARD SYSTEM ---------------- */
.card, .resource-card, .feature-item,
.college-stat, .college-feature, .process-step, .admission-card,
.institute-stat, .institute-feature, .school-stat, .school-feature,
.edu-card, .edusub-card, .school-item,
.initiative-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  border: 1px solid rgba(0, 128, 128, 0.1);
  margin: 20px;
  max-width: 350px;
  width: 100%;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 480px;
}

/* Card hover effects */
.card:hover, .initiative-card:hover, .resource-card:hover, .feature-item:hover,
.college-stat:hover, .college-feature:hover, .process-step:hover, .admission-card:hover,
.institute-stat:hover, .institute-feature:hover, .school-stat:hover, .school-feature:hover,
.edu-card:hover, .edusub-card:hover, .school-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 128, 128, 0.2);
}

/* Card images */
.card img, .initiative-card img, .resource-card img, .feature-item img,
.edu-image, .edusub-card img, .school-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.6s ease;
  position: relative;
  flex-shrink: 0;
}

.card:hover img, .initiative-card:hover img, .resource-card:hover img, 
.feature-item:hover img, .edusub-card:hover img {
  transform: scale(1.1);
}

/* Specific image heights */
.edu-image, .edusub-card img, .school-item img {
  height: 250px;
}

/* Card content */
.card-content, .initiative-card-content, .resource-content, .feature-item-content,
.edu-content, .school-card-content, .institute-content,
.edusub-card-content {
  padding: 25px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-content h3, .initiative-card h4, .resource-content h3, .feature-item h4,
.edu-content h3, .school-card-content h3, .institute-content h3,
.edusub-card-content h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.3;
  font-weight: 600;
  min-height: 3.5em;
}

.edu-content h3 i, .school-card-content h3 i, .institute-content h3 i {
  color: var(--teal-primary);
  font-size: 1.2rem;
}

.card-content p, .initiative-card p, .resource-content p, .feature-item p {
  color: var(--gray-dark);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* ---------------- UNIFIED STATS SYSTEM ---------------- */
.stat, .college-stat, .institute-stat, .school-stat {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 25px 15px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.stat:hover, .college-stat:hover, .institute-stat:hover, .school-stat:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stat-icon { 
  font-size: 38px; 
  margin-bottom: 15px; 
  color: var(--teal-primary); 
  transition: var(--transition); 
}

.stat:hover .stat-icon, 
.college-stat:hover .college-stat-number,
.institute-stat:hover .institute-stat-number,
.school-stat:hover .school-stat-number {
  color: var(--orange-primary);
  transform: scale(1.2);
}

.stat h3, .college-stat-number, .institute-stat-number, .school-stat-number {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: var(--teal-dark);
}

.stat p, .college-stat p, .institute-stat p, .school-stat p {
  color: var(--gray-dark);
  font-weight: 500;
  font-size: 0.9rem;
}

/* ---------------- UNIFIED BADGE SYSTEM ---------------- */
.college-type-badge, .school-badge, .institute-type-badge, .card-badge,
.college-badge, .institute-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Enhanced Badge Colors with Gradients */

/* ---------------- UNIFIED FLEX CONTAINERS ---------------- */
.colleges-flex-container, .institutes-flex-container, .schools-flex-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}

.college-card-flex, .institute-card-flex, .school-card-flex {
  display: flex;
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.college-card-flex:hover, .institute-card-flex:hover, .school-card-flex:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.college-image-container, .institute-image-container, .school-image-container {
  flex: 0 0 300px;
  position: relative;
  width: 100%;
  max-width: 300px;
}

.college-image-container img, .institute-image-container img, .school-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.college-content-flex, .institute-content-flex, .school-content-flex {
  flex: 1;
  padding: 25px;
  display: flex;
  flex-direction: column;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.college-badges, .institute-badges, .school-badges {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}

/* ---------------- UNIFIED FEATURES SYSTEM ---------------- */
.institute-details p, .school-features p,
.institute-features-flex p, .school-features-flex p,
.college-features-flex p {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
}

.institute-details i, .school-features i,
.institute-features-flex i, .school-features-flex i,
.college-features-flex i {
  color: var(--teal-primary);
  min-width: 20px;
  margin-top: 2px;
}

.institute-features-flex strong, .school-features-flex strong,
.college-features-flex strong {
  color: var(--teal-dark);
  font-weight: 600;
}

/* Enhanced College Details */
.college-details, .institute-features {
  margin: 15px 0;
  padding: 15px;
  background: rgba(0, 128, 128, 0.05);
  border-radius: 8px;
  border-left: 3px solid var(--teal-primary);
  flex-grow: 1;
}

.college-details p, .institute-features p {
  margin-bottom: 8px;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  line-height: 1.4;
}

.college-details strong, .institute-features strong {
  color: var(--teal-dark);
  min-width: 80px;
  margin-right: 10px;
}

/* ---------------- UNIFIED ACTION BUTTONS ---------------- */
.action-buttons, .action-buttons-flex {
  display: flex;
  gap: 12px;
  margin-top: auto;
  flex-wrap: wrap;
  padding-top: 15px;
  border-top: 1px solid rgba(0, 128, 128, 0.1);
}

.small-btn {
  padding: 8px 16px; /* Reduced from 12px 24px */
  border-radius: 20px; /* Slightly smaller radius */
  font-size: 0.8rem; /* Smaller font */
  font-weight: 600;
  background: var(--teal-primary);
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 128, 128, 0.3); /* Reduced shadow */
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px; /* Reduced gap */
  text-decoration: none;
  position: relative;
  overflow: hidden;
  text-align: center;
  min-width: 110px; /* Reduced from 140px */
  flex-shrink: 0;
  height: 36px; /* Fixed height for consistency */
}

.small-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.small-btn:hover {
  background: var(--teal-dark);
  transform: translateY(-1px); /* Reduced lift */
  box-shadow: 0 4px 12px rgba(0, 128, 128, 0.4);
  color: white;
}

.small-btn:hover::before {
  left: 100%;
}

/* ---------------- PROGRESS BARS ---------------- */
.progress-bars {
  margin-top: 40px;
  padding: 20px;
  background-color: white;
  border-radius: var(--border-radius);
}

.progress-container { margin-bottom: 20px; }

.progress-container p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 500;
}

.progress {
  height: 10px;
  background: var(--gray-light);
  border-radius: 5px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(to right, var(--teal-primary), var(--orange-primary));
  transition: width 1.5s ease-in-out;
}

/* ---------------- ACCORDION ---------------- */

/* ---------------- FILTERS ---------------- */
.school-filters {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--teal-primary);
  background: transparent;
  color: var(--teal-primary);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--teal-primary);
  color: white;
}

/* ---------------- ANIMATIONS ---------------- */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-20px); }
  60% { transform: translateY(-10px); }
}

/* ===================== SCHOOL DETAILS ===================== */
.school-info { padding: 25px; flex: 1; }
.school-info h3 { 
  color: var(--teal-dark); 
  margin-bottom: 15px; 
  font-size: 1.4rem; 
}
.school-info p { margin-bottom: 15px; color: var(--gray-dark); }

/* ===================== UNIFIED ICON SYSTEM ===================== */
.resource-icon, .initiative-icon, .college-feature-icon, 
.institute-feature-icon, .school-feature-icon, .admission-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-primary), var(--orange-primary));
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

/* ===================== PAGE SPECIFIC STYLES ===================== */
.college-category, .institute-category, .school-category-section { margin-bottom: 60px; }

.category-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
}

.category-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--teal-primary), var(--orange-primary));
  color: var(--white);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.category-header h2 { font-size: 30px; margin-bottom: 5px; color: var(--teal-dark); }
.category-header p { color: var(--gray-dark); margin-bottom: 0; }

.process-step, .admission-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: var(--white);
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.process-step:hover, .admission-card:hover { transform: translateY(-5px); }

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--teal-primary), var(--orange-primary));
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.step-content h4, .admission-card h4 {
  color: var(--teal-dark);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.step-content p, .admission-card p {
  color: var(--gray-dark);
  margin-bottom: 0;
  font-size: 0.9rem;
}

.admission-card { text-align: center; }
.admission-icon { margin: 0 auto 20px; }

/* ===================== TABLE ---------------- */
.table-container {
  overflow-x: auto;
  margin-top: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  background: var(--white);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
}

thead {
  background: linear-gradient(to right, var(--teal-primary), var(--orange-primary));
  color: var(--white);
}

th, td {
  padding: 15px 20px;
  text-align: left;
}

th {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

tbody tr {
  border-bottom: 1px solid var(--gray-medium);
  transition: var(--transition);
  background: var(--white);
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:hover {
  background: rgba(0, 128, 128, 0.08);
}

/* ===================== GALLERY STYLES ===================== */
.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 250px;
}

.gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 20px 15px 15px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* Gallery overlay effect */
.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0, 128, 128, 0.3), rgba(255, 127, 80, 0.3));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.gallery-item:hover::before {
  opacity: 1;
}

/* Additional styles for image fallbacks */
.header-bg-image, .section-img, .edu-image, .edusub-card img, 
.school-item img, .card img, .college-image-container img,
.institute-image-container img, .school-image-container img {
  object-fit: cover;
  background-color: #f0f0f0;
  background-image: linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%, #ccc),
                  linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%, #ccc);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
}

.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e0e0e0;
  color: #666;
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

/* ===================== EXPLORE BUTTONS ===================== */
.explore-btn-wrapper, .explore-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0 20px;
  width: 100%;
  clear: both;
  text-align: center;
}

.explore-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: linear-gradient(to right, var(--teal-primary), var(--orange-primary));
  color: white;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
  text-align: center;
  min-width: 180px;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.explore-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.explore-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
  background: linear-gradient(to right, var(--teal-dark), var(--orange-dark));
  color: white;
  text-decoration: none;
}

.explore-btn:hover::before {
  left: 100%;
}

/* Make sure all explore buttons are properly centered */
#resources .explore-btn-wrapper,
#universities .explore-btn-wrapper,
#colleges .explore-btn-wrapper,
#schools .explore-btn-wrapper,
#institutes .explore-btn-wrapper,
#initiatives .explore-btn-wrapper,
#career-guidance .explore-btn-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* ===================== EDUCATION NAVIGATION ===================== */
/* ===================== EDUCATION NAVIGATION ===================== */
.education-nav {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--orange-dark) 100%);
  padding: 1rem 0;
  position: relative;
  top: 0;
  width: 100%;
  z-index: 1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.education-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  justify-content: center; /* This ensures centering */
}

.education-nav ul {
  display: flex;
  justify-content: center; /* Center the navigation items */
  align-items: center; /* Vertically center */
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap; /* Allow wrapping if needed */
  gap: 0.8rem;
}

.education-nav li { 
  margin: 0; 
}

.education-nav a {
  color: white;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
  display: block;
  border: 2px solid transparent;
  white-space: nowrap;
  text-align: center;
}

.education-nav a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}

.education-nav a.active {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Mobile Styles - Only apply horizontal scroll on mobile */
@media (max-width: 768px) {
  .education-nav {
    padding: 0.8rem 0;
    overflow-x: auto; /* Enable horizontal scroll only on mobile */
    white-space: nowrap;
  }
  
  .nav-container {
    justify-content: flex-start; /* Left align on mobile */
    padding: 0 10px;
  }
  
  .education-nav ul {
    justify-content: flex-start; /* Left align on mobile */
    flex-wrap: nowrap; /* Prevent wrapping on mobile */
    min-width: max-content; /* Ensure container is wide enough */
  }
  
  .education-nav li {
    flex-shrink: 0; /* Prevent shrinking on mobile */
  }
  
  .education-nav a {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
  }
  
  /* Custom scrollbar styling for mobile */
  .education-nav::-webkit-scrollbar {
    height: 6px;
    display: block;
  }
  
  .education-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 3px;
  }
  
  .education-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
  }
}

/* Hide scrollbar on desktop */
@media (min-width: 769px) {
  .education-nav {
    overflow-x: visible; /* No horizontal scroll on desktop */
  }
  
  .education-nav ul {
    flex-wrap: wrap; /* Allow natural wrapping on desktop */
  }
}

/* ===================== RESPONSIVE DESIGN ===================== */
@media (max-width: 1200px) {
  .container { max-width: 1140px; }
}

@media (max-width: 992px) {
  .container { max-width: 960px; }
  .page-header h1, .edusub-head h1 { font-size: 2.8rem; }
  .section h2 { font-size: 2.4rem; }
  .section-content { flex-direction: column; }
  .section-content.reverse { flex-direction: column; }
  .college-card-flex, .institute-card-flex, .school-card-flex { flex-direction: column; }
  .college-image-container, .institute-image-container, .school-image-container { 
    flex: 0 0 auto; 
    max-width: 100%; 
    height: 250px; 
  }
}

@media (max-width: 768px) {
  .container { max-width: 720px; padding: 0 15px; }
  .page-header h1, .edusub-head h1 { font-size: 2.2rem; }
  .page-header p, .edusub-head p { font-size: 1.1rem; }
  .section h2 { font-size: 2rem; }
  .section { padding: 20px; }
  .section-icon { width: 60px; height: 60px; font-size: 24px; }
  .stats-grid, .cards-grid, .initiatives-grid, .resources-grid, .features-grid { 
    grid-template-columns: 1fr; 
    gap: 20px; 
  }
  .education-nav .container { flex-direction: column; gap: 1rem; }
  .education-nav-links { justify-content: center; }
  .action-buttons, .action-buttons-flex { justify-content: center; }
  .small-btn { min-width: 120px; }
}

@media (max-width: 576px) {
  .container { max-width: 100%; padding: 0 10px; }
  .page-header h1, .edusub-head h1 { font-size: 1.8rem; }
  .page-header p, .edusub-head p { font-size: 1rem; }
  .section h2 { font-size: 1.6rem; }
  .section-header p { font-size: 1rem; }
  .card-content, .resource-content, .feature-item-content { padding: 15px; }
  .category-header { flex-direction: column; text-align: center; }
  .category-icon { margin-bottom: 10px; }
  .school-filters { justify-content: center; }
  .filter-btn { font-size: 0.8rem; padding: 6px 12px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .education-nav-links { flex-direction: column; width: 100%; }
  .education-nav-links a { width: 100%; justify-content: center; }
}


/* University Section Specific Fixes */
#universities .cards-grid {
  justify-items: center;
  gap: 30px;
}

#universities .card {
  max-width: 380px;
  margin: 0;
}

/* Ensure university cards have proper spacing */
#universities .card-content {
  padding: 25px;
}

#universities .college-details {
  margin: 15px 0;
  padding: 15px;
  background: rgba(0, 128, 128, 0.05);
  border-radius: 8px;
  border-left: 3px solid var(--teal-primary);
}

#universities .college-details p {
  margin-bottom: 8px;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  line-height: 1.4;
}

#universities .college-details strong {
  color: var(--teal-dark);
  min-width: 80px;
  margin-right: 10px;
}


/* Fix for mobile view */
@media (max-width: 768px) {
  #universities .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  #universities .card {
    max-width: 100%;
    margin: 0;
  }
  
  #universities .card-content {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  #universities .card-content {
    padding: 15px;
  }
  
  #universities .college-details {
    padding: 12px;
  }
}
/* ===================== UNIFIED STATS SYSTEM ===================== */
.stats-grid, .college-stats, .institute-stats, .school-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin: 40px 0;
  width: 100%;
  box-sizing: border-box;
}

.stat, .college-stat, .institute-stat, .school-stat {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 128, 128, 0.1);
}

.stat:hover, .college-stat:hover, .institute-stat:hover, .school-stat:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 128, 128, 0.2);
}

.stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--teal-primary), var(--orange-primary));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.stat:hover::before {
  transform: scaleX(1);
}

.stat-icon { 
  font-size: 42px; 
  margin-bottom: 20px; 
  color: var(--teal-primary); 
  transition: all 0.4s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0, 128, 128, 0.1);
}

.stat:hover .stat-icon {
  color: var(--orange-primary);
  transform: scale(1.1) rotate(5deg);
  background: rgba(255, 127, 80, 0.1);
}

.stat h3, .college-stat-number, .institute-stat-number, .school-stat-number {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--teal-dark);
  font-weight: 700;
  background: linear-gradient(135deg, var(--teal-primary), var(--orange-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.4s ease;
}

.stat:hover h3, 
.stat:hover .college-stat-number,
.stat:hover .institute-stat-number,
.stat:hover .school-stat-number {
  transform: scale(1.1);
}

.stat p, .college-stat p, .institute-stat p, .school-stat p {
  color: var(--gray-dark);
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
  line-height: 1.4;
}

/* Stats grid responsive adjustments */
@media (max-width: 992px) {
  .stats-grid, .college-stats, .institute-stats, .school-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
  }
  
  .stat h3, .college-stat-number, .institute-stat-number, .school-stat-number {
    font-size: 2.2rem;
  }
}

@media (max-width: 576px) {
  .stats-grid, .college-stats, .institute-stats, .school-stats {
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 25px 0;
  }
  
  .stat, .college-stat, .institute-stat, .school-stat {
    padding: 25px 15px;
  }
  
  .stat h3, .college-stat-number, .institute-stat-number, .school-stat-number {
    font-size: 2rem;
  }
  
  .stat-icon {
    font-size: 36px;
    width: 70px;
    height: 70px;
  }
  
  .stat p, .college-stat p, .institute-stat p, .school-stat p {
    font-size: 0.9rem;
  }
}
#universities .cards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center the cards */
  gap: 25px;
}

#universities .card {
  flex: 0 0 350px; /* Fixed width, won't grow or shrink */
  min-height: 460px;
  margin: 0;
}
/* ===================== RESPONSIVE CARD FIXES ===================== */

/* Fix for university cards fixed width */
#universities .cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  justify-items: center;
}

#universities .card {
  width: 100%;
  max-width: 550px;
  margin: 0;
  flex: none; /* Remove flex properties */
}

/* Ensure all cards have consistent responsive behavior */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin: 20px 0;
  width: 100%;
  box-sizing: border-box;
}

.card {
  width: 100%;
  margin: 0;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

/* Card content responsive fixes */
.card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.card-content h3 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin-bottom: 12px;
  min-height: auto; /* Remove fixed min-height */
}

.card-content p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 15px;
  flex-grow: 1;
}

/* College details responsive fixes */
.college-details {
  margin: 15px 0;
  padding: 15px;
  background: rgba(0, 128, 128, 0.05);
  border-radius: 8px;
  border-left: 3px solid var(--teal-primary);
  flex-grow: 1;
}

.college-details p {
  margin-bottom: 8px;
  font-size: 0.85rem;
  display: block; /* Change from flex to block for better wrapping */
  line-height: 1.4;
}

.college-details strong {
  color: var(--teal-dark);
  display: inline-block;
  min-width: auto;
  margin-right: 5px;
}

/* Image responsive fixes */
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Button container fixes */
.action-buttons {
  display: flex;
  gap: 10px;
  margin-top: auto;
  flex-wrap: wrap;
  padding-top: 15px;
  border-top: 1px solid rgba(0, 128, 128, 0.1);
}

.small-btn {
  padding: 8px 16px;
  font-size: 0.8rem;
  min-width: 120px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ===================== MOBILE SPECIFIC FIXES ===================== */
@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 15px 0;
  }
  
  #universities .cards-grid {
    grid-template-columns: 1fr;
  }
  
  #universities .card {
    max-width: 100%;
  }
  
  .card {
    min-height: auto; /* Let content determine height */
    margin: 0 10px;
  }
  
  .card-content {
    padding: 15px;
  }
  
  .card-content h3 {
    font-size: 1.2rem;
  }
  
  .college-details {
    padding: 12px;
    margin: 10px 0;
  }
  
  .college-details p {
    font-size: 0.8rem;
  }
  
  .small-btn {
    min-width: 110px;
    font-size: 0.75rem;
    padding: 6px 12px;
  }
}

@media (max-width: 480px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .card {
    margin: 0 5px;
  }
  
  .card-content {
    padding: 12px;
  }
  
  .card-content h3 {
    font-size: 1.1rem;
  }
  
  .college-details {
    padding: 10px;
  }
  
  .action-buttons {
    justify-content: center;
  }
  
  .small-btn {
    flex: 1;
    min-width: 100px;
    max-width: 140px;
  }
}

/* ===================== SPECIFIC SECTION FIXES ===================== */
#arts-science .cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

#engineering .cards-grid,
#medical .cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Ensure cards don't get too wide on large screens */
@media (min-width: 1400px) {
  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

/* Fix for very small screens */
@media (max-width: 360px) {
  .card {
    margin: 0;
    border-radius: 10px;
  }
  
  .cards-grid {
    gap: 15px;
  }
  
  .card-content h3 {
    font-size: 1rem;
  }
  
  .card-content p {
    font-size: 0.8rem;
  }
}
/* ===================== COMPACT STATS STYLING ===================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin: 25px 0;
}

.stat {
  background: var(--white);
  border-radius: 10px;
  padding: 18px 10px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 128, 128, 0.1);
}

.stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.stat-icon {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--teal-primary);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(0, 128, 128, 0.1);
}

.stat:hover .stat-icon {
  color: var(--orange-primary);
  transform: scale(1.05);
  background: rgba(255, 127, 80, 0.1);
}

.stat h3.stat-number {
  font-size: 1.4rem;
  margin-bottom: 6px;
  color: var(--teal-dark);
  font-weight: 700;
  background: linear-gradient(135deg, var(--teal-primary), var(--orange-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.stat:hover h3.stat-number {
  transform: scale(1.03);
}

.stat p {
  color: var(--gray-dark);
  font-weight: 500;
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.3;
}

/* Responsive adjustments for stats only */
@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .stat h3.stat-number {
    font-size: 1.3rem;
  }
}

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .stat {
    padding: 15px 8px;
  }
  
  .stat h3.stat-number {
    font-size: 1.2rem;
  }
  
  .stat-icon {
    font-size: 18px;
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
  }
  
  .stat p {
    font-size: 0.75rem;
  }
}

/* Extra small devices */
@media (max-width: 400px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .stat {
    padding: 12px 6px;
  }
}

.card-header {
  padding: 25px 25px 15px;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-primary), var(--orange-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.card-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--orange-primary);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-body {
  padding: 0 25px 25px;
  flex-grow: 1;
}

.card-title {
  font-size: 1.4rem;
  color: var(--teal-dark);
  margin-bottom: 10px;
}

.card-text {
  color: var(--dark-gray);
  margin-bottom: 20px;
  line-height: 1.6;
}

    /* Initiatives Section Styles */
#initiatives {
  padding: 40px 0;

}



/* Accordion Styles */
.accordion {
  max-width: 1000px;
  margin: 0 auto;
}

.accordion-item {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.accordion-header {
  width: 100%;
  padding: 25px 30px;
  background: #fff;
  border: none;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.accordion-header:hover {
  background: #f8f9fa;
}

.accordion-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #076b63, #0d6f5d);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
}

.accordion-icon i {
  font-size: 1.5rem;
  color: #fff;
}

.accordion-title {
  flex: 1;
}

.accordion-title h3 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 5px;
  font-weight: 600;
}

.accordion-title p {
  color: #6c757d;
  margin: 0;
  font-size: 1rem;
}

.accordion-arrow {
  font-size: 1.2rem;
  color: #3498db;
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content-inner {
  padding: 0 30px 30px;
}

/* Initiatives List Styles */
.initiatives-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.initiative-item {
  padding: 25px;
  background: #f8f9fa;
  border-radius: 10px;
  border-left: 4px solid #3498db;
  transition: all 0.3s ease;
}

.initiative-item:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

.initiative-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.initiative-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #076b63, #0d6f5d);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.initiative-icon i {
  font-size: 1.2rem;
  color: #fff;
}

.initiative-header h4 {
  font-size: 1.3rem;
  color: #2c3e50;
  margin: 0;
  font-weight: 600;
}

.initiative-description {
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
  font-size: 1rem;
}

.initiative-stats {
  display: flex;
  gap: 20px;
  margin-top: 15px;
}

.stat {
  background: #fff;
  padding: 8px 15px;
  border-radius: 6px;
  font-weight: 600;
  color: #3498db;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.initiative-details {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
}

.initiative-details p {
  margin: 8px 0;
  color: #555;
  font-size: 0.95rem;
}

.initiative-details strong {
  color: #2c3e50;
}

/* Responsive Design */
@media (max-width: 768px) {
  .section-header h2 {
    font-size: 2rem;
  }
  
  .accordion-header {
    padding: 20px;
  }
  
  .accordion-icon {
    width: 50px;
    height: 50px;
    margin-right: 15px;
  }
  
  .accordion-title h3 {
    font-size: 1.3rem;
  }
  
  .initiative-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .initiative-icon {
    margin-bottom: 10px;
  }
  
  .initiative-stats {
    flex-direction: column;
    gap: 10px;
  }
  
  .initiative-item {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .accordion-header {
    padding: 15px;
  }
  
  .accordion-content-inner {
    padding: 0 15px 20px;
  }
}
/* ===================== COMPACT SEARCH & QUICK ACCESS ===================== */
#schools-search {
  padding: 20px 0;
  margin: 20px auto;
  max-width: 1200px;
}

.search-quick-access-container {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Search Box - Compact Version */
.search-box-compact {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.search-input-wrapper-compact {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 50px;
  padding: 8px 8px 8px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  gap: 8px;
}

.search-input-wrapper-compact:focus-within {
  border-color: var(--teal-primary);
  box-shadow: 0 6px 20px rgba(0, 128, 128, 0.2);
}

.search-icon-compact {
  color: var(--teal-primary);
  font-size: 1.1rem;
  margin-right: 8px;
  flex-shrink: 0;
}

#school-search-input-compact {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 0;
  font-size: 0.95rem;
  font-family: 'Poppins', sans-serif;
  background: transparent;
  color: var(--gray-dark);
  min-width: 0;
}

#school-search-input-compact::placeholder {
  color: #999;
  font-weight: 400;
}

.clear-search-btn-compact {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.clear-search-btn-compact:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--teal-dark);
}

.search-action-btn-compact {
  background: linear-gradient(135deg, var(--teal-primary), var(--orange-primary));
  color: white;
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 128, 128, 0.3);
}

.search-action-btn-compact:hover {
  background: linear-gradient(135deg, var(--teal-dark), var(--orange-dark));
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 128, 128, 0.4);
}

/* Quick Access Dropdowns - Compact Version */
.quick-access-compact {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.quick-access-dropdown {
  position: relative;
  min-width: 140px;
}

.quick-access-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--white);
  border: 2px solid var(--teal-primary);
  border-radius: 25px;
  color: var(--teal-primary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 128, 128, 0.1);
}

.quick-access-toggle:hover {
  background: var(--teal-primary);
  color: white;
  transform: translateY(-2px);
}

.quick-access-toggle::after {
  content: '▾';
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.quick-access-dropdown.active .quick-access-toggle::after {
  transform: rotate(180deg);
}

.quick-access-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-medium);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 1000;
  margin-top: 5px;
}

.quick-access-dropdown.active .quick-access-menu {
  max-height: 300px;
  overflow-y: auto;
}

.quick-access-link {
  display: block;
  padding: 10px 16px;
  color: var(--teal-dark);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--gray-light);
}

.quick-access-link:last-child {
  border-bottom: none;
}

.quick-access-link:hover {
  background: var(--teal-primary);
  color: white;
}

/* Category-specific colors */
.quick-access-dropdown:nth-child(1) .quick-access-toggle {
  border-color: #e74c3c;
  color: #e74c3c;
}

.quick-access-dropdown:nth-child(1) .quick-access-toggle:hover,
.quick-access-dropdown:nth-child(1) .quick-access-link:hover {
  background: #e74c3c;
  color: white;
}

.quick-access-dropdown:nth-child(2) .quick-access-toggle {
  border-color: #3498db;
  color: #3498db;
}

.quick-access-dropdown:nth-child(2) .quick-access-toggle:hover,
.quick-access-dropdown:nth-child(2) .quick-access-link:hover {
  background: #3498db;
  color: white;
}

.quick-access-dropdown:nth-child(3) .quick-access-toggle {
  border-color: #2ecc71;
  color: #2ecc71;
}

.quick-access-dropdown:nth-child(3) .quick-access-toggle:hover,
.quick-access-dropdown:nth-child(3) .quick-access-link:hover {
  background: #2ecc71;
  color: white;
}

/* Search Results Info */
.search-results-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 15px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
  animation: fadeInUp 0.5s ease;
}

.search-results-info p {
  margin: 0;
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .search-quick-access-container {
    flex-direction: column;
    gap: 15px;
  }
  
  .search-box-compact {
    min-width: 100%;
    max-width: 100%;
  }
  
  .quick-access-compact {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .search-input-wrapper-compact {
    padding: 6px 6px 6px 15px;
  }
  
  #school-search-input-compact {
    padding: 8px 0;
    font-size: 0.9rem;
  }
  
  .search-action-btn-compact {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
  
  .quick-access-toggle {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
  
  .quick-access-dropdown {
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  .quick-access-compact {
    flex-direction: column;
    width: 100%;
  }
  
  .quick-access-dropdown {
    min-width: 100%;
  }
  
  .search-input-wrapper-compact {
    flex-direction: column;
    border-radius: 15px;
    padding: 12px;
    gap: 10px;
  }
  
  #school-search-input-compact {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--gray-light);
    margin-bottom: 8px;
  }
  
  .search-action-btn-compact {
    width: 100%;
    justify-content: center;
  }
}
