/**
 * BeritaPAS - Custom CSS
 * Warna Hijau PAS: #009639
 * OVERRIDE ColorMag Blue Theme
 */

/* ================================
   FORCE GREEN - Override Everything
   ================================ */

/* Navigation - FORCE GREEN */
#site-navigation,
.main-navigation,
nav.main-navigation,
#site-navigation.main-navigation,
.main-navigation.clearfix,
div#site-navigation,
header .main-navigation,
#masthead .main-navigation,
#masthead #site-navigation,
body .main-navigation,
body #site-navigation,
html body #site-navigation,
html body .main-navigation {
    background: #009639 !important;
    background-color: #009639 !important;
}

/* Navigation menu items */
.main-navigation ul,
.main-navigation .menu,
.main-navigation ul li,
#site-navigation ul,
#site-navigation ul li,
.main-navigation > div > ul,
.main-navigation .nav-menu {
    background: #009639 !important;
    background-color: #009639 !important;
}

/* Navigation links - WHITE text */
.main-navigation a,
.main-navigation ul li a,
.main-navigation ul ul li a,
#site-navigation a,
#site-navigation ul li a,
.main-navigation .menu-item a,
.main-navigation .nav-menu li a,
body .main-navigation ul li a,
html body .main-navigation ul li a {
    color: #ffffff !important;
}

/* Navigation hover */
.main-navigation ul li:hover,
.main-navigation ul li:hover > a,
.main-navigation ul li.current-menu-item,
.main-navigation ul li.current-menu-item > a,
#site-navigation ul li:hover > a {
    background: #00752e !important;
    background-color: #00752e !important;
    color: #ffffff !important;
}

/* Dropdown */
.main-navigation ul ul,
.main-navigation ul ul li,
.main-navigation .sub-menu,
.main-navigation .sub-menu li {
    background: #009639 !important;
    background-color: #009639 !important;
}

.main-navigation ul ul li:hover > a,
.main-navigation .sub-menu li:hover > a {
    background: #00752e !important;
    background-color: #00752e !important;
}

/* ================================
   SITE TITLE
   ================================ */

.site-title a,
h1.site-title a,
.site-branding .site-title a,
#masthead .site-title a,
body .site-title a,
html body .site-title a {
    color: #009639 !important;
}

/* ================================
   CATEGORY BADGES - FORCE GREEN
   ================================ */

.cat-links a,
span.cat-links a,
.entry-meta .cat-links a,
.below-entry-meta .cat-links a,
.post .cat-links a,
article .cat-links a,
.category-links a,
body .cat-links a,
html body .cat-links a,
html body span.cat-links a,
html body .entry-meta .cat-links a {
    background: #009639 !important;
    background-color: #009639 !important;
    color: #ffffff !important;
}

.cat-links a:hover,
span.cat-links a:hover {
    background: #00752e !important;
    background-color: #00752e !important;
}

/* ================================
   READ MORE BUTTONS - FORCE GREEN
   ================================ */

.read-more a,
.more-link,
a.read-more,
.entry-content .read-more a,
article .read-more a,
body .read-more a,
html body .read-more a,
html body a.read-more {
    background: #009639 !important;
    background-color: #009639 !important;
    color: #ffffff !important;
    border-color: #009639 !important;
}

.read-more a:hover,
.more-link:hover,
a.read-more:hover {
    background: #00752e !important;
    background-color: #00752e !important;
    border-color: #00752e !important;
}

/* ================================
   WIDGET TITLES - FORCE GREEN
   ================================ */

.widget-title,
.widget-title span,
#secondary .widget-title,
#secondary .widget-title span,
aside .widget-title,
aside .widget-title span,
.sidebar .widget-title,
.sidebar .widget-title span,
body .widget-title span,
html body .widget-title span {
    background: #009639 !important;
    background-color: #009639 !important;
    color: #ffffff !important;
    border-bottom-color: #009639 !important;
}

/* ================================
   FOOTER - FORCE GREEN
   ================================ */

.footer-widgets-area,
.footer-widgets-wrapper,
#colophon,
footer#colophon,
.footer-socket-wrapper,
.footer-socket-area,
.site-footer,
body .footer-widgets-area,
body #colophon,
body .footer-socket-wrapper,
html body .footer-widgets-area,
html body #colophon,
html body footer#colophon,
html body .footer-socket-wrapper {
    background: #009639 !important;
    background-color: #009639 !important;
}

.footer-socket-wrapper,
.footer-socket-area,
body .footer-socket-wrapper,
html body .footer-socket-wrapper {
    background: #00752e !important;
    background-color: #00752e !important;
}

/* Footer text */
.footer-widgets-area,
.footer-widgets-area *,
#colophon,
#colophon *,
.footer-socket-wrapper,
.footer-socket-wrapper * {
    color: #ffffff !important;
}

.footer-widgets-area a,
#colophon a,
.footer-socket-wrapper a {
    color: rgba(255,255,255,0.9) !important;
}

/* ================================
   BUTTONS - FORCE GREEN
   ================================ */

button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.button,
.btn,
.wp-block-button__link,
#respond .form-submit input,
body button,
body input[type="submit"],
html body button,
html body input[type="submit"] {
    background: #009639 !important;
    background-color: #009639 !important;
    border-color: #009639 !important;
    color: #ffffff !important;
}

button:hover,
input[type="submit"]:hover,
.button:hover {
    background: #00752e !important;
    background-color: #00752e !important;
    border-color: #00752e !important;
}

/* ================================
   SEARCH BUTTON
   ================================ */

.search-form .search-submit,
.search-submit,
#secondary .search-submit,
body .search-submit,
html body .search-submit {
    background: #009639 !important;
    background-color: #009639 !important;
}

/* ================================
   LINKS
   ================================ */

a {
    color: #009639;
}

a:hover, a:focus {
    color: #00752e;
}

.entry-title a:hover,
h2.entry-title a:hover {
    color: #009639 !important;
}

/* ================================
   PAGINATION
   ================================ */

.pagination .current,
.page-numbers.current,
.pagination a:hover,
.page-numbers:hover {
    background: #009639 !important;
    background-color: #009639 !important;
    border-color: #009639 !important;
    color: #ffffff !important;
}

/* ================================
   HEADER BORDER
   ================================ */

#masthead,
.header-bottom {
    border-bottom-color: #009639 !important;
}

/* ================================
   BLOCKQUOTE / QURAN - FIX VISIBILITY
   ================================ */

/* Arabic text blockquote - make it visible! */
blockquote,
.entry-content blockquote,
article blockquote {
    background: #e8f5e9 !important;
    border-left: 4px solid #009639 !important;
    padding: 20px !important;
    margin: 20px 0 !important;
    color: #333333 !important;
}

/* RTL Arabic blockquote */
blockquote[dir="rtl"],
.entry-content blockquote[dir="rtl"],
.quran-verse {
    direction: rtl !important;
    text-align: right !important;
    font-family: 'Amiri', 'Noto Naskh Arabic', 'Traditional Arabic', serif !important;
    font-size: 1.4em !important;
    line-height: 2 !important;
    background: #e8f5e9 !important;
    border-right: 5px solid #009639 !important;
    border-left: none !important;
    padding: 25px !important;
    color: #1a1a1a !important;
}

/* Translation blockquote */
blockquote:not([dir="rtl"]),
.entry-content blockquote:not([dir="rtl"]) {
    font-style: italic;
    background: #d4edda !important;
    border-left: 4px solid #009639 !important;
    color: #333333 !important;
}

/* Blockquote text - ensure visible */
blockquote *,
blockquote p,
blockquote span,
.entry-content blockquote *,
.entry-content blockquote p {
    color: #333333 !important;
}

blockquote[dir="rtl"] *,
blockquote[dir="rtl"] p,
.quran-verse * {
    color: #1a1a1a !important;
}

/* ================================
   SHORTCODE STYLING - QURAN & TERJEMAH
   ================================ */

/* Quran/Hadis shortcode */
blockquote.quran-verse {
    direction: rtl !important;
    text-align: right !important;
    font-family: 'Amiri', 'Noto Naskh Arabic', 'Traditional Arabic', serif !important;
    font-size: 1.5em !important;
    line-height: 2.2 !important;
    background: #e8f5e9 !important;
    border-right: 5px solid #009639 !important;
    border-left: none !important;
    padding: 25px 30px !important;
    margin: 25px 0 !important;
    color: #1a1a1a !important;
    border-radius: 8px !important;
    position: relative !important;
}

blockquote.quran-verse::before {
    content: '"' !important;
    position: absolute !important;
    top: 10px !important;
    right: 15px !important;
    font-size: 60px !important;
    color: rgba(0, 150, 57, 0.15) !important;
    font-family: Georgia, serif !important;
    line-height: 1 !important;
}

.quran-caption {
    display: block !important;
    text-align: left !important;
    font-size: 12px !important;
    color: #009639 !important;
    margin-top: 15px !important;
    padding-top: 10px !important;
    border-top: 1px solid rgba(0,150,57,0.2) !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 600 !important;
}

/* Terjemahan shortcode */
blockquote.terjemahan {
    direction: ltr !important;
    text-align: left !important;
    font-style: italic !important;
    background: #d4edda !important;
    border-left: 5px solid #009639 !important;
    border-right: none !important;
    padding: 20px 25px !important;
    margin: 20px 0 !important;
    color: #333 !important;
    border-radius: 8px !important;
    font-size: 1em !important;
    line-height: 1.8 !important;
}

blockquote.terjemahan em {
    font-style: italic !important;
    color: #333 !important;
}

/* ================================
   BREAKING NEWS
   ================================ */

.breaking-news,
.breaking-news-wrap {
    background: #009639 !important;
    background-color: #009639 !important;
}

/* ================================
   COLORMAG CSS VARIABLES OVERRIDE
   ================================ */

:root {
    --flavor-flavor-Flavorcolormag-primary-color: #009639 !important;
    --colormag-primary-color: #009639 !important;
    --flavor-primary-color: #009639 !important;
    --flavor-flavor-flavor-Flavorprimary: #009639 !important;
}

/* ================================
   MOBILE MENU
   ================================ */

.menu-toggle,
.main-navigation .menu-toggle,
#masthead .menu-toggle {
    background: #009639 !important;
    background-color: #009639 !important;
}

.main-navigation.toggled ul,
.main-navigation.toggled .menu {
    background: #009639 !important;
    background-color: #009639 !important;
}

/* ================================
   GOOGLE FONTS - Arabic
   ================================ */
@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Noto+Naskh+Arabic:wght@400;500;600;700&display=swap');

/* ================================
   CLEAN LAYOUT - Islam Times Style
   ================================ */

/* Header - cleaner */
#masthead {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-title {
    font-size: 32px !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px;
}

/* Article cards - modern look */
article.post {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin-bottom: 25px !important;
    border: 1px solid #eee;
}

article.post:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* Entry title - cleaner */
.entry-title {
    font-size: 20px !important;
    line-height: 1.4 !important;
    margin-bottom: 10px !important;
}

.entry-title a {
    color: #1a1a1a !important;
    text-decoration: none;
}

.entry-title a:hover {
    color: #009639 !important;
}

/* Category badge - single, clean */
.cat-links {
    margin-bottom: 8px !important;
}

.cat-links a {
    font-size: 11px !important;
    padding: 4px 10px !important;
    border-radius: 3px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-weight: 600 !important;
}

/* Hide author meta - cleaner look */
.byline,
.author.vcard,
span.byline {
    display: none !important;
}

/* Date styling */
.posted-on,
.entry-meta .posted-on {
    color: #888 !important;
    font-size: 12px !important;
}

.posted-on a {
    color: #888 !important;
}

/* Entry content excerpt */
.entry-content p,
.entry-summary p {
    color: #555 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

/* Read more button - cleaner */
.read-more a,
a.read-more {
    font-size: 12px !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-weight: 600 !important;
}

/* Page/Archive title */
.page-header .page-title,
.archive-title {
    background: #009639 !important;
    color: #fff !important;
    padding: 12px 20px !important;
    border-radius: 4px !important;
    font-size: 18px !important;
    margin-bottom: 25px !important;
}

/* Sidebar clean */
#secondary .widget {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

#secondary .widget-title {
    font-size: 14px !important;
    padding: 10px 15px !important;
    margin: -20px -20px 15px -20px !important;
    border-radius: 8px 8px 0 0 !important;
}

/* Category list in sidebar */
.widget_categories ul li {
    padding: 8px 0 !important;
    border-bottom: 1px solid #f0f0f0;
}

.widget_categories ul li:last-child {
    border-bottom: none;
}

.widget_categories ul li a {
    color: #333 !important;
    font-size: 14px;
}

.widget_categories ul li a:hover {
    color: #009639 !important;
}

/* Recent posts widget */
.widget_recent_entries ul li {
    padding: 10px 0 !important;
    border-bottom: 1px solid #f0f0f0;
}

.widget_recent_entries ul li a {
    color: #333 !important;
    font-size: 14px;
    line-height: 1.4;
}

/* Archive dropdown */
.widget_archive select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Grid layout for archive */
@media (min-width: 768px) {
    .archive #primary article {
        display: flex;
        flex-direction: column;
    }
}

/* Footer clean */
.footer-socket-wrapper .copyright {
    font-size: 13px !important;
}

/* Remove clutter */
.entry-meta .comments-link,
.entry-meta .edit-link,
.tags-links {
    display: none !important;
}

/* Breadcrumb styling */
.breadcrumb-trail,
.trail-items {
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
}

/* Clean spacing */
#content {
    padding-top: 30px !important;
}

/* Category page header */
.category .page-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #009639;
}

/* No results styling */
.no-results {
    text-align: center;
    padding: 50px 20px;
}

/* ================================
   ARKIB PAGE SPECIAL STYLING
   ================================ */

