/*
Theme Name: rahmadotid
Theme URI: https://rahma.id
Description: Custom child theme for Rahma.ID based on GeneratePress.
Author: Noka Studio
Template: generatepress
Version: 1.2.7
*/

/* Reset & Typography */
body {
    background-color: #f8f9fa;
    color: #222;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* =========================================
   HEADER (Top Section)
   ========================================= */
.site-header {
    background-color: #ffffff !important;
    border-bottom: none !important;
    padding: 20px 0 !important;
}

.site-header .inside-header {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header .inside-header::before,
.site-header .inside-header::after {
    display: none !important; /* Remove clearfix which breaks flexbox */
}

.site-branding .main-title,
.site-branding .site-description {
    display: none !important;
}

/* 1. Header Left (Icons) */
.header-left-icons {
    order: 1; /* Force to be on the left */
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1;
    justify-content: flex-start;
}

.header-left-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: #999;
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}

.header-left-icons a:hover {
    background-color: #e84e4e; /* Coral Red */
    transform: translateY(-2px);
}

/* 2. Header Center (Logo) */
.site-logo {
    order: 2; /* Force to be in the center */
    display: flex;
    justify-content: center;
    flex: 1;
    margin: 0 !important; /* Remove GP default margins */
}

.site-logo img {
    max-width: 300px;
    height: auto;
}

/* 3. Header Right (Search) */
.header-right-search {
    order: 3; /* Force to be on the right */
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.custom-search-form {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    width: 250px;
}

.custom-search-form .search-field {
    border: none;
    padding: 10px 15px;
    width: 100%;
    outline: none;
    background: transparent;
    color: #333;
}

.custom-search-form .search-submit {
    background: transparent;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.custom-search-form .search-submit:hover {
    color: #e84e4e; /* Coral Red */
}

/* =========================================
   NAVIGATION BAR
   ========================================= */
.main-navigation {
    background: linear-gradient(90deg, #5c2552 0%, #2b1126 100%) !important; /* Elegant Purple Gradient */
    border-top: none;
    border-bottom: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

.main-navigation .inside-navigation {
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.main-navigation .main-nav > ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* Menu Links */
.main-navigation .main-nav ul li a {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 14px;
    padding: 5px 15px; /* Even slimmer padding */
    transition: all 0.3s ease;
}

.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.current-menu-item > a {
    color: #ffffff !important;
    background-color: #e84e4e !important; /* Coral Red Hover */
}

/* Fix for Submenus */
.main-navigation .main-nav ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #3d1a36; /* Solid dark purple for submenus */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    text-align: left;
    min-width: 200px;
}

.main-navigation .main-nav ul li:hover > ul {
    display: block;
}

.main-navigation .main-nav ul ul li {
    width: 100%;
}

.main-navigation .main-nav ul ul li a {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.main-navigation .main-nav ul ul li a:hover {
    background-color: #e84e4e !important;
    color: #ffffff !important;
}

/* =========================================
   POST GRID & HOMEPAGE
   ========================================= */
.home .site-main {
    display: block !important;
    margin-top: 35px;
    padding: 0 20px;
}

.home .site-main > article {
    display: none !important;
}

.post-image {
    margin: 0 0 15px 0 !important;
}

.post-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.entry-header {
    margin-bottom: 15px;
}

.entry-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
}

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

.entry-title a:hover {
    color: #e84e4e;
}

.entry-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    flex-grow: 1;
}

.entry-meta {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.entry-footer {
    display: none;
}

/* =========================================
   DARK MODE TOGGLE & STYLES
   ========================================= */

/* Positioning the toggle */
.main-navigation .inside-navigation {
    position: relative;
}

.menu-bar-items {
    position: absolute;
    right: 20px;
    display: flex;
    align-items: center;
    height: 100%;
}

.dark-mode-toggle-wrapper a {
    color: #ffffff !important;
    display: flex;
    align-items: center;
    padding: 0 10px;
    height: 100%;
    transition: color 0.3s ease;
}

.dark-mode-toggle-wrapper a:hover {
    color: #e84e4e !important;
}

/* Dark Mode Overrides */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode .site-header {
    background-color: #1e1e1e !important;
}

body.dark-mode .custom-search-form {
    background-color: #2d2d2d;
    border-color: #444;
}

body.dark-mode .custom-search-form .search-field {
    color: #e0e0e0;
}

body.dark-mode .custom-search-form .search-submit {
    color: #aaa;
}

body.dark-mode .home .site-main article {
    background: #1e1e1e;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

body.dark-mode .entry-title a {
    color: #ffffff;
}

body.dark-mode .entry-title a:hover {
    color: #e84e4e;
}

body.dark-mode .entry-summary {
    color: #bbb;
}

body.dark-mode .entry-meta {
    color: #888;
}

/* Make Logo legible if they use a dark logo on dark bg - optional invert filter */
/* body.dark-mode .site-logo img { filter: invert(1); } */

/* =========================================
   HERO BANNER & DYNAMIC HERO SLIDER
   ========================================= */
.rahma-hero-slider-wrap {
    position: relative;
    max-width: 1200px;
    margin: 35px auto 40px auto;
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    background-color: #1a1a1a;
}

.rahma-hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.rahma-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s ease;
    transform: scale(1.03);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rahma-hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

.rahma-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 6s cubic-bezier(0.16, 1, 0.3, 1);
}

.rahma-hero-slide.active .rahma-hero-bg {
    transform: scale(1.06);
}

.rahma-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(20, 10, 16, 0.25) 0%, rgba(20, 10, 16, 0.55) 50%, rgba(20, 10, 16, 0.8) 100%);
    pointer-events: none;
}

.rahma-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 820px;
    padding: 25px;
    margin: 0 auto;
}

.rahma-hero-cat-wrap {
    margin-bottom: 15px;
}

.rahma-hero-content .hero-cat {
    display: inline-block;
    background: #db5a5b;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 12px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(219, 90, 91, 0.35);
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rahma-hero-content .hero-cat:hover {
    background: #561d36;
    transform: translateY(-2px);
}

.rahma-hero-content .hero-title {
    margin: 0 0 15px 0;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.45;
}

.rahma-hero-content .hero-title a {
    color: #111111;
    text-decoration: none;
}

.rahma-hero-content .hero-title a span {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    padding: 6px 16px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    display: inline;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    transition: color 0.25s ease, background 0.25s ease;
}

.rahma-hero-slide:hover .hero-title a span {
    color: #db5a5b;
    background: #ffffff;
}

.rahma-hero-content .hero-date span {
    display: inline-block;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    color: #333333;
    font-size: 12px;
    padding: 4px 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Hero Navigation Arrows */
.rahma-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #561d36;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
}

.rahma-hero-nav svg {
    display: block;
    transition: transform 0.2s ease;
}

.rahma-hero-nav.prev {
    left: 24px;
}

.rahma-hero-nav.next {
    right: 24px;
}

.rahma-hero-nav:hover {
    background: #db5a5b;
    color: #ffffff;
    border-color: #db5a5b;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 8px 24px rgba(219, 90, 91, 0.45);
}

.rahma-hero-nav:active {
    transform: translateY(-50%) scale(0.98);
}

/* Pagination Dots */
.rahma-hero-dots {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    align-items: center;
}

.rahma-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.55);
    border: none;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.rahma-hero-dot.active {
    width: 28px;
    background: #db5a5b;
    box-shadow: 0 3px 10px rgba(219, 90, 91, 0.5);
}

.rahma-hero-dot:hover:not(.active) {
    background: #ffffff;
}

@media (max-width: 768px) {
    .rahma-hero-slider-wrap {
        height: 380px;
        margin: 20px 15px 30px 15px;
        border-radius: 14px;
    }
    .rahma-hero-content .hero-title {
        font-size: 19px;
    }
    .rahma-hero-nav {
        width: 38px;
        height: 38px;
    }
    .rahma-hero-nav.prev {
        left: 12px;
    }
    .rahma-hero-nav.next {
        right: 12px;
    }
}

/* Section Title */
.section-title {
    max-width: 1200px;
    margin: 0 auto 20px auto;
    padding: 0 20px;
}

.section-title h3 {
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #111;
    display: inline-block;
    padding-bottom: 5px;
    margin: 0;
}

/* =========================================
   POST GRID RE-DESIGN (Buzzy Card Style)
   ========================================= */
.site-main {
    max-width: 1200px;
    margin: 0 auto;
}

.home .site-main article {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin-bottom: 30px !important;
}

/* Make image cover the background */
.home .site-main article .post-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    margin: 0 !important;
    z-index: 1;
}

.home .site-main article .post-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home .site-main article:hover .post-image img {
    transform: scale(1.05);
}

/* Gradient overlay so text is readable */
.home .site-main article::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    z-index: 2;
    pointer-events: none;
}

