/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

/* Root Variables for Light/Dark Mode - Blue Theme */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f0f7ff;
  --bg-tertiary: #e3f2fd;
  --text-primary: #1a237e;
  --text-secondary: #424242;
  --text-muted: #757575;
  --border-color: #bbdefb;
  --link-color: #1976d2;
  --link-hover: #0d47a1;
  --infobox-bg: #e8f4f8;
  --shadow: rgba(25, 118, 210, 0.1);
  --header-bg: #0d47a1;
  --header-text: #ffffff;
  --accent-primary: #2196f3;
  --accent-secondary: #64b5f6;
  --card-hover: #bbdefb;
  --success-color: #4caf50;
  --rating-color: #ff9800;
}

[data-theme="dark"] {
  --bg-primary: #0a1929;
  --bg-secondary: #132f4c;
  --bg-tertiary: #1a3a52;
  --text-primary: #e3f2fd;
  --text-secondary: #b3d4fc;
  --text-muted: #90caf9;
  --border-color: #1e4976;
  --link-color: #64b5f6;
  --link-hover: #90caf9;
  --infobox-bg: #173a52;
  --shadow: rgba(0, 0, 0, 0.4);
  --header-bg: #001e3c;
  --header-text: #e3f2fd;
  --accent-primary: #42a5f5;
  --accent-secondary: #64b5f6;
  --card-hover: #1e4976;
  --success-color: #66bb6a;
  --rating-color: #ffa726;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* Header */
.site-header {
  background-color: var(--header-bg);
  color: var(--header-text);
  padding: 0;
  box-shadow: 0 2px 8px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* New: header-content for standardized header */
.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.site-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--header-text);
  text-decoration: none;
  margin: 0;
}

.site-title a {
  color: var(--header-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-title a:hover {
  text-decoration: none;
  opacity: 0.9;
}

.site-title i {
  font-size: 1.75rem;
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  color: var(--header-text);
  text-decoration: none;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
}

.main-nav a:hover {
  opacity: 0.8;
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

/* Dropdown Navigation */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 220px;
  z-index: 1000;
  margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.2s;
}

.dropdown-menu a:hover {
  background: var(--bg-secondary);
  color: var(--link-color);
}

.dropdown-menu i {
  width: 20px;
  text-align: center;
  margin-right: 0.5rem;
  color: var(--accent-primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--header-text);
  cursor: pointer;
  padding: 0.5rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--header-text);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.nav-link:hover {
  opacity: 0.8;
  text-decoration: none;
}

/* Theme Toggle */
.theme-toggle {
  background: transparent;
  border: 2px solid var(--header-text);
  color: var(--header-text);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background: var(--header-text);
  color: var(--header-bg);
}

/* Main Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: var(--link-color);
}

.breadcrumb-separator {
  margin: 0 0.5rem;
  color: var(--text-muted);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  padding: 3rem 1rem;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

/* College Grid */
.college-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.college-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.college-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px var(--shadow);
}

.college-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
  background: var(--bg-primary);
  padding: 0.5rem;
  border-radius: 4px;
}

.college-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.college-card .alternate-name {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.college-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.college-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.college-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.college-meta-item strong {
  color: var(--text-primary);
}

.view-details-btn {
  display: inline-block;
  background: var(--link-color);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-align: center;
  font-weight: 500;
  transition: background 0.2s ease;
}

.view-details-btn:hover {
  background: var(--link-hover);
  text-decoration: none;
  color: #ffffff;
}

/* Entity Page Layout */
.entity-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

/* Sidebar Infobox */
.infobox {
  background: var(--infobox-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  position: sticky;
  top: 80px;
  align-self: start;
}

.infobox-logo {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto 1rem;
  display: block;
  background: var(--bg-primary);
  padding: 1rem;
  border-radius: 4px;
}

.infobox h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.infobox-table {
  width: 100%;
  font-size: 0.9rem;
}

.infobox-table tr {
  border-bottom: 1px solid var(--border-color);
}

.infobox-table tr:last-child {
  border-bottom: none;
}

.infobox-table th {
  text-align: left;
  padding: 0.75rem 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
  width: 40%;
  vertical-align: top;
}

.infobox-table td {
  padding: 0.75rem 0.5rem;
  color: var(--text-secondary);
  word-break: break-word;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  background: var(--link-color);
  color: #ffffff;
  text-decoration: none;
}

/* Main Content */
.entity-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
}

.entity-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.entity-content .subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.entity-content h2 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.entity-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* FAQ Section */
.faq-section {
  margin-top: 3rem;
}

.faq-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.faq-answer {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 2rem 1rem;
  margin-top: 4rem;
  text-align: center;
  color: var(--text-secondary);
}

.site-footer p {
  margin: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  /* Mobile menu styles */
  .mobile-menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--header-bg);
    padding: 1rem;
    box-shadow: 0 4px 8px var(--shadow);
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav li {
    display: block;
    width: 100%;
  }

  .main-nav a {
    display: block;
    padding: 0.75rem 1rem;
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    padding-left: 1rem;
    background: rgba(255, 255, 255, 0.05);
  }

  .header-content {
    position: relative;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .college-grid {
    grid-template-columns: 1fr;
  }

  .entity-layout {
    grid-template-columns: 1fr;
  }

  .infobox {
    position: static;
  }

  .entity-content h1 {
    font-size: 2rem;
  }

  .entity-content h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1rem 0.5rem;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .college-card {
    padding: 1rem;
  }

  .entity-content {
    padding: 1rem;
  }
}

/* Loading State */
.loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
  font-size: 1.2rem;
}

