:root {
  --primary: #f26f4f;
  --secondary: #4db6ac;
  --background: #fff6f1;
  --dark: #2f2f2f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--background);
  color: var(--dark);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 4px solid var(--primary);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.nav a {
  margin-left: 1rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--dark);
}

.logo {
  height: 90px;
}

@media (max-width: 768px) {
  .logo {
    height: 70px;
  }
}

/* ===== HERO VIDEO ===== */
.hero {
  position: relative;
  height: 85vh;
  color: #ffffff;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 520px;
  text-align: left;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

.hero-buttons .btn {
  margin-right: 0.75rem;
}

/* Mobile hero layout */
@media (max-width: 768px) {
  .hero {
    height: auto;
    padding: 5rem 0;
  }

  .hero-content {
    text-align: center;
    margin: auto;
  }

  .hero-buttons .btn {
    display: inline-block;
    margin: 0.5rem;
  }
}

/* CTA BUTTONS – PREMIUM */
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  letter-spacing: 0.3px;
}

/* Primary CTA */
.btn.primary {
  background: linear-gradient(135deg, #ff7a18, #ffb347);
  color: #ffffff;
  box-shadow: 0 12px 25px rgba(255, 122, 24, 0.4);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(255, 122, 24, 0.5);
}

/* Secondary CTA */
.btn.secondary {
  background: #ffffff;
  color: #ff7a18;
  border: 2px solid #ffddb8;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.btn.secondary:hover {
  background: #fff6ee;
  transform: translateY(-2px);
}

/* ACCESSIBILITY FOCUS */
.btn:focus {
  outline: 3px solid #ffb347;
  outline-offset: 4px;
}

/* Features */
.features {
  padding: 4rem 0;
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: linear-gradient(180deg, #ffffff 0%, #fffaf7 100%);
  padding: 2.2rem;
  border-radius: 20px;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(242, 111, 79, 0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Accent bar */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--primary),
    var(--secondary)
  );
}

/* Hover interaction */
.card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(242, 111, 79, 0.12);
}

/* Color-on-hover glow */
.card:hover::before {
  opacity: 0.85;
}

/* Headings inside cards */
.card h3 {
  margin-top: 1rem;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
  color: var(--primary);
}

/* Card text */
.card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* Pages */
.page {
  padding: 3rem 0;
}

.page h1 {
  color: var(--primary);
}

/* Footer */
.site-footer {
  background: var(--primary);
  color: #ffffff;
  text-align: center;
  padding: 1.5rem;
  margin-top: 3rem;
}

/* Programs */
/* Programs Grid Container */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  padding: 1rem;
}

/* Individual Program Card */
.program-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: left; /* Keep text left for readability */
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  border: 1px solid #f0f0f0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Keeps text left */
}

/* Centered & Enlarged Icon */
.icon {
  font-size: 4rem; /* Makes the emoji/icon big and bold */
  margin: 0 auto 1.5rem auto; /* Centers the icon and adds space below */
  display: block;
  background: #fff9e6; /* Soft circle background for the icon */
  width: 100px;
  height: 100px;
  line-height: 100px;
  text-align: center;
  border-radius: 50%;
}

.program-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.1);
  border-color: #ffb703;
}

.program-card:hover .icon {
  transform: scale(1.1); /* Subtle pop effect on the icon when hovering */
  transition: transform 0.3s ease;
}

/* Program Headlines - Now Centered to match icon */
.program-card h3 {
  color: #2a2a2a;
  margin: 0 auto 1.5rem auto; /* Centers the title */
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  width: 100%;
  border-bottom: 3px solid #ffb703;
  padding-bottom: 10px;
}

/* Program Content/Lists */
.program-card p, .program-card ul {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 1rem;
  width: 100%;
}

/* Maryland Standard Bullet Points */
.program-card ul {
  padding-left: 1.2rem;
  list-style: none;
}

.program-card li {
  position: relative;
  margin-bottom: 0.8rem;
}

.program-card li::before {
  content: "✓"; /* Checkmark suggests "Standard Met" */
  color: #ffb703;
  font-weight: bold;
  position: absolute;
  left: -1.5rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  border-radius: 14px;
}

/* --- Video Section --- */
.video-tour {
  text-align: center;
  padding-top: 20px;
}

.video-tour hr {
  border: 0;
  border-top: 1px solid #ddd;
  margin-bottom: 30px;
}

.facility-video {
  width: 100%;           /* Responsive on mobile */
  max-width: 700px;      /* Professional size on desktop */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* --- Mobile Specific Fixes --- */
@media (max-width: 600px) {
  .gallery-grid img {
    max-height: none;    /* Allow images to fill width on small phones */
    width: 100%;         /* Stack images vertically on very small screens */
  }
  
  h1 { font-size: 1.5rem; }
}


/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