/* Position text at the bottom */
.home .site-main article .entry-header {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 3;
    margin: 0;
}

/* Category styling inside grid */
.home .site-main article .buzzy-cat-badge {
    display: inline-block;
    background: #ff5722; /* Vibrant Orange/Red */
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    margin-bottom: 10px;
}
.home .site-main article .buzzy-cat-badge a {
    color: #fff;
    text-decoration: none;
}

/* Title Styling */
.home .site-main article .entry-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 10px;
}

.home .site-main article .entry-title a {
    color: #111;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    padding: 4px 10px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.home .site-main article .entry-title a:hover {
    color: #e91e63;
}

/* Author/Meta styling */
.home .site-main article .entry-meta {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    color: #222;
    font-weight: bold;
}

/* Hide excerpt */
.home .site-main article .entry-summary {
    display: none;
}

/* Hide default GeneratePress footer meta (tags, comments, extra categories) */
.home .site-main article footer.entry-meta {
    display: none !important;
}

/* Fallback background for missing images */
.home .site-main article .post-image {
    background-color: #333;
}

/* Ensure images don't show a broken icon if they fail, though this is tricky in pure CSS. 
   We rely on the background-color fallback. */
.home .site-main article .post-image img {
    color: transparent; /* Hides the broken image text in some browsers */
}

/* =========================================
   HIGHLIGHT / TRENDING SECTION (Responsive Modern Grid)
   ========================================= */
.buzzy-highlight-block {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 24px;
    margin: 40px 0;
    align-items: stretch;
}

/* Big Post (Left Card) */
.highlight-big {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 480px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background-color: #1a1a1a;
}

.highlight-big-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #2a2a2a;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.highlight-big:hover .highlight-big-image {
    transform: scale(1.04);
}

.highlight-big::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(219, 90, 91, 0.8) 100%) !important;
    z-index: 2;
    pointer-events: none;
    border-radius: 16px;
}

.highlight-big-content {
    position: relative;
    z-index: 3;
    padding: 22px 24px;
    margin: 18px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-big:hover .highlight-big-content {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
}

.highlight-big-content .buzzy-cat-badge {
    display: inline-block;
    background: #00bcd4;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.highlight-big-content .buzzy-cat-badge a {
    color: #fff;
    text-decoration: none;
}

.highlight-big-content .entry-title {
    font-size: clamp(20px, 2vw, 25px);
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.highlight-big-content .entry-title a {
    color: #111;
    text-decoration: none;
    text-shadow: none !important;
    transition: color 0.25s ease;
}

.highlight-big-content .entry-title a:hover {
    color: #db5a5b;
}

.highlight-big-content .entry-title span {
    background: transparent;
    padding: 0;
    box-shadow: none;
    border: none;
}

.highlight-big-content .entry-meta {
    font-size: 11.5px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.highlight-big-content .entry-meta span {
    color: #222;
    font-weight: 700;
}

/* Small List (Right Side - 4 Equal Flex Cards) */
.highlight-small-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    justify-content: space-between;
}

.highlight-small-item {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    padding: 11px 16px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
    margin-bottom: 0 !important;
}

.highlight-small-thumb {
    flex-shrink: 0;
    width: 82px;
    height: 82px;
    border-radius: 10px;
    overflow: hidden;
    background: #f0f0f0;
}

.highlight-small-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.highlight-small-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.highlight-small-item:hover .highlight-small-thumb img {
    transform: scale(1.08);
}

.highlight-small-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.highlight-small-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 4px;
    background: #db5a5b;
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.highlight-small-item:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(219, 90, 91, 0.12);
    border-color: rgba(219, 90, 91, 0.25);
    background: #ffffff;
}

.highlight-small-item:hover::before {
    opacity: 1;
}

.small-title {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.36;
    margin: 0 0 7px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.small-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.small-title a:hover {
    color: #db5a5b;
}

.small-meta {
    display: flex;
    align-items: center;
    font-size: 11px;
    color: #777;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.small-meta .dummy-avatar {
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    margin-right: 8px !important;
    flex-shrink: 0;
    object-fit: cover;
}

.small-meta span {
    color: #333;
    font-weight: 700;
    text-decoration: none;
    max-width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dark Mode Support */
body.dark-mode .highlight-big-content {
    background: rgba(30, 30, 30, 0.88);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

body.dark-mode .highlight-big-content .entry-title a {
    color: #f5f5f5;
}

body.dark-mode .highlight-big-content .entry-title a:hover {
    color: #ff8585;
}

body.dark-mode .highlight-big-content .entry-meta {
    color: #aaa;
}

body.dark-mode .highlight-big-content .entry-meta span {
    color: #eee;
}

body.dark-mode .highlight-small-item {
    background: #1e1e1e;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

body.dark-mode .highlight-small-item:hover {
    background: #252525;
    border-color: rgba(219, 90, 91, 0.4);
}

body.dark-mode .small-title a {
    color: #e5e5e5;
}

body.dark-mode .small-title a:hover {
    color: #ff8585;
}

body.dark-mode .small-meta {
    color: #888;
}

body.dark-mode .small-meta span {
    color: #bbb;
}

/* Responsive Queries */
@media (max-width: 992px) {
    .buzzy-highlight-block {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 30px 0;
    }
    .highlight-big {
        min-height: 400px;
    }
    .highlight-small-list {
        gap: 10px;
    }
    .highlight-small-item {
        padding: 14px 16px;
        min-height: 78px;
    }
    .small-title {
        -webkit-line-clamp: 3;
    }
}

@media (max-width: 576px) {
    .highlight-big {
        min-height: 320px;
        border-radius: 14px;
    }
    .highlight-big-content {
        margin: 12px;
        padding: 16px 18px;
        border-radius: 10px;
    }
    .highlight-big-content .entry-title {
        font-size: 17px;
        -webkit-line-clamp: 3;
    }
    .highlight-small-item {
        padding: 12px 14px;
        border-radius: 10px;
    }
    .small-title {
        font-size: 13.5px;
    }
}

/* Also apply this to the grid articles so they match! */
.home .site-main article::after {
    background: linear-gradient(to top, rgba(219, 90, 91, 0.9), transparent) !important;
}

/* =========================================
   4-COLUMN GRID (Keluarga Sakinah Block)
   ========================================= */
.buzzy-4col-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

@media (max-width: 1024px) {
    .buzzy-4col-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .buzzy-4col-grid {
        grid-template-columns: 1fr;
    }
}

.buzzy-4col-item {
    display: flex;
    flex-direction: column;
}

.buzzy-4col-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 15px;
    transition: opacity 0.3s ease;
}

.buzzy-4col-item img:hover {
    opacity: 0.85;
}

.buzzy-4col-title {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

.buzzy-4col-title a {
    color: #111;
    text-decoration: none;
    transition: color 0.3s ease;
}

.buzzy-4col-title a:hover {
    color: #e84e4e;
}

.buzzy-4col-date {
    font-size: 12px;
    color: #999;
    font-weight: 600;
}

body.dark-mode .buzzy-4col-title a {
    color: #fff;
}

body.dark-mode .buzzy-4col-title a:hover {
    color: #e84e4e;
}

body.dark-mode .buzzy-4col-date {
    color: #777;
}

/* =========================================
   HOMEPAGE HORIZONTAL SLIDERS (Latest Posts & Keluarga Sakinah)
   ========================================= */
.rahma-plain-slider-section {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 35px 0 45px 0;
    position: relative;
    width: 100%;
}

.rahma-section-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid rgba(219, 90, 91, 0.18);
}

.rahma-section-heading-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rahma-section-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #561d36;
    margin: 0;
}

body.dark-mode .rahma-section-title {
    color: #ffffff;
}

.rahma-slider-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rahma-slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(219, 90, 91, 0.25);
    color: #561d36;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(86, 29, 54, 0.08);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
}

.rahma-slider-btn svg {
    display: block;
    transition: transform 0.2s ease;
}

.rahma-slider-btn:hover {
    background: #db5a5b;
    color: #ffffff;
    border-color: #db5a5b;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(219, 90, 91, 0.3);
}

.rahma-slider-btn:active {
    transform: translateY(0);
}

body.dark-mode .rahma-slider-btn {
    background: #252525;
    color: #ffffff;
    border-color: rgba(219, 90, 91, 0.35);
}

body.dark-mode .rahma-slider-btn:hover {
    background: #db5a5b;
    color: #ffffff;
}

.rahma-slider-viewport {
    width: 100%;
    overflow: hidden;
    padding: 4px 2px 10px 2px;
}

.rahma-slider-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
}

.rahma-slider-track::-webkit-scrollbar {
    display: none;
}

/* 1. LATEST POSTS SLIDER CARDS */
.latest-slider-card {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 290px;
    height: 390px;
    scroll-snap-align: start;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(86, 29, 54, 0.16);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.latest-slider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(219, 90, 91, 0.28);
}

.latest-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.latest-slider-card:hover .latest-card-bg {
    transform: scale(1.06);
}

.latest-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(86, 29, 54, 0.94) 0%, rgba(219, 90, 91, 0.72) 42%, rgba(219, 90, 91, 0.15) 80%, transparent 100%);
    pointer-events: none;
}

