/* style.css */

/* --- Google Fonts (Optional: For a nicer font) --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');

/* --- Root Variables for Colors --- */
:root {
    --primary-green: #229c3b;
    --secondary-yellow: #ffc107;
    --dark-text: #1b2e20;
    --light-text: #f8f9fa;
    --white-bg: #ffffff;
    --light-gray-bg: #f4f7f5;
    --border-color: #e0e0e0;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;
    --soft-green: #e8f5e9;
    --pale-green: #f1f8e9;
    --mint-cream: #f5f9f6;
}

/* --- Base Styles / Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font), 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background: linear-gradient(135deg, var(--mint-cream) 0%, var(--soft-green) 100%);
}

a {
    text-decoration: none;
    color: var(--primary-green);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-yellow);
}

ul {
    list-style: none;
    padding-left: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--dark-text);
    margin-bottom: 0.5em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header Styles --- */
header {
    background: #fff !important;
    color: #1b2e20 !important; /* dark text for contrast */
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    padding-bottom: 0.5rem;
}

.header-top, .header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-top {
    padding: 18px 0 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 10px;
}

.logo-name {
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
    margin-right: 12px;
    filter: invert(1);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 4px;
}

.logo-name h1 {
    font-size: 1.7em;
    color: var(--light-text);
    margin: 0;
    letter-spacing: 1px;
}

/* Stylish white header with floating logo */
.stylish-header {
    background: #fff !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px 12px 40px;
    box-shadow: 0 4px 18px rgba(40,167,69,0.07);
    border-bottom: 2px solid #f2f2f2;
    position: relative;
    z-index: 10;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo.original-logo {
    width: 200px;    /* Adjust width as needed */
    height: auto;    /* Maintain aspect ratio */
    display: block;
    margin: 10px 0;
    /* Reset styles from the generic .logo class to ensure original appearance */
    filter: none; /* Removes the color inversion */
    background: transparent; /* Removes the white background */
    padding: 0; /* Removes the padding */
    border-radius: 0; /* Removes rounded corners */
    box-shadow: none; /* Removes the shadow */
}

/* Main Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.main-nav ul {
    display: flex;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
}

.main-nav ul li {
    position: relative;
}

.main-nav ul li a {
    color: #1b2e20 !important; /* Use dark text */
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.3rem 0.7rem;
    border-radius: 3px;
    transition: background 0.2s, color 0.2s;
    background: none;
}

.main-nav ul li a:hover,
.main-nav ul li.active > a {
    background: #e6ffe6;
    color: #229c3b !important;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-yellow);
    transition: width 0.3s;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

.main-nav ul li a.active {
    color: #28a745 !important; /* or your accent color */
    border-bottom: 3px solid #28a745;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white-bg);
    min-width: 210px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 10px;
    margin-top: 8px;
    padding: 10px 0;
    border: 2px solid var(--primary-green);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dropdown-content a {
    color: #1b2e20 !important;
    padding: 10px 20px;
    display: block;
    text-decoration: none;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--light-gray-bg);
    color: var(--primary-green) !important;
}

/* Show dropdown only on hover */
.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* --- Header Bottom --- */
.header-bottom {
    background: #fff !important;
    color: #1b2e20 !important;
    font-size: 0.98em;
    padding: 8px 0;
    border-radius: 0;
    box-shadow: none;
}

.contact-info span, .guest-member {
    color: #1b2e20 !important;
}

/* --- Hero Banner --- */
#hero-banner {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('../images/1.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: #fff;
    padding: 2rem 1rem;
}

/* --- Hero Banner Animations --- */
.welcome-text {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
    opacity: 0;
    transform: scale(0.8) translateY(-30px);
    animation: zoomInDown 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    color: #fff;
}

.welcome-description {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInRight 1s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.6s;
    color: var(--secondary-yellow);
}

