/* ========================================
   SUPPORTED PROJECTS SECTION STYLES
   Modern, Compact & Visually Appealing Design
   ======================================== */

.supported-projects-section {
    padding: 50px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.supported-projects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23007bff' fill-opacity='0.02'%3E%3Cpath d='M20 20v-4h-4v4h-4v4h4v4h4v-4h4v-4h-4z'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
    z-index: 0;
}

.supported-projects-section > .container {
    position: relative;
    z-index: 1;
}

/* ========================================
   SECTION HEADER (consistent with site)
   ======================================== */

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

.subsection-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subsection-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* ========================================
   FEATURED PROJECTS CAROUSEL - COMPACT
   ======================================== */

.featured-projects-container {
    margin-bottom: 2.5rem;
}

.featured-projects-carousel {
    position: relative;
}

.featured-projects-swiper {
    padding: 10px 0 40px 0;
    width: 100%;
    height: auto;
}

/* Critical Swiper Fixes */
.featured-projects-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.featured-projects-swiper .swiper-slide {
    height: auto !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Force remove borders from all carousel elements */
.featured-projects-carousel * {
    border-color: transparent !important;
}

.featured-projects-carousel img {
    border: none !important;
    outline: none !important;
}

.featured-project-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    max-height: 420px;
    display: flex;
    flex-direction: column;
}

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

/* Compact Header */
.card-header-compact {
    position: relative;
    padding: 20px 20px 15px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e9ecef;
}

