/* Horizon Academy - Custom Styles */
:root {
  --primary: #0d6efd;
  --primary-dark: #0a58ca;
  --secondary: #198754;
  --accent: #6610f2;
  --dark: #1a1a2e;
  --light-bg: #f8f9fa;
  --text-muted: #6c757d;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  background: rgba(255,255,255,0.97) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  padding: 0.8rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--dark) !important;
}

.navbar-brand span {
  color: var(--primary);
}

.nav-link {
  font-weight: 500;
  color: #444 !important;
  margin: 0 0.3rem;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
}

.btn-primary-custom {
  background: var(--primary);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-primary-custom:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13,110,253,0.35);
  color: white;
}

.btn-outline-custom {
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  padding: 0.5rem 1.3rem;
  border-radius: 50px;
  background: transparent;
  transition: all 0.3s ease;
}

.btn-outline-custom:hover {
  background: var(--primary);
  color: white;
}

/* Hero */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #e8f0fe 0%, #f0e7ff 50%, #e6f7f0 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(13,110,253,0.12) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
}

.hero .lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.stat-item h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0;
}

.stat-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-title {
  font-weight: 700;
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 3rem;
}

/* Cards */
.feature-card,
.program-card,
.facility-card,
.resource-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: none;
  transition: all 0.3s ease;
  height: 100%;
  overflow: hidden;
}

.feature-card:hover,
.program-card:hover,
.facility-card:hover,
.resource-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.program-card .card-img-top {
  height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, #0d6efd, #6610f2);
}

.badge-fee {
  background: #e8f5e9;
  color: #2e7d32;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 50px;
  font-size: 0.85rem;
}

.icon-box {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.icon-blue { background: #e3f2fd; color: #1565c0; }
.icon-green { background: #e8f5e9; color: #2e7d32; }
.icon-purple { background: #f3e5f5; color: #7b1fa2; }
.icon-orange { background: #fff3e0; color: #ef6c00; }

/* Testimonials */
.testimonial-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  height: 100%;
}

.testimonial-card .quote {
  font-style: italic;
  color: #555;
  margin-bottom: 1.2rem;
}

.testimonial-card .author {
  font-weight: 600;
  color: var(--dark);
}

.testimonial-card .role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  border-radius: var(--radius);
  padding: 3.5rem 2rem;
  text-align: center;
}

.cta-banner h2 {
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Forms */
.form-control, .form-select {
  border-radius: 10px;
  padding: 0.7rem 1rem;
  border: 1.5px solid #dee2e6;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.15);
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.4rem;
}

/* Footer */
footer {
  background: var(--dark);
  color: #adb5bd;
  padding: 4rem 0 2rem;
}

footer h5 {
  color: white;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

footer a {
  color: #adb5bd;
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #2d2d44;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.9rem;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, #e8f0fe 0%, #f0e7ff 100%);
  padding: 6rem 0 3rem;
  margin-top: 56px;
}

.page-header h1 {
  font-weight: 800;
  color: var(--dark);
}

/* Facility images placeholders */
.facility-img {
  height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

/* Animation helpers - no opacity hiding so content is always visible */
.fade-up {
  /* intentionally empty */
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 6rem 0 4rem;
  }
  .hero-stats {
    gap: 1.2rem;
  }
  .section {
    padding: 3.5rem 0;
  }
}
