/*
 * Majalahpro Custom CSS for Bootstrap 5 Migration
 * Combined from style.css + majalahpro-core.css theme colors
 * 
 * PENTING: File ini berisi CSS layout + visual detail.
 * Bootstrap 5 tetap sumber utama untuk grid system.
 * 
 * Scope: Body, Top Header, Main Menu
 * Updated: 2026-01-20
 */

/* ==========================================================================
   Utilities
   ========================================================================== */
.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.pull-left {
    float: left !important;
}

.pull-right {
    float: right !important;
}

/* ==========================================================================
   Body & Typography
   ========================================================================== */
body {
    color: #323233;
    font-family: "Open Sans", arial, sans-serif;
    font-weight: 500;
    font-size: 11px;
    line-height: 1.5;
    background-color: #ebebeb;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
.site-title {
    font-family: "Open Sans", arial, sans-serif;
}

h1 {
    font-size: 30px;
}

h2 {
    font-size: 26px;
}

h3 {
    font-size: 24px;
}

h4 {
    font-size: 22px;
}

h5 {
    font-size: 20px;
}

h6 {
    font-size: 18px;
}

/* Link styling */
a {
    color: #0b63a1;
    text-decoration: none;
    -webkit-transition: all .25s ease;
    -moz-transition: all .25s ease;
    transition: all .25s ease;
    outline: 0;
}

a:hover,
a:focus,
a:active {
    color: #0b63a1;
    text-decoration: none;
}

/* ==========================================================================
   Logo
   ========================================================================== */
.gmr-logo {
    float: left;
    height: 45px;
    max-height: 45px;
    margin-top: 3px;
}

.gmr-logo img {
    max-width: 100%;
    max-height: 45px;
}

@media (max-width: 480px) {
    .gmr-logo {
        max-width: 180px;
    }
}

@media (max-width: 900px) {
    .gmr-topnavwrap .gmr-table-logo {
        width: 40%;
        text-align: left !important;
    }

    .gmr-topnavwrap .gmr-table-menu {
        width: 60%;
    }
}

/* ==========================================================================
   Table-based Layout
   ========================================================================== */
.gmr-list-table {
    width: 100%;
    display: table;
}

.gmr-table-row {
    display: table-row;
}

.gmr-table-cell {
    display: table-cell;
    vertical-align: middle;
    height: 100%;
}

/* ==========================================================================
   Top Header Second (Logo bar) - Background Putih
   ========================================================================== */
.top-header-second {
    background-color: #ffffff;
}

.gmr-topnavwrap {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Navigation Base
   ========================================================================== */

.gmr-mainmenu,
.gmr-topnavmenu {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
    line-height: 20px;
}

.gmr-mainmenu ul,
.gmr-topnavmenu ul {
    list-style: none;
}

/* =====================================================
   MAIN NAV - Fix Duplicate ID
   ===================================================== */
.gmr-mainmenu #main-nav,
.gmr-mainmenu #main-nav .sub-menu,
.gmr-mainmenu #main-nav .children {
    /* list-style: none; */
    /* margin: 0; */
    /* padding: 0; */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 0;
}

.gmr-mainmenu #main-nav>li {
    display: inline-block;
    position: relative;
}

.gmr-mainmenu #main-nav>li>a {
    display: block;
    padding: 15px 13px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.2;
    transition: background-color 0.3s ease;
}

.gmr-mainmenu #main-nav>li>a span {
    display: inline-block;
}

.gmr-mainmenu #main-nav>li:hover>a,
.gmr-mainmenu #main-nav .current-menu-item>a,
.gmr-mainmenu #main-nav .current-menu-ancestor>a {
    background-color: #59d600;
    border-right: 1px solid rgba(0, 0, 0, 0) !important;
    -webkit-box-shadow: inset 0px -5px 0px 0px rgba(0, 0, 0, 0.1) !important;
    -moz-box-shadow: inset 0px -5px 0px 0px rgba(0, 0, 0, 0.1) !important;
    box-shadow: inset 0px -5px 0px 0px rgba(0, 0, 0, 0.1) !important;
}

/* Dropdown Arrow */
.gmr-mainmenu #main-nav>li.menu-item-has-children>a:after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    vertical-align: middle;
    border-top: 4px solid currentColor;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

/* Sub Menu */
.gmr-mainmenu #main-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
    /* display: flex; */
    flex-direction: column;
}

.gmr-mainmenu #main-nav>li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.gmr-mainmenu #main-nav .sub-menu li {
    display: block;
    width: 100%;
}

.gmr-mainmenu #main-nav .sub-menu a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    border-bottom: 1px solid #eee;
    transition: all 0.2s ease;
}

.gmr-mainmenu #main-nav .sub-menu a:hover {
    background: #f5f5f5;
    color: #81d742;
}

.gmr-mainmenu #main-nav .sub-menu li:last-child a {
    border-bottom: none;
}

/* =====================================================
   STICKY TOP HEADER
   ===================================================== */

/* Method 1: CSS Sticky (Modern) */
.top-header-second {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

/* Atau Method 2: Fixed saat scroll (perlu JS) */
.top-header-second.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Placeholder untuk mencegah content jump saat fixed */
.header-placeholder {
    display: none;
}

.header-placeholder.is-active {
    display: block;
}

/* Responsive: Sembunyikan sticky di mobile jika tidak mau */
@media (max-width: 767px) {
    .top-header-second {
        /* position: relative; */
        /* Non-sticky di mobile */
    }
}

/* ==========================================================================
   Primary Menu
   ========================================================================== */
#primary-menu,
#primary-menu .sub-menu-search,
#primary-menu .sub-menu,
#primary-menu .children {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 0;
    z-index: 9999;
}

#primary-menu>li,
#primary-menu .sub-menu-search li,
#primary-menu .sub-menu li,
#primary-menu .children li {
    display: block;
    float: left;
    position: relative;
}

#primary-menu>li>form,
#primary-menu>li>span.gmr-top-date,
#primary-menu>li>a {
    position: relative;
    display: block;
    padding: 13px 18px;
    text-decoration: none !important;
    border-right: 1px solid rgba(0, 0, 0, 0.15);
}

/* Top Nav Menu - Warna Biru */
#primary-menu>li>span.gmr-top-date,
.gmr-topnavmenu #primary-menu>li>a {
    padding: 15px 15px;
}

#primary-menu>li>span.gmr-top-date {
    color: #333;
}

#gmr-topnavresponsive-menu svg,
.gmr-topnavmenu #primary-menu>li>a,
.search-trigger .gmr-icon {
    color: #016fba;
}

