/* 
   College Vidya Style - Online Degree Education Portal
   Premium CSS Stylesheet
*/

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

/* --- CSS Variables & Design System --- */
:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Color Palette */
  --primary: #4F46E5; /* Indigo */
  --primary-hover: #4338CA;
  --primary-light: #EEF2FF;
  --secondary: #0D9488; /* Teal */
  --secondary-hover: #0F766E;
  --secondary-light: #F0FDF4;
  --accent: #F97316; /* Coral Orange */
  --accent-hover: #EA580C;
  --accent-light: #FFF7ED;

  /* Neutrals */
  --text-main: #0F172A; /* Slate 900 */
  --text-muted: #475569; /* Slate 600 */
  --text-light: #64748B; /* Slate 500 */
  --bg-main: #FAFBFC;
  --bg-card: #FFFFFF;
  --bg-footer: #0B0F19; /* Deep Dark Blue */
  --border-color: #E2E8F0; /* Slate 200 */
  --border-light: #F1F5F9;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-premium: 0 20px 25px -5px rgba(79, 70, 229, 0.1), 0 10px 10px -5px rgba(13, 148, 136, 0.04);
  
  /* Borders & Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  
  /* Transition */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Container */
  --container-max-width: 1280px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* --- Layout Components --- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header / Navigation Bar --- */
header {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition-normal);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.logo-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-main), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-subtext {
  font-weight: 400;
  color: var(--secondary);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}

.btn-secondary {
  background-color: var(--secondary-light);
  color: var(--secondary);
  border: 1px solid rgba(13, 148, 136, 0.2);
}

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

.btn-accent {
  background-color: var(--accent);
  color: white;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.25);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.35);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn-text {
  background-color: transparent;
  color: var(--text-muted);
  padding: 8px 16px;
}

.btn-text:hover {
  color: var(--primary);
}

/* Compare Indicator */
.compare-badge-container {
  position: relative;
  cursor: pointer;
}

.compare-badge {
  background-color: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -8px;
  right: -8px;
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(249, 115, 22, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-main);
}

/* --- Section Views --- */
.view-section {
  display: none; /* Controlled by JavaScript routing */
  padding: 60px 0;
  animation: fadeIn 0.4s var(--transition-normal);
}

.view-section.active {
  display: block;
}

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

/* --- VIEW: HOME PAGE --- */

/* Hero Section */
.hero {
  text-align: center;
  padding: 80px 0 60px 0;
  background: radial-gradient(circle at 80% 20%, rgba(79, 70, 229, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(13, 148, 136, 0.05) 0%, transparent 50%);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.hero-tag {
  display: inline-block;
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  border: 1px solid rgba(79, 70, 229, 0.15);
}

.hero h1 {
  font-size: 3.5rem;
  max-width: 850px;
  margin: 0 auto 24px auto;
  letter-spacing: -0.03em;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px auto;
}

/* Search Bar on Home */
.search-container {
  max-width: 650px;
  margin: 0 auto 40px auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  padding: 8px;
  align-items: center;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  flex: 1;
  padding-left: 16px;
}

.search-input-wrapper i {
  color: var(--text-light);
  margin-right: 12px;
}

.search-container input {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  color: var(--text-main);
}

.search-container input::placeholder {
  color: var(--text-light);
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Popular Degrees section */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.degree-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.degree-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.degree-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition-fast);
}

.degree-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-premium);
  border-color: rgba(79, 70, 229, 0.2);
}

.degree-card:hover::before {
  opacity: 1;
}

.degree-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  transition: var(--transition-fast);
}

.degree-card:hover .degree-icon {
  background-color: var(--primary);
  color: white;
}

.degree-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.degree-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex: 1;
}

.degree-meta {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

.degree-meta span i {
  color: var(--secondary);
  margin-right: 4px;
}

/* Features Grid - why choose online education */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin: 60px 0;
}

.feature-item {
  text-align: center;
  padding: 24px;
}

.feature-badge-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--secondary-light);
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.1);
}

