/* UNICEF-inspired Color Scheme */
:root {
    --primary-blue: #1CABE2;
    --dark-blue: #00539F;
    --light-blue: #69C9FF;
    --white: #FFFFFF;
    --black: #000000;
    --gray-light: #F5F5F5;
    --gray-medium: #CCCCCC;
    --gray-dark: #333333;
    --text-color: #374151;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica Neue', sans-serif;
    color: var(--text-color);
    line-height: 1.5;
    overflow-x: hidden;
    font-size: 14px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    overflow: visible !important;
}

/* ========================================
   PROFESSIONAL HEADER & NAVIGATION
   ======================================== */

.header {
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 99999;
    overflow: visible !important;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    overflow: visible !important;
}

.logo h1 {
    color: var(--dark-blue);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 0;
}

.logo p {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 15px;
    overflow: visible !important;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    margin: 0;
    padding: 0;
    overflow: visible !important;
}

.nav-menu > li {
    position: relative;
    overflow: visible !important;
}

.nav-menu > li > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 16px;
    transition: all 0.3s ease;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--primary-blue);
}

.nav-menu > li > a i.fa-chevron-down {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.nav-menu > li:hover > a i.fa-chevron-down {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.nav-menu .dropdown {
    position: relative;
}

.nav-menu .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 220px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    z-index: 999999;
}

.nav-menu .dropdown:hover .dropdown-menu {
    display: block;
}

/* Dropdown Items */
.nav-menu .dropdown-menu li {
    margin: 0;
    padding: 0;
}

.nav-menu .dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-menu .dropdown-menu li a:hover {
    background: #f5f5f5;
    color: var(--primary-blue);
    border-left-color: var(--primary-blue);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    font-size: 20px;
    color: #fff;
    background: var(--primary-blue);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle:focus {
    outline: none;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 480px;
    overflow: hidden;
    background-color: var(--dark-blue);
}

.slider-container {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--dark-blue);
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 83, 159, 0.75) 0%, rgba(28, 171, 226, 0.65) 100%);
    z-index: 1;
}

.slide.active {
    opacity: 1;
}

/* Slide color variations */
.slide:nth-child(2)::before {
    background: linear-gradient(135deg, rgba(0, 53, 107, 0.8) 0%, rgba(28, 171, 226, 0.6) 100%);
}

.slide:nth-child(3)::before {
    background: linear-gradient(135deg, rgba(0, 114, 188, 0.75) 0%, rgba(105, 201, 255, 0.6) 100%);
}

.slide-content {
    display: flex;
    align-items: center;
    height: 100%;
    color: var(--white);
    position: relative;
    z-index: 2;
}

.slide-content h2 {
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 16px;
    max-width: 650px;
}