#gmr-topnavresponsive-menu:hover,
.gmr-topnavmenu #primary-menu>li:hover>a,
.gmr-topnavmenu #primary-menu .current-menu-item>a,
.gmr-topnavmenu #primary-menu .current-menu-ancestor>a,
.gmr-topnavmenu #primary-menu .current_page_item>a,
.gmr-topnavmenu #primary-menu .current_page_ancestor>a {
    color: #0b63a1;
}

/* ==========================================================================
   Main Menu - Warna Hijau #81d742
   ========================================================================== */
.gmr-menuwrap,
.gmr-sticky .top-header.sticky-menu {
    background-color: #81d742;
    box-shadow: 0 2px 5px rgb(0 0 0 / 36%);
}

.gmr-mainmenu #primary-menu>li>a {
    color: #ffffff;
    font-family: "Open Sans", arial, sans-serif;
}

.gmr-mainmenu #primary-menu>li:hover>a,
.gmr-mainmenu #primary-menu .current-menu-item>a,
.gmr-mainmenu #primary-menu .current-menu-ancestor>a,
.gmr-mainmenu #primary-menu .current_page_item>a,
.gmr-mainmenu #primary-menu .current_page_ancestor>a {
    color: #ffffff;
    background-color: #59d600;
    border-right: 1px solid rgba(0, 0, 0, 0) !important;
    -webkit-box-shadow: inset 0px -5px 0px 0px rgba(0, 0, 0, 0.1) !important;
    -moz-box-shadow: inset 0px -5px 0px 0px rgba(0, 0, 0, 0.1) !important;
    box-shadow: inset 0px -5px 0px 0px rgba(0, 0, 0, 0.1) !important;
}

/* ==========================================================================
   Dropdown Arrow
   ========================================================================== */
#primary-menu>li.page_item_has_children>a:after,
#primary-menu>li.menu-item-has-children>a:after,
#primary-menu .sub-menu>li.page_item_has_children>a:after,
#primary-menu .sub-menu>li.menu-item-has-children>a:after,
#primary-menu .children>li.page_item_has_children>a:after,
#primary-menu .children>li.menu-item-has-children>a:after {
    display: inline-block;
    position: relative;
    margin-left: 6px;
    margin-right: 3px;
    margin-top: -3px;
    vertical-align: middle;
    content: ' ';
    border-width: 0 1px 1px 0;
    border-style: solid;
    -webkit-transform-origin: 66% 66%;
    transform-origin: 66% 66%;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    -webkit-transition: all 0.15s ease-in-out;
    transition: all 0.15s ease-in-out;
    height: 6px;
    width: 6px;
}

/* Arrow colors - Top Nav (Biru) */
.gmr-topnavmenu #primary-menu>li.page_item_has_children>a:after,
.gmr-topnavmenu #primary-menu>li.menu-item-has-children>a:after {
    border-color: #016fba;
}

.gmr-topnavmenu #primary-menu>li.page_item_has_children:hover>a:after,
.gmr-topnavmenu #primary-menu>li.menu-item-has-children:hover>a:after {
    border-color: #0b63a1;
    transform: rotate(225deg);
}

/* Arrow colors - Main Menu (Putih) */
.gmr-mainmenu #primary-menu>li.page_item_has_children>a:after,
.gmr-mainmenu #primary-menu>li.menu-item-has-children>a:after,
.gmr-mainmenu #primary-menu .sub-menu>li.page_item_has_children>a:after,
.gmr-mainmenu #primary-menu .sub-menu>li.menu-item-has-children>a:after,
.gmr-mainmenu #primary-menu .children>li.page_item_has_children>a:after,
.gmr-mainmenu #primary-menu .children>li.menu-item-has-children>a:after {
    border-color: #ffffff;
}

.gmr-mainmenu #primary-menu>li.page_item_has_children:hover>a:after,
.gmr-mainmenu #primary-menu>li.menu-item-has-children:hover>a:after {
    border-color: #ffffff;
    transform: rotate(225deg);
}

/* Sub-menu arrow positioning */
#primary-menu .sub-menu>li.page_item_has_children>a:after,
#primary-menu .sub-menu>li.menu-item-has-children>a:after,
#primary-menu .children>li.page_item_has_children>a:after,
#primary-menu .children>li.menu-item-has-children>a:after {
    transform: rotate(-45deg);
    margin-left: 0;
    margin-right: 0;
    margin-top: 5px;
    float: right;
}

#primary-menu .sub-menu>li.page_item_has_children:hover>a:after,
#primary-menu .sub-menu>li.menu-item-has-children:hover>a:after,
#primary-menu .children>li.page_item_has_children:hover>a:after,
#primary-menu .children>li.menu-item-has-children:hover>a:after {
    transform: rotate(135deg);
}

/* ==========================================================================
   Sub-menu / Dropdown
   ========================================================================== */
#primary-menu .sub-menu-search,
#primary-menu .sub-menu,
#primary-menu .children {
    left: -1px;
    padding: 0;
    position: absolute;
    top: 120%;
    width: 200px;
    z-index: 999;
    opacity: 0;
    display: none;
    border-width: 1px 0 5px 0;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.1);
    border-bottom-color: #dd3333;
    background-color: #f9fdff;
}

/* Main Menu dropdown - Hijau */
.gmr-mainmenu #primary-menu .sub-menu,
.gmr-mainmenu #primary-menu .children {
    background-color: #81d742;
    border: none !important;
    box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.15);
}

/* Nested sub-menu */
#primary-menu .sub-menu ul,
#primary-menu .children ul {
    left: 200px !important;
    top: 0 !important;
}

/* Sub-menu link styling */
#primary-menu .sub-menu-search a,
#primary-menu .sub-menu a,
#primary-menu .children a {
    display: block;
    line-height: 16px;
    padding: 8px 18px !important;
    text-align: left;
    text-transform: none !important;
    -webkit-transition: all .25s ease;
    transition: all .25s ease;
}

#primary-menu .sub-menu-search a,
.gmr-topnavmenu #primary-menu .sub-menu a {
    color: #333 !important;
}

.gmr-mainmenu #primary-menu .sub-menu a,
.gmr-mainmenu #primary-menu .children a {
    color: #ffffff !important;
}

/* Sub-menu hover */
#primary-menu .sub-menu-search>li:hover>a,
#primary-menu .sub-menu>li:hover>a,
#primary-menu .children>li:hover>a {
    background-color: rgba(0, 0, 0, 0.1) !important;
}

#primary-menu .sub-menu li,
#primary-menu .sub-menu-search li,
#primary-menu .children li {
    float: none;
}

