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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }
img { width: 100%; display: block; }

/* ===== VARIABLES ===== */
:root {
  --primary:   #6c3fc5;
  --secondary: #f4a261;
  --accent:    #e76f51;
  --light:     #f8f4ff;
  --white:     #ffffff;
  --dark:      #2d1b69;
  --gray:      #6c757d;
  --border:    #dee2e6;
  --green:     #2ecc71;
}

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

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

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

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

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

.btn-white { background: white; color: var(--primary); font-weight: 700; }
.btn-white:hover { background: var(--light); }

.section-title { font-size: 2rem; color: var(--dark); margin-bottom: 10px; }
.section-sub { color: var(--gray); font-size: 1rem; margin-bottom: 40px; }
.text-center { text-align: center; }

section { padding: 70px 0; }

/* ===== TOPBAR ===== */
.topbar {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 8px 0;
  font-size: 13px;
}

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

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

.topbar-links a {
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  transition: color 0.2s;
}
.topbar-links a:hover { color: var(--secondary); }

/* ===== HEADER ===== */
header {
  background: white;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 999;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

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

.logo-icon {
  width: 46px;
  height: 46px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.logo-text h2 { font-size: 1.3rem; color: var(--dark); line-height: 1.1; }
.logo-text span { font-size: 0.75rem; color: var(--gray); }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: #444;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-actions { display: flex; gap: 12px; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--dark);
}

@media (max-width: 640px) {
  .menu-toggle { display: block; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    padding: 16px 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    gap: 14px;
    z-index: 998;
  }

  .nav-links.open { display: flex; }
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 70%, #9b59b6 100%);
  color: white;
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  top: -100px;
  right: -100px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: var(--secondary);
  color: white;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-text h1 { font-size: 2.7rem; line-height: 1.3; margin-bottom: 18px; }
.hero-text p { font-size: 1.05rem; opacity: 0.9; margin-bottom: 28px; }

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  opacity: 0.9;
}

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 35px;
  backdrop-filter: blur(6px);
}

.hero-visual h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  opacity: 0.9;
}

.course-preview-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.course-preview-item {
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
}

.course-preview-icon { font-size: 26px; }

.course-preview-info h4 { font-size: 0.9rem; margin-bottom: 2px; }
.course-preview-info span { font-size: 0.78rem; opacity: 0.75; }

.enroll-badge {
  margin-left: auto;
  background: var(--green);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

/* ===== STATS STRIP ===== */
.stats-strip {
  background: var(--primary);
  padding: 35px 0;
}

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

.stats-item h3 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.stats-item p { font-size: 0.88rem; opacity: 0.85; }

/* ===== COURSES ===== */
.courses { background: var(--light); }

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.course-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.07);
  transition: transform 0.3s, box-shadow 0.3s;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(108,63,197,0.15);
}

.course-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 70px;
}