.latest-card-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.latest-card-badge a {
    display: inline-block;
    background: #db5a5b;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3px 9px;
    border-radius: 4px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.latest-card-title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.38;
    margin: 0;
}

.latest-card-title a {
    color: #111;
    text-decoration: none;
}

.latest-card-title a span {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 4px 10px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    display: inline;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: color 0.2s ease, background 0.2s ease;
}

.latest-slider-card:hover .latest-card-title a span {
    color: #db5a5b;
    background: rgba(255, 255, 255, 0.96);
}

.latest-card-meta {
    font-size: 11px;
    font-weight: 700;
    color: #222;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 5px;
    padding: 3px 9px;
    letter-spacing: 0.5px;
}

/* Hide relative dates (e.g. 2 years ago) across cards */
.konsultasi-card-meta,
.keluarga-card-date,
.tuntunan-date,
.dual-date,
.buzzy-4col-date {
    display: none !important;
}

/* 2. KELUARGA SAKINAH SLIDER CARDS */
.keluarga-card {
    flex: 0 0 calc(25% - 15px);
    min-width: 240px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: transparent;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.keluarga-card:hover {
    transform: translateY(-4px);
}

.keluarga-card-img {
    position: relative;
    width: 100%;
    height: 175px;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
    margin-bottom: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.keluarga-card-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #db5a5b;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.keluarga-card-badge a {
    color: #ffffff !important;
    text-decoration: none;
}

.keluarga-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.keluarga-card:hover .keluarga-card-img img {
    transform: scale(1.05);
}

.keluarga-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.keluarga-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.keluarga-card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.keluarga-card:hover .keluarga-card-title a {
    color: #db5a5b;
}

body.dark-mode .keluarga-card-title a {
    color: #f0f0f0;
}

body.dark-mode .keluarga-card:hover .keluarga-card-title a {
    color: #ff8585;
}

.keluarga-card-date {
    font-size: 12px;
    color: #888888;
    font-weight: 500;
}

body.dark-mode .keluarga-card-date {
    color: #aaaaaa;
}

/* Responsiveness for Sliders */
@media (max-width: 1100px) {
    .latest-slider-card {
        flex: 0 0 calc(50% - 10px);
    }
    .keluarga-card {
        flex: 0 0 calc(33.333% - 14px);
    }
}

@media (max-width: 768px) {
    .latest-slider-card {
        flex: 0 0 85%;
        height: 350px;
    }
    .keluarga-card {
        flex: 0 0 70%;
    }
    .rahma-section-title {
        font-size: 18px;
    }
}

/* =========================================
   KONSULTASI SECTION (Branded Rahma.ID Slider)
   ========================================= */
.rahma-konsultasi-wrapper {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(86, 29, 54, 0.08) 0%, rgba(219, 90, 91, 0.12) 50%, rgba(255, 255, 255, 0.85) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(219, 90, 91, 0.22);
    border-radius: 20px;
    padding: 28px 28px 32px 28px;
    margin: 40px 0 50px 0;
    box-shadow: 0 10px 32px rgba(86, 29, 54, 0.06);
    position: relative;
    overflow: hidden;
}

.rahma-konsultasi-wrapper::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(219, 90, 91, 0.16), transparent 70%);
    pointer-events: none;
}

.konsultasi-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid rgba(219, 90, 91, 0.18);
}

.konsultasi-heading-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.konsultasi-badge {
    background: #db5a5b;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border-radius: 6px;
}

.konsultasi-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #561d36;
    margin: 0;
}

.konsultasi-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.konsultasi-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(219, 90, 91, 0.25);
    color: #561d36;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(86, 29, 54, 0.08);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
}

.konsultasi-btn svg {
    display: block;
    transition: transform 0.2s ease;
}

.konsultasi-btn:hover:not(.disabled) {
    background: #db5a5b;
    color: #ffffff;
    border-color: #db5a5b;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(219, 90, 91, 0.3);
}

.konsultasi-btn:active:not(.disabled) {
    transform: translateY(0);
}

.konsultasi-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.konsultasi-slider-viewport {
    width: 100%;
    overflow: hidden;
    padding: 4px 2px 8px 2px;
}

.konsultasi-slider-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
}

.konsultasi-slider-track::-webkit-scrollbar {
    display: none;
}

.konsultasi-card {
    flex: 0 0 calc(25% - 15px);
    min-width: 240px;
    scroll-snap-align: start;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.konsultasi-card::after {
    display: none !important;
}

.konsultasi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(219, 90, 91, 0.16);
    border-color: rgba(219, 90, 91, 0.3);
}

.konsultasi-card-img {
    position: relative;
    width: 100%;
    height: 165px;
    overflow: hidden;
    background: #f4f4f4;
}

.konsultasi-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.konsultasi-card:hover .konsultasi-card-img img {
    transform: scale(1.06);
}

