style.css

/* =================================================================
   MASTER STYLESHEET FINAL UNTUK URBANFEED.ID
   Versi Bersih, Stabil, dan Lengkap
   ================================================================= */

/* -----------------------------------------------------------------
 * 1. PENGATURAN DASAR & TATA LETAK
 * ----------------------------------------------------------------- */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f4;
}
* {
    box-sizing: border-box;
}
.wrapper {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
}
.boxed.active {
    overflow: visible !important; /* Perbaikan utama untuk sticky */
}
.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.main-page.left {
    flex: 1;
    min-width: 0;
    width: 100%;
}
.main-sidebar.right {
    width: 300px;
    flex-shrink: 0;
}

/* -----------------------------------------------------------------
 * 2. KOMPONEN UTAMA (WADAH & JUDUL)
 * ----------------------------------------------------------------- */

.c-section-block {
    margin-bottom: 25px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
}
.c-section-block__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}
.c-section-block__title {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
}
.c-section-block__index-link {
    font-size: 14px;
    text-decoration: none;
    color: #007bff;
}
.c-section-block__content {
    padding: 15px;
}

.c-section-modern {
    background: transparent;
    border: none;
    margin-bottom: 30px;
}
.c-section-modern .c-section-block__header {
    background: transparent;
    border-bottom: none;
    padding: 0 10px;
    margin-bottom: -20px;
    position: relative;
    z-index: 2;
}
.c-section-modern .c-section-block__title {
    background: #2A284D !important;
    color: #F2FF00 !important;
    font-size: 16px;
    padding: 8px 15px;
    border-radius: 5px;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.c-section-modern .c-section-block__index-link {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: bold;
    color: #555;
}
.c-section-modern .c-section-block__content {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 15px;
    padding-top: 35px;
    position: relative;
    z-index: 1;
}

/* -----------------------------------------------------------------
 * 3. KOMPONEN HEADER & NAVIGASI
 * ----------------------------------------------------------------- */

.c-main-header__top-bar {
    background-color: #f5f5f5;
    border-bottom: 1px solid #e5e5e5;
    padding: 8px 0;
    font-size: 12px;
    color: #666;
}
.c-main-header__main-area {
    background-color: #fff;
    padding: 20px 0;
}
.c-main-header__main-area .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.c-main-header__logo img {
    max-height: 50px;
    display: block;
}
.c-main-header__search {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 25px;
    overflow: hidden;
}
.c-main-header__search .search-input {
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
    min-width: 250px;
}
.c-main-header__search .search-button {
    border: none;
    background-color: #2A284D;
    color: #fff;
    padding: 0 15px;
    cursor: pointer;
    font-size: 14px;
}
.c-main-menu {
    background: linear-gradient(to right, #2A284D, #4F80E8);
    transition: all .3s ease;
}
.c-main-menu .wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.c-sticky-logo {
    display: none;
    margin-right: 20px;
    opacity: 0;
    transition: opacity .3s ease;
}
.c-sticky-logo img {
    height: 30px;
    display: block;
}
.c-mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}
.the-menu-wrapper {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}
.the-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.the-menu > li {
    position: relative;
}
.the-menu > li > a {
    display: block;
    padding: 15px 20px;
    color: #F2FF00;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    transition: background-color .3s ease;
}
.the-menu > li:hover > a {
    background-color: rgba(255, 255, 255, .1);
}
.the-menu .home-icon {
    background: url(https://urbanfeed.id/asset/images/home.png) no-repeat center !important;
    padding: 15px !important;
    width: 34px !important;
    font-size: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background-color: transparent !important;
}
.the-menu .home-icon:hover {
    background-color: #f0f0f0 !important;
    transform: none !important;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
    min-width: 200px;
    z-index: 101;
}
.has-dropdown:hover .dropdown-menu {
    display: block;
}
.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    text-transform: none;
}
.dropdown-menu li a:hover {
    background-color: #f5f5f5;
    color: #2A284D;
}
.c-secondary-menu {
    background-color: #f9f9f9;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.c-secondary-menu ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.c-secondary-menu ul li a {
    text-decoration: none;
    font-size: 13px;
    color: #555;
}

/* --- Kondisi "Sticky" (position:fixed) --- */
body.is-sticky .c-main-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: #fff !important;
    border-bottom: 1px solid #f0f0f0;
    box-shadow: 0 2px 5px rgba(0,0,0,.05);
}
body.is-sticky .c-sticky-logo {
    display: block;
    opacity: 1;
}
body.is-sticky .the-menu > li > a {
    color: #2A284D !important;
}
body.is-sticky .the-menu > li:hover > a {
    background-color: #f5f5f5;
}
body.is-sticky .the-menu > li > a.active {
    background-color: #F2FF00 !important;
    color: #2A284D !important;
}
body.is-sticky .c-mobile-menu-toggle {
    color: #2A284D !important;
}