.feature-item h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Testimonials / Stats */
.stats-strip {
  background: linear-gradient(135deg, var(--bg-footer) 0%, #1e1b4b 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  margin: 60px 0;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 32px;
  box-shadow: var(--shadow-lg);
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #FFF, var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Testimonials section */
.reviews-scroller {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.review-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.review-stars {
  color: #FBBF24;
  margin-bottom: 12px;
}

.review-text {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.author-info h4 {
  font-size: 0.95rem;
}

.author-info p {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* --- VIEW: CATALOG (COURSE LISTING) --- */
.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  margin-top: 40px;
}

/* Sidebar Filters */
.catalog-sidebar {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  font-size: 1.2rem;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
}

.filter-clear-btn {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  background: none;
}

.filter-group {
  margin-bottom: 24px;
}

.filter-group h4 {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-checkbox-label:hover {
  color: var(--text-main);
}

.filter-checkbox-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  background-color: white;
}

.filter-checkbox-label input[type="checkbox"]:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.filter-checkbox-label input[type="checkbox"]:checked::after {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: white;
  font-size: 10px;
}

/* Catalog Grid Header */
.catalog-content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.catalog-title h2 {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.catalog-title p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.catalog-sort {
  display: flex;
  align-items: center;
  gap: 10px;
}

.catalog-sort label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.catalog-sort select {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: white;
  cursor: pointer;
}

/* University Cards List */
.universities-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.uni-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  transition: var(--transition-normal);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.uni-card:hover {
  border-color: rgba(79, 70, 229, 0.2);
  box-shadow: var(--shadow-md);
}

.uni-card-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 140px;
}

.uni-logo-badge {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.uni-badge-naac {
  background-color: var(--secondary-light);
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(13, 148, 136, 0.15);
}

.uni-card-middle {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.uni-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.uni-name-row h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

.uni-rating-badge {
  background-color: var(--accent-light);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
}

.uni-rating-badge i {
  font-size: 0.75rem;
}

.uni-approvals-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.uni-approval-tag {
  font-size: 0.75rem;
  color: var(--text-light);
  background-color: var(--border-light);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.03);
}

.uni-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.uni-highlights-row {
  display: flex;
  gap: 20px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.uni-highlight-item {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.uni-highlight-item i {
  color: var(--secondary);
}

.uni-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  min-width: 200px;
  border-left: 1px solid var(--border-light);
  padding-left: 24px;
}

.uni-fee-container {
  text-align: right;
}

.uni-fee-label {
  font-size: 0.75rem;
  color: var(--text-light);
}

.uni-fee-amount {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.uni-fee-sem {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.uni-actions-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
}

.uni-actions-col .btn {
  width: 100%;
  padding: 10px 16px;
  font-size: 0.88rem;
}

/* Compare Checkbox on Card */
.uni-compare-checkbox {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  background-color: var(--border-light);
  padding: 4px 12px;
  border-radius: 100px;
  user-select: none;
  transition: var(--transition-fast);
}

.uni-compare-checkbox:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.uni-compare-checkbox input {
  cursor: pointer;
}

.uni-compare-checkbox.checked {
  background-color: var(--primary);
  color: white;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.no-results i {
  font-size: 3rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.no-results h3 {
  margin-bottom: 8px;
}

.no-results p {
  color: var(--text-muted);
}

/* --- VIEW: COMPARE MATRIX PAGE --- */
.compare-matrix-wrapper {
  overflow-x: auto;
  margin-top: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  background-color: var(--bg-card);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  table-layout: fixed;
  min-width: 800px;
}

.compare-table th, .compare-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

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

.compare-th-label {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
  background-color: var(--bg-main);
  width: 240px;
  border-right: 1px solid var(--border-color);
}

.compare-header-cell {
  background-color: var(--bg-card);
  position: relative;
}

.compare-uni-card-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compare-remove-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  color: var(--text-light);
  cursor: pointer;
  background: none;
  font-size: 1.1rem;
}

.compare-remove-btn:hover {
  color: var(--accent);
}

.compare-uni-name {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.compare-value-cell {
  font-size: 0.95rem;
  color: var(--text-muted);
  border-right: 1px solid var(--border-light);
}

.compare-value-cell:last-child {
  border-right: none;
}

.compare-rating-val {
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
}

.compare-fee-val {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.compare-approvals-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.compare-approval-item {
  font-size: 0.85rem;
  background-color: var(--border-light);
  padding: 4px 10px;
  border-radius: 4px;
  width: fit-content;
}

.compare-features-list {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.compare-features-list li {
  font-size: 0.85rem;
}

.compare-empty-state {
  text-align: center;
  padding: 80px 24px;
}

.compare-empty-state i {
  font-size: 4rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

/* --- FLOATING COMPARE BOTTOM TRAY --- */
.compare-tray {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background-color: var(--bg-card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 0 1px 1px rgba(0, 0, 0, 0.05);
  border-radius: 100px;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 99;
  transition: var(--transition-slow);
  border: 1px solid rgba(79, 70, 229, 0.15);
  max-width: 90%;
}

.compare-tray.show {
  transform: translateX(-50%) translateY(0);
}

.compare-tray-items {
  display: flex;
  align-items: center;
  gap: 16px;
}

.compare-tray-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.compare-pill {
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(79, 70, 229, 0.1);
}

.compare-pill button {
  background: none;
  color: var(--primary);
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.compare-pill button:hover {
  color: var(--accent);
}


/* --- VIEW: UNIVERSITY DETAIL MODAL --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeInModal 0.3s var(--transition-normal);
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content-container {
  background-color: var(--bg-card);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: slideInModal 0.3s var(--transition-normal);
}

@keyframes slideInModal {
  from { transform: translateY(40px) scale(0.95); }
  to { transform: translateY(0) scale(1); }
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: white;
  color: var(--text-main);
  transform: rotate(90deg);
}

.modal-hero-banner {
  background: linear-gradient(135deg, var(--bg-footer) 0%, #1e1b4b 100%);
  color: white;
  padding: 60px 40px 40px 40px;
  position: relative;
}

.modal-hero-banner h2 {
  color: white;
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.modal-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.modal-hero-meta span {
  font-size: 0.9rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-hero-meta span i {
  color: var(--secondary);
}

/* Modal Tabs Navigation */
.modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-main);
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 2;
}

.modal-tab-btn {
  padding: 16px 24px;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: var(--transition-fast);
}

.modal-tab-btn:hover {
  color: var(--primary);
}

.modal-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.modal-tab-content-wrapper {
  padding: 40px;
}

.modal-tab-pane {
  display: none;
}

.modal-tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

/* Detail specific styling */
.overview-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.detail-section-title {
  font-size: 1.3rem;
  margin-bottom: 16px;
  border-left: 4px solid var(--primary);
  padding-left: 12px;
}

.features-list-detail {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.features-list-detail li {
  position: relative;
  padding-left: 28px;
}

.features-list-detail li::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--secondary);
}

.partners-logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.partner-logo-item {
  background-color: var(--border-light);
  padding: 10px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

/* Sidebar Call to Action Box */
.detail-cta-box {
  background-color: var(--primary-light);
  border: 1px solid rgba(79, 70, 229, 0.15);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: fit-content;
}

.detail-cta-box h3 {
  font-size: 1.1rem;
}

.detail-cta-box form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-cta-box form input {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.fee-table th, .fee-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
}

.fee-table th {
  font-weight: 700;
  color: var(--text-main);
  background-color: var(--bg-main);
}

/* Dynamic Add Review Form styling */
.reviews-tab-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.add-review-section {
  background-color: var(--bg-main);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.add-review-section form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.rating-select-wrapper {
  display: flex;
  gap: 8px;
  align-items: center;
}

.rating-star-btn {
  background: none;
  font-size: 1.5rem;
  color: var(--border-color);
  cursor: pointer;
  transition: var(--transition-fast);
}

.rating-star-btn.selected, .rating-star-btn:hover {
  color: #FBBF24;
}

/* --- FOOTER --- */
footer {
  background-color: var(--bg-footer);
  color: white;
  padding: 80px 0 40px 0;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand-col .logo-text {
  background: linear-gradient(135deg, white, var(--secondary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-desc {
  color: var(--text-light);
  font-size: 0.95rem;
}

.footer-links-col h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 24px;
  font-family: var(--font-heading);
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-col ul li a {
  color: var(--text-light);
  font-size: 0.95rem;
  cursor: pointer;
}

.footer-links-col ul li a:hover {
  color: white;
  padding-left: 4px;
}

.footer-newsletter-col h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-newsletter-col p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  flex: 1;
  background-color: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
}

.newsletter-form input:focus {
  border-color: var(--primary);
  background-color: rgba(255,255,255,0.1);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-light);
  font-size: 0.88rem;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.social-icon:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

/* --- NAVIGATION BLOG SEARCH STYLES --- */
.nav-search-wrapper {
  display: flex;
  align-items: center;
  background-color: var(--border-light);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  padding: 6px 14px;
  width: 200px;
  position: relative;
  transition: all var(--transition-normal);
  margin-left: 20px;
}

.nav-search-wrapper:hover,
.nav-search-wrapper:focus-within {
  width: 250px;
  background-color: white;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.nav-search-icon {
  color: var(--text-light);
  font-size: 0.88rem;
  margin-right: 8px;
}

#nav-blog-search {
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  color: var(--text-main);
  font-size: 0.88rem;
}

#nav-blog-search::placeholder {
  color: var(--text-light);
}

.nav-search-clear-btn {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 2px;
  font-size: 0.8rem;
  transition: color var(--transition-fast);
}

.nav-search-clear-btn:hover {
  color: var(--accent);
}

.mobile-search-item {
  display: none;
  width: 100%;
}

/* --- BLOG PAGE GENERAL STYLES --- */
.blog-hero-banner {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.04) 0%, rgba(13, 148, 136, 0.04) 100%);
  border: 1px solid rgba(79, 70, 229, 0.1);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  margin-bottom: 40px;
  text-align: center;
}

.blog-hero-banner h1 {
  font-size: 2.6rem;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.blog-hero-banner p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.blog-main-content {
  display: flex;
  flex-direction: column;
}

.blog-search-status {
  background-color: var(--primary-light);
  border: 1px solid rgba(79, 70, 229, 0.15);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.blog-search-status span {
  font-weight: 500;
  color: var(--text-muted);
}

.blog-search-status strong {
  color: var(--primary);
}

.blog-search-clear-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-search-clear-btn:hover {
  color: var(--accent-hover);
}

.blog-posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Blog Cards */
.blog-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 70, 229, 0.2);
  box-shadow: var(--shadow-md);
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.blog-card-category {
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.blog-card-readtime {
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}

.blog-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
  margin-top: 8px;
  font-size: 0.8rem;
}

.blog-card-author {
  font-weight: 600;
  color: var(--text-main);
  display: none;
}

.blog-card-date {
  color: var(--text-light);
}

.blog-card-more-btn {
  color: var(--primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
}

.blog-card:hover .blog-card-more-btn {
  color: var(--primary-hover);
  gap: 8px;
}

/* Blog Sidebar */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.blog-sidebar-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.blog-sidebar-card h3 {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.blog-categories-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.blog-category-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.blog-category-btn:hover,
.blog-category-btn.active {
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.blog-category-btn i {
  font-size: 0.75rem;
  opacity: 0.5;
  transition: transform var(--transition-fast);
}

.blog-category-btn:hover i {
  transform: translateX(3px);
  opacity: 0.8;
}

.blog-category-btn.active i {
  opacity: 1;
  color: var(--primary);
}

.blog-popular-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-popular-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
}

.blog-popular-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.blog-popular-item h4 {
  font-size: 0.92rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--text-main);
  transition: color var(--transition-fast);
}

.blog-popular-item:hover h4 {
  color: var(--primary);
}

.blog-popular-item span {
  font-size: 0.75rem;
  color: var(--text-light);
}

.blog-sidebar-promo {
  background: linear-gradient(135deg, var(--secondary-light) 0%, rgba(13, 148, 136, 0.02) 100%);
  border: 1px solid rgba(13, 148, 136, 0.15);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.blog-sidebar-promo i {
  font-size: 2.2rem;
  color: var(--secondary);
}

.blog-sidebar-promo h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.blog-sidebar-promo p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.blog-sidebar-promo .btn {
  width: 100%;
  padding: 10px;
  font-size: 0.85rem;
  margin-top: 8px;
}

/* --- BLOG DETAIL PAGE STYLES --- */
.blog-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  margin-bottom: 24px;
  transition: all var(--transition-fast);
}

.blog-back-btn:hover {
  color: var(--primary);
  transform: translateX(-4px);
}

.blog-article-wrapper {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 48px;
}

.blog-article-meta-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.blog-article-category-tag {
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.blog-article-read-time {
  color: var(--text-light);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-article-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.blog-article-author-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.blog-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.blog-author-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.blog-author-info p {
  font-size: 0.8rem;
  color: var(--text-light);
}

#blog-article-avatar, #blog-article-author {
  display: none !important;
}

.blog-article-content-body {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.blog-article-content-body p {
  margin-bottom: 20px;
}

.blog-article-content-body h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 36px 0 16px 0;
}

.blog-article-content-body ul,
.blog-article-content-body ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.blog-article-content-body li {
  margin-bottom: 8px;
}

.blog-article-content-body strong {
  color: var(--text-main);
}

.related-posts-section {
  margin-top: 48px;
}

.related-posts-section h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  border-left: 4px solid var(--primary);
  padding-left: 12px;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* --- RESPONSIVE MEDIA QUERIES --- */

@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .catalog-sidebar {
    position: static;
  }
  .uni-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .uni-card-left {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 16px;
  }
  .uni-card-right {
    border-left: none;
    border-top: 1px solid var(--border-light);
    padding-left: 0;
    padding-top: 16px;
    align-items: flex-start;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    height: 70px;
  }
  .nav-menu {
    display: none; /* Can implement dynamic toggle */
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: white;
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.show {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .compare-th-label {
    width: 160px;
  }
  .compare-tray {
    flex-direction: column;
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    gap: 12px;
  }
  .compare-tray-items {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* --- REDESIGNED HEAD-TO-HEAD COMPARE STYLES --- */

/* Hero Banner */
.compare-hero {
  position: relative;
  background-color: #0f172a; /* Slate 900 */
  padding: 80px 24px 64px 24px;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}

.compare-hero-blobs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.compare-blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  filter: blur(120px);
  opacity: 0.15;
}

.blob-left {
  top: -50%;
  left: -10%;
  width: 50vw;
  height: 100vh;
  background-color: #4f46e5; /* Indigo */
}

.blob-right {
  bottom: -20%;
  right: -10%;
  width: 60vw;
  height: 100vh;
  background-color: #3b82f6; /* Blue */
}

.compare-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.compare-badge-tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background-color: rgba(79, 70, 229, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc; /* Indigo 300 */
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.compare-hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.compare-hero-content p {
  font-size: 1.125rem;
  color: #cbd5e1; /* Slate 300 */
  max-width: 600px;
  margin: 0 auto;
  font-weight: 500;
}

/* Main Container */
.compare-main-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 80px 24px;
  position: relative;
  z-index: 2;
}

/* Selectors Grid */
.compare-selectors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: -32px;
  margin-bottom: 40px;
}

.compare-select-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border-color);
}

.compare-select-card label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8; /* Slate 400 */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.select-wrapper {
  position: relative;
  width: 100%;
}

.compare-dropdown {
  width: 100%;
  background-color: #f8fafc; /* Slate 50 */
  border: 1px solid #e2e8f0; /* Slate 200 */
  color: #1e293b; /* Slate 800 */
  font-size: 1.125rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: var(--font-heading);
}

.compare-dropdown:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

.select-wrapper::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
  font-size: 0.85rem;
}

/* Charts Card */
.compare-charts-card {
  background-color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.05), 0 10px 10px -5px rgba(15, 23, 42, 0.03);
  border: 1px solid var(--border-color);
  margin-bottom: 40px;
}

.compare-charts-card h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}

.compare-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.chart-box {
  background-color: #f8fafc; /* Slate 50 */
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid #f1f5f9;
}

.chart-box-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #334155; /* Slate 700 */
  margin-bottom: 24px;
}

.chart-bars-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.chart-bar-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chart-bar-label-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.chart-bar-uni-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}

.chart-bar-value {
  font-size: 0.95rem;
  font-weight: 800;
}

.chart-bar-value.salary {
  color: #4f46e5; /* Indigo */
}

.chart-bar-value.fee {
  color: #e11d48; /* Rose */
}

.chart-bar-track {
  width: 100%;
  height: 12px;
  background-color: #e2e8f0; /* Slate 200 */
  border-radius: 100px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
}

.chart-bar-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  width: 0; /* Animated via JS */
}

/* Gradients for bars */
.fill-salary-1 {
  background: linear-gradient(90deg, #f97316, #f59e0b); /* Orange to Amber */
}

.fill-salary-2 {
  background: linear-gradient(90deg, #ef4444, #f43f5e); /* Red to Rose */
}

.fill-fee {
  background: linear-gradient(90deg, #f43f5e, #be123c); /* Rose to Dark Rose */
}

.chart-caption {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
  margin-top: 16px;
}

/* Compare Matrix Wrapper */
.compare-matrix-wrapper-outer {
  background-color: #ffffff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.05), 0 10px 10px -5px rgba(15, 23, 42, 0.03);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  table-layout: fixed;
}

.compare-table th, 
.compare-table td {
  padding: 24px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

/* Left Label column */
.compare-table th:first-child,
.compare-table td:first-child {
  width: 25%;
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b; /* Slate 500 */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: #f8fafc; /* Slate 50 background */
  border-right: 1px solid #e2e8f0;
}

/* University A & B columns */
.compare-table th:nth-child(2),
.compare-table td:nth-child(2) {
  width: 37.5%;
  border-right: 1px solid #f1f5f9;
}

.compare-table th:nth-child(3),
.compare-table td:nth-child(3) {
  width: 37.5%;
  background-color: rgba(79, 70, 229, 0.02); /* Indigo tint columns */
}

/* Header Cells */
.compare-header-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.compare-header-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.compare-header-info h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.compare-header-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #d97706; /* Dark Amber */
  margin-top: 4px;
}

/* Emerald Accreditation Badges */
.compare-emerald-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #ecfdf5; /* Emerald 50 */
  color: #065f46; /* Emerald 800 */
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
}

.compare-emerald-tag svg {
  color: #059669;
}

.compare-detail-fee {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-heading);
}

.compare-sem-fee {
  font-size: 1rem;
  font-weight: 600;
  color: #475569;
}

.compare-pkg-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0d9488;
}

.compare-approval-bubble-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.compare-approval-bubble {
  background-color: #f1f5f9;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.compare-features-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 0;
}

.compare-features-bullet-list li {
  font-size: 0.85rem;
  color: #334155;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.compare-features-bullet-list li i {
  color: var(--secondary);
  font-size: 0.85rem;
  margin-top: 4px;
}

/* Actions in rows */
.compare-actions-cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 240px;
}

.compare-actions-cell .btn {
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
}

/* Responsive Overrides */
@media (max-width: 900px) {
  .compare-selectors-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: -16px;
  }
  .compare-charts-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .compare-hero-content h1 {
    font-size: 2rem;
  }
  .compare-table th:first-child,
  .compare-table td:first-child {
    width: 130px;
  }
}

/* --- BLOG RESPONSIVE STYLES --- */
@media (max-width: 1024px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  #nav-search-wrapper {
    display: none; /* Hide desktop search */
  }
  .mobile-search-item {
    display: block; /* Show mobile search in hamburger dropdown */
  }
  .mobile-search-wrapper {
    display: flex;
    align-items: center;
    background-color: var(--border-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    width: 100%;
  }
  .mobile-search-icon {
    color: var(--text-light);
    font-size: 0.88rem;
    margin-right: 8px;
  }
  #mobile-blog-search {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    color: var(--text-main);
    font-size: 0.88rem;
  }
  .blog-posts-grid {
    grid-template-columns: 1fr;
  }
  .blog-article-wrapper {
    padding: 24px;
  }
  .blog-article-title {
    font-size: 1.8rem;
  }
}

/* --- TELEPHONE & HEADER / FOOTER CONTACT STYLES --- */
.nav-phone-item {
  margin-left: 8px;
}
.nav-phone-link {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--secondary-light), rgba(13, 148, 136, 0.08));
  color: var(--secondary) !important;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid rgba(13, 148, 136, 0.15);
  transition: all var(--transition-fast);
}
.nav-phone-link:hover {
  background: var(--secondary);
  color: white !important;
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.2);
  transform: translateY(-1px);
}
.footer-contact-info {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-contact-info p {
  color: var(--text-light);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-contact-info a {
  color: white;
  font-weight: 600;
  transition: var(--transition-fast);
}
.footer-contact-info a:hover {
  color: var(--secondary);
}

/* --- VIEW: CONTACT US PAGE --- */
.contact-header {
  text-align: center;
  margin-bottom: 48px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.contact-header h1 {
  font-size: 2.8rem;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.contact-header h1 span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.contact-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 40px;
  align-items: start;
}

/* Left Column Panels */
.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}
.info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(79, 70, 229, 0.15);
}

.info-card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.info-card-details h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--text-main);
}
.info-card-details p {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.info-card-details .info-highlight {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--primary);
  margin-bottom: 4px;
}
.info-card-details .info-highlight a {
  color: var(--primary);
  transition: var(--transition-fast);
}
.info-card-details .info-highlight a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* FAQ Section */
.faqs-card {
  flex-direction: column;
  gap: 16px;
}
.faqs-card h3 {
  font-size: 1.25rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
  margin-bottom: 8px;
}

.contact-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--bg-main);
}
.accordion-title {
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color var(--transition-fast);
}
.accordion-title:hover {
  background-color: var(--primary-light);
}
.accordion-title i {
  font-size: 0.8rem;
  color: var(--text-light);
  transition: transform var(--transition-fast);
}
.accordion-item.open .accordion-title i {
  transform: rotate(180deg);
}
.accordion-content {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
}
.accordion-item.open .accordion-content {
  padding: 14px 18px;
  max-height: 150px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-card);
}

