/**
 * ========================================================
 * THEMA 3 : MADING (MAJALAH DINDING / SCRAPBOOK INTERAKTIF)
 * PPDB Online SMK Citra Mutiara
 * Sesuai Desain Referensi media_1794246738562_7619b357.jpg
 * ========================================================
 */

/* 1. KANVAS PAPAN MADING UTAMA */
.hero-mading-section {
    position: relative;
    background-color: #1a56db;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.12) 1.5px, transparent 1.5px),
        linear-gradient(135deg, #184ca5 0%, #1d4ed8 50%, #2563eb 100%);
    background-size: 24px 24px, 100% 100%;
    padding: 24px 0 65px;
    overflow: hidden;
    color: #0f172a;
}

/* Tekstur Papan Mading Halus (Noise / Paper Texture) */
.hero-mading-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 75%);
    pointer-events: none;
    z-index: 1;
}

/* 2. ORNAMEN SOBEKAN KERTAS DI BAGIAN BAWAH KANVAS */
.mading-bottom-rip {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 52px;
    z-index: 3;
    pointer-events: none;
    display: block;
}

/* 3. ORNAMEN DAUN TROPIS (SUDUT KIRI BAWAH) */
.mading-leaf-decor {
    position: absolute;
    bottom: -8px;
    left: -12px;
    width: 125px;
    height: 105px;
    z-index: 5;
    pointer-events: none;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

/* Ornamen Spiral Binder Notebook (Sudut Kanan Bawah) */
.mading-spiral-decor {
    position: absolute;
    bottom: 4px;
    right: 8px;
    width: 110px;
    height: 80px;
    z-index: 5;
    pointer-events: none;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.18));
}

/* 4. SHOWCASE KARTU UTAMA (KOLOM KIRI - BERITA UTAMA) */
.mading-main-card {
    position: relative;
    background: #ffffff;
    border-radius: 4px;
    padding: 12px 12px 16px;
    filter: drop-shadow(0 16px 36px rgba(9, 30, 66, 0.38));
    transform: rotate(-0.3deg);
    transition: transform 0.3s ease;
    z-index: 2;
    /* Efek Pinggir Kertas Sobek Halus */
    clip-path: polygon(
        0% 0.4%, 4% 0%, 8% 0.5%, 12% 0.1%, 16% 0.6%, 20% 0%, 24% 0.5%, 28% 0.1%, 32% 0.7%, 36% 0.2%, 40% 0.5%, 44% 0%, 48% 0.6%, 52% 0.1%, 56% 0.7%, 60% 0.2%, 64% 0.6%, 68% 0.1%, 72% 0.7%, 76% 0.2%, 80% 0.5%, 84% 0.1%, 88% 0.6%, 92% 0%, 96% 0.5%, 100% 0.2%,
        100% 98.6%, 96% 99.4%, 92% 98.7%, 88% 99.5%, 84% 98.8%, 80% 99.4%, 76% 98.7%, 72% 99.5%, 68% 98.9%, 64% 99.4%, 60% 98.7%, 56% 99.6%, 52% 98.8%, 48% 99.5%, 44% 98.9%, 40% 99.6%, 36% 98.8%, 32% 99.5%, 28% 98.7%, 24% 99.6%, 20% 98.8%, 16% 99.4%, 12% 98.7%, 8% 99.6%, 4% 98.9%, 0% 99.3%
    );
}

/* Wrapper Utama Kartu Berita (Unclipped) */
.mading-main-wrap {
    position: relative;
    z-index: 5;
}