/* -----------------------------------------------------------------
 * 4. SLIDER HEADLINE
 * ----------------------------------------------------------------- */

.headline-slider-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}
.slider-item {
    position: relative;
}
.slider-image {
    width: 100%;
    height: 400px;
    object-fit: cover !important;
    display: block;
    background-color: #e3e3e3;
}
.slider-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: #fff;
    overflow: hidden;
}
.slider-info-content {
    transform: translateY(110%);
    transition: transform 0.5s ease;
}
.tns-slide-active .slider-info-content {
    transform: translateY(0);
}
.slider-category {
    background: #F2FF00;
    color: #2A284D;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    display: inline-block;
}
.slider-title {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    margin: 10px 0;
    line-height: 1.3;
}
.slider-link { 
    text-decoration: none; 
    color: #fff; 
}
.slider-link:hover .slider-title { 
    text-decoration: underline; 
}
.slider-meta {
    font-size: 13px;
    opacity: 0.9;
}
.slider-date::before {
    content: '•';
    margin: 0 8px;
}
.slider-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 16px;
    cursor: pointer;
    opacity: 1;
    transition: background 0.3s ease;
}
.slider-controls button:hover {
    background: rgba(0, 0, 0, 0.7);
}
.slider-controls .prev {
    left: 15px;
}
.slider-controls .next {
    right: 15px;
}

/* -----------------------------------------------------------------
 * 5. KONTEN UTAMA & HALAMAN ARSIP
 * ----------------------------------------------------------------- */

