/* New Slanted Hero Section */
.hero-section-slanted {
    position: relative;
    padding: 5rem 0;
    background: #f0f4f8;
}

.hero-section-slanted::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #0056b3, #007bff);
    transform: skewY(-4deg);
    transform-origin: top left;
    z-index: 0;
}

.hero-container-slanted {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-text-content {
    flex: 1;
    max-width: 50%;
    color: #ffffff;
}

.hero-text-content .hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #fff; /* Ensure title color is white */
}

.hero-text-content .hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-text-content .hero-cta {
    background-color: #ffffff;
    color: #007bff;
    padding: 12px 30px;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.hero-text-content .hero-cta:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.hero-image-content {
    flex: 1;
    max-width: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-content img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

/* Responsive adjustments for Slanted Hero */
@media (max-width: 992px) {
    .hero-text-content .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section-slanted {
        padding: 4rem 0;
    }

    .hero-container-slanted {
        flex-direction: column;
        text-align: center;
    }

    .hero-text-content,
    .hero-image-content {
        max-width: 100%;
    }

    .hero-image-content {
        margin-top: 2.5rem;
    }

    .hero-section-slanted::before {
        transform: skewY(-6deg);
    }
}

/* --- Global Styles --- */
body {
    font-family: 'Poppins', sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa; /* Lighter, cleaner background */
    color: #343a40; /* Softer black for text */
    line-height: 1.7;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

:root {
    --primary-color: #0056b3; /* A professional, trustworthy blue */
    --secondary-color: #495057;
    --accent-color: #fd7e14; /* A vibrant, encouraging orange for CTAs */
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --white: #ffffff;
}

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

h1, h2, h3 {
    color: #2c3e50;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

/* --- Header --- */
.site-header {
    background-color: #ffffff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1020;
    transition: box-shadow 0.3s ease-in-out, padding 0.3s ease;
    border-bottom: 1px solid transparent; /* Start with a transparent border */
}

.site-header.scrolled {
    padding: 0.75rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #e0e0e0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
}

.site-logo-img {
    max-height: 50px;
    width: auto;
    transition: max-height 0.3s ease;
}

.site-header.scrolled .site-logo-img {
    max-height: 40px;
}

.main-nav {
    display: flex;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.main-nav ul li {
    margin-left: 2px; /* Reduce spacing for a tighter look */
    position: relative; /* For active state indicator */
}

.main-nav ul li a {
    font-weight: 600;
    color: #34495e;
    text-decoration: none;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    position: relative;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li.active > a {
    background-color: rgba(0, 86, 179, 0.07);
    color: var(--primary-color);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: block; /* Keep it in the DOM for animations */
    position: absolute;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 8px;
    margin-top: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 20px;
    width: 10px;
    height: 10px;
    background-color: #fff;
    transform: rotate(45deg);
    border-top: 1px solid #e0e0e0;
    border-left: 1px solid #e0e0e0;
    border-radius: 2px 0 0 0;
}

.dropdown:hover > .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    color: #333;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
    border-radius: 0 0 8px 8px; /* Match parent radius */
}

.dropdown-content a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    padding-left: 25px;
    text-decoration: none;
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--dark-gray);
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 992px) {
    /* --- Slide-in Menu from Side --- */
    .main-nav {
        display: none; /* Hidden by default */
    }

    .mobile-nav-toggle {
        display: block; /* Show hamburger */
        z-index: 1001;
    }

    /* This is the main container for the slide-out menu */
    .main-nav.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px; /* Width of the side menu */
        background-color: #ffffff;
        box-shadow: 0 0 20px rgba(0,0,0,0.15);
        overflow-y: auto; /* Allow scrolling if content is long */
        transform: translateX(-100%);
        transition: transform 0.4s ease-in-out;
        z-index: 1000;
    }

    /* The .open class triggers the slide-in animation */
    .main-nav.active.open {
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        padding: 1rem 0;
    }

    .main-nav ul li {
        margin: 0;
        width: 100%;
    }

    .main-nav ul li a {
        padding: 0.9rem 1.5rem;
        width: 100%;
        border-radius: 0;
        border-bottom: 1px solid #f1f1f1;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .main-nav ul li:last-child a {
        border-bottom: none;
    }

    /* --- Submenu Slide-Down Functionality --- */
    .main-nav .dropdown-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease-out;
        background-color: #f8f9fa;
        padding-left: 0; /* Reset padding */
    }

    .main-nav .dropdown-content a {
        padding-left: 2.5rem; /* Indent submenu items */
        font-size: 0.9rem;
        color: #555;
    }

    /* When the parent .dropdown has .open, expand the submenu */
    .main-nav .dropdown.open > .dropdown-content {
        max-height: 500px; /* Animate to a large enough height */
    }

    .main-nav .dropdown > a > .fa-chevron-down {
        transition: transform 0.3s ease;
    }

    .main-nav .dropdown.open > a > .fa-chevron-down {
        transform: rotate(180deg);
    }
}

/*--------------------------------------------------------------
# Gallery Page
--------------------------------------------------------------*/
.gallery-section {
    padding: 60px 0;
}

.gallery-filters {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-filters .filter-btn {
    background: none;
    border: 1px solid #ddd;
    color: #555;
    padding: 8px 20px;
    margin: 5px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.gallery-filters .filter-btn:hover, 
.gallery-filters .filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block; /* Default state */
}

.gallery-item.hidden {
    display: none; /* Hide items that don't match filter */
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    text-align: center;
    padding: 20px;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item .overlay i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.gallery-item .overlay p {
    margin: 0;
    font-weight: 500;
}

.no-images {
    text-align: center;
    width: 100%;
    grid-column: 1 / -1; /* Span full width */
    padding: 40px;
    font-size: 1.1rem;
    color: #777;
}

.donate-button {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 8px 18px; /* More compact padding */
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.donate-button:hover {
    background-color: #e86a00;
    color: var(--white);
    transform: translateY(-2px);
    text-decoration: none;
}

/* --- Main Content --- */
.site-main {
    flex-grow: 1; /* Ensures the main content area expands to push footer down */
}

.page-content {
    padding: 2rem 0;
}

/* --- Homepage Sections --- */
.hero {
    background: #34495e;
    color: #fff;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 8px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #e86a00;
    color: var(--white);
    transform: translateY(-2px);
    text-decoration: none;
}

.mission, .featured-programs {
    background: #fff;
    padding: 2rem;
    margin-top: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.program-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.program-item {
    border: 1px solid #e7e7e7;
    padding: 1.5rem;
    border-radius: 8px;
    background-color: #fafafa;
}

/* --- Generic Page Header --- */
.page-header {
    background-color: #ecf0f1;
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.2rem;
    color: #2c3e50;
}

/* --- About Page --- */
.about-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.about-text {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* About Page Content Styling */
.about-text .content-container {
    text-align: justify;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #444;
}

.about-text .content-container p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.about-text .content-container h1,
.about-text .content-container h2,
.about-text .content-container h3,
.about-text .content-container h4,
.about-text .content-container h5,
.about-text .content-container h6 {
    text-align: left;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.about-text .content-container ul,
.about-text .content-container ol {
    text-align: left;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.about-text .content-container li {
    margin-bottom: 0.5rem;
    text-align: justify;
}

/* About Page Image Styles */
.about-text .content-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 1rem 0;
}

/* CKEditor Image Alignment Classes */
.about-text .content-container .image-style-align-left {
    float: left;
    margin: 0 1.5rem 1rem 0;
    max-width: 50%;
}

.about-text .content-container .image-style-align-right {
    float: right;
    margin: 0 0 1rem 1.5rem;
    max-width: 50%;
}

.about-text .content-container .image-style-align-center {
    display: block;
    margin: 1.5rem auto;
    text-align: center;
}

.about-text .content-container .image-style-block-align-left {
    display: block;
    margin: 1.5rem auto 1.5rem 0;
}

.about-text .content-container .image-style-block-align-right {
    display: block;
    margin: 1.5rem 0 1.5rem auto;
}

.about-text .content-container .image-style-side {
    float: right;
    margin: 0 0 1rem 1.5rem;
    max-width: 40%;
}

/* Text Alignment Classes from CKEditor */
.about-text .content-container .ck-align-left {
    text-align: left;
}

.about-text .content-container .ck-align-center {
    text-align: center;
}

.about-text .content-container .ck-align-right {
    text-align: right;
}

.about-text .content-container .ck-align-justify {
    text-align: justify;
}

/* Image Captions */
.about-text .content-container .image > figcaption {
    font-style: italic;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
    padding: 0 1rem;
}

.our-team {
    background: #fff;
    padding: 2rem;
    margin-top: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.team-member {
    text-align: center;
    background-color: #fafafa;
    padding: 1.5rem;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
}

.team-member h4 {
    margin-bottom: 0.5rem;
}

/* --- Programs Page --- */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.program-card {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.program-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.program-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.program-card-content h3 {
    margin-top: 0;
    font-size: 1.4rem;
    color: #333;
}

.program-card-content p {
    flex-grow: 1;
    color: #666;
    line-height: 1.6;
}

.learn-more-btn {
    display: inline-block;
    background-color: #0056b3;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
    align-self: flex-start;
}

.learn-more-btn:hover {
    background-color: #00418a;
}

.no-programs-message {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1.2rem;
    color: #777;
    padding: 3rem;
}

/* --- Single Program View --- */
.program-view-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.program-view-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.program-view {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.program-view-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.program-dates {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.program-view-image-container {
    margin-bottom: 2rem;
}

.program-view-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
}

/* --- New Homepage Modern Sections --- */

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.2rem;
    color: var(--dark-blue);
    margin-bottom: 2.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Hero Modern */
.hero-modern {
    background: linear-gradient(rgba(0, 28, 58, 0.7), rgba(0, 28, 58, 0.7)), url('../img/hero-background.jpg') no-repeat center center/cover;
    padding: 100px 0;
    color: var(--white);
    text-align: center;
}

.hero-content .hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero-content .hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 700;
}

/* Impact Section */
.impact-section {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.impact-item .impact-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.impact-item .impact-label {
    font-size: 1rem;
    color: var(--text-color);
}

/* Featured Programs Modern */
.featured-programs-modern {
    padding: 4rem 0;
}





.program-card-link {
    text-decoration: none;
}

/* E-commerce Style Program Card */
.program-card-new {
    background-color: #fff;
    border: 1px solid #e9ecef; /* Subtle border */
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.program-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08); /* More pronounced shadow on hover */
}

.program-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.program-card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* This is key for the button alignment */
}

.program-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.program-card-title a {
    text-decoration: none;
    color: var(--dark-gray);
    transition: color 0.3s ease;
}

.program-card-title a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.program-meta-new {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 1rem; /* Space between meta and button */
}

.btn-card-learn-more {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-top: auto; /* Pushes button to the bottom */
}

.btn-card-learn-more:hover {
    background-color: #00418a; /* Darker shade for hover */
    color: var(--white);
    text-decoration: none;
}

.view-all-programs-link {
    text-align: center;
    margin-top: 2.5rem;
}

.admin-form .form-actions {
    text-align: right;
    margin-top: 20px;
}

.delete-btn {
    background-color: #dc3545; /* Red for delete actions */
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    margin-left: 10px;
    vertical-align: middle;
}

.delete-btn:hover {
    background-color: #c82333;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 700;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
}

/* Latest News Section */
.latest-news-section {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

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

.news-item {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

.news-excerpt {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.program-view-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--dark-blue);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0;
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-section h2 {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section.about p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-section .contact span {
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section .contact span i {
    margin-right: 10px;
    color: var(--accent-color);
}

.footer-section.links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section.links ul li {
    margin-bottom: 0.75rem;
}

.footer-section.links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-section.links a:hover {
    color: var(--white);
    padding-left: 5px;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.program-view-content h1,
.program-view-content h2,
.program-view-content h3 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.program-view-content p {
    margin-bottom: 1.5rem;
}



.program-view-content a {
    color: #0056b3;
    text-decoration: underline;
}

.program-view-content ul,
.program-view-content ol {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.program-view-content blockquote {
    border-left: 4px solid #bdc3c7;
    padding-left: 1.5rem;
    margin-left: 0;
    font-style: italic;
    color: #7f8c8d;
}

/* --- Gallery Page --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 1rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* --- Contact Page --- */
.contact-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.submit-btn {
    display: inline-block;
    background-color: #0056b3;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #00418a;
}

.form-success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
}

.contact-info-container {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
}

.contact-details {
    list-style: none;
    padding: 0;
}

.contact-details li {
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* --- Footer --- */
.site-footer {
    background-color: #2c3e50;
    border-radius: 8px;
}

.impact-list {
    list-style: none;
    padding: 0;
}

.impact-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.impact-list li::before {
    content: '✔';
    color: #27ae60;
    position: absolute;
    left: 0;
}

/* --- Footer --- */
.site-footer {
    background: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

/*--------------------------------------------------------------
# Two-Column Login Page Styles
--------------------------------------------------------------*/
.login-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    align-items: stretch;
}

.login-form-column {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: #f9f9f9;
}

.login-card {
    max-width: 400px;
    width: 100%;
    padding: 2.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.login-card h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.login-card p {
    margin-bottom: 1.5rem;
    color: #666;
}

.login-info-column {
    width: 50%;
    background: linear-gradient(to right, #007bff, #0056b3);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.login-info-column .info-content {
    max-width: 450px;
}

.login-info-column h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.login-info-column p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Responsive Styles for Login Page */
@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
    }

    .login-form-column,
    .login-info-column {
        width: 100%;
    }

    .login-info-column {
        min-height: 300px;
        text-align: center;
    }
}

/* --- Homepage Program Slider --- */
.featured-programs-slider {
    padding: 4rem 0;
    background-color: #f8f9fa; /* A very light grey background */
}

.featured-programs-slider .section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2.25rem;
    color: var(--primary-color);
}

.program-slide-content {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    color: #fff;
}

.program-slide-content.no-programs {
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1));
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: background 0.3s ease;
}

.program-slide-content:hover .slide-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2));
}

.slide-overlay h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: #fff;
}

.slide-overlay p {
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.cta-button-small {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.cta-button-small:hover {
    background-color: #e67e22; /* A slightly darker shade of accent */
}

/* --- Program Detail Page Layout (Definitive Fix) --- */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr; /* Default to single column on small screens */
    gap: 2.5rem; /* Increase gap for better spacing */
}

.detail-main-content {
    min-width: 0; /* Prevents overflow issues in grid/flex containers */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Prevents children from stretching to full width */
}

.program-image-compact {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.detail-sidebar {
    position: sticky;
    top: 100px; /* Adjust based on sticky header height */
}

/* --- Read More / Expandable Content --- */
.expandable-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Aligns button to the left */
    width: 100%; /* Ensures the container takes up the full width of the parent */
    margin-bottom: 1.5rem; /* Creates space between this and the 'Back' button */
}


.expandable-content {
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease-out;
}

.expandable-content.collapsed {
    max-height: 300px; /* Default max-height, can be overridden by data-attribute */
}

.program-description img,
.program-description table,
.program-description iframe,
.program-description video {
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
}

.expandable-content.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to bottom, transparent, rgba(248, 249, 250, 1)); /* Fade to background color */
}

.expand-content-btn {
    width: -moz-fit-content;
    width: fit-content; /* Prevent it from expanding and overlapping */
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.expand-content-btn:hover {
    background-color: var(--accent-hover-color);
}


/* Spacing for the 'Back to Programs' button on the detail page */
.detail-main-content .btn-secondary {
    margin-top: 1.5rem;
}

/* Apply two-column layout only on larger screens */
@media (min-width: 992px) {
    .detail-layout {
        grid-template-columns: 1fr 320px; /* Wider sidebar for better balance */
    }
}


/* Splide Pagination Styles */
.splide__pagination {
    bottom: -2rem; /* Position pagination below the slider */
}

.splide__pagination__page {
    background: #ccc;
    width: 10px;
    height: 10px;
    margin: 0 5px;
}

.splide__pagination__page.is-active {
    background: var(--primary-color);
    transform: scale(1.2);
}


/* --- Our Team Page --- */
.team-member-card .team-member-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #f8f9fa;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.team-member-card .card-title {
    margin-top: 1rem;
}

/* --- Single News Article --- */
.single-article .article-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.single-article .article-content img {
    max-width: 100%;
    height: auto;
    border-radius: .25rem;
}

/* Homepage Thematic Areas */
.thematic-areas-home {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.thematic-card {
    background-color: #fff;
    border: 1px solid #eee;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thematic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.thematic-card h5 {
    margin: 0;
    color: #333;
    font-weight: 600;
}

.thematic-card a {
    text-decoration: none;
}

/* Homepage Latest News */
.latest-news-home {
    padding: 60px 0;
}

.news-card-home {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    height: 100%;
}

.news-card-home:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.news-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-body {
    padding: 20px;
}

.news-card-body h5 {
    font-weight: 700;
    color: #333;
}

.news-card-date {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 10px;
}

.read-more-link {
    font-weight: 600;
    color: var(--primary-color);
}

/* Homepage Team CTA */
.team-cta-home {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: #fff;
}

.team-cta-home .section-title {
    color: #fff;
}

.team-cta-home p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.team-cta-home .cta-button {
    background-color: #fff;
    color: var(--primary-color);
    border: 2px solid #fff;
}

.team-cta-home .cta-button:hover {
    background-color: transparent;
    color: #fff;
}

/* Partners Section */
.partners-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.partners-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
}

.partners-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    position: relative;
}

.partners-section .section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.partner-item {
    position: relative;
}

.partner-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.partner-card:hover::before {
    transform: scaleX(1);
}

.partner-logo {
    text-align: center;
    margin-bottom: 1.5rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.8);
    transition: all 0.3s ease;
}

.partner-card:hover .partner-logo img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

.partner-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.partner-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    text-align: center;
}

.partner-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: center;
    flex: 1;
}

.partner-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    margin-top: auto;
}

.partner-type {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.partner-link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.partner-link:hover {
    color: #764ba2;
    text-decoration: none;
    transform: translateX(3px);
}

.partner-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.partner-link:hover i {
    transform: translateX(2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .partners-section {
        padding: 60px 0;
    }
    
    .partners-section .section-title {
        font-size: 2rem;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .partner-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .partners-section {
        padding: 40px 0;
    }
    
    .partners-section .section-title {
        font-size: 1.75rem;
    }
    
    .partner-card {
        padding: 1.25rem;
    }
    
    .partner-logo {
        height: 60px;
    }
    
    .partner-logo img {
        max-height: 60px;
    }
}

/* Slanted Background Sections */
.section-slanted {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.section-slanted::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: skewY(-2deg);
    transform-origin: top left;
    z-index: 0;
}

.section-slanted .container {
    position: relative;
    z-index: 1;
}

/* Primary slanted background (Our Impact) */
.section-slanted-primary::before {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Light slanted background (Featured Programs) */
.section-slanted-light::before {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* Secondary slanted background (Latest News) */
.section-slanted-secondary::before {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

/* Gradient slanted background (Partners) */
.section-slanted-gradient::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Adjust text colors for gradient background */
.section-slanted-gradient .section-title,
.section-slanted-gradient .section-subtitle,
.section-slanted-gradient h2,
.section-slanted-gradient h3,
.section-slanted-gradient h4,
.section-slanted-gradient p {
    color: #ffffff !important;
}

.section-slanted-gradient .partner-name {
    color: #2c3e50 !important;
}

.section-slanted-gradient .partner-description {
    color: #6c757d !important;
}

/* Responsive adjustments for slanted sections */
@media (max-width: 768px) {
    .section-slanted {
        padding: 60px 0;
    }
    
    .section-slanted::before {
        transform: skewY(-3deg);
    }
}

@media (max-width: 576px) {
    .section-slanted {
        padding: 40px 0;
    }
    
    .section-slanted::before {
        transform: skewY(-4deg);
    }
}