/* Right Column Form Panel */
.contact-form-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.contact-form-panel h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: var(--text-main);
}
.contact-form-panel > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

/* Premium Form Controls */
.premium-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}
.input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--bg-main);
  transition: all var(--transition-fast);
  position: relative;
  padding: 0 14px;
}
.input-wrapper i {
  color: var(--text-light);
  margin-right: 12px;
  font-size: 0.95rem;
}
.input-wrapper input,
.input-wrapper select {
  flex: 1;
  padding: 12px 0;
  background: transparent;
  color: var(--text-main);
  font-size: 0.92rem;
}
.input-wrapper input::placeholder {
  color: var(--text-light);
}

.premium-form textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.92rem;
  resize: none;
  transition: all var(--transition-fast);
}

/* Focus states */
.input-wrapper:focus-within,
.premium-form textarea:focus {
  border-color: var(--primary);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}
.input-wrapper:focus-within i {
  color: var(--primary);
}

.btn-block {
  width: 100%;
  justify-content: center;
  padding: 14px 24px;
  font-size: 1rem;
}

/* Success State */
.contact-success-card {
  text-align: center;
  padding: 30px 10px;
  animation: scaleIn 0.4s var(--transition-normal);
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.success-icon {
  font-size: 4rem;
  color: var(--secondary);
  margin-bottom: 20px;
  animation: bounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); opacity: 0.8; }
  70% { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1); opacity: 1; }
}