/* Error State */
.error {
  text-align: center;
  padding: 3rem;
  color: #dc3545;
  font-size: 1.1rem;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

/* Course Table Styles */
.course-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--bg-primary);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
}

.course-table thead {
  background: var(--accent-primary);
  color: #ffffff;
}

.course-table th,
.course-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.course-table th {
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.course-table tbody tr {
  transition: background 0.2s ease;
}

.course-table tbody tr:hover {
  background: var(--bg-secondary);
}

.course-table tbody tr:last-child td {
  border-bottom: none;
}

/* Rating Display */
.rating-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.rating-stars {
  color: var(--rating-color);
  font-size: 1.2rem;
  display: flex;
  gap: 0.2rem;
}

.rating-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-primary);
}

.rating-count {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Facilities Grid */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.facility-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.facility-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow);
  border-color: var(--accent-primary);
}

.facility-item i {
  color: var(--accent-primary);
  font-size: 1.2rem;
}

/* Placement Stats */
.placement-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-card {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 12px var(--shadow);
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Tags/Badges */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--accent-primary);
  color: #ffffff;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 500;
  margin: 0.25rem;
}

.tag.success {
  background: var(--success-color);
}

/* Enhanced College Cards */
.college-card {
  border-left: 4px solid var(--accent-primary);
  position: relative;
  overflow: hidden;
}

.college-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

.college-card:hover {
  border-left-color: var(--accent-secondary);
}

.college-brief {
  background: var(--bg-tertiary);
  border-radius: 6px;
  padding: 1rem;
  margin: 1rem 0;
  border-left: 3px solid var(--accent-primary);
}

/* Accreditation Badges */
.accreditation-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.accreditation-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--success-color);
  color: #ffffff;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Top Recruiters */
.recruiters-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}