.c-news-grid {
    display: flex;
    flex-direction: column;
}
.c-news-list-item {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}
.c-news-grid .c-news-list-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.c-news-list-item:nth-child(1) { animation-delay: 0.1s; }
.c-news-list-item:nth-child(2) { animation-delay: 0.2s; }
.c-news-list-item:nth-child(3) { animation-delay: 0.3s; }
.c-news-list-item:nth-child(4) { animation-delay: 0.4s; }
.c-news-list-item:nth-child(5) { animation-delay: 0.5s; }
.c-news-list-item__image-wrapper {
    flex-shrink: 0;
    width: 160px !important;
}
.c-news-list-item__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    transition: transform 0.3s ease;
}
.c-news-list-item:hover .c-news-list-item__image {
    transform: scale(1.05);
}
.c-news-list-item__content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.c-news-list-item__category {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #F2FF00;
    color: #2A284D;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    z-index: 2;
}
.c-news-list-item__image-wrapper > a {
    position: relative;
    display: block;
}
.c-news-list-item__title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;
    margin: 0;
}
.c-news-list-item__excerpt {
    font-size: 15px;
    color: #666;
    margin: 10px 0;
    line-height: 1.6;
}
.c-news-list-item__meta-bottom {
    margin-top: auto;
    font-size: 12px;
    color: #888;
}
.c-news-list-item__author {
    font-weight: 500;
    color: #555;
}
.c-news-list-item__date::before {
    content: '•';
    margin: 0 8px;
}
.c-video-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
.c-video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}
.c-video-card__thumbnail-link {
    display: block;
    position: relative;
}
.c-video-card__thumbnail-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background-color: #e3e3e3;
}
.c-video-card__play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0,0,0,0.6);
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.c-video-card__play-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    border-left: 15px solid #fff;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}
.c-video-card:hover .c-video-card__play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: rgba(42, 40, 77, 0.9);
}
.c-video-card__content {
    padding: 15px;
}
.c-video-card__title {
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
}
.c-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
.c-category-card {
    position: relative;
    display: block;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
}
.c-category-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.c-category-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent 60%);
    z-index: 1;
    transition: background 0.3s ease;
}
.c-category-card__name {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    z-index: 2;
    transition: color 0.3s ease;
}
.c-category-card:hover .c-category-card__image {
    transform: scale(1.1);
}
.c-category-card:hover .c-category-card__overlay {
    background: linear-gradient(to top, rgba(42,40,77,0.8), transparent 60%);
}
.c-category-card:hover .c-category-card__name {
    color: #F2FF00;
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin-top: 40px;
    margin-bottom: 20px;
}
.pagination a,
.pagination strong {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}
.pagination a {
    background-color: #ffffff;
    color: #333;
}
.pagination a:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
    color: #000;
}
.pagination strong {
    background-color: #2A284D;
    color: #ffffff;
    border-color: #2A284D;
}
.c-section-editorial .c-section-block__title {
    background: linear-gradient(to right, #2A284D, #4F80E8) !important;
    color: #F2FF00 !important;
    display: block !important;
    width: 100%;
    padding: 12px 15px !important;
    border-radius: 8px 8px 0 0 !important;
    box-shadow: none !important;
}
.c-section-editorial .c-section-block__header {
    padding: 0 !important;
    margin-bottom: 0 !important;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}
.c-section-editorial .c-section-block__content {
    margin-top: -1px;
    padding-top: 25px !important;
    border-radius: 0 0 8px 8px !important;
}

.c-category-header {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.c-category-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    margin: 0;
    font-weight: 400;
}
.c-category-header h1 strong {
    font-weight: 600;
    color: #2A284D;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* -----------------------------------------------------------------
 * 6. HALAMAN DETAIL BERITA
 * ----------------------------------------------------------------- */

.article-detail-wrapper{background-color:#fff;padding:20px;border-radius:8px;box-shadow:0 2px 10px rgba(0,0,0,.05)}
.c-article-header{border-bottom:1px solid #f0f0f0;margin-bottom:25px;padding-bottom:25px}
.c-article-category a{background-color:#F2FF00;color:#2A284D;padding:5px 12px;border-radius:5px;font-size:12px;font-weight:700;text-transform:uppercase;text-decoration:none;display:inline-block;margin-bottom:15px}
.c-article-title{font-family:'Poppins',sans-serif;font-size:36px;line-height:1.3;color:#222;margin:0 0 20px}
.c-article-meta{display:flex;align-items:center;gap:20px;font-size:14px;color:#777}
.c-article-author{display:flex;align-items:center;gap:10px}
.c-article-author img{width:40px;height:40px;border-radius:50%;object-fit:cover}
.c-article-meta i{margin-right:5px}
.c-article-figure{margin:0 0 25px}
.c-article-image{width:100%;height:auto;border-radius:8px}
.c-article-caption{font-size:13px;color:#888;text-align:center;margin-top:10px;font-style:italic}
.c-article-layout{display:flex;gap:20px}
.c-article-share{display:flex;flex-direction:column;gap:10px;position:sticky;top:100px;align-self:flex-start}
.c-article-share a{width:40px;height:40px;display:flex;justify-content:center;align-items:center;border:1px solid #ddd;border-radius:50%;color:#555;font-size:16px;text-decoration:none}
.c-article-share a:hover{background-color:#f0f0f0;color:#000}
.c-article-body{flex:1;min-width:0;font-size:17px;line-height:1.8;color:#333}
.c-article-body p,.c-article-body ul,.c-article-body ol{margin-bottom:1.5em}
.c-article-body h2,.c-article-body h3{font-family:'Poppins',sans-serif;margin-top:2em;margin-bottom:1em}
.c-article-tags{margin-top:30px;padding-top:20px;border-top:1px solid #f0f0f0;display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.c-article-tags a{background:#f0f0f0;color:#555;padding:5px 12px;border-radius:5px;font-size:13px;text-decoration:none}
.c-related-posts{margin-top:40px}
.c-related-title{font-family:'Poppins',sans-serif;font-size:22px;border-bottom:2px solid #f0f0f0;padding-bottom:10px;margin-bottom:20px}
.c-related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.c-related-item a{text-decoration:none;color:#333}
.c-related-item img{width:100%;height:150px;object-fit:cover;border-radius:6px;margin-bottom:10px}
.c-related-item h4{font-size:15px;line-height:1.4;font-weight:600;margin:0}
.c-post-navigation{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:40px}
.c-nav-item{position:relative;display:block;padding:30px;border-radius:8px;background-size:cover;background-position:center;color:#fff;text-decoration:none;min-height:150px;display:flex;flex-direction:column;justify-content:flex-end}
.c-nav-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:linear-gradient(to top,rgba(0,0,0,.8),transparent);border-radius:8px}
.c-nav-item span,.c-nav-item h4{position:relative;z-index:2}
.c-nav-item span{font-size:13px;font-weight:700}
.c-nav-item h4{font-size:18px;margin:5px 0 0}
.c-nav-item--next{text-align:right}
.c-comment-section{margin-top:40px}
.c-comment-list{margin-bottom:40px}
.c-comment-item{display:flex;gap:15px;margin-bottom:20px}
.c-comment-avatar{width:60px;height:60px;border-radius:50%}
.c-comment-meta{margin-bottom:5px}
.c-comment-meta span{font-size:12px;color:#888;margin-left:10px}
.c-comment-content p{margin:0;font-size:15px;line-height:1.6}
.c-comment-form h4{font-family:'Poppins',sans-serif;font-size:20px}
.c-form-group{margin-bottom:15px}
.c-form-group label{display:block;font-weight:700;margin-bottom:5px}
.c-form-group input,.c-form-group textarea{width:100%;padding:10px;border:1px solid #ddd;border-radius:5px}
.c-comment-form button{background:#2A284D;color:#fff;border:none;padding:12px 25px;border-radius:5px;font-weight:700;cursor:pointer}

/* -----------------------------------------------------------------
 * 7. SIDEBAR & FOOTER
 * ----------------------------------------------------------------- */

.widget{background-color:#fff;padding:20px;border-radius:8px;margin-bottom:20px;box-shadow:0 2px 10px rgba(0,0,0,.05)}
.widget h3{font-family:'Poppins',sans-serif;font-size:18px;margin-top:0;padding-bottom:10px;border-bottom:2px solid #f0f0f0;margin-bottom:15px}
.widget-articles ul,.widget-comments ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:15px}
.widget-articles li,.widget-comments li{display:flex;align-items:flex-start;gap:15px;padding:0;margin:0;border-bottom:none;transition:background-color .3s ease;border-radius:6px}
.widget-articles li:hover{background-color:#f9f9f9}
.widget-articles .article-photo img,.widget-comments .comment-photo img{width:70px!important;height:70px!important;object-fit:cover!important;border-radius:6px!important;display:block!important}
.widget-articles .article-content{flex:1}
.widget-articles h4{margin:0 0 5px!important;font-size:15px!important;font-weight:600!important;line-height:1.3!important}
.widget-articles h4 a{color:#222!important;text-decoration:none!important}
.widget-articles h4 a:hover{color:#2A284D!important}
.widget-articles .meta,.widget-articles .meta a{font-size:12px!important;color:#888!important;text-decoration:none!important}
.tag-cloud a.badge{display:inline-block;padding:6px 14px!important;margin:0!important;border-radius:20px!important;background-color:#2A284D!important;color:#F2FF00!important;font-size:13px!important;font-weight:500;text-decoration:none!important;transition:all .3s ease;border:none!important}
.tag-cloud a.badge:hover{background-color:#F2FF00!important;color:#2A284D!important;transform:translateY(-2px);box-shadow:0 4px 8px rgba(0,0,0,.1)}
.c-pre-footer{background-color:#F2FF00;color:#2A284D;padding:40px 0;text-align:center}
.c-pre-footer h3{font-family:'Poppins',sans-serif;font-size:24px;margin:0 0 10px}
.c-pre-footer p{max-width:600px;margin:0 auto 25px}
.c-cta-button{display:inline-block;padding:12px 30px;border-radius:30px;background-color:#2A284D;color:#F2FF00;font-size:16px;font-weight:700;text-decoration:none;transition:all .3s ease;box-shadow:0 4px 10px rgba(0,0,0,.1)}
.c-cta-button:hover{background-color:#434078;color:#fff;transform:translateY(-3px);box-shadow:0 6px 15px rgba(0,0,0,.2)}
footer{background-color:#2A284D;color:#ccc;padding:40px 0;margin-top:30px}
.c-main-footer .wrapper{display:grid;grid-template-columns:2fr 1fr 1fr 1.5fr;gap:30px}
.c-footer-logo{max-width:150px;margin-bottom:15px}
.c-footer-about{font-size:14px;line-height:1.7}
.c-footer-title{font-family:'Poppins',sans-serif;color:#fff;font-size:18px;margin:0 0 15px}
.c-footer-links{list-style:none;padding:0;margin:0}
.c-footer-links li{margin-bottom:10px}
.c-footer-links a{color:#ccc;text-decoration:none;transition:color .3s ease}
.c-footer-links a:hover{color:#fff;text-decoration:underline}
.c-footer-social{display:flex;flex-wrap:wrap;gap:15px}
.c-footer-social a{color:#2A284D;background:#fff;width:40px;height:40px;border-radius:50%;display:flex;justify-content:center;align-items:center;font-size:18px;text-decoration:none;transition:all .3s ease}
.c-footer-social a:hover{background:#F2FF00;transform:translateY(-3px)}
.c-sub-footer{background-color:#1c1a36;color:#aaa;padding:15px 0;font-size:13px;text-align:center}
.c-sub-footer p{margin:0}

/* -----------------------------------------------------------------
 * 11. PENGATURAN RESPONSIVE & MOBILE
 * ----------------------------------------------------------------- */

@media (max-width:991px){
    .main-content{display:block!important}
    .main-page.left,.content-block.main.right{float:none!important;width:100%!important;padding:0!important;margin:0!important}
    .main-sidebar.right.hidden-xs{display:block!important;width:100%!important;margin-top:30px;float:none!important}
    .c-mobile-menu-toggle{display:block}
    .the-menu-wrapper{display:none;position:absolute;top:100%;left:0;width:100%;background:#333}
    body.is-mobile-menu-open .the-menu-wrapper{display:block}
    .the-menu{flex-direction:column;width:100%}
    .the-menu>li>a{color:#fff!important;padding:12px 20px!important;border-bottom:1px solid #444}
    body.is-sticky .the-menu-wrapper{background:#fff}
    body.is-sticky .the-menu>li>a{color:#333!important}
    .dropdown-menu{position:static;box-shadow:none;border-radius:0;background:rgba(0,0,0,.2);padding-left:15px}
    .dropdown-menu li a{color:#eee!important;font-weight:400;text-transform:capitalize}
}
@media (max-width:768px){
    .c-main-header__main-area .wrapper{flex-direction:column;gap:20px}
    .c-news-list-item{flex-direction:row!important;gap:15px}
    .c-news-list-item__image-wrapper{width:120px!important}
    .c-news-list-item__image{height:85px!important}
    .c-news-list-item__title{font-size:16px!important}
    .c-news-list-item__excerpt{display:none!important}
    .c-main-header__search .search-input{min-width:200px}
    .slider-image{height:250px!important}
    .slider-title{font-size:18px!important;line-height:1.2!important}
    .slider-controls button{width:35px;height:35px;font-size:12px}
    .article-detail-wrapper{padding:15px}
    .c-article-title{font-size:24px}
    .c-article-body{font-size:16px}
    .c-article-layout{flex-direction:column}
    .c-article-share{position:static;flex-direction:row;justify-content:center;margin-bottom:20px}
    .c-related-grid,.c-post-navigation{grid-template-columns:1fr}
    .c-main-footer .wrapper{grid-template-columns:1fr}
    .c-pre-footer h3{font-size:20px}
    .c-category-grid{display:flex;overflow-x:auto;gap:12px;padding-bottom:15px;scroll-snap-type:x mandatory}
    .c-category-grid::-webkit-scrollbar{height:6px}
    .c-category-grid::-webkit-scrollbar-track{background:#f1f1f1}
    .c-category-grid::-webkit-scrollbar-thumb{background:#ccc;border-radius:3px}
    .c-category-card{flex:0 0 160px;height:100px;scroll-snap-align:start}
    .c-category-card__name{font-size:13px}
}
@media (min-width:576px){
    .c-video-grid{grid-template-columns:repeat(2,1fr)}
}
/* =================================================================
   PERBAIKAN FINAL DAN DEFINITIF UNTUK STICKY HEADER
   ================================================================= */
.boxed.active {
    overflow: visible !important;
}

/* =================================================================
   PERBAIKAN FINAL TATA LETAK MOBILE (METODE OVERRIDE TOTAL)
   ================================================================= */
@media (max-width: 991px) {
    .main-content,
    .main-page,
    .double-block,
    .content-block.main {
        display: block !important;
        float: none !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .main-sidebar.right.hidden-xs {
        display: block !important;
        width: 100% !important;
        float: none !important;
        margin-top: 30px;
    }
}

/* =================================================================
   PERBAIKAN FINAL UNTUK MOBILE MENU
   ================================================================= */

@media (max-width: 991px) {
    /* Paksa tombol hamburger untuk selalu terlihat di mobile */
    .c-mobile-menu-toggle {
        display: block !important;
    }
    /* Pastikan menu tersembunyi secara default */
    body:not(.is-mobile-menu-open) .the-menu-wrapper {
        display: none !important;
    }
    /* Tampilkan menu hanya saat body memiliki class 'is-mobile-menu-open' */
    body.is-mobile-menu-open .the-menu-wrapper {
        display: block !important;
    }
}
/* =================================================================
   PERBAIKAN FINAL DAN DEFINITIF UNTUK MOBILE MENU
   ================================================================= */

@media (max-width: 991px) {
    /*
     * Perintah #1 (Super Kuat):
     * "WAHAI BODY, JIKA KAMU TIDAK PUNYA TANDA 'is-mobile-menu-open',
     * MAKA SEMUA '.the-menu-wrapper' DI DALAMMU HARUS HILANG!"
     */
    body:not(.is-mobile-menu-open) .the-menu-wrapper {
        display: none !important;
    }

    /*
     * Perintah #2 (Super Kuat):
     * "WAHAI BODY, JIKA KAMU PUNYA TANDA 'is-mobile-menu-open',
     * MAKA SEMUA '.the-menu-wrapper' DI DALAMMU HARUS MUNCUL!"
     */
    body.is-mobile-menu-open .the-menu-wrapper {
        display: block !important;
    }
}
/* =================================================================
   PERBAIKAN FINAL: MEMBUAT MENU SELALU BISA DIKLIK DI MOBILE
   ================================================================= */

/* * Perintah ini "mengangkat" lapisan bar menu agar selalu berada 
 * di atas konten lain, sehingga tombolnya bisa diklik.
 */
.c-main-menu {
    position: relative;
    z-index: 10;
}
/* =================================================================
   PERBAIKAN FINAL UNTUK WIDGET "TEMUKAN KAMI DI"
   ================================================================= */

.c-social-widget {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 10px;
}

.c-social-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.c-social-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.c-social-item__icon {
    font-size: 24px;
    margin-right: 10px;
    min-width: 25px;
    text-align: center;
}

.c-social-item__details {
    display: flex;
    flex-direction: column;
}

.c-social-item__count {
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
}

.c-social-item__label {
    font-size: 11px;
    line-height: 1;
    opacity: 0.9;
}

/* Warna untuk setiap platform */
.c-social-item--instagram { background: #E1306C; }
.c-social-item--tiktok { background: #000000; }
.c-social-item--facebook { background: #1877F2; }
.c-social-item--youtube { background: #FF0000; }
.c-social-item--threads { background: #833AB4; }
.c-social-item--x { background: #14171A; }
/* =================================================================
   PERBAIKAN FINAL UNTUK POPUP VIDEO (Z-INDEX)
   ================================================================= */

.video-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999 !important; /* <-- PERBAIKAN UTAMA: Angkat ke lapisan paling atas */
    display: none;
    justify-content: center;
    align-items: center;
}

.video-lightbox-inner {
    position: relative;
    width: 90%;
    max-width: 800px;
}

.video-lightbox-close {
    position: absolute;
    top: -35px;
    right: 0;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* =================================================================
   GAYA UNTUK HALAMAN DETAIL VIDEO
   ================================================================= */

/* Wadah untuk video player agar responsif */
.c-video-player-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 25px;
    background-color: #000;
}

.c-video-player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* =================================================================
   GAYA UNTUK HALAMAN PLAYLIST
   ================================================================= */

.c-playlist-header {
    background-color: #fff;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.c-playlist-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    margin: 0 0 10px 0;
    color: #2A284D;
}

.c-playlist-header p {
    font-size: 16px;
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.6;
}

.c-playlist-header .video-count {
    font-size: 13px;
    font-weight: 500;
    color: #888;
    background-color: #f5f5f5;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
}
/* =================================================================
   PERBAIKAN: MENGHILANGKAN GARIS BAWAH (UNDERLINE) PADA JUDUL
   ================================================================= */

/* * Perintah ini menargetkan semua judul berita yang berupa link
 * dan secara paksa menghilangkan garis bawahnya, baik dalam
 * kondisi normal maupun saat di-hover.
 */
.slider-link .slider-title,
.c-news-list-item__title a,
.widget-articles h4 a,
.c-video-card__title a,
.c-article-title a {
    text-decoration: none !important;
}
/* =================================================================
   PERBAIKAN: MENGUBAH SEMUA JUDUL MENJADI HITAM
   ================================================================= */

/*
 * Perintah ini menargetkan semua judul berita dan video di
 * halaman utama, sidebar, halaman detail, dan halaman arsip,
 * lalu mengubah warnanya menjadi hitam pekat.
 */
.c-news-list-item__title a,
.c-video-card__title a,
.widget-articles h4 a,
.c-article-title,
.c-related-item h4 {
    color: #000000 !important; /* Warna hitam pekat */
}

/* Memastikan warna tidak berubah menjadi biru saat di-hover */
.c-news-list-item__title a:hover,
.c-video-card__title a:hover,
.widget-articles h4 a:hover {
    color: #000000 !important; /* Tetap hitam saat hover */
}
/* =================================================================
   13. GAYA HALAMAN CCTV "WORLD WATCH"
   ================================================================= */

.c-page-header {
    background-color: #fff;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}
.c-page-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    margin: 0 0 10px 0;
    color: #2A284D;
}
.c-page-header p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.c-map-placeholder {
    background: #e9ecef;
    border: 2px dashed #ced4da;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    color: #888;
}
.c-map-placeholder i {
    font-size: 40px;
    margin-bottom: 15px;
}
.c-map-placeholder span {
    display: block;
    font-weight: 500;
}

.c-region-title {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    margin: 40px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #2A284D;
}
.c-city-title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    margin: 20px 0 15px 0;
    color: #333;
}

.c-cctv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 kolom di desktop */
    gap: 20px;
}
.c-cctv-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.c-cctv-player {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    background: #000;
}
.c-cctv-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.c-cctv-info {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.c-cctv-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}
.c-cctv-status.online { background-color: #28a745; }
.c-cctv-status.offline { background-color: #dc3545; }
.c-cctv-location {
    font-weight: 500;
}

@media (max-width: 768px) {
    .c-cctv-grid {
        grid-template-columns: 1fr; /* 1 kolom di mobile */
    }
}
/* =================================================================
   GAYA UNTUK HALAMAN CCTV "WORLD WATCH"
   ================================================================= */

.c-page-header {
    background-color: #fff;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}
.c-page-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    margin: 0 0 10px 0;
    color: #2A284D;
}
.c-page-header p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.c-map-placeholder {
    background: #e9ecef;
    border: 2px dashed #ced4da;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    color: #888;
}
.c-map-placeholder i {
    font-size: 40px;
    margin-bottom: 15px;
}
.c-map-placeholder span {
    display: block;
    font-weight: 500;
}

.c-region-title {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    margin: 40px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #2A284D;
}
.c-city-title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    margin: 20px 0 15px 0;
    color: #333;
}

.c-cctv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 kolom di desktop */
    gap: 20px;
}
.c-cctv-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.c-cctv-player {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    background: #000;
}
.c-cctv-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.c-cctv-info {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #f0f0f0;
}
.c-cctv-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}
.c-cctv-status.online { background-color: #28a745; }
.c-cctv-status.offline { background-color: #dc3545; }
.c-cctv-location {
    font-weight: 500;
}

@media (max-width: 768px) {
    .c-cctv-grid {
        grid-template-columns: 1fr; /* 1 kolom di mobile */
    }
}
/* =================================================================
   GAYA UNTUK HALAMAN PLAYLIST
   ================================================================= */

/* Header Halaman Playlist */
.c-playlist-header {
    background-color: #fff;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.c-playlist-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    margin: 0 0 10px 0;
    color: #2A284D;
}

.c-playlist-header p {
    font-size: 16px;
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.6;
}

.c-playlist-header .video-count {
    font-size: 13px;
    font-weight: 500;
    color: #888;
    background-color: #f5f5f5;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
}
/* =================================================================
   GAYA UNTUK HALAMAN DAFTAR SEMUA PLAYLIST
   ================================================================= */

.c-playlist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 kolom di desktop */
    gap: 20px;
}

.c-playlist-card {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    aspect-ratio: 16 / 9; /* Menjaga rasio gambar tetap 16:9 */
}

.c-playlist-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.c-playlist-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    z-index: 1;
    transition: background 0.3s ease;
}

.c-playlist-card__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    color: #fff;
    z-index: 2;
    transition: color 0.3s ease;
}

.c-playlist-card__title {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.c-playlist-card__count {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.8;
}

/* --- Efek Interaktif --- */
.c-playlist-card:hover .c-playlist-card__image {
    transform: scale(1.05); /* Efek zoom */
}
.c-playlist-card:hover .c-playlist-card__overlay {
    background: linear-gradient(to top, rgba(42,40,77,0.9), transparent 60%);
}
.c-playlist-card:hover .c-playlist-card__title {
    color: #F2FF0ON; /* Warna kuning brand */
}

/* --- Responsif Mobile --- */
@media (max-width: 768px) {
    .c-playlist-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 kolom di tablet */
    }
}
@media (max-width: 576px) {
    .c-playlist-grid {
        grid-template-columns: 1fr; /* 1 kolom di HP */
    }
}
/* =================================================================
   GAYA UNTUK HALAMAN HUBUNGI KAMI
   ================================================================= */

/* Layout 2 kolom */
.c-contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Kolom form lebih lebar */
    gap: 30px;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.c-contact-form-wrapper h3,
.c-contact-social-wrapper h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    margin-top: 0;
}

.c-contact-social-wrapper p {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
}

/* Gaya formulir modern */
.c-form-group {
    margin-bottom: 20px;
}
.c-form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}
.c-form-group input[type="text"],
.c-form-group input[type="email"],
.c-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
}
.c-form-group textarea {
    height: 150px;
    resize: vertical;
}
.c-form-group img { /* Untuk gambar Captcha */
    margin-bottom: 10px;
}

/* Responsif untuk Mobile */
@media (max-width: 768px) {
    .c-contact-layout {
        grid-template-columns: 1fr; /* Ubah menjadi 1 kolom */
        padding: 20px;
    }
}
/* =================================================================
   GAYA UNTUK KOTAK PEMBERITAHUAN DI HALAMAN HUBUNGI
   ================================================================= */

.c-contact-notice {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background-color: #e7f3ff; /* Latar belakang biru muda */
    border-left: 5px solid #007bff; /* Garis biru di kiri */
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px; /* Jarak ke formulir */
}

.c-contact-notice i {
    font-size: 24px;
    color: #007bff;
    margin-top: 5px;
}

.c-contact-notice strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

.c-contact-notice p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}
/* =================================================================
   GAYA UNTUK TOMBOL EMAIL DI HALAMAN HUBUNGI
   ================================================================= */

/* Gaya untuk tombol email baru */
.c-email-button {
    display: inline-block;
    background-color: #2A284D; /* Warna biru brand */
    color: #fff; /* Teks putih */
    padding: 10px 20px;
    margin-top: 10px;
    border-radius: 25px; /* Membuatnya melengkung seperti pil */
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #2A284D;
}

.c-email-button i {
    margin-right: 8px;
}

/* Efek saat kursor diarahkan ke tombol */
.c-email-button:hover {
    background-color: #fff; /* Latar belakang jadi putih */
    color: #2A284D; /* Teks jadi biru */
}
/* =================================================================
   GAYA UNTUK TOMBOL KONTAK (EMAIL & WHATSAPP)
   ================================================================= */

/* Wadah untuk mensejajarkan tombol */
.c-contact-buttons {
    display: flex;
    flex-wrap: wrap; /* Agar tombol turun ke bawah jika layar sempit */
    gap: 10px;
    margin-top: 15px;
}

/* Gaya dasar untuk kedua tombol */
.c-email-button,
.c-whatsapp-button {
    display: inline-flex; /* Menggunakan flexbox untuk ikon & teks */
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.c-email-button i,
.c-whatsapp-button i {
    margin-right: 8px;
    font-size: 1.2em; /* Membuat ikon sedikit lebih besar */
}

/* Gaya khusus Tombol Email */
.c-email-button {
    background-color: #2A284D;
    color: #fff;
    border-color: #2A284D;
}
.c-email-button:hover {
    background-color: #fff;
    color: #2A284D;
}

/* Gaya khusus Tombol WhatsApp */
.c-whatsapp-button {
    background-color: #25D366; /* Warna hijau WhatsApp */
    color: #fff;
    border-color: #25D366;
}
.c-whatsapp-button:hover {
    background-color: #fff;
    color: #25D366;
}
/* =================================================================
   GAYA UNTUK HALAMAN STATIS MODERN (view_halaman_bawah.php)
   ================================================================= */

.c-article-body a {
    color: #007bff;
    text-decoration: underline;
}
.c-article-body a:hover {
    color: #0056b3;
}
.c-article-body h2,
.c-article-body h3 {
    font-family: 'Poppins', sans-serif;
    margin-top: 1.8em;
    margin-bottom: 1em;
    line-height: 1.4;
}