body {
    margin: 0;
    background: #1b181c;
    color: #fff;
    line-height: 1.6;
    position: relative; /* Added for parallax positioning */
    /* Hide scrollbar for Firefox */
    scrollbar-width: none;
    /* Hide scrollbar for IE and Edge */
    -ms-overflow-style: none;
    font-family: "Quicksand", sans-serif !important;
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
    display: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: 4rem 0;
}

/* Section Backgrounds */
#center-image {
    background: #1b181c;
    text-align: center;
    padding: 2rem 0;
}

/* Use grid on the container to layer the canvas and image for the reveal effect */
#center-image .container {
    display: grid;
    place-items: center;
}

/* Place all direct children into the same grid cell to stack them */
#center-image .container > * {
    grid-area: 1 / 1;
}

#hiddenElement {
    display: none; /* This element is likely just for the script */
}

#revealCanvas {
    z-index: 2; /* Ensure canvas is on top of the image */
    border-radius: 10px; /* Match the image's border-radius to prevent visual offset */
}

.spacer-purple {
    background: #7773a9;
    height: 75px;
}

.spacer-blue {
    background: #8cb4eb;
    height: 75px;
}

#about,
#services,
#parent-university {
    background: #1b181c;
}

#recent-events {
    position: relative;
    padding: 6rem 0;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#recent-events .container {
    background: rgba(27, 24, 28, 0.7);
    padding: 2rem;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
    backdrop-filter: blur(3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#recent-events .flex {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

#recent-events img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#recent-events .text-box {
    flex: 1;
    min-width: 300px;
}

/* Rest of your existing CSS remains the same */
/* Services Section */
#services {
    text-align: center;
    color: #fff;
}

/* Parent University Section */
#parent-university {
    color: #8cb3ea;
    padding: 3rem 0;
    text-align: center;
}

/* Small subtitle under section titles */
.section-title {
    text-align: center;
    margin: 0;
    font-size: 2rem;
    color: #8cb3ea;
}

.section-subtitle {
    max-width: 900px;
    margin: 0.5rem auto 1.5rem;
    color: #d7e6fb;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.95;
}

.parent-university-container {
    width: 100%;
    margin-bottom: 40px;
}

.video-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 1.5rem;
}

.video-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.video-title {
    color: #8cb3ea;
    font-size: 1.3rem;
    margin: 0 0 0.5rem;
}

.video-box {
    width: 100%;
    max-width: 500px;
    border: 3px solid #8cb3ea;
    background: rgba(140, 179, 234, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.video-box video {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer Styles */
footer {
    background: rgba(21, 1, 121, 0.291);
    color: #e3e6ea;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

/* Layout & Reusables */
.flex {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.text-box {
    max-width: 600px;
}

/* Services Styles */
.service-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.5rem;
}

.service {
    flex: 1;
    min-width: 280px;
    max-width: 380px;
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-header {
    display: flex;
    align-items: left;
    justify-content: left;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-header img {
    height: 80px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.service-header h2 {
    font-size: 2rem;
    margin: 0;
    color: #ed6e75;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* Logo and Title */
.logo-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.logo-title img {
    height: 80px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.logo-title img:hover {
    transform: scale(1.1);
}

.logo-title h2 {
    font-size: 2rem;
    margin: 0;
    text-align: center;
    color: #ed6e75;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* Center Image */
#center-image img {
    max-width: 80%;
    height: auto;
    z-index: 1; /* Set image z-index to be below the canvas */
    border-radius: 10px;
    box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.3);
}

.life-art-mission {
    margin: 0 auto 2rem auto;
    max-width: 800px;
    background: rgba(0, 0, 0, 0.2); /* Darker background */
    color: #fff;
    border-radius: 12px;
    box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.1); /* Consistent shadow */
    padding: 1.5rem 2rem;
    font-size: 1.15rem;
    font-weight: 500;
    text-align: left;
    border-left: 8px solid #ed6e75;
    transition: box-shadow 0.3s;
}

/* Social Media Links in Footer */
.social-links {
    margin: 15px 0; /* Adds vertical spacing around the icons */
}

.social-links a {
    display: inline-block; /* Necessary for transform to work */
    margin: 0 10px;      /* Adds horizontal spacing between icons */
    transition: transform 0.3s ease; /* Smooth transition for the hover effect */
}

.social-links a:hover {
    transform: scale(1.15); /* Makes the icon slightly larger on hover */
}

.social-links img {
    height: 32px; /* Sets a consistent height for the icons */
    width: auto;  /* Maintains the aspect ratio */
}


@media (max-width: 768px) {
    .life-art-mission {
        padding: 1rem;
        font-size: 1rem;
        border-left-width: 5px;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        gap: 20px;
        padding: 1rem;
    }

    .nav-links {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    .nav-links li {
        margin: 0.5rem 0;
    }

    .logo-title h2 {
        font-size: 1.75rem;
    }

    .logo-title img {
        height: 60px;
    }

    #recent-events img {
        max-width: 100%;
    }

    .video-row {
        flex-direction: column;
        align-items: center;
    }

    .video-box {
        max-width: 90%;
    }
    
    #recent-events::before {
        background: linear-gradient(
            135deg,
            transparent 0%,
            transparent 15%,
            rgba(27, 24, 28, 0.7) 15%,
            rgba(27, 24, 28, 0.7) 85%,
            transparent 85%,
            transparent 100%
        );
    }
}
