/* General Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
}

header {
  background-color: #003366;
  color: white;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header img {
  max-width: 80px;
  display: block;
}

nav {
  display: flex;
  gap: 4px;
}

/* Updated Nav Link Styles */
nav a {
  color: #fff; /*  White text */
  text-decoration: none;
  margin: 0 10px;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background 0.3s, color 0.3s;
  display: inline-block;
}

nav a:hover {
  background-color: #82c200;
  color: #003366;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #00aaff, #003366);
  color: white;
  text-align: center;
  padding: 50px 20px;
}

.green-title {
  color: #82c200;
}

.hero h1 {
  margin-top: 0;
  font-size: 2.8em;
  margin-bottom: 10px;
}

.hero p {
  margin: 8px 0;
  font-size: 1.05em;
}

.cta-button {
  background-color: #82c200;
  color: #003366;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 6px;
  font-size: 1.05em;
  transition: all 0.3s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.cta-button:hover {
  background-color: #6aaa00;
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* About Us Styling */
.about-highlight {
  background: linear-gradient(90deg, #eaffd0 60%, #ffffff 100%);
  border-left: 6px solid #82c200;
  border-radius: 8px;
  padding: 20px 24px;
  margin-top: 16px;
  position: relative;
  display: flex;
  align-items: flex-start;
}

.about-icon {
  font-size: 2em;
  margin-right: 18px;
  margin-top: 2px;
}

.about-text {
  flex: 1;
}

.about-highlight ul {
  margin: 8px 0 0 18px;
  padding: 0;
}

.about-highlight li {
  margin-bottom: 4px;
}

/* Services Grid Styling */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.service-card {
  background: #f0fff0;
  border: 1px solid #82c200;
  border-radius: 12px;
  padding: 24px 18px;
  text-align: center;
  width: 220px;
  box-shadow: 0 2px 8px rgba(167,226,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 8px 20px rgba(167,226,0,0.2);
}

.service-icon {
  font-size: 3em;
  display: block;
  margin-bottom: 12px;
}

.service-card h3 {
  margin: 12px 0 10px 0;
  color: #003366;
  font-size: 1.15em;
}

.service-card p {
  color: #555;
  font-size: 0.95em;
  line-height: 1.5;
}

/* Subjects & Grades Styling */
.subjects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.subject-card {
  background: #f0fff0;
  border: 1px solid #82c200;
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  width: 180px;
  box-shadow: 0 2px 8px rgba(167,226,0,0.08);
  transition: transform 0.2s;
}

.subject-card:hover {
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 6px 18px rgba(167,226,0,0.18);
}

.subject-icon {
  font-size: 2em;
  display: block;
  margin-bottom: 8px;
}

.subject-card h3 {
  margin: 8px 0 0 0;
  color: #003366;
}

.subject-card small {
  color: #4c4c4c;
}

/* Curriculum Highlight */
.curriculum-highlight {
  background: linear-gradient(90deg, #eaffd0 60%, #ffffff 100%);
  border-left: 6px solid #82c200;
  border-radius: 8px;
  padding: 20px 24px;
  margin-top: 16px;
  position: relative;
  display: flex;
  align-items: flex-start;
}

.curriculum-icon {
  font-size: 2em;
  margin-right: 18px;
  margin-top: 2px;
}

.curriculum-text {
  flex: 1;
}

.curriculum-text ul {
  margin: 8px 0 0 18px;
  padding: 0;
}

.curriculum-text li {
  margin-bottom: 4px;
}

/* Testimonials Banner - Scrolling (Increased Speed) */
.testimonials-banner {
  background: linear-gradient(90deg, #f0f9ff, #f0fff0);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  overflow: hidden;
  position: relative;
}

.testimonials-track {
  display: flex;
  gap: 20px;
  animation: scroll-testimonials 10s linear infinite;
}

@keyframes scroll-testimonials {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.testimonials-track:hover {
  animation-play-state: paused;
}

.testimonial-card {
  background: white;
  border: 2px solid #82c200;
  border-radius: 10px;
  padding: 20px;
  min-width: 280px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  flex-shrink: 0;
  transition: transform 0.3s;
  max-width: 280px;
  white-space: normal;
}

.testimonial-card:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(167,226,0,0.2);
}

.testimonial-stars {
  color: #ffc107;
  font-size: 1.3em;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.testimonial-text {
  color: #333;
  font-size: 0.95em;
  font-style: italic;
  margin: 10px 0;
  line-height: 1.6;
}

.testimonial-author {
  color: #003366;
  font-weight: bold;
  margin: 10px 0 0 0;
  font-size: 0.9em;
}

/* Section Styling */
section {
  padding: 30px 20px;
  max-width: 1000px;
  margin: auto;
  background-color: white;
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

section h2 {
  color: #003366;
  border-bottom: 3px solid #82c200;
  padding-bottom: 10px;
  font-size: 1.8em;
}

/* Contact Form */
form input, form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  font-size: 1em;
}

form input:focus, form textarea:focus {
  outline: none;
  border-color: #82c200;
  box-shadow: 0 0 5px rgba(167,226,0,0.3);
}

.form-submit-btn {
  background-color: #003366;
  color: white;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1.05em;
  transition: all 0.3s;
  width: 100%;
  max-width: 300px;
  display: block;
  margin: 0 auto;
}

.form-submit-btn:hover {
  background-color: #002244;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Footer */
footer {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 20px;
}

footer p {
  margin: 5px 0;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 10px;
  }

  header img:last-child {
    display: none; /* hide the second logo on mobile, keep it clean */
  }
  
  .hero h1 {
    font-size: 2em;
  }
  
  .service-card {
    width: 100%;
    max-width: 300px;
  }
  
  .testimonial-card {
    min-width: 250px;
  }
  
  nav a {
    margin: 5px;
    padding: 6px 10px;
    font-size: 0.9em;
  }
}