.welcome-subtext {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
    opacity: 0;
    transform: translateX(50px);
    animation: slideInLeft 1s cubic-bezier(0.4, 0, 0.2, 1) forwards 1.2s;
    color: #fff;
}

@keyframes zoomInDown {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-30px);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1) translateY(5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Add text highlight effect */
.welcome-text, .welcome-description, .welcome-subtext {
    position: relative;
    display: inline-block;
}

.welcome-text::after, 
.welcome-description::after, 
.welcome-subtext::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-yellow);
    animation: lineGrow 0.6s ease-out forwards;
    animation-delay: 2s;
}

@keyframes lineGrow {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

/* Enhance text shadow on hover */
.welcome-text:hover,
.welcome-description:hover,
.welcome-subtext:hover {
    text-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: text-shadow 0.3s ease;
}

/* --- Stylish hero slideshow image */
#hero-slideshow {
    border-radius: 22px;
    box-shadow: 0 6px 32px rgba(40, 167, 69, 0.13);
    border: 3px solid #28a745;
    transition: box-shadow 0.3s, border 0.3s;
    background: #e6ffe6;
}

/* --- About Sections --- */
.about-section {
    background: var(--white-bg);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(60,60,120,0.07);
    padding: 2rem 1.5rem;
    margin: 2rem auto;
    max-width: 900px;
}

.about-section ul {
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.about-section li {
    margin-bottom: 0.5rem;
}

/* --- Program Cards & Grids --- */
#content-sections {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.program-grid, .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.program-card, .card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(60,60,120,0.07);
    padding: 2rem 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.program-card:hover, .card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 32px rgba(60,60,120,0.13);
}

.program-card h4, .card h2 {
    color: #1a237e;
    margin-top: 0;
}

/* --- Blog Cards --- */
.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(60,60,120,0.07);
    padding: 1.5rem 1.2rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 32px rgba(60,60,120,0.13);
}

.blog-card h2 {
    color: #3949ab;
    margin-top: 0;
}

.blog-card a {
    color: #1a237e;
    text-decoration: none;
    font-weight: 500;
}

.blog-card a:hover {
    text-decoration: underline;
}

/* --- Contact Section --- */
.contact-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-info {
    flex: 1 1 260px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(60,60,120,0.07);
    padding: 2rem 1.5rem;
}

.contact-form {
    flex: 2 1 340px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(60,60,120,0.07);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input, .contact-form textarea {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    resize: none;
}

.contact-form button {
    background: var(--primary-green);
    color: #fff;
    border: none;
    padding: 0.9rem 1.5rem;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-form button:hover {
    background: #218838;
}

/* --- Search Section --- */
.search-section {
    margin-top: 2rem;
    text-align: center;
}

.search-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-form input {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    width: 260px;
}

.search-form button {
    background: var(--primary-green);
    color: #fff;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.search-form button:hover {
    background: #218838;
}

/* --- Footer --- */
footer {
    background: linear-gradient(to bottom, #1a1a1a, #2a2a2a);
    color: #ffffff;
    padding: 0;
    margin-top: 4rem;
}

.footer-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    padding: 3rem 2rem;
}

.footer-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    padding: 0 1rem;
}

.footer-section h4 {
    color: var(--secondary-yellow);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-green);
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e0e0e0;
}

.contact-info i {
    color: var(--primary-green);
    width: 20px;
}

.quick-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links li {
    margin-bottom: 0.8rem;
}

.quick-links a {
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.quick-links a:hover {
    color: var(--secondary-yellow);
    transform: translateX(5px);
}

.social-section {
    text-align: left;
}

.social-media-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0);
    transition: transform 0.3s ease;
    border-radius: 50%;
}

.social-icon:hover::before {
    transform: scale(1);
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-icon.facebook {
    background: #1877f2;
}

.social-icon.instagram {
    background: #e4405f;
}

.social-icon.tiktok {
    background: #000000;
    border: 1px solid #333;
}

.social-icon.whatsapp {
    background: #25D366;
}

.copyright {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    color: #999;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .footer-sections {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-info p {
        justify-content: center;
    }

    .social-media-buttons {
        justify-content: center;
    }

    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .footer-content {
        padding: 2rem 1rem;
    }
}

