/* ================= GLOBAL ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  background: #FFFFFF;
  color: #1F2937;
  line-height: 1.6;
}

/* Optional: App-like centered layout */
body.app-style {
  max-width: 480px;
  margin: auto;
  box-shadow: 0 0 25px rgba(0,0,0,0.08);
}

/* ================= HERO ================= */
.hero {
  padding: 50px 16px;
  background: linear-gradient(to bottom, #F0FDF4, #FFFFFF);
}

.hero-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}

.hero-text {
  text-align: left;
}

.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  min-height: 200px;
  width: 100%;
  max-width: 900px;
}

.hero-brand-logo {
  display: block;
  width: min(100%, 900px);
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero-brand-logo.is-loading {
  opacity: 0;
}

.hero-brand-loader {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid #cfead9;
  border-top-color: #16A34A;
  animation: hero-logo-spin 0.7s linear infinite;
  flex: 0 0 auto;
}

.hero-brand-loader.hidden {
  display: none;
}

@keyframes hero-logo-spin {
  to {
    transform: rotate(360deg);
  }
}

.hero-text h1 {
  font-size: 26px;
  line-height: 1.3;
  margin-bottom: 12px;
  font-weight: 700;
}

.hero-text p {
  font-size: 14px;
  margin-bottom: 20px;
  color: #4B5563;
}

.hero-tagline {
  max-width: 560px;
}

.hero-image img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
}

/* Prevent overly wide college logos from taking half the hero */
@media (min-width: 768px) {
  .hero-container { align-items: center; }
  .hero-brand { flex: 0 0 54%; max-width: 900px; }
  .hero-text { flex: 0 0 auto; }
  .hero-image { flex: 1 1 60%; max-width: 60%; }
}

@media (min-width: 1024px) {
  .hero-brand { flex: 0 0 58%; max-width: 980px; }
  .hero-image { flex: 1 1 62%; max-width: 62%; }
}

/* ================= FEATURES ================= */
.features {
  padding: 50px 16px;
  text-align: center;
}

.features h2 {
  font-size: 22px;
  margin-bottom: 25px;
  font-weight: 600;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.feature-card {
  background: #ffffff;
  padding: 22px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.icon {
  font-size: 26px;
  margin-bottom: 10px;
  color: #16A34A;
}

/* ================= STATS ================= */
.stats {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 40px 16px;
  background: #F0FDF4;
  text-align: center;
}

.stat h3 {
  font-size: 26px;
  color: #16A34A;
  font-weight: 700;
}

.stat p {
  font-size: 14px;
  color: #4B5563;
}

/* ================= CTA SECTION ================= */
.cta-section {
  text-align: center;
  padding: 50px 16px;
}

.cta-section h2 {
  font-size: 20px;
  margin-bottom: 18px;
  font-weight: 600;
}

/* ================= BUTTON ================= */
.btn-primary {
  background: #16A34A;
  color: white;
  padding: 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  width: 100%;
  max-width: 280px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #15803D;
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: scale(0.98);
}

/* ================= TABLET ================= */
@media (min-width: 768px) {

  .hero {
    padding: 70px 40px;
  }

  .hero-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }

  .hero-text {
    flex: 1;
  }

  .hero-image {
    flex: 1;
  }

  .hero-text h1 {
    font-size: 34px;
  }

  .hero-brand-logo {
    width: min(100%, 520px);
    max-height: 120px;
  }

  .hero-text p {
    font-size: 15px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats {
    flex-direction: row;
    justify-content: space-around;
  }

  .btn-primary {
    width: auto;
  }
}

/* ================= DESKTOP ================= */
@media (min-width: 1024px) {

  .hero {
    padding: 100px 60px;
  }

  .hero-text h1 {
    font-size: 42px;
  }

  .hero-brand-logo {
    width: min(100%, 620px);
    max-height: 140px;
  }

  .features {
    padding: 80px 60px;
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-section {
    padding: 80px 20px;
  }
}