.course-thumb.purple { background: linear-gradient(135deg, #6c3fc5, #9b59b6); }
.course-thumb.orange { background: linear-gradient(135deg, #f4a261, #e76f51); }
.course-thumb.blue   { background: linear-gradient(135deg, #3498db, #2980b9); }
.course-thumb.green  { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.course-thumb.red    { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.course-thumb.teal   { background: linear-gradient(135deg, #1abc9c, #16a085); }

.course-body { padding: 20px; }

.course-tag {
  display: inline-block;
  background: var(--light);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 10px;
}

.course-body h3 {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.course-body p {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 14px;
}

.course-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 14px;
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.course-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.course-footer a {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
}

/* ===== FACULTY ===== */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.faculty-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0,0,0,0.07);
  text-align: center;
  transition: transform 0.3s;
}

.faculty-card:hover { transform: translateY(-5px); }

.faculty-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  background: linear-gradient(135deg, var(--light), #d4c5f9);
}

.faculty-info { padding: 18px; }
.faculty-info h3 { font-size: 0.98rem; color: var(--dark); margin-bottom: 4px; }
.faculty-info .subject { font-size: 0.83rem; color: var(--primary); font-weight: 500; margin-bottom: 4px; }
.faculty-info .qualification { font-size: 0.78rem; color: var(--gray); }

/* ===== WHY US ===== */
.why-us { background: var(--light); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.why-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.why-card {
  background: white;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s;
}

.why-card:hover { transform: translateY(-4px); }
.why-card-icon { font-size: 2rem; margin-bottom: 10px; }
.why-card h4 { font-size: 0.95rem; color: var(--dark); margin-bottom: 6px; }
.why-card p { font-size: 0.82rem; color: var(--gray); }

.why-text h2 { font-size: 2rem; color: var(--dark); margin-bottom: 16px; }
.why-text p { font-size: 0.95rem; color: var(--gray); margin-bottom: 24px; line-height: 1.8; }

/* ===== ADMISSIONS ===== */
.admissions { background: var(--dark); color: white; }
.admissions .section-title { color: white; }
.admissions .section-sub { color: rgba(255,255,255,0.7); }

.admission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.admission-steps { margin-bottom: 30px; }

.step {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 15px;
}

.step h4 { font-size: 0.95rem; margin-bottom: 4px; }
.step p { font-size: 0.83rem; opacity: 0.75; }

.admission-form {
  background: rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 30px;
  border: 1px solid rgba(255,255,255,0.12);
}

.admission-form h3 { font-size: 1.2rem; margin-bottom: 22px; }

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

.form-group label { font-size: 0.88rem; opacity: 0.85; }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 14px;
  outline: none;
}

.form-group input::placeholder { color: rgba(255,255,255,0.45); }

.form-group select option { background: var(--dark); color: white; }

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.testimonial-card {
  background: white;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.07);
  border-top: 4px solid var(--primary);
}

.quote-icon { font-size: 2rem; color: var(--primary); opacity: 0.3; margin-bottom: 10px; }

.testimonial-text { font-size: 0.9rem; color: #555; margin-bottom: 18px; line-height: 1.7; }

.testimonial-author { display: flex; align-items: center; gap: 12px; }

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.author-name { font-weight: 600; font-size: 0.9rem; color: var(--dark); }
.author-role { font-size: 0.78rem; color: var(--gray); }
.stars { color: #ffc107; font-size: 12px; margin-top: 3px; }

/* ===== CONTACT ===== */
.contact { background: var(--light); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h3 { font-size: 1.4rem; color: var(--dark); margin-bottom: 20px; }

.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.contact-detail-icon { font-size: 22px; flex-shrink: 0; }
.contact-detail h4 { font-size: 0.9rem; font-weight: 600; color: var(--dark); margin-bottom: 2px; }
.contact-detail p { font-size: 0.85rem; color: var(--gray); }

.contact-form-box {
  background: white;
  padding: 35px;
  border-radius: 14px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.07);
}

.contact-form-box h3 { font-size: 1.3rem; color: var(--dark); margin-bottom: 22px; }

.contact-form-box .form-group input,
.contact-form-box .form-group select,
.contact-form-box .form-group textarea {
  background: var(--light);
  color: #333;
  border: 1px solid var(--border);
}

.contact-form-box .form-group textarea {
  resize: vertical;
  min-height: 110px;
}

/* ===== FOOTER ===== */
footer {
  background: #1a0b3d;
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}

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

.footer-brand h3 { color: white; font-size: 1.3rem; margin-bottom: 12px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin-bottom: 16px; }

.footer-links h4 { color: white; margin-bottom: 16px; font-size: 1rem; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a { font-size: 0.88rem; transition: color 0.2s; }
.footer-links ul li a:hover { color: var(--secondary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.84rem;
  opacity: 0.55;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero-content,
  .why-grid,
  .contact-grid,
  .admission-grid {
    grid-template-columns: 1fr;
  }

  .courses-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .faculty-grid,
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero-text h1 { font-size: 2rem; }
  .courses-grid,
  .testimonials-grid,
  .faculty-grid,
  .why-cards {
    grid-template-columns: 1fr;
  }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
