/* ============================================
   HOME PAGE — css/home.css
   ============================================ */

/* ── NAV ── */
#main-nav {
  display: block !important;
  height: auto !important;
  justify-content: unset !important;
  position: sticky;
  top: 0;
  z-index: 200;
  background-color: #0d1547;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

#main-nav.scrolled {
  background-color: rgba(13,21,71,0.97);
  backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.nav-logo::after { display: none !important; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  height: 60px;
}

.nav-links a {
  color: rgba(255,255,255,0.9) !important;
  text-decoration: none;
  padding: 0 14px;
  height: 60px;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 2px;
  background-color: #f9a825;
  transition: width 0.2s;
}

.nav-links a:hover { background-color: rgba(255,255,255,0.08); }
.nav-links a:hover::after { width: 70%; }

.nav-links .dropdown { position: relative; height: 60px; display: flex; align-items: center; }
.nav-links .dropdown > a::after { display: none; }

.nav-links .dropdown-content {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background-color: #0d1547;
  min-width: 200px;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  border-top: 2px solid #f9a825;
  z-index: 300;
}

.nav-links .dropdown-content a {
  display: block;
  height: auto;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.9rem;
}

.nav-links .dropdown-content a:last-child { border-bottom: none; }
.nav-links .dropdown-content a:hover { background-color: rgba(249,168,37,0.12); color: #f9a825 !important; }
.nav-links .dropdown:hover .dropdown-content { display: block; }

.nav-cta {
  background-color: #f9a825 !important;
  color: #1c1c2e !important;
  padding: 8px 18px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  height: auto !important;
  margin-left: 8px;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { filter: brightness(1.08); background-color: #f9a825 !important; }

/* ── HERO ── */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  min-height: calc(100vh - 60px);
}

.hero-content {
  opacity: 1;
  transform: none;
}

.hero-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #f57f17;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  display: block;
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.8rem;
  font-weight: 700;
  color: #0d1547;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-title span {
  color: #1a237e;
  position: relative;
  display: inline-block;
}

.hero-title span::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0;
  width: 100%; height: 6px;
  background-color: #f9a825;
  border-radius: 3px;
  opacity: 0.5;
  z-index: -1;
}

.hero-sub {
  font-size: 1.05rem;
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 13px 30px;
  background-color: #1a237e;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(26,35,126,0.3);
  transition: background-color 0.2s, transform 0.2s;
}

.btn-primary:hover {
  background-color: #3949ab;
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-block;
  padding: 13px 30px;
  background-color: transparent;
  color: #1a237e;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  border: 2px solid #1a237e;
  transition: background-color 0.2s, color 0.2s;
}

.btn-outline:hover {
  background-color: #1a237e;
  color: #fff;
}

.hero-image {
  opacity: 1;
  transform: none;
}

.hero-image .swiper {
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  aspect-ratio: 4/3;
  width: 100%;
  background-color: #3949ab;
}

.hero-image .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── SECTIONS CHUNG ── */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem;
  color: #0d1547;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: #6b7280;
  font-size: 1.05rem;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #f57f17;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 0.5rem;
}

/* ── CÁC LỚP ── */
.classes-section {
  padding: 4rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.classes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.class-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e7eb;
  transition: transform 0.3s, box-shadow 0.3s;
}

.class-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(26,35,126,0.15);
}

.class-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background-color: #e8eaf6;
}

.class-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.class-card:hover .class-img img { transform: scale(1.05); }

.class-info {
  padding: 1.25rem;
  flex: 1;
}

.class-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #e8eaf6;
  color: #1a237e;
  margin-bottom: 0.5rem;
}

.class-info h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  color: #0d1547;
  margin-bottom: 6px;
}

.class-info p {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.5;
}

