/*-----------------------------------
  Variables & Reset
-----------------------------------*/
:root {
  --primary-color: #0052cc;
  --secondary-color: #f4f4f4;
  --accent-color: #25d366;
  --text-color: #333;
  --bg-color: #fff;
  --transition: 0.3s ease;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  color: var(--text-color);
  background: var(--bg-color);
  line-height: 1.6;
}

/*-----------------------------------
  Layout Helpers
-----------------------------------*/
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/*-----------------------------------
  Header & Navigation
-----------------------------------*/
header {
  background: var(--bg-color);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.logo {
  height: 50px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  padding: 0.5rem;
  transition: background var(--transition), color var(--transition);
}

nav a:hover {
  background: var(--secondary-color);
  border-radius: 4px;
}

nav a.cta {
  background: var(--primary-color);
  color: #fff;
  border-radius: 4px;
}

#nav-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color);
}

/*-----------------------------------
  Hero Section
-----------------------------------*/
.hero {
  text-align: center;
  padding: 4rem 0;
  background: var(--secondary-color);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/*-----------------------------------
  Common Button Styles
-----------------------------------*/
.btn {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  transition: opacity var(--transition);
}

.btn:hover {
  opacity: 0.9;
}

.btn.secondary {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn.whatsapp {
  background: var(--accent-color);
}

/*-----------------------------------
  Sections & Content
-----------------------------------*/
.section {
  padding: 3rem 0;
}

.section h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.section h3,
.section h4 {
  margin: 1rem 0 0.5rem;
}

.section p {
  margin-bottom: 1rem;
}

.section ul {
  margin-left: 1.25rem;
  margin-bottom: 1rem;
}

/*-----------------------------------
  Contact Form
-----------------------------------*/
form input,
form textarea,
form button {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

form button {
  background: var(--primary-color);
  color: #fff;
  border: none;
  cursor: pointer;
}

.success-message {
  display: none;
  color: green;
  font-weight: bold;
  text-align: center;
}

/*-----------------------------------
  Map & Footer
-----------------------------------*/
.map iframe {
  border: 0;
  border-radius: 4px;
}

footer {
  background: var(--secondary-color);
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

footer .social a {
  margin: 0 0.5rem;
  color: var(--text-color);
  text-decoration: none;
}

/*-----------------------------------
  Scroll-Reveal Animations
-----------------------------------*/
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/*-----------------------------------
  Responsive Breakpoints
-----------------------------------*/
@media (max-width: 768px) {
  #nav-toggle {
    display: block;
  }

  nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 250px;
    height: 100vh;
    background: var(--bg-color);
    flex-direction: column;
    padding-top: 3rem;
    transition: left var(--transition);
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
  }

  nav.active {
    left: 0;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
  }
}

/* -----------------------------------
   Juniors Section: Card-Style Programs
   ----------------------------------- */
#juniors .container {
  /* add a little breathing room */
  padding-top: 2rem;
  padding-bottom: 2rem;
}

#juniors h4 {
  background: var(--secondary-color);
  border-left: 4px solid var(--primary-color);
  padding: 1rem;
  border-radius: 4px;
  margin-top: 2rem;
  font-size: 1.1rem;
  color: var(--text-color);
}

#juniors h4 + ul {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  padding: 1rem 1.5rem;
  margin: 0.5rem 0 1.5rem;
  border-radius: 4px;
  list-style: disc inside;
}

#juniors ul ul {
  background: var(--secondary-color);
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
  border-radius: 4px;
}

/* -----------------------------------
   Seniors Section: Card-Style Programs
   ----------------------------------- */
#seniors .container {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

#seniors h4 {
  background: var(--secondary-color);
  border-left: 4px solid var(--primary-color);
  padding: 1rem;
  border-radius: 4px;
  margin-top: 2rem;
  font-size: 1.1rem;
  color: var(--text-color);
}

#seniors h4 + ul {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  padding: 1rem 1.5rem;
  margin: 0.5rem 0 1.5rem;
  border-radius: 4px;
  list-style: disc inside;
}

/* optional: highlight the intro paragraph */
#seniors .seniors-intro {
  background: var(--secondary-color);
  padding: 1.25rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

/*--------------------------------------------------
  1) Distinct Section Backgrounds & Padding
--------------------------------------------------*/
#juniors {
  background: linear-gradient(135deg, #e0f7fa 60%, #ffffff 60%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

#seniors {
  background: linear-gradient(135deg, #fff3e0 60%, #ffffff 60%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

/*--------------------------------------------------
  2) Decorative Diagonal Overlays
--------------------------------------------------*/
#juniors::before,
#seniors::before {
  content: "";
  position: absolute;
  width: 120%;
  height: 120%;
  opacity: 0.04;
  transform: rotate(6deg);
  pointer-events: none;
}

#juniors::before {
  top: -40%;
  left: -20%;
  background: var(--primary-color);
}

#seniors::before {
  bottom: -40%;
  right: -20%;
  background: var(--primary-color);
}

/*--------------------------------------------------
  3) Section Heading Style
--------------------------------------------------*/
#juniors h2,
#seniors h2 {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

/*--------------------------------------------------
  4) Card-Style Program Blocks
     (leveraging your existing h4 + ul structure)
--------------------------------------------------*/
#juniors h4,
#seniors h4 {
  margin-top: 2rem;
  padding: 0.8rem 1rem;
  background: #fff;
  border-left: 4px solid var(--accent-color);
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  font-size: 1.1rem;
}

#juniors h4 + ul,
#seniors h4 + ul {
  margin: 0.5rem 0 1.5rem;
  padding: 1rem 1.5rem;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border-radius: 4px;
  list-style: disc inside;
}

/* Nested lists in Juniors get a lighter tint */
#juniors ul ul {
  background: #f4f9fb;
  margin: 0.5rem 0;
  padding: 0.75rem 1rem;
  border-radius: 4px;
}

/*--------------------------------------------------
  5) Mobile Tweaks
--------------------------------------------------*/
@media (max-width: 768px) {
  #juniors::before,
  #seniors::before {
    opacity: 0.02;
  }

  #juniors h2,
  #seniors h2 {
    font-size: 1.6rem;
    padding: 0.5rem 0.8rem;
  }
}
