/* =========================
   RESET & BASE
========================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #161616;
  color: #e8e6e1;
  font-family: 'DM Sans', sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* =========================
   CSS VARIABLES
========================= */
:root {
  --accent: #c8f550;
  --accent-dark: #a8d040;
  --bg: #161616;
  --bg-card: #1e1e1e;
  --bg-section: #1b1b1b;
  --border: #2e2e2e;
  --text: #e8e6e1;
  --text-muted: #aaa;
  --text-light: #ccc;
  --nav-h: 60px;
}

/* =========================
   NAVBAR
========================= */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-h);
  background: rgba(22, 22, 22, 0.97);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  border-bottom: 1px solid var(--border);
  z-index: 9999;
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 3px;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}

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

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

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 10001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================
   SECTIONS
========================= */
.sec {
  padding: 80px 30px 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.wrap {
  max-width: 900px;
  margin: auto;
  width: 100%;
}

/* Content page sections */
.content-page .sec {
  background: var(--bg-section);
  border-radius: 12px;
  padding: 60px 50px;
  margin: 100px auto 60px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  border: 1px solid var(--border);
}

/* =========================
   TYPOGRAPHY
========================= */
h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: #fff;
}

h2 {
  font-size: 26px;
  margin: 40px 0 12px;
  color: var(--accent);
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}

h3 {
  font-size: 18px;
  margin: 20px 0 8px;
  color: #ddd;
}

p {
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: 15px;
}

.lead {
  color: #ddd;
  font-size: 16px;
  margin-bottom: 24px;
  line-height: 1.8;
}

/* =========================
   LISTS
========================= */
ul {
  margin: 10px 0 20px;
  padding-left: 22px;
}

li {
  margin-bottom: 8px;
  color: var(--text-light);
  font-size: 15px;
}

/* =========================
   TABLE
========================= */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

th, td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

th {
  color: var(--accent);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(200,245,80,0.05);
}

td {
  color: var(--text-light);
  font-size: 14px;
}

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

/* =========================
   FORM ELEMENTS
========================= */
label {
  display: block;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: #fff;
  margin-bottom: 14px;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  transition: border-color 0.2s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

select option {
  background: var(--bg-card);
}

/* =========================
   BUTTONS
========================= */
button, .btn {
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  color: #111;
  border: none;
  padding: 13px 20px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 4px 16px rgba(200,245,80,0.15);
  width: 100%;
}

button:hover, .btn:hover {
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  box-shadow: 0 6px 24px rgba(200,245,80,0.3);
  transform: translateY(-1px);
}

.btn-pred {
  font-size: 16px;
  letter-spacing: 2px;
  padding: 15px;
  margin-top: 4px;
  text-transform: uppercase;
}

/* =========================
   LINKS
========================= */
a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* =========================
   HERO SECTION
========================= */
#hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding-top: var(--nav-h);
}

.hero-left {
  padding: 80px 60px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(ellipse at bottom left, #1a1f0a 0%, var(--bg) 60%);
}

.hero-left h1 {
  font-size: 86px;
  line-height: 0.88;
  letter-spacing: 3px;
}

.hero-left h1 span {
  color: var(--accent);
}

.hero-desc {
  margin-top: 24px;
  color: var(--text-muted);
  max-width: 380px;
  font-size: 15px;
}

.hero-right {
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(circle at top right, #1e1e1e, var(--bg) 70%);
  gap: 4px;
}

/* =========================
   RESULT TEXT
========================= */
#result {
  margin-top: 16px;
  font-size: 20px;
  color: var(--accent);
  font-weight: 700;
  min-height: 32px;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
}

/* =========================
   GRAPH BOX
========================= */
.graph-box {
  margin-top: 20px;
  height: 220px;
  background: var(--bg-card);
  border-radius: 8px;
  padding: 12px;
  border: 1px solid var(--border);
}

/* =========================
   FEATURE GRID
========================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.feature-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.feature-card h3 {
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 16px;
}

.feature-card p {
  margin: 0;
  font-size: 14px;
}

/* =========================
   STATS CARDS
========================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 20px;
  text-align: center;
}

.stat-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  color: var(--accent);
  letter-spacing: 1px;
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =========================
   ARTICLES GRID
========================= */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.article-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 600;
}

.article-card h3 {
  font-size: 17px;
  color: #ddd;
  margin: 0 0 10px;
  line-height: 1.4;
}

.article-card p {
  font-size: 14px;
  flex: 1;
  margin-bottom: 16px;
}

