/* === Background animation === */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
}

/* === Body === */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: white;
}
/* ===== Navbar ===== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 30px;
  background-color: green;
  flex-wrap: nowrap; /* ❗ important: stop wrapping */
  position: relative;
  z-index: 10;
}

.logo {
  font-size: 26px;
  font-weight: bold;
  color: purple;
  flex: 1;
  white-space: nowrap; /* ✅ This prevents text wrapping */
}

.nav-toggle {
  display: none;
  font-size: 28px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  right: 80px; /* move left to avoid login btn overlap */
  top: 14px;
}

.nav-center {
  flex: 2;
  display: flex;
  justify-content: center;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
}
.nav-links li a {
  color: yellow !important;
  text-decoration: none;
}

.nav-links li a:hover {
  color: orange !important;
}
.login-btn {
  background-color: orange;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

/* === Mobile View === */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap; /* allow stacking in mobile */
  }

  .nav-toggle {
    display: block;
  }

  .nav-center {
    width: 100%;
    order: 3;
    justify-content: center;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    background-color: rgba(0, 100, 0, 0.95);
    padding: 10px 0;
    margin-top: 10px;
  }

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

  .nav-links li {
    margin: 10px 0;
  }
.nav-links li a {
  color: yellow !important;
}

.nav-links li a:hover {
  color: orange !important;
}
  .login-btn {
    width: 90%;
    margin: 10px auto;
    order: 4;
  }
}
/* ===== Hero Section ===== */
.hero-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 40px 30px;
  gap: 30px;
  flex-wrap: wrap;
}

.hero-left {
  flex: 0.8;
}

.hero-center {
  flex: 2.4;
}

.hero-right {
  flex: 0.8;
}

/* Notification Box Styling */
.notification-box {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 12px;
  color: white;
  backdrop-filter: blur(5px);
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.tab-button {
  background-color: #444;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.tab-button.active {
  background-color: orange;
}

.tab-content label {
  display: block;
  margin: 10px 0 4px;
  font-size: 14px;
}

.tab-content select {
  width: 100%;
  padding: 6px;
  border-radius: 4px;
  border: none;
  background-color: #eee;
  margin-bottom: 10px;
}

/* Center Image and Heading */
.hero-center {
  text-align: center;
}

.hero-center img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 15px;
}

.hero-center h2 {
  font-size: 24px;
  color: white;
}

/* Country Selector */
.hero-right {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  color: white;
}

.hero-right select {
  width: 100%;
  padding: 8px;
  border-radius: 4px;
  border: none;
  background-color: #eee;
  color: black;
}

/* ===== Responsive Hero Section ===== */
@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
  }

  .tabs {
    flex-direction: column;
  }

  .hero-center h2 {
    font-size: 20px;
  }
}
.hero-container {
  max-width: 900px;  /* ya 1000px, 900px depending on how compact you want */
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.cards-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  padding: 40px 20px;
  background: transparent; /* No background for the section */
}

.card {
  background: #d5fbe3; /* Light green background */
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 128, 0, 0.15);
  transition: transform 0.3s ease;
  text-align: center;
}

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

.card-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 12px;
}

.card h3 {
  margin: 12px 0 8px;
  color: #004d00;
  font-size: 20px;
}

.card p {
  font-size: 14px;
  color: #222;
}

.card-video {
  width: 100%;
  margin-top: 15px;
  border-radius: 8px;
  max-height: 200px;
  object-fit: cover;
}
.how-it-works {
  background-color: #f0fff4;
  padding: 60px 20px;
  text-align: center;
}

.how-it-works h2 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 40px;
}

