/* Tambahan Root Variables */
:root {
    --bg-section: #d0e0e3;
    --text-title: #003366;
    --text-muted: #666;
    --btn-primary: #0d6efd;
    --btn-hover: #0a58ca;
    --card-bg: #ffffff;
    --card-border: #ddd;
    --shadow-default: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Section Sosial Media */
.sosmed-section {
    background-color: var(--bg-section);
    padding: 80px 24px;
}

.sosmed-section .section-title {
    font-size: 2.8rem; /* atau 3rem kalau ingin lebih mencolok */
    font-weight: 800; /* dari 700 ke 800 */
    color: var(--text-title);
    text-align: center;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px; /* bisa dikurangi untuk tampilan lebih padat */
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-title);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--btn-primary);
    padding-left: 12px;
    display: inline-block;
}
/* Untuk grup tiap platform */
.sosmed-section .mb-5 {
    margin-bottom: 60px !important;
}

/* Grid Layout */
.sosmed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

/* Card */
.sosmed-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-default);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.sosmed-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

/* Media Container */
.sosmed-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.sosmed-card-video {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 20px;
}

.sosmed-card-image img,
.sosmed-card-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}

/* YouTube Overlay */
.sosmed-card[data-platform="youtube"] .sosmed-card-image::after {
    content: "▶";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    display: none;
}

/* Duration (optional future use) */
.sosmed-card[data-platform="youtube"] .sosmed-card-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* No Data Text */
.sosmed-section .text-center {
    text-align: center;
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 30px;
}

/* Decorative Element */
.sosmed-deco {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    opacity: 0.3;
}

.sosmed-deco img {
    max-width: 300px;
    height: auto;
    animation: float 6s ease-in-out infinite;
}

/* Float Animation */
@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .sosmed-section .section-title {
        font-size: 2rem;
    }

    .sosmed-section .section-subtitle {
        font-size: 1rem;
    }

    .sosmed-card-image {
        height: 180px;
    }

    .sosmed-deco img {
        max-width: 200px;
    }
}
