/* Base styles */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9fafb;
  color: #333;
  line-height: 1.6;
}

a {
  color: #004225;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header {
  background: #edf6ef;
  border-bottom: 1px solid #ddd;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  flex-wrap: wrap;
}

.tagline {
  font-size: 1rem;
  color: #1a1a1a;
}

.dropbtn {
  color: #1a1a1a;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 9999;
  background-color: #edf6ef;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  min-width: 180px;
  width: max-content;           /* shrink to fit content */
  max-width: 100vw;            /* never exceed viewport */
  margin: 0;                   /* remove previous auto centering */
  right: auto;                 /* clear any conflicting positioning */
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}

.dropdown-content a {
  color: #1a1a1a;
  padding: 10px 15px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #d4f0dc;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.logo img {
  height: 40px;
}

nav a {
  margin-left: 1.5rem;
  font-weight: 500;
}

.phone-number {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: bold;
  color: #1a1a1a;
}

.cta-button {
  background-color: #004225;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  display: inline-block;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background-color: #006d3c;
}

/* Hero section */
.college-hero {
  background: linear-gradient(to right, #edf6ef, #d6f5e3);
  background-size: cover;
  background-position: center;
  padding: 4rem 2rem;
  text-align: center;
}

.college-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #004225;
}

.college-hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #333;
}

.btn-primary {
  background-color: #004225;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: #0b7d42;
}

/* Features section */
.features {
  padding: 3rem 2rem;
  background-color: #fff;
}

.features h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #004225;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-item {
  background-color: #f1fdf7;
  padding: 2rem;
  border-radius: 0.75rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.feature-item i {
  font-size: 2rem;
  color: #004225;
  margin-bottom: 0.5rem;
}

.feature-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* Trusted by schools */
.schools-used-by {
  background-color: #eafbf1;
  padding: 3rem 2rem;
  text-align: center;
}

.schools-used-by h2 {
  color: #004225;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.school-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
}

.school-list li {
  padding: 0.5rem;
  background: #ffffff;
  border-radius: 0.5rem;
  font-weight: 500;
}

/* FAQ */
.faq {
  padding: 3rem 2rem;
  background-color: #fff;
}

.faq h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #004225;
}

.faq details {
  background: #f9f9f9;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  padding: 1rem;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.faq summary {
  font-weight: 600;
  color: #004225;
}

.faq p {
  margin: 0.5rem 0 0;
}

.site-footer {
  background-color: #f8f8f8;
  color: #444;
  font-size: 0.9rem;
  padding: 2rem 1rem;
  border-top: 1px solid #ddd;
  text-align: center;
}


.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

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

.footer-section h4 {
  color: #2e8b57;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.footer-section a {
  color: #2e8b57;
  text-decoration: none;
}

.footer-section a:hover {
  text-decoration: underline;
}

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

.footer-section ul li {
  margin-bottom: 0.25rem;
}

.fmcsa-badge {
  height: 30px;
  margin-top: 0.5rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #666;
}

.mobile-cta-banner {
  display: none; /* Hide on desktop */
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .college-hero h1 {
    font-size: 2rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  nav {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
  }

  nav a {
    display: inline-block;
    margin: 0.5rem 1rem;
  }

  .dropdown-content {
    position: relative;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 6px;
  }
  .hamburger {
    display: block;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 1001;
  }

  .hamburger span {
    background: #1e3d29;
    display: block;
    height: 3px;
    margin: 5px 0;
    border-radius: 2px;
  }

  .tagline {
    display: none;
  }
  #nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background: #edf6ef;
    padding: 10px;
    border-radius: 8px;
    width: 200px;
    z-index: 1000;
  }

  #nav-menu.active {
    display: flex;
  }

  nav a {
    padding: 10px 15px;
    border-top: 1px solid #006633;
  }

  nav a:first-child {
    border-top: none;
  }

  .phone-number {
    display: none;
  }

  #nav-menu a {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  #nav-menu a:last-child {
    border-bottom: none;
  }
  .logo {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
  }
  .site-footer {
    padding-bottom: 85px; /* Adjust to match your mobile CTA height */
  }
}
