/* General Styles */
 :root {
     --brand-purple: purple;
     --brand-orange: #ff6600;
     --brand-orange-dark: #e65c00;
     --brand-blue: #007bff;
     --brand-blue-dark: #0056b3;
     --bg-light: #f9f9f9;
     --text-dark: #333333;
     --text-muted: #666666;
     --radius: 10px;
     --shadow-sm: 0 4px 8px rgba(0, 0, 0, 0.1);
     --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.15);
 }

/* Prevent body scroll when mobile nav is open */
body.no-scroll {
    overflow: hidden;
}
 *, *::before, *::after { box-sizing: border-box; }
 body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
   background-image: url(../images/Cover.jpg);
    overflow-x: hidden;
    color: #b7a0b0;
}

/* Basic Resets */
ul {
    padding: 0;
    list-style-type: none;
}
img { max-width: 100%; height: auto; }
video { max-width: 100%; height: auto; display: block; }
/* Header Styles */
header {
    background-color: #FFFF;
    color: white;
    text-align: center;
    padding: 10px 0; /* Reduce padding to make the header smaller */
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    height: 92px; /* Reduced header height */
}

/* Header Container */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-logo img {
    max-width: 170px; /* Slightly reduced logo size */
    max-height: 80px; /* Reduced to fit shorter header */
    width: auto; /* Maintain aspect ratio */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Ensures proper spacing */
    margin: 0; /* Remove auto margins for more control */
}

/* Logo */
.logo h1 {
    font-size: 1.5em; /* Reduce the size of the logo text if needed */
    margin: 0;
}

/* Navigation */
nav ul {
    display: flex;
    padding: 0;
    list-style-type: none;
    margin: 0;
}

/* Mobile nav toggle button */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--brand-purple);
    font-size: 1.5rem;
    cursor: pointer;
}
/* Swap hamburger/close icons */
.nav-toggle .icon-close { display: none; }
.nav-toggle.open .icon-open { display: none; }
.nav-toggle.open .icon-close { display: inline-block; }

nav ul li {
    margin: 0 12px;
}

nav ul li a {
    color: purple;
    text-decoration: none;
    font-weight: bold;
    text-transform: capitalize;
    font-size: 1rem;
    padding: 6px 8px;
    border-radius: 6px;
    position: relative;
    transition: color 0.2s ease, background-color 0.2s ease;
}

nav ul li a:hover {
    color: #e65c00;
    background-color: rgba(128, 0, 128, 0.08); /* subtle purple tint */
}

/* Hover underline accent */
nav ul li a::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 4px;
    height: 2px;
    background-color: currentColor;
    opacity: 0;
    transform: scaleX(0.6);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

nav ul li a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

/* Header Buttons */
.header-buttons {
    display: flex;
    align-items: center;
    color: purple;
}

/* Hidden by default; shown inside mobile menu at small widths */
.header-actions-mobile { display: none; }

.cta-button {
    padding: 10px 20px;
    background-color: var(--brand-purple);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    margin-right: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: var(--brand-orange-dark);
    transform: translateY(-1px);
}

/* Social Media Icons */
.social-media {
    display: flex;
    align-items: center;
}

.social-icon {
    color: purple;
    font-size: 1.3em; /* Reduce icon size */
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #ff6600;
}

