/* KajianBregas Clean & Simple WordPress Theme Style */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Architects+Daughter&family=Caveat:wght@700&display=swap');


:root {
    /* Simple and Clean Logo-Inspired Slate & Gold Colors (Gold-Dominant) */
    --color-primary: #f5b041;        /* Warm Yellow-Gold/Amber from Logo */
    --color-primary-hover: #e09425;  /* Darker Amber for hover */
    --color-secondary: #3e586e;      /* Deep Steel Slate Blue from Logo */
    --color-bg: #fdf9f2;             /* Sunset-gold warm cream off-white background */
    --color-card: #ffffff;
    --color-border: #ebdcc3;         /* Warm golden border to match the sunset gold tone */
    
    /* Text Colors */
    --text-primary: #1e293b;         /* Dark Slate */
    --text-secondary: #475569;       /* Slate */
    --text-muted: #94a3b8;
    
    /* Simple Soft Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
    
    --font-sans: 'Inter', sans-serif;
    --transition: all 0.2s ease-in-out;
}

/* Premium Dark Mode variable overrides */
body.dark-mode {
    --color-bg: #0f172a;             /* Slate 900 */
    --color-card: #1e293b;           /* Slate 800 */
    --color-border: #334155;         /* Slate 700 */
    
    /* Text Colors */
    --text-primary: #f8fafc;         /* Slate 50 */
    --text-secondary: #cbd5e1;       /* Slate 300 */
    --text-muted: #64748b;           /* Slate 500 */
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.05);
}

/* Dark Mode specific overrides for Hero Section */
body.dark-mode .hero-wp {
    background: 
        radial-gradient(circle at 10% 20%, rgba(245, 176, 65, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(245, 176, 65, 0.12) 0%, transparent 50%),
        linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-bottom: 1px solid rgba(245, 176, 65, 0.25);
}

body.dark-mode .hero-wp-title {
    color: #ffffff;
}

body.dark-mode .hero-wp-subtitle {
    color: #cbd5e1;
}

body.dark-mode .btn-hero-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
}

body.dark-mode .btn-hero-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

body.dark-mode .hero-wp-stats {
    background: rgba(15, 23, 42, 0.45);
    border-color: rgba(245, 176, 65, 0.25);
}

body.dark-mode .stat-text strong {
    color: #ffffff;
}

body.dark-mode .stat-text span {
    color: #94a3b8;
}

body.dark-mode .stat-divider {
    background-color: rgba(245, 176, 65, 0.25);
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

body.dark-mode .hero h1 {
    color: #ffffff;
}

/* Theme Toggle Button Styles */
.theme-toggle-btn {
    background: none;
    border: 1px solid var(--color-border);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    background-color: var(--color-card);
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.theme-toggle-btn:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background-color: #f1f5f9;
}

body.dark-mode .theme-toggle-btn:hover {
    background-color: #1e293b;
}

body.dark-mode .theme-toggle-btn {
    color: var(--color-primary);
}

html {
    scroll-behavior: smooth;
}

/* Reset and Core Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Clean White Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-card);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.navbar .nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar .logo span {
    color: var(--color-primary);
}

.navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    list-style: none;
    margin: 0 auto;
}

.navbar .nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.4rem 0.65rem;
    border-radius: 6px;
    transition: var(--transition);
    white-space: nowrap;
}

.navbar .nav-links a:hover,
.navbar .nav-links a.active {
    color: var(--color-primary);
    background-color: #f1f5f9;
}

.navbar .nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Premium Dropdown Navigation Styling */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    display: none;
    min-width: 220px;
    padding: 0.5rem 0;
    list-style: none;
    z-index: 1000;
    margin-top: 0.5rem;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.6rem 1.25rem !important; /* Elegant spacing */
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    border-radius: 0 !important;
}

.dropdown-menu a:hover {
    color: var(--color-primary) !important;
    background-color: #f1f5f9 !important;
}

body.dark-mode .dropdown-menu a:hover {
    background-color: #334155 !important;
}

/* Show dropdown menu on hover on desktop */
@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        animation: slideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }
}

/* Collapsible Navigation & Mobile Menu Toggle */
.nav-collapse {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
    margin-left: 2rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: var(--transition);
}