/* Klip Kertas Binder Hitam Realistis di Tengah Atas (Unclipped) */
.mading-binder-clip {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 48px;
    z-index: 12;
    pointer-events: none;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

/* Tag Berita Utama di Atas Kertas Koran Vintage (Unclipped) */
.mading-news-vintage-scrap {
    position: absolute;
    top: -20px;
    left: -18px;
    z-index: 10;
    transform: rotate(-6deg);
    pointer-events: none;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.mading-vintage-paper {
    background: #fdfaf2;
    border: 1px solid #dcd4c0;
    padding: 8px 12px 14px 10px;
    border-radius: 2px;
    clip-path: polygon(0% 0%, 98% 2%, 100% 92%, 85% 97%, 65% 94%, 45% 98%, 20% 95%, 0% 98%);
    position: relative;
    box-shadow: inset 0 0 12px rgba(180, 160, 120, 0.2);
}

.mading-newspaper-lines {
    width: 65px;
    height: 32px;
    margin-bottom: 4px;
    background: repeating-linear-gradient(
        0deg,
        #475569 0px,
        #475569 1.5px,
        transparent 1.5px,
        transparent 5px
    );
    opacity: 0.35;
    border-radius: 1px;
}

.mading-badge-tag {
    background: #facc15;
    color: #0f172a;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 4px 12px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    letter-spacing: 0.2px;
    clip-path: polygon(0% 2%, 97% 0%, 100% 96%, 2% 100%);
}

/* Kontainer Gambar Berita Utama */
.mading-photo-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 410px;
    overflow: hidden;
    border-radius: 4px;
    background: #0f172a;
}

.mading-photo-bottom-rip {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 18px;
    z-index: 3;
    pointer-events: none;
    display: block;
}

.mading-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Lakban / Washi Tape Kuning di Sudut Kanan Bawah Foto */
.mading-washi-tape {
    position: absolute;
    bottom: 78px;
    right: -10px;
    width: 85px;
    height: 30px;
    background: #facc15;
    opacity: 0.94;
    transform: rotate(34deg);
    z-index: 6;
    pointer-events: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
    clip-path: polygon(0% 5%, 95% 0%, 100% 95%, 4% 100%);
    border-left: 3px dashed rgba(202, 138, 4, 0.5);
    border-right: 3px dashed rgba(202, 138, 4, 0.5);
}

/* Pita Keterangan Berita Bawah (Caption Bar) */
.mading-caption-bar {
    padding: 16px 8px 4px;
    background: #ffffff;
}

.mading-caption-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0a2558;
    line-height: 1.35;
    margin-bottom: 10px;
    text-decoration: none;
    display: block;
    transition: color 0.2s ease;
}

.mading-caption-title:hover {
    color: #0284c7;
}

.mading-meta-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.mading-date-tag {
    color: #334155;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mading-category-pill {
    background: #fef08a;
    color: #854d0e;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 14px;
    border-radius: 999px;
    border: 1px solid #fde047;
}

/* Dots Navigasi Slide */
.mading-dots-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mading-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #94a3b8;
    cursor: pointer;
    transition: all 0.25s ease;
}

.mading-dot.active {
    background: #facc15;
    border-color: #eab308;
    transform: scale(1.15);
    box-shadow: 0 0 8px rgba(250, 204, 21, 0.6);
}

/* 5. PAPAN ANTREAN BERITA (KOLOM KANAN) */
.mading-queue-wrap {
    position: relative;
    z-index: 5;
}

.mading-queue-card {
    position: relative;
    background: #ffffff;
    border-radius: 4px;
    padding: 22px 14px 18px;
    filter: drop-shadow(0 14px 32px rgba(9, 30, 66, 0.35));
    transform: rotate(0.5deg);
    z-index: 2;
    /* Pinggir Kertas Bawah Sobek Halus */
    clip-path: polygon(
        0% 0%, 100% 0%, 100% 97.5%, 
        96% 98.5%, 92% 97.2%, 88% 98.7%, 84% 97.5%, 80% 98.5%, 76% 97.3%, 72% 98.6%, 
        68% 97.4%, 64% 98.5%, 60% 97.2%, 56% 98.6%, 52% 97.4%, 48% 98.5%, 44% 97.3%, 
        40% 98.7%, 36% 97.4%, 32% 98.5%, 28% 97.2%, 24% 98.6%, 20% 97.4%, 16% 98.5%, 
        12% 97.3%, 8% 98.7%, 4% 97.5%, 0% 98.2%
    );
}

/* Paku Mading Merah di Sudut Kanan Atas (Unclipped) */
.mading-push-pin-red {
    position: absolute;
    top: -18px;
    right: 18px;
    width: 32px;
    height: 40px;
    z-index: 12;
    pointer-events: none;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.mading-queue-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.mading-queue-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 12px;
    cursor: pointer;
    background: #ffffff;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
}

.mading-queue-item:hover {
    background: #f8fafc;
    transform: translateX(3px);
}

/* Item Aktif Berbingkai Kuning Sesuai Gambar Referensi */
.mading-queue-item.active {
    border: 2.5px solid #facc15 !important;
    background: #ffffff !important;
    box-shadow: 0 4px 14px rgba(250, 204, 21, 0.28) !important;
}