/* ==========================================================================
   Dropdown Animation
   ========================================================================== */
#primary-menu li>.sub-menu-search.focused,
#primary-menu li:hover>.sub-menu-search,
#primary-menu li>.sub-menu.focused,
#primary-menu li:hover>.sub-menu,
#primary-menu li>.children.focused,
#primary-menu li:hover>.children {
    opacity: 1;
    top: 100%;
    display: block;
    animation: dropdownAnim .3s ease-in-out;
}

@keyframes dropdownAnim {
    0% {
        opacity: 0;
        transform: translateY(10%);
    }

    100% {
        opacity: 1;
        transform: translateY(0%);
    }
}

/* ==========================================================================
   Search Menu
   ========================================================================== */
#primary-menu .gmr-search .sub-menu-search {
    right: 0;
    left: auto !important;
    padding: 10px 15px !important;
    width: 300px !important;
}

.gmr-search svg {
    font-size: 16px;
    margin-right: 10px;
}

.gmr-search input[type="text"],
.gmr-searchform input[type="text"] {
    width: 100%;
    padding: 8px 15px;
    height: 34px;
    line-height: 34px;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    border-radius: 3px;
}

/* ==========================================================================
   Social Menu
   ========================================================================== */
#primary-menu .gmr-social-menu .sub-menu {
    right: 0;
    left: auto !important;
}

.gmr-social-menu .gmr-social-mainlink svg {
    font-size: 16px;
}

/* Social Network Icons */
.menu-item-social-network svg {
    margin-right: 10px;
    font-size: 18px;
    vertical-align: -0.25em !important;
}

.gmr-social-menu a.facebook svg {
    color: #3b5998 !important;
}

.gmr-social-menu a.twitter svg {
    color: #121212 !important;
}

.gmr-social-menu a.instagram svg {
    color: #bc2a8d !important;
}

.gmr-social-menu a.youtube svg {
    color: #bb0000 !important;
}

.gmr-social-menu a.rss svg {
    color: #ee802f !important;
}

/* ==========================================================================
   Responsive Menu Toggle
   ========================================================================== */
#gmr-topnavresponsive-menu {
    padding: 5px 0;
}

.close-topnavmenu-wrap {
    display: none;
}

#gmr-topnavresponsive-menu svg {
    font-size: 28px;
}

@media (max-width: 1023px) {
    #gmr-topnavresponsive-menu {
        display: block;
        float: right;
    }

    .gmr-mainmenu,
    .gmr-topnavmenu {
        display: none;
    }
}

@media (min-width: 1024px) {
    #gmr-topnavresponsive-menu {
        display: none;
    }
}

/* ==========================================================================
   Menu Wrapper
   ========================================================================== */
.gmr-menuwrap {
    position: relative;
}

/* ==========================================================================
   Sticky Menu (Optional)
   ========================================================================== */
.gmr-sticky .top-header-second.sticky-menu,
.gmr-sticky .top-header.sticky-menu {
    width: 100%;
    z-index: 9999;
    top: 0;
    left: 0;
    right: 0;
    position: fixed;
    -webkit-transition: all .25s ease;
    transition: all .25s ease;
    opacity: 0.98;
}

.gmr-sticky .top-header.sticky-menu {
    top: 50px !important;
}

@media only screen and (max-width: 1200px) {
    .gmr-sticky .top-header.sticky-menu {
        position: relative !important;
        top: 0 !important;
    }
}

/* ==========================================================================
   Site Main Content Area
   ========================================================================== */
.site-main {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
}

/* ==========================================================================
   Widget Title - Accent Merah
   ========================================================================== */
.widget-title span,
h3.widget-title,
h3.related-title {
    color: #dd1111;
}

.widget-title span {
    border-color: #dd3333;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.breadcrumbs {
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    /* margin-bottom: -1px; */
    background-color: #ededed;
}

.breadcrumbs .separator {
    padding-left: 3px;
    padding-right: 3px;
}

/* ==========================================================================
   Sidr Mobile Menu
   ========================================================================== */
.sidr {
    display: block;
    position: fixed;
    top: 0;
    height: 100%;
    z-index: 999999;
    width: 280px;
    overflow-x: hidden;
    overflow-y: auto;
    font-size: 13px;
    background: #333;
    color: #fff;
    -webkit-transition: left 0.3s ease, right 0.3s ease;
    transition: left 0.3s ease, right 0.3s ease;
}

.sidr.sidr-left {
    left: -100%;
    right: auto;
}

.sidr.sidr-left.sidr-open {
    left: 0;
}

.sidr.sidr-right {
    left: auto;
    right: -100%;
}

.sidr.sidr-right.sidr-open {
    right: 0;
}

.sidr .sidr-inner {
    padding: 0;
}

.sidr .sidr-inner>p {
    margin-left: 15px;
    margin-right: 15px;
}

.sidr ul {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidr ul li {
    position: relative;
    display: block;
    margin: 0;
    line-height: 38px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidr ul li.active>a,
.sidr ul li.sidr-class-active>a,
.sidr ul li:hover>a {
    background-color: rgba(0, 0, 0, 0.1);
}

.sidr ul li a {
    padding: 0 15px;
    display: block;
    text-decoration: none;
    color: #fff;
}

.sidr ul li ul {
    border-bottom: 0;
    margin: 0;
}

.sidr ul li ul li {
    line-height: 38px;
    font-size: 13px;
}

.sidr ul li ul li a {
    padding-left: 30px;
    color: rgba(255, 255, 255, 0.8);
}

.sidr form {
    margin: 0;
}

.sidr input[type="search"],
.sidr input[type="text"] {
    width: 100%;
    color: #fff;
    font-size: 13px;
    padding: 8px 10px;
    box-sizing: border-box;
    margin: 10px 0;
    border-radius: 3px;
    border: 0;
    background: rgba(255, 255, 255, 0.1);
}

.sidr input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Sidr Logo */
.sidr-class-gmr-logo {
    padding: 0 15px;
    background-color: #ffffff;
    max-height: 50px;
    line-height: 50px;
    position: relative;
    display: block;
}

.sidr-class-gmr-logo img {
    max-height: 40px;
}

/* Sidr Sub Toggle */
.sidr .sub-toggle {
    position: absolute;
    right: 0;
    top: 0;
    cursor: pointer;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 20px;
    width: 40px;
    height: 38px;
    text-align: center;
    line-height: 38px;
}

.sidr .sub-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidr .sub-toggle .gmr-icon-down:after {
    display: inline-block;
    position: relative;
    margin-top: -5px;
    vertical-align: middle;
    content: '';
    border-width: 0 2px 2px 0;
    border-style: solid;
    border-color: #ffffff;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    -webkit-transition: all 0.15s ease-in-out;
    transition: all 0.15s ease-in-out;
    height: 6px;
    width: 6px;
}

.sidr .sub-toggle .gmr-icon-up:after {
    display: inline-block;
    position: relative;
    margin-top: 3px;
    vertical-align: middle;
    content: '';
    border-width: 0 2px 2px 0;
    border-style: solid;
    border-color: #ffffff;
    -webkit-transform: rotate(-135deg);
    transform: rotate(-135deg);
    height: 6px;
    width: 6px;
}

/* Sidr Sub Menu Hidden by default */
.sidr-class-site-description,
.sidr ul.sidr-class-sub-menu,
.sidr ul.sidr-class-sub-menu-search {
    display: none;
}

.sidr ul.sidr-class-sub-menu.active,
.sidr ul.sidr-class-sub-menu-search.active {
    display: block;
}

/* Hide some items in sidr */
.sidr-class-gmr-search>a,
.sidr-class-gmr-social-menu>a,
.sidr-class-menu-item-object-date {
    display: none !important;
}

/* Sidr Close Button */
#sidr-id-close-topnavmenu-button {
    color: #333;
    font-size: 24px;
    line-height: 1;
}

#sidr-id-close-topnavmenu-button svg {
    position: absolute;
    right: 15px;
    top: 13px;
    z-index: 9999;
    font-size: 24px;
    cursor: pointer;
    width: 24px;
    height: 24px;
}