/* Responsive Design for Header */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row; /* keep logo and toggle on one line */
        align-items: center;
        justify-content: space-between;
        position: relative; /* anchor dropdown nav */
    }
    .nav-toggle { display: block; }
    nav {
        width: 100%;
        display: none;
        background: #ffffff;
        box-shadow: var(--shadow-sm);
        border-radius: 8px;
        margin-top: 10px;
        padding: 10px 12px;
        position: absolute; /* dropdown below header */
        top: 100%;
        left: 0;
        right: 0;
        z-index: 95;
    }
    nav.open {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul li {
        margin: 6px 0;
    }

    nav ul li a {
        display: block;
        width: 100%;
        padding: 12px 10px; /* larger tap targets */
        font-size: 1.1rem;
    }
    
    .header-actions-mobile { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
    .header-actions-mobile .cta-button { width: 100%; text-align: center; }
    .header-buttons { display: none; }

    /* Slightly reduce logo height on mobile to fit row */
    .header-logo img { max-height: 64px; max-width: 150px; }
}



/* Section General Styles */
section {
    padding: 80px 20px;
    transition: background-color 0.3s ease;
}

/* Remove jarring whole-section hover color change */

/* Full-Screen Home Section */
.full-screen {
    width: 100%;
    height: 100vh; /* Full viewport height */
    position: relative;
    overflow: hidden;
    padding: 0 !important; /* prevent side gaps from global section padding */
}

/* Ensure hero slideshow spans full viewport width */
.full-screen .slideshow-container {
    width: 100vw;
    left: 0;
}


/* CTA Button */
.cta-button {
    padding: 10px 20px;
    background-color: var(--brand-purple);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: var(--brand-orange-dark);
    transform: translateY(-1px);
}
.stem-programs-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
    background-color: #f9f9f9;
}

.stem-programs-modern h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.program-card {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    width: 90%;
    max-width: 1200px;
    object-fit: cover;
    flex-grow: 0;
}

.program-card:nth-child(even) {
    flex-direction: row-reverse; /* Reverse order for even cards */
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
}

.card-content {
    padding: 30px;
    flex: 1;
}

.card-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.card-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
}

.card-images {
    flex-shrink: 0; /* Prevent the image section from expanding */
    max-width: 300px; /* Limit image width on desktop */
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.card-images img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: cover; /* fill card area more naturally */
    transition: transform 0.3s ease;
}

.program-card:hover .card-images img {
    transform: scale(1.1);
}

.arrow {
    width: 30px;
    height: 30px;
    background-color: #0066ff;
    position: absolute;
    top: 50%;
    right: -15px;
    transform: translateY(-50%) rotate(45deg);
    border: none;
    z-index: 10;
}

.program-card:nth-child(even) .arrow {
    left: -15px; /* Move the arrow to the left for even cards */
    right: auto;
    background-color: #ff6600;
}

@media (max-width: 768px) {
    /* Reduce global section padding */
    section { padding: 40px 16px; }

    .program-card {
        flex-direction: column !important; /* force vertical stack */
        align-items: stretch;
        width: 100%;
    }

    .card-images {
        order: -1; /* Images on top */
        max-width: none; /* allow full width */
        width: 100%;
        height: auto;
        margin: 0 0 12px 0; /* space beneath image */
    }

    .program-card .card-content {
        width: 100%;
        padding: 16px 12px; /* comfortable mobile padding */
    }

    .arrow {
        display: none; /* Hide arrows on small screens */
    }

    /* Fix narrow paragraph margins in Programs section */
    #programs p { margin-left: 0 !important; margin-right: 0 !important; }
    .stem-programs-modern p { margin-left: 0 !important; margin-right: 0 !important; }

    /* Team grid one column */
    .team-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

    /* About video responsive */
    .about-video video { width: 100%; height: auto; }

    /* Heading scale on mobile */
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
    .slideshow-content h1 { font-size: 2rem !important; }
    .slideshow-content p { font-size: 1rem !important; }

    /* Operational Model: make intro text full-width and left-aligned */
    .operational-model .heading-intro {
        width: 100% !important;
        max-width: 100% !important;
        text-align: left !important;
        margin: 0 0 16px 0 !important;
        padding: 0 !important;
    }
    .operational-model .heading-intro h2,
    .operational-model .heading-intro p {
        text-align: left !important;
    }
    .operational-model .heading-intro p {
        width: 100% !important;
        margin: 8px 0 0 0 !important;
        max-width: 100% !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word;
        line-height: 1.6;
        font-size: 1rem;
    }
    .operational-model .cards-container { grid-template-columns: 1fr; gap: 12px; overflow: visible; }
    .operational-model .card { width: 100%; }
    .operational-model .card h3 { font-size: 1rem; }
    .operational-model .card p { font-size: 0.95rem; line-height: 1.5; }

    /* Programs: override any inline wide margins and center/left readable width */
    #programs p {
        margin: 8px 0 !important;
        max-width: 100% !important;
        text-align: left !important;
    }
}