.recruiter-badge {
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.recruiter-badge:hover {
  background: var(--accent-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Related Links Section */
.related-links {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.related-links h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.related-links ul {
  list-style: none;
  padding: 0;
}

.related-links li {
  margin-bottom: 0.75rem;
}

.related-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--link-color);
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.related-links a:hover {
  background: var(--card-hover);
  text-decoration: none;
  padding-left: 1rem;
}

.related-links a i {
  color: var(--accent-primary);
}

/* Tab Navigation Styles */
.tab-navigation {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  margin: 2rem 0 1.5rem 0;
  overflow-x: auto;
  gap: 0;
}

.tab-button {
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  position: relative;
}

.tab-button:hover {
  color: var(--accent-primary);
  background-color: var(--bg-secondary);
}

.tab-button.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
  font-weight: 600;
}

.tab-button i {
  margin-right: 0.5rem;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Improved Social Links - No Overlap */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.social-link:hover {
  background-color: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow);
}

.social-link i {
  margin-right: 0.4rem;
  font-size: 1rem;
}

/* Clickable Phone and Email */
.clickable-contact {
  color: var(--link-color);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s ease;
}

.clickable-contact:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.clickable-contact i {
  font-size: 0.9em;
}

/* Wikipedia Location Links */
.location-link {
  color: var(--link-color);
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px dotted var(--link-color);
}

.location-link:hover {
  color: var(--link-hover);
  border-bottom: 1px solid var(--link-hover);
}

/* Enhanced Infobox Layout */
.infobox {
  background: var(--infobox-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.infobox-logo {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 8px;
  margin: 0 auto 1rem;
  display: block;
  border: 2px solid var(--border-color);
  padding: 0.5rem;
  background: white;
}

.infobox-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
}

.infobox-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.infobox-table th {
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
  width: 35%;
  font-family: 'Inter', sans-serif;
}

.infobox-table td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  vertical-align: top;
  word-break: break-word;
}

.infobox-table tr:last-child td,
.infobox-table tr:last-child th {
  border-bottom: none;
}

/* Tab Content Sections */
.courses-section,
.admissions-section,
.scholarships-section,
.placements-section,
.facilities-section,
.gallery-section,
.reviews-section {
  margin-top: 1.5rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title i {
  color: var(--accent-primary);
}

/* Course Cards in Tab */
.course-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.course-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px var(--shadow);
  border-color: var(--accent-primary);
}

.course-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.course-icon {
  font-size: 2rem;
  color: var(--accent-primary);
}

.course-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
}

.course-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.course-detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.course-detail-item i {
  color: var(--accent-primary);
  width: 20px;
}

.course-detail-item strong {
  color: var(--text-primary);
}

/* Print Styles */
@media print {
  .site-header,
  .theme-toggle,
  .site-footer {
    display: none;
  }

  .entity-layout {
    grid-template-columns: 1fr;
  }

  .infobox {
    break-inside: avoid;
  }
}

/* ========================================
   NEW HOMEPAGE STYLES - SEO OPTIMIZED
   ======================================== */

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--header-bg) 0%, var(--accent-primary) 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.search-container {
  max-width: 700px;
  margin: 2rem auto;
  display: flex;
  gap: 0.5rem;
}

.search-input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
}