.contact-success-card h3 {
  font-size: 1.8rem;
  color: var(--text-main);
  margin-bottom: 12px;
}
.contact-success-card p {
  color: var(--text-muted);
  max-width: 450px;
  margin: 0 auto 24px auto;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Responsive Contact Grid */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-header h1 {
    font-size: 2.2rem;
  }
}
@media (max-width: 600px) {
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .contact-form-panel {
    padding: 24px;
  }
}

/* Modal overlay */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
  background: rgba(255,255,255,0.9);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: slideUp 0.3s ease-out;
}
@keyframes slideUp { from { transform: translateY(20px); } to { transform: translateY(0); } }

.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

/* Adjust form width inside modal */
.modal-content .premium-form .form-group {
  width: 100%;
}

/* Success card overrides */
.modal-content .contact-success-card {
  text-align: center;
}

/* ============================================================
   AI CHATBOT WIDGET — OnlineDegrees Lead Generation Bot
   ============================================================ */

/* Widget Container */
.od-chatbot-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-family: var(--font-body);
}

/* ---- Greeting Bubble ---- */
.od-chat-greeting {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 16px 16px 4px 16px;
  padding: 14px 16px;
  max-width: 280px;
  box-shadow: 0 8px 30px rgba(79, 70, 229, 0.15), 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  animation: od-slideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.od-chat-greeting:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(79, 70, 229, 0.2), 0 4px 12px rgba(0,0,0,0.1);
}