.article-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =========================
   TESTIMONIALS
========================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: 'Bebas Neue', sans-serif;
  font-size: 72px;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  top: 8px;
  left: 16px;
  line-height: 1;
}

.testimonial-text {
  color: #ccc;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
  padding-top: 20px;
}

.testimonial-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.testimonial-exam {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* =========================
   FAQ
========================= */
.faq-list {
  margin-top: 24px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  background: var(--bg-card);
  color: #ddd;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  border-radius: 0;
  box-shadow: none;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0;
  text-transform: none;
  transition: background 0.2s;
}

.faq-question:hover {
  background: #252525;
  transform: none;
}

.faq-question .faq-icon {
  font-size: 20px;
  color: var(--accent);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-question.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 18px;
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.faq-answer.open {
  display: block;
}

/* =========================
   HOW IT WORKS
========================= */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
}

.step-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  color: var(--accent);
  line-height: 1;
  opacity: 0.6;
}

.step-card h3 {
  margin-top: 8px;
  color: #ddd;
  font-size: 16px;
}

.step-card p {
  font-size: 14px;
  margin-top: 6px;
}

/* =========================
   EXAM UPDATES
========================= */
.updates-list {
  margin-top: 20px;
}

.update-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  align-items: flex-start;
}

.update-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
}

.badge-jee { background: rgba(200,245,80,0.15); color: var(--accent); }
.badge-neet { background: rgba(80,200,245,0.15); color: #50c8f5; }
.badge-eapcet { background: rgba(245,130,80,0.15); color: #f58250; }
.badge-info { background: rgba(180,180,180,0.15); color: #bbb; }

.update-content p {
  margin: 0;
  font-size: 14px;
  color: #ccc;
  line-height: 1.5;
}

.update-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px !important;
}

/* =========================
   TRUST SECTION
========================= */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.trust-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.trust-card h3 {
  font-size: 15px;
  color: #ddd;
  margin: 0 0 6px;
}

.trust-card p {
  font-size: 13px;
  margin: 0;
}

/* =========================
   CONTACT GRID
========================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-grid form {
  background: var(--bg-card);
  padding: 28px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

/* =========================
   FOOTER
========================= */
footer {
  border-top: 1px solid var(--border);
  padding: 50px 30px 30px;
  background: #111;
}

.footer-inner {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .nav-logo {
  font-size: 20px;
  display: inline-block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 13px;
  max-width: 240px;
}

.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 14px;
}

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

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-col ul li a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-bottom {
  max-width: 1100px;
  margin: auto;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 12px;
  margin: 0;
}

.footer-legal a {
  color: var(--text-muted);
  font-size: 12px;
  margin-left: 16px;
}

.footer-legal a:hover {
  color: var(--accent);
}

/* =========================
   SECTION HEADINGS (homepage)
========================= */
.section-header {
  margin-bottom: 10px;
}

.section-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.section-header h2 {
  border-left: none;
  padding-left: 0;
  color: #fff;
  font-size: 32px;
  margin: 0 0 8px;
}

.section-header p {
  font-size: 15px;
}

/* Home sections */
.home-sec {
  padding: 80px 30px;
  max-width: 1100px;
  margin: auto;
}

.home-sec + .home-sec {
  border-top: 1px solid var(--border);
}

/* =========================
   RESPONSIVE – TABLET
========================= */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================
   RESPONSIVE – MOBILE
========================= */
@media (max-width: 768px) {

  /* Nav */
  nav {
    padding: 0 16px;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    width: 100%;
    background: rgba(22,22,22,0.98);
    flex-direction: column;
    padding: 24px 20px;
    border-bottom: 1px solid var(--border);
    gap: 20px;
    z-index: 9998;
  }

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

  .nav-links a {
    font-size: 14px;
  }

  /* Hero */
  #hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-left {
    padding: 30px 20px 20px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .hero-right {
    padding: 30px 20px 40px;
  }

  .hero-left h1 {
    font-size: 52px;
  }

  /* Sections */
  .sec {
    padding: 60px 20px 40px;
  }

  .home-sec {
    padding: 60px 20px;
  }

  .content-page .sec {
    padding: 40px 20px;
    margin: 80px 16px 40px;
  }

  h1 { font-size: 36px; }
  h2 { font-size: 22px; }

  /* Grids */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal a {
    margin: 0 8px;
  }

  /* Table scroll */
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  input, select, button {
    font-size: 16px;
  }
}