.konsultasi-card-tag {
    position: absolute;
    bottom: 10px;
    left: 12px;
    background: rgba(86, 29, 54, 0.85);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.konsultasi-card-content {
    padding: 16px 18px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.konsultasi-card-title {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.38;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.konsultasi-card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.konsultasi-card-title a:hover {
    color: #db5a5b;
}

.konsultasi-card-meta {
    font-size: 11px;
    color: #888;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.konsultasi-card-meta svg {
    color: #db5a5b;
    flex-shrink: 0;
}

/* Dark Mode for Konsultasi Slider */
body.dark-mode .rahma-konsultasi-wrapper {
    background: linear-gradient(135deg, rgba(45, 14, 27, 0.75) 0%, rgba(65, 20, 35, 0.65) 50%, rgba(25, 25, 25, 0.85) 100%);
    border-color: rgba(219, 90, 91, 0.3);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

body.dark-mode .konsultasi-title {
    color: #ffffff;
}

body.dark-mode .konsultasi-btn {
    background: #252525;
    color: #ffffff;
    border-color: rgba(219, 90, 91, 0.35);
}

body.dark-mode .konsultasi-btn:hover:not(.disabled) {
    background: #db5a5b;
    color: #ffffff;
}

body.dark-mode .konsultasi-card {
    background: #1e1e1e;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

body.dark-mode .konsultasi-card:hover {
    background: #242424;
    border-color: rgba(219, 90, 91, 0.4);
}

body.dark-mode .konsultasi-card-title a {
    color: #f0f0f0;
}

body.dark-mode .konsultasi-card-title a:hover {
    color: #ff8585;
}

body.dark-mode .konsultasi-card-meta {
    color: #999;
}

/* Responsiveness for Konsultasi Slider */
@media (max-width: 1100px) {
    .konsultasi-card {
        flex: 0 0 calc(33.333% - 14px);
    }
}

@media (max-width: 768px) {
    .rahma-konsultasi-wrapper {
        padding: 22px 18px 24px 18px;
        margin: 30px 0;
        border-radius: 16px;
    }
    .konsultasi-title {
        font-size: 18px;
    }
    .konsultasi-card {
        flex: 0 0 calc(50% - 10px);
        min-width: 200px;
    }
    .konsultasi-card-img {
        height: 140px;
    }
}

@media (max-width: 520px) {
    .konsultasi-card {
        flex: 0 0 82%;
        min-width: 0;
    }
    .konsultasi-btn {
        width: 36px;
        height: 36px;
    }
}

/* Ensure section titles inside grid span full width */
.home .site-main > .section-title {
    grid-column: 1 / -1;
    padding: 0; /* Remove padding if it's inside the grid */
}

/* OVERRIDE ALL CAPS FOR GOOD */
.buzzy-4col-title, .buzzy-4col-title a {
    text-transform: none !important;
}

/* Reduce grid bottom margin to fix huge gaps */
.buzzy-4col-grid {
    margin-bottom: 20px !important;
}

/* =========================================
   POPULER BLOCK (Red Coral Wrapper)
   ========================================= */
.buzzy-populer-wrapper {
    grid-column: 1 / -1;
    background-color: #db5a5b; /* Red Coral */
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.populer-title h3 {
    color: #fff !important;
    border-bottom: 2px solid #fff !important;
}

.buzzy-populer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

@media (max-width: 1024px) {
    .buzzy-populer-grid {
        grid-template-columns: 1fr;
    }
}

.populer-item {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
}

.populer-item::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    z-index: 1;
    pointer-events: none;
}

.populer-big {
    height: 420px;
}

.populer-small-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.populer-small-item {
    height: 200px;
}

.populer-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 2;
}

.pop-cat {
    display: inline-block;
    background: #1e5a5a; /* Dark Green from screenshot */
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 8px;
    margin-bottom: 5px;
}

.pop-title {
    margin: 0;
    line-height: 1.4;
}

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

.pop-title span {
    background: #fff;
    padding: 4px 10px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    box-shadow: 4px 0 0 #fff, -4px 0 0 #fff;
}

.populer-big .pop-title {
    font-size: 26px;
    font-weight: 900;
}

.populer-small-item .pop-title {
    font-size: 18px;
    font-weight: 800;
}

.buzzy-populer-wrapper .section-title {
    margin-top: 0 !important;
    margin-bottom: 30px;
    padding: 0;
}

/* OVERRIDE POPULER TO GLASSMORPHISM */
.populer-content {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 10px !important;
    padding: 15px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
    /* Adjust positioning to account for padding */
    bottom: 15px !important;
    left: 15px !important;
    right: 15px !important;
}

.pop-title span {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Adjust category badge spacing inside glass panel */
.pop-cat {
    border-radius: 4px;
    margin-bottom: 10px !important;
}

/* =========================================
   POPULER BLOCK (Red Coral Glassmorphism)
   ========================================= */
.buzzy-populer-red .highlight-big-content {
    background: rgba(219, 90, 91, 0.8) !important; /* Coral Red Glass */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

.buzzy-populer-red .highlight-big-content .entry-title a {
    color: #ffffff !important;
    text-shadow: none !important;
}

.buzzy-populer-red .highlight-big-content .entry-title a:hover {
    color: #ffcccc !important;
}

.buzzy-populer-red .buzzy-cat-badge {
    background: #ffffff !important;
}

.buzzy-populer-red .buzzy-cat-badge a {
    color: #db5a5b !important;
}

.buzzy-populer-red .entry-meta {
    color: #ffffff !important;
}

.buzzy-populer-red .entry-meta span {
    color: #ffffff !important;
}

/* Add a subtle red tint to the small items hover state */
.buzzy-populer-red .highlight-small-item::before {
    background-color: #db5a5b !important; /* Coral Red accent */
}

/* SECTION BACKGROUND GLASSMORPHISM */
.buzzy-populer-red {
    background: rgba(219, 90, 91, 0.15) !important; /* Light transparent coral for the whole section */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(219, 90, 91, 0.3);
    border-radius: 16px;
    padding: 40px 30px;
    margin-bottom: 50px;
    box-shadow: 0 15px 35px rgba(219, 90, 91, 0.1);
}

.buzzy-populer-red .section-title h3 {
    /* border-bottom removed */
    color: #db5a5b !important;
}

/* Let's make the right side cards transparent glass too so they blend with the section! */
.buzzy-populer-red .highlight-small-item {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.5) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.buzzy-populer-red .highlight-small-item:hover {
    background: rgba(255, 255, 255, 0.9) !important;
}

/* OUTER WRAPPER GLASSMORPHISM */
.buzzy-populer-wrapper-glass {
    background: rgba(219, 90, 91, 0.15) !important; /* Coral Red Tint */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(219, 90, 91, 0.3);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(219, 90, 91, 0.1);
}

/* Make inner grid transparent since wrapper has the background */
.buzzy-populer-red {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
}

/* Ensure title stands out inside the tinted box */
.buzzy-populer-wrapper-glass .section-title h3 {
    /* border-bottom removed */
    color: #db5a5b !important;
}

/* =========================================
   TUNTUNAN ISLAM BLOCK
   ========================================= */
.buzzy-tuntunan-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
}

.buzzy-tuntunan-layout.no-sidebar {
    grid-template-columns: 1fr !important;
}

.rahma-archive-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: #db5a5b;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    transition: all 0.2s ease;
}

.rahma-archive-link:hover {
    color: #561d36;
    transform: translateX(3px);
}

body.dark-mode .rahma-archive-link {
    color: #ff8585;
}

body.dark-mode .rahma-archive-link:hover {
    color: #ffffff;
}

@media (max-width: 1024px) {
    .buzzy-tuntunan-layout {
        grid-template-columns: 1fr;
    }
}

.tuntunan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

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

@media (max-width: 480px) {
    .tuntunan-grid {
        grid-template-columns: 1fr;
    }
}

.tuntunan-item {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.tuntunan-img-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.tuntunan-img-wrap img {
    width: 100%;
    height: 175px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.tuntunan-item:hover .tuntunan-img-wrap img {
    transform: scale(1.05);
}

.tuntunan-cat {
    position: absolute;
    bottom: 10px;
    left: 10px;
    transform: none;
    background: #1e5a5a; /* Matching deep green */
    color: #fff;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.tuntunan-cat a {
    color: #ffffff !important;
    text-decoration: none;
}

.tuntunan-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 6px 0;
    text-align: left;
    text-transform: none !important;
}

.tuntunan-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tuntunan-title a:hover {
    color: #db5a5b;
}

.tuntunan-date {
    font-size: 12px;
    color: #999;
}

/* Sidebar Image */
.tuntunan-sidebar img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
}

body.dark-mode .tuntunan-title a { color: #f0f0f0; }
body.dark-mode .tuntunan-title a:hover { color: #ff8585; }
body.dark-mode .tuntunan-date { color: #777; }

/* =========================================
   HOMEPAGE INSTAGRAM FEED SECTION
   ========================================= */
.buzzy-instagram-wrapper {
    position: relative;
    width: 100%;
}

.rahma-insta-top-bar {
    border-bottom: 2px solid rgba(219, 90, 91, 0.18);
    padding-bottom: 14px;
    margin-bottom: 20px;
}

.rahma-insta-heading-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.rahma-insta-icon-badge {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 17px;
    box-shadow: 0 4px 10px rgba(220, 39, 67, 0.28);
    flex-shrink: 0;
}

.rahma-insta-handle-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: #db5a5b;
    background: rgba(219, 90, 91, 0.08);
    padding: 4px 12px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.rahma-insta-handle-pill:hover {
    background: rgba(219, 90, 91, 0.16);
    color: #c44647;
    transform: translateY(-1px);
}

.rahma-insta-handle-pill i {
    font-size: 11px;
    color: #10b981;
}

.rahma-insta-followers-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 50px;
}

body.dark-mode .rahma-insta-followers-tag {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

.rahma-insta-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(220, 39, 67, 0.28);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.rahma-insta-follow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 39, 67, 0.42);
    color: #ffffff !important;
}

.rahma-insta-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.rahma-insta-item {
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.rahma-insta-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.rahma-insta-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.rahma-insta-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.rahma-insta-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.rahma-insta-item:hover .rahma-insta-img {
    transform: scale(1.08);
}

.rahma-insta-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 13px;
    z-index: 2;
    transition: opacity 0.25s ease;
}

.rahma-insta-item:hover .rahma-insta-badge {
    opacity: 0;
}

.rahma-insta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(35, 18, 33, 0.94) 0%, rgba(35, 18, 33, 0.6) 55%, rgba(219, 90, 91, 0.2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px 12px;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    text-align: left;
}

.rahma-insta-item:hover .rahma-insta-overlay {
    opacity: 1;
}

.rahma-insta-meta {
    display: flex;
    gap: 12px;
    font-size: 11.5px;
    font-weight: 700;
    color: #ffccd0;
    margin-bottom: 6px;
}

.rahma-insta-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.rahma-insta-caption {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    color: #ffffff;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rahma-insta-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 700;
    color: #ffd6d7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dark Mode Support */
body.dark-mode .rahma-insta-item {
    background: #1f1422;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

body.dark-mode .rahma-insta-handle-pill {
    background: rgba(255, 255, 255, 0.08);
    color: #ff8e8f;
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .rahma-insta-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 580px) {
    .rahma-insta-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .rahma-insta-follow-btn span {
        display: none;
    }

    .rahma-insta-follow-btn {
        padding: 8px 12px;
    }
}

/* =========================================
   DUAL BLOCK (INSPIRASI & SASTRA)
   ========================================= */
.buzzy-dual-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 900px) {
    .buzzy-dual-layout {
        grid-template-columns: 1fr;
    }
}

.dual-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 600px) {
    .dual-grid {
        grid-template-columns: 1fr;
    }
}

.dual-item {
    display: flex;
    flex-direction: column;
}

.dual-img-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.dual-img-wrap img {
    width: 100%;
    height: 165px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    margin-bottom: 0;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.dual-item:hover .dual-img-wrap img {
    transform: scale(1.05);
}

.dual-card-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #db5a5b;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.dual-card-badge a {
    color: #ffffff !important;
    text-decoration: none;
}

.dual-title {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 6px 0;
    text-align: left;
    text-transform: none !important;
}

.dual-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.dual-title a:hover {
    color: #db5a5b;
}

.dual-date {
    font-size: 11px;
    color: #999;
}

body.dark-mode .dual-title a { color: #f0f0f0; }
body.dark-mode .dual-title a:hover { color: #ff8585; }
body.dark-mode .dual-date { color: #777; }

/* SHARED CARD AUTHOR META */
.keluarga-author-meta,
.tuntunan-author-meta,
.dual-author-meta {
    font-size: 11px;
    font-weight: 600;
    color: #888888;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-top: 2px;
    text-align: left;
}

.keluarga-author-meta strong,
.tuntunan-author-meta strong,
.dual-author-meta strong {
    color: #333333;
    font-weight: 700;
}

body.dark-mode .keluarga-author-meta,
body.dark-mode .tuntunan-author-meta,
body.dark-mode .dual-author-meta {
    color: #aaaaaa;
}

body.dark-mode .keluarga-author-meta strong,
body.dark-mode .tuntunan-author-meta strong,
body.dark-mode .dual-author-meta strong {
    color: #f0f0f0;
}

/* SEPARATOR BETWEEN INSPIRASI & SASTRA */
.dual-left {
    position: relative;
}

.dual-left::after {
    content: '';
    position: absolute;
    right: -20px; /* Places the line exactly in the middle of the 40px grid gap */
    top: 0;
    bottom: 0;
    width: 1px;
    background: #eaeaea;
}

/* Hide the separator on mobile when they stack */
@media (max-width: 900px) {
    .dual-left::after {
        display: none;
    }
}

/* Dark mode support for the separator */
body.dark-mode .dual-left::after {
    background: #333;
}

/* =========================================
   HEADING TITLE (Standardized Modern Top Bar)
   ========================================= */
.section-title {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    padding: 0 0 14px 0 !important;
    margin-bottom: 22px !important;
    border-bottom: 2px solid rgba(219, 90, 91, 0.18) !important;
    width: 100% !important;
}

.section-title::before,
.section-title::after {
    display: none !important;
}

.section-title h3 {
    font-size: 20px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    color: #561d36 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

body.dark-mode .section-title h3 {
    color: #ffffff !important;
}

/* =========================================
   HIDE PAGINATION ON HOMEPAGE
   ========================================= */
.home .paging-navigation,
.home .nav-links {
    display: none !important;
}


/* =========================================
   CUSTOM FOOTER (INSPIRASI MUSLIMAH STYLE)
   ========================================= */
.site-footer {
    background: transparent !important;
}

.buzzy-custom-footer {
    background: #231221; /* Very dark plum/purple matching screenshot */
    margin-top: 60px;
    font-family: inherit;
}

.footer-top-section {
    padding: 80px 20px 60px 20px;
    text-align: center;
}

.footer-cursive-title {
    font-family: 'Dancing Script', cursive;
    color: #e84e4e; /* Soft red coral */
    font-size: 64px;
    font-weight: 700;
    margin: 0 0 30px 0;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.footer-social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
}

.footer-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff !important;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.footer-social-icons a:hover {
    background: #e84e4e;
    border-color: #e84e4e;
    color: #ffffff !important;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 24px rgba(232, 78, 78, 0.45);
}

.footer-bottom-bar {
    background: #1b0e1a; /* Even darker for the bottom bar */
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 900px) {
    .footer-bottom-bar {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

.footer-bottom-bar a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.footer-bottom-bar a:hover {
    color: #e84e4e;
}

.fbb-center {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: #ccc;
    font-size: 12px;
}

/* FLOATING BACK TO TOP BUTTON */
#buzzy-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: #e84e4e;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 9999;
}

#buzzy-back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#buzzy-back-to-top:hover {
    background: #111;
    transform: translateY(-3px);
}

/* =========================================
   FOOTER GRADIENT & STICKY HEADER
   ========================================= */
/* 1. Footer Gradient */
.buzzy-custom-footer {
    background: linear-gradient(135deg, #2b1126 0%, #150813 100%) !important;
}

/* 2. Sticky Menu Bar */
.main-navigation {
    position: sticky !important;
    top: 0;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); /* Add shadow to separate it from content when scrolling */
}

/* Ensure no other element overlaps the sticky menu */
.site-header {
    z-index: 10000;
}

/* =========================================
   SINGLE POST / PAGE LAYOUT
   ========================================= */
body.single, body.page {
    background: #f4f4f4;
}



/* Main Content Area */
.inside-article {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .inside-article {
        padding: 20px;
    }
}

.entry-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

h1.entry-title {
    font-size: 36px;
    font-weight: 900;
    line-height: 1.3;
    color: #111;
    text-transform: none !important;
}

.entry-meta {
    color: #888;
    font-size: 14px;
    margin-top: 15px;
}

.entry-meta a {
    color: #db5a5b;
    font-weight: bold;
    text-decoration: none;
}

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

.entry-content p {
    margin-bottom: 25px;
}

/* Sidebar Styling */
#right-sidebar .widget {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 18px;
    font-weight: 900;
    color: #111;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #db5a5b;
}


/* =========================================
   RELATED POSTS & SHARE BUTTONS
   ========================================= */
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .buzzy-share-buttons {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}
.related-item a:hover {
    color: #db5a5b !important;
}
.related-item img:hover {
    transform: scale(1.05);
}




/* =========================================
   MOBILE RESPONSIVENESS REFINEMENTS
   ========================================= */
.mobile-search-toggle { display: none; }

@media (max-width: 768px) {
    /* Header Fixes for Mobile */
    .header-left-icons { 
        display: none !important; 
    }
    
    .inside-header {
        position: relative;
        padding-top: 15px;
        padding-bottom: 15px;
    }
    
    .site-branding, .site-logo {
        text-align: center;
        width: 100%;
    }
    
    .site-logo img, .site-branding img {
        max-width: 180px !important;
        height: auto;
    }
    
    /* Search Fix */
    .header-right-search {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .mobile-search-toggle {
        display: block;
        background: transparent;
        border: none;
        color: #db5a5b;
        cursor: pointer;
        padding: 5px;
    }
    
    .custom-search-form {
        display: none !important; /* Hide by default */
        position: absolute;
        top: 40px;
        right: -10px;
        width: 250px !important;
        background: #fff;
        box-shadow: 0 5px 25px rgba(0,0,0,0.15);
        padding: 5px;
        border-radius: 8px;
        z-index: 9999;
    }
    
    .custom-search-form.active {
        display: flex !important; /* Show when toggled */
    }
    
    /* Menu Text Color Fix */
    .menu-toggle, .menu-toggle:hover, .menu-toggle:focus {
        color: #ffffff !important;
    }
    .menu-toggle .mobile-menu {
        color: #ffffff !important;
    }
    
    /* Tuntunan Islam layout fix */
    .buzzy-tuntunan-layout {
        display: flex;
        flex-direction: column;
    }
    
    .tuntunan-sidebar img {
        position: static;
        margin-top: 20px;
    }
    
    /* Custom split login mobile fix */
    .login-left-panel {
        display: none !important;
    }
    #login {
        width: 100% !important;
        padding: 20px !important;
    }
    
    /* Make single post typography smaller for readability */
    h1.entry-title {
        font-size: 24px !important;
    }
    .entry-content {
        font-size: 16px !important;
    }
}


/* =========================================
   MOBILE MENU & SEARCH BAR REFINEMENTS
   ========================================= */
@media (min-width: 769px) {
    .mobile-only-search {
        display: none !important;
    }
}

@media (max-width: 768px) {
    /* Hide the old red search toggle in the white header */
    .mobile-search-toggle {
        display: none !important;
    }
    
    /* Make the dark navigation bar a proper flex row */
    .main-navigation .inside-navigation {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: wrap; /* In case the actual menu drops down */
    }
    
    /* Push the "Menu" hamburger to the far left */
    .menu-toggle {
        margin-right: auto !important;
        text-align: left !important;
        width: auto !important;
        flex-grow: 1;
        padding-left: 20px !important;
    }
    
    /* Group the right-side icons (Search and Dark Mode) */
    .menu-bar-items {
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
        padding-right: 20px !important;
    }
    
    .mobile-search-toggle-nav {
        color: #ffffff !important;
        display: flex;
        align-items: center;
        padding: 5px;
    }
    
    /* Position the popup form correctly relative to the new nav */
    .custom-search-form {
        top: 60px !important; /* Push it down so it doesn't overlap the dark bar */
        right: 15px !important;
    }
    
    /* Ensure the actual dropdown menu goes full width below the bar */
    .main-navigation .main-nav {
        width: 100% !important;
        flex-basis: 100% !important;
    }
}


/* Close the gap between menu bar icons */
@media (max-width: 768px) {
    .menu-bar-items {
        gap: 5px !important;
    }
    .menu-bar-item {
        padding: 0 10px !important;
    }
    .menu-bar-item a {
        padding: 0 !important;
        margin: 0 !important;
    }
}


/* Fix vertical alignment for ALL menu bar icons */
@media (max-width: 768px) {
    .menu-bar-item {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 60px; /* Force same height to center perfectly */
        padding: 0 5px !important;
    }
    
    .menu-bar-item a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        line-height: 1 !important;
    }
    
    .mobile-search-toggle-nav {
        padding: 0 !important;
    }
}


/* Fix menu-bar-items flying around when mobile menu is open */
@media (max-width: 768px) {
    .main-navigation .inside-navigation {
        position: relative !important;
        display: block !important; /* Remove flex to stop weird wrapping */
    }
    
    .menu-toggle {
        display: block !important;
        float: left !important;
        width: auto !important;
        margin: 0 !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        height: 60px;
        line-height: 60px;
    }
    
    .menu-bar-items {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        height: 60px !important;
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
        padding-right: 15px !important;
        float: none !important;
    }
    
    .main-navigation .main-nav {
        clear: both !important;
        width: 100% !important;
    }
    
    .custom-search-form {
        top: 60px !important;
        right: 15px !important;
    }
}

/* ==========================================================================
   RAHMA.ID READING EXPERIENCE (SINGLE POST)
   ========================================================================== */

/* 1. Reading Progress Bar */
.rahma-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #db5a5b, #e84e4e);
    z-index: 999999;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(219, 90, 91, 0.6);
}

/* 2. Reading Time Badge in Post Meta */
.rahma-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 10px;
    padding: 2px 10px;
    background: #fdf2f2;
    color: #db5a5b;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
}
.rahma-reading-time i {
    font-size: 12px;
}

/* 3. Article Share & Action Bar */
.buzzy-bottom-meta-wrapper {
    margin-top: 40px;
    border-top: 1px solid #f0e6e6;
    padding-top: 25px;
}
.rahma-article-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0e6e6;
    margin-bottom: 30px;
}
.rahma-share-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.rahma-action-label {
    font-size: 14px;
    font-weight: 700;
    color: #444;
    margin-right: 4px;
}
.rahma-btn-share,
.rahma-btn-bookmark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.rahma-btn-share.share-wa {
    background: #25D366;
    color: #fff !important;
}
.rahma-btn-share.share-wa:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}
.rahma-btn-share.share-fb {
    background: #1877F2;
    color: #fff !important;
}
.rahma-btn-share.share-fb:hover {
    background: #1565d8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}
.rahma-btn-share.share-x {
    background: #111;
    color: #fff !important;
}
.rahma-btn-share.share-x:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.rahma-btn-share.share-copy {
    background: #f4f5f7;
    color: #333;
    border: 1px solid #e1e4e8;
}
.rahma-btn-share.share-copy:hover {
    background: #e9ebef;
    color: #111;
    transform: translateY(-2px);
}
.rahma-btn-bookmark {
    background: #fdf2f2;
    color: #db5a5b;
    border: 1px solid #f9d3d3;
}
.rahma-btn-bookmark:hover,
.rahma-btn-bookmark.saved {
    background: #db5a5b;
    color: #fff;
    border-color: #db5a5b;
    box-shadow: 0 4px 14px rgba(219, 90, 91, 0.3);
}

/* 4. Author Bio Box */
.rahma-author-box {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    background: #fffcfc;
    border: 1px solid #f0e6e6;
    border-left: 5px solid #db5a5b;
    border-radius: 12px;
    padding: 26px 28px;
    margin: 35px 0 40px 0;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
}
.rab-avatar {
    flex-shrink: 0;
}
.rab-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.rab-content {
    flex-grow: 1;
}
.rab-meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}
.rab-badge {
    background: #db5a5b;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 9px;
    border-radius: 4px;
}
.rab-post-count {
    font-size: 12px;
    color: #777;
    font-weight: 600;
}
.rab-name {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 800;
}
.rab-name a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s ease;
}
.rab-name a:hover {
    color: #db5a5b;
}
.rab-bio {
    color: #555;
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0 0 16px 0;
}
.rab-btn-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #db5a5b;
    text-decoration: none;
    transition: gap 0.2s ease;
}
.rab-btn-more:hover {
    gap: 10px;
    color: #c04243;
}
@media (max-width: 600px) {
    .rahma-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .rab-meta-top {
        justify-content: center;
    }
}

/* 5. Modern Comment Box */
#respond {
    background: #ffffff;
    border: 1px solid #f0e6e6;
    border-radius: 12px;
    padding: 32px 30px;
    margin-top: 40px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02);
}
#reply-title {
    font-size: 22px;
    font-weight: 800;
    color: #222;
    margin-bottom: 15px;
}
#commentform textarea,
#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    background: #fafafa;
    font-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
