@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Lato:wght@400;700&family=Playfair+Display:wght@700;900&display=swap');

/* Color Palette (maroon theme) */
:root {
    --maroon-50: #FFF5F5;
    --maroon-100: #FEE2E2;
    --maroon-200: #FECDCE;
    --maroon-300: #F9A8A8;
    --maroon-400: #F07575;
    --maroon-500: #E12D39;
    --maroon-600: #C01A24;
    --maroon-700: #8B0000;
    --maroon-800: #660000;
    --maroon-900: #4D0000;

    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

/* General Body and HTML Styling */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--gray-100);
    color: var(--gray-800);
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

.container {
    max-width: 2280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    text-align: center;
}

/* Header */
.header {
    background: #800000;
    background: linear-gradient(137deg, rgba(128, 0, 0, 0.48) 0%, rgba(255, 255, 255, 1) 15%, rgba(255, 255, 255, 1) 71%, rgba(128, 0, 0, 0.56) 82%);
    position: sticky;
    top: 0;
    z-index: 50;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem; /* space between logo and nav */
    text-align: center;
}

.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.logo-image {
    height: 2.5rem;
    width: 2.5rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    color: var(--gray-800);
}

.main-nav {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .main-nav {
        display: flex;
    }
}

.nav-link {
    color: var(--gray-600);
    transition: color 0.3s, transform 0.3s;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    
}

.nav-link:hover {
    color: var(--maroon-700);
    transform: translateY(-2px);
}

.cta-button {
    background-color: var(--maroon-700);
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: var(--maroon-800);
    transform: scale(1.05);
}

.mobile-menu-button {
    display: block;
    color: var(--gray-600);
    transition: color 0.3s;
    padding: 0.5rem;
    border: none;
    background: none;
    cursor: pointer;
}

a {
    text-decoration: none;
    font-size: 20px;

}

.mobile-menu-button:hover {
    color: var(--maroon-700);
}

@media (min-width: 768px) {
    .mobile-menu-button {
        display: none;
    }
}

.mobile-menu-icon {
    height: 1.75rem;
    width: 1.75rem;
}

/* Update this section */
.mobile-nav {
    display: block;
    background: #EDDD53;
    background: linear-gradient(56deg, rgba(237, 221, 83, 1) 14%, rgba(255, 255, 255, 1) 52%);
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    /* Add these lines to fix the width issue */
    width: 100%;
    box-sizing: border-box; /* This ensures padding doesn't push the element beyond 100% width */
}

.mobile-nav.menu-open {
    max-height: 550px;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.mobile-nav-link {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    color: var(--gray-600);
    transition: color 0.3s;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

.mobile-nav-link:hover {
    color: var(--maroon-700);
}


/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-size: cover;
    background-position: center;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 768px) {
    .hero-section {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.7;
    background-color:rgba(0, 0, 0, 0.9);
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    /* animation */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1.2s ease-out forwards;
}

/* Hero Title (Improved) */
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.75rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    animation: fadeInScale 1.5s ease-out forwards;
}



/* Animations */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}


@media (min-width: 640px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 5rem;
    }
    
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.50rem;
    font-weight: 300;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-family: 'Times New Roman', Times, serif;
}

/* Hero CTA */
.hero-cta {
    background-color: white;
    color: var(--maroon-700);
    transition: background-color 0.3s, transform 0.3s;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 
                0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: inline-block;
}

.hero-cta:hover {
    background-color: var(--gray-200);
    transform: scale(1.05);
}

/* END OF HEADER */

/* Quick Actions / Enrollment Section */
.enrollment-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    background-color: var(--maroon-50);
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--maroon-700);
    font-family: 'Times New Roman', Times, serif;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.enrollment-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .enrollment-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.enrollment-card {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s, transform 0.3s;
}

.enrollment-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-0.5rem);
}

.card-title {
    font-size: 1.40rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: maroon;
}

.enrollment-button {
    display: inline-block;
    background-color: var(--maroon-700);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.3s, transform 0.3s;
}

.enrollment-button:hover {
    background-color: var(--maroon-800);
    transform: scale(1.05);
}

.pay-now-card {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
    transition: box-shadow 0.3s, transform 0.3s;
}

.pay-now-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-0.5rem);
}

.pay-now-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #1f2937;
}

