/* ================================================================
   ECOSYSTEM PAGE STYLES
   Certificates, Press, Video Media, Expos & Partnership Network
   ================================================================ */

.ecosystem-hero-bg {
    background-color: #f8fafc;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 36px 36px;
}

.eco-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 9999px;
    background-color: rgba(239, 246, 255, 0.95);
    padding: 6px 18px;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #2563eb;
    border: 1px solid #dbeafe;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.eco-hero-title {
    font-size: 54px;
    font-weight: 900;
    line-height: 1.10;
    letter-spacing: -0.04em;
    color: #0f172a;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    text-transform: uppercase;
}
@media (max-width: 1024px) {
    .eco-hero-title {
        font-size: 40px;
        max-width: 720px;
    }
}
@media (max-width: 640px) {
    .eco-hero-title {
        font-size: 28px;
        max-width: 100%;
        line-height: 1.2;
    }
}

.eco-hero-subtitle {
    font-size: 15px;
    line-height: 1.65;
    color: #475569;
    max-width: 710px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}
@media (max-width: 640px) {
    .eco-hero-subtitle {
        font-size: 13.5px;
        max-width: 100%;
    }
}

/* Category Filter Pills */
.eco-filter-btn {
    padding: 10px 22px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.eco-filter-btn:hover {
    color: #2563eb;
    border-color: #93c5fd;
    background-color: #eff6ff;
}

.eco-filter-btn.active {
    color: #ffffff;
    background-color: #2563eb;
    border-color: #2563eb;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

/* Grid Utilities */
.eco-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 1024px) {
    .eco-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .eco-grid-3 {
        grid-template-columns: repeat(1, 1fr);
    }
}

.eco-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 1024px) {
    .eco-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .eco-grid-4 {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Certificate Cards */
.cert-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.cert-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 12px 30px -10px rgba(59, 130, 246, 0.15);
    transform: translateY(-3px);
}

.cert-stamp {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 20px;
}

/* Press Cards */
.press-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.press-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
    transform: translateY(-4px);
}

/* Video Player Card (Fixed 220px Height Container) */
.video-card {
    position: relative !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    background: #0f172a !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
    height: 220px !important;
    max-height: 220px !important;
    min-height: 220px !important;
    width: 100% !important;
    flex-shrink: 0 !important;
}

.video-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
}

.video-card:hover img {
    transform: scale(1.05) !important;
}

.play-button-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45);
    transition: background 0.3s ease;
}

.video-card:hover .play-button-overlay {
    background: rgba(15, 23, 42, 0.3);
}

.play-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.6);
    transition: transform 0.3s ease;
}

.video-card:hover .play-icon-circle {
    transform: scale(1.15);
}

/* Expo Cards */
.expo-card {
    background: #0f172a;
    color: #ffffff;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.expo-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
}

/* Partner Logo Grid Matrix (Strict SVG Dimension Control) */
.partner-logo-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 100px !important;
}

@media (max-width: 1024px) {
    .partner-logo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

.partner-logo-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 12px 18px;
    height: 100px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden !important;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    position: relative;
}

.partner-logo-box:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.12);
    transform: translateY(-2px);
}

.partner-logo-box a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.partner-logo-box img,
.partner-logo-box svg {
    max-height: 56px !important;
    max-width: 140px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    filter: contrast(1.05) brightness(0.98);
    opacity: 0.95;
}

.partner-logo-box:hover img,
.partner-logo-box:hover svg {
    transform: scale(1.06);
    opacity: 1;
    filter: contrast(1.1) brightness(1);
}

/* Modal Overlay */
.eco-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.eco-modal.active {
    opacity: 1;
    visibility: visible;
}

.eco-modal-content {
    background: #ffffff;
    border-radius: 24px;
    max-width: 800px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.eco-modal.active .eco-modal-content {
    transform: scale(1);
}

/* ================================================================
   Cinema Video Modal Styling (Elite Dark Studio Theme)
   ================================================================ */
#ecoVideoModal .eco-modal-content {
    background: #090d16 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
    border-radius: 24px !important;
    max-width: 920px !important;
    width: 100% !important;
    overflow: hidden !important;
}

#ecoVideoModal .eco-video-modal-header {
    background: linear-gradient(135deg, #090d16 0%, #0f172a 50%, #131d31 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 16px 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

#ecoVideoModal #ecoVideoModalTitle {
    color: #ffffff !important;
    font-weight: 800 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;
}

/* Premium High-Contrast Close Buttons (Never Invisible) */
.eco-modal-close-btn {
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #cbd5e1 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
}

.eco-modal-close-btn:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
    transform: scale(1.08) rotate(90deg) !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4) !important;
}

/* Light Modal Close Button (For Press & Certificate Modals) */
.eco-modal-close-btn-light {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}

.eco-modal-close-btn-light:hover {
    background: #fee2e2 !important;
    color: #ef4444 !important;
    border-color: #fca5a5 !important;
    transform: scale(1.06) rotate(90deg) !important;
}

/* External Link Button in Video Modal Header */
#ecoVideoModalExternalLink {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #f1f5f9 !important;
    transition: all 0.2s ease !important;
}

#ecoVideoModalExternalLink:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

/* Video Frame & Player Area */
#ecoVideoModal .eco-video-frame-wrap {
    background: #000000 !important;
    padding: 16px 20px 20px !important;
}

#ecoVideoModal #ecoVideoPlayerContainer {
    background: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8) !important;
}

#ecoVideoModal #ecoVideoModalDescWrap {
    background: rgba(15, 23, 42, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 16px 20px !important;
}