.category-arkib .page-title,
.category-arkib .archive-title {
    background: linear-gradient(135deg, #009639, #00752e) !important;
}

/* ================================
   HIDE CATEGORY COUNT IN WIDGETS
   ================================ */

.widget_categories li .count,
.widget_categories li .post-count,
.widget_categories ul li span,
.widget_archive li .count,
.cat-item .count,
.cat-item span.count {
    display: none !important;
}

/* Hide parentheses count like (20) */
.widget_categories li a::after {
    content: none !important;
}

/* Force hide all count numbers in categories */
.widget_categories li {
    list-style: none;
}

.widget_categories li a {
    display: block;
}

/* Remove the (number) text completely */
.cat-item {
    font-size: 0;
}

.cat-item a {
    font-size: 14px !important;
}

/* Alternative: hide anything after the link */
.widget_categories .cat-item > a ~ * {
    display: none !important;
}

/* ================================
   HOMEPAGE IMPROVEMENTS
   ================================ */

/* Featured slider area */
.featured-slider-area {
    margin-bottom: 30px;
}

/* Category title on homepage */
.widget-title {
    font-size: 16px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Article grid on homepage */
.tg-module-grid {
    gap: 20px;
}

/* Featured post block */
.tg-module-block {
    margin-bottom: 30px;
}

/* First article larger */
.tg-module-block .tg-module-first {
    margin-bottom: 20px;
}

/* ================================
   RESPONSIVE IMPROVEMENTS
   ================================ */

@media (max-width: 768px) {
    .site-title {
        font-size: 24px !important;
    }

    .entry-title {
        font-size: 18px !important;
    }

    article.post {
        margin-bottom: 20px !important;
    }
}

/* ================================
   ISLAM TIMES STYLE HOMEPAGE
   ================================ */

/* Main content area */
#content {
    background: #f5f5f5;
}

.inner-wrap {
    max-width: 1200px;
    margin: 0 auto;
}

/* Featured Slider - Large */
.colormag-widget-wrapper .featured-posts-slider,
.big-slider-wrapper {
    margin-bottom: 25px;
}

.featured-posts-slider .slider-posts {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.featured-posts-slider .slide-content {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 60%);
}

.featured-posts-slider .entry-title {
    font-size: 26px !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.featured-posts-slider .entry-title a {
    color: #fff !important;
}

/* Highlighted Posts - 4 Grid */
.highlighted-posts-widget {
    margin-bottom: 30px;
}

.highlighted-posts-widget .widget-title {
    background: linear-gradient(135deg, #009639, #00752e) !important;
    border-radius: 4px 4px 0 0 !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.highlighted-posts-widget .tg-col-control {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.highlighted-posts-widget article {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlighted-posts-widget article:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.highlighted-posts-widget .entry-title {
    font-size: 14px !important;
    padding: 12px !important;
    line-height: 1.4;
}

/* Featured Posts Blocks - Category Sections */
.featured-posts-widget {
    background: #fff;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    overflow: hidden;
}

.featured-posts-widget .widget-title {
    background: linear-gradient(135deg, #009639, #00752e) !important;
    padding: 12px 20px !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.featured-posts-widget .widget-title span {
    background: transparent !important;
    padding: 0 !important;
}

.featured-posts-widget .tg-col-control {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.featured-posts-widget .single-article {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.featured-posts-widget .single-article:nth-child(odd) {
    border-right: 1px solid #f0f0f0;
}

.featured-posts-widget .single-article img {
    border-radius: 6px;
}

.featured-posts-widget .entry-title {
    font-size: 15px !important;
    margin-top: 10px !important;
}

/* Vertical Posts Widget - Sidebar */
.featured-posts-vertical-widget {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}

.featured-posts-vertical-widget .widget-title {
    border-radius: 0 !important;
    margin: 0 !important;
}

.featured-posts-vertical-widget .single-article {
    display: flex;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.featured-posts-vertical-widget .single-article:hover {
    background: #f9f9f9;
}

.featured-posts-vertical-widget .single-article:last-child {
    border-bottom: none;
}

.featured-posts-vertical-widget .article-content {
    flex: 1;
}

.featured-posts-vertical-widget .entry-title {
    font-size: 13px !important;
    line-height: 1.4;
    margin: 0 !important;
}

.featured-posts-vertical-widget .featured-image {
    width: 80px;
    height: 60px;
    margin-right: 12px;
    flex-shrink: 0;
}

.featured-posts-vertical-widget .featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* Breaking News Ticker */
.breaking-news {
    background: linear-gradient(135deg, #c70000, #ff4444) !important;
    margin-bottom: 20px;
    border-radius: 0;
}

.breaking-news .breaking-news-title {
    background: #a00 !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breaking-news ul li a {
    color: #fff !important;
    font-weight: 500;
}

/* Category Badge Colors by Category */
.cat-links a[href*="minda-presiden"] {
    background: #009639 !important;
}

.cat-links a[href*="terengganu"] {
    background: #e74c3c !important;
}

.cat-links a[href*="kelantan"] {
    background: #9b59b6 !important;
}

.cat-links a[href*="kedah"] {
    background: #f39c12 !important;
}

.cat-links a[href*="pahang"] {
    background: #3498db !important;
}

.cat-links a[href*="selangor"] {
    background: #e67e22 !important;
}

/* Homepage sidebar specific */
.sidebar .widget {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.sidebar .widget-title {
    margin: 0 !important;
    border-radius: 0 !important;
}

/* Post thumbnail hover effect */
.featured-image {
    overflow: hidden;
}

.featured-image img {
    transition: transform 0.3s ease;
}

.featured-image:hover img {
    transform: scale(1.05);
}

/* Section separators */
.colormag-widget-wrapper {
    position: relative;
}

/* Responsive grid */
@media (max-width: 992px) {
    .highlighted-posts-widget .tg-col-control {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .highlighted-posts-widget .tg-col-control {
        grid-template-columns: 1fr;
    }

    .featured-posts-widget .tg-col-control {
        grid-template-columns: 1fr;
    }

    .featured-posts-widget .single-article:nth-child(odd) {
        border-right: none;
    }
}

/* Widget title hover indicator */
.widget-title span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: rgba(255,255,255,0.5);
}

/* Clean link styles in widgets */
.widget ul li a {
    color: #333;
    transition: color 0.2s ease;
}

.widget ul li a:hover {
    color: #009639;
}

/* ================================
   ENHANCED ISLAM TIMES STYLE
   ================================ */

/* Header area - cleaner */
#masthead {
    background: #fff;
    border-bottom: 3px solid #009639;
}

.site-branding {
    padding: 15px 0;
}

.site-title {
    font-size: 36px !important;
    font-weight: 800 !important;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.site-description {
    color: #666;
    font-size: 13px;
    margin-top: 5px;
}

/* Top bar */
.top-bar {
    background: #222;
    color: #fff;
    font-size: 12px;
}

/* Breaking News - Red banner */
.breaking-news {
    background: linear-gradient(90deg, #c41e3a, #e63950) !important;
    padding: 8px 0;
    margin-bottom: 0;
}

.breaking-news .breaking-news-title {
    background: #8b0000 !important;
    padding: 8px 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
}

.breaking-news .newsticker {
    padding: 0 15px;
}

.breaking-news ul li a {
    color: #fff !important;
    font-size: 13px;
    font-weight: 500;
}

/* Main Navigation - Sleek */
#site-navigation {
    border: none !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-navigation ul li a {
    padding: 15px 18px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Featured Slider - Hero Style */
.big-slider-wrapper,
.featured-slider-wrapper {
    margin-bottom: 30px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.featured-slider-wrapper .slide-content {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 40%, transparent 100%) !important;
    padding: 30px !important;
}

.featured-slider-wrapper .entry-title {
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.featured-slider-wrapper .entry-title a {
    color: #fff !important;
}

.featured-slider-wrapper .below-entry-meta {
    margin-top: 15px;
}

.featured-slider-wrapper .below-entry-meta span {
    color: rgba(255,255,255,0.8) !important;
    font-size: 12px;
}

/* Slider navigation dots */
.featured-slider-wrapper .lSSlideOuter .lSPager.lSpg > li a {
    background: rgba(255,255,255,0.5);
}

.featured-slider-wrapper .lSSlideOuter .lSPager.lSpg > li.active a {
    background: #009639;
}

/* Highlighted Posts Grid - 4 columns */
.tg-module-wrapper {
    margin-bottom: 30px;
}

.tg-module-wrapper .widget-title {
    background: #009639 !important;
    padding: 12px 20px !important;
    margin-bottom: 20px !important;
    border-radius: 0 !important;
    position: relative;
}

.tg-module-wrapper .widget-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20px;
    border: 5px solid transparent;
    border-top-color: #009639;
}

.tg-module-wrapper .widget-title span {
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Article Cards in Grid */
.tg-module-wrapper article,
.featured-posts article {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.tg-module-wrapper article:hover,
.featured-posts article:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.tg-module-wrapper .entry-title {
    padding: 12px 15px !important;
    margin: 0 !important;
}

.tg-module-wrapper .entry-title a {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #222 !important;
    line-height: 1.4 !important;
}

.tg-module-wrapper .entry-title a:hover {
    color: #009639 !important;
}

/* Featured image hover zoom */
.tg-module-wrapper figure,
.featured-posts figure {
    overflow: hidden;
    margin: 0;
}

.tg-module-wrapper figure img,
.featured-posts figure img {
    transition: transform 0.5s ease;
    width: 100%;
}

.tg-module-wrapper article:hover figure img,
.featured-posts article:hover figure img {
    transform: scale(1.08);
}

/* Category Label on Cards */
.tg-module-wrapper .cat-links,
.featured-posts .cat-links {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.tg-module-wrapper .cat-links a,
.featured-posts .cat-links a {
    font-size: 10px !important;
    padding: 4px 8px !important;
    border-radius: 2px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section Blocks */
.tg-module-block {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

/* Sidebar Enhancement */
#secondary {
    padding-left: 20px;
}

#secondary .widget {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

#secondary .widget-title {
    background: linear-gradient(135deg, #009639, #007a2e) !important;
    margin: 0 !important;
    padding: 14px 18px !important;
    border-radius: 0 !important;
}

#secondary .widget-title span {
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sidebar post list */
#secondary .single-article {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

#secondary .single-article:hover {
    background: #f9f9f9;
}

#secondary .single-article:last-child {
    border-bottom: none;
}

#secondary .single-article figure {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    margin-right: 12px;
    border-radius: 4px;
    overflow: hidden;
}

#secondary .single-article figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#secondary .single-article .entry-title {
    font-size: 13px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

#secondary .single-article .entry-title a {
    color: #333 !important;
}

#secondary .single-article .entry-title a:hover {
    color: #009639 !important;
}

/* Date in sidebar */
#secondary .below-entry-meta {
    margin-top: 5px;
}

#secondary .below-entry-meta .posted-on a {
    font-size: 11px !important;
    color: #999 !important;
}

/* Footer Enhancement */
#colophon {
    background: linear-gradient(180deg, #009639, #006b2a) !important;
}

.footer-widgets-wrapper {
    padding: 40px 0;
}

.footer-widgets-wrapper .widget-title {
    background: transparent !important;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding: 0 0 10px 0 !important;
    margin-bottom: 20px !important;
}

.footer-socket-wrapper {
    background: rgba(0,0,0,0.2) !important;
    padding: 15px 0;
}

.footer-socket-wrapper .copyright {
    font-size: 12px;
}

/* Single Post Enhancement */
.single .entry-title {
    font-size: 32px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-bottom: 15px !important;
}

.single .entry-meta {
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 25px;
}

.single .entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.single .entry-content p {
    margin-bottom: 1.5em;
}

/* Related Posts */
.related-posts-wrapper {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
}

/* Pagination Enhancement */
.pagination {
    margin: 30px 0;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 3px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #009639 !important;
    color: #fff !important;
}

/* Category Colors */
.cat-links a[href*="minda-presiden"] { background: #009639 !important; }
.cat-links a[href*="terengganu"] { background: #e74c3c !important; }
.cat-links a[href*="kelantan"] { background: #9b59b6 !important; }
.cat-links a[href*="kedah"] { background: #f39c12 !important; }
.cat-links a[href*="pahang"] { background: #3498db !important; }
.cat-links a[href*="selangor"] { background: #e67e22 !important; }
.cat-links a[href*="johor"] { background: #1abc9c !important; }
.cat-links a[href*="perak"] { background: #34495e !important; }
.cat-links a[href*="pusat"] { background: #009639 !important; }
.cat-links a[href*="arkib"] { background: #7f8c8d !important; }

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

article {
    animation: fadeInUp 0.5s ease;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Print styles */
@media print {
    #masthead, #site-navigation, #secondary, #colophon, .breaking-news {
        display: none !important;
    }

    .entry-content {
        font-size: 12pt;
    }
}

/* ================================
   HOMEPAGE SECTION IMPROVEMENTS
   ================================ */

/* Different colors for different state sections */
.colormag_featured_posts_widget:nth-of-type(3) .widget-title {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important; /* Terengganu - Red */
}

.colormag_featured_posts_widget:nth-of-type(4) .widget-title {
    background: linear-gradient(135deg, #f39c12, #d68910) !important; /* Kedah - Orange */
}

.colormag_featured_posts_widget:nth-of-type(5) .widget-title {
    background: linear-gradient(135deg, #9b59b6, #8e44ad) !important; /* Kelantan - Purple */
}

/* Section container styling */
.tg-module-wrapper {
    background: #fff;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    overflow: hidden;
}

.tg-module-wrapper .module-title {
    margin: 0;
    padding: 0;
}

.tg-module-wrapper .tg-module-content {
    padding: 20px;
}

/* Article cards within sections */
.tg-module-wrapper .single-article {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.tg-module-wrapper .single-article:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Better image aspect ratio */
.tg-module-wrapper figure {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.tg-module-wrapper figure img {
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

.tg-module-wrapper article:hover figure img {
    transform: scale(1.05);
}

/* Title styling in blocks */
.tg-module-wrapper .entry-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin: 12px 0 8px 0 !important;
}

.tg-module-wrapper .entry-title a {
    color: #222 !important;
    transition: color 0.2s ease;
}

.tg-module-wrapper .entry-title a:hover {
    color: #009639 !important;
}

/* Meta info */
.tg-module-wrapper .below-entry-meta {
    font-size: 12px;
    color: #888;
}

.tg-module-wrapper .below-entry-meta a {
    color: #888;
}

/* Excerpt */
.tg-module-wrapper .entry-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 8px 0 0 0;
}

/* Grid layout for featured blocks */
.tg-module-wrapper .tg-col-control {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .tg-module-wrapper .tg-col-control {
        grid-template-columns: 1fr;
    }
}

/* Slider improvements */
.featured-posts-slider-wrapper {
    margin-bottom: 30px;
}

.featured-posts-slider-wrapper .big_slider_wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

/* View more link */
.tg-module-wrapper .view-more {
    display: block;
    text-align: center;
    padding: 12px;
    background: #f8f9fa;
    color: #009639;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    border-top: 1px solid #eee;
    transition: all 0.2s ease;
}

.tg-module-wrapper .view-more:hover {
    background: #009639;
    color: #fff;
}

/* Clean up any leftover issues */
.tg-module-wrapper .tg-module-meta {
    display: none; /* Hide redundant meta */
}

/* Better spacing for magazine template */
.page-template-magazine #primary {
    padding: 0;
}

.page-template-magazine .inner-wrap {
    padding: 20px;
}

/* ================================
   SINGLE ARTICLE PAGE FIXES
   ================================ */

/* AGGRESSIVE: Hide ALL slider/featured widgets on single posts */
.single .featured-posts-slider-wrapper,
.single .big_slider_wrapper,
.single .featured-slider-wrapper,
.single .colormag_featured_posts_slider_widget,
.single .highlighted-posts-widget,
.single .tg-module-wrapper:not(.related-posts-wrapper),
.single .widget_featured_slider,
.single .widget_featured_posts,
.single .widget_beside_slider,
.single .widget_slider_area,
.single .cm-slider-area,
.single .cm-featured-category-slider-widget,
.single .cm-beside-slider-widget,
.single-post .widget_featured_slider,
.single-post .widget_featured_posts,
.single-post .cm-slider-area,
body.single .widget_featured_slider,
body.single .widget_featured_posts,
body.single-post .widget_featured_slider,
body.single-post .widget_featured_posts {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* HIDE any horizontal scroll / slider anywhere on single post */
.single .lSSlideWrapper,
.single .lightSlider,
.single-post .lSSlideWrapper,
.single-post .lightSlider,
body.single .lSSlideWrapper,
body.single .lightSlider,
body.single-post .lSSlideWrapper,
body.single-post .lightSlider,
.single .bx-wrapper,
.single-post .bx-wrapper,
.single .slick-slider,
.single-post .slick-slider,
.single [class*="slider"],
.single-post [class*="slider"]:not(.comment-form):not(input),
.single .cm-posts-slider,
.single-post .cm-posts-slider {
    display: none !important;
}

/* Hide related/featured post sections in header on single */
.single #colormag_widget_area,
.single-post #colormag_widget_area,
.single .colormag-widget-wrapper,
.single-post .colormag-widget-wrapper,
body.single #colormag_widget_area,
body.single-post #colormag_widget_area {
    display: none !important;
}

/* FORCE FULL WIDTH SINGLE COLUMN on single posts */
.single .cm-row,
.single-post .cm-row,
body.single .cm-row,
body.single-post .cm-row,
body.single .cm-content .cm-row,
body.single-post .cm-content .cm-row {
    display: block !important;
    flex-direction: column !important;
}

.single #cm-primary,
.single-post #cm-primary,
body.single #cm-primary,
body.single-post #cm-primary,
.single #primary,
.single-post #primary,
body.single #primary,
body.single-post #primary,
.single .cm-primary,
.single-post .cm-primary,
body.single .cm-primary,
body.single-post .cm-primary {
    width: 100% !important;
    max-width: 800px !important;
    margin: 0 auto 30px auto !important;
    float: none !important;
    display: block !important;
}

/* HIDE SIDEBAR completely on single posts */
.single #secondary,
.single-post #secondary,
body.single #secondary,
body.single-post #secondary,
.single .sidebar,
.single-post .sidebar,
body.single aside#secondary,
body.single-post aside#secondary,
.single #cm-secondary,
.single-post #cm-secondary,
body.single #cm-secondary,
body.single-post #cm-secondary,
.single .cm-secondary,
.single-post .cm-secondary,
body.single .cm-secondary,
body.single-post .cm-secondary {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Fix post navigation to appear below article */
.single ul.default-wp-page,
.single-post ul.default-wp-page,
body.single ul.default-wp-page,
body.single-post ul.default-wp-page {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    max-width: 800px !important;
    margin: 20px auto !important;
    padding: 15px 20px !important;
    background: #f8f9fa;
    border-radius: 8px;
    list-style: none !important;
}

/* Comment section full width below article */
.single #comments,
.single-post #comments,
body.single #comments,
body.single-post #comments,
.single .comments-area,
.single-post .comments-area,
body.single .comments-area,
body.single-post .comments-area {
    width: 100% !important;
    max-width: 800px !important;
    margin: 30px auto !important;
    display: block !important;
}

/* Single post main content styling */
.single #primary,
.single-post #primary,
.single #cm-primary,
.single-post #cm-primary,
.single .cm-primary,
.single-post .cm-primary,
body.single #cm-primary,
body.single-post #cm-primary {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

/* Ensure single post content container is full width */
.single .cm-container,
.single-post .cm-container,
body.single .cm-container,
body.single-post .cm-container,
body.single .cm-content .cm-container,
body.single-post .cm-content .cm-container {
    max-width: 900px !important;
    margin: 0 auto !important;
}

/* Article within single post */
.single article.post,
.single-post article.post,
body.single article.post,
body.single-post article.post {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    float: none !important;
}

/* Fix .cm-posts container */
.single .cm-posts,
.single-post .cm-posts,
body.single .cm-posts,
body.single-post .cm-posts {
    width: 100% !important;
    display: block !important;
}

/* Article header */
.single .entry-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

/* Article title - clean, readable */
.single .entry-title {
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: #1a1a1a !important;
    margin-bottom: 15px !important;
}

/* Article meta - date, category */
.single .entry-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #666;
    font-size: 13px;
}

.single .entry-meta .cat-links a {
    font-size: 11px !important;
    padding: 4px 10px !important;
}

.single .entry-meta .posted-on {
    color: #888;
}

/* Featured image on single post */
.single .featured-image,
.single .post-featured-image {
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
}

.single .featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Article content - readable typography */
.single .entry-content {
    font-size: 17px !important;
    line-height: 1.85 !important;
    color: #333 !important;
}

.single .entry-content p {
    font-size: 17px !important;
    line-height: 1.85 !important;
    color: #333 !important;
    margin-bottom: 1.5em !important;
}

.single .entry-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 30px 0 15px 0;
}

.single .entry-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 25px 0 12px 0;
}

.single .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 20px 0;
}

.single .entry-content ul,
.single .entry-content ol {
    margin: 1.5em 0;
    padding-left: 1.5em;
}

.single .entry-content li {
    margin-bottom: 0.5em;
    line-height: 1.7;
}

/* ================================
   SIDEBAR ON SINGLE POST
   ================================ */

/* Sidebar container */
.single #secondary {
    background: transparent;
}

/* Recent posts in sidebar */
.single #secondary .widget_recent_entries,
.single #secondary .widget_categories {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Artikel Terkini widget */
.single #secondary .widget_recent_entries .widget-title,
.single #secondary .widget_categories .widget-title {
    background: linear-gradient(135deg, #009639, #007a2e) !important;
    padding: 12px 15px !important;
    margin: 0 !important;
}

.single #secondary .widget_recent_entries ul {
    padding: 0;
    margin: 0;
}

.single #secondary .widget_recent_entries ul li {
    padding: 12px 15px !important;
    border-bottom: 1px solid #f0f0f0;
    margin: 0;
}

.single #secondary .widget_recent_entries ul li:last-child {
    border-bottom: none;
}

.single #secondary .widget_recent_entries ul li a {
    color: #333 !important;
    font-size: 14px;
    line-height: 1.4;
    display: block;
}

.single #secondary .widget_recent_entries ul li a:hover {
    color: #009639 !important;
}

/* ================================
   COMMENT FORM FIXES
   ================================ */

/* Comment section - move to bottom, less prominent */
#comments,
.comments-area {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
}

.comments-area .comments-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #009639;
}

/* Comment form styling */
#respond {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

#respond .comment-reply-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

#respond .comment-form-comment label {
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

#respond .comment-form-comment textarea {
    width: 100%;
    min-height: 120px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    font-size: 15px;
    resize: vertical;
}

#respond .comment-form-comment textarea:focus {
    border-color: #009639;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,150,57,0.1);
}

#respond .form-submit input[type="submit"] {
    background: #009639 !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 25px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: background 0.2s ease;
}

#respond .form-submit input[type="submit"]:hover {
    background: #007a2e !important;
}

/* AGGRESSIVE: Hide comment form in sidebar */
#secondary #respond,
#secondary .comments-area,
#secondary .comment-form,
#secondary #comments,
.sidebar #respond,
.sidebar .comments-area,
.sidebar #comments,
.single #secondary #respond,
.single #secondary .comments-area,
.single #secondary #comments,
.single-post #secondary #respond,
.single-post #secondary .comments-area,
.single-post #secondary #comments,
body.single #secondary #respond,
body.single #secondary .comments-area,
body.single #secondary #comments,
body.single-post #secondary #respond,
body.single-post #secondary .comments-area,
body.single-post #secondary #comments,
aside#secondary #respond,
aside#secondary .comments-area,
aside#secondary #comments,
.widget-area #respond,
.widget-area .comments-area,
.widget-area #comments {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* ================================
   NAVIGATION ARROWS/CONTROLS FIX
   ================================ */

/* Fix slider navigation on single posts */
.single .lSAction,
.single .lSSlideOuter .lSPager {
    display: none !important;
}

/* ================================
   RELATED POSTS SECTION
   ================================ */

.single .related-posts-wrapper {
    display: block !important;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
}

.single .related-posts-wrapper .widget-title {
    background: linear-gradient(135deg, #009639, #007a2e) !important;
    padding: 12px 18px !important;
    margin: -25px -25px 20px -25px !important;
    border-radius: 8px 8px 0 0 !important;
}

/* ================================
   POST NAVIGATION (Previous/Next)
   ================================ */

.single .post-navigation,
.single ul.default-wp-page,
.single-post ul.default-wp-page,
body.single ul.default-wp-page {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex !important;
    justify-content: space-between;
    list-style: none !important;
}

.single ul.default-wp-page li,
.single-post ul.default-wp-page li {
    list-style: none !important;
    flex: 1;
    padding: 10px;
}

.single ul.default-wp-page li.previous {
    text-align: left;
    border-right: 1px solid #eee;
}

.single ul.default-wp-page li.next {
    text-align: right;
}

.single .post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
}

.single .post-navigation .nav-previous a,
.single .post-navigation .nav-next a,
.single ul.default-wp-page li a,
.single-post ul.default-wp-page li a {
    color: #333 !important;
    font-size: 14px;
    text-decoration: none;
    display: block;
}

.single .post-navigation .nav-previous a:hover,
.single .post-navigation .nav-next a:hover,
.single ul.default-wp-page li a:hover {
    color: #009639 !important;
}

/* ================================
   MOBILE RESPONSIVENESS FOR ARTICLE
   ================================ */

@media (max-width: 768px) {
    .single #primary {
        padding: 20px;
        margin: 0 10px 20px 10px;
    }

    .single .entry-title {
        font-size: 22px !important;
    }

    .single .entry-content,
    .single .entry-content p {
        font-size: 16px !important;
        line-height: 1.75 !important;
    }

    .single .entry-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    #comments,
    .comments-area {
        padding: 15px;
    }
}

/* ================================
   BREADCRUMB ON SINGLE POST
   ================================ */

.single .breadcrumb-trail {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 13px;
}

.single .breadcrumb-trail a {
    color: #009639;
}

.single .breadcrumb-trail .sep {
    color: #999;
    margin: 0 8px;
}

/* ================================
   HIDE MOBILE/VERTICAL MENU ON SINGLE POST (DESKTOP ONLY)
   ================================ */

@media (min-width: 769px) {
    /* Hide mobile menu container on single posts - DESKTOP ONLY */
    .single .cm-mobile-nav,
    .single .cm-mobile-menu,
    .single .cm-mobile-row,
    .single .cm-mobile-header-row,
    .single-post .cm-mobile-nav,
    .single-post .cm-mobile-menu,
    body.single .cm-mobile-nav,
    body.single .cm-mobile-menu {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    /* Hide any secondary/vertical navigation on single posts */
    .single .nav-menu-wrapper,
    .single .responsive-menu,
    .single .vertical-menu,
    .single-post .nav-menu-wrapper,
    body.single .nav-menu-wrapper {
        display: none !important;
    }

    /* Hide duplicate header on single posts */
    .single .cm-header-builder .cm-mobile-row,
    .single-post .cm-header-builder .cm-mobile-row {
        display: none !important;
    }

    /* Ensure only primary navigation shows */
    .single #site-navigation .menu,
    .single .main-navigation .menu {
        display: flex !important;
        flex-direction: row !important;
    }

    /* Hide any toggle button artifacts on desktop */
    .single .menu-toggle,
    .single .cm-mobile-toggle,
    .single-post .menu-toggle {
        display: none !important;
    }
}

/* Desktop: Fix dropdown sub-menu behavior */
@media (min-width: 769px) {
    /* Hide the expanded dropdown that appears stuck */
    .single .main-navigation .sub-menu,
    .single #site-navigation .sub-menu {
        display: none !important;
        position: absolute !important;
        visibility: hidden !important;
    }

    /* Show sub-menu only on hover */
    .single .main-navigation li:hover > .sub-menu,
    .single #site-navigation li:hover > .sub-menu {
        display: block !important;
        visibility: visible !important;
    }

    /* Hide any sidebar navigation widget */
    .single .widget_nav_menu,
    .single-post .widget_nav_menu {
        display: none !important;
    }
}

/* ================================
   FIX: HIDE MOBILE ROW ON DESKTOP
   ================================ */

/* CRITICAL: Hide the mobile row on desktop */
.cm-mobile-row,
.cm-row.cm-mobile-row,
#cm-masthead .cm-mobile-row,
.cm-header-builder .cm-mobile-row,
header .cm-mobile-row {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Show mobile row only on mobile devices */
@media (max-width: 768px) {
    .cm-mobile-row,
    .cm-row.cm-mobile-row,
    #cm-masthead .cm-mobile-row,
    .cm-header-builder .cm-mobile-row {
        display: block !important;
        visibility: visible !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* CRITICAL: Hide desktop row COMPLETELY on mobile */
    .cm-desktop-row,
    .cm-row.cm-desktop-row,
    #cm-masthead .cm-desktop-row,
    .cm-header-builder .cm-desktop-row,
    header .cm-desktop-row,
    .cm-header .cm-desktop-row,
    .cm-main-header {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
    }

    /* Style mobile header */
    .cm-mobile-row .cm-site-info {
        text-align: center;
    }

    .cm-mobile-row .cm-site-title a {
        color: #009639 !important;
        font-size: 24px !important;
    }

    .cm-mobile-row .cm-site-description {
        color: #666 !important;
        font-size: 12px !important;
    }

    /* Mobile hamburger menu button */
    .cm-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: #009639 !important;
        padding: 12px 15px !important;
        border: none !important;
        cursor: pointer;
        width: 100%;
    }

    .cm-menu-toggle svg {
        fill: #ffffff !important;
        width: 24px !important;
        height: 24px !important;
        display: block !important;
    }

    /* Hide X icon by default, show bars (hamburger) */
    .cm-menu-toggle .cm-icon--x-mark {
        display: none !important;
    }

    .cm-menu-toggle .cm-icon--bars {
        display: block !important;
    }

    /* When menu is open, show X, hide bars */
    .cm-menu-toggle[aria-expanded="true"] .cm-icon--bars {
        display: none !important;
    }

    .cm-menu-toggle[aria-expanded="true"] .cm-icon--x-mark {
        display: block !important;
    }

    /* Mobile navigation container */
    .cm-mobile-nav-container {
        display: block !important;
    }

    /* Mobile nav (dropdown menu) */
    #cm-mobile-nav,
    .cm-mobile-nav {
        display: none;
        background: #333 !important;
    }

    #cm-mobile-nav.cm-mobile-menu--open,
    .cm-mobile-nav.cm-mobile-menu--open {
        display: block !important;
    }

    .cm-mobile-nav ul li a {
        color: #fff !important;
        padding: 12px 15px !important;
        display: block;
        border-bottom: 1px solid #444;
    }

    .cm-mobile-nav ul li a:hover {
        background: #009639 !important;
    }
}

/* Hide cm-mobile-menu completely on desktop */
#cm-mobile-menu,
.cm-mobile-menu,
ul#cm-mobile-menu,
ul.cm-mobile-menu,
cm-menu-mobile-container,
.cm-menu-mobile-container {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    overflow: hidden !important;
}

/* Show mobile menu only on mobile */
@media (max-width: 768px) {
    #cm-mobile-menu,
    .cm-mobile-menu,
    ul#cm-mobile-menu {
        display: block !important;
        visibility: visible !important;
        height: auto !important;
        width: auto !important;
        position: relative !important;
        left: auto !important;
    }
}

/* Ensure the primary navigation bar stays visible */
#site-navigation,
.main-navigation,
#cm-masthead .main-navigation,
#cm-primary-nav,
.cm-primary-nav {
    display: block !important;
}

/* ================================
   ACCESSIBILITY - ELDERLY FRIENDLY
   WCAG 2.1 AA Compliant
   ONLY FOR SINGLE POST PAGES
   ================================ */

/* Single Post Typography - 18px (Elderly Friendly) */
body.single .cm-post-content p,
body.single-post .cm-post-content p,
body.single .entry-content p,
body.single-post .entry-content p {
    font-size: 18px !important;
    line-height: 1.85 !important;
    color: #2d2d2d !important;
    letter-spacing: 0.01em !important;
}

/* Single Post container background */
body.single .cm-post-content,
body.single-post .cm-post-content,
body.single .entry-content,
body.single-post .entry-content {
    background: #fafafa !important;
    padding: 25px !important;
    border-radius: 8px !important;
}

/* Single Post Headings */
body.single .cm-post-content h2,
body.single .cm-post-content h3,
body.single .cm-post-content h4,
body.single-post .cm-post-content h2,
body.single-post .cm-post-content h3,
body.single-post .cm-post-content h4 {
    color: #1a1a1a !important;
    font-weight: 700 !important;
    margin-top: 30px !important;
    margin-bottom: 15px !important;
}

body.single .cm-post-content h2 { font-size: 26px !important; }
body.single .cm-post-content h3 { font-size: 22px !important; }
body.single .cm-post-content h4 { font-size: 20px !important; }

/* ================================
   QURAN VERSE - Arabic Text
   Only on single post pages
   ================================ */

body.single .quran-verse,
body.single blockquote.quran-verse,
body.single-post .quran-verse,
body.single-post blockquote.quran-verse {
    direction: rtl !important;
    text-align: right !important;
    font-family: 'Amiri', 'Noto Naskh Arabic', 'Traditional Arabic', serif !important;
    font-size: 24px !important;
    line-height: 2.2 !important;
    background: #e8f5e9 !important;
    border-right: 6px solid #009639 !important;
    border-left: none !important;
    padding: 25px 30px !important;
    margin: 25px 0 10px 0 !important;
    border-radius: 0 8px 8px 0 !important;
    color: #1b5e20 !important;
}

/* ================================
   TRANSLATION - Malay Text (18px)
   Only on single post pages
   ================================ */

body.single .terjemahan,
body.single p.terjemahan,
body.single-post .terjemahan,
body.single-post p.terjemahan {
    background: #f5f0e6 !important;
    border-left: 5px solid #8d6e63 !important;
    padding: 20px 25px !important;
    margin: 0 0 30px 0 !important;
    font-style: italic !important;
    font-size: 18px !important;
    color: #3e2723 !important;
    border-radius: 0 6px 6px 0 !important;
    line-height: 1.85 !important;
}

body.single .terjemahan em,
body.single-post .terjemahan em {
    font-style: italic !important;
    font-size: 18px !important;
    color: #3e2723 !important;
}

/* ================================
   HADITH - Blue theme
   Only on single post pages
   ================================ */

body.single .hadith,
body.single blockquote.hadith,
body.single-post .hadith,
body.single-post blockquote.hadith {
    direction: rtl !important;
    text-align: right !important;
    font-family: 'Amiri', 'Noto Naskh Arabic', serif !important;
    font-size: 22px !important;
    line-height: 2 !important;
    background: #e3f2fd !important;
    border-right: 6px solid #1565c0 !important;
    border-left: none !important;
    padding: 25px 30px !important;
    margin: 25px 0 !important;
    border-radius: 0 8px 8px 0 !important;
    color: #0d47a1 !important;
}

/* ================================
   LINKS - Single post only
   ================================ */

body.single .cm-post-content a,
body.single-post .cm-post-content a {
    color: #00693e !important;
    text-decoration: underline !important;
}

body.single .cm-post-content a:hover,
body.single-post .cm-post-content a:hover {
    color: #004d2c !important;
}

/* ================================
   BLOCKQUOTE - Single post only
   ================================ */

body.single .cm-post-content blockquote:not(.quran-verse):not(.hadith),
body.single-post .cm-post-content blockquote:not(.quran-verse):not(.hadith) {
    background: #f5f5f5 !important;
    border-left: 5px solid #009639 !important;
    padding: 20px 25px !important;
    margin: 20px 0 !important;
    font-size: 17px !important;
    color: #333 !important;
    font-style: italic !important;
}

/* ================================
   DESIGN IMPROVEMENTS - Jan 2026
   Based on Islam Times & Malaysiakini
   ================================ */

/* ================================
   1. ARTIKEL POPULAR / MOST READ
   ================================ */

/* Popular Posts Widget Styling */
.widget_recent-posts,
.widget_popular_posts,
.widget-popular-posts {
    background: #fff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08) !important;
}

.widget_recent-posts .widget-title,
.widget_popular_posts .widget-title {
    background: linear-gradient(135deg, #c41e3a, #e63950) !important;
    color: #fff !important;
    padding: 14px 18px !important;
    margin: 0 !important;
    font-size: 13px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700 !important;
}

.widget_recent-posts .widget-title span,
.widget_popular_posts .widget-title span {
    background: transparent !important;
    padding: 0 !important;
}

/* Popular post items with numbers */
.widget_recent-posts ul,
.widget_popular_posts ul {
    counter-reset: popular-counter;
    padding: 0 !important;
    margin: 0 !important;
}

.widget_recent-posts ul li,
.widget_popular_posts ul li {
    position: relative;
    padding: 15px 15px 15px 50px !important;
    border-bottom: 1px solid #f0f0f0;
    margin: 0 !important;
    list-style: none !important;
    counter-increment: popular-counter;
    transition: background 0.2s ease;
}

.widget_recent-posts ul li:hover,
.widget_popular_posts ul li:hover {
    background: #f9f9f9;
}

.widget_recent-posts ul li:last-child,
.widget_popular_posts ul li:last-child {
    border-bottom: none;
}

/* Number badge */
.widget_recent-posts ul li::before,
.widget_popular_posts ul li::before {
    content: counter(popular-counter);
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #009639, #007a2e);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

/* Top 3 special colors */
.widget_recent-posts ul li:nth-child(1)::before {
    background: linear-gradient(135deg, #ffd700, #ffb300) !important;
    color: #333 !important;
}

.widget_recent-posts ul li:nth-child(2)::before {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0) !important;
    color: #333 !important;
}

.widget_recent-posts ul li:nth-child(3)::before {
    background: linear-gradient(135deg, #cd7f32, #b87333) !important;
    color: #fff !important;
}

.widget_recent-posts ul li a,
.widget_popular_posts ul li a {
    color: #333 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    display: block;
}

.widget_recent-posts ul li a:hover,
.widget_popular_posts ul li a:hover {
    color: #009639 !important;
}

/* Date under popular posts */
.widget_recent-posts ul li .post-date,
.widget_recent-posts ul li span {
    display: block;
    font-size: 11px !important;
    color: #999 !important;
    margin-top: 5px;
}

/* ================================
   2. STICKY SIDEBAR
   ================================ */

@media (min-width: 992px) {
    #secondary,
    .sidebar,
    aside#secondary {
        position: sticky !important;
        top: 20px;
        height: fit-content;
        align-self: flex-start;
    }

    /* Ensure parent container allows sticky */
    .cm-row,
    #content .cm-row,
    .content-area-wrapper {
        display: flex;
        align-items: flex-start;
    }
}

/* ================================
   3. CARD HEIGHT MATCHING
   ================================ */

/* Grid cards equal height */
.tg-module-wrapper .tg-col-control,
.highlighted-posts-widget .tg-col-control,
.featured-posts-widget .tg-col-control {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.tg-module-wrapper article,
.highlighted-posts-widget article,
.featured-posts-widget article {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tg-module-wrapper article .article-content,
.tg-module-wrapper article .entry-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tg-module-wrapper article .entry-title {
    flex: 1;
}

/* Homepage featured grid - 4 columns */
@media (min-width: 992px) {
    .highlighted-posts-widget .tg-col-control {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .highlighted-posts-widget .tg-col-control {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ================================
   4. BREAKING NEWS TICKER ANIMATION
   ================================ */

.breaking-news {
    background: linear-gradient(90deg, #c41e3a, #e63950) !important;
    padding: 0 !important;
    margin-bottom: 20px;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

.breaking-news .breaking-news-title {
    background: #8b0000 !important;
    color: #fff !important;
    padding: 12px 20px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    position: relative;
}

/* Blinking dot animation */
.breaking-news .breaking-news-title::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    margin-right: 10px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.breaking-news .newsticker-wrap,
.breaking-news .newsticker {
    flex: 1;
    overflow: hidden;
    padding: 12px 15px;
}

.breaking-news ul {
    display: flex;
    animation: ticker-scroll 30s linear infinite;
    padding: 0 !important;
    margin: 0 !important;
}

.breaking-news ul:hover {
    animation-play-state: paused;
}

.breaking-news ul li {
    white-space: nowrap;
    padding: 0 40px 0 0;
    list-style: none !important;
}

.breaking-news ul li a {
    color: #fff !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.breaking-news ul li a:hover {
    text-decoration: underline;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ================================
   5. CATEGORY COLORS (Extended)
   ================================ */

/* State categories */
.cat-links a[href*="negeri"],
.cat-links a[href*="berita-negeri"] { background: #3498db !important; }
.cat-links a[href*="perlis"] { background: #1abc9c !important; }
.cat-links a[href*="pulau-pinang"],
.cat-links a[href*="penang"] { background: #27ae60 !important; }
.cat-links a[href*="perak"] { background: #8e44ad !important; }
.cat-links a[href*="selangor"] { background: #e67e22 !important; }
.cat-links a[href*="negeri-sembilan"] { background: #d35400 !important; }
.cat-links a[href*="melaka"],
.cat-links a[href*="malacca"] { background: #c0392b !important; }
.cat-links a[href*="johor"] { background: #16a085 !important; }
.cat-links a[href*="pahang"] { background: #2980b9 !important; }
.cat-links a[href*="terengganu"] { background: #e74c3c !important; }
.cat-links a[href*="kelantan"] { background: #9b59b6 !important; }
.cat-links a[href*="kedah"] { background: #f39c12 !important; }
.cat-links a[href*="sabah"] { background: #1e8449 !important; }
.cat-links a[href*="sarawak"] { background: #117864 !important; }
.cat-links a[href*="wilayah"],
.cat-links a[href*="kuala-lumpur"] { background: #2c3e50 !important; }

/* Content type categories */
.cat-links a[href*="minda-presiden"] { background: #009639 !important; }
.cat-links a[href*="pusat"] { background: #009639 !important; }
.cat-links a[href*="arkib"] { background: #7f8c8d !important; }
.cat-links a[href*="video"] { background: #e74c3c !important; }
.cat-links a[href*="galeri"] { background: #9b59b6 !important; }
.cat-links a[href*="infografik"] { background: #3498db !important; }
.cat-links a[href*="kenyataan"] { background: #2c3e50 !important; }
.cat-links a[href*="media"] { background: #e91e63 !important; }

/* ================================
   6. HUMAN-READABLE TIMESTAMPS
   ================================ */

.posted-on,
.entry-meta .posted-on,
.below-entry-meta .posted-on {
    font-size: 12px !important;
    color: #888 !important;
}

.posted-on a {
    color: #888 !important;
}

.posted-on time {
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    color: #666;
}

/* ================================
   7. IMPROVED ARTICLE CARDS
   ================================ */

/* Card shadow and hover */
.tg-module-wrapper article,
article.post,
.single-article-wrap {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.tg-module-wrapper article:hover,
article.post:hover,
.single-article-wrap:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* Image zoom on hover */
.tg-module-wrapper figure,
article.post .featured-image,
.single-article-wrap figure {
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.tg-module-wrapper figure img,
article.post .featured-image img,
.single-article-wrap figure img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tg-module-wrapper article:hover figure img,
article.post:hover .featured-image img,
.single-article-wrap:hover figure img {
    transform: scale(1.08);
}

/* Title styling */
.tg-module-wrapper .entry-title a,
article.post .entry-title a {
    color: #1a1a1a !important;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tg-module-wrapper .entry-title a:hover,
article.post .entry-title a:hover {
    color: #009639 !important;
}

/* ================================
   8. SECTION HEADERS IMPROVEMENT
   ================================ */

.widget-title,
.tg-module-wrapper .widget-title,
.section-title {
    position: relative;
    background: linear-gradient(135deg, #009639, #007a2e) !important;
    padding: 14px 20px !important;
    margin-bottom: 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.widget-title span {
    background: transparent !important;
    padding: 0 !important;
}

/* Arrow indicator under title */
.widget-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #007a2e;
}

/* Different section colors */
.widget[id*="berita-negeri"] .widget-title,
.tg-module-wrapper:nth-of-type(2) .widget-title {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
}

.widget[id*="berita-negeri"] .widget-title::after,
.tg-module-wrapper:nth-of-type(2) .widget-title::after {
    border-top-color: #2980b9;
}

/* ================================
   9. NEWSLETTER BOX (Future)
   ================================ */

.newsletter-box {
    background: linear-gradient(135deg, #009639, #007a2e);
    padding: 25px;
    border-radius: 8px;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
}

.newsletter-box h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.newsletter-box p {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 15px;
}

.newsletter-box input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
}

.newsletter-box button {
    width: 100%;
    background: #fff !important;
    color: #009639 !important;
    border: none !important;
    padding: 12px 20px !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.newsletter-box button:hover {
    background: #f0f0f0 !important;
}

/* ================================
   10. SOCIAL SHARE BUTTONS
   ================================ */

.share-buttons {
    display: flex;
    gap: 8px;
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.share-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff !important;
    font-size: 14px;
    transition: transform 0.2s ease;
}

.share-buttons a:hover {
    transform: scale(1.1);
}

.share-buttons .share-whatsapp { background: #25D366; }
.share-buttons .share-facebook { background: #1877F2; }
.share-buttons .share-twitter { background: #1DA1F2; }
.share-buttons .share-telegram { background: #0088cc; }
.share-buttons .share-copy { background: #666; }

/* ================================
   11. LOADING SKELETON
   ================================ */

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ================================
   12. SMOOTH SCROLL & TRANSITIONS
   ================================ */

html {
    scroll-behavior: smooth;
}

* {
    -webkit-tap-highlight-color: transparent;
}

a, button, input, .widget, article {
    transition: all 0.2s ease;
}

/* Focus states for accessibility */
a:focus, button:focus, input:focus {
    outline: 2px solid #009639;
    outline-offset: 2px;
}

/* ================================
   13. PRINT IMPROVEMENTS
   ================================ */

@media print {
    .breaking-news,
    #site-navigation,
    #secondary,
    .share-buttons,
    #colophon,
    .newsletter-box {
        display: none !important;
    }

    body, .entry-content, .entry-content p {
        font-size: 12pt !important;
        line-height: 1.6 !important;
        color: #000 !important;
    }

    .entry-title {
        font-size: 18pt !important;
    }

    a {
        color: #000 !important;
        text-decoration: underline;
    }
}

/* ================================
   14. HOMEPAGE MAKEOVER 2026
   Lebih Cantik & Professional
   ================================ */

/* -------- HEADER REDESIGN -------- */

/* Top header bar - dark elegant */
#masthead {
    background: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    border-bottom: none !important;
    position: relative;
}

/* Site branding with logo support */
.site-branding {
    padding: 20px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px;
}

/* Logo styling - bila ada custom logo */
.custom-logo-link {
    display: flex !important;
    align-items: center;
}

.custom-logo {
    max-height: 70px !important;
    width: auto !important;
}

/* Site title - BERITAPAS dengan gradient */
.site-title {
    font-size: 42px !important;
    font-weight: 900 !important;
    letter-spacing: -2px !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.site-title a {
    background: linear-gradient(135deg, #009639 0%, #00b347 50%, #007a2f 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-decoration: none !important;
}

/* Bulan sabit icon before title */
.site-title a::before {
    content: '☪' !important;
    font-size: 36px !important;
    margin-right: 10px !important;
    -webkit-text-fill-color: #009639 !important;
}

/* Site description */
.site-description {
    color: #555 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    margin-top: 5px !important;
}

/* -------- NAVIGATION REDESIGN -------- */

#site-navigation {
    background: linear-gradient(135deg, #009639 0%, #007a2f 100%) !important;
    box-shadow: 0 4px 15px rgba(0,150,57,0.3) !important;
    border: none !important;
}

.main-navigation ul li a {
    padding: 16px 22px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    position: relative !important;
}

/* Underline effect on hover */
.main-navigation ul li a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 10px !important;
    left: 22px !important;
    right: 22px !important;
    height: 2px !important;
    background: rgba(255,255,255,0.5) !important;
    transform: scaleX(0) !important;
    transition: transform 0.3s ease !important;
}

.main-navigation ul li:hover > a::after,
.main-navigation ul li.current-menu-item > a::after {
    transform: scaleX(1) !important;
}

/* -------- BREAKING NEWS BAR -------- */

.breaking-news-wrapper,
.breaking-news {
    background: linear-gradient(90deg, #b71c1c 0%, #e53935 100%) !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: 0 2px 10px rgba(183,28,28,0.3) !important;
}

.breaking-news-title {
    background: #7f0000 !important;
    padding: 12px 20px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px;
}

.breaking-news-title::before {
    content: '⚡' !important;
    font-size: 14px !important;
}

.breaking-news ul li a {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* -------- FEATURED SLIDER HERO -------- */

.big-slider-wrapper,
.featured-slider-wrapper,
.colormag-featured-posts-slider-widget {
    margin-bottom: 35px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
}

.featured-slider-wrapper .slide-content,
.big-slider-wrapper .slide-content {
    background: linear-gradient(to top,
        rgba(0,0,0,0.95) 0%,
        rgba(0,0,0,0.7) 30%,
        rgba(0,0,0,0.3) 60%,
        transparent 100%) !important;
    padding: 40px 35px !important;
}

.featured-slider-wrapper .entry-title,
.big-slider-wrapper .entry-title {
    font-size: 32px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    text-shadow: 0 3px 10px rgba(0,0,0,0.5) !important;
    margin-bottom: 15px !important;
}

.featured-slider-wrapper .cat-links a,
.big-slider-wrapper .cat-links a {
    background: #009639 !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
}

/* Slider dots styling */
.lSSlideOuter .lSPager.lSpg > li a,
.bx-pager .bx-pager-item a {
    background: rgba(255,255,255,0.4) !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
}

.lSSlideOuter .lSPager.lSpg > li.active a,
.bx-pager .bx-pager-item a.active {
    background: #009639 !important;
    transform: scale(1.2) !important;
}

/* -------- ARTICLE CARDS MODERN -------- */

article.post,
.tg-module-block article,
.featured-posts-widget article,
.highlighted-posts-widget article {
    background: #ffffff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin-bottom: 25px !important;
}

article.post:hover,
.tg-module-block article:hover,
.featured-posts-widget article:hover,
.highlighted-posts-widget article:hover {
    box-shadow: 0 12px 40px rgba(0,150,57,0.15) !important;
    transform: translateY(-5px) !important;
    border-color: rgba(0,150,57,0.2) !important;
}

/* Thumbnail hover zoom */
article .featured-image,
.single-article .featured-image {
    overflow: hidden !important;
    border-radius: 12px 12px 0 0 !important;
}

article .featured-image img,
.single-article .featured-image img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

article:hover .featured-image img,
.single-article:hover .featured-image img {
    transform: scale(1.08) !important;
}

/* Entry title styling */
.entry-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin-bottom: 10px !important;
}

.entry-title a {
    color: #1a1a1a !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.entry-title a:hover {
    color: #009639 !important;
}

/* Category badge on cards */
article .cat-links a {
    background: linear-gradient(135deg, #009639, #00b347) !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    box-shadow: 0 2px 8px rgba(0,150,57,0.3) !important;
}

/* Article meta - date */
.entry-meta,
.below-entry-meta {
    font-size: 12px !important;
    color: #888 !important;
}

.entry-meta .posted-on a {
    color: #888 !important;
}

/* -------- SECTION/WIDGET HEADERS -------- */

.widget-title,
.tg-module-wrapper .widget-title,
.featured-posts-widget .widget-title {
    background: linear-gradient(135deg, #009639 0%, #007a2f 100%) !important;
    padding: 14px 24px !important;
    margin: 0 0 0 0 !important;
    border-radius: 0 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    position: relative !important;
    overflow: hidden !important;
}

.widget-title span {
    background: transparent !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Decorative accent on widget title */
.widget-title::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 5px !important;
    height: 100% !important;
    background: #00e64d !important;
}

.widget-title::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    right: 20px !important;
    transform: translateY(-50%) !important;
    width: 30px !important;
    height: 30px !important;
    background: rgba(255,255,255,0.1) !important;
    border-radius: 50% !important;
}

/* -------- SIDEBAR IMPROVEMENTS -------- */

#secondary .widget {
    background: #ffffff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
    margin-bottom: 25px !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

#secondary .widget-title {
    margin: 0 !important;
    border-radius: 0 !important;
}

#secondary .widget ul li {
    padding: 12px 20px !important;
    border-bottom: 1px solid #f5f5f5 !important;
    transition: background 0.2s ease !important;
}

#secondary .widget ul li:hover {
    background: #f9fff9 !important;
}

#secondary .widget ul li:last-child {
    border-bottom: none !important;
}

#secondary .widget ul li a {
    color: #333 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

#secondary .widget ul li a:hover {
    color: #009639 !important;
}

/* -------- HOMEPAGE GRID LAYOUT -------- */

/* Main content area background */
#content {
    background: #f8f9fa !important;
    padding: 30px 0 !important;
}

/* Container */
.inner-wrap {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* Posts grid */
.tg-module-grid,
.highlighted-posts-widget .tg-col-control {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 25px !important;
}

/* Featured posts 2-column */
.featured-posts-widget .tg-col-control {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0 !important;
}

.featured-posts-widget .single-article {
    padding: 20px !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.featured-posts-widget .single-article:nth-child(odd) {
    border-right: 1px solid #f0f0f0 !important;
}

/* -------- FOOTER REDESIGN -------- */

.footer-widgets-area {
    background: linear-gradient(135deg, #009639 0%, #006b2d 100%) !important;
    padding: 50px 0 30px !important;
}

.footer-socket-wrapper {
    background: #004d21 !important;
    padding: 20px 0 !important;
}

.footer-socket-wrapper .copyright {
    font-size: 13px !important;
    opacity: 0.9 !important;
}

/* -------- RESPONSIVE ADJUSTMENTS -------- */

@media (max-width: 992px) {
    .site-title {
        font-size: 32px !important;
    }

    .site-title a::before {
        font-size: 28px !important;
    }

    .featured-slider-wrapper .entry-title,
    .big-slider-wrapper .entry-title {
        font-size: 24px !important;
    }

    .tg-module-grid,
    .highlighted-posts-widget .tg-col-control {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .site-branding {
        padding: 15px 0 !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .site-title {
        font-size: 26px !important;
    }

    .site-title a::before {
        font-size: 22px !important;
        margin-right: 8px !important;
    }

    .featured-slider-wrapper .entry-title,
    .big-slider-wrapper .entry-title {
        font-size: 20px !important;
    }

    .featured-slider-wrapper .slide-content,
    .big-slider-wrapper .slide-content {
        padding: 25px 20px !important;
    }

    .tg-module-grid,
    .highlighted-posts-widget .tg-col-control {
        grid-template-columns: 1fr !important;
    }

    .featured-posts-widget .tg-col-control {
        grid-template-columns: 1fr !important;
    }

    .featured-posts-widget .single-article:nth-child(odd) {
        border-right: none !important;
    }

    article.post:hover,
    .tg-module-block article:hover {
        transform: none !important;
    }
}

/* -------- SMOOTH ANIMATIONS -------- */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

article.post,
.widget {
    animation: fadeInUp 0.5s ease-out;
}

/* -------- READ MORE BUTTON -------- */

.read-more a,
a.read-more {
    background: transparent !important;
    color: #009639 !important;
    border: 2px solid #009639 !important;
    padding: 10px 20px !important;
    border-radius: 25px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
}

.read-more a:hover,
a.read-more:hover {
    background: #009639 !important;
    color: #fff !important;
}

/* ================================
   15. ENHANCED FEATURES - TRENDING & WIDGETS
   Inspired by Malaysiakini, Harakahdaily, Sinar Harian
   ================================ */

/* -------- TRENDING TICKER -------- */

.beritapas-ticker-wrap {
    background: linear-gradient(90deg, #1a1a1a 0%, #2d2d2d 100%);
    display: flex;
    align-items: stretch;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.ticker-label {
    background: linear-gradient(135deg, #c62828 0%, #e53935 100%);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    position: relative;
}

.ticker-label::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 0;
    border-style: solid;
    border-width: 22px 0 22px 15px;
    border-color: transparent transparent transparent #e53935;
}

.ticker-icon {
    animation: pulse 1.5s ease-in-out infinite;
    font-size: 10px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.ticker-text {
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    padding: 0 30px 0 25px;
    display: flex;
    align-items: center;
}

.ticker-scroll {
    display: flex;
    gap: 40px;
    animation: ticker-scroll 30s linear infinite;
    white-space: nowrap;
}

.ticker-scroll:hover {
    animation-play-state: paused;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s ease;
}

.ticker-item:hover {
    color: #4CAF50;
}

.ticker-bullet {
    color: #4CAF50;
    font-size: 8px;
}

/* -------- DATE & TIME DISPLAY -------- */

.beritapas-datetime {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 13px;
    color: #555;
}

.date-icon {
    font-size: 14px;
}

.date-text {
    font-weight: 500;
}

/* Top bar styling */
.top-bar {
    background: #f8f9fa !important;
    border-bottom: 1px solid #eee;
}

/* -------- MOST READ WIDGET -------- */

.most-read-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    counter-reset: none !important;
}

.most-read-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 15px 20px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    transition: background 0.2s ease !important;
}

.most-read-item:hover {
    background: #f9fff9 !important;
}

.most-read-item:last-child {
    border-bottom: none !important;
}

.most-read-num {
    width: 28px !important;
    height: 28px !important;
    background: linear-gradient(135deg, #009639, #00b347) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
}

.most-read-thumb {
    width: 70px !important;
    height: 50px !important;
    flex-shrink: 0 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}

.most-read-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.most-read-content {
    flex: 1 !important;
    min-width: 0 !important;
}

.most-read-content a {
    color: #333 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.most-read-content a:hover {
    color: #009639 !important;
}

/* -------- BACK TO TOP BUTTON -------- */

#beritapas-back-top {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 50px !important;
    height: 50px !important;
    background: linear-gradient(135deg, #009639, #00b347) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 20px !important;
    font-weight: bold !important;
    box-shadow: 0 4px 20px rgba(0,150,57,0.4) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(20px) !important;
    transition: all 0.3s ease !important;
    z-index: 9999 !important;
}

#beritapas-back-top.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

#beritapas-back-top:hover {
    background: linear-gradient(135deg, #007a2f, #009639) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 25px rgba(0,150,57,0.5) !important;
}

/* -------- FLOATING SOCIAL SHARE BAR -------- */

.beritapas-share-float {
    position: fixed !important;
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    z-index: 9998 !important;
}

.beritapas-share-float a {
    width: 45px !important;
    height: 45px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    text-decoration: none !important;
    font-size: 18px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 3px 15px rgba(0,0,0,0.15) !important;
}

.beritapas-share-float a:hover {
    transform: scale(1.15) !important;
}

.beritapas-share-float .share-wa {
    background: linear-gradient(135deg, #25D366, #128C7E) !important;
}

.beritapas-share-float .share-fb {
    background: linear-gradient(135deg, #1877F2, #0d5bbd) !important;
}

.beritapas-share-float .share-tw {
    background: linear-gradient(135deg, #1DA1F2, #0c85d0) !important;
}

.beritapas-share-float .share-tg {
    background: linear-gradient(135deg, #0088cc, #006699) !important;
}

/* -------- CATEGORY TABS -------- */

.beritapas-tabs-container {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}

.tabs-header {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
}

.tab-btn {
    background: transparent !important;
    border: none !important;
    padding: 15px 25px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #666 !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    position: relative !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

.tab-btn:hover {
    color: #009639 !important;
    background: rgba(0,150,57,0.05) !important;
}

.tab-btn.active {
    color: #009639 !important;
    background: #fff !important;
}

.tab-btn.active::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: #009639 !important;
}

.tabs-content {
    padding: 0;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-article {
    display: flex;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.tab-article:hover {
    background: #f9fff9;
}

.tab-article:last-child {
    border-bottom: none;
}

.tab-thumb {
    width: 100px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.tab-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tab-article:hover .tab-thumb img {
    transform: scale(1.05);
}

.tab-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tab-title {
    color: #333 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.tab-title:hover {
    color: #009639 !important;
}

.tab-date {
    color: #888;
    font-size: 11px;
    margin-top: 5px;
}

/* -------- RESPONSIVE FOR NEW FEATURES -------- */

@media (max-width: 768px) {
    .beritapas-ticker-wrap {
        flex-direction: column;
    }

    .ticker-label {
        justify-content: center;
        padding: 10px 15px;
    }

    .ticker-label::after {
        display: none;
    }

    .ticker-content {
        padding: 10px 15px;
    }

    .ticker-scroll {
        animation-duration: 20s;
    }

    .beritapas-share-float {
        left: 10px !important;
        bottom: 80px !important;
        top: auto !important;
        transform: none !important;
        flex-direction: row !important;
    }

    .beritapas-share-float a {
        width: 38px !important;
        height: 38px !important;
        font-size: 14px !important;
    }

    #beritapas-back-top {
        bottom: 20px !important;
        right: 20px !important;
        width: 45px !important;
        height: 45px !important;
    }

    .tab-btn {
        padding: 12px 18px !important;
        font-size: 12px !important;
    }

    .tab-article {
        flex-direction: column;
    }

    .tab-thumb {
        width: 100%;
        height: 150px;
    }
}

/* -------- MINDA PRESIDEN HIGHLIGHT SECTION -------- */

.minda-highlight {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 5px solid #009639;
}

.minda-highlight .section-title {
    color: #009639;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.minda-highlight .section-title::before {
    content: '📝';
    font-size: 24px;
}

/* -------- VIDEO SECTION STYLE -------- */

.video-section {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
}

.video-section .widget-title {
    background: linear-gradient(135deg, #c62828, #e53935) !important;
}

.video-section .widget-title span::before {
    content: '▶ ' !important;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px;
}

.video-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.video-item img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.video-item::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #c62828;
    transition: all 0.3s ease;
}

.video-item:hover::after {
    background: #c62828;
    color: #fff;
    transform: translate(-50%, -50%) scale(1.1);
}

/* ================================
   16. HOMEPAGE LAYOUT FIX
   ================================ */

/* Reset grid issues on homepage sections */
.home .tg-module-wrapper,
.home .tg-module-block,
.front-page .tg-module-wrapper,
.front-page .tg-module-block {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
}

/* Berita Negeri section fix */
.home .tg-module-block,
.front-page .tg-module-block {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px;
}

.home .tg-module-block .tg-module-first,
.front-page .tg-module-block .tg-module-first {
    flex: 0 0 calc(50% - 10px) !important;
    max-width: calc(50% - 10px) !important;
}

.home .tg-module-block .tg-module-list,
.front-page .tg-module-block .tg-module-list {
    flex: 0 0 calc(50% - 10px) !important;
    max-width: calc(50% - 10px) !important;
}

/* Side articles list */
.tg-module-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tg-module-list article {
    display: flex !important;
    flex-direction: row !important;
    gap: 15px;
    margin-bottom: 0 !important;
}

.tg-module-list article figure {
    flex: 0 0 100px !important;
    max-width: 100px !important;
}

.tg-module-list article .article-content {
    flex: 1 !important;
}

.tg-module-list article .entry-title {
    font-size: 14px !important;
    margin: 0 !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .home .tg-module-block .tg-module-first,
    .front-page .tg-module-block .tg-module-first,
    .home .tg-module-block .tg-module-list,
    .front-page .tg-module-block .tg-module-list {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* Fix inner-wrap width */
.home .inner-wrap,
.front-page .inner-wrap {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
}

/* Ensure content area is full width */
.home #content,
.front-page #content {
    width: 100% !important;
    max-width: 100% !important;
}

/* ================================
   17. LAYOUT RESET - FIX HOMEPAGE
   Override conflicting CSS above
   ================================ */

/* RESET: Let ColorMag handle layout naturally */
.tg-module-block,
.tg-module-wrapper,
.tg-module-grid,
.featured-posts-widget,
.highlighted-posts-widget {
    display: block !important;
    width: auto !important;
    max-width: none !important;
}

.tg-module-block .tg-col-control,
.tg-module-wrapper .tg-col-control,
.featured-posts-widget .tg-col-control,
.highlighted-posts-widget .tg-col-control {
    display: block !important;
    grid-template-columns: none !important;
}

/* Reset article cards to natural flow */
.tg-module-block article,
.tg-module-wrapper article,
.featured-posts-widget article {
    display: block !important;
    flex-direction: unset !important;
    width: auto !important;
    max-width: none !important;
}

/* Keep only color/visual styling */
.tg-module-wrapper,
.tg-module-block,
.featured-posts-widget {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* Section titles - keep green */
.tg-module-wrapper .widget-title,
.tg-module-block .widget-title,
.featured-posts-widget .widget-title {
    background: linear-gradient(135deg, #009639, #007a2e) !important;
    color: #fff !important;
    padding: 12px 20px !important;
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.tg-module-wrapper .widget-title span,
.featured-posts-widget .widget-title span {
    background: transparent !important;
    padding: 0 !important;
    color: #fff !important;
}

/* Trending Ticker - ENABLED & FIXED */
.beritapas-ticker-wrap {
    display: flex !important;
    position: relative;
    z-index: 100;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    clear: both !important;
    float: none !important;
    box-sizing: border-box !important;
}

/* Ensure content after ticker is not affected */
.beritapas-ticker-wrap + * {
    clear: both !important;
    width: 100% !important;
}

/* ================================
   COLORMAG NEWS TICKER - CANTIK STYLE
   ================================ */

/* Main ticker container in top bar */
.cm-header-builder .breaking-news,
.cm-row--top .breaking-news {
    background: linear-gradient(90deg, #009639, #007a2e) !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 4px;
    overflow: hidden;
    display: flex !important;
    align-items: stretch !important;
    box-shadow: 0 2px 8px rgba(0,150,57,0.3);
    min-height: 40px;
}

/* Label "TERKINI:" */
.cm-header-builder .breaking-news-latest,
.cm-row--top .breaking-news-latest,
.breaking-news strong.breaking-news-latest {
    background: linear-gradient(135deg, #006428, #004d1f) !important;
    color: #fff !important;
    padding: 10px 18px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
    letter-spacing: 1.5px !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    margin: 0 !important;
}

/* Blinking dot before label */
.cm-header-builder .breaking-news-latest::before,
.breaking-news strong.breaking-news-latest::before {
    content: '' !important;
    width: 8px !important;
    height: 8px !important;
    background: #ff4444 !important;
    border-radius: 50% !important;
    margin-right: 10px !important;
    animation: ticker-blink 1s infinite !important;
    box-shadow: 0 0 6px #ff4444;
}

@keyframes ticker-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* News ticker list container */
.cm-header-builder .newsticker,
.cm-row--top .newsticker,
.breaking-news ul.newsticker {
    flex: 1 !important;
    overflow: hidden !important;
    padding: 10px 15px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
}

/* News items */
.cm-header-builder .newsticker li,
.breaking-news ul.newsticker li {
    white-space: nowrap !important;
    padding: 0 30px 0 0 !important;
    list-style: none !important;
    display: inline-block !important;
}

/* News links */
.cm-header-builder .newsticker li a,
.breaking-news ul.newsticker li a {
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.cm-header-builder .newsticker li a:hover,
.breaking-news ul.newsticker li a:hover {
    text-decoration: underline !important;
    color: #d4ffd4 !important;
}

/* Separator between news items */
.cm-header-builder .newsticker li::after,
.breaking-news ul.newsticker li::after {
    content: '•' !important;
    color: rgba(255,255,255,0.5) !important;
    margin-left: 30px !important;
    font-size: 10px !important;
}

.cm-header-builder .newsticker li:last-child::after,
.breaking-news ul.newsticker li:last-child::after {
    display: none !important;
}

/* Top bar row styling */
.cm-row--top {
    background: #f8f9fa !important;
    border-bottom: 1px solid #e9ecef !important;
    padding: 8px 0 !important;
}

/* Date styling in top bar */
.cm-header-builder .cm-date,
.cm-row--top .cm-date {
    color: #555 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

/* Social icons in top bar */
.cm-row--top .cm-social-icons a {
    color: #009639 !important;
    font-size: 14px !important;
    margin-left: 12px !important;
    transition: color 0.3s ease !important;
}

.cm-row--top .cm-social-icons a:hover {
    color: #006428 !important;
}

/* Responsive ticker - keep horizontal on mobile */
@media (max-width: 768px) {
    .cm-header-builder .breaking-news,
    .breaking-news {
        flex-direction: row !important;
        text-align: left !important;
    }

    .cm-header-builder .breaking-news-latest,
    .breaking-news strong.breaking-news-latest {
        justify-content: center !important;
        padding: 8px 12px !important;
        flex-shrink: 0 !important;
    }

    .cm-header-builder .newsticker,
    .breaking-news ul.newsticker {
        padding: 8px 10px !important;
        flex: 1 !important;
        min-width: 0 !important;
    }

    .cm-header-builder .newsticker li::after,
    .breaking-news ul.newsticker li::after {
        display: none !important;
    }
}

/* ================================
   BREADCRUMB - CLEAN & MINIMAL
   ================================ */

.breadcrumb-trail {
    text-align: left !important;
    padding: 12px 0 8px 0 !important;
    margin: 0 !important;
    font-size: 12px !important;
    color: #888 !important;
    border-bottom: 1px solid #eee !important;
    margin-bottom: 15px !important;
}

/* Hide "You are here:" text */
.breadcrumb-trail > span:first-child {
    display: none !important;
}

.breadcrumb-trail .trail-items {
    display: inline !important;
}

.breadcrumb-trail .trail-items li {
    display: inline !important;
}

.breadcrumb-trail .trail-items a {
    color: #009639 !important;
    text-decoration: none !important;
}

.breadcrumb-trail .trail-items a:hover {
    text-decoration: underline !important;
}

.breadcrumb-trail .sep {
    color: #ccc !important;
    margin: 0 5px !important;
}

.breadcrumb-trail .trail-end {
    color: #666 !important;
}

/* ================================
   CUSTOM BERITAPAS TICKER - COMPACT
   ================================ */

/* Outer wrapper - BLACK full width (Palestine) */
.beritapas-ticker-outer {
    background: #000 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Inner ticker - contained content */
.beritapas-ticker-wrap {
    display: flex !important;
    background: transparent !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
    overflow: hidden !important;
    height: 32px !important;
    max-width: 1170px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Label - RED (Palestine) */
.beritapas-ticker-wrap .ticker-label {
    background: #ce1126 !important;
    padding: 0 15px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
}

.beritapas-ticker-wrap .ticker-icon {
    font-size: 6px !important;
    animation: pulse-dot 1s infinite !important;
    color: #fff !important;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Text - WHITE (Palestine) */
.beritapas-ticker-wrap .ticker-text {
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 10px !important;
    letter-spacing: 1px !important;
}

.beritapas-ticker-wrap .ticker-content {
    flex: 1 !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    padding-left: 15px !important;
}

.beritapas-ticker-wrap .ticker-scroll {
    display: flex !important;
    animation: scroll-ticker 30s linear infinite !important;
    white-space: nowrap !important;
}

.beritapas-ticker-wrap .ticker-scroll:hover {
    animation-play-state: paused !important;
}

@keyframes scroll-ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.beritapas-ticker-wrap .ticker-item {
    color: #fff !important;
    text-decoration: none !important;
    font-size: 12px !important;
    padding: 0 25px !important;
    border-right: 1px solid #333 !important;
}

.beritapas-ticker-wrap .ticker-item:hover {
    color: #ce1126 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .beritapas-ticker-wrap {
        height: 28px !important;
    }
    .beritapas-ticker-wrap .ticker-item {
        font-size: 11px !important;
        padding: 0 15px !important;
    }
}

/* ============================================
   BERITAPAS HOMEPAGE TEMPLATE STYLES
   ============================================ */

.bp-homepage {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

/* FEATURED SECTION */
.bp-featured {
    margin-bottom: 30px;
}

.bp-featured-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 10px;
}

.bp-featured-main a,
.bp-small-item {
    display: block;
    text-decoration: none;
}

.bp-featured-img,
.bp-small-img {
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: #009639;
    border-radius: 8px;
    overflow: hidden;
}

.bp-featured-img {
    height: 400px;
}

.bp-featured-overlay,
.bp-small-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent 0%, rgba(0,0,0,0.4) 30%, rgba(0,0,0,0.9) 100%);
    color: #fff;
}

.bp-featured-overlay h2 {
    font-size: 24px;
    margin: 10px 0 5px;
    line-height: 1.3;
    color: #fff !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
}

.bp-cat {
    display: inline-block;
    background: #009639;
    padding: 4px 12px;
    font-size: 11px;
    border-radius: 3px;
    text-transform: uppercase;
}

/* Default meta (for cards - dark text) */
.bp-meta {
    font-size: 12px;
    color: #888;
}

/* Meta inside overlays (white text) */
.bp-featured-overlay .bp-meta,
.bp-small-overlay .bp-meta {
    color: rgba(255,255,255,0.9);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.bp-featured-small {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.bp-small-img {
    height: 195px;
}

.bp-small-overlay {
    padding: 15px;
}

.bp-small-overlay h3 {
    font-size: 14px;
    margin: 0 0 5px;
    line-height: 1.3;
    color: #fff !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

/* MEDIA TABS */
.bp-media-section {
    margin-bottom: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.bp-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.bp-tab {
    padding: 10px 25px;
    border: none;
    background: #e9ecef;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.bp-tab.active,
.bp-tab:hover {
    background: #009639;
    color: #fff;
}

.bp-tab-panel {
    display: none;
}

.bp-tab-panel.active {
    display: block;
}

.bp-media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.bp-media-item {
    text-decoration: none;
    color: inherit;
}

.bp-media-img {
    height: 120px;
    background-size: cover;
    background-position: center;
    background-color: #009639;
    border-radius: 6px;
    margin-bottom: 8px;
}

.bp-media-item h4 {
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
}

.bp-empty {
    text-align: center;
    color: #888;
    padding: 30px;
}

/* VIDEO ITEM STYLES */
.bp-video-item {
    cursor: pointer;
    position: relative;
}

.bp-video-item .bp-media-img {
    position: relative;
}

.bp-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(206, 17, 38, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s;
}

.bp-video-item:hover .bp-play-btn {
    background: #ce1126;
    transform: translate(-50%, -50%) scale(1.1);
}

/* VIDEO MODAL / LIGHTBOX */
.bp-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.bp-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
}

.bp-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    transition: color 0.3s;
}

.bp-modal-close:hover {
    color: #ce1126;
}

.bp-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
}

.bp-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* MAIN LAYOUT - Content + Sidebar */
.bp-main-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

.bp-content {
    min-width: 0;
}

/* SECTION STYLES */
.bp-section {
    margin-bottom: 30px;
}

.bp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.bp-section-header h2 {
    font-size: 16px;
    margin: 0;
    color: #fff;
}

.bp-section-header a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
}

/* BeritaPAS Color Scheme - Hijau PAS Gradient Ceria */
.bp-section-header {
    background: linear-gradient(135deg, #009639 0%, #00b347 50%, #00c853 100%) !important;
    box-shadow: 0 2px 8px rgba(0, 150, 57, 0.3);
}

/* Alternative gradients for variety */
.bp-section-header.green {
    background: linear-gradient(135deg, #006428 0%, #009639 50%, #00b347 100%) !important;
}
.bp-section-header.teal {
    background: linear-gradient(135deg, #006428 0%, #009639 50%, #00b347 100%) !important;
}
.bp-section-header.gold {
    background: linear-gradient(135deg, #006428 0%, #009639 50%, #00b347 100%) !important;
}
.bp-section-header.blue {
    background: linear-gradient(135deg, #006428 0%, #009639 50%, #00b347 100%) !important;
}
.bp-section-header.red {
    background: linear-gradient(135deg, #006428 0%, #009639 50%, #00b347 100%) !important;
}
.bp-section-header.purple {
    background: linear-gradient(135deg, #006428 0%, #009639 50%, #00b347 100%) !important;
}
.bp-section-header.rose {
    background: linear-gradient(135deg, #006428 0%, #009639 50%, #00b347 100%) !important;
}
.bp-section-header.orange {
    background: linear-gradient(135deg, #006428 0%, #009639 50%, #00b347 100%) !important;
}
.bp-section-header.indigo {
    background: linear-gradient(135deg, #006428 0%, #009639 50%, #00b347 100%) !important;
}
.bp-section-header.slate {
    background: linear-gradient(135deg, #006428 0%, #009639 50%, #00b347 100%) !important;
}

/* CARD GRID */
.bp-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.bp-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.bp-card:hover {
    transform: translateY(-3px);
}

.bp-card a {
    text-decoration: none;
    color: inherit;
}

.bp-card-img {
    height: 120px;
    background-size: cover;
    background-position: center;
    background-color: #009639;
}

.bp-card h3 {
    font-size: 13px;
    margin: 10px;
    line-height: 1.4;
    color: #222;
}

.bp-card .bp-meta {
    display: block;
    margin: 0 10px 10px;
    font-size: 11px;
    color: #888;
}

/* BERITA NEGERI LAYOUT */
.bp-negeri-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.bp-negeri-featured a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.bp-negeri-featured img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
}

.bp-negeri-featured h3 {
    font-size: 16px;
    margin: 10px 0 0;
    line-height: 1.4;
}

/* NEGERI GRID - New Layout */
.bp-negeri-section .bp-negeri-featured {
    margin-bottom: 15px;
}

.bp-negeri-section .bp-negeri-featured img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
}

.bp-negeri-section .bp-negeri-featured h3 {
    font-size: 16px;
    margin: 10px 0 0;
}

.bp-negeri-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.bp-negeri-card {
    display: block;
    background: #f8f9fa;
    padding: 8px 10px;
    border-radius: 4px;
    text-decoration: none;
    border-left: 3px solid #009639;
    transition: all 0.3s;
}

.bp-negeri-card:hover {
    background: #e9ecef;
    transform: translateX(3px);
}

.bp-negeri-name {
    display: block;
    font-weight: 700;
    font-size: 11px;
    margin-bottom: 2px;
}

.bp-negeri-headline {
    display: block;
    color: #555;
    font-size: 10px;
    line-height: 1.3;
}

/* Warna berbeza untuk setiap negeri */
.bp-negeri-card:nth-child(1) { border-left-color: #dc2626; } /* Johor - Merah */
.bp-negeri-card:nth-child(1) .bp-negeri-name { color: #dc2626; }

.bp-negeri-card:nth-child(2) { border-left-color: #059669; } /* Kedah - Hijau */
.bp-negeri-card:nth-child(2) .bp-negeri-name { color: #059669; }

.bp-negeri-card:nth-child(3) { border-left-color: #009639; } /* Kelantan - Hijau PAS */
.bp-negeri-card:nth-child(3) .bp-negeri-name { color: #009639; }

.bp-negeri-card:nth-child(4) { border-left-color: #dc2626; } /* Melaka - Merah */
.bp-negeri-card:nth-child(4) .bp-negeri-name { color: #dc2626; }

.bp-negeri-card:nth-child(5) { border-left-color: #eab308; } /* N. Sembilan - Kuning */
.bp-negeri-card:nth-child(5) .bp-negeri-name { color: #ca8a04; }

.bp-negeri-card:nth-child(6) { border-left-color: #2563eb; } /* Pahang - Biru */
.bp-negeri-card:nth-child(6) .bp-negeri-name { color: #2563eb; }

.bp-negeri-card:nth-child(7) { border-left-color: #000; } /* Perak - Hitam */
.bp-negeri-card:nth-child(7) .bp-negeri-name { color: #000; }

.bp-negeri-card:nth-child(8) { border-left-color: #eab308; } /* Perlis - Kuning */
.bp-negeri-card:nth-child(8) .bp-negeri-name { color: #ca8a04; }

.bp-negeri-card:nth-child(9) { border-left-color: #0ea5e9; } /* P. Pinang - Biru Muda */
.bp-negeri-card:nth-child(9) .bp-negeri-name { color: #0ea5e9; }

.bp-negeri-card:nth-child(10) { border-left-color: #0284c7; } /* Sabah - Biru */
.bp-negeri-card:nth-child(10) .bp-negeri-name { color: #0284c7; }

.bp-negeri-card:nth-child(11) { border-left-color: #dc2626; } /* Sarawak - Merah */
.bp-negeri-card:nth-child(11) .bp-negeri-name { color: #dc2626; }

.bp-negeri-card:nth-child(12) { border-left-color: #dc2626; } /* Selangor - Merah */
.bp-negeri-card:nth-child(12) .bp-negeri-name { color: #dc2626; }

.bp-negeri-card:nth-child(13) { border-left-color: #000; } /* Terengganu - Hitam */
.bp-negeri-card:nth-child(13) .bp-negeri-name { color: #000; }

.bp-negeri-card:nth-child(14) { border-left-color: #2563eb; } /* WP - Biru */
.bp-negeri-card:nth-child(14) .bp-negeri-name { color: #2563eb; }

@media (max-width: 768px) {
    .bp-negeri-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.bp-negeri-state {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #009639;
    margin-bottom: 3px;
}

.bp-negeri-item a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
}

.bp-negeri-item a:hover {
    color: #009639;
}

/* SIDEBAR */
.bp-sidebar {
    position: sticky;
    top: 20px;
}

.bp-widget {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.bp-latest-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bp-latest-list li {
    display: flex;
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
}

.bp-latest-list li:last-child {
    border-bottom: none;
}

.bp-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #009639;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.bp-latest-list img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.bp-latest-content {
    flex: 1;
    min-width: 0;
}

.bp-latest-content a {
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 3px;
}

.bp-latest-content a:hover {
    color: #009639;
}

.bp-latest-content .bp-meta {
    display: block;
    font-size: 11px;
    color: #888;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .bp-featured-grid {
        grid-template-columns: 1fr;
    }
    .bp-featured-img {
        height: 300px;
    }
    .bp-featured-small {
        grid-template-columns: repeat(4, 1fr);
    }
    .bp-small-img {
        height: 150px;
    }
    .bp-main-layout {
        grid-template-columns: 1fr;
    }
    .bp-sidebar {
        position: static;
    }
    .bp-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .bp-featured-small {
        grid-template-columns: repeat(2, 1fr);
    }
    .bp-media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bp-negeri-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .bp-featured-small,
    .bp-card-grid,
    .bp-media-grid {
        grid-template-columns: 1fr;
    }
    .bp-tabs {
        flex-wrap: wrap;
    }
    .bp-tab {
        padding: 8px 15px;
        font-size: 13px;
    }
}

/* ================================
   CUSTOM BP TICKER (Full Control)
   ================================ */

/* Hide ALL ColorMag tickers - use our custom one only */
.breaking-news,
.cm-header-builder .breaking-news,
.beritapas-ticker-outer,
.beritapas-ticker-wrap,
.ticker-label,
.ticker-content,
.ticker-scroll {
    display: none !important;
}

/* Custom Ticker - Desktop & Mobile */
.bp-ticker-wrapper {
    display: block;
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 15px;
}

.bp-ticker {
    display: flex;
    align-items: stretch;
    background: linear-gradient(90deg, #009639, #007a2e);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,150,57,0.3);
}

.bp-ticker-label {
    background: linear-gradient(135deg, #c41e3a, #a01530);
    color: #fff;
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.bp-ticker-label::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    margin-right: 10px;
    animation: blink 1s infinite;
}

.bp-ticker-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.bp-ticker-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    animation: bp-ticker-scroll 25s linear infinite;
    white-space: nowrap;
}

.bp-ticker-list:hover {
    animation-play-state: paused;
}

.bp-ticker-list li {
    padding-right: 40px;
    position: relative;
}

.bp-ticker-list li::after {
    content: '•';
    position: absolute;
    right: 15px;
    color: rgba(255,255,255,0.5);
}

.bp-ticker-list li:last-child::after {
    display: none;
}

.bp-ticker-list li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.bp-ticker-list li a:hover {
    text-decoration: underline;
}

@keyframes bp-ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .bp-ticker-wrapper {
        padding: 0 10px;
        margin-bottom: 15px;
    }

    .bp-ticker-label {
        padding: 10px 12px;
        font-size: 10px;
        letter-spacing: 1px;
    }

    .bp-ticker-label::before {
        width: 6px;
        height: 6px;
        margin-right: 8px;
    }

    .bp-ticker-content {
        padding: 0 10px;
    }

    .bp-ticker-list {
        animation-duration: 18s;
    }

    .bp-ticker-list li {
        padding-right: 25px;
    }

    .bp-ticker-list li::after {
        right: 10px;
    }

    .bp-ticker-list li a {
        font-size: 12px;
    }
}

/* ================================
   MOBILE TICKER FIX (ColorMag - Desktop)
   ================================ */

/* Override ColorMag default max-width: 400px */
.newsticker,
.breaking-news .newsticker,
ul.newsticker {
    max-width: none !important;
    flex: 1 !important;
}

@media (max-width: 768px) {
    /* Ticker container - horizontal layout on mobile */
    .breaking-news,
    .cm-header-builder .breaking-news {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        min-height: 36px !important;
        width: 100% !important;
    }

    /* Label - compact on mobile */
    .breaking-news strong.breaking-news-latest,
    .breaking-news-latest,
    .cm-header-builder .breaking-news-latest {
        padding: 8px 10px !important;
        font-size: 10px !important;
        letter-spacing: 0.5px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    /* Hide blinking dot on mobile to save space */
    .breaking-news strong.breaking-news-latest::before,
    .breaking-news-latest::before {
        display: none !important;
    }

    /* Ticker text area - REMOVE max-width, take full remaining space */
    .newsticker,
    .breaking-news .newsticker,
    .breaking-news ul.newsticker,
    .cm-header-builder .newsticker {
        max-width: none !important;
        width: auto !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        padding: 8px 10px !important;
        overflow: hidden !important;
        visibility: visible !important;
    }

    .breaking-news ul.newsticker li a,
    .newsticker li a {
        font-size: 12px !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 480px) {
    /* Even more compact on small phones */
    .breaking-news strong.breaking-news-latest,
    .breaking-news-latest {
        padding: 6px 8px !important;
        font-size: 9px !important;
    }

    .breaking-news .newsticker,
    .newsticker {
        padding: 6px 8px !important;
    }

    .breaking-news ul.newsticker li a,
    .newsticker li a {
        font-size: 11px !important;
    }
}


/* ================================
   BERITAPAS GALLERY (Islam Times Style)
   ================================ */

.bp-gallery-page {
    background: #f5f5f5;
    min-height: 100vh;
    padding: 20px 0 40px;
}

.bp-gallery-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Header */
.bp-gallery-header {
    background: linear-gradient(135deg, #009639, #007a2e);
    color: #fff;
    padding: 25px 30px;
}

.bp-gallery-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.3;
}

.bp-gallery-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    opacity: 0.9;
}

/* Tabs */
.bp-gallery-tabs {
    display: flex;
    background: #f0f0f0;
    border-bottom: 3px solid #009639;
}

.bp-gallery-tab {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: #e0e0e0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #555;
}

.bp-gallery-tab:hover {
    background: #d0d0d0;
}

.bp-gallery-tab.active {
    background: #009639;
    color: #fff;
}

/* Gallery Views */
.bp-gallery-view {
    display: none;
    padding: 20px;
}

.bp-gallery-view.active {
    display: block;
}

/* Slideshow View */
.bp-slideshow-main {
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.bp-slide-container {
    position: relative;
    width: 100%;
    height: 500px;
}

.bp-slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.bp-slide.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bp-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bp-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 12px 20px;
    font-size: 14px;
}

/* Navigation Arrows */
.bp-slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0,150,57,0.8);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.bp-slide-nav:hover {
    background: rgba(0,150,57,1);
    transform: translateY(-50%) scale(1.1);
}

.bp-slide-prev {
    left: 15px;
}

.bp-slide-next {
    right: 15px;
}

.bp-slide-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Thumbnail Strip */
.bp-thumb-strip,
.bp-thumb-strip-bottom {
    display: flex;
    gap: 8px;
    padding: 15px;
    background: #1a1a1a;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #009639 #333;
}

.bp-thumb-strip::-webkit-scrollbar,
.bp-thumb-strip-bottom::-webkit-scrollbar {
    height: 6px;
}

.bp-thumb-strip::-webkit-scrollbar-track,
.bp-thumb-strip-bottom::-webkit-scrollbar-track {
    background: #333;
}

.bp-thumb-strip::-webkit-scrollbar-thumb,
.bp-thumb-strip-bottom::-webkit-scrollbar-thumb {
    background: #009639;
    border-radius: 3px;
}

.bp-thumb-item {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.bp-thumb-item:hover {
    opacity: 0.9;
}

.bp-thumb-item.active {
    opacity: 1;
    border-color: #009639;
}

.bp-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Photo Grid Views */
.bp-photo-grid {
    display: grid;
    gap: 10px;
}

.bp-grid-small {
    grid-template-columns: repeat(5, 1fr);
}

.bp-grid-large {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.bp-photo-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.bp-photo-item:hover {
    transform: scale(1.03);
}

.bp-grid-small .bp-photo-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.bp-grid-large .bp-photo-item img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    background: #f5f5f5;
}

.bp-photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 8px 10px;
    font-size: 12px;
}

/* Hide bottom thumb strip when in slideshow view */
.bp-gallery-slideshow.active ~ .bp-thumb-strip-bottom {
    display: none;
}

/* Actions */
.bp-gallery-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #f8f8f8;
    border-top: 1px solid #eee;
}

.bp-gallery-share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bp-gallery-share span {
    font-weight: 600;
    color: #555;
}

.bp-gallery-share a {
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.3s;
}

.bp-gallery-share a:hover {
    opacity: 0.85;
}

.bp-share-fb { background: #1877f2; }
.bp-share-tw { background: #1da1f2; }
.bp-share-wa { background: #25d366; }

.bp-back-gallery {
    color: #009639;
    text-decoration: none;
    font-weight: 600;
}

.bp-back-gallery:hover {
    text-decoration: underline;
}

/* Empty State */
.bp-gallery-empty {
    padding: 60px 30px;
    text-align: center;
    color: #666;
}

.bp-gallery-empty p {
    margin: 10px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .bp-gallery-container {
        margin: 0 10px;
    }

    .bp-gallery-title {
        font-size: 20px;
    }

    .bp-gallery-tabs {
        flex-wrap: wrap;
    }

    .bp-gallery-tab {
        flex: 1 1 33%;
        padding: 12px 10px;
        font-size: 12px;
    }

    .bp-slide-container {
        height: 300px;
    }

    .bp-slide-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .bp-grid-small {
        grid-template-columns: repeat(3, 1fr);
    }

    .bp-grid-large {
        grid-template-columns: repeat(2, 1fr);
    }

    .bp-thumb-item {
        width: 60px;
        height: 45px;
    }

    .bp-gallery-actions {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .bp-grid-small {
        grid-template-columns: repeat(2, 1fr);
    }

    .bp-grid-large {
        grid-template-columns: 1fr;
    }

    .bp-slide-container {
        height: 250px;
    }

    .bp-gallery-share {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ================================
   HOMEPAGE GALERI CAROUSEL
   ================================ */

.bp-galeri-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
    background: #000;
}

.bp-carousel-container {
    position: relative;
    width: 100%;
    height: 380px;
    z-index: 1;
}

.bp-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    text-decoration: none;
    pointer-events: none;
}

.bp-carousel-slide.active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}

.bp-carousel-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.bp-carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 20px 20px;
    background: linear-gradient(transparent 0%, rgba(0,0,0,0.85) 100%);
    color: #fff;
}

.bp-carousel-overlay h4 {
    margin: 0 0 5px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
}

.bp-carousel-meta {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

/* Navigation Arrows - Edge positioned */
.bp-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 60px;
    background: rgba(0,150,57,0.85);
    color: #fff;
    border: none;
    border-radius: 0;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.bp-carousel-nav:hover {
    background: rgba(0,150,57,1);
}

.bp-carousel-prev {
    left: 0;
    border-radius: 0 4px 4px 0;
}

.bp-carousel-next {
    right: 0;
    border-radius: 4px 0 0 4px;
}

/* Dots Navigation */
.bp-carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 100;
    pointer-events: auto;
}

.bp-carousel-dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bp-carousel-dot:hover {
    background: rgba(255,255,255,0.8);
}

.bp-carousel-dot.active {
    background: #009639;
    width: 25px;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .bp-carousel-container {
        height: 300px;
    }

    .bp-carousel-overlay h4 {
        font-size: 15px;
    }

    .bp-carousel-nav {
        width: 35px;
        height: 50px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .bp-carousel-container {
        height: 250px;
    }

    .bp-carousel-overlay {
        padding: 40px 15px 15px;
    }

    .bp-carousel-overlay h4 {
        font-size: 14px;
    }

    .bp-carousel-nav {
        width: 30px;
        height: 45px;
        font-size: 14px;
    }

    .bp-mtab {
        padding: 10px 12px;
        font-size: 12px;
    }
}

/* ================================
   INFOGRAFIK GRID - Square Format
   ================================ */

.bp-infografik-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.bp-infografik-item {
    text-decoration: none;
    display: block;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.bp-infografik-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.bp-infografik-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bp-infografik-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bp-infografik-item:hover .bp-infografik-img img {
    transform: scale(1.05);
}

.bp-infografik-item h4 {
    margin: 0;
    padding: 12px 15px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    text-align: center;
    background: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .bp-infografik-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .bp-infografik-item h4 {
        font-size: 12px;
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .bp-infografik-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .bp-infografik-item h4 {
        font-size: 11px;
        padding: 8px 10px;
    }
}

/* ================================
   INFOGRAFIK PLAYLIST GRID
   ================================ */

.bp-playlist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.bp-playlist-item {
    text-decoration: none;
    display: block;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.bp-playlist-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.bp-playlist-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f0f0f0;
}

.bp-playlist-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bp-playlist-item:hover .bp-playlist-thumb img {
    transform: scale(1.05);
}

.bp-playlist-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,150,57,0.9);
    color: #fff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
}

.bp-playlist-item h4 {
    margin: 0;
    padding: 12px 15px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    text-align: center;
    background: #fff;
}

.bp-playlist-item:hover h4 {
    color: #009639;
}

/* Responsive */
@media (max-width: 768px) {
    .bp-playlist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .bp-playlist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .bp-playlist-item h4 {
        font-size: 11px;
        padding: 10px;
    }

    .bp-playlist-count {
        font-size: 10px;
        padding: 4px 10px;
    }
}

/* ================================
   MEDIA TABS - CLEANED UP
   ================================ */

.bp-media-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 30px;
}

.bp-media-header {
    background: linear-gradient(135deg, #009639, #007a2e);
    padding: 0;
}

.bp-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
}

.bp-tab {
    flex: 1;
    max-width: 200px;
    padding: 15px 25px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.bp-tab:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.bp-tab.active {
    color: #fff;
    background: rgba(255,255,255,0.15);
    border-bottom-color: #fff;
}

.bp-tab-content {
    padding: 25px;
    min-height: 300px;
}

.bp-tab-panel {
    display: none;
}

.bp-tab-panel.active {
    display: block;
}

/* Empty State */
.bp-empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #999;
}

.bp-empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
    opacity: 0.5;
}

.bp-empty-state p {
    margin: 0;
    font-size: 16px;
}

/* Video Grid - Cleaned */
.bp-video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.bp-video-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.bp-video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.bp-video-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.bp-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bp-video-item:hover .bp-video-thumb img {
    transform: scale(1.05);
}

.bp-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(206, 17, 38, 0.9);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.bp-video-item:hover .bp-video-play {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(206, 17, 38, 1);
}

.bp-video-item h4 {
    margin: 0;
    padding: 12px 15px 5px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.bp-video-date {
    display: block;
    padding: 0 15px 12px;
    font-size: 11px;
    color: #999;
}

/* Carousel Badge - Small corner indicator */
.bp-carousel-badge {
    position: absolute;
    bottom: 50px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
    z-index: 5;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .bp-tabs {
        flex-wrap: nowrap;
    }

    .bp-tab {
        padding: 12px 15px;
        font-size: 12px;
    }

    .bp-video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .bp-tab-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .bp-tab {
        padding: 10px 8px;
        font-size: 11px;
    }

    .bp-video-grid {
        grid-template-columns: 1fr;
    }

    .bp-video-play {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* ================================
   MEDIA BOX - ISLAM TIMES STYLE
   ================================ */

.bp-media-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 30px;
}

/* Tab colors defined in page template inline style */

.bp-media-content {
    padding: 0;
    background: #fff;
}

.bp-tab-panel {
    padding: 20px;
    display: none;
}

.bp-tab-panel.active {
    display: block;
}

/* Galeri tab - no padding for full-width carousel */
#tab-galeri {
    padding: 0;
}

#tab-galeri .bp-galeri-carousel {
    border-radius: 0;
}

/* Video Grid - Clean */
.bp-video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.bp-video-item {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #eee;
}

.bp-video-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.bp-video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #222;
}

.bp-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bp-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    background: rgba(200,0,0,0.85);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
}

.bp-video-item:hover .bp-video-play {
    background: rgba(200,0,0,1);
    transform: translate(-50%, -50%) scale(1.1);
}

.bp-video-item h4 {
    margin: 0;
    padding: 10px 12px 4px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.bp-video-date {
    display: block;
    padding: 0 12px 10px;
    font-size: 11px;
    color: #999;
}

/* Playlist Grid - Clean */
.bp-playlist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.bp-playlist-item {
    text-decoration: none;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
    transition: all 0.2s;
    border: 1px solid #eee;
}

.bp-playlist-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.bp-playlist-thumb {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f5f5f5;
}

.bp-playlist-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.bp-playlist-item:hover .bp-playlist-thumb img {
    transform: scale(1.05);
}

.bp-playlist-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
}

.bp-playlist-item h4 {
    margin: 0;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    text-align: center;
}

/* Empty State */
.bp-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #aaa;
}

.bp-empty-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 10px;
    opacity: 0.4;
}

.bp-empty-state p {
    margin: 0;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .bp-mtab {
        padding: 12px 10px;
        font-size: 13px;
    }

    .bp-carousel-container {
        height: 250px;
    }

    .bp-video-grid,
    .bp-playlist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .bp-carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .bp-mtab {
        padding: 10px 5px;
        font-size: 12px;
    }

    .bp-carousel-container {
        height: 200px;
    }

    .bp-carousel-overlay h4 {
        font-size: 14px;
    }

    .bp-video-grid {
        grid-template-columns: 1fr;
    }

    .bp-playlist-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