#commentform textarea:focus,
#commentform input:focus {
    border-color: #db5a5b;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(219, 90, 91, 0.15);
}
#commentform #submit {
    background: #db5a5b;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(219, 90, 91, 0.25);
}
#commentform #submit:hover {
    background: #c04243;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(219, 90, 91, 0.35);
}

/* ==========================================================================
   CATEGORY & RUBRIK ARCHIVE (HERO & 2-COLUMN GRID)
   ========================================================================== */

/* Rubrik Hero Banner */
.category .page-header {
    display: none !important;
}
.rahma-rubrik-header {
    background: linear-gradient(135deg, #231221 0%, #3a1736 100%);
    border-radius: 16px;
    padding: 38px 36px 32px 36px;
    margin-bottom: 35px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(35, 18, 33, 0.15);
}
.rahma-rubrik-header::after {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(219, 90, 91, 0.25);
    filter: blur(40px);
    pointer-events: none;
}
.rrh-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(219, 90, 91, 0.25);
    color: #ff9d9e;
    border: 1px solid rgba(219, 90, 91, 0.4);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.rrh-title {
    font-size: 34px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
}
.rrh-desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    max-width: 650px;
}
.rrh-subcats {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
    position: relative;
    z-index: 2;
}
.rrh-pill {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}
.rrh-pill:hover,
.rrh-pill.active {
    background: #db5a5b;
    border-color: #db5a5b;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(219, 90, 91, 0.4);
}