.od-chat-greeting p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.od-chat-greeting p strong {
  color: var(--primary);
}

.od-greeting-close {
  font-size: 0.75rem;
  color: var(--text-light);
  cursor: pointer;
  margin-left: 4px;
  flex-shrink: 0;
  align-self: flex-start;
  padding: 2px 4px;
  border-radius: 4px;
  transition: background 0.15s;
}

.od-greeting-close:hover {
  background: var(--border-light);
}

/* ---- Floating Toggle Button ---- */
.od-chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(79, 70, 229, 0.4), 0 2px 8px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  position: relative;
  animation: od-popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
}

.od-chat-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 32px rgba(79, 70, 229, 0.5);
}

.od-chat-toggle:active {
  transform: scale(0.95);
}

.od-toggle--active {
  background: linear-gradient(135deg, #1e1b4b, #4c1d95) !important;
}

.od-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Pulse ring animation on toggle */
.od-chat-toggle::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(79, 70, 229, 0.4);
  animation: od-pulseRing 2.5s ease-out infinite;
}

.od-toggle--active::before {
  display: none;
}

@keyframes od-pulseRing {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ---- Badge ---- */
.od-chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  animation: od-badgePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes od-badgePop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

/* ---- Chat Window ---- */
.od-chat-window {
  width: 370px;
  height: 560px;
  max-height: 80vh;
  background: white;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(79, 70, 229, 0.15), 0 8px 24px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: od-slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(79, 70, 229, 0.1);
}

@keyframes od-slideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes od-slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes od-popIn {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

/* ---- Chat Header ---- */
.od-chat-header {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.od-chat-header::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.od-chat-header::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 40px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.od-chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1;
}

.od-bot-avatar-header {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: white;
  border: 2px solid rgba(255,255,255,0.4);
  position: relative;
  flex-shrink: 0;
}

.od-online-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid white;
  animation: od-onlinePulse 2s ease-in-out infinite;
}

@keyframes od-onlinePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.od-header-text h4 {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 2px 0;
}

.od-header-text p {
  color: rgba(255,255,255,0.75);
  font-size: 0.78rem;
  margin: 0;
}

.od-status-text {
  color: #86efac;
  font-weight: 600;
}

.od-header-actions {
  z-index: 1;
}

.od-icon-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background 0.2s ease;
}

