/* Import Poppins font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&display=swap');

/* Color Variables */
:root {
  --orange: #F97316; /* Primary Color - Orange */
  --blue: #2563EB; /* Secondary Color - Blue */
  --red: #EF4444; /* Tertiary Color - Red */
  --text-dark: #111827; /* Dark text (Used for Black Hero BG) */
  --text-gray: #6B7280; /* Standard paragraph text */
  --bg-light: #F9FAFB; /* Light background */
  --card-bg: #FFFFFF; /* Card background */
  --card-shadow: rgba(0, 0, 0, 0.08); /* Card shadow for lift */
  --light-border: #E5E7EB; /* Light border color */
  --stripe-offset: 40px; /* Distance of stripe from edge */
}

/* Global Reset and Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: var(--card-bg);
  color: var(--text-dark);
  line-height: 1.6;
}

/* Add smooth scrolling behavior for internal links */
html {
    scroll-behavior: smooth;
}

/* Reusable Components */

/* Main Container for Page Content */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Primary Button Style */
.btn {
  background-color: var(--orange);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn:hover {
  background-color: #dc6803; /* darker orange */
  transform: translateY(-2px);
}

/* Headings */
h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: var(--text-dark);
}

/* --- NAVBAR --- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  border-bottom: 1px solid var(--light-border);
  background: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05); /* Subtle shadow for lift */
}

nav .logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--orange);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
  /* Added for mobile positioning */
  transition: transform 0.3s ease-in-out;
}

nav ul li a {
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  padding: 5px 0;
  transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--orange);
  border-bottom: 2px solid var(--orange);
}

nav .btn-register {
  padding: 8px 18px;
}

/* HAMBURGER STYLING */
.menu-toggle {
    display: none; /* Hidden by default on desktop */
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
    color: var(--text-dark);
}

/* --- SECTION: Hero (Index Page) --- */
.hero {
  /* Background set to dark/black */
  background-color: var(--text-dark); 
  padding: 60px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative; 
  overflow: hidden; 
}

/* Text color set to white */
.hero h1, .hero p {
  color: white; 
}

.hero h1 {
  max-width: 800px;
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 700px;
}

.hero .btn {
  margin-bottom: 40px;
}

/* Image styling - Limits the height of the banner image */
.hero img {
  max-width: 100%;
  max-height: 450px; 
  width: 100%;
  object-fit: cover; /* Ensures the image covers the container without distortion */
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Decorative Stripes on Hero Banner (Thin, Vertical, and Offset) */
.stripe-container {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 24px; /* TOTAL THIN WIDTH (3 colors x 8px) */
    z-index: 5;
    display: flex;
    flex-direction: row; /* Stripes side-by-side */
}

.stripe-left {
    left: var(--stripe-offset); /* Offset from the left edge */
    border-right: 1px solid var(--light-border);
}

.stripe-right {
    right: var(--stripe-offset); /* Offset from the right edge */
    border-left: 1px solid var(--light-border);
}

.stripe-orange, .stripe-blue, .stripe-red {
    width: 8px; /* Width of each individual stripe */
    height: 100%; 
}

/* Set stripe colors */
.stripe-orange { background-color: var(--orange); }
.stripe-blue { background-color: var(--blue); }
.stripe-red { background-color: var(--red); }


/* --- SECTION: Age groups (cards) --- */
.age-groups {
  display: flex;
  gap: 30px;
  justify-content: center;
  max-width: 1100px;
  margin: 40px auto 80px auto;
  flex-wrap: wrap;
}

.age-group-card {
  background: var(--card-bg);
  box-shadow: 0 4px 15px var(--card-shadow);
  border-radius: 16px;
  padding: 30px;
  width: 300px;
  text-align: center;
  cursor: default;
  user-select: none;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.age-group-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.age-group-card h2 {
  font-weight: 800;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.age-group-card h2.orange {
  color: var(--orange);
}

.age-group-card h2.blue {
  color: var(--blue);
}

.age-group-card h2.red {
  color: var(--red);
}

.age-group-card h3 {
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.age-group-card p {
  color: var(--text-gray);
  font-size: 1rem;
  line-height: 1.5;
}

/* "What Makes Us Different" section */
.difference-section {
  background-color: var(--bg-light);
  max-width: 1100px;
  margin: 80px auto;
  padding: 60px 40px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.difference-section h2 {
  margin-bottom: 50px;
}

.difference-columns {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

.difference-column {
  flex: 1 1 45%;
  min-width: 300px;
}

.difference-column h4 {
  font-weight: 800;
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.difference-column h4.orange {
  color: var(--orange);
}

.difference-column h4.blue {
  color: var(--blue);
}

.difference-column h4.red {
  color: var(--red);
}

.difference-column p {
  color: var(--text-gray);
  font-size: 1rem;
  line-height: 1.5;
}

/* --- PROGRAM PAGE STYLES (Full-Width, Stacking Layout) --- */
.programs-grid {
    display: block; /* Stack items vertically */
    max-width: 1100px; /* Use full container width */
    margin: 40px auto;
}

.program-nav-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}
.program-nav-buttons .btn {
    background-color: var(--text-dark);
    color: white;
    padding: 10px 20px;
    font-size: 0.95rem;
    transition: background-color 0.3s ease;
}
.program-nav-buttons .btn:hover {
    background-color: var(--orange);
}

.program-card-wrapper {
    margin-bottom: 40px; /* Space between cards */
    background: var(--card-bg);
    border: 1px solid var(--light-border);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
    overflow: hidden;
}

.program-card-wrapper:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Layout for Content inside the card */
.program-content {
    display: flex;
    padding: 30px;
    gap: 40px;
    align-items: flex-start; /* Align text content to the top left */
}

.program-text {
    flex: 2; /* Takes up 2/3 of the space */
    min-width: 50%;
}

.program-image-placeholder {
    flex: 1; /* Takes up 1/3 of the space */
    min-width: 250px;
    height: 250px; /* Placeholder height */
    background-color: var(--bg-light);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-gray);
    font-size: 0.9rem;
    border: 1px dashed var(--light-border);
}

/* Rule for future images to fit placeholder area */
.program-image-placeholder img {
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: 8px; 
}


.program-text h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
}

/* Use colors for program titles */
.program-text h3.orange { color: var(--orange); }
.program-text h3.blue { color: var(--blue); }
.program-text h3.red { color: var(--red); }
.program-text h3.default { color: var(--text-dark); }

.program-text ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    font-size: 1rem;
}

.program-text ul li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    color: var(--text-gray);
    line-height: 1.5;
}

/* Colored markers */
.program-text ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    font-weight: 900;
    font-size: 1.2rem;
    line-height: 1;
}
.program-card-wrapper.red ul li::before { color: var(--red); }
.program-card-wrapper.blue ul li::before { color: var(--blue); }
.program-card-wrapper.orange ul li::before { color: var(--orange); }
.program-card-wrapper.default ul li::before { color: var(--text-dark); }


/* Button Style at the bottom of the card */
.program-cta {
    padding: 0 30px 30px 30px;
}

.program-cta .btn {
    width: auto;
    padding: 10px 30px;
    font-size: 1.1rem;
}

/* --- FORM STYLES (Contact & Register) --- */
#contact-form, #registration-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-light);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--light-border);
}

