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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

.hero {
    position: relative;
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('images/banner.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

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

.course {
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
    text-align: center;
}

.whatsapp-button {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
}

.whatsapp-button:hover {
    background-color: #128C7E;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.fa-whatsapp {
    font-size: 24px;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: white;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    section {
        padding: 40px 20px;
    }
} 

a {
    color: #2196F3;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0D47A1;
}

/* Special styling for footer links */
footer a {
    color: ##64B5F6;
}

footer a:hover {
    color: #2196F3;
    border-bottom: 1px solid #2196F3;
}

/* Keep the WhatsApp button styling distinct */
.whatsapp-button {
    background-color: #25D366;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.whatsapp-button:hover {
    background-color: #128C7E;
    color: white;
}

.activities-list {
    max-width: 100%;
    margin: 1rem 0;
}

.activities-list ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;  /* Single column on mobile */
    gap: 1rem;
}

/* Medium screens */
@media (min-width: 768px) {
    .activities-list ul {
        grid-template-columns: repeat(3, 1fr);  /* Exactly 3 columns */
    }
    
    /* If the lists are in two separate divs, make them align */
    .activities-list + .activities-list {
        margin-top: 1rem;
    }
}

.activities-list li {
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    height: 100%;  /* Ensure consistent height */
}

.activities-list li:hover {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.activities-list i {
    color: #2196F3;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.scroll-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    border-radius: 30px;
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.scroll-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: white;
}

.scroll-btn i {
    font-size: 0.8em;
    animation: bounce 2s infinite;
}

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

.about-content p {
    margin-bottom: 2.5rem;  /* Add significant space after the intro text */
    line-height: 1.8;       /* Optional: better line spacing for readability */
    padding: 0.5rem;
    text-align: justify;
}

.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.logo img {
    height: 60px;
    width: auto;
}

/* Improved mobile responsiveness */
@media (max-width: 768px) {
    .logo {
        position: absolute;
        top: 10px;  /* Reduced top spacing */
        left: 15px;  /* Slightly closer to the edge on mobile */
    }
    
    .logo img {
        height: 50px;  /* Slightly smaller on mobile */
    }
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.activity-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.activity-item:hover {
    transform: translateY(-5px);
}

.activity-item h3 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 32px;  /* Reduced from 48px */
    line-height: 1.2;
    overflow: hidden;
    white-space: nowrap;  /* Keep text in single line */
    text-overflow: ellipsis;  /* Show ellipsis for overflow */
}

.activity-item h3 i {
    flex-shrink: 0;
}

/* Adjust font size for different screen sizes */
@media screen and (max-width: 1024px) {
    .activity-item h3 {
        font-size: 1rem;
    }
}

@media screen and (max-width: 768px) {
    .activity-item h3 {
        height: 28px;  /* Slightly smaller height on mobile */
    }
}

@media screen and (max-width: 480px) {
    .activity-item h3 {
        height: 24px;  /* Even smaller height on mobile */
    }
}

.activity-photos {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 6px;
}

.activity-photos a {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.activity-photos a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-photos a:has(img.active) {
    opacity: 1;
}

/* Increase height for medium screens */
@media screen and (max-width: 1024px) {
    .activity-photos {
        height: 250px;
    }
}

/* Taller for tablet screens */
@media screen and (max-width: 768px) {
    .activity-photos {
        height: 250px !important;  /* Added !important to ensure override */
    }
}

/* Maximum height for mobile phones */
@media screen and (max-width: 480px) {
    .activity-photos {
        height: 250px !important;
    }
}

/* Ensure images fill the container properly */
.activity-photos img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

/* Only hide images in multi-image galleries */
.activity-photos:has(img:nth-child(2)) img {
    opacity: 0;
}

/* Show active images in multi-image galleries */
.activity-photos:has(img:nth-child(2)) img.active {
    opacity: 1;
}

.activity-photos img.vertical {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navigation dots */
.slideshow-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

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

.dot.active {
    background: rgba(255, 255, 255, 1);
}

/* Navigation arrows */
.slideshow-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
}

.nav-button {
    background: none !important;  /* Added !important to ensure override */
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    cursor: pointer;
    pointer-events: auto;
    transition: color 0.3s;
    width: auto;  /* Remove fixed width */
    height: auto;  /* Remove fixed height */
}

.nav-button:hover {
    color: rgba(255, 255, 255, 0.9);
    background: none !important;  /* Ensure no background on hover */
}

.activity-photos:hover .slideshow-nav {
    opacity: 1;
}

/* Hide navigation for single images */
.activity-photos:has(img:only-child) .slideshow-nav,
.activity-photos:has(img:only-child) .slideshow-dots {
    display: none;
}

/* Single image layout */
.activity-photos:has(img:only-child) {
    grid-template-columns: 1fr;
}

/* Two images layout */
.activity-photos:has(img:first-child:nth-last-child(2)) {
    grid-template-columns: repeat(2, 1fr);
}

/* Three images layout */
.activity-photos:has(img:first-child:nth-last-child(3)) {
    grid-template-columns: repeat(3, 1fr);
}

.activity-photos img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.activity-photos img.vertical {
    height: 100%;
}

.activity-photos img:hover {
    transform: scale(1.05);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .activity-photos {
        height: 200px;
    }

    .activity-photos img,
    .activity-photos img.vertical {
        height: 100%;
    }
}

.activity-photos img.position-top {
    object-position: top;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
}

.modal-slideshow {
    position: relative;
    width: 90%;
    height: 90vh;
    margin: 20px auto;
}

.modal-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.modal-track img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-track img.active {
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 16px;
    cursor: pointer;
    font-size: 24px;
    z-index: 1000;
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.modal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
}

.modal-dot.active {
    background: white;
}

.activity-photos a {
    display: block;
    width: 100%;
    height: 100%;
}

.activity-photos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hide dots for single-image galleries */
.activity-photos:has(img:only-child) .slideshow-dots {
    display: none;
}