/* ==========================================================================
   KERALASTUDYWAYS - STYLESHEET
   Education College Consultancy
   Theme: Trustworthy, Academic, Modern, Emerald-Teal & Navy Blue
   ========================================================================== */

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

:root {
  --primary: #0f172a;       /* Deep Navy */
  --primary-light: #1e293b; /* Medium Navy */
  --secondary: #0d9488;     /* Emerald Teal */
  --secondary-hover: #0f766e;
  --accent: #d97706;        /* Warm Gold/Amber */
  --accent-hover: #b45309;
  --bg-light: #f8fafc;      /* Light Off-white */
  --bg-white: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #f1f5f9;
  --border-color: #e2e8f0;
  
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition: all 0.3s ease;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --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-primary: 0 4px 20px rgba(13, 148, 136, 0.15);
  
  --border-radius: 12px;
  --border-radius-sm: 6px;
  --border-radius-lg: 24px;
}

/* 2. Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 600;
  line-height: 1.3;
}

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

ul {
  list-style: none;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: 1px solid var(--border-color);
}

button {
  cursor: pointer;
  background: none;
  transition: var(--transition);
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-weight: 500;
  border-radius: var(--border-radius);
  transition: var(--transition);
  gap: 8px;
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--bg-white);
  border: none;
}

.btn-primary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--bg-white);
  border: none;
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

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

.btn-outline:hover {
  background-color: var(--secondary);
  color: var(--bg-white);
}

/* Badge Styles */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-secondary {
  background-color: rgba(13, 148, 136, 0.1);
  color: var(--secondary);
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px auto;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-top: 10px;
  margin-bottom: 15px;
  position: relative;
}

.section-header p {
  color: var(--text-muted);
}