.mading-queue-thumb {
    width: 82px;
    height: 54px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #e2e8f0;
}

.mading-queue-info {
    flex-grow: 1;
    min-width: 0;
}

.mading-queue-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mading-queue-date {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 6. ENAM STICKY NOTES / MEMO POST-IT NAVIGASI CEPAT */
.mading-sticky-notes-wrapper {
    background: #fbfbfa;
    background-image: 
        radial-gradient(#cbd5e1 0.8px, transparent 0.8px),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    background-size: 22px 22px, 100% 100%;
    padding: 32px 0 55px;
    position: relative;
    z-index: 4;
    overflow: hidden;
}

.mading-notes-bottom-rip {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 38px;
    z-index: 2;
    pointer-events: none;
    display: block;
}

.mading-sticky-notes-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.mading-sticky-note {
    position: relative;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.1));
    transition: transform 0.25s ease, filter 0.25s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.mading-sticky-note:hover {
    transform: translateY(-8px) scale(1.05) !important;
    filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.18)) !important;
    z-index: 8;
}

/* Kertas Memo Sobek Bawah (Inner) */
.mading-note-paper {
    padding: 24px 10px 18px;
    border-radius: 2px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 125px;
    /* Pinggir Kertas Bawah Sobek Halus seperti robekan kertas memo */
    clip-path: polygon(
        0% 0%, 100% 0%, 100% 93%, 
        95% 95%, 90% 92%, 85% 96%, 80% 93%, 75% 95%, 70% 92%, 65% 96%, 60% 93%, 
        55% 95%, 50% 92%, 45% 96%, 40% 93%, 35% 95%, 30% 92%, 25% 96%, 20% 93%, 
        15% 95%, 10% 92%, 5% 95%, 0% 92%
    );
}

/* Warna Memo Berselang-seling */
.note-blue .mading-note-paper {
    background: #dbeafe;
    border-top: 2px solid #bae6fd;
}
.note-yellow .mading-note-paper {
    background: #fef9c3;
    border-top: 2px solid #fde047;
}

/* Paku Pin 3D pada Setiap Sticky Note (Unclipped) */
.mading-note-pin {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 40px;
    z-index: 10;
    pointer-events: none;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.28));
}

.mading-note-icon {
    font-size: 1.85rem;
    color: #0a2558;
    margin-bottom: 8px;
    transition: transform 0.2s ease;
}

.mading-sticky-note:hover .mading-note-icon {
    transform: scale(1.15);
}

.mading-note-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0a2558;
    line-height: 1.25;
    margin: 0;
}

/* Sudut Rotasi Organik Pada 6 Memo Sesuai Gambar Referensi */
.mading-sticky-notes-grid .mading-sticky-note:nth-child(1) { transform: rotate(-1.5deg); }
.mading-sticky-notes-grid .mading-sticky-note:nth-child(2) { transform: rotate(1.8deg); }
.mading-sticky-notes-grid .mading-sticky-note:nth-child(3) { transform: rotate(-1.2deg); }
.mading-sticky-notes-grid .mading-sticky-note:nth-child(4) { transform: rotate(1.5deg); }
.mading-sticky-notes-grid .mading-sticky-note:nth-child(5) { transform: rotate(-1.6deg); }
.mading-sticky-notes-grid .mading-sticky-note:nth-child(6) { transform: rotate(1.2deg); }

/* ========================================================
   RESPONSIVITAS MOBILE & TABLET
   ======================================================== */
@media (max-width: 991.98px) {
    .mading-sticky-notes-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px 14px;
    }
    .mading-washi-tape {
        bottom: 75px;
    }
}

@media (max-width: 767.98px) {
    .hero-mading-section {
        padding: 18px 0 50px;
    }
    .mading-caption-title {
        font-size: 1.15rem;
    }
    .mading-washi-tape {
        display: none;
    }
    .mading-leaf-decor {
        width: 80px;
        height: 70px;
    }
    .mading-spiral-decor {
        width: 85px;
        height: 60px;
    }
    .mading-sticky-notes-wrapper {
        padding: 24px 0 30px;
    }
    .mading-sticky-notes-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px 8px;
        padding: 0 8px;
    }
    .mading-sticky-note {
        padding: 16px 6px 14px;
        min-height: 100px;
    }
    .mading-note-icon {
        font-size: 1.45rem;
        margin-bottom: 6px;
    }
    .mading-note-title {
        font-size: 0.8rem;
    }
}