/* --- Mission, Vision, Values Section */
.mvv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin: 2rem auto;
    max-width: 1100px;
    padding: 0 1rem;
}
.mvv-card {
    background: var(--white-bg);
    border-left: 8px solid var(--primary-green);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(40,167,69,0.07);
    padding: 2rem 1.5rem;
    transition: box-shadow 0.2s;
}
.mvv-card h3 {
    color: var(--primary-green);
    margin-top: 0;
}
.mvv-card ul {
    margin-left: 1.2rem;
    margin-bottom: 0;
}
.mvv-card li {
    margin-bottom: 0.4rem;
    color: var(--dark-text);
}

/* --- Admission Page Unique Containers */
.admission-container-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 2rem;
    margin: 2.5rem auto;
    max-width: 1100px;
    padding: 0 1rem;
}
.admission-card {
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(40,167,69,0.10);
    padding: 2rem 1.5rem;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 8px solid var(--primary-green);
    position: relative;
    overflow: hidden;
}
.admission-card h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.admission-card.admission-green {
    background: linear-gradient(120deg, #28a74510 0%, #fff 100%);
    border-left: 8px solid var(--primary-green);
}
.admission-card.admission-yellow {
    background: linear-gradient(120deg, #fffbe6 0%, #fff 100%);
    border-left: 8px solid var(--secondary-yellow);
}
.admission-card.admission-white {
    background: #fff;
    border-left: 8px solid #e0e0e0;
}
.admission-card a {
    color: var(--primary-green);
    font-weight: 600;
}
.admission-card a:hover {
    color: var(--secondary-yellow);
    text-decoration: underline;
}
.admission-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 32px rgba(40,167,69,0.13);
}

/* --- About Overlay Section --- */
.about-overlay-section {
    position: relative;
    padding: 6rem 0;
    background: url('../images/4.jpeg') center/cover fixed;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

/* Ensure background image covers properly on different screen sizes */
@media (max-width: 1400px) {
    .about-overlay-section {
        background-size: cover;
    }
}

.about-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(34, 156, 59, 0.75) 0%,
        rgba(25, 135, 84, 0.65) 50%,
        rgba(34, 156, 59, 0.75) 100%
    );
    z-index: 1;
    backdrop-filter: blur(1px);
}

.about-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    color: #fff;
    padding: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.about-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 4px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.about-content .content-container {
    flex: 1;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-content .content-container:hover {
    transform: translateY(-5px);
}

.about-text-container {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.about-content .section-header {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--primary-green);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    padding-bottom: 1rem;
}

.about-content .section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--primary-green);
    border-radius: 2px;
}

.lead-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--primary-green);
    margin-bottom: 1.8rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.detail-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #2c3e50;
    margin-bottom: 1.8rem;
}

.highlight-text {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--primary-green);
    font-weight: 600;
    text-align: center;
    padding: 1.5rem;
    border-top: 2px solid rgba(34, 156, 59, 0.1);
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-overlay-section {
        min-height: auto;
        padding: 60px 0;
        background-size: cover;
        background-attachment: scroll;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
        padding: 1rem;
    }

    .about-content .content-container {
        padding: 1.5rem;
    }
}

/* Ensure proper image display on larger screens */
@media (min-width: 1920px) {
    .about-overlay-section {
        background-size: cover;
        min-height: 700px;
    }
}

/* Optimize for medium screens */
@media (min-width: 769px) and (max-width: 1199px) {
    .about-overlay-section {
        min-height: 550px;
        background-size: cover;
    }
}