.project-logo-compact {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.project-logo-compact.placeholder {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-logo-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    outline: none;
    display: block;
}

.project-logo-compact.placeholder i {
    font-size: 1.2rem;
}

.project-badge-compact {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.project-badge-compact.featured {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #212529;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

/* Compact Content */
.card-content-compact {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-meta-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.project-type-tag,
.project-location-tag {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.project-type-tag {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.project-location-tag {
    background: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #ce93d8;
}

.project-title-compact {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-description-compact {
    color: #495057;
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.support-badge-compact {
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
    border-radius: 12px;
    padding: 12px;
    margin-top: auto;
    margin-bottom: 15px;
    border-left: 3px solid #4caf50;
}

.support-info-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.support-info-compact i {
    color: #4caf50;
    font-size: 0.9rem;
}

.support-info-compact span {
    font-weight: 600;
    color: #2e7d32;
    font-size: 0.9rem;
}

.support-info-compact small {
    color: #546e7a;
    font-size: 0.8rem;
    margin-left: auto;
}


/* Compact Footer */
.card-footer-compact {
    padding: 15px 20px;
    border-top: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    min-height: 60px;
}

.btn-compact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 100px;
    justify-content: center;
}

.btn-compact.primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.btn-compact.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
    color: white;
}

.social-links-compact {
    display: flex;
    gap: 6px;
}

.social-link-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    color: white;
}

.social-link-mini.facebook { background: #1877f2; }
.social-link-mini.instagram { background: linear-gradient(45deg, #f58529, #dd2a7b); }

.social-link-mini:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* ========================================
   OTHER PROJECTS - MINI CARDS
   ======================================== */

.other-projects-container {
    margin-bottom: 2rem;
}

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

.mini-project-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    max-height: 250px;
}

.mini-project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.mini-card-header {
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e9ecef;
}

.mini-project-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.mini-project-logo.placeholder {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-project-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    outline: none;
    display: block;
}

.mini-project-logo.placeholder i {
    font-size: 1rem;
}

.mini-type-badge {
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.mini-card-content {
    padding: 15px;
    flex-grow: 1;
}

.mini-project-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mini-project-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.mini-location,
.mini-support {
    font-size: 0.75rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mini-location i,
.mini-support i {
    color: #007bff;
    font-size: 0.7rem;
}

.mini-project-description {
    color: #495057;
    line-height: 1.4;
    font-size: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.mini-card-footer {
    padding: 12px 15px;
    border-top: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mini-btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #007bff;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.mini-btn-link:hover {
    background: #0056b3;
    transform: scale(1.1);
    color: white;
}

.mini-social-links {
    display: flex;
    gap: 4px;
}

.mini-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.7rem;
    color: white;
}

.mini-social-link.facebook { background: #1877f2; }
.mini-social-link.instagram { background: linear-gradient(45deg, #f58529, #dd2a7b); }

.mini-social-link:hover {
    transform: scale(1.1);
}

/* ========================================
   NO PROJECTS STATE - COMPACT
   ======================================== */

.no-projects-container {
    text-align: center;
    padding: 60px 20px;
}

.no-projects-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-projects-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745, #20c997);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

.no-projects-content h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.no-projects-content p {
    color: #6c757d;
    line-height: 1.6;
}

/* ========================================
   CALL TO ACTION - COMPACT
   ======================================== */

.cta-container {
    margin-top: 2rem;
}

.cta-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    color: white;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.cta-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cta-text {
    flex-grow: 1;
    text-align: left;
}

.cta-text h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.cta-text p {
    margin: 0;
    opacity: 0.9;
    line-height: 1.5;
    font-size: 0.95rem;
}

.cta-action {
    flex-shrink: 0;
}

.cta-action .btn {
    background: white;
    color: #667eea;
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.cta-action .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    color: #764ba2;
}

/* ========================================
   SWIPER CUSTOMIZATIONS
   ======================================== */

.swiper-button-next,
.swiper-button-prev {
    background: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #007bff !important;
    font-weight: 900;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 16px;
    font-weight: 900;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #007bff;
    color: white !important;
    transform: scale(1.05);
}

.swiper-pagination-bullet {
    background: #007bff;
    opacity: 0.3;
    width: 10px;
    height: 10px;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 992px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 16px;
    }
    
    .cta-content {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .cta-text {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .supported-projects-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .card-header-compact {
        padding: 15px;
    }
    
    .card-content-compact {
        padding: 15px;
    }
    
    .card-footer-compact {
        padding: 12px 15px;
        min-height: 50px;
    }
    
    .btn-compact {
        padding: 8px 16px;
        font-size: 0.85rem;
        min-width: 90px;
    }
    
    .cta-content {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .section-badge {
        font-size: 0.7rem;
        padding: 6px 16px;
    }
    
    .featured-project-card {
        max-height: none;
    }
    
    .mini-project-card {
        max-height: none;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll[data-delay="100"] { transition-delay: 0.1s; }
.animate-on-scroll[data-delay="200"] { transition-delay: 0.2s; }
.animate-on-scroll[data-delay="300"] { transition-delay: 0.3s; }
.animate-on-scroll[data-delay="400"] { transition-delay: 0.4s; }

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .supported-projects-section {
        background: white;
        padding: 20px 0;
    }
    
    .featured-project-card,
    .mini-project-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
        margin-bottom: 15px;
    }
    
    .social-links-compact,
    .mini-social-links,
    .swiper-button-next,
    .swiper-button-prev,
    .swiper-pagination {
        display: none;
    }
    
    .cta-container {
        display: none;
    }
}

/* ========================================
   SWIPER NAVIGATION AND PAGINATION FIXES
   ======================================== */

/* Navigation Buttons */
.projects-next,
.projects-prev {
    color: #007bff !important;
    background: white;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: none !important;
}

.projects-next::after,
.projects-prev::after {
    font-size: 16px !important;
    font-weight: bold;
}

/* Pagination */
.projects-pagination {
    position: relative !important;
    bottom: 0 !important;
    margin-top: 20px;
}

.projects-pagination .swiper-pagination-bullet {
    background: #007bff !important;
    opacity: 0.3;
    border: none !important;
}

.projects-pagination .swiper-pagination-bullet-active {
    opacity: 1 !important;
}


/* DEBUG: Force card visibility */
.featured-project-card {
    background: white !important;
    position: relative !important;
    z-index: 1 !important;
    opacity: 1 !important;
    visibility: visible !important;
    min-height: 300px !important;
}

/* Ensure card content is visible */
.card-header-compact,
.card-content-compact,
.card-footer-compact {
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Debug: Make placeholders more visible */
.project-logo-compact.placeholder {
    background: #007bff !important;
    min-height: 60px !important;
    min-width: 60px !important;
}