/* 3. Header & Navigation */
.header-top {
  background-color: var(--primary);
  color: var(--text-light);
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-top-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-top-info {
  display: flex;
  gap: 20px;
}

.header-top-info li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-top-info a:hover {
  color: var(--secondary);
}

.header-top-socials {
  display: flex;
  gap: 15px;
}

.header-top-socials a:hover {
  color: var(--secondary);
}

/* Main Navigation */
.main-header {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.main-header.scrolled {
  box-shadow: var(--shadow-md);
  padding: 10px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  gap: 16px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo span {
  color: var(--secondary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: nowrap;
}

.nav-link {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--primary-light);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

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

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

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-cta .btn {
  white-space: nowrap;
  padding: 10px 18px;
  font-size: 0.88rem;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
}

/* Mobile Sidebar Overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background-color: var(--bg-white);
  z-index: 1001;
  box-shadow: var(--shadow-lg);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-nav-close {
  font-size: 1.5rem;
  color: var(--text-muted);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu .nav-link {
  font-size: 1.1rem;
}

.mobile-nav-cta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.6);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* 4. Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9)), url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?q=80&w=1470&auto=format&fit=crop') no-repeat center center/cover;
  padding: 140px 0 100px 0;
  color: var(--bg-white);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to top, var(--bg-light), transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.hero-content h1 {
  color: var(--bg-white);
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-content h1 span {
  background: linear-gradient(45deg, #2dd4bf, #0d9488);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.125rem;
  color: #cbd5e1;
  margin-bottom: 35px;
  max-width: 540px;
}

.hero-trust-badges {
  display: flex;
  gap: 30px;
  margin-top: 40px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-badge i {
  font-size: 2rem;
  color: var(--secondary);
}

.trust-badge span {
  font-size: 0.9rem;
  font-weight: 500;
  color: #e2e8f0;
}

/* Quick Search Widget */
.hero-widget {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  color: var(--text-dark);
}

.hero-widget h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.hero-widget p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.widget-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.form-group select, .form-group input {
  padding: 12px;
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  font-size: 0.95rem;
  width: 100%;
}

.form-group select:focus, .form-group input:focus {
  border-color: var(--secondary);
  background-color: var(--bg-white);
}

/* 5. Statistics Banner */
.stats-bar {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-md);
  margin-top: -40px;
  position: relative;
  z-index: 10;
  border-radius: var(--border-radius);
  padding: 30px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item {
  border-right: 1px solid var(--border-color);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary);
  font-family: var(--font-heading);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* 6. Feature Cards (Services / Streams) */
.stream-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.stream-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stream-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.stream-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.stream-card:hover::before {
  transform: scaleX(1);
}

.stream-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(13, 148, 136, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  font-size: 1.75rem;
  color: var(--secondary);
  transition: var(--transition);
}

.stream-card:hover .stream-icon {
  background-color: var(--secondary);
  color: var(--bg-white);
  transform: rotateY(360deg);
}

.stream-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.stream-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.stream-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stream-link:hover {
  gap: 10px;
}

/* 7. Colleges Directory Dashboard (Filter page) */
.colleges-dashboard {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  margin-top: 30px;
}

.filter-sidebar {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.filter-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.clear-filters-btn {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 500;
}

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

.filter-section-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.checkbox-label input {
  width: 16px;
  height: 16px;
  accent-color: var(--secondary);
  cursor: pointer;
}

/* Main College Listing Area */
.listing-area {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.search-results-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-white);
  padding: 15px 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.search-results-count {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.search-bar-wrapper {
  position: relative;
  width: 320px;
}

.search-bar-wrapper input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
  background-color: var(--bg-light);
  transition: var(--transition);
}

.search-bar-wrapper input:focus {
  border-color: var(--secondary);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.search-bar-wrapper i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* College Cards Grid */
.college-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.college-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.college-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(13, 148, 136, 0.2);
}

.college-img-wrapper {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.college-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.college-card:hover .college-img-wrapper img {
  transform: scale(1.05);
}

.college-featured-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--secondary);
  color: var(--bg-white);
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  z-index: 1;
}

.college-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.college-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
}

.college-location i {
  color: var(--secondary);
}

.college-title {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--primary);
  line-height: 1.4;
}

.college-meta-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  margin-bottom: 16px;
  font-size: 0.85rem;
}

.college-detail-item {
  display: flex;
  justify-content: space-between;
}

.college-detail-label {
  color: var(--text-muted);
}

.college-detail-value {
  font-weight: 600;
  color: var(--text-dark);
}

.college-cta-wrapper {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* 8. Modern Modals & Forms */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  width: 100%;
  max-width: 550px;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(-50px);
  transition: var(--transition);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  z-index: 10;
}

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

.modal-header-banner {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--bg-white);
  padding: 30px;
}

.modal-header-banner h3 {
  color: var(--bg-white);
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.modal-header-banner p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.modal-body {
  padding: 30px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

/* 9. Steps Checklist (How It Works) */
.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
}

.steps-container::after {
  content: '';
  position: absolute;
  top: 55px;
  left: 15%;
  right: 15%;
  height: 2px;
  background-color: var(--border-color);
  z-index: 1;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: var(--bg-white);
  border: 4px solid var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--secondary);
  margin: 0 auto 20px auto;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.step-card:hover .step-number {
  background-color: var(--secondary);
  color: var(--bg-white);
  transform: scale(1.1);
}

.step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 250px;
  margin: 0 auto;
}

/* 10. FAQ Accordions (Vanilla JS styling) */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  user-select: none;
}

.faq-question i {
  color: var(--secondary);
  transition: var(--transition);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-item.active {
  border-color: var(--secondary);
  box-shadow: var(--shadow-sm);
}

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

.faq-item.active .faq-answer {
  max-height: 200px; /* arbitrary height to slide down */
  padding: 0 20px 20px 20px;
}

/* 11. Testimonials Slider */
.testimonial-wrapper {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.testimonial-slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
  min-width: 100%;
  padding: 40px;
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  text-align: center;
  position: relative;
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px auto;
  border: 3px solid var(--secondary);
}

.testimonial-rating {
  color: var(--accent);
  margin-bottom: 15px;
}

.testimonial-quote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 20px;
  position: relative;
}