/* Styles for Contact Us section */
#contact-us {
    padding: 40px;
    background-color: #f9f9f9;
}

#contact-us h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

#contact-us .contact-info {
    flex: 1;
    min-width: 300px;
}

#contact-us .contact-info h3 {
    color: #333;
}

#contact-us .contact-info a {
    color: #007bff;
    text-decoration: none;
}

#contact-us .contact-info a:hover {
    text-decoration: underline;
}

#contact-us .map {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

#contact-us .map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

#contact-us form {
    max-width: 800px;
    margin: auto;
}

#contact-us form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
}

#contact-us form input,
#contact-us form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#contact-us form button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

#contact-us form button:hover {
    background-color: #0056b3;
}

/* About Us Section */
.about-section {
    padding: 80px 20px;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

/* About Us Text */
.about-text {
    flex: 1;
    padding-right: 20px;
    opacity: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
  
}

.cta-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #ff6600;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #ffcc00;
}

/* Video Section */
.about-video {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-video video {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        text-align: center;
    }

    .about-text {
        padding-right: 0;
    }
}

/* Full-Screen Home Section */
.full-screen {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: url('stem-park.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    position: relative;
    margin-top: -10px; /* Adjust this value if needed to remove space */
    padding: 0; /* Remove any default padding */
    overflow: hidden;
}

/* Slideshow container and images remain the same */
.slideshow-container {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.slideshow-image {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

/* Crossfade slideshow */
@keyframes slideAnimation {
    0%, 33.33% { opacity: 1; }
    33.34%, 100% { opacity: 0; }
}

.slide1 { animation: slideAnimation 15s infinite; animation-delay: 0s; }
.slide2 { animation: slideAnimation 15s infinite; animation-delay: 5s; }
.slide3 { animation: slideAnimation 15s infinite; animation-delay: 10s; }

.slide11 {
    background-image: url('images/slide1.jpg');
    animation-delay: 10s;}

.slide2 {
    background-image: url('images/IMG_0811.JPG');
    animation-delay: 0s;
}

.slide3 {
    background-image: url('images/IMG_0759.JPG');
    animation-delay: 5s;
}


.slideshow-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}

h1 {
    font-size: 3em;
    
    margin: 0;
}

p {
    font-size: 1.5em;

    margin: 20px 0;
}

.cta-button {
    padding: 10px 20px;
    background-color: var(--brand-purple);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: var(--brand-orange-dark);
    transform: translateY(-1px);
}

/* Slide animation */
@keyframes slide {
    0%, 33.33% {
        opacity: 1;
    }
    33.34%, 100% {
        opacity: 1;
    }
}

/* Artwork Background for Visual Appeal */
.artwork-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('abstract-art.jpg') no-repeat center center/cover;
    opacity: 0.5;
    z-index: -1;
}

/* About Us Section Styling */
.about-us {
    position: relative;
    padding: 100px 20px;
    text-align: center;
    color: white;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

.about-content h2 {
    font-size: 3em;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.about-content p {
    font-size: 1.5em;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.cta-button {
    padding: 10px 20px;
    background-color: var(--brand-purple);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: var(--brand-orange-dark);
    transform: translateY(-1px);
}

/* Meet the Team Section */
.team-section {
    padding: 100px 20px;
    text-align: center;
    background-color: #f4f4f4;
}

.team-section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    text-transform: capitalize;
    letter-spacing: 2px;
    color: #333;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

/* Team Member Styling */
.team-member {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-member img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: scale(1.05);
}

.team-member:hover img {
    transform: scale(1.1);
}

/* Team Info Overlay on Hover */
.team-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 20px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.team-member:hover .team-info {
    opacity: 1;
}

.team-info h3 {
    font-size: 1.5em;
    margin: 0;
}

.team-info p {
    font-size: 1em;
    margin: 5px 0 0;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .about-content h2 {
        font-size: 2.5em;
    }
    
    .about-content p {
        font-size: 1.2em;
    }

    .team-section h2 {
        font-size: 2.5em;
    }

    .team-info h3 {
        font-size: 1.2em;
    }

    .team-info p {
        font-size: 0.9em;
    }
}

/* Impact Section *//* Impact Section */
.impact-section {
    background-color: #fff;
    padding: 80px 20px;
    text-align: center;
}

.impact-section h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 40px;
}

.impact-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.stat {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    width: 150px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stat h3 {
    font-size: 2em;
    color: #ff6600;
}

.stat p {
    font-size: 1.2em;
    color: #333;
    margin-top: 10px;
}

/* Testimonials Slider */
.testimonials-slider {
    position: relative;
    max-width: 600px;
    margin: 40px auto 0;
    overflow: hidden;
}

.testimonial-slide {
    display: none;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.testimonial-slide.active {
    display: block;
    animation: fadeSlide 1s ease-in-out;
}

.testimonial-slide p {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 10px;
    font-style: italic;
}

.testimonial-slide h4 {
    font-size: 1em;
    color: #ff6600;
}

/* Animation */
@keyframes fadeSlide {
    from {
        opacity: 1;
    }
    to {
        opacity: 1;
    }
}
/* Full-Screen Home Section */
.full-screen {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: url('stem-park.jpg') no-repeat center center/cover;
    color: rgb(101, 158, 207);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.slideshow-container {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

/* Duplicate slideshow block cleaned: ensure same behavior as above */
.slideshow-image {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}
.slide1 { animation: slideAnimation 15s infinite; animation-delay: 0s; }
.slide2 { animation: slideAnimation 15s infinite; animation-delay: 5s; }
.slide3 { animation: slideAnimation 15s infinite; animation-delay: 10s; }

.slideshow-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}

h1 {
    font-size: 3em;
  
    margin: 0;
}

h2{
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

p {
    font-size: 1.5em;
  
    margin: 20px 0;
}

.cta-button {
    padding: 15px 30px;
    background-color: purple;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #e65c00;
}

/* Slide animation */
@keyframes slide {
    0%, 33.33% {
        opacity: 1;
    }
    33.34%, 100% {
        opacity: 0;
    }
}
/* News and Updates Section */
.news-section {
    padding: 80px 20px;
    background-color: #fff;
}

.news-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 50px;
    white-space: nowrap; /* keep on one line */
}

/* News Cards Layout *//* News and Updates Section */
.news-section {
    padding: 80px 20px;
    background-color: #fff;
}

.news-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 50px;
}

/* Slider Styling */
.news-slider {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.news-slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.news-card {
    min-width: 300px;
    margin-right: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.news-card img {
    width: 100%;
    height: auto;
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
   
}

.news-content p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ff6600;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #ffcc00;
}

/* Slider Controls (Optional for navigation buttons) */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.slider-btn.left {
    left: 10px;
}

.slider-btn.right {
    right: 10px;
}

/* Container for STEM Exhibits section */
#stem-exhibits {
    padding: 60px;
    background-color: #f0f8ff;
    position: relative;
    overflow: hidden;
}

/* Heading Style */
#stem-exhibits h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #333;
    font-family: 'Arial', sans-serif;
    font-size: 3rem;
    position: relative;
    z-index: 1;
}

/* Exhibit Styles */
#stem-exhibits .exhibit {
    position: absolute;
    width: 300px;
    text-align: center;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.5s ease;
    animation: float 3s infinite ease-in-out;
}

/* Hover Effect */
#stem-exhibits .exhibit:hover {
    transform: scale(1);
}

#stem-exhibits .exhibit img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    transition: transform 0.5s ease;
}

#stem-exhibits .exhibit:hover img {
    transform: scale(1.05) rotate(5deg);
}

