/**
 * Style untuk Berita & Artikel Side by Side - PA Jeneponto
 * Version: 1.0.0
 * Two Columns - Green Theme - Tanpa Header Utama
 */

/* ===== WRAPPER ===== */
.bas-wrapper {
    max-width: 100%;
    margin: 0 0 20px 0;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

/* ============================================================
   DUA KOLOM - GARIS TEPI HIJAU TUA
   ============================================================ */
.bas-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #ffffff;
    border: 2px solid #0a3d1f;
    border-radius: 10px;
    overflow: hidden;
}

/* ===== COLUMN ===== */
.bas-column {
    background: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bas-column-berita {
    border-right: 2px solid #0a3d1f;
}

.bas-column-artikel {
    border-left: 2px solid #0a3d1f;
}

/* ============================================================
   HEADER PER KOLOM - HIJAU TUA
   ============================================================ */
.bas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: linear-gradient(135deg, #0a3d1f 0%, #1a6e3f 50%, #0a3d1f 100%);
    border-bottom: 2px solid #2d8a4e;
}

.bas-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bas-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #ffffff;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bas-header-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bas-header-right {
    display: flex;
    align-items: center;
}

.bas-header-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================================
   LIST ITEMS
   ============================================================ */
.bas-list {
    margin: 0;
    padding: 0;
    list-style: none;
    flex: 1;
}

.bas-list-item {
    border-bottom: 1px solid #eef5ee;
    transition: background 0.2s ease;
}

.bas-list-item:last-child {
    border-bottom: none;
}

.bas-list-item:hover {
    background: #f5faf5;
}

.bas-list-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    text-decoration: none;
    color: inherit;
    gap: 12px;
    transition: all 0.2s ease;
}

.bas-list-link:hover {
    padding-left: 22px;
}

.bas-list-title {
    font-size: 13px;
    font-weight: 500;
    color: #0a2e1a;
    flex: 1;
    transition: color 0.2s ease;
    line-height: 1.4;
}

.bas-list-link:hover .bas-list-title {
    color: #1a6e3f;
}

.bas-list-date {
    font-size: 11px;
    color: #5a7a5a;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.bas-list-date i {
    font-size: 10px;
    color: #7a9a7a;
}

/* ============================================================
   FOOTER PER KOLOM
   ============================================================ */
.bas-footer {
    padding: 10px 16px;
    background: #f5faf5;
    border-top: 1px solid #dce8dc;
    text-align: right;
}

.bas-view-all {
    font-size: 12px;
    font-weight: 600;
    color: #0a3d1f;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.bas-view-all:hover {
    gap: 10px;
    color: #1a6e3f;
}

.bas-view-all i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.bas-view-all:hover i {
    transform: translateX(3px);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.bas-empty {
    text-align: center;
    padding: 25px 15px;
    color: #6a8a6a;
    font-size: 13px;
}

.bas-empty i {
    display: block;
    font-size: 28px;
    color: #8aaa8a;
    margin-bottom: 6px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .bas-columns {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .bas-columns {
        grid-template-columns: 1fr;
        border-radius: 10px;
    }

    .bas-column-berita {
        border-right: none;
        border-bottom: 2px solid #0a3d1f;
    }

    .bas-column-artikel {
        border-left: none;
    }

    .bas-header {
        padding: 10px 16px;
    }

    .bas-header-title {
        font-size: 14px;
    }

    .bas-list-link {
        padding: 8px 14px;
    }

    .bas-list-title {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .bas-columns {
        border-width: 1.5px;
        border-radius: 8px;
    }

    .bas-header {
        padding: 8px 12px;
    }

    .bas-header-title {
        font-size: 12px;
    }

    .bas-header-icon {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .bas-list-link {
        padding: 6px 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .bas-list-link:hover {
        padding-left: 16px;
    }

    .bas-list-title {
        font-size: 12px;
    }

    .bas-list-date {
        font-size: 10px;
    }

    .bas-footer {
        padding: 8px 12px;
    }

    .bas-view-all {
        font-size: 11px;
    }
}

/* ============================================================
   DARK MODE
   ============================================================ */
@media (prefers-color-scheme: dark) {
    .bas-wrapper {
        background: #1a2a1a;
    }

    .bas-columns {
        background: #1a2a1a;
        border-color: #3a6a3a;
    }

    .bas-column {
        background: #1a2a1a;
    }

    .bas-column-berita {
        border-right-color: #3a6a3a;
    }

    .bas-column-artikel {
        border-left-color: #3a6a3a;
    }

    .bas-header {
        background: linear-gradient(135deg, #0a3d1f 0%, #1a6e3f 50%, #0a3d1f 100%);
        border-bottom-color: #2d8a4e;
    }

    .bas-list-item {
        border-bottom-color: #2a3a2a;
    }

    .bas-list-item:hover {
        background: #1a3a1a;
    }

    .bas-list-title {
        color: #c8dcc8;
    }

    .bas-list-link:hover .bas-list-title {
        color: #7ac89a;
    }

    .bas-list-date {
        color: #80a080;
    }

    .bas-list-date i {
        color: #609060;
    }

    .bas-footer {
        background: #1a3a1a;
        border-top-color: #2a4a2a;
    }

    .bas-view-all {
        color: #7ac89a;
    }

    .bas-view-all:hover {
        color: #9ad8b0;
    }

    .bas-empty {
        color: #80a080;
    }

    .bas-empty i {
        color: #4a6a4a;
    }
}