/* 2-Column Editorial Grid for Archive & Category */
.archive .site-main,
.category .site-main,
.tag .site-main,
.search-results .site-main {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}
.archive .site-main > .paging-navigation,
.category .site-main > .paging-navigation,
.tag .site-main > .paging-navigation,
.search-results .site-main > .paging-navigation,
.archive .site-main > .rahma-rubrik-header,
.category .site-main > .rahma-rubrik-header,
.archive .site-main > .rahma-breadcrumbs,
.category .site-main > .rahma-breadcrumbs,
.tag .site-main > .rahma-breadcrumbs,
.search-results .site-main > .rahma-breadcrumbs,
.archive .site-main > .page-header,
.tag .site-main > .page-header,
.search-results .site-main > .page-header {
    grid-column: 1 / -1;
}
.archive article.post,
.category article.post,
.tag article.post,
.search-results article.post {
    background: #ffffff;
    border: 1px solid #f0e6e6;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 0 !important;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}
.archive article.post:hover,
.category article.post:hover,
.tag article.post:hover,
.search-results article.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: #e5d5d5;
}
.archive .post-image,
.category .post-image,
.tag .post-image,
.search-results .post-image {
    margin: 0 !important;
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f7f7f7;
}
.archive .post-image img,
.category .post-image img,
.tag .post-image img,
.search-results .post-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease;
}
.archive article.post:hover .post-image img,
.category article.post:hover .post-image img,
.tag article.post:hover .post-image img,
.search-results article.post:hover .post-image img {
    transform: scale(1.05);
}
.archive .inside-article,
.category .inside-article,
.tag .inside-article,
.search-results .inside-article {
    padding: 20px 22px 24px 22px !important;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.archive .entry-title,
.category .entry-title,
.tag .entry-title,
.search-results .entry-title {
    font-size: 19px !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
    margin: 8px 0 12px 0 !important;
}
.archive .entry-title a,
.category .entry-title a,
.tag .entry-title a,
.search-results .entry-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}
.archive .entry-title a:hover,
.category .entry-title a:hover,
.tag .entry-title a:hover,
.search-results .entry-title a:hover {
    color: #db5a5b;
}
.archive .entry-summary,
.category .entry-summary,
.tag .entry-summary,
.search-results .entry-summary {
    margin-top: 0 !important;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    flex-grow: 1;
}
.archive .entry-meta,
.category .entry-meta,
.tag .entry-meta,
.search-results .entry-meta {
    font-size: 12px;
    color: #888;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f6f0f0;
}