.testimonial-author h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.testimonial-author p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.testimonial-dot.active {
  background-color: var(--secondary);
  width: 24px;
  border-radius: 10px;
}

/* 12. Contact Form & Details Page Grid */
.contact-section-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
}

.contact-card-box {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-info-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-sm);
  background-color: rgba(13, 148, 136, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--secondary);
  flex-shrink: 0;
}

.contact-info-details h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.contact-info-details p, .contact-info-details a {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.map-container {
  margin-top: 30px;
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 250px;
  border: 1px solid var(--border-color);
}

/* Loan Page Checklist */
.loan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

.checklist-box {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 35px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.checklist-box h3 {
  font-size: 1.35rem;
  margin-bottom: 20px;
}

.loan-checklist {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.loan-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
}

.loan-checklist li i {
  color: var(--secondary);
  font-size: 1.2rem;
  margin-top: 2px;
}

/* 13. Blog List & Cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.blog-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  gap: 15px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-title {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--primary);
  line-height: 1.4;
}

.blog-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.blog-more-btn {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

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

/* 14. Footer Layout */
.footer {
  background-color: var(--primary);
  color: #cbd5e1;
  padding: 80px 0 30px 0;
  font-size: 0.95rem;
  border-top: 4px solid var(--secondary);
}

.footer h3, .footer h4 {
  color: var(--bg-white);
  margin-bottom: 24px;
}

.footer h4 {
  font-size: 1.15rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-about p {
  margin: 15px 0 25px 0;
  font-size: 0.9rem;
}

.footer-social-icons {
  display: flex;
  gap: 15px;
}

.footer-social-icons a {
  width: 38px;
  height: 38px;
  background-color: rgba(255,255,255,0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  transition: var(--transition);
}

.footer-social-icons a:hover {
  background-color: var(--secondary);
  color: var(--bg-white);
  transform: translateY(-3px);
}

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

.footer-links-list a {
  color: #cbd5e1;
}

.footer-links-list a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-contact-list li {
  display: flex;
  gap: 12px;
}

.footer-contact-list i {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #25d366;
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  z-index: 998;
  transition: var(--transition);
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
}

/* 15. Responsive Queries */
@media (max-width: 1200px) {
  .nav-menu {
    gap: 16px;
  }
  .nav-link {
    font-size: 0.88rem;
  }
  .nav-cta {
    gap: 8px;
  }
}

@media (max-width: 992px) {
  .nav-menu, .nav-cta {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-content {
    text-align: center;
  }
  .hero-content p {
    margin: 0 auto 35px auto;
  }
  .hero-trust-badges {
    justify-content: center;
  }
  .colleges-dashboard {
    grid-template-columns: 1fr;
  }
  .filter-sidebar {
    position: static;
    margin-bottom: 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
  .section-header h2 {
    font-size: 1.8rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2) {
    border-right: none;
  }
  .steps-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .steps-container::after {
    display: none;
  }
  .contact-section-grid {
    grid-template-columns: 1fr;
  }
  .loan-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.25rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
  }
  .stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  /* WhatsApp button – keep inside viewport on small screens */
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
    font-size: 1.7rem;
  }
}

/* ==========================================================================
   DYNAMIC SCROLL REVEAL & STYLISH ANIMATIONS
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Staggered Delays for Grid Elements */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Dynamic Card Glow Effects on Hover */
.stream-card:hover, .college-card:hover, .blog-card:hover {
  box-shadow: 0 10px 25px -5px rgba(13, 148, 136, 0.25), 0 8px 16px -6px rgba(13, 148, 136, 0.15);
}

/* Glassmorphism Hero Search Widget */
.hero-widget {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Micro-interactions for buttons */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::after {
  width: 250%;
  height: 250%;
}

/* ==========================================================================
   FUTURISTIC & PREMIUM ACCENTS
   ========================================================================== */

/* 1. Background Glow Spheres */
.glow-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
  animation: drift 20s infinite alternate ease-in-out;
}

.glow-sphere-primary {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
  top: 10%;
  left: -10%;
}

.glow-sphere-secondary {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
  bottom: 10%;
  right: -10%;
  animation-delay: -5s;
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 30px) scale(1.1); }
}

/* 2. Dotted Mesh Overlay */
.mesh-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 1;
}

/* 3. Gradient Text Header */
.gradient-text {
  background: linear-gradient(135deg, #2dd4bf 0%, #0d9488 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 4. Career Planner Console */
.console-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  margin-top: 40px;
  align-items: stretch;
}

.console-tabs {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.console-tab-btn {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  padding: 20px 24px;
  border-radius: var(--border-radius);
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.console-tab-btn i.arrow-icon {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: var(--transition);
}

.console-tab-btn:hover {
  background: var(--bg-white);
  border-color: var(--secondary);
  transform: translateX(4px);
}

.console-tab-btn.active {
  background: var(--bg-white);
  border-color: var(--secondary);
  box-shadow: 0 10px 25px -5px rgba(13, 148, 136, 0.15);
}

.console-tab-btn.active i.arrow-icon {
  color: var(--secondary);
  transform: translateX(6px);
}

.console-display-pane {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: 40px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.console-display-pane::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--secondary), #3b82f6);
}

.console-pane-content {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.console-pane-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.console-pane-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.console-pane-header i {
  font-size: 2.25rem;
  color: var(--secondary);
}

.console-pane-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.console-pane-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.console-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
  background-color: var(--bg-light);
  padding: 20px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
}

.console-stat-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}

.console-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
}

/* 5. Connected Journey Timeline */
.journey-timeline {
  position: relative;
  max-width: 800px;
  margin: 50px auto 0 auto;
  padding-left: 50px;
}

.journey-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  bottom: 0;
  width: 4px;
  background-color: var(--border-color);
  border-radius: 4px;
}

