/* =========================
   Mission & History Page Styles
==========================*/


.mission-history-section {
  padding: 80px 0;
  background: #f8fafc;
}

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

/* Section Headers */
.section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.header-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-icon.mission-icon {
  background: linear-gradient(135deg, #10b981, #047857);
}

.header-icon.excellence-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.header-icon svg {
  width: 30px;
  height: 30px;
  color: white;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0;
  line-height: 1.2;
}

/* Legacy Section */
.legacy-section {
  background: #ffffff;
  border-radius: 20px;
  padding: 60px 50px;
  margin-bottom: 60px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.8);
  text-align: center;
}

.legacy-content {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.lead-paragraph {
  font-size: 1.25rem;
  color: #374151;
  line-height: 1.7;
  margin-bottom: 25px;
  font-weight: 500;
}

.legacy-text p {
  font-size: 1.125rem;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 25px;
}

.legacy-text strong {
  color: #1f2937;
  font-weight: 600;
}

/* Milestone Highlight */
.milestone-highlight {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 30px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(29, 78, 216, 0.05));
  border-radius: 16px;
  border-left: 5px solid #3b82f6;
  margin: 30px 0;
  justify-content: center;
}

.milestone-date {
  text-align: center;
  flex-shrink: 0;
}

.date-day {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #3b82f6;
  line-height: 1;
}

.date-month {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #1d4ed8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.date-year {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  color: #3b82f6;
}

.milestone-content h4 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 10px 0;
}

.milestone-content p {
  font-size: 1.125rem;
  color: #4b5563;
  margin: 0;
  line-height: 1.6;
}

/* CTA Box */
.cta-box {
  padding: 25px 30px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(4, 120, 87, 0.05));
  border-radius: 12px;
  border-left: 4px solid #10b981;
  margin-top: 30px;
}

.cta-box p {
  margin: 0;
  font-size: 1.125rem;
  color: #047857;
}

/* Legacy Image */

/* Legacy image block styling */
.legacy-image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2.5rem 0; /* spacing to match sections */
  animation: fadeInUp 0.8s ease forwards;
}

.legacy-image img.responsive-image {
  max-width: 100%;
  height: auto;
  border-radius: 1rem; /* consistent with cards and buttons */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); /* soft elegant shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Optional: add a subtle hover effect for desktop */
.legacy-image img.responsive-image:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

/* Animation for animate-from-bottom */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}



/* Timeline Section */
.timeline-section {
  background: #ffffff;
  border-radius: 20px;
  padding: 50px;
  margin-bottom: 60px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.8);
  text-align: center;
}

.timeline-section h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 40px;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #3b82f6, #10b981, #f59e0b);
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 40px;
}

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

.timeline-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 60px;
  background: #ffffff;
  border: 3px solid #3b82f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #3b82f6;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.timeline-item:nth-child(2) .timeline-marker {
  border-color: #10b981;
  color: #10b981;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.timeline-item:nth-child(3) .timeline-marker {
  border-color: #f59e0b;
  color: #f59e0b;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

.timeline-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 8px 0;
}

.timeline-content p {
  font-size: 1rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}

/* Mission Section */
.mission-section {
  background: #ffffff;
  border-radius: 20px;
  padding: 60px 50px;
  margin-bottom: 60px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.8);
  text-align: center;
}

.mission-content {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.mission-content p {
  font-size: 1.125rem;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 25px;
}

/* Mission Pillars */
.mission-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 40px 0;
  justify-items: center;
}

.pillar {
  text-align: center;
  padding: 30px 20px;
  background: #f8fafc;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.3s ease;
}

.pillar:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  background: #ffffff;
}

.pillar-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