.class-card--cta {
  background: linear-gradient(135deg, #0d1547, #1a237e);
  border: none;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 200px;
}

.class-cta-inner {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.class-cta-inner i { font-size: 2.5rem; color: #f9a825; }
.class-cta-inner h3 { color: #fff; font-size: 1.1rem; }
.class-cta-inner p { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

/* ── FEATURES ── */
.features-section {
  background: linear-gradient(135deg, #f0f2ff, #fafafa);
  padding: 4rem 1.5rem;
}

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.features-text h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem;
  color: #0d1547;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.features-desc {
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: #1c1c2e;
}

.features-list li i { color: #f57f17; font-size: 1.1rem; margin-top: 2px; flex-shrink: 0; }

.features-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border-top: 3px solid #f9a825;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: #1a237e;
}

.stat-label { font-size: 0.9rem; color: #6b7280; line-height: 1.4; }

/* ── CONTACT ── */
.contact-section {
  padding: 4rem 1.5rem;
  background-color: #0d1547;
  color: #fff;
}

.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info .section-label { color: #f9a825; }

.contact-info h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1rem;
}

.contact-info > p { color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 1.5rem; }

.contact-details { display: flex; flex-direction: column; gap: 12px; margin-bottom: 1.5rem; }

.contact-item { display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; color: rgba(255,255,255,0.85); }
.contact-item i { color: #f9a825; font-size: 1rem; margin-top: 2px; flex-shrink: 0; width: 16px; }
.contact-item a { color: rgba(255,255,255,0.85); text-decoration: none; }
.contact-item a:hover { color: #f9a825; }

.contact-socials { display: flex; gap: 1rem; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s;
}

.social-link:hover { border-color: #f9a825; color: #f9a825; }

.contact-form-wrap {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.contact-form h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  color: #1a237e;
  margin-bottom: 1.5rem;
  text-align: center;
}

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: #1c1c2e;
  margin-bottom: 6px;
  margin-top: 1rem;
}

.contact-form label:first-of-type { margin-top: 0; }

.contact-form input,
.contact-form select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  background: #fff;
  color: #1c1c2e;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form select:focus {
  border-color: #f9a825;
  box-shadow: 0 0 0 3px rgba(249,168,37,0.2);
}

/* ── TESTIMONIAL ── */
.testimonial-section {
  padding: 4rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border-left: 4px solid #f9a825;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-stars { color: #f9a825; font-size: 1.1rem; letter-spacing: 2px; }

.testimonial-quote {
  font-size: 0.95rem;
  color: #1c1c2e;
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 0.5rem;
  border-top: 1px solid #e5e7eb;
}

.author-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a237e, #3949ab);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem; flex-shrink: 0;
}

.testimonial-author strong { display: block; font-size: 0.9rem; color: #0d1547; }
.testimonial-author span { font-size: 0.8rem; color: #6b7280; }

/* ── FOOTER ── */
.site-footer {
  background-color: #0d1547;
  color: rgba(255,255,255,0.8);
  padding: 3rem 1.5rem 0;
  border-top: 3px solid #f9a825;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-brand p { font-size: 0.9rem; line-height: 1.7; color: rgba(255,255,255,0.65); }

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f9a825;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col ul li {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  display: flex; align-items: flex-start; gap: 8px;
}

.footer-col ul li i { color: #f9a825; font-size: 0.85rem; margin-top: 2px; flex-shrink: 0; }

.footer-col ul li a,
.footer-col ul a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover,
.footer-col ul a:hover { color: #f9a825; }

.footer-socials { display: flex; gap: 10px; margin-top: 1rem; }

.footer-socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.footer-socials a:hover { background-color: #f9a825; color: #1c1c2e; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 0;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-bottom p { font-size: 0.9rem; color: rgba(255,255,255,0.5); }

/* ── HAMBURGER MENU ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2rem;
    text-align: center;
  }
  .hero-actions { justify-content: center; }
  .hero-image { max-width: 560px; margin: 0 auto; }
  .hero-title { font-size: 3rem; }
  .classes-grid { grid-template-columns: repeat(2, 1fr); }
  .features-inner { grid-template-columns: 1fr; }
  .features-stats { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .classes-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.4rem; }
  .footer-inner { grid-template-columns: 1fr; }

  /* Mobile nav */
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #0d1547;
    flex-direction: column;
    height: auto;
    padding: 0.5rem 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 300;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    height: auto;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    width: 100%;
  }

  .nav-links .dropdown { height: auto; flex-direction: column; }
  .nav-links .dropdown-content {
    position: static;
    display: none;
    box-shadow: none;
    border-top: none;
    border-radius: 0;
    background-color: rgba(255,255,255,0.05);
  }
  .nav-links .dropdown.open .dropdown-content { display: block; }
  .nav-links .dropdown-content a { padding-left: 36px; }

  .nav-links .nav-cta {
    margin: 8px 16px;
    border-radius: 8px !important;
    text-align: center;
    justify-content: center;
  }

  #main-nav { position: relative; }
  .nav-inner { position: relative; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-outline { width: 100%; text-align: center; }
  .nav-links a { padding: 0 8px; font-size: 0.85rem; }
}

/* ── PAGE HERO (các trang con) ── */
.page-hero {
  background: linear-gradient(135deg, #0d1547 0%, #1a237e 60%, #283593 100%);
  padding: 3rem 1.5rem;
  text-align: center;
  color: #fff;
}

.page-hero-inner { max-width: 700px; margin: 0 auto; }

.page-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
}

.page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}

/* ── PAGE CONTENT ── */
.page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.page-content .section h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  color: #0d1547;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f9a825;
  display: inline-block;
}

/* ── CONTACT BLOCK ── */
.contact-block p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: #1c1c2e;
}

.contact-block p i { color: #f57f17; flex-shrink: 0; margin-top: 3px; }
.contact-block a { color: #1a237e; text-decoration: none; }
.contact-block a:hover { text-decoration: underline; }

/* ── SCHEDULE CTA ── */
.schedule-cta {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a237e;
  letter-spacing: 0.5px;
}

/* ── TOOL CARD ── */
.tool-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 2rem;
  margin-bottom: 2rem;
  border-top: 3px solid #f9a825;
}

.tool-hint {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0.5rem 0;
}

.tool-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.tool-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Override random-tool trong tool-card */
.tool-card .random-tool {
  margin: 0;
  padding: 0;
  max-width: 100%;
  align-items: flex-start;
}

.tool-card .random-tool h1 { display: none; }

/* Override random1-page trong tool-card */
.tool-card .random1-page {
  background: transparent;
  padding: 0;
  margin: 0;
}

.tool-card .random1-page h1 { display: none; }

.tool-card .random1-page .container {
  max-width: 100%;
  padding: 0;
  margin: 0;
}

.tool-card .random1-page .box {
  border-top: 3px solid #f9a825;
}

.tool-card .random1-page .box h2 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #0d1547;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* ── NÚT LÊN ĐẦU TRANG ── */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 70px;
  width: 44px;
  height: 44px;
  background-color: #1a237e;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(26,35,126,0.35);
  transition: background-color 0.2s, transform 0.2s;
  z-index: 998;
}

#back-to-top:hover {
  background-color: #3949ab;
  transform: translateY(-3px);
}

#back-to-top.visible { display: flex; }

/* ── DARK MODE ── */
body.dark-mode {
  background-color: #0f1117;
  color: #e2e8f0;
}

body.dark-mode .hero-title { color: #e2e8f0; }
body.dark-mode .hero-sub { color: #94a3b8; }
body.dark-mode .btn-outline { color: #93c5fd; border-color: #93c5fd; }
body.dark-mode .btn-outline:hover { background-color: #93c5fd; color: #0f1117; }

body.dark-mode .classes-section,
body.dark-mode .testimonial-section { background-color: #0f1117; }

body.dark-mode .class-card,
body.dark-mode .testimonial-card,
body.dark-mode .stat-card,
body.dark-mode .tool-card,
body.dark-mode .contact-form-wrap,
body.dark-mode .random1-page .box {
  background-color: #1e2433;
  border-color: #2d3748;
  color: #e2e8f0;
}

body.dark-mode .class-info h3,
body.dark-mode .class-info p,
body.dark-mode .testimonial-quote,
body.dark-mode .testimonial-author strong { color: #e2e8f0; }

body.dark-mode .class-info p,
body.dark-mode .testimonial-author span,
body.dark-mode .stat-label,
body.dark-mode .features-desc,
body.dark-mode .tool-hint { color: #94a3b8; }

body.dark-mode .features-section { background: linear-gradient(135deg, #1a1f2e, #0f1117); }
body.dark-mode .features-text h2 { color: #e2e8f0; }
body.dark-mode .features-list li { color: #e2e8f0; }

body.dark-mode .section { background-color: #1e2433; }
body.dark-mode .section h2,
body.dark-mode .page-content .section h2 { color: #93c5fd; }
body.dark-mode .contact-block p { color: #e2e8f0; }
body.dark-mode .contact-block a { color: #93c5fd; }

body.dark-mode .contact-form h3 { color: #93c5fd; }
body.dark-mode .contact-form label { color: #e2e8f0; }
body.dark-mode .contact-form input,
body.dark-mode .contact-form select {
  background-color: #2d3748;
  border-color: #4a5568;
  color: #e2e8f0;
}

body.dark-mode .random1-page { background-color: #0f1117; }
body.dark-mode .random1-page .box h2 { color: #93c5fd; }
body.dark-mode .random1-page textarea,
body.dark-mode .random1-page input[type="number"],
body.dark-mode .random-tool textarea,
body.dark-mode .random-tool input[type="number"] {
  background-color: #2d3748;
  border-color: #4a5568;
  color: #e2e8f0;
}
body.dark-mode .random1-page .result { background-color: #1e2433; border-color: #f9a825; color: #f9a825; }
body.dark-mode .random-tool .group { background-color: #1e2433; border-color: #3949ab; }
body.dark-mode .random-tool .group h3 { background: #1a237e; }
body.dark-mode .random-tool .student { border-color: #2d3748; color: #e2e8f0; }

body.dark-mode .section-header h2 { color: #e2e8f0; }
body.dark-mode .section-header p { color: #94a3b8; }

/* Dark mode toggle button */
#dark-toggle {
  position: fixed;
  bottom: 80px;
  right: 70px;
  width: 44px;
  height: 44px;
  background-color: #1a237e;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(26,35,126,0.35);
  transition: background-color 0.2s, transform 0.2s;
  z-index: 997;
}

#dark-toggle:hover { background-color: #3949ab; transform: scale(1.1); }

body.dark-mode #dark-toggle { background-color: #f9a825; color: #1c1c2e; }
body.dark-mode #dark-toggle:hover { background-color: #f57f17; }