.steps {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.step-card {
  background-color: #e6ffe6;
  border: 1px solid #b2fab4;
  border-radius: 12px;
  padding: 20px;
  width: 280px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 128, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.step-card h3 {
  font-size: 1.2rem;
  color: #1e7f3f;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 1rem;
  color: #444;
}
/* How It Works Section */
.how-it-works-section {
  padding: 60px 20px;
  text-align: center;
  /* No background color — transparent */
}

.section-title {
  font-size: 32px;
  margin-bottom: 40px;
  color: #ffffff;
}

.how-cards-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.how-card {
  background-color: rgba(255, 255, 255, 0.9); /* only card has background */
  border-radius: 12px;
  padding: 20px;
  width: 280px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.how-card h3 {
  color: #1d3557;
  font-size: 20px;
  margin-bottom: 10px;
}

.how-card p {
  font-size: 16px;
  color: #555;
}
/* Explore Our Portals Section */
.portals-section {
  padding: 60px 20px;
  text-align: center;
  background-color: transparent;
}

.portals-section .section-title {
  font-size: 32px;
  color: #ffffff;
  margin-bottom: 40px;
  font-weight: bold;
}

.portals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  justify-content: center;
}

.portal-card {
  background-color: rgba(255, 255, 255, 0.95); /* clean white card */
  padding: 25px 18px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease;
}

.portal-card:hover {
  transform: translateY(-6px);
}

.portal-icon {
  font-size: 38px;
  margin-bottom: 18px;
  color: #007f5f; /* blue-green icon */
}

.portal-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #222222;
  font-weight: 600;
}

.portal-card p {
  font-size: 15px;
  color: #555555;
  line-height: 1.5;
}
.why-edufinity {
  padding: 60px 20px;
  text-align: center;
  color: #ffffff;
}

.why-edufinity h2 {
  font-size: 32px;
  margin-bottom: 40px;
  color: #ffffff;
}

.usp-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.usp-card {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 280px;
  max-width: 100%;
  transition: transform 0.3s ease;
}

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

.usp-card h3 {
  color: orange;
  margin-bottom: 10px;
}

.usp-card p {
  color: #f0f0f0;
  font-size: 15px;
}
.app-promo {
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
}

.app-content {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
}

.app-text {
  flex: 1;
  min-width: 300px;
}

.app-text h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.app-text p {
  font-size: 18px;
  margin-bottom: 30px;
  color: #ddd;
}

.app-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.download-btn {
  background-color: orange;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.download-btn:hover {
  background-color: darkorange;
}

.app-image {
  flex: 1;
  min-width: 280px;
  text-align: center;
}

.app-image img {
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
/* App Promo Section */
.app-promo {
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  background-color: transparent;
}

.app-text {
  max-width: 500px;
  color: white;
}

.app-text h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: orange;
}

.app-text p {
  font-size: 18px;
  margin-bottom: 20px;
}

.app-buttons {
  display: flex;
  gap: 15px;
}

.download-btn {
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  color: white;
  font-weight: bold;
}

.download-btn.android {
  background-color: #34A853;
}

.download-btn.ios {
  background-color: #4285F4;
}

.app-image img {
  max-width: 300px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.cta-section {
  background: rgba(0, 128, 128, 0.3);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
  margin-top: 40px;
  border-radius: 12px;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.cta-section p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-btn {
  padding: 12px 28px;
  font-size: 1rem;
  color: #fff;
  background-color: #ff6f00;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s;
}

.cta-btn:hover {
  background-color: #e65c00;
}

.cta-btn.secondary {
  background-color: transparent;
  border: 2px solid #fff;
}

.cta-btn.secondary:hover {
  background-color: #fff;
  color: #008080;
}
/* Testimonials Section */
.testimonials-section {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-align: center;
  padding: 60px 20px;
}

.testimonials-section h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  justify-items: center;
}

.testimonial-card {
  background: rgba(0, 0, 0, 0.4);
  padding: 20px;
  border-radius: 10px;
  max-width: 360px;
}

.testimonial-card .stars {
  font-size: 1.2rem;
  color: #ffd700; /* gold stars */
  margin-bottom: 12px;
}

.testimonial-card .quote {
  font-style: italic;
  margin-bottom: 12px;
}

.testimonial-card .author {
  font-weight: bold;
  font-size: 0.95rem;
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .testimonials-section h2 {
    font-size: 1.8rem;
  }
  .testimonial-card {
    max-width: 100%;
    margin: 0 10px;
  }
}
.faq-section {
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-align: center;
}

.faq-section .section-title {
  font-size: 32px;
  margin-bottom: 40px;
}

.faq-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.faq-column {
  flex: 1 1 300px;
  max-width: 320px;
  background: rgba(0, 128, 128, 0.1);
  border-radius: 10px;
  padding: 20px;
}

.faq-heading {
  font-size: 20px;
  margin-bottom: 20px;
  color: #ffd700;
}

.faq-item {
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 10px;
  cursor: pointer;
}

.faq-question {
  font-weight: bold;
  color: #fff;
  position: relative;
  padding-right: 20px;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  color: #fff;
  font-weight: bold;
}

.faq-item.open .faq-question::after {
  content: '-';
}

.faq-answer {
  display: none;
  margin-top: 10px;
  color: #ccc;
  font-size: 15px;
}

.faq-item.open .faq-answer {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
.footer {
  background: rgba(0, 0, 0, 0.1);
  padding: 60px 20px 20px;
  color: #fff;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-section {
  flex: 1 1 200px;
  min-width: 200px;
}

.footer-section h3 {
  margin-bottom: 15px;
  color: #fff;
}

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

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

.footer-section ul li a:hover {
  color: #fff;
}

.logo-text {
  font-size: 24px;
  color: #00ffd5;
  font-weight: bold;
}

.social-icons a {
  margin-right: 12px;
  display: inline-block;
  width: 24px;
  height: 24px;
}

.social-icons img {
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  color: #ccc;
}