@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #0056b3;
  --secondary: #00d4ff;
  --dark: #121212;
  --light: #f8f9fa;
  --accent: #f38020;
  --text-muted: #666;
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  margin: 0;
  color: #333;
  background: var(--light);
  scroll-behavior: smooth;
}

/* Navigation */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1.2rem 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--primary);
  text-transform: uppercase;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-cta {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s;
}
.nav-cta:hover { color: var(--accent); }

/* Hero Section */
.hero {
  height: 70vh;
  background: linear-gradient(rgba(0, 45, 93, 0.85), rgba(0, 20, 40, 0.9)), url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&q=80&w=1600');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  padding: 0 10%;
  text-align: center;
}

.hero h1 { 
  font-size: clamp(2.2rem, 5vw, 3.5rem); 
  margin-bottom: 1rem; 
  text-transform: uppercase; 
  letter-spacing: 2px;
  line-height: 1.2;
}
.hero p { 
  font-size: 1.2rem; 
  opacity: 0.9; 
  max-width: 800px; 
  margin-bottom: 2rem; 
  line-height: 1.6; 
}

/* Layout & Cards */
.programs { 
  padding: 80px 10%; 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
  gap: 40px; 
}

.card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
  transition: 0.3s ease;
  padding: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  display: block; /* Ensures anchor tag behaves like a block */
  text-decoration: none; /* Removes underline from links */
  color: inherit; /* Keeps text color consistent */
}

.card:hover { 
  border-color: var(--primary); 
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-content {
  padding: 2rem;
}

.card h3 { 
  margin: 0 0 1rem; 
  color: var(--primary); 
  font-size: 1.4rem; 
  letter-spacing: 1px; 
}
.card p { 
  font-size: 1rem; 
  color: var(--text-muted); 
  line-height: 1.6; 
}

/* Buttons */
.btn {
  background: transparent;
  color: white;
  padding: 12px 30px;
  text-decoration: none;
  border: 2px solid var(--secondary);
  border-radius: 4px;
  font-weight: bold;
  display: inline-block;
  transition: 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
}

.btn:hover { 
  background: var(--secondary); 
  color: var(--primary); 
}

/* Footer */
footer { 
  background: var(--dark); 
  color: white; 
  padding: 60px 10%; 
  text-align: center; 
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-nav { margin: 20px 0; }
.footer-nav a { 
  color: white; 
  margin: 0 15px; 
  text-decoration: none; 
  font-size: 0.9rem; 
  opacity: 0.7; 
  transition: 0.3s; 
}
.footer-nav a:hover { opacity: 1; color: var(--secondary); }
.copyright { font-size: 0.8rem; opacity: 0.5; margin-top: 20px; }

/* Construction Banner */
.construction-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(243, 128, 32, 0.95); /* Accent color with opacity */
  color: white;
  text-align: center;
  padding: 20px;
  font-weight: 700;
  font-size: 1.1rem;
  z-index: 9999;
  backdrop-filter: blur(5px);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Team */
.team-card {
  text-align: center;
  align-items: center;
  display: flex;
  flex-direction: column;
}

.team-card img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
}

.stat-card { text-align: center; }
.stat-card h3 { color: var(--primary); font-size: 2.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.news-date { color: var(--accent); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; display: block; margin-bottom: 10px; }
.news-link { color: var(--primary); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--primary); display: inline-block; margin-top: 15px; }

/* Mobile Responsiveness */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 15px;
    position: relative; /* Unstick header on mobile to save screen space */
  }

  nav {
    width: 100%;
    margin-top: 15px;
  }

  nav ul {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .hero {
    padding: 80px 20px;
  }

  .hero-page {
    padding: 60px 20px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

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

  .contact-form {
    padding: 25px 20px;
  }

  .construction-banner {
    font-size: 0.75rem;
    padding: 10px;
    line-height: 1.4;
  }
  
  footer {
    padding: 40px 20px 80px; /* Extra padding for bottom banner */
  }
}

/* Modal Popup Styles */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7); /* Dims the background */
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 1.5rem 2rem;
    background: var(--primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 { margin: 0; font-size: 1.25rem; }

.close-btn {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

/* The Masking Container for the Form */
.form-crop-mask {
    height: 620px; /* Cuts off the Microsoft footer */
    overflow: hidden;
    position: relative;
}

.form-crop-mask iframe {
    width: 100%;
    height: 750px;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
}

.modal-footer-info {
    padding: 1rem 2rem;
    background: #f8f9fa;
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    border-top: 1px solid #eee;
}

/* Booking Page Styles */
.calendar-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.booking-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}