#sidr-id-close-topnavmenu-button:hover,
#sidr-id-close-topnavmenu-button:hover svg {
    color: #ff5722;
}

/* New Scroll Mobile Menu */
.gmr-mobilemenu {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    max-width: 100% !important;
    /* Force width constraint for table-cell child */
    -webkit-overflow-scrolling: touch;
    display: inline-block;
    vertical-align: middle;
}

.gmr-mobilemenu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-block;
}

.gmr-mobilemenu ul li {
    display: inline-block;
    margin-right: 7px;
}

.gmr-mobilemenu ul li a {
    font-weight: 700;
    padding: 7px 14px 7px 0;
    display: block;
    text-transform: uppercase;
}

@media (min-width: 1024px) {
    .gmr-mobilemenu {
        display: none;
    }
}

/* Sidr Overlay */
.sidr-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999998;
}

.sidr-overlay.active {
    display: block;
}

/* Sidr Header */
.sidr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.sidr-header .sidr-class-gmr-logo {
    padding: 0;
    background: transparent;
}

.sidr-header .sidr-class-gmr-logo img {
    max-height: 35px;
}

/* Sidr Search Form */
.sidr-search-form {
    padding: 0px 8px;
    background: rgba(0, 0, 0, 0.1);
}

.sidr-search-form input[type="text"] {
    width: 100%;
    padding: 7px 10px;
    border: none;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 14px;
}

.sidr-search-form input[type="text"]::placeholder {
    color: #999;
}

/* ==========================================================================
   Content Area
   ========================================================================== */
.gmr-content {
    padding: 20px 0;
}

.site-main {
    background: #fff;
    padding: 15px;
    border-radius: 3px;
    margin-bottom: 20px;
}

/* ==========================================================================
   Module Tabs Slider (Splide)
   ========================================================================== */
.add_slide_content {
    position: relative;
    background: #fff;
    padding: 15px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

/* #module-splide:not(.is-initialized) .splide__list {
    flex-direction: column;
} */
/* Hide non-active slides before Splide init */
#module-splide:not(.is-initialized) .splide__slide:not(:first-child) {
    display: none !important;
}

/* Splide Container */
#module-splide {
    position: relative;
}

#module-splide .splide__track {
    overflow: visible;
}

#module-splide .splide__slide {
    padding: 0;
}

.splide__list {
    backface-visibility: hidden;
    display: -ms-flexbox;
    display: flex;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important
}

.splide.is-initialized:not(.is-active) .splide__list {
    display: block
}

.splide__pagination {
    -ms-flex-align: center;
    align-items: center;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-pack: center;
    justify-content: center;
    margin: 0;
    pointer-events: none
}

.splide:not(.is-overflow) .splide__pagination {
    display: none
}

.splide {
    position: relative;
    visibility: hidden
}

.splide.is-initialized,
.splide.is-rendered {
    visibility: visible
}

.splide__slide {
    backface-visibility: hidden;
    box-sizing: border-box;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    list-style-type: none !important;
    margin: 0;
    position: relative
}

.splide__slide img {
    vertical-align: bottom
}

.splide__track {
    overflow: hidden;
    position: relative;
    z-index: 0
}

.splide__pagination {
    bottom: .5em;
    left: 0;
    padding: 0 1em;
    position: absolute;
    right: 0;
    z-index: 1
}

.splide__pagination__page {
    background: #ccc;
    border: 0;
    border-radius: 50%;
    display: inline-block;
    height: 8px;
    margin: 3px;
    opacity: .7;
    padding: 0;
    position: relative;
    transition: transform .2s linear;
    width: 8px
}

.splide__pagination__page.is-active {
    background: #fff;
    transform: scale(1.4);
    z-index: 1
}

.splide__slide {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0)
}

/* Topic Title with Pagination */
.gmr-module-slide-topic {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid #dd3333;
}

.gmr-module-slide-topic a {
    font-size: 18px;
    font-weight: 700;
    color: #dd3333;
    text-transform: none;
}

.gmr-module-slide-topic a:hover {
    color: #81d742;
}

/* Splide Pagination (Dots) - Positioned in header */
#module-splide .splide__pagination {
    position: absolute;
    top: 0;
    right: 0;
    bottom: auto;
    left: auto;
    padding: 0;
    margin: 0;
    gap: 5px;
}

#module-splide .splide__pagination__page {
    width: 12px;
    height: 12px;
    background: #ccc;
    border: none;
    border-radius: 50%;
    opacity: 1;
    margin: 0;
    transition: all 0.3s ease;
}

#module-splide .splide__pagination__page:hover {
    background: #999;
}

#module-splide .splide__pagination__page.is-active {
    background: #333;
    transform: scale(1);
}

/* Tab Content - Not used with Splide (keeping for legacy) */
.gmr-box-content-module {
    min-height: 100px;
}

/* Image in Bootstrap Grid */
.img-rel {
    display: block;
    overflow: hidden;
}

.img-rel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Article Title */
.gmr-module-slide-title {
    margin-bottom: 5px;
}