.pillar-icon.academics {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.pillar-icon.activities {
  background: linear-gradient(135deg, #10b981, #047857);
}

.pillar-icon.character {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.pillar-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.pillar h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 15px 0;
}

.pillar p {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* Mission Statement */
.mission-statement {
  padding: 30px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(4, 120, 87, 0.02));
  border-radius: 16px;
  border: 1px solid rgba(16, 185, 129, 0.1);
  margin-top: 40px;
}

.mission-statement p {
  margin-bottom: 20px;
}

.mission-statement p:last-child {
  margin-bottom: 0;
}

/* Excellence Section */
.excellence-section {
  background: #ffffff;
  border-radius: 20px;
  padding: 60px 50px;
  margin-bottom: 60px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.8);
  text-align: center;
}

.excellence-content p {
  font-size: 1.125rem;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 25px;
}

.excellence-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
  justify-items: center;
}

.stat-card {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #f59e0b;
  margin-bottom: 8px;
  display: block;
}

.stat-label {
  font-size: 1rem;
  color: #6b7280;
  font-weight: 500;
}

/* Join Section */
.join-section {
  background: linear-gradient(135deg, #1f2937, #111827);
  border-radius: 20px;
  padding: 60px 50px;
  text-align: center;
  color: white;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.join-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px auto;
  backdrop-filter: blur(10px);
}

.join-icon svg {
  width: 40px;
  height: 40px;
  color: white;
}

.join-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin: 0 0 25px 0;
}

.join-description {
  font-size: 1.25rem;
  color: #d1d5db;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.join-cta {
  font-size: 1.125rem;
  color: #f3f4f6;
  margin-bottom: 40px;
}

.join-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.primary-btn {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
}

.primary-btn:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  color: white;
  text-decoration: none;
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
}

.btn-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon svg {
  width: 16px;
  height: 16px;
}


