/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #0ea5e9;
  --secondary-color: #f59e0b;
  --accent-color: #06b6d4;
  --dark-blue: #0c4a6e;
  --light-blue: #e0f2fe;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --white: #ffffff;
  --light-gray: #f8fafc;
  --gradient-1: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  --gradient-2: linear-gradient(135deg, #0c4a6e 0%, #0ea5e9 100%);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 1rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-brand a {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  transition: transform 0.3s ease;
  display: inline-block;
}

.nav-brand a:hover {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.btn-nav {
  background: var(--gradient-1);
  color: var(--white) !important;
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Hero Carousel */
.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Mobile carousel adjustments */
@media (max-width: 768px) {
  .carousel-slide img {
    object-position: center bottom;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(12, 74, 110, 0.3) 0%,
    rgba(14, 165, 233, 0.2) 50%,
    rgba(12, 74, 110, 0.3) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  color: var(--white);
  max-width: 900px;
  padding: 2rem;
  margin-top: 60px;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin-bottom: 2.5rem;
  opacity: 1;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 0.9rem;
  animation: bounce 2s infinite;
  z-index: 3;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-primary {
  background: var(--white);
  color: var(--primary-color);
  margin-right: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4),
    0 4px 20px rgba(0, 0, 0, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4),
    0 4px 20px rgba(0, 0, 0, 0.4);
}

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

.section-light {
  background: var(--light-gray);
}

.section-dark {
  background: linear-gradient(rgba(12, 74, 110, 0.4), rgba(14, 165, 233, 0.4)),
    url("img/pricing-background.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
}

.section-accent {
  background: var(--light-blue);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: inherit;
}

.title-underline {
  width: 80px;
  height: 4px;
  background: var(--gradient-1);
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto;
}

.section-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* About Mallorca Header Layout */
.about-mallorca-header {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
}

.about-mallorca-text {
  flex: 1;
}

.about-mallorca-text h3 {
  margin-top: 0;
}

/* Small Mallorca Image in About Box */
.mallorca-small-image {
  flex: 0 0 200px;
  text-align: center;
}

.mallorca-small-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mallorca-small-image img:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Responsive layout for About Mallorca */
@media (max-width: 768px) {
  .about-mallorca-header {
    flex-direction: column;
    gap: 1.5rem;
  }

  .mallorca-small-image {
    flex: none;
    align-self: center;
  }

  .mallorca-small-image img {
    max-width: 250px;
  }
}

/* Content Boxes */
.content-box {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.content-box h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark-blue);
}

.content-box p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.highlight {
  background: var(--light-blue);
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
  font-weight: 500;
}

.large-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark-blue);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--light-blue);
  border-radius: 10px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

/* Prerequisites */
.prerequisites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.prereq-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prereq-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.prereq-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.prereq-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--dark-blue);
}

.prereq-card p {
  color: var(--text-light);
  line-height: 1.7;
}

.note-box {
  background: var(--light-blue);
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
}

/* Highlight Box */
.highlight-box {
  background: var(--gradient-1);
  color: var(--white);
  padding: 3rem;
  border-radius: 20px;
  text-align: center;
  margin-top: 3rem;
  box-shadow: 0 10px 40px rgba(14, 165, 233, 0.3);
}

.highlight-box h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.tagline {
  font-size: 1.3rem;
  font-style: italic;
  opacity: 0.95;
}

/* Timeline */
.program-timeline {
  max-width: 900px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.timeline-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.timeline-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--dark-blue);
}

.timeline-content p {
  color: var(--text-light);
  line-height: 1.8;
}

/* Calendar */
.calendar-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.calendar {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

/* Mobile calendar adjustments - Enable horizontal scroll */
@media (max-width: 768px) {
  .calendar-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -20px;
    padding: 0 20px 10px 20px;
    position: relative;
  }

  .calendar-wrapper::after {
    content: "← Swipe to see more →";
    display: block;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-style: italic;
    opacity: 0.7;
  }

  .calendar {
    padding: 1rem;
    min-width: 700px; /* Fixed minimum width for proper readability */
  }
}