.gmr-module-slide-titlelink {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5em;
    /* Tentukan tinggi baris (bebas, misal 1.5) */
    min-height: 4.5em;
    /* Kalkulasi: 1.5em x 3 baris = 4.5em */
}

.gmr-module-slide-titlelink:hover {
    color: #dd3333;
}

/* Article Meta */
.gmr-metacontent {
    font-size: 11px;
    color: #666;
}

/* ==========================================================================
   BINGKAI GAMBAR 16:9 DENGAN LOADING & HOVER EFFECT
   ========================================================================== */

/* 1. Bingkai Utama */
.bk-16x9 {
    aspect-ratio: 16 / 9;
    background-color: #82838396;
    overflow: hidden;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.6s ease-in-out;
    border-radius: 4px;
}

/* 2. Layer Logo (Pseudo-element Before) - Animasi Bounce */
.bk-16x9::before {
    content: "";
    position: absolute;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-image: url("../logo-bk.png");
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
    transition: opacity 0.8s ease-out;
    animation: bounceLogo 1.2s infinite ease-in-out;
}

/* 3. Layer Efek Kilauan (Pseudo-element After) - Shimmer */
.bk-16x9::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0) 100%);
    z-index: 3;
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
    transition: opacity 0.6s ease-out;
}

/* 4. Kondisi Saat Gambar BERHASIL Dimuat */
.is-loaded {
    background-color: transparent;
}

.bk-16x9.is-loaded::before,
.bk-16x9.is-loaded::after {
    opacity: 0;
    pointer-events: none;
}

/* 5. Kondisi Saat Gambar GAGAL Dimuat */
.bk-16x9.load-failed::after {
    display: none;
}

.bk-16x9 a {
    display: block;
    width: 100%;
    height: 100%;
}

/* 6. Gaya Gambar Asli */
.bk-16x9 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    position: relative;
    z-index: 1;
    transition: opacity 1s ease-in 0.3s, transform 0.5s ease-out, filter 0.5s ease;
}

/* Munculkan gambar jika sukses */
.bk-16x9.is-loaded img {
    opacity: 1;
}

/* 7. Efek Hover (Hanya aktif jika gambar sudah terload) */
.card-link:hover .bk-16x9.is-loaded img,
.bk-16x9.is-loaded:hover img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.card-link:hover .bk-16x9 {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.card-link:hover .card-title {
    color: var(--bs-pagination-hover-color);
    transition: color 0.3s ease;
}


/* ==========================================================================
   BINGKAI GAMBAR FLEKSIBEL (NATIVE) - UNTUK BERBAGAI UKURAN FOTO
   ========================================================================== */

/* 1. Bingkai Utama */
.article-img-wrapper {
    width: 100%;
    position: relative;
    background-color: #f2f2f2;
    /* Warna dasar saat loading */
    overflow: hidden;
    border-radius: 5px;
    /* margin-bottom: 1.5rem; */
    /* Memberikan ruang minimal agar skeleton terlihat sebelum gambar muncul */
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 2. Logo Placeholder (Hanya muncul saat loading) */
.article-img-wrapper::before {
    content: "";
    position: absolute;
    width: 50px;
    height: 50px;
    background-image: url("../logo-bk.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: 2;
    animation: bounceLogo 1.5s infinite ease-in-out;
    transition: opacity 0.4s ease;
}

/* 3. Efek Shimmer (Loading) */
.article-img-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%);
    z-index: 3;
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

/* 4. Menghilangkan Loading saat Gambar Selesai */
.article-img-wrapper.is-loaded {
    background-color: transparent;
    min-height: auto;
    /* Mengikuti tinggi asli gambar */
}

.article-img-wrapper.is-loaded::before,
.article-img-wrapper.is-loaded::after {
    display: none;
}

/* 5. Gaya Gambar (Fleksibel) */
.article-img-wrapper img {
    width: 100%;
    height: auto;
    /* Mengikuti proporsi asli gambar */
    max-height: 80vh;
    /* Mencegah foto dokumen yang terlalu panjang memenuhi layar */
    display: block;
    object-fit: contain;
    /* Memastikan seluruh dokumen terlihat tanpa terpotong */
    opacity: 0;
    transition: opacity 0.6s ease-in;
}

.article-img-wrapper.is-loaded img {
    opacity: 1;
}

/* 6. Animasi */
@keyframes bounceLogo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* ==========================================================================
   Sidebar / Widget Area
   ========================================================================== */
.widget-area {
    margin-bottom: 20px;
}

.widget {
    margin-bottom: 20px;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    color: #dd3333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    padding-top: 10px;
    border-bottom: 2px solid #dd3333;
    text-transform: uppercase;
}

/* Left Sidebar */
#left-sidebar {
    /* Styling khusus untuk left sidebar */
}

/* Right Sidebar */
#right-sidebar {
    /* Styling khusus untuk right sidebar */
}

/* Content Area */
#content_area {
    background: #fff;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    min-height: 200px;
}

.col-md-content-c {
    /* Main content column styling */
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 991px) {

    #left-sidebar,
    #right-sidebar {
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .gmr-module-slide-titlelink {
        font-size: 12px;
    }

    .splide__slide .col-lg-6 {
        margin-bottom: 15px;
    }
}

/* ==========================================================================
   Vanilla JS Slider Pagination (Module Tabs Slider)
   ========================================================================== */
#module-splide .splide__pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    z-index: 100;
    pointer-events: auto;
}

#module-splide .splide__pagination__page {
    width: 12px;
    height: 12px;
    padding: 0;
    background-color: #ccc;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
}

#module-splide .splide__pagination__page:hover {
    background-color: #999;
}

#module-splide .splide__pagination__page.is-active {
    background-color: #dd3333;
    transform: scale(1.1);
}

#module-splide .splide__list {
    position: relative;
}

#module-splide .splide__slide {
    backface-visibility: hidden;
}


/* ==========================================================================
   Headline Slider
   ========================================================================== */
.headline-slider-wrapper {
    background: #dee2e6;
    border-radius: 0px 3px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-bottom: 0px;
}

/* Main Slider Container */
.headline-slider-main {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
}

/* Default: Semua slides tersembunyi */
.headline-slider-main .headline-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    z-index: 0;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
}

/* Slide pertama terlihat by default (sebelum JS init) */
.headline-slider-main:not(.is-initialized) .headline-slide:first-child {
    position: relative;
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Slide aktif via JS */
.headline-slider-main .headline-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Link styling */
.headline-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 3px;
}

.headline-link .ratio img {
    object-fit: cover;
    transition: transform 0.5s ease;
}

.headline-link:hover .ratio img {
    transform: scale(1.05);
}