/* Add a subtle parallax effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* --- Media Showcase Grid --- */
.media-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin: 2.5rem auto 1.5rem auto;
    max-width: 1100px;
    padding: 0 1rem;
}
.media-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(40,167,69,0.10);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s, transform 0.2s;
}
.media-card:hover {
    box-shadow: 0 6px 24px rgba(40,167,69,0.18);
    transform: translateY(-4px) scale(1.03);
}
.media-card img,
.media-card video {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 0.7rem;
    object-fit: cover;
    max-height: 220px;
}
.media-caption {
    font-size: 1rem;
    color: var(--primary-green, #229c3b);
    text-align: center;
    margin: 0;
}

/* --- Media Slideshow Section --- */
.media-slideshow-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 0;
    background: #fff;
    box-sizing: border-box;
}
.media-slideshow {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
}
.media-slideshow .slide {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    height: 320px;
    position: absolute;
    top: 0; left: 0;
    transition: opacity 0.7s cubic-bezier(.4,2,.6,1), transform 0.7s cubic-bezier(.4,2,.6,1);
    opacity: 0;
    z-index: 1;
    background: linear-gradient(135deg, var(--mint-cream) 0%, var(--soft-green) 100%);
}
.media-slideshow .slide.active {
    display: flex;
    opacity: 1;
    position: relative;
    z-index: 2;
    transform: scale(1.02);
    animation: slideInFromLeft 1s cubic-bezier(.4,2,.6,1);
}
.media-slideshow img,
.media-slideshow video {
    width: 100vw;
    max-width: 100vw;
    min-width: 100vw;
    height: 320px;
    max-height: 320px;
    object-fit: contain; /* Show the whole image/video */
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    background: #e6ffe6; /* Or #fff or another theme color for gaps */
}
.media-slideshow video {
    background: #000;
}
.slide-caption {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: var(--primary-green, #229c3b);
    text-align: center;
    font-weight: 600;
}
.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(34,156,59,0.85);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
    opacity: 0.85;
}
.slide-btn.prev { left: 18px; }
.slide-btn.next { right: 18px; }
.slide-btn:hover { background: #229c3b; }

/* --- Fullwidth Video Section --- */
.fullwidth-video-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    height: 380px;
    background: linear-gradient(120deg, #229c3b 0%, #198754 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.fullwidth-video {
    width: 100vw;
    height: 380px;
    object-fit: cover;
    filter: brightness(0.85) saturate(1.1);
    display: block;
}
.video-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(34,156,59,0.55) 0%, rgba(25,135,84,0.45) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.18);
    z-index: 2;
    pointer-events: none;
}
.video-overlay h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}
.video-overlay p {
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0;
}

/* --- Animations --- */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100vw);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- Responsive Design --- */
@media (max-width: 1000px) {
    .header-top, .header-bottom, .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .footer-content {
        align-items: center;
        text-align: center;
    }
    .footer-content .copyright,
    .footer-content .social-media-buttons {
        text-align: center;
    }
}

@media (max-width: 800px) {
    .main-content, #content-sections, #hero-banner, .about-section {
        padding: 0 0.5rem;
        max-width: 100%;
    }
    .card-grid, .program-grid, .blog-list {
        grid-template-columns: 1fr;
    }
    .contact-section {
        flex-direction: column;
    }
    .footer-content {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .logo-name h1 {
        font-size: 1.1em;
    }
    .header-top, .header-bottom {
        padding: 0 8px;
    }
    #hero-banner {
        padding: 1.2rem 0.5rem;
    }
    .about-section, .program-card, .card, .contact-info, .contact-form {
        padding: 1rem 0.5rem;
    }
}