.calendar-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.calendar-day-name {
  text-align: center;
  font-weight: 700;
  padding: 1rem 0;
  color: var(--dark-blue);
  font-size: 0.9rem;
}

.calendar-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}

.calendar-cell {
  min-height: 120px;
  padding: 0.8rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.calendar-cell:not(.empty):hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.calendar-cell.empty {
  background: transparent;
}

.calendar-cell.classes {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border: 2px solid var(--primary-color);
}

.calendar-cell.excursion {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid var(--secondary-color);
}

.calendar-cell.arrival {
  background: linear-gradient(135deg, #ddd6fe 0%, #c4b5fd 100%);
  border: 2px solid #8b5cf6;
}

.calendar-cell.departure {
  background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
  border: 2px solid #ef4444;
}

.day-number {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--dark-blue);
}

.day-activity {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-dark);
  font-weight: 500;
}

.calendar-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

/* Mobile legend adjustments */
@media (max-width: 768px) {
  .calendar-legend {
    gap: 1rem;
    padding: 0 1rem;
  }

  .legend-item {
    font-size: 0.85rem;
    flex: 1;
    justify-content: center;
    min-width: 0;
  }
}

.legend-color {
  width: 30px;
  height: 30px;
  border-radius: 5px;
}

.legend-color.classes {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border: 2px solid var(--primary-color);
}

.legend-color.excursion {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid var(--secondary-color);
}

.legend-color.arrival {
  background: linear-gradient(135deg, #ddd6fe 0%, #fecaca 100%);
  border: 2px solid #8b5cf6;
}

/* Housing */
.housing-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Program Experience */
.experience-gallery {
  max-width: 1200px;
  margin: 0 auto;
}

.experience-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.experience-item:last-child {
  margin-bottom: 0;
}

.experience-reverse {
  grid-template-columns: 1fr 1fr;
}

.experience-reverse .experience-image {
  order: 2;
}

.experience-reverse .experience-content {
  order: 1;
}

.experience-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #f8f9fa;
}

.experience-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.experience-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
  display: block;
  border: none;
  outline: none;
}

.experience-content {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  height: fit-content;
}

.experience-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--dark-blue);
  font-family: "Playfair Display", serif;
}

.experience-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 0;
}

/* Program Video Section */
.program-video-section {
  text-align: center;
  margin: 4rem 0 0 0;
  padding: 0 1rem;
}

.program-video-section .video-title {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: var(--dark-blue);
  margin-bottom: 0.5rem;
}

.program-video-section .video-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.program-video-container {
  max-width: 400px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
  background: #000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  aspect-ratio: 9/16; /* Vertical video aspect ratio */
}

.program-video-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.program-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Desktop Flex Layout for Daily Program */
@media (min-width: 1024px) {
  .daily-program-content {
    display: flex;
    gap: 3rem;
    align-items: flex-end;
  }

  .daily-program-grid {
    flex: 1;
  }

  .program-video-section {
    flex: 0 0 400px;
    margin: 0;
    text-align: left;
  }

  .program-video-section .video-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .program-video-section .video-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .program-video-container {
    max-width: 100%;
    margin: 0;
    aspect-ratio: 9/16;
  }
}

/* Responsive video adjustments */
@media (max-width: 1023px) {
  .program-video-container {
    max-width: 350px;
    aspect-ratio: 9/16;
  }
}

@media (max-width: 768px) {
  .program-video-container {
    max-width: 300px;
    aspect-ratio: 9/16;
  }
}

/* Pricing */
.pricing-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.pricing-header {
  background: var(--gradient-1);
  color: var(--white);
  padding: 3rem;
  text-align: center;
}

.price-tag {
  margin-bottom: 1rem;
}

.currency {
  font-size: 2rem;
  vertical-align: top;
}

.amount {
  font-size: 5rem;
  font-weight: 800;
}

.price-duration {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.price-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
}

.pricing-content {
  padding: 3rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.pricing-list h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--dark-blue);
}

.pricing-list ul {
  list-style: none;
}

.pricing-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
}

.pricing-list li:last-child {
  border-bottom: none;
}

/* Coordinator */
.coordinator-content {
  max-width: 1000px;
  margin: 0 auto;
}

.coordinator-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
}

.coordinator-image {
  position: relative;
}

