/* 1. ORGANIZE BY CATEGORY */

/* Base styles and variables */
:root {
    --primary-bg: rgb(255, 255, 255);
    --primary-text: #ffffff;
    --primary-text-dark: #00115c;
    --theme-color: #367fdf;
    --text-shadow-color: rgba(87, 143, 135, 0.75);
    --navbar-background-color: rgba(17, 108, 145, 0.9);
    --secondary-background-color: rgba(92, 172, 165, 0.1);
    --provider-accent-color: #4421c2;
    --content-width: 1160px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'League Spartan', sans-serif;
    background-color: var(--primary-bg);
    color: var(--primary-text-dark);
    line-height: 1.6;
}

/* 2. LAYOUT COMPONENTS */
.container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* 3. NAVIGATION */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    background-color: var(--navbar-background-color);
    backdrop-filter: blur(5px);
}

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

.logo h2 {
    color: var(--primary-text);
    font-size: 28px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--primary-text);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover, 
.nav-links a.active {
    /* color: var(--theme-color); */
    color: rgb(110, 255, 255);
}

.nav-links a.active {
    border-bottom: 2px solid var(--theme-color);
    padding-bottom: 5px;
}

/* 4. HERO SECTION */
.hero {
    position: relative;
    min-height: 50vh;
    max-height: 400px;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 40px;
    margin-bottom: 2rem;
    margin-top: 80px;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
}

.hero-logo {
    flex: 0 0 40%;
    margin: 50px 0 0 -50px;
}

.logo-image {
    max-width: 100%;
    height: auto;
    border-radius: 32px;
    box-shadow: 0 8px 16px var(--text-shadow-color);
}

.hero-content-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 20px;
}

.hero h1 {
    font-size: 108px;
    margin-bottom: 0px;
    color: var(--primary-text);
    text-shadow: 4px 4px 8px var(--text-shadow-color);
    -webkit-text-stroke: 2px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--primary-text);
    text-shadow: 4px 4px 8px var(--text-shadow-color);
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.hero-text {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-text);
    text-shadow: 2px 2px 4px var(--text-shadow-color);
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.3);
}

.hero-text p {
    margin-bottom: 8px;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--theme-color);
    color: var(--primary-bg);
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #17612a;
    transform: translateY(-2px);
}

.contact-phone {
    margin-top: 40px;
}