.pay-now-link {
    display: block;
    width: 100%;
    max-width: 350px;   /* prevents it from being too big on desktop */
    margin: 0 auto;     /* centers the link */
    text-align: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
}

.pay-now-link:hover {
    opacity: 0.8;
    transform: translateX(0.5rem);
}

.pay-now-image {
    display: block;
    max-width: 100%;     /* makes image responsive */
    height: auto;        /* keeps aspect ratio */
    margin: 0 auto;      /* centers inside link */
    border-radius: 0.375rem;
}

/* On small screens, keep link full width and disable hover shift */
@media (max-width: 480px) {
    .pay-now-link {
        max-width: 100%;
        transform: none;
    }
}


.bills-payment-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: var(--maroon-700);
    color: white;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s;
    font-size: 1.125rem;
    font-weight: 700;
    margin-top: 1rem;
    border: none;
    cursor: pointer;
}

.bills-payment-toggle:hover {
    background-color: var(--maroon-800);
}

.toggle-icon {
    width: 1.5rem;
    height: 1.5rem;
    margin-left: 0.75rem;
    transform: rotate(0deg);
    transition: transform 0.3s;
}

#paynow-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.payment-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.payment-content.active {
    max-height: 500px;
}

.payment-content-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.tutorial-link {
    background-color: #2563eb;
    color: white;
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background-color 0.3s;
    text-align: center;
}

