/* =========================================================
   HOME FEATURED LAYOUT
========================================================= */
.home-featured {
    padding: 20px 0 20px;
    align-items: flex-start;
}

/* =========================================================
   SLIDER UTAMA
========================================================= */
.home-slider {
    position: relative;
    overflow: hidden;
}

/* CONTROL */
.home-slider .carousel-control-prev,
.home-slider .carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
}

.home-slider .carousel-control-prev {
    left: 12px;
}

.home-slider .carousel-control-next {
    right: 12px;
}

/* ITEM */
.slider-item {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
}

/* IMAGE */
.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.75);
    transition: transform 0.5s ease, filter 0.5s ease;
}

a:hover .slider-image {
    transform: scale(1.03);
    filter: brightness(0.65);
}

/* OVERLAY */
.slider-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px 0 40px 60px;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85),
        rgba(0,0,0,0.3),
        transparent
    );
}

/* TITLE */
.slider-title {
    max-width: 40%;
}

.slider-title a {
    color: #fff;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    text-decoration: none;
}

.slider-title a:hover {
    color: #fd950d;
}

/* DESC */
.slider-desc {
    max-width: 70%;
    font-size: 20px;
    font-weight: bold;
    color: rgba(255,255,255,0.9);
    margin-bottom: 12px;
}

/* META */
.slider-meta {
    display: flex;
    gap: 14px;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
}

.slider-meta span::after {
    content: "|";
    margin-left: 10px;
}

.slider-meta span:last-child::after {
    content: "";
}

/* =========================================================
   SIDEBAR
========================================================= */
.home-sidebar {
    height: 100%;
    padding-left: 20px;
    border-left: 1px solid #e5e7eb;
}

.sidebar-title {
    font-weight: 700;
    margin-bottom: 16px;
}

.sidebar-item {
    display: flex;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-thumb {
    width: 90px;
    height: 120px;
    object-fit: cover;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    border-radius: 4px;
}

a:hover .sidebar-thumb {
    transform: scale(1.05);
    filter: brightness(0.9);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.sidebar-title-item {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.sidebar-title-item a {
    color: #111;
    text-decoration: none;
}

.sidebar-title-item a:hover {
    color: #0d6efd;
}

.sidebar-date {
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
}

.sidebar-headline {
    font-size: 12px;
    color: #444;
    margin-bottom: 6px;
}

.sidebar-meta {
    display: flex;
    gap: 8px;
    font-size: 10px;
    color: #666;
}

.sidebar-meta span::after {
    content: "•";
    margin-left: 8px;
}

.sidebar-meta span:last-child::after {
    content: "";
}

/* =========================================================
   RUBRIK LAINNYA
========================================================= */
.rubrik-section {
    margin-top: 40px;
}

/* 🔥 WRAPPER: SEKARANG 5 CARD */
.rubrik-inner {
    max-width: calc((240px * 5) + (16px * 4));
}

/* HEADER */
.rubrik-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    margin-top: 50px;
}

.rubrik-title {
    font-size: 18px;
    font-weight: 700;
}

/* NAV */
.rubrik-nav {
    display: flex;
    gap: 12px;
}

/* ================= PANAH RUBRIK (INTERAKTIF) ================= */

.rubrik-btn {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;

    /* 🔥 penting agar scale tidak geser */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* efek transisi */
.rubrik-btn::before {
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* HOVER MEMBESAR */
.rubrik-btn:hover::before {
    transform: translate(-50%, -50%) rotate(45deg) scale(1.4);
    opacity: 1;
}

.rubrik-prev::before {
    content: "";
    width: 10px;
    height: 10px;
    border-left: 2px solid #1e88e5;
    border-bottom: 2px solid #1e88e5;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.rubrik-next::before {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid #fb8c00;
    border-top: 2px solid #fb8c00;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}



/* SLIDER */
.rubrik-slider-wrapper {
    overflow: hidden;
    margin-bottom: 80px;
}

.rubrik-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.rubrik-slider::-webkit-scrollbar {
    display: none;
}

/* CARD */
.rubrik-card {
    width: 240px;
    flex-shrink: 0;
}

/* LINK */
.rubrik-link {
    display: block;
    text-decoration: none;
    color: #000;
}

/* FRAME GAMBAR */
.rubrik-image {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    border-radius: 5px; /* 🔥 ROUNDED */
    background: #f2f2f2;
}

/* IMAGE */
.rubrik-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease;
}

/* OVERLAY GELAP SAAT HOVER */
.rubrik-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* ICON BUKU */
.rubrik-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.9);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #0d6efd;

    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    z-index: 2;
}

/* HOVER EFFECT */
.rubrik-link:hover .rubrik-image img {
    filter: brightness(0.75);
}

.rubrik-link:hover .rubrik-image::after {
    opacity: 1;
}

.rubrik-link:hover .rubrik-icon {
    opacity: 1;
    transform: scale(1);
}

/* ================= RUBRIK TEXT ================= */

.rubrik-text {
    margin-top: 8px;
}

/* BARIS 1 : KATEGORI | JUDUL */
.rubrik-title-line {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* KATEGORI */
.rubrik-category {
    color: #0d6efd;
    font-weight: 600;
}

/* PEMISAH | */
.rubrik-separator {
    margin: 0 4px;
    color: #999;
}

/* JUDUL */
.rubrik-title {
    color: #111;
    font-weight: 600;
}

.rubrik-title2 {
    color: #111;
    font-weight: 400;
}


/* TANGGAL */
.rubrik-date {
    margin-top: 4px;
    font-size: 12px;
    color: #888;
}

/* =========================================================
   MAJALAH GRID 4x2
========================================================= */

.majalah-grid-section {
    margin-top: 50px;
    margin-bottom: 70px;

}

.judul {
    margin-bottom: 50px;

}

/* CARD */
.majalah-grid-card {
    display: block;
    text-decoration: none;
    color: #111;
}

/* THUMB */
.majalah-grid-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #eee;
    border-radius: 6px;
}

/* IMAGE */
.majalah-grid-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease, transform 0.3s ease;
}

/* ICON BUKU (COPY STYLE RUBRIK) */
.majalah-grid-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.9);
    border-radius: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    color: #0d6efd;

    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    z-index: 2;
}

/* HOVER EFFECT */
.majalah-grid-card:hover .majalah-grid-thumb img {
    filter: brightness(0.75);
    transform: scale(1.05);
}

.majalah-grid-card:hover .majalah-grid-icon {
    opacity: 1;
    transform: scale(1);
}

/* BODY */
.majalah-grid-body {
    padding-top: 10px;
}

/* TITLE */
.majalah-grid-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 4px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CATEGORY */
.majalah-category {
    color: #0d6efd;
    font-weight: 600;
}

/* DATE */
.majalah-grid-date {
    font-size: 12px;
    color: #777;
}