.menu-toggle:hover {
    background-color: #f1f5f9;
}

.menu-toggle i {
    display: block;
}

@media (max-width: 991px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-collapse {
        display: none;
        position: absolute;
        top: calc(100% + 0.5rem);      /* Floating elegantly under the navbar */
        left: 1.5rem;                  /* Aligns with container left edge */
        right: 1.5rem;                 /* Aligns with container right edge */
        background-color: var(--color-card);
        border: 1px solid var(--color-border); /* Elegant card border */
        border-radius: 8px;            /* Rounded card corners */
        padding: 1.5rem;
        flex-direction: column;
        gap: 1.25rem;
        box-shadow: var(--shadow-md);  /* Clean floating shadow */
        z-index: 999;
    }
    
    .nav-collapse.show {
        display: flex;
        animation: slideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .navbar .nav-links {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.5rem;
        margin: 0;
    }
    
    .navbar .nav-links a {
        display: block;
        width: 100%;
        padding: 0.65rem 1rem;
    }
    
    /* Mobile Dropdown Accordion Menu Styles */
    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        padding-left: 1.5rem;
        background-color: transparent;
        margin-top: 0.25rem;
        border-left: 2px solid var(--color-border);
        margin-left: 1rem;
        width: 100%;
    }
    
    .dropdown.open .dropdown-menu {
        display: block;
    }
    
    .dropdown-toggle {
        justify-content: space-between;
        width: 100%;
    }
    
    .navbar .nav-actions {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
    }
    
    .navbar .nav-actions .btn-primary {
        flex-grow: 1;
    }
    
    .lang-selector {
        width: 100%;
    }
    
    .lang-btn {
        width: 100%;
        justify-content: space-between;
    }
    
    .lang-dropdown {
        width: 100%;
        position: static;
        box-shadow: none;
        border: 1px solid var(--color-border);
        border-top: none;
        border-radius: 0 0 6px 6px;
        margin-top: 0;
    }
    
    .btn-primary.btn-sm {
        width: 100%;
        padding: 0.65rem;
        font-size: 0.9rem;
    }
}


/* Language Selector Dropdown */
.lang-selector {
    position: relative;
}

.lang-btn {
    background: #fff;
    color: var(--text-secondary);
    border: 1px solid var(--color-border);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.lang-btn:hover {
    border-color: var(--color-primary);
}

.lang-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    display: none;
    min-width: 130px;
    z-index: 1001;
}

.lang-dropdown.show {
    display: block;
}

.lang-option {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.lang-option:hover {
    background: #f1f5f9;
    color: var(--color-primary);
}

/* Clean standard buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--color-primary);
    color: #0f172a !important; /* Premium contrast slate black text */
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(245, 176, 65, 0.2);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    box-shadow: 0 4px 12px rgba(245, 176, 65, 0.35);
}

.btn-secondary {
    background-color: var(--color-card);
    color: var(--text-secondary);
    border-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: rgba(245, 176, 65, 0.02);
}

.btn-sm {
    padding: 0.45rem 0.95rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

/* Editorial / Sub-page Hero Header */
.hero {
    text-align: center;
    padding: 3rem 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-secondary);
    margin-bottom: 0.75rem;
}