label {
    display: block;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid var(--light-border);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-dark);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: white; /* Ensure select/input background is white */
}

/* REQUIRED FIELD STYLES */
.required-field {
    border: 2px solid var(--red) !important;
    box-shadow: 0 0 0 1px var(--red);
}

input:focus, textarea:focus, select:focus {
    border-color: var(--blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2); /* Blue focus ring */
}

textarea {
    resize: vertical;
}

.btn[type="submit"] {
    width: 100%;
    margin-top: 30px;
}

/* --- ABOUT PAGE SPECIFIC STYLES --- */
.container h2:not(:first-of-type) {
  margin-top: 40px;
}
.container p {
  max-width: 800px;
  margin: 0 auto 20px auto;
  text-align: center;
  color: var(--text-gray);
}
.about-image {
  max-width: 800px;
  margin: 30px auto;
  display: block;
}

/* --- FOOTER --- */
footer {
  text-align: center;
  padding: 20px 0;
  background-color: var(--text-dark);
  color: var(--bg-light);
  font-size: 0.9rem;
  margin-top: 60px;
}

/* Responsive tweaks */
@media (max-width: 1024px) {
    nav {
        padding: 16px 20px;
    }
    nav ul {
        gap: 20px;
    }
    /* Reduce stripe offset on slightly smaller screens */
    .stripe-left {
        left: 20px; 
    }
    .stripe-right {
        right: 20px;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 16px 20px;
        justify-content: space-between;
    }
    
    /* MOBILE NAVIGATION STYLING */
    nav ul {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 60px; /* Below the nav bar */
        left: 0;
        width: 100%;
        background: var(--card-bg); /* White background for the menu */
        border-top: 1px solid var(--light-border);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        gap: 0;
    }
    nav ul.active {
        display: flex; /* Show the menu when the 'active' class is added by JS */
    }
    nav ul li a {
        padding: 10px 20px;
        border-bottom: 1px solid var(--bg-light);
        display: block; /* Make links full width */
    }
    /* Hide the Register button only when the menu is hidden */
    nav .btn-register {
        display: none;
    }
    /* Show the hamburger icon */
    .menu-toggle {
        display: block;
    }
  
    .hero h1 {
        font-size: 2.2rem;
    }
    
    /* Hide stripes on mobile to save space and focus content */
    .stripe-container {
        display: none;
    }
  
    .age-groups {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
  
    .age-group-card {
        width: 90%;
        max-width: 350px;
    }
  
    .difference-section {
        padding: 40px 20px;
        margin: 60px 10px;
    }
  
    .difference-columns {
        flex-direction: column;
        gap: 30px;
    }
  
    .difference-column {
        min-width: 100%;
    }

    /* Form padding adjustments */
    #contact-form, #registration-form {
        padding: 30px 20px;
    }
  
    /* Program card adjustments for vertical layout on mobile */
    .program-content {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    .program-image-placeholder {
        width: 100%;
        height: 200px;
    }
    .program-cta {
        padding: 0 20px 20px 20px;
    }
    .program-cta .btn {
        width: 100%;
    }
    .program-card-wrapper {
        margin-bottom: 30px;
    }
}