/* Overlay */
.headline-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    padding: 60px 20px 20px;
    pointer-events: none;
}

.headline-category,
.headline-topik {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: auto;
}

.headline-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.headline-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.headline-meta span {
    margin-right: 15px;
}

/* Thumbnail Nav - CSS Scroll Snap */
.headline-slider-nav {
    display: flex;
    width: 100%;
    max-width: 100%;
    gap: 1px;
}

.headline-slider-nav .headline-thumb {
    flex: 20%;
}

.headline-slider-nav .headline-thumb .ratio img {
    object-fit: cover;
    transition: opacity 0.3s ease;
    opacity: 0.5;
}

.headline-slider-nav .headline-thumb:hover .ratio img {
    opacity: 0.8;
}

.headline-slider-nav .headline-thumb.is-active .ratio img {
    opacity: 1;
}

.headline-slider-nav .headline-thumb.is-active {
    /* transform: translateY(-2px); */
}

/* Title default */
/* .headline-thumb-title {
  font-size: 11px;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin: 0;
  padding: 5px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  background: transparent;
  transition: background 0.3s ease;
} */
.headline-thumb-title {
    text-align: center;
    font-size: 11px;
    line-height: 14px;
    font-weight: 400 !important;
    position: relative;
    display: block;
    padding: 0 0;
    display: block;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    color: #333;
}

/* Title saat active */
.headline-slider-nav .headline-thumb.is-active .headline-thumb-title {
    background: rgba(26, 26, 46, 0.94);
    color: #ffffff;
}

/* Responsive */
@media (max-width: 767px) {
    .headline-title {
        font-size: 16px;
    }

    .headline-overlay {
        padding: 40px 15px 15px;
    }

    .headline-slider-nav .headline-thumb {
        flex: 20%;
    }
}

/* =====================================================
   BANNER FULL WIDTH
   ===================================================== */
.banner-fullwidth {
    width: 100%;
    line-height: 0;
    /* background: #f5f5f5; */
    margin-bottom: 5px;
}

.banner-fullwidth img {
    width: 100%;
    height: auto;
    display: block;
}

/* =====================================================
   BREAKING NEWS SYSTEM - MODERN DESIGN
   ===================================================== */
.breaking-news-wrapper {
    padding: 0;
    margin-bottom: 5px;
    --ticker-duration: 30s;
    --ticker-play: running;
}

.breaking-news {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    height: 35px;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Label Modern dengan Gradient */
.breaking-news-label {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #dd3333 0%, #b71c1c 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0 18px;
    white-space: nowrap;
    z-index: 10;
    position: relative;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%);
    padding-right: 30px;
}

/* Icon Wrapper dengan Pulse Effect */
.bn-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    animation: pulse-glow 2s ease-in-out infinite;
}

.bn-bolt {
    color: #fff;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
    animation: flash-bolt 1.5s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
    }
}

@keyframes flash-bolt {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.9);
    }
}

/* Text Styling */
.bn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.bn-text-main {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
}

.bn-text-sub {
    font-size: 10px;
    font-weight: 600;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

/* Ticker Area */
.breaking-news-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #16213e 0%, #1a1a2e 100%);
}

/* -----------------------------------------------------
   TIPE 1: TICKER (HORIZONTAL SLIDE)
   ----------------------------------------------------- */

.anim-ticker .ticker-content {
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    animation: ticker var(--ticker-duration) linear infinite;
    animation-play-state: var(--ticker-play);
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Ticker Item Styling */
.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 0 20px;
    text-decoration: none;
    transition: color 0.2s ease;
    height: 100%;
}

.ticker-item:hover {
    color: #81d742;
}

.ticker-item:hover .ticker-bullet {
    background: #81d742;
    box-shadow: 0 0 8px rgba(129, 215, 66, 0.5);
}

/* Ticker Bullet */
.ticker-bullet {
    width: 6px;
    height: 6px;
    background: #dd3333;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.2s ease;
    box-shadow: 0 0 4px rgba(221, 51, 51, 0.5);
}

.ticker-text {
    display: inline-block;
}

/* Separator untuk ticker mode */
.anim-ticker .ticker-item::after {
    content: '';
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.2);
    margin-left: 20px;
}

/* -----------------------------------------------------
   TIPE 2 & 3: FADE & SLIDE UP (STOCKED MODES)
   ----------------------------------------------------- */
.anim-fade .ticker-content,
.anim-slide-up .ticker-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.anim-fade .ticker-item,
.anim-slide-up .ticker-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 15px;
    opacity: 0;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-play-state: var(--ticker-play);
}

/* Logic Fade Numpuk */
.anim-fade .ticker-item {
    animation-name: fadeMode;
}

@keyframes fadeMode {
    0% {
        opacity: 0;
    }

    5%,
    20% {
        opacity: 1;
    }

    25%,
    100% {
        opacity: 0;
    }
}

/* Logic Slide Up Numpuk */
.anim-slide-up .ticker-item {
    animation-name: slideUpMode;
}

@keyframes slideUpMode {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }

    5%,
    20% {
        opacity: 1;
        transform: translateY(0);
    }

    25% {
        opacity: 0;
        transform: translateY(-100%);
    }

    100% {
        opacity: 0;
    }
}