.tutorial-link:hover {
    background-color: #1d4ed8;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio (height ÷ width = 9/16 = 0.5625) */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000; /* optional: black background before video loads */
  border-radius: 0.5rem; /* optional: rounded corners */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* About Section */
.about-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.section-text {
    color: var(--gray-600);
    line-height: 1.625;
    font-size: 20px;
    font-family: 'Times New Roman', Times, serif;
}

.section-text:not(:last-child) {
    margin-bottom: 1.5rem;
}

.about-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
                0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Slider container */
.about-slider {
    display: flex;
    width: 100%; /* will expand based on children */
    animation: slide 12s infinite;
}

/* Each image in slider */
.about-slider img {
    flex: 0 0 100%;          /* one image per slide */
    width: 100%;             /* full width of wrapper */
    height: auto;            /* keep aspect ratio */
    object-fit: contain;     /* show full image, no crop */
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
                0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.5s;
    background: #000;        /* optional background if letterboxing */
}

/* Hover zoom */
.about-slider img:hover {
    transform: scale(1.05);
}

/* Keyframes for sliding 3 images */
@keyframes slide {
    0%   { transform: translateX(0%); }
    30%  { transform: translateX(0%); }
    35%  { transform: translateX(-100%); }
    65%  { transform: translateX(-100%); }
    70%  { transform: translateX(-200%); }
    95%  { transform: translateX(-200%); }
    100% { transform: translateX(0%); }
}

/* Responsive */
@media (max-width: 768px) {
    .about-slider img {
        max-height: 300px;
    }
}
@media (max-width: 480px) {
    .about-slider img {
        max-height: 200px;
    }
}



/* Image Slider Section */
.slider-section {
    padding-top: 3rem;
    padding-bottom: 5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    background-image: url(/src/events/event2/10.jpg);
    /* Make the container relative so the pseudo-element can be positioned absolutely */
    position: relative;
    z-index: 1; /* Ensure the container is above the pseudo-element */
}

.slider-section::before {
    content: ''; /* This is the missing piece */
    position: absolute; /* Position the pseudo-element over the container */
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: -1; /* Place the overlay behind the content */
}

.slider-container {
    position: relative;
    overflow: hidden;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.slider-wrapper {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slider-wrapper img {
    width: 100%;
    flex-shrink: 0;
    object-fit: cover;
}

.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
    border: none;
}

.slider-button:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.prev-btn {
    left: 1rem;
}

.next-btn {
    right: 1rem;
}

.slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
}

.slider-dot {
    width: 14px;
    height: 14px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: var(--maroon-500);
    width: 16px;
    height: 16px;
}

/* Layout for multiple sliders */
.slider-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.slider-box {
    flex: 1 1 30%;
    min-width: 300px;
    text-align: center;
}

.slider-title {
    font-size: 2.25rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
    color: white;
    font-family: 'Playfair Display', serif;
    text-align: center;
}

/* Programs Section */
/* Overall Section and Title styles remain the same from the previous response */
.academics-section {
    background-color: maroon;
    padding: 5rem 1.5rem;
}

.programs-title-wrapper {
    background: #FF8C00;
    display: inline-block;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    padding: 0.5rem 1rem 0.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.programs-title {
    color: white;
    font-size: 2rem;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    margin: 0;
}
/* New Flexbox styling for the two columns */
.programs-columns-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .programs-columns-wrapper {
        flex-direction: row;
    }
}

.programs-column {
    flex: 1; /* Allows each column to take up equal space */
    color: white; /* Applies to all text within the column */
}

/* New styling for each program entry */
.program-entry {
    border-bottom: 1px solid rgba(255, 255, 255, 0.4); /* A light separator line */
    padding-bottom: 0.8rem;
    margin-bottom: 1.5rem;
}

.program-entry:last-child {
    border-bottom: none; /* Remove border from the last item in the list */
}

.program-entry h4 {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    color: white;
}

.program-entry p {
    font-style: italic;
    margin: 0.5rem 0 0 1rem;
    line-height: 1.4;
    font-size: 1rem;
}


.section-title-wrapper {
            background-color: #8B0000;
            padding: 1rem 2rem;
            border-top-right-radius: 50px;
            border-bottom-right-radius: 50px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            margin-bottom: 3rem;
        }
        
        .section-title {
            color: #fff;
            font-weight: 700;
        }

        .event-card-container {
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .event-card-container:hover {
            transform: translateY(-8px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        }
        
        .event-card-container img {
            transition: transform 0.5s ease;
        }

        .event-card-container:hover img {
            transform: scale(1.05);
        }





/* Location Section */

.container h2{
    color: maroon;
}


.location-section {
    padding-top: 0.5rem;
    padding-bottom: 5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.location-container-wrapper {
    display: flex;
    flex-direction: column; /* Stacks columns on mobile by default */
    align-items: center; /* Centers items horizontally on mobile */
    gap: 2rem; /* Adds space between address and map */
    padding-bottom: 30px;
    margin-bottom: 25px;
    border-bottom: 2px solid maroon;
 
}

@media (min-width: 768px) {
    .location-container-wrapper {
        flex-direction: row; /* Arranges columns side-by-side on desktop */
        justify-content: space-between; /* Creates space between the two columns */
        align-items: flex-start; /* Aligns content to the top */
    }
}

/* New class for the reverse layout */
@media (min-width: 768px) {
    .location-container-wrapper.reverse-layout {
        flex-direction: row-reverse; /* Arranges the map first, then the details */
        justify-content: space-between;
        align-items: flex-start;
    }

    /* Adjust padding for the reversed layout to maintain spacing */
    .location-container-wrapper.reverse-layout .location-details {
        padding-right: 0;
        padding-left: 2rem;
        text-align: right;
        align-items: flex-end; /* Pushes content to the right */
    }
}

.location-details {

    flex: 1;
    max-width: 50%;
    text-align: center; /* Center by default on mobile */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
}

/* Media query to left-align on desktop */
@media (min-width: 768px) {
    .location-details {
        text-align: left;
        align-items: flex-start; /* Push content left */
        padding-right: 2rem;
    }
}

@media (min-width: 1024px) {
  .map-wrapper {
    max-width: 50%; /* map takes half screen */
  }
}


.map-wrapper {
    flex: 1; /* Allows the map to grow as well */
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    width: 100%;
    max-width: 64rem;
}

.map-container {
    position: relative;
    padding-top: 40.25%; /* 16:9 Aspect Ratio */
    height: 0;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


.location-header {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Update h3 styling */
.location-details h3 {
    font-size: 40px;
    color: maroon;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    margin: 0; /* Remove default margin to prevent layout issues */
}

/* Update branch-label styling */
.branch-label {
    background: #eee;
    color: #444;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 12px;
}


.location-details p {
    font-size: 19px;
    font-style: italic;
    margin-top: 3rem;
}


/* Branch label styling */
.branch-label {
    display: inline-block;
    background: #eee;
    color: black;
    font-size: 0.9rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
}


/* Footer */
.footer {
    background-color: var(--gray-900);
    color: var(--gray-400);
    padding: 2rem 1.5rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centers items along the main axis (vertical on mobile) */
    align-items: center;    /* Centers items along the cross axis (horizontal) */
    text-align: center;     /* Centers text within items */
    gap: 2rem;
}

/* This media query will now keep everything centered on wider screens too */
@media (min-width: 768px) {
    .footer-container {
        flex-direction: column; /* Still stacked vertically */
        align-items: center;    /* Center everything horizontally */
        text-align: center;     /* Ensure text is centered */
    }

    /* Specifically target the footer-main to ensure its content is centered */
    .footer-main {
        align-items: center; /* This is the key change for centering links on desktop */
    }

    /* Also ensure the links themselves are not overridden */
    .footer-links {
        justify-content: center; /* If footer-links itself is a flex container */
    }
}

/* Existing: Social/Contact Section */
.footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-social h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    font-size: 1.5rem;
    color: var(--gray-400);
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: white;
}

/* Existing: Copyright & Links Section */
.footer-main {
    display: flex;
    flex-direction: column;
    /* Ensure this is centered by default and within media query */
    align-items: center; /* Default for mobile and smaller screens */
    gap: 1rem;
}

.footer-text {
    font-size: 0.875rem;
    /* text-align: center; This might be redundant if parent is centering, but can be explicit */
}

.footer-links {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    /* text-align: center; // This might be redundant if parent is centering */
    justify-content: center; /* Ensure internal links are centered if they take less than 100% width */
}

.footer-link {
    color: var(--gray-400);
    text-decoration: none;
}

.footer-link:hover {
    color: white;
}

.footer-main a{
    text-decoration: none;
    font-size: 15px;
}


/* Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
  margin: 10px 0;
  width: 100%;
}

/* Dropdown button */
.dropbtn {
  background-color: var(--maroon-700);
  color: white;
  padding: 10px;
  width: 100%;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
}

/* Dropdown content */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 100%;
  z-index: 1;
  border-left: 5px solid var(--maroon-700);
  border-bottom: 5px solid var(--maroon-700);
  border-radius: 6px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
}

.dropdown-content a {
  color: black;
  padding: 10px;
  display: block;
  text-decoration: none;
}

.dropdown-content a:hover {
  background-color: #ddd;
}

/* Show dropdown */
.dropdown:hover .dropdown-content {
  display: block;
}


/* Desktop Branches Dropdown */
.branches-dropdown {
    position: relative;
    display: flex; /* same as nav items */
    align-items: center;
}

/* Match nav-link styling */
.branches-dropbtn {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: var(--gray-600);
    transition: color 0.3s, transform 0.3s;
    font-size: 20px;
    font-family: 'Poppins', sans-serif;
    padding: 0; /* reset */
    margin: 0;  /* reset */
}

/* Hover effect same as .nav-link */
.branches-dropbtn:hover {
    color: var(--maroon-700);
    transform: translateY(-2px);
}

.branches-dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 0.375rem;
    z-index: 100;
    top: 100%;
    left: 0;
    overflow: hidden;
}

.branches-dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--gray-600);
    transition: background 0.3s, color 0.3s;
}

.branches-dropdown-content a:hover {
    background-color: var(--maroon-100);
    color: var(--maroon-700);
}

/* Show dropdown on hover */
.branches-dropdown:hover .branches-dropdown-content {
    display: block;
}

/* Mobile Branches Dropdown */
.branches-mobile-dropdown {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}

.branches-mobile-toggle {
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: color 0.3s;
    font-size: 20px;
}

.branches-mobile-toggle:hover {
    color: var(--maroon-700);
}

.branches-mobile-dropdown-content {
    display: none;
    flex-direction: column;
    padding-left: 1.5rem;
}

.branches-mobile-dropdown-content a {
    padding: 0.5rem 1rem;
    color: var(--gray-600);
    transition: color 0.3s;
    font-size: 15px;
}

.branches-mobile-dropdown-content a:hover {
    color: var(--maroon-700);
}

/* Show when "active" class is toggled */
.branches-mobile-dropdown.active .branches-mobile-dropdown-content {
    display: flex;
    align-items: center;
}


/* HISTORY WITH DROPDOWN */

/* History Section */
.history-section {
    padding: 0.5rem 0.5rem;
    background-color: #4D0000;
}

.history-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: white !important;
  margin-bottom: 1rem;
 margin: 0.5rem 0 1rem; /* top, sides, bottom */
}