/* Exhibit Title */
#stem-exhibits .exhibit h3 {
    color: #333;
    margin-top: 10px;
    font-family: 'Arial', sans-serif;
    font-size: 1.5rem;
}

/* Exhibit Description */
#stem-exhibits .exhibit p {
    color: #555;
    font-family: 'Arial', sans-serif;
    font-size: 1rem;
}

/* Call to Action */
#stem-exhibits .cta {
    text-align: center;
    margin-top: 70px;
}

#stem-exhibits .cta h2 {
    color: #333;
    font-family: 'Arial', sans-serif;
    font-size: 2.5rem;
    animation: fadeIn 2s ease;
}

#stem-exhibits .cta p {
    color: #555;
    font-family: 'Arial', sans-serif;
    font-size: 1.2rem;
    margin: 20px 0;
}

#stem-exhibits .cta a {
    display: inline-block;
    padding: 15px 30px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.3s ease;
    animation: fadeIn 2s ease;
}

#stem-exhibits .cta a:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}
/* General styles *//* Container for the operational model */
.operational-model {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    background-color: #f9f9f9;
    position: relative;
    min-height: 100vh; /* Ensure it covers the viewport height */
  }
  
  /* Heading and introduction */
  .heading-intro {
    display:flex;
    flex-direction: column;
   margin-left: 200px;
   margin-right: 200px;
  text-align: center;
    align-items: center;

    max-width: 100vw; /* Limit the width to half the screen */
  }
  
  /* Heading styles */
  .heading-intro h2 {
    font-size: 2rem;
    color: #333;
  }
  
  /* Introduction paragraph styles */
  .heading-intro p {
    margin-top: 10px;
    color: #666;
    font-size: 1.1rem;
  }
  
  /* Container for the cards */
  .cards-container {
    display: flex;
    flex-direction: row;
    justify-content: center; /* Center cards horizontally */
    align-items: flex-start;
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 20px;
  }
  
  /* Card styles */
  .card {
    background-color: #fff;
    border-radius: 10px;
    padding: 40px 20px 20px; /* Adjust padding to make space for icon */
    width: 200px; /* Adjust as needed */
    min-height: 200px;
    margin: 0 10px; /* Spacing between cards */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
    position: relative;
    overflow: hidden; /* Ensure content doesn't overflow */
  }
  
  /* Card icon styles */
  .card-icon {
    width: 60px; /* Icon size */
    height: 60px; /* Icon size */
    position: absolute;
    top: -30px; /* Position above the card */
    left: 50%;
    transform: translateX(-50%); /* Center the icon */
    background-size: cover;
    background-color: transparent; /* Make background transparent */
    z-index: 10; /* Ensure it stays above card content */
    margin-top: 40px;
  }
  
  /* Hover effect for cards */
  .card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    opacity: 1;
  }
  
  /* Card title styles */
  .card h3 {
    font-size: 1.1rem;
    margin-top: 40px; /* Add margin to ensure title is below the icon */
    margin-bottom: 10px;
  }
  
  /* Card text styles */
  .card p {
    font-size: 1rem;
    color: #444;
  }
  
  /* Cartoon animation */
  .cartoon {
    position: absolute;
    bottom: 10px;
    left: -50px;
    width: 50px;
    height: 50px;
    background-image: url('path-to-cartoon-image.png');
    background-size: cover;
    animation: moveCartoon 20s linear infinite;
  }
  
  /* Keyframes for cartoon movement */
  @keyframes moveCartoon {
    0% {
      left: -50px;
    }
    20% {
      left: 15%;
    }
    40% {
      left: 35%;
    }
    60% {
      left: 55%;
    }
    80% {
      left: 75%;
    }
    100% {
      left: 95%;
    }
  }
  
  /* Keyframes for card lift animation */
  @keyframes liftCard {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-20px);
    }
  }
  
  /* Apply card lift animation */
  .card.lift {
    animation: liftCard 3s ease-in-out infinite;
  }
  /* Footer Section Styles */