/* General Item */
.ticker-item {
    display: flex;
    /* Menggunakan flex agar lebih mudah dikontrol */
    align-items: center;
    /* Center vertikal */
    height: 100%;
    padding: 0 10px;
    /* Gunakan padding horizontal saja, biarkan flex yang mengatur vertikal */
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ticker-item:hover {
    color: #81d742;
}

.ticker-content:hover {
    animation-play-state: paused !important;
}

/* ==========================================================================
   Widget Cuaca
   ========================================================================== */
.widget-weather .weather-content {
    text-align: center;
    padding: 10px 0;
}

.widget-weather .weather-main {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.widget-weather .weather-icon {
    width: 60px;
    height: 60px;
    color: #ffc107;
}

.widget-weather .weather-icon svg {
    width: 100%;
    height: 100%;
}

.widget-weather .weather-temp {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.widget-weather .temp-unit {
    font-size: 18px;
    font-weight: 400;
    vertical-align: top;
}

.widget-weather .weather-city {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.widget-weather .weather-condition {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.widget-weather .weather-details {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.widget-weather .weather-detail {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #666;
}

.widget-weather .weather-detail svg {
    color: #007bff;
}

/* ==========================================================================
   Widget Kalender Event
   ========================================================================== */
.widget-calendar .events-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.widget-calendar .event-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.widget-calendar .event-item:hover {
    background: #e9ecef;
}

.widget-calendar .event-date {
    flex-shrink: 0;
    width: 45px;
    text-align: center;
    padding: 5px;
    border-radius: 5px;
    color: #fff;
}

.widget-calendar .event-day {
    display: block;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.widget-calendar .event-month {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
}

.widget-calendar .event-info {
    flex: 1;
    min-width: 0;
}

.widget-calendar .event-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.widget-calendar .event-time {
    font-size: 11px;
    color: #666;
}

/* ==========================================================================
   Widget Kurs & Saham
   ========================================================================== */
.widget-stocks .stocks-list {
    display: flex;
    flex-direction: column;
}

.widget-stocks .stock-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.widget-stocks .stock-item:last-child {
    border-bottom: none;
}

.widget-stocks .stock-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.widget-stocks .stock-values {
    text-align: right;
}

.widget-stocks .stock-value {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.widget-stocks .stock-change {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    font-weight: 500;
}

.widget-stocks .stock-change.trend-up {
    color: #28a745;
}

.widget-stocks .stock-change.trend-down {
    color: #dc3545;
}

.widget-stocks .stocks-footer {
    text-align: right;
    padding-top: 10px;
    color: #999;
}

/* ==========================================================================
   STICKY MAIN MENU (Site Header)
   Menempel setelah top-header saat scroll
   ========================================================================== */

/* Main Menu Sticky */
.site-header {
    position: sticky;
    top: 50px;
    /* Tinggi top-header-second */
    z-index: 999;
    transition: box-shadow 0.3s ease;
}

/* Shadow saat scroll (opsional) */
.site-header.is-scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Responsive: Sesuaikan top untuk mobile */
@media (max-width: 767px) {
    .site-header {
        position: relative;
        /* Non-sticky di mobile */
        top: 0;
    }
}

/* ==========================================================================
   Detail Berita
   ========================================================================== */

/* Breadcrumb */
.article-breadcrumb {
    padding: 15px 0;
}

.article-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 12px;
}

.article-breadcrumb .breadcrumb-item a {
    color: #666;
}

.article-breadcrumb .breadcrumb-item.active {
    color: #999;
}

/* Article Header */
.article-detail {
    background: #fff;
    padding: 20px;
    border-radius: 3px;
    margin-bottom: 20px;
}

.article-header {
    margin-bottom: 20px;
}

.article-topic a {
    display: inline-block;
    padding: 4px 12px;
    background: #dd3333;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
    margin-bottom: 15px;
}

.article-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 12px;
    color: #666;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.article-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-meta .meta-category a {
    color: #dd3333;
    font-weight: 600;
}

/* Share Buttons Sticky */
.article-share-sidebar {
    flex-shrink: 0;
    width: 40px;
}

.share-sticky {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f0f0f0;
    border-radius: 50%;
    color: #333;
    transition: all 0.2s ease;
}

.share-btn svg {
    width: 18px;
    height: 18px;
}

.share-btn.share-facebook:hover {
    background: #1877f2;
    color: #fff;
}

.share-btn.share-twitter:hover {
    background: #000;
    color: #fff;
}

.share-btn.share-whatsapp:hover {
    background: #25d366;
    color: #fff;
}

.share-btn.share-telegram:hover {
    background: #0088cc;
    color: #fff;
}

.share-btn.share-pinterest:hover {
    background: #bd081c;
    color: #fff;
}

/* Article Content */
.article-content-wrapper {
    flex: 1;
}

.article-featured-image {
    margin-bottom: 20px;
    width: fit-content;
    margin: 0 auto;
    margin-bottom: 1rem;
}

.article-featured-image img {
    max-width: 100%;
    width: auto;
    border-radius: 3px;
    height: auto;
}

.article-featured-image figcaption {
    font-size: 12px;
    color: #666;
    font-style: italic;
    margin-top: 3px;
}

.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.article-content p {
    margin-bottom: 1.5em;
}

.article-content blockquote {
    border-left: 4px solid #dd3333;
    padding: 15px 20px;
    margin: 20px 0;
    background: #f9f9f9;
    font-style: italic;
}

.article-content ul,
.article-content ol {
    margin: 1.5em 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 8px;
}

/* Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #eee;
}

.tags-label {
    font-weight: 600;
    color: #333;
}

.article-tags .tag-item {
    padding: 4px 12px;
    background: #f0f0f0;
    border-radius: 3px;
    font-size: 12px;
    color: #555;
}

.article-tags .tag-item:hover {
    background: #dd3333;
    color: #fff;
}

/* Mobile Share */
.article-share-mobile {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.article-share-mobile .share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.article-share-mobile .share-btn {
    flex: 1;
    height: auto;
    width: auto;
    border-radius: 3px;
    padding: 10px;
    font-size: 12px;
    font-weight: 600;
}

/* Related Articles */
.related-articles {
    background: #fff;
    padding: 20px;
    border-radius: 3px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dd3333;
}

.related-item h4 {
    font-size: 14px;
    margin-top: 10px;
}

.related-item h4 a {
    color: #333;
}

.related-item h4 a:hover {
    color: #dd3333;
}

/* Responsive */
@media (max-width: 991px) {
    .article-title {
        font-size: 19px;
    }

    .article-content {
        font-size: 16px;
    }
}

/* Iklan Sticky di Konten Artikel */
.content-ad-sticky {
    position: sticky;
    top: 120px;
}

.content-ad-sticky .ad-banner {
    min-height: 300px;
}

/* ==========================================================================
   Font Resize Controls
   ========================================================================== */
.font-resize-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
}

.font-resize-label {
    font-size: 11px;
    color: #666;
    margin-right: 5px;
}

.font-resize-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.font-resize-btn:hover {
    background: #dd3333;
    border-color: #dd3333;
    color: #fff;
}

.font-resize-btn.is-active {
    background: #dd3333;
    border-color: #dd3333;
    color: #fff;
}

/* Responsive */
@media (max-width: 767px) {
    .font-resize-controls {
        width: 100%;
        justify-content: flex-start;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #eee;
    }
}

/* ===============================
   Featured Card
================================= */

.featured-card {
    position: relative;
    background: #000;
}

/* Image */
.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Badge */
.featured-badge {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.featured-badge .badge {
    font-size: clamp(0.7rem, 1.5vw, 0.9rem);
    padding: 0.5em 0.75em;
    border-radius: 0;
}

/* Overlay */
.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: clamp(1rem, 3vw, 1.5rem);
    z-index: 2;

    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.65) 60%);
}

/* Title */
.featured-title {
    margin: 0;
    font-weight: 700;
}

.featured-title a {
    color: #fff;
    text-decoration: none;
    line-height: 1.2;
    font-size: clamp(1rem, 3vw, 1.2rem);

    /* max 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.75);
}

/* Hover effect */
.featured-title a:hover {
    text-decoration: underline;
}

/* ===============================
   Mobile fine tuning
================================= */

@media (max-width: 575px) {
    .featured-title a {
        -webkit-line-clamp: 3;
    }
}

/* ==========================================================================
   Article Pagination (Nextpage)
   ========================================================================== */
.pagination-wrap {
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.pagination-wrap .label-halaman {
    font-weight: 700;
    margin-right: 15px;
    color: #333;
    text-transform: uppercase;
    font-size: 12px;
}

.pagination-wrap .paging {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.pagination-wrap .paging li {
    margin: 0 5px 5px 0;
}

.pagination-wrap .paging li a {
    display: block;
    padding: 6px 12px;
    background-color: #fff;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.pagination-wrap .paging li a:hover,
.pagination-wrap .paging li a.active {
    background-color: #81d742;
    /* Primary Brand Color */
    color: #fff;
    border-color: #81d742;
}

.pagination-wrap .paging li a.disabled {
    background-color: #eee;
    color: #999;
    cursor: not-allowed;
    border-color: #ddd;
}

/* ==========================================================================
   Social Menu Hover Effects (Custom) - Specificity Fix
   ========================================================================== */

/* Tebalkan teks link */
#primary-menu .gmr-social-menu .sub-menu a {
    font-weight: 500;
}

/* Facebook Hover (Biru) */
#primary-menu .gmr-social-menu a.facebook:hover {
    background-color: #3b5998 !important;
    color: #fff !important;
}

#primary-menu .gmr-social-menu a.facebook:hover svg {
    color: #fff !important;
}

/* Twitter/X Hover (Hitam) */
#primary-menu .gmr-social-menu a.twitter:hover {
    background-color: #000000 !important;
    color: #fff !important;
}

#primary-menu .gmr-social-menu a.twitter:hover svg {
    color: #fff !important;
}

/* Instagram Hover (Gradient) */
#primary-menu .gmr-social-menu a.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    color: #fff !important;
}

#primary-menu .gmr-social-menu a.instagram:hover svg {
    color: #fff !important;
}

/* YouTube Hover (Merah) */
#primary-menu .gmr-social-menu a.youtube:hover {
    background-color: #bb0000 !important;
    color: #fff !important;
}