/* --- Top Green Bar --- */
.top-green-bar {
    width: 100vw;
    background: linear-gradient(to right, #1d8509, #229c3b);
    color: #fff;
    padding: 0.7rem 0;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1002;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.top-bar-content {
    width: 90vw;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.top-contact, .top-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.top-contact i, .top-location i {
    color: var(--secondary-yellow);
    font-size: 1.2rem;
}

.top-contact:hover, .top-location:hover {
    color: var(--secondary-yellow);
    transition: color 0.3s ease;
}

@media (max-width: 900px) {
    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding: 0.3rem 0;
    }

    .top-green-bar {
        padding: 0.8rem 0;
    }

    .top-contact, .top-location {
        justify-content: center;
    }
}

/* Logo bar (white background) */
.header-logo-bar {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 2vw 1.2rem 2vw;
    border-bottom: 1px solid #e0e0e0;
    z-index: 1001;
    position: relative;
}

/* Sticky navigation bar */
.sticky-nav {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    border-bottom: 1.5px solid #e0e0e0;
    display: flex;
    /* justify-content: center; Removed to allow .header-logo-nav to span full width */
}

/* Container for logo and main navigation within the sticky bar */
.header-logo-nav {
    display: flex;
    justify-content: space-between; /* Pushes logo to left, nav to right */
    align-items: center;
    width: 100%; /* Span the full viewport width */
    padding: 0.5rem 20px; /* Vertical and horizontal padding (adjust 20px as needed for edge spacing) */
    box-sizing: border-box; /* Ensures padding is included within the 100% width */
}

.main-nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    margin: 0;
    padding: 0.7rem 0;
    list-style: none;
}
.main-nav ul li a {
    color: #1b2e20 !important; /* Use dark text */
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.3rem 0.7rem;
    border-radius: 3px;
    transition: background 0.2s, color 0.2s;
}
.main-nav ul li a:hover,
.main-nav ul li.active > a {
    background: #e6ffe6;
    color: #229c3b !important;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .header-logo-nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.7rem 1vw;
    }
    .main-nav ul {
        gap: 1rem;
        font-size: 1rem;
    }
    .header-logo-bar {
        padding: 0.7rem 1vw;
    }
    .top-bar-content {
        flex-direction: column;
        gap: 0.3rem;
        text-align: center;
    }
}/* --- Logo Styling --- */

/* Header Logo */
.header-logo-nav .original-logo {
    height: 80px; /* Makes the logo taller */
    width: 240px; /* Increased width for a bit more stretch */
    display: block;   /* Can help prevent extra space below the image */
    /* If your header uses flexbox, ensure logo aligns well with navigation */
    /* e.g., align-self: center; if .header-logo-nav is a flex container */
}

/* "About Us" Section Logo */
.about-overlay-section .about-logo {
    max-height: 100px; /* Adjust as needed for this section */
    width: auto;        /* Maintain aspect ratio */
    margin-right: 25px; /* Adds some space between the logo and the text */
    /* If .about-content is a flex container, ensure vertical alignment */
    /* e.g., align-self: flex-start; or align-self: center; */
    border-radius: 8px; /* Optional: if you want slightly rounded corners */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Optional: a subtle shadow */
}

/* Ensure the logo link in the header behaves well */
.header-logo-nav .logo-link {
    display: inline-block; /* Ensures the link wraps the image correctly */
    line-height: 0; /* Can help remove any unexpected spacing */
}

/* Enhanced Container Styles */
.content-container {
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.95), rgba(244, 247, 245, 0.95));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    transition: transform 0.3s ease;
}

.content-container:hover {
    transform: translateY(-5px);
}

.content-container.highlight {
    background: linear-gradient(135deg, #ffffff 0%, var(--pale-green) 100%);
}

.content-container.light-bg {
    background: linear-gradient(135deg, var(--pale-green) 0%, var(--soft-green) 100%);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0;
}

.section-header {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-green);
}