footer {
    background-color: purple;
    color: white;
    padding: 40px 0;
    font-family: Arial, sans-serif;
}

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

.footer-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-column {
    flex: 1;
    min-width: 220px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #1abc9c;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #1abc9c;
}

/* Newsletter Form Styles */
.footer-column form {
    display: flex;
    flex-direction: column;
}

.footer-column input[type="email"] {
    padding: 12px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

.footer-column button {
    padding: 12px;
    background-color: #1abc9c;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.footer-column button:hover {
    background-color: #16a085;
}

/* Social Media Icons */
.footer-social {
    text-align: center;
    margin-top: 20px;
}

.footer-social a {
    color: white;
    margin-right: 15px;
    transition: transform 0.3s ease;
}

.footer-social a img {
    width: 30px;
}

.footer-social a:hover {
    transform: scale(1.1);
}

/* Footer Bottom Text */
.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 30px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.95rem;
    color: #ffffff;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        align-items: center;
    }

    .news-section h2 {
        font-size: 2rem; /* slightly smaller on small screens to avoid wrapping */
    }

    .footer-column {
        text-align: center;
        min-width: unset;
    }
    /* Key mobile layout fixes */
    .team-grid { grid-template-columns: 1fr !important; gap: 16px; }
    .program-card { display: flex; flex-direction: column; gap: 12px; }
}