/* Modern Pagination Pills */
.paging-navigation {
    margin: 40px 0 20px 0;
}
.paging-navigation .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.paging-navigation .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 14px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e1e4e8;
    color: #333;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}
.paging-navigation .page-numbers:hover {
    background: #fdf2f2;
    border-color: #db5a5b;
    color: #db5a5b;
}
.paging-navigation .page-numbers.current {
    background: #db5a5b;
    border-color: #db5a5b;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(219, 90, 91, 0.3);
}

@media (max-width: 768px) {
    .archive .site-main,
    .category .site-main,
    .tag .site-main,
    .search-results .site-main {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   LIVE SEARCH & TOAST NOTIFICATION
   ========================================================================== */

.header-right-search {
    position: relative;
}
.rahma-live-search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 380px;
    max-width: 90vw;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #f0e6e6;
    z-index: 999999;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.rahma-live-search-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.rls-loading,
.rls-empty {
    padding: 24px 20px;
    text-align: center;
    color: #777;
    font-size: 14px;
}
.rls-results-list {
    list-style: none;
    padding: 8px 0;
    margin: 0;
    max-height: 380px;
    overflow-y: auto;
}
.rls-item {
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #f7f0f0;
}
.rls-item:last-child {
    border-bottom: none;
}
.rls-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    text-decoration: none;
    transition: background 0.2s ease;
}
.rls-link:hover {
    background: #fdf5f5;
}
.rls-thumb {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    background: #eee;
}
.rls-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rls-meta {
    flex-grow: 1;
    min-width: 0;
}
.rls-cat {
    font-size: 10.5px;
    font-weight: 800;
    color: #db5a5b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 3px;
}
.rls-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #222;
    margin: 0 0 4px 0;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rls-date {
    font-size: 11px;
    color: #999;
}
.rls-footer-link {
    padding: 12px 18px;
    background: #faf8f8;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 12.5px;
}
.rls-footer-link a {
    color: #db5a5b;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.rls-footer-link a:hover {
    text-decoration: underline;
}

/* Floating Toast Notification */
.rahma-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    background: #231221;
    color: #ffffff;
    padding: 13px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    z-index: 9999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    pointer-events: none;
}
.rahma-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   404 ERROR PAGE STYLES
   ========================================================================== */
.rahma-404-container {
    padding: 60px 20px 80px 20px;
    background: #fdfbfb;
}
.rahma-404-inner {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}
.r404-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fdf2f2;
    color: #db5a5b;
    border: 1px solid #f9d3d3;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}
.r404-title {
    font-size: 40px;
    font-weight: 800;
    color: #231221;
    margin: 0 0 14px 0;
    letter-spacing: -0.5px;
}
.r404-subtitle {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}
.r404-search-box {
    max-width: 520px;
    margin: 0 auto 25px auto;
}
.r404-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.r404-form:focus-within {
    border-color: #db5a5b;
    box-shadow: 0 4px 20px rgba(219, 90, 91, 0.2);
}
.r404-form input {
    flex-grow: 1;
    border: none;
    padding: 14px 22px;
    font-size: 14.5px;
    outline: none;
    background: transparent;
}
.r404-form button {
    background: #db5a5b;
    color: #fff;
    border: none;
    padding: 14px 26px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}