#primary-menu .gmr-social-menu a.youtube:hover svg {
    color: #fff !important;
}

/* TikTok Hover (Hitam) */
#primary-menu .gmr-social-menu a.tiktok:hover {
    background-color: #000000 !important;
    color: #fff !important;
}

#primary-menu .gmr-social-menu a.tiktok:hover svg {
    color: #fff !important;
}

/* RSS Hover (Oranye) */
#primary-menu .gmr-social-menu a.rss:hover {
    background-color: #ee802f !important;
    color: #fff !important;
}

#primary-menu .gmr-social-menu a.rss:hover svg {
    color: #fff !important;
}

.widget-area-sidebar,
.widget-area-sidebar_left {
    background-color: #fff;
    border-radius: 3px;
    /* border: 1px solid #81d742; */
    border: 1px solid rgb(0 0 0 / 30%);
    padding: 12px;
}

/* ==========================================================================
   Related List Section (Berita Terkait - Format List)
   ========================================================================== */
.related-list-section {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1rem;
}

.related-list-title {
    font-size: 15px;
    font-weight: 600;
    color: #dd1111;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid #dd3333;
    padding-bottom: 0.5rem;
}

.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-list li {
    padding: 2px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    line-height: 1.5;
}

.related-list li:last-child {
    border-bottom: none;
}

.related-list li a {
    /* color: #0d6efd; */
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: block;
    transition: color 0.2s ease;
}

.related-list li a:hover {
    color: #0b63a1;
}

/* ==========================================================================
   Post Navigation (Pos Sebelumnya / Berikutnya)
   ========================================================================== */
.post-navigation {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1rem;
}

.post-nav-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    max-width: 48%;
    padding: 12px 15px;
    background-color: #f9f9f9;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.post-nav-link:hover {
    background-color: #81d742;
    border-color: #81d742;
}

.post-nav-link:hover .post-nav-label,
.post-nav-link:hover .post-nav-title {
    color: #fff;
}

.post-nav-link.disabled {
    visibility: hidden;
}

.post-nav-label {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    margin-bottom: 4px;
}

.post-nav-title {
    font-size: 13px;
    color: #333;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-nav-next {
    text-align: right;
}

@media (max-width: 767px) {
    .post-nav-link {
        max-width: 100%;
    }

    .post-navigation .d-flex {
        flex-direction: column;
    }
}

/* ==========================================================================
   Comments Section
   ========================================================================== */
#comments {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 20px;
}

#comments .section-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #dd3333;
}

#comments .section-title span {
    background-color: #fff;
    padding-right: 15px;
}

/* Comment List */
.comment-list {
    max-height: 500px;
    overflow-y: auto;
}

.comment-item {
    border-left: 3px solid #81d742;
    transition: all 0.2s ease;
}

.comment-item:hover {
    border-left-color: #dd3333;
    background-color: #f5f5f5 !important;
}

.comment-avatar img {
    border: 2px solid #81d742;
    transition: border-color 0.2s ease;
}

.comment-item:hover .comment-avatar img {
    border-color: #dd3333;
}

.comment-meta strong {
    font-size: 14px;
    color: #333;
}

.comment-meta small {
    font-size: 12px;
}

.comment-content p {
    font-size: 13px;
    line-height: 1.6;
    color: #555;
}

/* Comment Form */
.comment-form {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.comment-form h5 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.comment-form .form-control {
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 13px;
    padding: 10px 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-form .form-control:focus {
    border-color: #81d742;
    box-shadow: 0 0 0 3px rgba(129, 215, 66, 0.15);
}

.comment-form textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.comment-form .btn-primary {
    background-color: #81d742;
    border-color: #81d742;
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.25s ease;
}

.comment-form .btn-primary:hover {
    background-color: #59d600;
    border-color: #59d600;
    transform: translateY(-1px);
}

/* No comments message */
#comments .text-muted {
    font-size: 14px;
    font-style: italic;
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
    align-self: start;
}

.page-header-border {
    border-bottom: 2px solid rgba(0, 0, 0, 0.15);
}

.widget-type-custom_html {
    font-size: 1rem;
}

table,
td,
th {
    border: 1px solid #ddd;
    text-align: left;
}

table {
    border-collapse: collapse;
    width: 100%;
}

th,
td {
    padding: 10px;
}