/* Base Theme Variables */
:root {
  --primary: #1e3c72;
  --primary-dark: #122244;
  --primary-light: #2a5298;
  --accent: #ff8c00;
  --accent-light: #ffaa40;
  --bg-light: #f8f9fa;
  --bg-dark: #0f172a;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-dark);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

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

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.fw-bold { font-weight: 700; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.pt-5 { padding-top: 3rem; }
.pb-5 { padding-bottom: 3rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 60, 114, 0.4);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
}

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

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

/* Navbar */
.top-bar {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.85rem;
}
.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a {
  color: #ddd;
  margin-right: 15px;
}
.top-bar a:hover { color: var(--white); }

.navbar {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 15px 0;
}
.navbar.scrolled {
  padding: 10px 0;
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.95);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 800;
}
.logo-name {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  line-height: 1.2;
}
.logo-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}
.accent { color: var(--accent); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  align-items: center;
}
.nav-links a {
  font-weight: 600;
  color: var(--text-dark);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}

.has-dropdown {
  position: relative;
}
.dropdown-menu-custom {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: var(--shadow-md);
  border-radius: 8px;
  padding: 10px 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}
.has-dropdown:hover .dropdown-menu-custom {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu-custom a {
  display: block;
  padding: 10px 20px;
  font-weight: 500;
}
.dropdown-menu-custom a:hover {
  background: var(--bg-light);
  color: var(--accent);
}

.nav-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}
.btn-nav-primary {
  background: var(--accent);
  color: white;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
}
.btn-nav-primary:hover { background: var(--accent-light); }
.btn-nav-secondary {
  color: var(--primary);
  font-weight: 600;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  transition: 0.3s;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('/assets/images/pattern.svg') center/cover;
  opacity: 0.1;
}
.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 2;
}
.hero-text { flex: 1; }
.hero-badge {
  background: rgba(255, 140, 0, 0.2);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: white;
}
.hero p {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 30px;
  max-width: 500px;
}
.hero-actions {
  display: flex;
  gap: 15px;
}
.hero-image {
  flex: 1;
  position: relative;
}
.hero-glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Stats Section */
.stats {
  padding: 60px 0;
  background: white;
  margin-top: -40px;
  position: relative;
  z-index: 10;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 30px;
}
.stat-item {
  text-align: center;
  padding: 20px;
  border-right: 1px solid #e2e8f0;
}
.stat-item:last-child { border-right: none; }
.stat-item h3 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 10px;
}
.stat-item p {
  color: var(--text-muted);
  font-weight: 500;
}

/* Section Titles */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}
.section-title p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Courses Cards */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.course-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
}
.course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.course-badge {
  position: absolute;
  top: 15px; right: 15px;
  background: var(--accent);
  color: white;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}
.course-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}
.course-body { padding: 25px; }
.course-category {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: block;
}
.course-card h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
}
.course-features {
  list-style: none;
  margin-bottom: 20px;
}
.course-features li {
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.course-features li i {
  color: var(--accent);
  margin-right: 8px;
}
.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e2e8f0;
  padding-top: 15px;
}
.course-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
}
.course-price del {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-right: 5px;
  font-weight: normal;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.feature-card {
  background: white;
  padding: 40px 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-bottom: 4px solid var(--accent);
}
.feature-icon {
  width: 70px;
  height: 70px;
  background: rgba(30, 60, 114, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}

/* Testimonials / Results */
.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.result-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
  padding-bottom: 20px;
}
.result-img-wrapper {
  height: 200px;
  overflow: hidden;
}
.result-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.result-card:hover .result-img {
  transform: scale(1.05);
}
.result-rank {
  background: var(--accent);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  display: inline-block;
  margin-top: -15px;
  position: relative;
  font-weight: 700;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.result-name {
  margin-top: 15px;
  font-size: 1.2rem;
}
.result-exam {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Faculty */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}
.faculty-card {
  background: white;
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}
.faculty-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}
.faculty-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 4px solid rgba(30, 60, 114, 0.1);
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: white;
}
.footer-top { padding: 80px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.logo-icon-sm {
  background: var(--accent);
  width: 30px; height: 30px;
  border-radius: 6px;
  display: flex; justify-content: center; align-items: center;
  font-weight: 800;
}
.footer-brand p {
  color: #cbd5e1;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.footer-socials a {
  display: inline-block;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 36px;
  margin-right: 10px;
  transition: 0.3s;
}
.footer-socials a:hover {
  background: var(--accent);
}
.footer-col h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
  color: #cbd5e1;
  transition: 0.3s;
}
.footer-col ul li a:hover {
  color: var(--accent);
  padding-left: 5px;
}
.footer-contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  color: #cbd5e1;
  font-size: 0.9rem;
}
.footer-contact-item i {
  color: var(--accent);
  margin-top: 4px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  font-size: 0.9rem;
  color: #cbd5e1;
}
.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom-links a {
  color: #cbd5e1;
  margin-left: 20px;
}
.footer-bottom-links a:hover { color: white; }