.hero p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Premium WordPress Portal Hero Section for Home Page (Full Width, White/Sunset Gold) */
.hero-wp {
    position: relative;
    background: 
        radial-gradient(circle at 10% 20%, rgba(245, 176, 65, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(245, 176, 65, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #ffffff 0%, #fffdf9 60%, #fdf6eb 100%); /* Clean white with warm sunset golden reflections */
    color: var(--text-primary);
    padding: 7.5rem 0 7rem;          /* Taller top/bottom padding to expand downwards and breathe beautifully */
    border-bottom: 1px solid rgba(245, 176, 65, 0.15);
    text-align: center;
    overflow: hidden;
    margin-bottom: 3.5rem;
}

/* Faint overlay - Completely removed pattern overlay per user request */
.hero-wp-overlay {
    display: none;
}

/* Inner container to center text and prevent stretching on wide viewports */
.hero-wp-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-wp-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
}

.hero-wp-hijri {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(245, 176, 65, 0.05);
    color: var(--text-secondary);
    font-size: 0.825rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    margin-bottom: 0.85rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

body.dark-mode .hero-wp-hijri {
    background: rgba(30, 41, 59, 0.45);
    border-color: rgba(245, 176, 65, 0.2);
    color: var(--text-secondary);
}

.hero-wp-tagline {
    display: inline-block;
    background: rgba(245, 176, 65, 0.1); /* Soft warm sunset transparent gold */
    color: #c2880c;                 /* Rich golden text */
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.45rem 1.25rem;
    border-radius: 50px;
    border: 1px solid rgba(245, 176, 65, 0.3);
    margin-bottom: 2rem;            /* Increased tagline spacing */
}

.hero-wp-title {
    font-size: 3.15rem;             /* Slightly larger title for the expanded hero layout */
    font-weight: 800;
    line-height: 1.25;
    color: #1e293b;                 /* Premium slate-blue main heading */
    margin-bottom: 1.75rem;         /* Increased heading spacing */
    letter-spacing: -0.025em;
}

.hero-wp-title .highlight {
    color: #d97706;                 /* Warm Gold/Amber highlight */
    position: relative;
    display: inline-block;
    font-family: 'Caveat', 'Architects Daughter', cursive;
    font-size: 1.25em;              /* Beautiful, larger brush-script sizing */
    line-height: 0.9;
    padding: 0 0.4rem;
    vertical-align: middle;
    transform: rotate(-1.5deg) translateY(-8px); /* Lift higher and straighten perfectly */
}

/* Premium pencil scribble animation styles */
.scribble-underline {
    position: absolute;
    left: 0;
    bottom: -8px;                  /* Place perfectly below the text */
    width: 100%;
    height: 14px;
    fill: none;
    stroke: #d97706;               /* Sunset gold color */
    stroke-width: 3.5;             /* Natural pencil stroke thickness */
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 240;         /* Setup for hand-drawing animation */
    stroke-dashoffset: 240;
    animation: drawScribble 1.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.6s;         /* Fire once title has loaded */
}

@keyframes drawScribble {
    to {
        stroke-dashoffset: 0;
    }
}

.hero-wp-subtitle {
    font-size: 1.1rem;              /* Slightly larger text for high-end readability */
    color: #475569;                 /* Soft slate gray */
    line-height: 1.8;
    margin-bottom: 3.25rem;         /* Significantly increased breathing room */
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero-wp-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 5.5rem;          /* Generous vertical margin separating stats bar */
    flex-wrap: wrap;
}

/* Premium Buttons for White/Sunset Hero */
.btn-hero-primary {
    background-color: var(--color-primary);
    color: #0f172a !important;     /* Premium contrast */
    font-weight: 700;
    padding: 0.85rem 2rem;          /* Larger paddings for tall premium buttons */
    border-radius: 8px;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(245, 176, 65, 0.35);
    transition: all 0.2s ease-in-out;
    border: 1px solid var(--color-primary);
}

.btn-hero-primary:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 176, 65, 0.45);
}

.btn-hero-secondary {
    background-color: #ffffff;
    color: #1e293b !important;
    font-weight: 600;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.btn-hero-secondary:hover {
    background-color: #f8fafc;
    border-color: rgba(245, 176, 65, 0.4);
    transform: translateY(-2px);
}

/* Stats / Features Row in White/Sunset Theme */
.hero-wp-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.85); /* Pristine light card */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 176, 65, 0.18);
    border-radius: 12px;
    padding: 1.5rem 2.5rem;         /* Expanded stats row padding */
    gap: 1.5rem;
    margin-top: 1rem;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(245, 176, 65, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(245, 176, 65, 0.12); /* Sunset gold tint icon bg */
    border-radius: 8px;
    color: #c2880c;                 /* Golden icon */
    flex-shrink: 0;
}

.stat-icon i {
    width: 20px;
    height: 20px;
}

.stat-text {
    display: flex;
    flex-direction: column;
}

.stat-text strong {
    font-size: 0.9rem;
    color: #1e293b;
    font-weight: 700;
}

.stat-text span {
    font-size: 0.75rem;
    color: #64748b;
}

.stat-divider {
    width: 1px;
    height: 42px;
    background-color: rgba(245, 176, 65, 0.15);
}