/* Animation States */
.animate-from-left {
  opacity: 0;
  transform: translateX(-100px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-from-left.animate-visible {
  opacity: 1;
  transform: translateX(0);
}

.animate-from-right {
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-from-right.animate-visible {
  opacity: 1;
  transform: translateX(0);
}

.animate-from-bottom {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-from-bottom.animate-visible {
  opacity: 1;
  transform: translateY(0);
}


/* Responsive Design */
@media (max-width: 1024px) {
  .mission-pillars {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .excellence-stats {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    padding-left: 60px;
  }

  .timeline-marker {
    width: 40px;
    height: 40px;
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .mission-history-section {
    padding: 60px 0;
  }

  .container {
    padding: 0 15px;
  }

  .legacy-section,
  .timeline-section,
  .mission-section,
  .excellence-section,
  .join-section {
    padding: 40px 25px;
    margin-bottom: 40px;
  }

  .section-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .milestone-highlight {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .join-buttons {
    flex-direction: column;
    align-items: center;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .legacy-section,
  .timeline-section,
  .mission-section,
  .excellence-section,
  .join-section {
    padding: 30px 20px;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .lead-paragraph {
    font-size: 1.125rem;
  }

  .join-section h2 {
    font-size: 2rem;
  }

  .timeline::before {
    left: 15px;
  }

  .timeline-item {
    padding-left: 50px;
  }

  .timeline-marker {
    width: 30px;
    height: 30px;
    font-size: 0.7rem;
  }

  .primary-btn,
   .secondary-btn {
    width: 50vw
  }
}





@mixin aspect-ratio($width, $height) {
  position: relative;

  &:before {
    display: block;
    content: "";
    width: 100%;
    padding-top: ($height / $width) * 100%;
  }

  > img {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
  }
}

/* =========================
   Carousel Styles
==========================*/
section {
    background: #F4F4F4;
    padding: 50px 0;
}

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

.carousel {
    display: block;
    text-align: left;
    position: relative;
    margin-bottom: 22px;


    > input {
        clip: rect(1px, 1px, 1px, 1px);
        clip-path: inset(50%);
        height: 1px;
        width: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;




        &:nth-of-type(6):checked ~ .carousel__slides .carousel__slide:first-of-type { margin-left: -500%; }
        &:nth-of-type(5):checked ~ .carousel__slides .carousel__slide:first-of-type { margin-left: -400%; }
        &:nth-of-type(4):checked ~ .carousel__slides .carousel__slide:first-of-type { margin-left: -300%; }
        &:nth-of-type(3):checked ~ .carousel__slides .carousel__slide:first-of-type { margin-left: -200%; }
        &:nth-of-type(2):checked ~ .carousel__slides .carousel__slide:first-of-type { margin-left: -100%; }
        &:nth-of-type(1):checked ~ .carousel__slides .carousel__slide:first-of-type { margin-left: 0%; }

        &:nth-of-type(1):checked ~ .carousel__thumbnails li:nth-of-type(1) { box-shadow: 0px 0px 0px 5px var(--brand-blue-dark); }
        &:nth-of-type(2):checked ~ .carousel__thumbnails li:nth-of-type(2) { box-shadow: 0px 0px 0px 5px var(--brand-blue-dark); }
        &:nth-of-type(3):checked ~ .carousel__thumbnails li:nth-of-type(3) { box-shadow: 0px 0px 0px 5px var(--brand-blue-dark); }
        &:nth-of-type(4):checked ~ .carousel__thumbnails li:nth-of-type(4) { box-shadow: 0px 0px 0px 5px var(--brand-blue-dark); }
        &:nth-of-type(5):checked ~ .carousel__thumbnails li:nth-of-type(5) { box-shadow: 0px 0px 0px 5px var(--brand-blue-dark); }
        &:nth-of-type(6):checked ~ .carousel__thumbnails li:nth-of-type(6) { box-shadow: 0px 0px 0px 5px var(--brand-blue-dark); }
    }
}

.carousel__slides {
  position: relative;
  display: flex;
  overflow: hidden;
  height: 450px; /* Fixed height for the carousel */
  width: 800px;  /* Fixed width for the carousel */
  margin: 0 auto; /* Center the carousel */
}


.carousel__slide {
    position: relative;
    display: block;
    flex: 1 0 100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: all 300ms ease-out;
    vertical-align: top;
    box-sizing: border-box;
    white-space: normal;

    figure {
        display: flex;
        margin: 0;
    }


    img {
        display: block;
        flex: 1 1 auto;
        object-fit: cover;
    }

    figcaption {
        align-self: flex-end;
        padding: 20px 20px 0 20px;
        flex: 0 0 auto;
        width: 25%;
        min-width: 150px;
    }

    .credit {
        margin-top: 0.6rem;
        margin-bottom: 0.5rem;
        color: rgba(0, 0, 0, 0.5);
        display: block;
    }

    &.scrollable {
        overflow-y: scroll;
    }
}

.carousel__thumbnails {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;

    margin: 0 -10px;

    .carousel__slides + & {
        margin-top: 20px;
    }

    li {
        flex: 1 1 auto;
        max-width: calc((100% / 6) - 20px);
        margin: 0 10px;
        transition: all 300ms ease-in-out;
    }

    label {
        display: block;
        @include aspect-ratio(1,1);


        &:hover,
        &:focus {
            cursor: pointer;

            img {
                box-shadow: 0px 0px 0px 1px rgba(0,0,0,0.25);
                transition: all 300ms ease-in-out;
            }
        }
    }

    img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}




.carousel-container {
    padding: 40px;
}

.carousel {
    display: block;
    text-align: left;
    position: relative;
    margin-bottom: 40px;
}

.carousel > input {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
}

.carousel > input:nth-of-type(3):checked ~ .carousel__slides .carousel__slide:first-of-type {
    margin-left: -200%;
}
.carousel > input:nth-of-type(2):checked ~ .carousel__slides .carousel__slide:first-of-type {
    margin-left: -100%;
}
.carousel > input:nth-of-type(1):checked ~ .carousel__slides .carousel__slide:first-of-type {
    margin-left: 0%;
}

.carousel > input:nth-of-type(1):checked ~ .carousel__thumbnails li:nth-of-type(1) {
    box-shadow: 0px 0px 0px 5px var(--brand-blue-dark);
    transform: scale(1.05);
}
.carousel > input:nth-of-type(2):checked ~ .carousel__thumbnails li:nth-of-type(2) {
    box-shadow: 0px 0px 0px 5px var(--brand-blue-dark);
    transform: scale(1.05);
}
.carousel > input:nth-of-type(3):checked ~ .carousel__thumbnails li:nth-of-type(3) {
    box-shadow: 0px 0px 0px 5px var(--brand-blue-dark);
    transform: scale(1.05);
}

/* Fixed size for slides container */
.carousel__slides {
    position: relative;
    display: flex;
    overflow: hidden;
    height: 450px;
    width: 1100px; /* Wider to accommodate image + caption */
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    background: white;
}

.carousel__slide {
    position: relative;
    display: flex;
    flex: 1 0 100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
    box-sizing: border-box;
    white-space: normal;
}

.carousel__slide .image-container {
    width: 800px;
    height: 100%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.carousel__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel__slide:hover img {
    transform: scale(1.03);
}

.carousel__slide .caption {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #f8fafc;
}

.carousel__slide .title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--brand-blue-dark);
    position: relative;
}

.carousel__slide .title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--brand-blue);
    border-radius: 2px;
}

.carousel__slide .description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    color: #475569;
}

.carousel__slide .features {
    margin-bottom: 30px;
}

.carousel__slide .features li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.carousel__slide .features i {
    color: var(--brand-blue);
    margin-right: 10px;
    margin-top: 4px;
    flex-shrink: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    background: var(--brand-blue);
    color: white;
    border: none;
    cursor: pointer;
    max-width: 200px;
}

.btn:hover {
    background: var(--brand-blue-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.btn i {
    font-size: 0.9rem;
}

.carousel__thumbnails {
    list-style: none;
    padding: 0;
    margin: 40px -10px 0;
    display: flex;
    justify-content: center;
}

.carousel__thumbnails li {
    flex: 0 0 auto;
    width: 120px;
    margin: 0 10px;
    transition: all 300ms ease-in-out;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.8;
    transform: scale(0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.carousel__thumbnails li:hover {
    opacity: 1;
    transform: scale(1);
}

.carousel__thumbnails label {
    display: block;
    height: 80px;
}

.carousel__thumbnails img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel__thumbnails li:hover .thumbnail-overlay {
    opacity: 1;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.carousel-controls label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--brand-blue);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.carousel-controls label:hover {
    background: var(--brand-blue-dark);
    transform: translateY(-3px);
}

.footer {
    text-align: center;
    padding: 30px 0;
    color: #64748b;
    font-size: 0.9rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 20px;
}

/* Animation for fadeIn */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.carousel__slide {
    animation: fadeIn 0.7s ease-out;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .carousel__slides {
        width: 95%;
        height: auto;
        max-width: 1100px;
    }

    .carousel__slide {
        flex-direction: column;
        height: auto;
    }

    .carousel__slide .image-container {
        width: 100%;
        height: 450px;
    }

    .carousel__thumbnails li {
        width: 100px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 30px 20px;
    }

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

    .carousel-container {
        padding: 20px;
    }

    .carousel__slide .image-container {
        height: 350px;
    }

    .carousel__slide .caption {
        padding: 30px 20px;
    }

    .carousel__slide .title {
        font-size: 1.7rem;
    }

    .carousel__thumbnails {
        flex-wrap: wrap;
        gap: 10px;
    }

    .carousel__thumbnails li {
        width: calc(33.333% - 20px);
        margin: 0;
    }
}

@media (max-width: 480px) {
    .carousel__slide .image-container {
        height: 280px;
    }

    .carousel__slide .title {
        font-size: 1.5rem;
    }

    .carousel__slide .description {
        font-size: 1rem;
    }

    .carousel__thumbnails li {
        width: calc(50% - 20px);
    }

    .carousel-controls {
        gap: 10px;
    }

    .carousel-controls label {
        width: 45px;
        height: 45px;
    }
}


.join-icon i {
font-size: 40px;
}