.r404-form button:hover {
    background: #c04243;
}
.r404-actions {
    margin-bottom: 60px;
}
.r404-btn-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 25px;
    background: #231221;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}
.r404-btn-home:hover {
    background: #db5a5b;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(219, 90, 91, 0.35);
}
.r404-recommended {
    text-align: left;
    border-top: 1px solid #eee;
    padding-top: 50px;
}
.r404-rec-header {
    margin-bottom: 25px;
}
.r404-rec-badge {
    font-size: 11px;
    font-weight: 800;
    color: #db5a5b;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.r404-rec-title {
    font-size: 24px;
    font-weight: 800;
    color: #222;
    margin: 4px 0 0 0;
}
.r404-rec-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.r404-card {
    background: #ffffff;
    border: 1px solid #f0e6e6;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.r404-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
}
.r404-card-thumb {
    display: block;
    position: relative;
    height: 140px;
    overflow: hidden;
}
.r404-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.r404-card:hover .r404-card-thumb img {
    transform: scale(1.05);
}
.r404-card-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: #db5a5b;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    text-transform: uppercase;
}
.r404-card-body {
    padding: 14px 15px;
}
.r404-card-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 8px 0;
}
.r404-card-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s ease;
}
.r404-card-title a:hover {
    color: #db5a5b;
}
.r404-card-date {
    font-size: 11px;
    color: #999;
}
@media (max-width: 900px) {
    .r404-rec-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 500px) {
    .r404-rec-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   15. VISUAL BREADCRUMBS NAVIGATION
   ========================================================================== */
.rahma-breadcrumbs {
    grid-column: 1 / -1 !important;
    width: 100%;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 500;
}
.rahma-bc-container {
    display: flex;
    align-items: center;
}
.rahma-bc-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    line-height: 1.4;
}
.rahma-bc-item {
    display: inline-flex;
    align-items: center;
    color: #64748b;
}
.rahma-bc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}
.rahma-bc-link:hover {
    color: #db5a5b;
}
.rahma-bc-link i {
    font-size: 11px;
    color: #db5a5b;
}
.rahma-bc-sep {
    color: #cbd5e1;
    font-size: 9px;
    display: inline-flex;
    align-items: center;
}
.rahma-bc-label {
    background: #f1f5f9;
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}
.rahma-bc-current {
    color: #1e293b;
    font-weight: 600;
}
body.dark-mode .rahma-bc-item,
body.dark-mode .rahma-bc-link {
    color: #94a3b8;
}
body.dark-mode .rahma-bc-link:hover,
body.dark-mode .rahma-bc-current {
    color: #f1f5f9;
}
body.dark-mode .rahma-bc-sep {
    color: #475569;
}
body.dark-mode .rahma-bc-label {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

/* ==========================================================================
   16. SINGLE ARTICLE READER TOOLBAR (Font Resizer, Print, Quick Share)
   ========================================================================== */
.rahma-reader-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 18px;
    margin: 20px 0 28px 0;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.rtb-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.rtb-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.rtb-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #64748b;
    font-weight: 600;
}
.rtb-time-badge i {
    color: #db5a5b;
}

/* Font Resizer Group */
.rtb-font-resizer {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f8fafc;
    padding: 3px 6px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.rtb-resizer-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    margin-right: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.rtb-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}
.rtb-font-btn {
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    min-width: 28px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.rtb-font-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.rtb-font-btn.active {
    background: #db5a5b;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(219, 90, 91, 0.3);
}

/* Action Buttons (Print, Copy, WhatsApp) */
.rtb-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    text-decoration: none !important;
}
.rtb-action-btn:hover {
    background: #ffffff;
    color: #db5a5b;
    border-color: #db5a5b;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}
.rtb-wa-btn {
    background: rgba(37, 211, 102, 0.1);
    color: #128c7e !important;
    border-color: rgba(37, 211, 102, 0.3);
}
.rtb-wa-btn:hover {
    background: #25d366;
    color: #ffffff !important;
    border-color: #25d366;
}

/* Dynamic Font Sizes for Article Content */
.entry-content.font-size-small p {
    font-size: 16px !important;
    line-height: 1.7 !important;
}
.entry-content.font-size-normal p {
    font-size: 18px !important;
    line-height: 1.8 !important;
}
.entry-content.font-size-large p {
    font-size: 21px !important;
    line-height: 1.85 !important;
}
.entry-content.font-size-xlarge p {
    font-size: 24px !important;
    line-height: 1.95 !important;
}

/* Dark Mode Toolbar */
body.dark-mode .rahma-reader-toolbar {
    background: #1e1322;
    border-color: rgba(255, 255, 255, 0.08);
}
body.dark-mode .rtb-font-resizer,
body.dark-mode .rtb-action-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}
body.dark-mode .rtb-font-btn {
    color: #cbd5e1;
}
body.dark-mode .rtb-font-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* ==========================================================================
   17. FLOATING TOAST NOTIFICATION
   ========================================================================== */
.rahma-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1e293b;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border-left: 4px solid #db5a5b;
    z-index: 9999999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.rahma-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.rahma-toast i {
    color: #10b981;
    font-size: 16px;
}
@media (max-width: 600px) {
    .rahma-toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        justify-content: center;
    }
}

/* ==========================================================================
   18. ENHANCED ARCHIVE POST CARDS
   ========================================================================== */
.generate-columns .inside-article {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.generate-columns .inside-article:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}
.generate-columns .post-image {
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #fdf5f5;
}
.generate-columns .post-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.generate-columns .inside-article:hover .post-image img {
    transform: scale(1.06);
}
.generate-columns .entry-header {
    padding: 16px 20px 0 20px;
}
.generate-columns .entry-title {
    font-size: 17px !important;
    line-height: 1.35 !important;
    font-weight: 700;
}
.generate-columns .entry-summary {
    padding: 10px 20px 20px 20px;
    margin-top: 0;
    color: #64748b;
    font-size: 13.5px;
    line-height: 1.5;
}
/* Hide messy tags/comments on archive cards */
.generate-columns .entry-meta .comments-link,
.generate-columns .entry-footer {
    display: none !important;
}

/* ==========================================================================
   19. PRINT-FRIENDLY STYLES (@media print)
   ========================================================================== */
@media print {
    /* Hide all non-essential UI */
    .site-header,
    .main-navigation,
    .mobile-header-navigation,
    .site-footer,
    .buzzy-custom-footer,
    .widget-area,
    .sidebar,
    .buzzy-inline-related,
    .rahma-article-actions,
    .buzzy-related-posts,
    .comments-area,
    .rahma-reading-progress,
    .rahma-reader-toolbar,
    .rahma-breadcrumbs,
    .rahma-toast,
    #buzzy-back-to-top,
    .header-right-search,
    .mobile-search-toggle {
        display: none !important;
    }

    body, .site, #page, .site-content, .content-area, .inside-article {
        background: #ffffff !important;
        color: #000000 !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .rahma-print-header {
        display: block !important;
        border-bottom: 2pt solid #000000;
        padding-bottom: 12pt;
        margin-bottom: 18pt;
    }

    .rahma-print-footer {
        display: block !important;
        margin-top: 24pt;
        border-top: 1pt solid #cccccc;
        padding-top: 8pt;
        font-size: 9pt;
        color: #555555;
    }

    .entry-title {
        font-size: 22pt !important;
        line-height: 1.25 !important;
        color: #000000 !important;
        margin-bottom: 10pt !important;
    }

    .entry-content {
        font-size: 11pt !important;
        line-height: 1.6 !important;
        color: #111111 !important;
    }

    .entry-content img {
        max-width: 80% !important;
        height: auto !important;
        page-break-inside: avoid;
    }

    a {
        color: #000000 !important;
        text-decoration: none !important;
    }
}