/* Toggle Button */
.history-toggle {
  display: block;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gray-600);
  background: white;
  border: 2px solid var(--maroon-700);
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.history-toggle:hover {
  background: var(--maroon-700);
  color: white;
}

/* Dropdown Content */
.history-content {
  max-width: 900px;
  margin: 1.5rem auto 0;
  font-size: 1rem;
  line-height: 1.7;
  text-align: justify;
  
  /* Animation setup */
  max-height: 0;          /* Collapsed */
  overflow: hidden;       /* Hide content when collapsed */
  transition: max-height 0.5s ease, padding 0.3s ease;
  padding: 0 1rem;        /* Optional: padding for smooth effect */
}

.history-content.open {
  max-height: 1000px;     /* Large enough to show all content */
  padding: 1rem;          /* Add padding when expanded */
}

.history-content p {
  margin-bottom: 1.25rem;
  color: white;
   
}

.history-content strong {
  color: white;
}



/*ACCREDITATION */

.accreditation-section {
    padding: 2rem 1rem; /* Add some overall padding to the section */
    text-align: center; /* Center the title and logo container */
    font-family: 'Poppins', sans-serif; /* Or your preferred font */
    min-height: 250px; /* Ensure a minimum height for the section */
    display: flex; /* Use flexbox for vertical alignment */
    flex-direction: column; /* Stack children vertically */
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    background: #FFD700;
background: linear-gradient(236deg, rgba(255, 215, 0, 1) 2%, rgba(255, 255, 255, 1) 13%, rgba(255, 255, 255, 1) 89%, rgba(255, 215, 0, 1) 98%);
}