.search-btn {
  padding: 1rem 2rem;
  background: var(--success-color);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.search-btn:hover {
  background: #45a049;
  transform: translateY(-2px);
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn-primary, .btn-secondary, .btn-cta {
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
}

.btn-primary {
  background: white;
  color: var(--accent-primary);
}

.btn-primary:hover {
  background: var(--bg-secondary);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: var(--accent-primary);
}

/* Benefits Section */
.benefits-section {
  padding: 4rem 0;
  background: var(--bg-secondary);
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.benefit-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s;
  border: 1px solid var(--border-color);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow);
}

.benefit-card i {
  font-size: 3rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.benefit-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

/* Categories Section */
.categories-section {
  padding: 4rem 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.category-card {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s;
  border: 2px solid transparent;
}

.category-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow);
  text-decoration: none;
}

.category-card i {
  font-size: 3rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.category-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.category-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* SEO Content Section */
.seo-content-section {
  padding: 4rem 0;
  background: white;
}

.seo-content-section h2 {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.seo-content-section h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.seo-content-section p {
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.seo-content-section strong {
  color: var(--text-primary);
  font-weight: 600;
}

.college-list-seo {
  padding-left: 1.5rem;
  margin: 1.5rem 0;
}

.college-list-seo li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.college-list-seo a {
  color: var(--link-color);
  font-weight: 500;
}

.course-list-seo {
  padding-left: 1.5rem;
  margin: 1.5rem 0;
}

.course-list-seo li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.info-box {
  background: var(--bg-tertiary);
  border-left: 4px solid var(--accent-primary);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.info-box i {
  font-size: 1.5rem;
  color: var(--accent-primary);
  margin-top: 0.25rem;
}

.external-links {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.external-links li {
  margin-bottom: 0.75rem;
}

.external-links a {
  color: var(--link-color);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.external-links a:before {
  content: "→";
  color: var(--accent-primary);
}

/* Featured Section */
.featured-section {
  padding: 4rem 0;
  background: var(--bg-secondary);
}

.view-all-container {
  text-align: center;
  margin-top: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
}

/* How It Works Section */
.how-it-works-section {
  padding: 4rem 0;
  background: white;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.step-card {
  text-align: center;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  position: relative;
  transition: all 0.3s;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: var(--accent-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.step-card i {
  font-size: 3rem;
  color: var(--accent-primary);
  margin: 1.5rem 0 1rem 0;
}

.step-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

/* Why Bareilly Section */
.why-bareilly-section {
  padding: 4rem 0;
  background: var(--bg-secondary);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.why-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--accent-primary);
  transition: all 0.3s;
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow);
}

.why-card i {
  font-size: 2.5rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.why-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--header-bg) 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn-cta {
  background: white;
  color: var(--accent-primary);
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
}

.btn-cta:hover {
  background: var(--bg-secondary);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* FAQ Section */
.faq-section {
  padding: 4rem 0;
  background: white;
}

.faq-container {
  max-width: 900px;
  margin: 2rem auto 0;
}

.faq-item {
  background: var(--bg-secondary);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.3s;
}

.faq-item:hover {
  border-color: var(--accent-primary);
}

.faq-item.active {
  border-color: var(--accent-primary);
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-primary);
  user-select: none;
}

.faq-question i {
  color: var(--accent-primary);
  transition: transform 0.3s;
}

.faq-item.active .faq-question i {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
}

.faq-answer p {
  padding-bottom: 1.5rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* Footer Enhancements */
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .search-container {
    flex-direction: column;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  
  .benefits-grid, .categories-grid, .why-grid {
    grid-template-columns: 1fr;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
}

/* Category Pages Styles */
.category-hero {
  background: linear-gradient(135deg, var(--header-bg) 0%, var(--accent-primary) 100%);
  color: white;
  padding: 3rem 0;
  text-align: center;
  margin-bottom: 2rem;
}

.category-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.category-subtitle {
  font-size: 1.1rem;
  opacity: 0.95;
}

.category-content-section {
  padding: 2rem 0;
}

.category-intro {
  margin-bottom: 3rem;
  line-height: 1.8;
}

.benefits-list, .highlights-list {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

.benefits-list li, .highlights-list li {
  padding: 0.7rem 0 0.7rem 2.5rem;
  position: relative;
  line-height: 1.6;
}

.benefits-list li:before, .highlights-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
  font-size: 1.3rem;
}

.specializations-grid, .programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.spec-card, .program-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.spec-card:hover, .program-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--shadow);
}

.spec-card i, .program-card i {
  font-size: 2.5rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.spec-card h3, .program-card h4 {
  margin: 0.5rem 0;
  color: var(--text-primary);
}

.fees-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
}

.fees-table th, .fees-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.fees-table th {
  background: var(--accent-primary);
  color: white;
  font-weight: 600;
}

.fees-table tr:last-child td {
  border-bottom: none;
}

.colleges-list {
  margin: 2rem 0;
}

.college-list-card {
  display: flex;
  gap: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.college-list-card:hover {
  box-shadow: 0 8px 20px var(--shadow);
  transform: translateY(-2px);
}

.college-rank {
  min-width: 50px;
  height: 50px;
  background: var(--accent-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  flex-shrink: 0;
}

.college-info {
  flex: 1;
}

.college-info h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
}

.college-info h3 a {
  color: var(--accent-primary);
  text-decoration: none;
}

.college-info h3 a:hover {
  text-decoration: underline;
}

.college-meta {
  display: flex;
  gap: 1.5rem;
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.college-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.college-desc {
  margin: 0.8rem 0;
  line-height: 1.6;
}

.college-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.badge {
  background: var(--accent-primary);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.related-categories {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 8px;
}

.related-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.related-link-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.related-link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--shadow);
  border-color: var(--accent-primary);
}

.related-link-card i {
  font-size: 2rem;
  color: var(--accent-primary);
  display: block;
  margin-bottom: 0.8rem;
}

.related-link-card h3 {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

.related-link-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.category-cta {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--header-bg) 0%, var(--accent-primary) 100%);
  color: white;
  border-radius: 8px;
  margin: 3rem 0;
}

.category-cta h2 {
  margin: 0 0 1rem 0;
  color: white;
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.facility-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.facility-card i {
  font-size: 2.5rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.facility-card h4 {
  margin: 0.5rem 0;
  color: var(--text-primary);
}

.facility-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.contact-box, .cta-box, .info-box {
  background: var(--bg-secondary);
  border-left: 4px solid var(--accent-primary);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
}

.contact-box h3, .cta-box h3 {
  margin-top: 0;
  color: var(--accent-primary);
}

.info-box {
  display: flex;
  gap: 1rem;
  align-items: start;
}

.info-box i {
  font-size: 1.5rem;
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.cta-box {
  text-align: center;
}

.btn-primary {
  display: inline-block;
  background: var(--accent-primary);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.btn-primary:hover {
  background: var(--header-bg);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .category-hero h1 {
    font-size: 1.6rem;
  }
  
  .college-list-card {
    flex-direction: column;
  }
  
  .college-rank {
    align-self: flex-start;
  }
  
  .college-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .specializations-grid, .programs-grid, .facilities-grid {
    grid-template-columns: 1fr;
  }
  
  .related-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