/* Floats */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #25d366;
  color: white;
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; justify-content: center; align-items: center;
  font-size: 30px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  transition: 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); }

.chatbot-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
}
.chatbot-btn {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  font-size: 24px;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  position: relative;
}
.chatbot-badge {
  position: absolute;
  top: -5px; right: -5px;
  background: red;
  color: white;
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: 12px;
  display: flex; justify-content: center; align-items: center;
}
.chatbot-window {
  position: absolute;
  bottom: 80px; right: 0;
  width: 350px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: none;
  flex-direction: column;
}
.chatbot-window.open { display: flex; }
.chatbot-header {
  background: var(--primary);
  color: white;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.chatbot-avatar {
  background: rgba(255,255,255,0.2);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; justify-content: center; align-items: center;
}
.chatbot-title { font-weight: 600; }
.chatbot-status { font-size: 0.8rem; opacity: 0.8; }
.dot { display: inline-block; width: 8px; height: 8px; background: #25d366; border-radius: 50%; margin-right: 5px; }
.chatbot-close { background: none; border: none; color: white; margin-left: auto; cursor: pointer; }
.chatbot-body {
  height: 300px;
  padding: 15px;
  overflow-y: auto;
  background: #f0f2f5;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-msg { max-width: 80%; }
.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; }
.chat-bubble {
  padding: 10px 15px;
  border-radius: 15px;
  font-size: 0.9rem;
}
.chat-msg.bot .chat-bubble {
  background: white;
  border-bottom-left-radius: 5px;
}
.chat-msg.user .chat-bubble {
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 5px;
}
.chat-quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.chat-quick-btns button {
  background: white;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  cursor: pointer;
}
.chatbot-input {
  display: flex;
  padding: 15px;
  background: white;
  border-top: 1px solid #ddd;
}
.chatbot-input input {
  flex: 1;
  border: none;
  outline: none;
  padding: 8px;
}
.chatbot-input button {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.2rem;
  cursor: pointer;
}

.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 90px;
  background: var(--accent);
  color: white;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  display: none;
  justify-content: center; align-items: center;
  cursor: pointer;
  z-index: 99;
}
.scroll-top.visible { display: flex; }

/* Responsive */
@media (max-width: 991px) {
  .nav-links, .nav-actions > a { display: none; }
  .hamburger { display: flex; }
  .hero h1 { font-size: 2.5rem; }
  .hero-content { flex-direction: column; text-align: center; }
  .hero-actions { justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
  .stats-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-content { flex-direction: column; gap: 15px; text-align: center; }
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}
.mobile-nav-overlay.open { opacity: 1; visibility: visible; }
.mobile-nav {
  width: 80%; max-width: 300px;
  background: white;
  height: 100%;
  padding: 30px 20px;
  transform: translateX(100%);
  transition: 0.3s;
  display: flex; flex-direction: column; gap: 15px;
}
.mobile-nav-overlay.open .mobile-nav { transform: translateX(0); }
.mobile-nav-close {
  align-self: flex-end;
  background: none; border: none; font-size: 1.5rem; margin-bottom: 20px;
}
.mobile-nav a {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}
.mobile-nav-divider { height: 20px; border: none; }
.mobile-btn-primary { background: var(--primary); color: white !important; text-align: center; border-radius: 8px; border: none !important; }

.nav-logo-img { height: 60px; width: auto; }
.footer-logo-img { height: 70px; width: auto; }