.od-icon-btn:hover {
  background: rgba(255,255,255,0.28);
}

/* ---- Messages Area ---- */
.od-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8faff;
  scroll-behavior: smooth;
}

.od-messages::-webkit-scrollbar {
  width: 4px;
}

.od-messages::-webkit-scrollbar-track {
  background: transparent;
}

.od-messages::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

/* ---- Message Bubbles ---- */
.od-message {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.od-message--visible {
  opacity: 1;
  transform: translateY(0);
}

.od-message--user {
  flex-direction: row-reverse;
  opacity: 1;
  transform: translateY(0);
}

.od-bot-avatar-small {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.7rem;
  color: white;
  flex-shrink: 0;
}

.od-message-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.875rem;
  line-height: 1.55;
  word-break: break-word;
}

.od-message-bubble--bot {
  background: white;
  color: var(--text-main);
  border-radius: 4px 16px 16px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.06);
}

.od-message-bubble--bot a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
}

.od-message-bubble--bot a:hover {
  color: var(--primary-hover);
}

.od-message-bubble--user {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: white;
  border-radius: 16px 4px 16px 16px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* ---- Typing Indicator ---- */
.od-typing-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px;
  flex-shrink: 0;
  background: #f8faff;
}

.od-typing-dots {
  display: flex;
  align-items: center;
  gap: 5px;
  background: white;
  padding: 10px 14px;
  border-radius: 4px 16px 16px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
}

