/* =========================
   EKOSISTEM PAGE STYLES
========================= */

/* Hero */
.ekosistem-hero {
    padding: 190px 60px 60px;
    text-align: center;
}

.ekosistem-hero h1 {
    color: #000000;
    font-size: 48px;
    margin-bottom: 15px;
}

.ekosistem-hero p {
    color: rgba(0, 0, 0, 0.8);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Layout */
.ekosistem-section {
    padding: 60px;
    background: #fdf8f3;
}

.ekosistem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card Styles */
.ekosistem-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid #000;
    box-shadow: 8px 8px 0 #000;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.ekosistem-card:hover {
    transform: scale(1) translate(-4px, -4px);
    box-shadow: 12px 12px 0 #000;
    z-index: 10;
    background: #d52c2c;
}

/* Hover state - change all text to white */
.ekosistem-card:hover .ekosistem-card-content {
    background: #d52c2c;
    color: #fff;
}

.ekosistem-card:hover .ekosistem-card-content h3 {
    color: #fff;
}

.ekosistem-card:hover .ekosistem-card-content p {
    color: #fff;
}

.ekosistem-card:hover .ekosistem-card-meta {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.ekosistem-card:hover .ekosistem-card-meta i {
    color: #fff;
}

.ekosistem-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.ekosistem-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ekosistem-card:hover .ekosistem-card-image img {
    transform: scale(1.1);
}

.ekosistem-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 64px;
}

.ekosistem-card-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    right: auto;
    padding: 0;
    background: transparent;
}

.ekosistem-tagline {
    display: inline-block;
    background: #d52c2c;
    color: #fff;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
}

.ekosistem-card-content {
    padding: 25px;
    border-top: 3px solid #000;
    transition: all 0.3s ease;
}

.ekosistem-card-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #1a1a2e;
    transition: color 0.3s ease;
}

.ekosistem-card-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 80px;
    transition: color 0.3s ease;
}

/* Meta Date */
.ekosistem-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.ekosistem-card-meta i {
    color: #666;
    transition: color 0.3s ease;
}

.ekosistem-card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ekosistem-card-actions .btn-outline {
    flex: 1;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border: 3px solid #000;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    border-radius: 8px;
    background: #d52c2c;
    transition: all 0.2s ease;
    box-shadow: 4px 4px 0 #000;
}

.ekosistem-card-actions .btn-outline:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #000;
}

.ekosistem-card-actions .btn-outline:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #000;
}

/* When card is hovered, buttons become black with white text */
.ekosistem-card:hover .ekosistem-card-actions .btn-outline {
    background: #000;
    color: #fff;
}

.ekosistem-card:hover .ekosistem-card-actions .btn-outline:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #fff;
}

.ekosistem-card:hover .ekosistem-card-actions .btn-outline:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #fff;
}

.ekosistem-card-actions .btn-outline i {
    font-size: 16px;
}

.ekosistem-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.ekosistem-social:hover {
    transform: scale(1.1);
}

/* When card is hovered, Instagram button becomes black */
.ekosistem-card:hover .ekosistem-social {
    background: #000;
}

/* =========================
   DETAIL PAGE STYLES
========================= */

.ekosistem-hero-detail {
    padding: 150px 60px 60px 60px;
}

.ekosistem-detail-tagline {
    display: inline-block;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 15px;
}

.ekosistem-detail-title {
    color: #000000;
    font-size: 42px;
    font-weight: 700;
}

.ekosistem-detail-section {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    padding: 60px;
    background: #fdf8f3;
    max-width: 1200px;
    margin: 0 auto;
}

.ekosistem-article {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.ekosistem-detail-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.ekosistem-detail-placeholder {
    width: 100%;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #fff;
}

.ekosistem-detail-placeholder i {
    font-size: 64px;
}

.ekosistem-detail-placeholder span {
    font-size: 24px;
    font-weight: 600;
}

.ekosistem-detail-body {
    padding: 40px;
}

.ekosistem-description {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
}

.ekosistem-social-links {
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.ekosistem-social-links h4 {
    margin-bottom: 15px;
    font-size: 16px;
    color: #1a1a2e;
}

.ekosistem-instagram-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ekosistem-instagram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 104, 60, 0.4);
}

.ekosistem-footer {
    padding: 30px 40px;
    border-top: 1px solid #eee;
}

.ekosistem-footer .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid #000;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    border-radius: 8px;
    background: #d52c2c;
    transition: all 0.15s ease;
}

.ekosistem-footer .btn-outline:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 4px 4px 0 #ffffff;
    background: #000;
}

.ekosistem-footer .btn-outline:active {
    transform: translateY(1px);
    box-shadow: 1px 1px 0 #ffffff;
}

/* Sidebar - Other Ekosistem */
.ekosistem-others {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: fit-content;
}

.ekosistem-others h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #1a1a2e;
}

.ekosistem-others-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ekosistem-other-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.ekosistem-other-item:hover {
    background: #1a1a2e;
    color: #fff;
}

.ekosistem-other-item:hover small {
    color: rgba(255, 255, 255, 0.7) !important;
}

.ekosistem-other-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .ekosistem-hero {
        padding: 60px 20px;
    }

    .ekosistem-hero h1 {
        font-size: 32px;
    }

    .ekosistem-section {
        padding: 40px 20px;
    }

    .ekosistem-detail-section {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .ekosistem-detail-title {
        font-size: 28px;
    }

    .ekosistem-detail-body {
        padding: 25px;
    }

    .ekosistem-card-actions {
        flex-direction: column;
    }

    .ekosistem-card-actions .btn-outline {
        width: 100%;
    }

    .ekosistem-social {
        width: 100%;
        height: 44px;
        border-radius: 8px;
    }

    .ekosistem-hero-detail {
        padding: 120px 20px 40px 20px;
    }
}