@media (max-width: 991px) {
    .hero-wp {
        padding: 3.5rem 0 3rem;
    }
    
    .hero-wp-title {
        font-size: 2.15rem;
    }
    
    .hero-wp-stats {
        flex-direction: column;
        gap: 1.25rem;
        padding: 1.5rem;
    }
    
    .stat-divider {
        display: none;
    }
    
    .stat-item {
        width: 100%;
    }
}

/* Column Grid Layout */
.wp-layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media(min-width: 992px) {
    .wp-layout-grid {
        grid-template-columns: 70% 30%;
    }
}

.wp-content-area {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.wp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Simplified Sidebar Widgets */
.wp-widget {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
    transition: var(--transition);
}

body.dark-mode .wp-widget {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.wp-widget-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

.wp-widget-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.wp-search-form {
    display: flex;
    gap: 0.5rem;
}

.input-control {
    width: 100%;
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    padding: 0.65rem 1rem;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: var(--transition);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

body.dark-mode .input-control {
    background-color: rgba(15, 23, 42, 0.3);
}

.input-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(245, 176, 65, 0.18);
}

/* Clean Cards Grid */
.grid-title-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.65rem;
    position: relative;
    padding-left: 0.75rem;
}

.grid-title-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 8px;
    width: 3.5px;
    background-color: var(--color-primary);
    border-radius: 20px;
}

.grid-title-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
}