.od-typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.4;
  animation: od-bounce 1.2s ease-in-out infinite;
  display: block;
}

.od-typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.od-typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes od-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* ---- Quick Reply Buttons ---- */
.od-quick-replies {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 16px;
  background: #f8faff;
  border-top: 1px solid rgba(0,0,0,0.05);
  animation: od-fadeIn 0.25s ease;
}

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

.od-quick-reply-btn {
  background: white;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: var(--font-body);
}

.od-quick-reply-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* ---- Input Area ---- */
.od-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: white;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}

.od-chat-input {
  flex: 1;
  background: var(--bg-main);
  border: 1.5px solid var(--border-color);
  border-radius: 24px;
  padding: 10px 16px;
  font-size: 0.875rem;
  color: var(--text-main);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: var(--font-body);
}

.od-chat-input::placeholder {
  color: var(--text-light);
}

.od-chat-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
  background: white;
}

.od-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.od-send-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.45);
}

.od-send-btn:active {
  transform: scale(0.95);
}

/* ---- Chat Footer ---- */
.od-chat-footer {
  background: white;
  border-top: 1px solid var(--border-light);
  text-align: center;
  padding: 6px 16px 8px;
  font-size: 0.72rem;
  color: var(--text-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.od-chat-footer i {
  color: #22c55e;
  font-size: 0.68rem;
}

/* ---- Mobile Responsive ---- */
@media (max-width: 480px) {
  .od-chatbot-widget {
    bottom: 16px;
    right: 16px;
  }

  .od-chat-window {
    width: calc(100vw - 32px);
    height: 70vh;
    border-radius: 16px;
  }

  .od-chat-greeting {
    max-width: 240px;
  }

  .od-chat-toggle {
    width: 54px;
    height: 54px;
    font-size: 1.2rem;
  }
}