.journey-timeline-path {
  position: absolute;
  top: 0;
  left: 20px;
  width: 4px;
  height: 0; /* Updated via JS observer */
  background: linear-gradient(to bottom, var(--secondary), #3b82f6);
  border-radius: 4px;
  transition: height 0.3s ease-out;
  z-index: 2;
}

.journey-step {
  position: relative;
  margin-bottom: 60px;
  opacity: 0.5;
  transform: translateX(-15px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3;
}

.journey-step:last-child {
  margin-bottom: 0;
}

.journey-step.active {
  opacity: 1;
  transform: translateX(0);
}

.journey-icon {
  position: absolute;
  left: -47px;
  top: 15px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--bg-white);
  border: 4px solid var(--border-color);
  display: block;
  line-height: 30px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: all 0.5s ease;
  z-index: 10;
}

.journey-step.active .journey-icon {
  border-color: var(--secondary);
  background-color: var(--secondary);
  color: var(--bg-white);
  box-shadow: 0 0 15px var(--secondary);
}

.journey-content {
  background-color: var(--bg-white);
  padding: 30px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.journey-step.active .journey-content {
  box-shadow: var(--shadow-lg);
  border-color: rgba(13, 148, 136, 0.2);
}

.journey-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.journey-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Tablet adjustments */
@media (max-width: 1024px) {
  .console-container {
    grid-template-columns: 1fr;
  }
  .console-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .console-tab-btn {
    flex-grow: 1;
  }
}

@media (max-width: 768px) {
  .console-tabs {
    flex-direction: column;
  }
  .console-stats-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .journey-timeline {
    padding-left: 35px;
  }
  .journey-timeline::before, .journey-timeline-path {
    left: 10px;
  }
  .journey-icon {
    left: -37px;
    width: 30px;
    height: 30px;
    border-width: 3px;
    font-size: 0.8rem;
    top: 18px;
    line-height: 24px;
  }
}