.slide-content p {
    font-size: 17px;
    margin-bottom: 24px;
    max-width: 550px;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: var(--gray-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.slider-controls button {
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    color: var(--white);
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.slider-controls button:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

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

.dot.active {
    background-color: var(--white);
    width: 30px;
    border-radius: 6px;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 20px;
    opacity: 0.95;
}

/* Page Content */
.page-content {
    padding: 80px 0;
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 36px;
    color: var(--dark-blue);
    margin-bottom: 50px;
    font-weight: bold;
}

/* Impact Statistics Section */
.impact-stats {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.impact-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px 24px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.stat-card:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.stat-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary-blue);
}

.stat-number {
    font-size: 44px;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1;
}

.stat-number::after {
    content: '+';
    font-size: 32px;
    margin-left: 4px;
}

.stat-card h3 {
    color: var(--white);
    font-size: 17px;
    margin-bottom: 8px;
    font-weight: 600;
}

.stat-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    line-height: 1.5;
}

/* Stats Section Title & Intro */
.stats-title {
    color: var(--white) !important;
    margin-bottom: 20px;
}

.stats-intro {
    text-align: center;
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .stats-intro {
        font-size: 14px;
        margin-bottom: 30px;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .stats-intro {
        font-size: 13px;
        margin-bottom: 25px;
    }
}

/* Partners Section */
.partners {
    padding: 60px 0;
    background-color: var(--gray-light);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.partner-card {
    background-color: var(--white);
    padding: 30px 24px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.partner-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--white);
    overflow: hidden;
}

.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    background: white;
}

.partner-card h3 {
    color: var(--dark-blue);
    font-size: 22px;
    margin-bottom: 15px;
}

.partner-card p {
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.6;
}

/* Activities Section */
.activities {
    padding: 80px 0;
    background-color: var(--white);
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.activity-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.activity-image {
    height: 250px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: var(--white);
    overflow: hidden;
}

.activity-image.has-image {
    background: none;
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.activity-content {
    padding: 25px;
}

.activity-date {
    color: var(--primary-blue);
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.activity-card h3 {
    color: var(--dark-blue);
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: bold;
}

.activity-card p {
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.read-more:hover {
    gap: 12px;
    color: var(--dark-blue);
}

/* Footer */
.footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section p {
    margin-bottom: 10px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-blue);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background-color: var(--primary-blue);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .partners-grid,
    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .slide-content h2 {
        font-size: 36px;
    }

    .slide-content p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .nav-menu {
        display: flex !important;
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: #ffffff;
        width: 100%;
        height: calc(100vh - 60px);
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.15);
        padding: 20px 0;
        gap: 0;
        z-index: 9999;
        overflow-y: auto;
        margin: 0;
        list-style: none;
    }

    .nav-menu.active {
        left: 0 !important;
    }

    .nav-menu li a {
        display: block;
        padding: 15px 20px;
        color: #333;
        text-decoration: none;
        font-size: 16px;
    }

    .nav-menu li {
        margin: 10px 0;
        width: 100%;
    }

    .mobile-menu-toggle {
        display: block !important;
        font-size: 26px;
        padding: 8px 12px;
        color: #1a5276;
        background: #f0f0f0;
        border-radius: 5px;
        min-width: 44px;
        min-height: 44px;
    }

    /* Mobile Dropdown */
    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        background-color: var(--gray-light);
        margin-top: 10px;
        border-radius: 0;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown > a i {
        transition: transform 0.3s ease;
    }

    .dropdown.active > a i {
        transform: rotate(180deg);
    }

    .page-header h1 {
        font-size: 36px;
    }

    .page-header p {
        font-size: 18px;
    }

    .partners-grid,
    .activities-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 48px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-slider {
        height: 500px;
    }

    .slide-content h2 {
        font-size: 28px;
    }

    .slide-content p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 24px;
    }

    .logo p {
        font-size: 10px;
    }

    .hero-slider {
        height: 400px;
    }

    .slide-content h2 {
        font-size: 24px;
    }

    .slide-content p {
        font-size: 14px;
    }

    .section-title {
        font-size: 28px;
    }
}

/* ============================================
   PAGE HERO SECTION
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    margin-bottom: 0;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   ALERTS & NOTIFICATIONS
   ============================================ */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ============================================
   EVENTS PAGE STYLES
   ============================================ */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.event-card {
    display: flex;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.event-date {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 25px 20px;
    text-align: center;
    min-width: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.event-date .month {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.event-date .day {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}

.event-date .year {
    font-size: 13px;
    opacity: 0.8;
}

.event-details {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-type {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
    text-transform: capitalize;
}

.event-details h3 {
    margin: 0 0 12px;
    font-size: 1.25rem;
    color: var(--dark-gray);
    line-height: 1.4;
}

.event-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.8;
}

.event-meta i {
    width: 18px;
    color: var(--primary-color);
}

.event-excerpt {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.event-footer .price {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark-gray);
}

.event-footer .price.free {
    color: #4caf50;
}

/* Past Events */
.past-events-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.past-event-item {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.past-event-item:hover {
    transform: translateX(5px);
}

.past-event-date {
    color: #666;
    min-width: 130px;
    font-weight: 500;
}

.past-event-info h4 {
    margin: 0 0 8px;
    color: var(--dark-gray);
}

.event-type-badge {
    display: inline-block;
    background: #f5f5f5;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    color: #666;
}

/* ============================================
   BLOG PAGE STYLES
   ============================================ */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.blog-main {
    min-width: 0;
}

.blog-filters {
    margin-bottom: 30px;
}

.search-form {
    display: flex;
    gap: 10px;
    max-width: 450px;
}

.search-form .form-control {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.search-form .form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}

.filter-info {
    padding: 12px 18px;
    background: #e3f2fd;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 14px;
}

.clear-filter {
    margin-left: 12px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.clear-filter:hover {
    text-decoration: underline;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.post-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-image {
    overflow: hidden;
}

.post-body {
    padding: 25px;
}

.post-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    margin-bottom: 12px;
    font-weight: 500;
}

.post-category:hover {
    opacity: 0.9;
}

.post-body h3 {
    margin: 12px 0;
    font-size: 1.2rem;
    line-height: 1.4;
}

.post-body h3 a {
    color: var(--dark-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-body h3 a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.post-date {
    color: #999;
    font-size: 13px;
}

.post-date i {
    margin-right: 5px;
}

/* Single Post */
.blog-single {
    padding-bottom: 60px;
}

.post-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 70px 0;
    margin-bottom: 50px;
}

.post-header h1 {
    font-size: 2.5rem;
    margin: 15px 0;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    opacity: 0.9;
    font-size: 15px;
}

.post-meta i {
    margin-right: 8px;
}

.post-featured-image {
    max-width: 900px;
    margin: -50px auto 50px;
}

.post-featured-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.9;
    color: #333;
}

.post-content p {
    margin-bottom: 1.5em;
}

.post-tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.tag {
    display: inline-block;
    background: #f5f5f5;
    padding: 6px 14px;
    border-radius: 20px;
    margin: 5px 5px 5px 0;
    font-size: 13px;
    color: #555;
    transition: background 0.3s ease;
}

.tag:hover {
    background: #e8e8e8;
}

.post-share {
    margin: 35px 0;
}

.post-share strong {
    margin-right: 15px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--white);
    margin-right: 10px;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.share-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.facebook {
    background: #1877f2;
}

/* Blog Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.sidebar-widget h4 {
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-color);
    font-size: 1.1rem;
    color: var(--dark-gray);
}

.category-list,
.popular-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li,
.popular-posts li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.category-list li:last-child,
.popular-posts li:last-child {
    border-bottom: none;
}

.category-list a,
.popular-posts a {
    color: #444;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-list a:hover,
.popular-posts a:hover {
    color: var(--primary-color);
}

.popular-posts small {
    display: block;
    color: #999;
    font-size: 12px;
    margin-top: 4px;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

.page-btn {
    padding: 10px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-btn:hover,
.page-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-color: var(--primary-color);
}

/* ============================================
   MODAL STYLES
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--dark-gray);
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--dark-gray);
}

.modal-content > p {
    padding: 0 25px;
    margin: 20px 0;
    color: #555;
}

.modal-content form {
    padding: 0 25px 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-gray);
}

.form-group .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.form-group .form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 25px;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 80px 30px;
    color: #666;
}

.empty-state i {
    font-size: 60px;
    margin-bottom: 25px;
    opacity: 0.4;
    color: var(--primary-color);
}

.empty-state p {
    font-size: 1.1rem;
    max-width: 400px;
    margin: 0 auto;
}

/* ============================================
   SECTION LIGHT VARIANT
   ============================================ */
.section-light {
    background-color: #f8f9fa;
}

/* ============================================
   BUTTON SIZES
   ============================================ */
.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

/* ============================================
   RESPONSIVE STYLES FOR NEW COMPONENTS
   ============================================ */
@media (max-width: 968px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .event-card {
        flex-direction: column;
    }

    .event-date {
        flex-direction: row;
        gap: 15px;
        padding: 15px 20px;
    }

    .event-date .day {
        font-size: 28px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .page-hero p {
        font-size: 1rem;
    }

    .post-header h1 {
        font-size: 1.8rem;
    }

    .post-meta {
        gap: 15px;
    }

    .post-content {
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .search-form {
        flex-direction: column;
    }

    .search-form .btn {
        width: 100%;
    }

    .past-event-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .post-header {
        padding: 50px 0;
    }

    .post-header h1 {
        font-size: 1.5rem;
    }

    .modal-content {
        margin: 10px;
        border-radius: 12px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}

/* ============================================
   COMPREHENSIVE RESPONSIVE FIXES
   All Device Sizes
   ============================================ */

/* Extra Large Screens (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Large Screens (1200px - 1399px) */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }

    .slide-content h2 {
        font-size: 34px;
        max-width: 550px;
    }

    .slide-content p {
        font-size: 16px;
        max-width: 480px;
    }
}

/* Medium Screens / Tablets Landscape (992px - 1199px) */
@media (max-width: 992px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 0 15px;
    }

    /* Header */
    .header-content {
        padding: 10px 0;
    }

    .logo h1 {
        font-size: 22px;
    }

    .logo p {
        font-size: 10px;
    }

    .nav-menu li a {
        font-size: 12px;
        padding: 5px 8px;
    }

    /* Hero Slider */
    .hero-slider {
        height: 420px;
    }

    .slide-content h2 {
        font-size: 30px;
        max-width: 500px;
    }

    .slide-content p {
        font-size: 15px;
        max-width: 420px;
    }

    .slider-controls button {
        padding: 12px 16px;
        font-size: 20px;
    }

    /* Page Header */
    .page-header {
        padding: 60px 0;
    }

    .page-header h1 {
        font-size: 38px;
    }

    .page-header p {
        font-size: 17px;
    }

    /* Sections */
    .page-content {
        padding: 60px 0;
    }

    .section-title {
        font-size: 30px;
        margin-bottom: 40px;
    }

    /* Stats */
    .impact-stats {
        padding: 60px 0;
    }

    .stat-number {
        font-size: 38px;
    }

    .stat-card h3 {
        font-size: 15px;
    }

    /* Cards */
    .activity-image {
        height: 200px;
        font-size: 60px;
    }

    .activity-card h3 {
        font-size: 18px;
    }

    .activity-card p {
        font-size: 14px;
    }

    /* Partners */
    .partners {
        padding: 50px 0;
    }

    .partner-logo {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }

    .partner-card h3 {
        font-size: 18px;
    }

    /* Footer */
    .footer {
        padding: 50px 0 20px;
    }

    .footer-section h3 {
        font-size: 20px;
    }

    .footer-section h4 {
        font-size: 16px;
    }
}

/* Tablets Portrait (768px - 991px) */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 0 15px;
    }

    /* Header & Navigation */
    .header-content {
        padding: 8px 0;
    }

    .logo h1 {
        font-size: 22px;
    }

    .logo p {
        font-size: 9px;
        display: none;
    }

    /* Mobile nav link styling */
    .nav-menu li a {
        display: block;
        padding: 12px 20px;
        font-size: 15px;
    }

    /* Mobile Dropdown */
    .nav-menu .dropdown-menu {
        position: static !important;
        display: none;
        box-shadow: none;
        background-color: #f5f5f5;
        margin-top: 0;
        border-radius: 0;
        width: 100%;
    }

    .nav-menu .dropdown.active .dropdown-menu {
        display: block !important;
    }

    .nav-menu .dropdown:hover .dropdown-menu {
        display: none !important;
    }

    .nav-menu .dropdown.active:hover .dropdown-menu {
        display: block !important;
    }

    /* Hero Slider */
    .hero-slider {
        height: 380px;
    }

    .slide-content {
        padding: 0 15px;
    }

    .slide-content h2 {
        font-size: 26px;
        max-width: 100%;
        line-height: 1.3;
    }

    .slide-content p {
        font-size: 14px;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .slider-controls {
        padding: 0 10px;
    }

    .slider-controls button {
        padding: 10px 14px;
        font-size: 18px;
    }

    .slider-dots {
        bottom: 20px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .dot.active {
        width: 24px;
    }

    /* Page Header */
    .page-header {
        padding: 50px 0;
    }

    .page-header h1 {
        font-size: 30px;
        line-height: 1.2;
    }

    .page-header p {
        font-size: 15px;
    }

    /* Sections */
    .page-content {
        padding: 40px 0;
    }

    .section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }

    /* Impact Stats */
    .impact-stats {
        padding: 50px 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-card {
        padding: 25px 20px;
    }

    .stat-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

    .stat-number {
        font-size: 40px;
    }

    .stat-card h3 {
        font-size: 16px;
    }

    .stat-card p {
        font-size: 13px;
    }

    /* Grids */
    .partners-grid,
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Activity Cards */
    .activity-image {
        height: 180px;
        font-size: 50px;
    }

    .activity-content {
        padding: 20px;
    }

    .activity-card h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .activity-card p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    /* Partners */
    .partners {
        padding: 40px 0;
    }

    .partner-card {
        padding: 25px 20px;
    }

    .partner-logo {
        width: 70px;
        height: 70px;
        font-size: 32px;
        margin-bottom: 15px;
    }

    .partner-card h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .partner-card p {
        font-size: 14px;
    }

    /* Footer */
    .footer {
        padding: 40px 0 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-section h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .footer-section h4 {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .footer-section p {
        font-size: 14px;
    }

    .footer-section ul li {
        margin-bottom: 8px;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom p {
        font-size: 13px;
    }

    /* Events */
    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .event-card {
        flex-direction: column;
    }

    .event-date {
        flex-direction: row;
        gap: 10px;
        padding: 15px;
        min-width: auto;
    }

    .event-date .day {
        font-size: 24px;
    }

    .event-details {
        padding: 20px;
    }

    .event-details h3 {
        font-size: 1.1rem;
    }

    /* Blog */
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .blog-sidebar {
        position: static;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .post-body {
        padding: 20px;
    }

    .post-body h3 {
        font-size: 1.1rem;
    }

    /* Forms */
    .form-group .form-control {
        padding: 10px 14px;
        font-size: 14px;
    }

    /* Alerts */
    .alert {
        padding: 12px 15px;
        font-size: 13px;
    }
}

/* Mobile Phones (576px - 767px) */
@media (max-width: 576px) {
    .container {
        padding: 0 12px;
    }

    /* Header */
    .header-content {
        padding: 6px 0;
    }

    .logo h1 {
        font-size: 20px;
    }

    /* Hero */
    .hero-slider {
        height: 320px;
    }

    .slide-content h2 {
        font-size: 22px;
    }

    .slide-content p {
        font-size: 13px;
    }

    .slider-controls button {
        padding: 8px 12px;
        font-size: 16px;
    }

    /* Page Header */
    .page-header {
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 26px;
    }

    .page-header p {
        font-size: 14px;
    }

    /* Sections */
    .page-content {
        padding: 30px 0;
    }

    .section-title {
        font-size: 22px;
        margin-bottom: 25px;
    }

    /* Stats */
    .stat-number {
        font-size: 36px;
    }

    .stat-card h3 {
        font-size: 15px;
    }

    /* Cards */
    .activity-image {
        height: 160px;
        font-size: 40px;
    }

    .activity-content {
        padding: 15px;
    }

    .activity-card h3 {
        font-size: 16px;
    }

    .activity-card p {
        font-size: 13px;
    }

    /* Partner Cards */
    .partner-card {
        padding: 20px 15px;
    }

    .partner-logo {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .partner-card h3 {
        font-size: 16px;
    }

    /* Footer */
    .footer {
        padding: 30px 0 15px;
    }

    .footer-section h3 {
        font-size: 18px;
    }

    .footer-section h4 {
        font-size: 15px;
    }

    .social-links a {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* Small Mobile Phones (max-width: 480px) */
@media (max-width: 480px) {
    body {
        font-size: 13px;
    }

    .container {
        padding: 0 10px;
    }

    /* Header */
    .logo h1 {
        font-size: 18px;
    }

    .mobile-menu-toggle {
        font-size: 22px;
    }

    /* Hero */
    .hero-slider {
        height: 280px;
    }

    .slide-content h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .slide-content p {
        font-size: 12px;
        margin-bottom: 15px;
        line-height: 1.5;
    }

    .btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .slider-controls {
        display: none;
    }

    .slider-dots {
        bottom: 15px;
        gap: 6px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .dot.active {
        width: 20px;
    }

    /* Page Header */
    .page-header {
        padding: 30px 0;
    }

    .page-header h1 {
        font-size: 22px;
    }

    .page-header p {
        font-size: 13px;
    }

    /* Sections */
    .page-content {
        padding: 25px 0;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    /* Stats */
    .impact-stats {
        padding: 35px 0;
    }

    .stats-grid {
        gap: 15px;
    }

    .stat-card {
        padding: 20px 15px;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
        margin-bottom: 15px;
    }

    .stat-number {
        font-size: 32px;
        margin-bottom: 8px;
    }

    .stat-number::after {
        font-size: 24px;
    }

    .stat-card h3 {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .stat-card p {
        font-size: 12px;
    }

    /* Cards */
    .activities-grid,
    .partners-grid {
        gap: 15px;
    }

    .activity-image {
        height: 140px;
        font-size: 36px;
    }

    .activity-content {
        padding: 12px;
    }

    .activity-date {
        font-size: 12px;
    }

    .activity-card h3 {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .activity-card p {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 12px;
    }

    .read-more {
        font-size: 13px;
    }

    /* Partner Cards */
    .partners {
        padding: 30px 0;
    }

    .partner-card {
        padding: 15px;
    }

    .partner-logo {
        width: 50px;
        height: 50px;
        font-size: 24px;
        margin-bottom: 12px;
    }

    .partner-card h3 {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .partner-card p {
        font-size: 12px;
        line-height: 1.5;
    }

    /* Footer */
    .footer {
        padding: 25px 0 12px;
    }

    .footer-content {
        gap: 25px;
    }

    .footer-section h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .footer-section h4 {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .footer-section p {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .footer-section ul li {
        margin-bottom: 6px;
    }

    .footer-section ul li a {
        font-size: 12px;
    }

    .social-links {
        gap: 10px;
        margin-top: 15px;
    }

    .social-links a {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .footer-bottom {
        padding-top: 15px;
    }

    .footer-bottom p {
        font-size: 11px;
    }

    /* Events */
    .event-date {
        padding: 12px;
    }

    .event-date .month {
        font-size: 12px;
    }

    .event-date .day {
        font-size: 20px;
    }

    .event-details {
        padding: 15px;
    }

    .event-details h3 {
        font-size: 1rem;
    }

    .event-meta {
        font-size: 12px;
    }

    .event-excerpt {
        font-size: 12px;
    }

    /* Blog */
    .post-image img {
        height: 160px;
    }

    .post-body {
        padding: 15px;
    }

    .post-category {
        font-size: 11px;
        padding: 3px 10px;
    }

    .post-body h3 {
        font-size: 1rem;
    }

    .post-excerpt {
        font-size: 12px;
    }

    .post-footer {
        margin-top: 15px;
        padding-top: 12px;
    }

    .post-date {
        font-size: 11px;
    }

    /* Sidebar Widgets */
    .sidebar-widget {
        padding: 20px;
        margin-bottom: 20px;
    }

    .sidebar-widget h4 {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    /* Modal */
    .modal-content {
        margin: 10px;
        border-radius: 10px;
    }

    .modal-header {
        padding: 18px;
    }

    .modal-header h2 {
        font-size: 1.2rem;
    }

    .modal-content form {
        padding: 0 18px 18px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .form-group .form-control {
        padding: 10px 12px;
        font-size: 14px;
    }

    /* Alerts */
    .alert {
        padding: 10px 12px;
        font-size: 12px;
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    /* Buttons */
    .btn-sm {
        padding: 6px 12px;
        font-size: 12px;
    }

    .btn-lg {
        padding: 12px 24px;
        font-size: 15px;
    }

    /* Pagination */
    .pagination {
        gap: 5px;
        flex-wrap: wrap;
    }

    .page-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Very Small Screens (max-width: 360px) */
@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }

    .logo h1 {
        font-size: 16px;
    }

    .hero-slider {
        height: 240px;
    }

    .slide-content h2 {
        font-size: 16px;
    }

    .slide-content p {
        font-size: 11px;
    }

    .page-header h1 {
        font-size: 20px;
    }

    .section-title {
        font-size: 18px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-card h3 {
        font-size: 13px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .mobile-menu-toggle,
    .slider-controls,
    .slider-dots,
    .social-links,
    .btn {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .page-header {
        background: none;
        color: #000;
        padding: 20px 0;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}

/* ============================================
   ADDITIONAL RESPONSIVE FORM STYLES
   ============================================ */

/* Contact Form & Join Form */
.contact-form,
.join-form {
    max-width: 100%;
}

.contact-form .form-row,
.join-form .form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-form .form-row .form-group,
.join-form .form-row .form-group {
    flex: 1;
    min-width: 200px;
}

@media (max-width: 576px) {
    .contact-form .form-row,
    .join-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .contact-form .form-row .form-group,
    .join-form .form-row .form-group {
        min-width: 100%;
    }
}

/* Two Column Layout */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .two-column-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Contact Info Cards */
.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

@media (max-width: 576px) {
    .contact-info-cards {
        grid-template-columns: 1fr;
    }
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

@media (max-width: 576px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

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

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Publications/Research Grid */
.publications-grid,
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

@media (max-width: 768px) {
    .publications-grid,
    .research-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Careers Grid */
.careers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

@media (max-width: 768px) {
    .careers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Image Responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Table Responsive */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table {
    min-width: 600px;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

@media (max-width: 768px) {
    .text-center-mobile { text-align: center !important; }
    .hide-mobile { display: none !important; }
}

@media (min-width: 769px) {
    .hide-desktop { display: none !important; }
}

/* Flexbox Utilities */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }
.gap-30 { gap: 30px; }

/* Spacing Utilities */
.mt-0 { margin-top: 0 !important; }
.mt-10 { margin-top: 10px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-30 { margin-top: 30px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-10 { margin-bottom: 10px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-30 { margin-bottom: 30px !important; }
.p-10 { padding: 10px !important; }
.p-20 { padding: 20px !important; }
.p-30 { padding: 30px !important; }

/* Width Utilities */
.w-100 { width: 100% !important; }
.w-auto { width: auto !important; }

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
    /* Increase tap target sizes on touch devices */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .nav-menu li a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .social-links a {
        min-width: 44px;
        min-height: 44px;
    }

    /* Remove hover effects on touch devices */
    .activity-card:hover,
    .partner-card:hover,
    .stat-card:hover,
    .post-card:hover,
    .event-card:hover {
        transform: none;
    }
}

/* Safe area insets for notched phones */
@supports (padding: max(0px)) {
    .header {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }

    .footer {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }

    .nav-menu.active {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
}

/* ============================================
   TEXT & CONTENT MOBILE FIXES
   ============================================ */

/* Prevent text overflow globally */
body {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6, p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Fix long text in cards */
.partner-card p,
.activity-card p,
.stat-card p,
.event-excerpt,
.post-excerpt {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
}

.testimonials-title {
    color: white !important;
}

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

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
}

.testimonial-quote {
    color: var(--primary-blue);
    font-size: 40px;
    opacity: 0.2;
    position: absolute;
    top: 20px;
    left: 20px;
}

.testimonial-text {
    color: #555;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 20px;
    padding-top: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
}

.testimonial-info h4 {
    color: var(--dark-blue);
    margin: 0;
    font-size: 16px;
}

.testimonial-info p {
    color: #888;
    margin: 0;
    font-size: 14px;
}

.testimonial-rating {
    margin-top: 15px;
    color: #ffc107;
}

/* Testimonials Mobile Fixes */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 50px 0;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 25px;
    }

    .testimonial-card {
        padding: 20px;
    }

    .testimonial-quote {
        font-size: 30px;
        top: 15px;
        left: 15px;
    }

    .testimonial-text {
        font-size: 14px;
        line-height: 1.6;
        padding-top: 20px;
        margin-bottom: 15px;
    }

    .testimonial-author {
        gap: 12px;
    }

    .testimonial-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .testimonial-info h4 {
        font-size: 14px;
    }

    .testimonial-info p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .testimonials-section {
        padding: 35px 0;
    }

    .testimonial-card {
        padding: 15px;
    }

    .testimonial-quote {
        font-size: 24px;
        top: 12px;
        left: 12px;
    }

    .testimonial-text {
        font-size: 13px;
        padding-top: 15px;
    }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .testimonial-info h4 {
        font-size: 13px;
    }

    .testimonial-info p {
        font-size: 11px;
    }

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

@media (max-width: 768px) {
    .testimonials-section {
        padding: 40px 0 !important;
    }

    .testimonials-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .testimonial-card {
        padding: 20px 15px !important;
    }

    .testimonial-card p {
        font-size: 14px !important;
        line-height: 1.6 !important;
        padding-top: 20px !important;
    }

    .testimonial-card .fa-quote-left {
        font-size: 30px !important;
        top: 15px !important;
        left: 15px !important;
    }

    .testimonial-card h4 {
        font-size: 14px !important;
    }

    /* Impact stats intro text */
    .impact-stats p[style*="max-width"] {
        max-width: 100% !important;
        font-size: 14px !important;
        padding: 0 10px;
    }

    /* Section title in impact stats */
    .impact-stats .section-title {
        font-size: 22px !important;
    }
}

@media (max-width: 480px) {
    .testimonials-section {
        padding: 30px 0 !important;
    }

    .testimonial-card {
        padding: 15px !important;
    }

    .testimonial-card p {
        font-size: 13px !important;
    }

    .testimonial-card > div:last-of-type {
        flex-direction: column;
        text-align: center;
    }

    .impact-stats p[style*="max-width"] {
        font-size: 13px !important;
        margin-bottom: 30px !important;
    }
}

/* Fix inline styles that don't respond well */
@media (max-width: 768px) {
    [style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }

    [style*="font-size: 18px"] {
        font-size: 14px !important;
    }

    [style*="padding: 80px"] {
        padding: 40px 0 !important;
    }

    [style*="padding: 30px"] {
        padding: 20px !important;
    }

    [style*="gap: 30px"] {
        gap: 15px !important;
    }

    [style*="margin-top: 40px"] {
        margin-top: 25px !important;
    }

    [style*="margin-bottom: 50px"] {
        margin-bottom: 30px !important;
    }
}

@media (max-width: 480px) {
    [style*="font-size: 18px"] {
        font-size: 13px !important;
    }

    [style*="padding: 30px"] {
        padding: 15px !important;
    }

    [style*="gap: 15px"] {
        gap: 10px !important;
    }
}

/* Fix header title in containers */
@media (max-width: 576px) {
    .container h2[style*="margin-bottom"] {
        margin-bottom: 15px !important;
    }

    /* Activity cards text */
    .activity-content h3 {
        font-size: 15px !important;
        line-height: 1.3;
    }

    .activity-content p {
        font-size: 12px !important;
        line-height: 1.5;
    }

    /* Partner cards text */
    .partner-card h3 {
        font-size: 14px !important;
    }

    .partner-card p {
        font-size: 11px !important;
        line-height: 1.5;
    }

    /* Footer text fixes */
    .footer-section p {
        font-size: 12px !important;
        line-height: 1.6;
    }

    .footer-section p i {
        width: 16px;
        margin-right: 8px;
    }
}

/* Ensure images don't overflow */
.activity-image img,
.partner-logo img,
.post-image img,
.gallery-image img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Fix button wrapping on mobile */
@media (max-width: 480px) {
    .btn {
        display: inline-block;
        width: auto;
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }

    /* Center buttons on mobile */
    [style*="text-align: center"] .btn {
        margin: 0 auto;
    }
}

/* Fix view all buttons container */
@media (max-width: 576px) {
    div[style*="text-align: center"][style*="margin-top"] {
        margin-top: 20px !important;
    }
}

/* Fix slider content text on very small screens */
@media (max-width: 400px) {
    .slide-content h2 {
        font-size: 16px !important;
        line-height: 1.3 !important;
    }

    .slide-content p {
        font-size: 11px !important;
        line-height: 1.4 !important;
    }

    .slide-content .btn {
        padding: 8px 14px !important;
        font-size: 11px !important;
    }
}

/* Fix page header on small screens */
@media (max-width: 400px) {
    .page-header {
        padding: 25px 10px !important;
    }

    .page-header h1 {
        font-size: 18px !important;
        line-height: 1.2 !important;
    }

    .page-header p {
        font-size: 12px !important;
    }
}

/* Long words breaking fix */
.container {
    overflow-x: hidden;
}

.container * {
    max-width: 100%;
}

/* Table fixes for mobile */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    table th,
    table td {
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* FAQ accordion mobile fix */
@media (max-width: 576px) {
    .faq-question {
        padding: 15px !important;
        font-size: 14px !important;
    }

    .faq-answer {
        padding: 0 15px !important;
        font-size: 13px !important;
    }

    .faq-item.active .faq-answer {
        padding: 0 15px 15px 15px !important;
    }
}

/* Contact form mobile */
@media (max-width: 576px) {
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
}

/* Fix for very long words/URLs */
a {
    word-break: break-word;
}

/* ===== About Page - Our Approach Section ===== */
.approach-section {
    margin-top: 80px;
}

.approach-section h2 {
    text-align: center;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.approach-card {
    border-left: 5px solid var(--primary-blue);
    padding: 25px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.approach-card .step-title {
    font-size: 20px;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.approach-card h4 {
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.approach-card p {
    font-size: 15px;
    line-height: 1.6;
}

@media (max-width: 1200px) {
    .approach-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .approach-section {
        margin-top: 40px;
    }

    .approach-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 25px;
    }

    .approach-card {
        padding: 20px;
    }

    .approach-card .step-title {
        font-size: 18px;
    }

    .approach-card h4 {
        font-size: 16px;
    }

    .approach-card p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .approach-card {
        padding: 15px;
    }

    .approach-card .step-title {
        font-size: 16px;
    }

    .approach-card p {
        font-size: 13px;
    }
}

/* ===== Capacity Page - Impact Section ===== */
.impact-box {
    background-color: var(--gray-light);
    padding: 60px;
    border-radius: 15px;
    margin-top: 80px;
    text-align: center;
}

.impact-box h2 {
    color: var(--dark-blue);
    margin-bottom: 30px;
}

.impact-box > p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
    max-width: 900px;
    margin: 0 auto;
}

.impact-numbers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.impact-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.impact-numbers p {
    font-size: 18px;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .impact-box {
        padding: 30px 20px;
        margin-top: 40px;
    }

    .impact-box h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .impact-box > p {
        font-size: 14px;
        line-height: 1.6;
    }

    .impact-numbers {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }

    .impact-number {
        font-size: 36px;
    }

    .impact-numbers p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .impact-box {
        padding: 25px 15px;
    }

    .impact-box > p {
        font-size: 13px;
    }

    .impact-number {
        font-size: 32px;
    }

    .impact-numbers p {
        font-size: 13px;
    }
}

/* ===== Development Page - CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    padding: 60px 0;
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 28px;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 15px;
    max-width: 600px;
    margin: 0 auto 24px;
}

.cta-section .btn {
    background-color: var(--white);
    color: var(--primary-blue);
    display: inline-block;
    padding: 12px 28px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .cta-section {
        padding: 40px 20px;
    }

    .cta-section h2 {
        font-size: 22px;
    }

    .cta-section p {
        font-size: 14px;
        padding: 0 10px;
    }
}

/* ===== Events Page - Modal Responsive ===== */
.event-modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
}

.event-modal-content h3 {
    margin-bottom: 20px;
}

.event-modal-content input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.event-modal-content label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group {
    margin-bottom: 15px;
}

@media (max-width: 480px) {
    .event-modal-content {
        padding: 20px 15px;
    }

    .event-modal-content h3 {
        font-size: 18px;
    }

    .event-modal-content input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* ===== Footer Newsletter Form ===== */
.newsletter-form {
    margin-top: 15px;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    margin-bottom: 10px;
}

.newsletter-form button {
    width: 100%;
    padding: 10px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

@media (max-width: 480px) {
    .newsletter-form input[type="email"] {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

.newsletter-msg {
    margin-top: 10px;
    display: none;
    padding: 10px;
    border-radius: 5px;
    font-size: 13px;
}

.newsletter-msg.success {
    display: block;
    background: #d4edda;
    color: #155724;
}

.newsletter-msg.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
}

/* ===== Core Values Section ===== */
.values-section {
    margin-top: 80px;
}

.values-section h2 {
    text-align: center;
}

@media (max-width: 768px) {
    .values-section {
        margin-top: 40px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .value-card {
        padding: 25px 20px;
    }
}

/* ===== Contact Page Mobile ===== */
.contact-info .social-links {
    justify-content: flex-start;
}

.map-placeholder p {
    color: var(--text-color);
    margin-top: 20px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .contact-info .social-links {
        justify-content: center;
    }

    .map-placeholder p {
        font-size: 14px;
        padding: 0 10px;
    }

    .contact-form-section,
    .contact-info-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .map-placeholder p {
        font-size: 13px;
    }
}

/* ===== General Section Spacing Mobile ===== */
@media (max-width: 768px) {
    .about-section[style*="margin-top: 80px"],
    div[style*="margin-top: 80px"] {
        margin-top: 40px !important;
    }

    [style*="padding: 60px"] {
        padding: 30px 20px !important;
    }

    [style*="grid-template-columns: repeat(4"] {
        grid-template-columns: 1fr !important;
    }

    [style*="grid-template-columns: repeat(3"] {
        grid-template-columns: 1fr !important;
    }

    [style*="font-size: 48px"] {
        font-size: 32px !important;
    }

    [style*="font-size: 20px"] {
        font-size: 16px !important;
    }

    [style*="gap: 40px"] {
        gap: 20px !important;
    }

    [style*="margin-top: 50px"] {
        margin-top: 25px !important;
    }
}
