/* Initiatives Section Styles */
#initiatives-section {
    padding: 5rem 0;
    background-color: var(--white);
    position: relative;
}

/* Initiatives Carousel Container */
.initiatives-carousel-container {
    position: relative;
    overflow: hidden;
    margin: 0 auto 3rem;
    padding: 0 50px;
}

/* Initiatives Carousel */
.initiatives-carousel {
    overflow: hidden;
    padding: 1rem 0;
}

.initiatives-track {
    display: flex;
    transition: transform 0.5s ease;
}

/* Initiative Item */
.initiative-item {
    min-width: calc(33.333% - 40px);
    margin: 0 20px;
    background-color: var(--background);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.initiative-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Initiative Logo */
.initiative-logo {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.initiative-logo img {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.initiative-item:hover .initiative-logo img {
    transform: scale(1.05);
}

/* Initiative Content */
.initiative-item h3 {
    font-size: 1.4rem;
    color: var(--blue);
    margin-bottom: 1rem;
}

.initiative-item p {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Carousel Navigation Buttons */
.initiatives-carousel-container .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.initiatives-carousel-container .carousel-btn:hover {
    background-color: var(--blue);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.initiatives-prev-btn {
    left: 10px;
}

.initiatives-next-btn {
    right: 10px;
}

/* View All Button */
.initiatives-view-all {
    text-align: center;
    margin-top: 2rem;
}

.secondary-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--white);
    color: var(--blue);
    border: 2px solid var(--blue);
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.secondary-button:hover {
    background: var(--blue);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 139, 189, 0.2);
}

/* Responsive Styles */
/* Mobile Responsive Styling for Initiatives Section */

/* Base responsiveness for initiatives carousel */
@media (max-width: 1200px) {
    /* Adjust initiative items in carousel to show 2 items on medium screens */
    .initiative-item {
        min-width: calc(50% - 40px);
    }
    
    /* Adjust initiative cards in grid layout */
    .initiatives-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Adjust components grid for detail pages */
    .components-grid, 
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Adjust success stories and testimonials for tablet */
    .stories-carousel,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Adjust partner logos grid */
    .companies-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Initiative detail page adjustments */
    .initiative-detail-grid {
        grid-template-columns: 2fr 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    /* Further adjustments for smaller tablets */
    .initiative-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .initiative-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .initiative-meta {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* Tab navigation adjustments */
    .tab-container {
        overflow-x: auto;
        padding-bottom: 1rem;
        justify-content: flex-start;
    }
    
    .tab-button {
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    /* Mobile phone adjustments */
    
    /* Adjust carousel to show 1 item on small screens */
    .initiative-item {
        min-width: calc(100% - 40px);
    }
    
    /* Full width initiative cards on mobile */
    .initiatives-grid {
        grid-template-columns: 1fr;
    }
    
    /* Single column layout for components */
    .components-grid,
    .benefits-grid,
    .stories-carousel,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    /* Adjust partner logos grid */
    .companies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Initiative detail page adjustments for mobile */
    .initiative-detail-grid {
        grid-template-columns: 1fr;
    }
    
    /* Reorder sidebar to show above content on mobile */
    .initiative-sidebar {
        order: -1;
        margin-bottom: 1.5rem;
    }
    
    /* Adjust space around buttons */
    .initiative-btn,
    .cta-button {
        display: block;
        width: 100%;
        text-align: center;
    }
    
    /* Adjust hero section padding */
    .page-hero {
        padding: 80px 0 50px;
    }
    
    /* Adjust CTA button layout */
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Adjust header spacing on detail pages */
    .initiative-description h2 {
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    /* Small mobile adjustments */
    
    /* Adjust partner logos grid to single column */
    .companies-grid {
        grid-template-columns: 1fr;
    }
    
    /* Reduce padding for sidebar cards */
    .sidebar-card {
        padding: 1.2rem;
    }
    
    /* Adjust hero content */
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    /* Adjust section titles */
    .section-title {
        font-size: 1.8rem;
    }
    
    /* Adjust spacing for initiative items */
    .initiative-card-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .initiative-content {
        padding: 1.2rem 1.5rem;
    }
    
    .initiative-footer {
        padding: 1.2rem 1.5rem;
    }
    
    /* Make logo slightly smaller on mobile */
    .initiative-logo {
        height: 100px;
    }
    
    .initiative-logo img {
        max-height: 80px;
    }
    
    /* Better FAQ display on mobile */
    .faq-question h3 {
        font-size: 1rem;
        padding-right: 30px;
    }
}

/* Special adjustments for carousel navigation */
@media (max-width: 480px) {
    .initiatives-carousel-container {
        padding: 0 30px; /* Reduce padding to give more space */
    }
    
    .carousel-btn {
        width: 32px;
        height: 32px;
    }
    
    .initiatives-prev-btn {
        left: 0;
    }
    
    .initiatives-next-btn {
        right: 0;
    }
    
    /* Better touch targets for mobile */
    .carousel-btn,
    .tab-button,
    .initiative-btn {
        min-height: 44px; /* Minimum Apple recommended touch target size */
    }
}

/* Fix for tall cards in grid view */
@media (min-width: 768px) {
    .initiatives-grid {
        align-items: stretch;
    }
    
    .initiative-card {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .initiative-content {
        flex-grow: 1;
    }
}

/* Add some extra space for tap targets and prevent text from being too small */
@media (max-width: 768px) {
    .initiative-highlights li {
        margin-bottom: 0.9rem;
    }
    
    .initiative-card p,
    .initiative-highlights li,
    .faq-answer p,
    .testimonial-content p {
        font-size: 1rem; /* Ensure readable text size on mobile */
    }
    
    /* Improve form element spacing on mobile */
    input, select, textarea, button {
        margin-bottom: 1rem;
        font-size: 16px; /* Prevent iOS zoom on focus */
    }
}