.contact-phone h2 {
    margin-top: 20px;
    font-size: 36px;
    color: var(--primary-text);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Responsive adjustments for the hero section */
@media (max-width: 767px) {
    .hero {
        min-height: 40vh;
        max-height: none;
        padding: 50px 16px 30px;
        margin-top: 70px;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        align-items: center;
    }
    
    .hero-logo {
        flex: 0 0 auto;
        margin: 0 0 20px 0;
        max-width: 300px;
        width: 80%;
    }
    
    .hero-content-right {
        align-items: center;
        padding-top: 0;
    }
    
    .hero h1 {
        font-size: 42px;
        -webkit-text-stroke: 1px rgba(0, 0, 0, 0.3);
        line-height: 0.9;
    }
    
    .hero-text {
        font-size: 18px;
        -webkit-text-stroke: 0.3px rgba(0, 0, 0, 0.3);
    }
    
    .logo-image {
        max-width: 100%;
        height: auto;
    }
    
    .hero h2 {
        font-size: 24px;
        line-height: 1.0;
        margin-bottom: 15px;
    }
}

/* 5. GALLERY COMPONENTS */
.gallery-section {
    padding: 40px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-image-wrapper {
    height: 100%;
    min-height: 250px;
    position: relative;
    overflow: hidden;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dim {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    transition: background-color 0.5s ease;
    z-index: 1;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-item:hover .dim {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 6. SUBPAGE COMPONENTS */
.page-header {
    position: relative;
    padding-top: 140px;
    padding-bottom: 60px;
    text-align: center;
    background-position: center;
    background-size: cover;
}

.page-header h1 {
    position: relative;
    color: var(--primary-text);
    font-size: 48px;
    z-index: 1;
}

.placeholder-text {
    text-align: center;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

/* 7. UTILITY CLASSES */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Animation for content entrance */
@keyframes opacity-bounce { 
    0% {
        opacity: 0;
        transform: translateY(100%);
    }
    60% {
        transform: translateY(-20%);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: opacity-bounce 800ms ease 400ms forwards;
    opacity: 0;
}

/* 8. MEDIA QUERIES - grouped at the end */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Tablet styles */
}

@media (min-width: 1024px) {
    /* Desktop styles */
}

/* Program page styles */
.program-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.program-item {
    margin-bottom: 40px;
}

.program-title {
    color: var(--primary-text-dark);
    font-size: 32px;
    margin-bottom: 10px;
}

.program-age {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: normal;
}

.program-description {
    line-height: 1.8;
    font-size: 16px;
}

.program-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 10px 0;
}

.section-title {
    color: var(--theme-color);
    font-size: 48px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 20px auto 0;
}

/* Contact page styles */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    color: #333;
    text-align: center;
}

.contact-center-name {
    font-size: 28px;
    margin: 20px 0;
    color: #333;
}

.contact-address {
    font-size: 18px;
    margin-bottom: 20px;
}

.contact-details {
    margin: 20px 0;
}

.contact-phone, .contact-email {
    font-size: 20px;
    margin: 10px 0;
}

.contact-hours {
    margin-top: 40px;
}

.contact-hours h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.hours-today {
    font-size: 18px;
    margin-bottom: 20px;
}

.hours-schedule p {
    font-size: 18px;
    margin: 5px 0;
}

/* Provider page styles */
.provider-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.provider-profile {
    display: flex;
    flex-direction: row;
    gap: 40px;
    margin-bottom: 60px;
    align-items: flex-start;
}

.provider-image-container {
    flex: 0 0 45%;
    max-width: 500px;
}

.provider-image {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.provider-info {
    flex: 1;
}

.provider-name {
    color: var(--provider-accent-color);
    font-size: 32px;
    margin-bottom: 20px;
}

.provider-bio {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 16px;
}

.provider-bio strong {
    color: var(--provider-accent-color);
    font-weight: 600;
}

.provider-list {
    margin: 0 0 20px 20px;
    padding-left: 20px;
    list-style-type: disc;
    line-height: 1.8;
    font-size: 16px;
}

.provider-list li {
    margin-bottom: 15px;
    padding-left: 10px;
}

.provider-list li:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .provider-profile {
        flex-direction: column;
    }
    
    .provider-image-container {
        max-width: 100%;
        margin-bottom: 20px;
    }
}

/* Adjust content for fixed navigation */
.page-header {
    padding-top: 140px;
    padding-bottom: 60px;
}

/* For mobile responsiveness */
@media (max-width: 768px) {
    .main-nav {
        padding: 15px 0;
    }
    
    .page-header {
        padding-top: 120px;
    }
}

/* Add these styles to your CSS file */
.scroll-gallery-container {
    position: relative;
    display: flex;
    align-items: center;
    margin: 40px 0;
}

.scroll-gallery {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.scroll-gallery-track {
    display: flex;
    transition: transform 0.5s ease;
}

.scroll-gallery-item {
    flex: 0 0 calc(33.333% - 20px);
    margin: 0 10px;
    min-width: 280px;
}

.gallery-image-wrapper {
    height: 250px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-nav {
    background-color: var(--theme-color);
    color: var(--primary-bg);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.gallery-nav:hover {
    background-color: #d6c4a5;
    transform: scale(1.1);
}

.gallery-prev {
    left: -20px;
}

.gallery-next {
    right: -20px;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.gallery-dot.active {
    background-color: var(--theme-color);
}

/* Mobile responsiveness for the gallery */
@media (max-width: 767px) {
    .scroll-gallery-item {
        flex: 0 0 calc(100% - 20px);
    }
    
    .gallery-nav {
        width: 36px;
        height: 36px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .scroll-gallery-item {
        flex: 0 0 calc(50% - 20px);
    }
}

/* Add these styles for the About Us section */
.about-section {
    padding: 60px 0;
    background-color: var(--secondary-background-color);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.about-subtitle {
    color: var(--theme-color);
    font-size: 32px;
    margin: 40px 0 20px;
    position: relative;
    display: inline-block;
}

.about-subtitle::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background-color: var(--theme-color);
    margin: 15px auto 0;
}

@media (max-width: 767px) {
    .about-text p {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .about-subtitle {
        font-size: 28px;
    }
}

/* Reviews Section Styles */
.reviews-section {
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.reviews-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.reviews-section .section-title {
    font-size: 64px;
    /* -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3); */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
                 0 0 15px rgba(255, 255, 255, 0.6),
                 0 0 20px rgba(255, 255, 255, 0.4),
                 0 0 30px rgba(255, 255, 255, 0.2),
                 0 0 50px rgba(255, 255, 255, 0.1);
}

.review-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 30px;
    width: 700px;
    height: 350px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #8b7355;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin-right: 15px;
}

.reviewer-name {
    font-weight: 600;
    color: #333;
}

.review-stars {
    margin-bottom: 15px;
}

.review-title {
    margin-bottom: 15px;
}

.review-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;

}

.review-content p {
    margin-bottom: 15px;
}

.review-date {
    font-size: 14px;
    color: #888;
    margin-top: 20px;
}

.review-content::-webkit-scrollbar {
    width: 6px;
}

.review-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.review-content::-webkit-scrollbar-thumb {
    background: var(--theme-color);
    border-radius: 3px;
}

.reviews-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.review-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.review-dot.active {
    background-color: var(--theme-color);
}

/* Mobile responsiveness for reviews */
@media (max-width: 1023px) {
    .reviews-container {
        flex-direction: column;
        align-items: center;
    }
    
    .review-card {
        width: 90%;
        max-width: 400px;
    }
    
    .review-card:not(.active) {
        display: none;
    }
    
    .review-card.active {
        display: flex;
    }
}

/* FAQ Section Styles */
.faq-section {
    padding: 80px 0;
    background-color: var(--secondary-background-color);
}

.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(232, 214, 183, 0.3);
}

.faq-question {
    display: flex;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--theme-color);
}

.faq-icon {
    color: var(--theme-color);
    margin-right: 15px;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-question h3 {
    font-size: 22px;
    font-weight: 600;
    flex: 1;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 0 0 40px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 0 20px 40px;
}

.faq-answer p {
    color: var(--primary-text-dark);
    line-height: 1.8;
}

@media (max-width: 767px) {
    .faq-question h3 {
        font-size: 18px;
    }
    
    .faq-answer {
        padding: 0 0 0 30px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 0 20px 30px;
    }
}

/* Important Links Section */
.important-links-section {
    padding: 80px 0;
    background-color: var(--primary-bg);
    text-align: center;
}

.links-container {
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.important-link-button {
    display: block;
    background-color: var(--navbar-background-color);
    color: var(--primary-text);
    text-decoration: none;
    padding: 20px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.important-link-button:hover {
    background-color: #d6c4a5;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 767px) {
    .important-link-button {
        font-size: 16px;
        padding: 15px 20px;
    }
}

/* Reviews Carousel Styles */
.reviews-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    margin: 40px 0;
}

.reviews-container {
    width: 100%;
    overflow: hidden;
}

.review-nav {
    background-color: var(--theme-color);
    color: var(--primary-bg);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.review-nav:hover {
    background-color: #d6c4a5;
    transform: scale(1.1);
}

.review-prev {
    left: -20px;
}

.review-next {
    right: -20px;
}

.review-card {
    display: none;
    margin: 0 auto;
}

.review-card.active {
    display: flex;
}

/* Update existing reviews-dots styles */
.reviews-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.review-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.review-dot.active {
    background-color: var(--theme-color);
}
