/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
}

/* Header styles */
header {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  padding: 1.5rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
}

.logo span {
  color: #4CAF50;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

nav a:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* Enhanced navigation with dropdowns */
.main-nav {
  position: relative;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-item { position: relative; }

.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  display: inline-block;
}

.nav-item.has-dropdown > .nav-link:after {
  content: '▾';
  margin-left: 0.35rem;
  font-size: 0.85rem;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #ffffff;
  border-radius: 10px;
  padding: 0.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border: 1px solid #e6e8ef;
  display: none;
  z-index: 2000;
}

/* Bridge the hover gap so moving the cursor down doesn't close the menu */
.nav-item.has-dropdown > .dropdown::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.dropdown li { list-style: none; }

.dropdown a {
  display: block;
  padding: 0.6rem 0.75rem;
  color: #1e3c72;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown a:hover {
  background: #f2f5fb;
  color: #2a5298;
}

.nav-item.has-dropdown:hover > .dropdown {
  display: block;
}

/* Keep open when focusing via keyboard */
.nav-item.has-dropdown:focus-within > .dropdown {
  display: block;
}

.header-cta {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  border-radius: 999px;
  padding: 0.5rem 1rem !important;
  box-shadow: 0 6px 18px rgba(76, 175, 80, 0.35);
}

.header-cta:hover {
  background: linear-gradient(135deg, #45a049 0%, #3f9142 100%);
  transform: translateY(-2px);
}

/* Main content styles */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.hero {
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 15px;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: #1e3c72;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #2a5298;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: #555;
}

.hero-rotator {
  font-size: 1.15rem;
  color: #2a5298;
  margin-bottom: 1.5rem;
}

.rotating-text {
  display: inline-block;
  min-width: 220px;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* Section styles */
.section {
  margin-bottom: 4rem;
}

.section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #1e3c72;
  text-align: center;
}

.section h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #2a5298;
}

.section p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #555;
}

/* Ensure anchored sections/cards account for sticky header height */
.section[id],
.card[id] {
  scroll-margin-top: 120px;
}

/* Grid layouts */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Counter animation style */
.stat-number { font-variant-numeric: tabular-nums; }

.card h3 {
  color: #1e3c72;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.card p {
  color: #666;
  margin-bottom: 1rem;
}

/* List styles */
ul {
  list-style: none;
  padding-left: 0;
}

ul li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 2rem;
}

ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4CAF50;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Stats section */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.stat {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 10px;
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Team section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.team-member {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.team-member img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 1rem;
  object-fit: cover;
}

/* Contact section */
.contact-info {
  background: #f8f9fa;
  padding: 3rem;
  border-radius: 10px;
  text-align: center;
  margin: 2rem 0;
}

.contact-info h3 {
  color: #1e3c72;
  margin-bottom: 1rem;
}

.contact-info p {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* Contact form styles */
.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #1e3c72;
  box-shadow: 0 0 0 2px rgba(30, 60, 114, 0.1);
}

.contact-form button {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.contact-form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* Footer styles */
footer {
  background: #1e3c72;
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: left;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: #4CAF50;
}

.footer-section p, .footer-section a {
  color: #ccc;
  text-decoration: none;
  margin-bottom: 0.5rem;
  display: block;
}

.footer-section a:hover {
  color: #4CAF50;
}

.footer-bottom {
  border-top: 1px solid #2a5298;
  padding-top: 1rem;
  margin-top: 2rem;
  text-align: center;
  color: #ccc;
}

/* Responsive design */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  nav {
    gap: 1rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .section h2 {
    font-size: 2rem;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats {
    grid-template-columns: 1fr;
  }
  
  .hero {
    padding: 2rem 1rem;
  }
  
  main {
    padding: 2rem 1rem;
  }
}