/* Simplified Cards styling */
.wp-card {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.wp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -8px rgba(245, 176, 65, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
    border-color: rgba(245, 176, 65, 0.35);
}

body.dark-mode .wp-card {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

body.dark-mode .wp-card:hover {
    box-shadow: 0 12px 20px -8px rgba(245, 176, 65, 0.15), 0 4px 12px -2px rgba(0, 0, 0, 0.1);
}

.wp-card-poster {
    position: relative;
    aspect-ratio: 16/10;
    background-color: #e2e8f0;
    overflow: hidden;
}

body.dark-mode .wp-card-poster {
    background-color: #1e293b;
}

.wp-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.wp-card:hover .wp-card-poster img {
    transform: scale(1.03);
}

.wp-badge-group {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    gap: 0.35rem;
    z-index: 10;
}

.wp-badge {
    padding: 0.25rem 0.65rem;
    border-radius: 30px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.wp-badge-rutin {
    background-color: var(--color-primary);
    color: #0f172a !important;
}

.wp-badge-non-rutin {
    background-color: var(--color-secondary);
}

.wp-badge-audience {
    background-color: #475569;
}

body.dark-mode .wp-badge-audience {
    background-color: #334155;
}

.wp-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.wp-card-meta {
    color: var(--color-primary-hover);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

body.dark-mode .wp-card-meta {
    color: var(--color-primary);
}

.wp-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.45;
}

.wp-card-title a {
    color: inherit;
    text-decoration: none;
}

.wp-card-title a:hover {
    color: var(--color-primary);
}

.wp-card-author {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.825rem;
    margin-bottom: 1rem;
}

.wp-card-location {
    color: var(--text-muted);
    font-size: 0.775rem;
    margin-top: auto;
    margin-bottom: 1.25rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.wp-card-footer {
    display: flex;
    gap: 0.5rem;
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
}

/* Featured card variations */
.wp-card.featured {
    border-color: rgba(245, 176, 65, 0.3);
    box-shadow: 0 10px 25px -5px rgba(245, 176, 65, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    background: linear-gradient(to bottom, var(--color-card) 0%, rgba(245, 176, 65, 0.01) 100%);
}

.wp-card.featured:hover {
    border-color: var(--color-primary);
    box-shadow: 0 16px 30px -10px rgba(245, 176, 65, 0.15), 0 10px 15px -3px rgba(0, 0, 0, 0.02);
}

/* Premium Ustadz list item styling */
.ustadz-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.ustadz-list-item:hover {
    background-color: rgba(245, 176, 65, 0.05);
}

/* Sidebar List */
.wp-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wp-list-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.825rem;
}

.wp-list-item a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
}

.wp-list-item a:hover {
    color: var(--color-primary);
}

/* Detail view styling */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
    margin-bottom: 3rem;
}

@media(min-width: 992px) {
    .detail-grid {
        grid-template-columns: 70% 30%;
    }
}

.detail-content {
    /* No frame for article content */
    background-color: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

@media (min-width: 992px) {
    .detail-content {
        padding: 0;
    }
}

.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-poster-img {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.detail-poster-img img {
    width: 100%;
    display: block;
}

.rich-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.rich-content p {
    margin-bottom: 1.25rem;
}

.rich-content h2, 
.rich-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.rich-content blockquote {
    border-left: 3px solid var(--color-primary);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* Video Box */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid var(--color-border);
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Simple Form Box */
.form-box {
    max-width: 750px;
    margin: 2rem auto 4rem;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media(max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
}

/* Simple Footer */
.footer {
    background-color: #1e293b;
    color: #94a3b8;
    border-top: 2px solid var(--color-primary);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media(min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-col h3 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-col p {
    font-size: 0.85rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.75rem;
}

@media(min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-bottom a {
    color: inherit;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #ffffff;
}

/* Simple Pagination */
.pagination {
    display: flex;
    list-style: none;
    gap: 0.35rem;
    justify-content: center;
    margin-top: 2rem;
}

.pagination li a,
.pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    background-color: #fff;
    color: var(--text-secondary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
}

.pagination li.active span {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.pagination li a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Premium smooth slideDown animation for mobile dropdown */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for mid-size desktop/laptops to prevent menu wrapping */
@media (min-width: 992px) and (max-width: 1199px) {
    .navbar .nav-links {
        gap: 0.75rem;
    }
    .navbar .nav-links a {
        font-size: 0.85rem;
        padding: 0.4rem 0.5rem;
    }
    .nav-collapse {
        margin-left: 1rem;
    }
}

/* Homepage Articles & Ustadz Sections */
.home-section-container {
    margin-top: 3.5rem;
    margin-bottom: 3.5rem;
}

/* Custom Ustadz Profile Grid */
.ustadz-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.ustadz-profile-card {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.ustadz-profile-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 176, 65, 0.35);
    box-shadow: 0 12px 20px -8px rgba(245, 176, 65, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.02);
}

body.dark-mode .ustadz-profile-card {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

body.dark-mode .ustadz-profile-card:hover {
    box-shadow: 0 12px 20px -8px rgba(245, 176, 65, 0.15), 0 4px 12px -2px rgba(0, 0, 0, 0.1);
}

.ustadz-profile-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid var(--color-border);
    margin-bottom: 1.25rem;
    background-color: var(--color-bg);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.ustadz-profile-card:hover .ustadz-profile-photo {
    transform: scale(1.05);
    border-color: var(--color-primary);
}

.ustadz-profile-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.ustadz-profile-bio {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.ustadz-profile-meta {
    font-size: 0.725rem;
    font-weight: 700;
    color: var(--color-primary-hover);
    background-color: rgba(245, 176, 65, 0.08);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

body.dark-mode .ustadz-profile-meta {
    color: var(--color-primary);
    background-color: rgba(245, 176, 65, 0.12);
}

/* Premium Pricing Cards for Iklan UMKM Page */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 4rem;
    align-items: stretch;
}

.pricing-card {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.04), 0 10px 10px -5px rgba(0, 0, 0, 0.01);
}

body.dark-mode .pricing-card {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

body.dark-mode .pricing-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

/* Standard/Popular Badge */
.pricing-popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-primary);
    color: #0f172a;
    font-weight: 800;
    font-size: 0.725rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.4rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(245, 176, 65, 0.3);
}

.pricing-card.popular {
    border-color: var(--color-primary);
    box-shadow: 0 10px 20px -5px rgba(245, 176, 65, 0.08), 0 4px 6px -2px rgba(245, 176, 65, 0.02);
}

.pricing-card.popular:hover {
    box-shadow: 0 20px 30px -10px rgba(245, 176, 65, 0.2), 0 10px 15px -3px rgba(245, 176, 65, 0.05);
}

.pricing-header {
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.pricing-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.pricing-price {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-primary-hover);
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.25rem;
}

body.dark-mode .pricing-price {
    color: var(--color-primary);
}

.pricing-price span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.pricing-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.pricing-feature-item i {
    flex-shrink: 0;
    margin-top: 0.15rem;
}

/* FAQ grid responsive class for Iklan page */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* Homepage Banner Promo Iklan */
.home-ad-cta-banner {
    background: linear-gradient(135deg, rgba(245, 176, 65, 0.08) 0%, rgba(245, 176, 65, 0.02) 50%, rgba(245, 176, 65, 0.05) 100%);
    border: 1px solid rgba(245, 176, 65, 0.25);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 3.5rem;
    margin-bottom: 4rem;
    box-shadow: 0 10px 25px -5px rgba(245, 176, 65, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    position: relative;
    overflow: hidden;
}

body.dark-mode .home-ad-cta-banner {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    border-color: rgba(245, 176, 65, 0.15);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
}

.home-ad-cta-icon {
    width: 56px;
    height: 56px;
    background-color: var(--color-primary);
    color: #0f172a;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 10px rgba(245, 176, 65, 0.3);
}

.home-ad-cta-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.home-ad-cta-text {
    font-size: 0.925rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.home-ad-cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================
   SPONSORSHIP AD SLOTS DEMONSTRATION SYSTEM
   ========================================== */
.ad-sponsor-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary-hover);
    background-color: rgba(245, 176, 65, 0.08);
    border: 1.5px solid rgba(245, 176, 65, 0.25);
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

body.dark-mode .ad-sponsor-label {
    background-color: rgba(245, 176, 65, 0.05);
    border-color: rgba(245, 176, 65, 0.15);
}

/* ===== AD: Leaderboard — Premium (200k), tampil di semua perangkat ===== */
.ad-leaderboard-200k {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 1.5rem;
}
.ad-leaderboard-200k .ad-banner-link img {
    width: 100%;
    height: auto;
    display: block;
}

.ad-sidebar-box {
    margin-bottom: 1.5rem;
    width: 100%;
}

.ad-banner-link {
    display: block;
    width: 100%;
    transition: transform 0.2s ease;
}

.ad-banner-link:hover {
    transform: translateY(-3px) scale(1.01);
}

.ad-banner-link img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Sticky Bottom Ad Mobile */
.ad-sticky-mobile-200k {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-card);
    border-top: 3px solid var(--color-primary);
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    animation: slideUpSticky 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.dark-mode .ad-sticky-mobile-200k {
    background-color: #0f172a;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.4);
}

@keyframes slideUpSticky {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@media (min-width: 768px) {
    .ad-sticky-mobile-200k {
        display: none !important;
    }
}

/* ===== AD: Sticky Bottom Mobile — Premium (200k) versi baru ===== */
.ad-sticky-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 9998;
    border-top: 2px solid var(--color-primary);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    animation: slideUpSticky 0.5s cubic-bezier(0.16,1,0.3,1) forwards;
}
.ad-sticky-close {
    position: absolute;
    top: -14px;
    right: 10px;
    background: var(--color-primary);
    color: #0f172a;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    padding: 0;
    font-weight: 700;
}
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* Homepage Banner Promo Iklan */
.home-ad-cta-banner {
    background: linear-gradient(135deg, rgba(245, 176, 65, 0.08) 0%, rgba(245, 176, 65, 0.02) 50%, rgba(245, 176, 65, 0.05) 100%);
    border: 1px solid rgba(245, 176, 65, 0.25);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 3.5rem;
    margin-bottom: 4rem;
    box-shadow: 0 10px 25px -5px rgba(245, 176, 65, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    position: relative;
    overflow: hidden;
}

body.dark-mode .home-ad-cta-banner {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    border-color: rgba(245, 176, 65, 0.15);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
}

.home-ad-cta-icon {
    width: 56px;
    height: 56px;
    background-color: var(--color-primary);
    color: #0f172a;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 10px rgba(245, 176, 65, 0.3);
}

.home-ad-cta-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.home-ad-cta-text {
    font-size: 0.925rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.home-ad-cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================
   SPONSORSHIP AD SLOTS DEMONSTRATION SYSTEM
   ========================================== */
.ad-sponsor-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary-hover);
    background-color: rgba(245, 176, 65, 0.08);
    border: 1.5px solid rgba(245, 176, 65, 0.25);
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

body.dark-mode .ad-sponsor-label {
    background-color: rgba(245, 176, 65, 0.05);
    border-color: rgba(245, 176, 65, 0.15);
}

/* ===== AD: Leaderboard — Premium (200k), tampil di semua perangkat ===== */
.ad-leaderboard-200k {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 1.5rem;
}
.ad-leaderboard-200k .ad-banner-link img {
    width: 100%;
    height: auto;
    display: block;
}

.ad-sidebar-box {
    margin-bottom: 1.5rem;
    width: 100%;
}

.ad-banner-link {
    display: block;
    width: 100%;
    transition: transform 0.2s ease;
}

.ad-banner-link:hover {
    transform: translateY(-3px) scale(1.01);
}

.ad-banner-link img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Sticky Bottom Ad Mobile */
.ad-sticky-mobile-200k {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-card);
    border-top: 3px solid var(--color-primary);
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    animation: slideUpSticky 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.dark-mode .ad-sticky-mobile-200k {
    background-color: #0f172a;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.4);
}

@keyframes slideUpSticky {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@media (min-width: 768px) {
    .ad-sticky-mobile-200k {
        display: none !important;
    }
}

/* ===== AD: Sticky Bottom Mobile — Premium (200k) versi baru ===== */
.ad-sticky-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 9998;
    border-top: 2px solid var(--color-primary);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    animation: slideUpSticky 0.5s cubic-bezier(0.16,1,0.3,1) forwards;
}
.ad-sticky-close {
    position: absolute;
    top: -14px;
    right: 10px;
    background: var(--color-primary);
    color: #0f172a;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    padding: 0;
    font-weight: 700;
}
@media (max-width: 767px) {
    .ad-sticky-mobile { display: block; }
}

/* ===== AD: Mid-Content Banner — Standard (100k) 300x250px ===== */
.ad-mid-content-wrap {
    margin: 2rem auto;
    max-width: 320px;
    width: 100%;
}


/* Article List Layout */
.article-list-container {
    display: flex;
    flex-direction: column;
}
.article-list-item {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}
.article-list-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.article-list-content {
    flex: 1;
}
.article-list-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.article-list-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}
.article-list-title a:hover {
    color: var(--color-primary);
}
.article-list-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.article-list-snippet {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-list-image {
    width: 220px;
    flex-shrink: 0;
}
.article-list-image a {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #e2e8f0;
}
.article-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.article-list-image a:hover img {
    transform: scale(1.05);
}
@media (max-width: 768px) {
    .article-list-item {
        flex-direction: column-reverse;
    }
    .article-list-image {
        width: 100%;
    }
}

/* Author Profile Styles */
.author-profile-header {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 2rem;
    box-shadow: var(--shadow-sm);
}
.author-profile-header img,
.author-profile-header .author-initial-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    flex-shrink: 0;
}
.author-profile-header img {
    object-fit: cover;
    border: 2px solid var(--color-primary);
}
.author-profile-header .author-initial-avatar {
    background-color: #d1d5db; /* Light gray for no photo, like screenshot */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 600;
    border: none;
}
.author-profile-content {
    flex: 1;
}
.author-profile-content h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}
.author-profile-bio {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.95rem;
    font-family: var(--font-body);
}

@media (max-width: 768px) {
    .author-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.25rem;
        padding: 1.5rem;
    }
    .author-profile-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .author-profile-bio {
        text-align: center;
    }
}

/* Pagination Styles */
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.page-item .page-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: var(--color-primary);
    background-color: #fff;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-sans);
    transition: all 0.2s ease;
}
.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}
.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: var(--color-border);
    opacity: 0.6;
}
.page-item:not(.active):not(.disabled) .page-link:hover {
    background-color: var(--color-bg);
    border-color: var(--color-primary);
}

/* Pop Up Ad Styles */
.ad-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.75);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(4px);
}
.ad-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}
.ad-popup-container {
    background-color: #fff;
    border-radius: 12px;
    width: 95%;
    max-width: 700px;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}
.ad-popup-overlay.show .ad-popup-container {
    transform: scale(1);
}
.ad-popup-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 32px;
    height: 32px;
    background-color: var(--color-primary);
    color: #0f172a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}
.ad-popup-close:hover {
    transform: scale(1.1);
    background-color: #f1f5f9;
}