.card-container {
    background: linear-gradient(135deg, #ffffff 0%, var(--mint-cream) 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, #1d8532 100%);
    color: var(--white-bg);
    padding: 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

.info-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(244, 247, 245, 0.9));
    border-left: 4px solid var(--primary-green);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.timeline-container {
    position: relative;
    padding-left: 2rem;
    margin: 2rem 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--primary-green);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.4rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-green);
    border: 3px solid var(--white-bg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    .content-container {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .flex-container {
        flex-direction: column;
    }
}

/* Add subtle patterns */
.pattern-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(135deg, rgba(255,255,255,.1) 25%, transparent 25%),
        linear-gradient(225deg, rgba(255,255,255,.1) 25%, transparent 25%),
        linear-gradient(45deg, rgba(255,255,255,.1) 25%, transparent 25%),
        linear-gradient(315deg, rgba(255,255,255,.1) 25%, transparent 25%);
    background-position: 10px 0, 10px 0, 0 0, 0 0;
    background-size: 20px 20px;
    background-repeat: repeat;
    z-index: -1;
    opacity: 0.5;
}

/* Add subtle animation to gradients */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient {
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

/* Page Banner Updates */
.page-banner {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 300px;
    background: url('../images/g11.jpeg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    margin-bottom: 3rem;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.65) 100%);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.banner-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 4px solid rgba(255, 255, 255, 0.3);
    animation: logoBounce 1.2s cubic-bezier(0.36, 0, 0.66, 1.54) forwards,
               logoPulse 3s ease-in-out infinite 1.2s;
    transform-origin: center bottom;
}

@keyframes logoBounce {
    0% {
        opacity: 0;
        transform: translateY(-200px) scale(0.3);
    }
    50% {
        opacity: 1;
        transform: translateY(25px) scale(1.1);
    }
    75% {
        transform: translateY(-10px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes logoPulse {
    0% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.05) translateY(-5px);
    }
    100% {
        transform: scale(1) translateY(0);
    }
}

.banner-content h1 {
    font-size: 3rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: slideInFromRight 1s ease forwards 0.5s;
    opacity: 0;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 1px;
}

.banner-content p {
    font-size: 1.3rem;
    opacity: 0;
    animation: slideInFromLeft 1s ease forwards 0.8s;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    color: #ffffff;
    font-weight: 500;
    max-width: 800px;
    line-height: 1.6;
    margin-top: 0.5rem;
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- About Section New Layout --- */
.about-section-new {
    padding: 4rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-content {
    order: 1;
}

.about-image {
    order: 2;
    position: relative;
}

.featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.featured-image:hover {
    transform: scale(1.02);
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-content {
        order: 2;
    }

    .about-image {
        order: 1;
    }

    .featured-image {
        height: 300px;
    }

    .page-banner {
        height: 250px;
    }

    .banner-content h1 {
        font-size: 2.5rem;
    }
}

/* --- Blog Article Images --- */
.article-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    transition: transform 0.3s ease;
}

.card-container:hover .article-image {
    transform: scale(1.05);
}

/* Ensure consistent card heights */
.card-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Responsive adjustments for blog images */
@media (max-width: 768px) {
    .article-image {
        height: 200px;
    }
}

@media (min-width: 1200px) {
    .article-image {
        height: 300px;
    }
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--primary-green);
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Mobile Menu Active States */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive Design Improvements */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #fff;
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav ul li {
        width: 100%;
    }

    .main-nav ul li a {
        display: block;
        padding: 10px;
        width: 100%;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        margin-top: 0;
        padding-left: 20px;
    }

    /* Header Adjustments */
    .header-logo-nav {
        padding: 10px;
    }

    .logo.original-logo {
        width: 150px;
    }

    /* Banner Content Adjustments */
    .banner-content h1 {
        font-size: 2rem;
    }

    .banner-content p {
        font-size: 1rem;
    }

    /* Grid Adjustments */
    .grid-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Section Padding Adjustments */
    .content-container {
        padding: 1rem;
    }

    /* Footer Adjustments */
    .footer-sections {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-media-buttons {
        justify-content: center;
    }

    /* Top Bar Adjustments */
    .top-bar-content {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
}

/* Overlay for Mobile Menu */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

.menu-overlay.active {
    display: block;
}