.accreditation-header {
    margin-bottom: 1.5rem; /* Space between title and logos */
}

.accreditation-title {
    font-family: 'Dancing Script', cursive; /* Use a font that looks similar to your image, or a suitable alternative */
    font-size: 4.5rem; /* Adjust size as needed for the script font */
    font-weight: bolder;
    color: #FFD700; /* Yellow color for the text */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9); /* Add shadow for depth */
    margin: 0; /* Remove default margin */
    line-height: 1; /* Adjust line height for script font */
}

.logos-container {
    display: flex; /* Use flexbox to arrange logos in a row */
    flex-wrap: wrap; /* Allow logos to wrap to the next line on small screens */
    justify-content: center; /* Center logos horizontally */
    align-items: center; /* Vertically align logos (if they have different heights) */
    gap: 2rem; /* Space between logos */
    max-width: 1500px; /* Limit width of the logo row */
    margin: 0 auto; /* Center the logo container */
    padding: 0 1rem; /* Add horizontal padding for smaller screens */
}

.accreditation-logo {
    max-height: 150px; /* Adjust the maximum height for logos */
    width: auto; /* Maintain aspect ratio */

}

/* Responsive adjustments */
@media (max-width: 768px) {
    .accreditation-title {
        font-size: 2.5rem;
    }
    .accreditation-logo {
        max-height: 60px; /* Smaller logos on smaller screens */
    }
    .logos-container {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .accreditation-title {
        font-size: 2rem;
    }
    .accreditation-logo {
        max-height: 50px; /* Even smaller logos on very small screens */
    }
    .logos-container {
        gap: 1rem;
    }
}



/* --- Modal Styling ---  PRIVACY AND TERMS */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    padding-top: 60px;
}
.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}
.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
}
.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.modal-body h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
}
.modal-body h3 {
    font-size: 1.5rem;
    color: #555;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.modal-body p, .modal-body ul {
    line-height: 1.6;
    color: #666;
    text-align: justify;
}
.modal-body ul {
    margin-left: 20px;
}
@media screen and (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 90%;
    }
}





/* Custom transition for the slide-up animation */
.slide-up-content {
transition-property: transform, opacity;
transition-duration: 300ms;
transition-timing-function: ease-in-out;
transform: translateY(100%);
opacity: 0;
}

.program-card:hover .slide-up-content {
transform: translateY(0);
 opacity: 1;
}

/* Custom styles for the modal content */
.program-entry {
@apply mb-4 pb-2 border-b border-w

}