.coordinator-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  object-fit: cover;
  max-width: 400px;
}

.coordinator-text {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.coordinator-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--dark-blue);
}

.coordinator-text p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.coordinator-text .highlight {
  background: var(--light-blue);
  padding: 1.5rem;
  border-radius: 15px;
  border-left: 4px solid var(--primary-color);
  font-weight: 500;
  margin-top: 1.5rem;
}

/* Application Steps */
.application-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  margin-bottom: 3rem;
}

.step-card {
  flex: 1;
  min-width: 280px;
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  position: relative;
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--gradient-1);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.step-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--dark-blue);
}

.step-card ul {
  list-style: none;
}

.step-card li {
  padding: 0.5rem 0;
  color: var(--text-light);
  line-height: 1.6;
}

.step-arrow {
  font-size: 2rem;
  color: var(--primary-color);
  font-weight: bold;
}

/* Apply CTA Box */
.apply-cta-box {
  text-align: center;
  background: var(--light-blue);
  padding: 2rem 2rem;
  border-radius: 15px;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.apply-message {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--dark-blue);
  font-weight: 600;
}

.apply-cta-box .btn {
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

/* Next Steps */
.next-steps-list {
  max-width: 800px;
  margin: 0 auto;
}

.next-step-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 1.5rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.step-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.next-step-item p {
  font-size: 1.1rem;
  line-height: 1.7;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(rgba(12, 74, 110, 0.4), rgba(14, 165, 233, 0.4)),
    url("img/cta-background.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}

/* Mobile parallax fix */
@media (max-width: 768px) {
  .cta-section {
    background-attachment: scroll;
  }

  .section-dark {
    background-attachment: scroll;
  }
}

.cta-content h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.cta-buttons .btn {
  margin: 0;
}

.cta-note {
  font-size: 1rem;
  opacity: 0.9;
}

/* Footer */
.footer {
  background: var(--dark-blue);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.footer-section h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-section p {
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.footer-section a {
  color: var(--accent-color);
  text-decoration: none;
}

.footer-section a:hover {
  text-decoration: underline;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section li a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-section li a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
  padding: 0.5rem;
}

/* Responsive Design */
@media (max-width: 990px) {
  .nav-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: block !important;
  }

  /* When mobile menu is open */
  .nav-menu.mobile-menu-open {
    display: flex !important;
  }

  .hero-content {
    padding: 1rem;
  }

  .btn {
    display: block;
    margin: 0.5rem auto;
  }

  .btn-primary {
    margin-right: 0 !important;
  }

  .hero-content .btn {
    margin: 0.5rem auto;
  }

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

  /* Calendar cells maintain readable size with horizontal scroll */
  .calendar-cell {
    min-height: 110px;
    padding: 0.6rem;
  }

  .day-number {
    font-size: 1.3rem;
  }

  .day-activity {
    font-size: 0.8rem;
  }

  .application-steps {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
    margin: 0 !important;
  }

  .coordinator-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .coordinator-image {
    order: -1;
  }

  .coordinator-image img {
    max-width: 300px;
    margin: 0 auto;
  }

  .experience-item {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .experience-reverse {
    grid-template-columns: 1fr;
  }

  .experience-reverse .experience-image {
    order: 0;
  }

  .experience-reverse .experience-content {
    order: 0;
  }

  .experience-image img {
    height: 300px;
    display: block;
    border: none;
    outline: none;
  }

  .experience-content {
    padding: 2rem;
  }

  .program-video-container {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  /* Calendar maintains readable size with horizontal scroll */
  .calendar {
    min-width: 650px; /* Slightly smaller for very small screens but still readable */
  }

  .calendar-day-name {
    font-size: 0.85rem;
    padding: 0.8rem 0;
  }

  .calendar-cell {
    min-height: 100px;
    padding: 0.5rem;
  }

  .day-number {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
  }

  .day-activity {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .program-video-container {
    max-width: 280px;
    aspect-ratio: 9/16;
  }

  /* Mobile legend for very small screens */
  .calendar-legend {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }

  .legend-item {
    flex: none;
    justify-content: flex-start;
    width: 100%;
    max-width: 200px;
  }
}