/* Menu overlay behind mobile nav */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 90; /* header is z-index:100 */
}
.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}
/* Removed excessive global top padding on all sections */
html {
    scroll-behavior: smooth;
}
/* Partner Slider Section */
#partner-slider {
    padding: 20px;
    background-color: #f9f9f9;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#partner-slider h2 {
    font-size: 2rem;
    color: purple; /* Purple color */
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    margin-bottom: 20px;
}

.slider-wrapper {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.slider {
    display: flex;
    white-space: nowrap;
    animation: scroll 40s linear infinite;
}

.slider img {
    height: 60px; /* Adjust size as needed */
    margin: 0 10px; /* Space between logos */
    opacity: 0.7; /* Transparent effect */
    transition: opacity 0.3s ease;
}

.slider img:hover {
    opacity: 1; /* Full opacity on hover */
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Adjust section height */
#partner-slider {
    height: 200px; /* Adjust the height to fit the smaller size */
}

/* Final mobile overrides to fix layout issues that are re-introduced by later desktop styles */
@media (max-width: 768px) {
  /* Operational Model (Career Ladder) */
  .operational-model { padding: 40px 16px !important; }
  .operational-model .heading-intro { margin: 0 !important; padding: 0 !important; width: 100% !important; max-width: 100% !important; text-align: left !important; display: block !important; align-items: initial !important; }
  .operational-model .heading-intro h2 { text-align: left !important; margin: 0 0 8px 0 !important; }
  .operational-model .heading-intro p { margin: 8px 0 0 0 !important; max-width: 100% !important; text-align: left !important; white-space: normal !important; word-break: normal !important; line-height: 1.6 !important; }

  .operational-model .cards-container { display: grid !important; grid-template-columns: 1fr !important; gap: 12px !important; justify-content: stretch !important; align-items: stretch !important; overflow: visible !important; width: 100% !important; }
  .operational-model .card { width: 100% !important; margin: 0 0 12px 0 !important; padding: 16px !important; opacity: 1 !important; min-height: auto !important; }
  .operational-model .card h3 { margin-top: 8px !important; font-size: 1rem !important; }
  .operational-model .card p { font-size: 0.95rem !important; line-height: 1.5 !important; }
  .operational-model .card-icon { position: static !important; transform: none !important; margin: 0 0 8px 0 !important; }

  /* Generic safeguard for any cards container to avoid horizontal narrow strips on mobile */
  .cards-container { display: block !important; overflow: visible !important; }
  .cards-container .card { width: 100% !important; margin: 0 0 12px 0 !important; }

  /* Contact Us: stack columns and make fields full width */
  #contact-us { padding: 24px 16px !important; }
  /* Outer two-column wrapper in Contact Us */
  #contact-us div[style*="display: flex"][style*="flex-wrap"] {
    flex-direction: column !important;
    gap: 16px !important;
  }
  /* Each column card */
  #contact-us div[style*="display: flex"][style*="flex-wrap"] > div {
    min-width: 0 !important;
    width: 100% !important;
  }
  /* Form row with two fields */
  #contact-us form > div[style*="display: flex"] {
    flex-direction: column !important;
    gap: 12px !important;
  }
  #contact-us form > div[style*="display: flex"] > div {
    min-width: 0 !important;
    width: 100% !important;
  }
  /* Inputs */
  #contact-us input,
  #contact-us textarea,
  #contact-us button {
    width: 100% !important;
    box-sizing: border-box;
  }
}
