/**
 * AzPivi Blog & Download Theme Stylesheet
 * Modern, High-Monetization, Responsive Design
 */

/* ==========================================================================
   1. CSS Variables & Theme Tokens
   ========================================================================== */
:root {
    --az-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --az-font-mono: 'JetBrains Mono', Consolas, Monaco, monospace;

    /* Brand Colors */
    --az-primary: #06b6d4;
    --az-primary-hover: #0891b2;
    --az-primary-rgb: 6, 182, 212;
    --az-accent: #6366f1;
    --az-accent-gradient: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
    --az-download-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --az-danger-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);

    /* Dark Theme (Default) */
    --az-bg-body: #0b1120;
    --az-bg-surface: #131d32;
    --az-bg-card: #18233c;
    --az-bg-elevated: #1f2d4d;
    --az-text-main: #f1f5f9;
    --az-text-muted: #94a3b8;
    --az-border: rgba(255, 255, 255, 0.09);
    --az-border-hover: rgba(6, 182, 212, 0.4);
    --az-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --az-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --az-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
    --az-ad-bg: #111a2e;
    --az-radius-sm: 8px;
    --az-radius-md: 14px;
    --az-radius-lg: 20px;
}

[data-bs-theme="light"] {
    --az-bg-body: #f8fafc;
    --az-bg-surface: #ffffff;
    --az-bg-card: #ffffff;
    --az-bg-elevated: #f1f5f9;
    --az-text-main: #0f172a;
    --az-text-muted: #64748b;
    --az-border: rgba(0, 0, 0, 0.08);
    --az-border-hover: rgba(6, 182, 212, 0.5);
    --az-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --az-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --az-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
    --az-ad-bg: #f1f5f9;
}

/* Base resets */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--az-font-sans);
    background-color: var(--az-bg-body);
    color: var(--az-text-main);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--az-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--az-primary-hover);
}

/* ==========================================================================
   2. Notice Strip & Header
   ========================================================================== */
.top-notice-strip {
    background: linear-gradient(90deg, #1e1b4b 0%, #0f172a 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}

.top-notice-strip .notice-text {
    font-weight: 500;
}

.site-navbar {
    background-color: rgba(19, 29, 50, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--az-border);
    transition: background-color 0.25s ease;
    z-index: 1030;
}

[data-bs-theme="light"] .site-navbar {
    background-color: rgba(255, 255, 255, 0.92);
}

/* Site Branding & Custom Logo */
.site-branding {
    display: flex;
    align-items: center;
}

.site-branding .custom-logo-link,
.footer-brand-box .custom-logo-link,
.offcanvas-title .custom-logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.site-branding .custom-logo,
.site-branding img,
.custom-logo,
.custom-logo-link img {
    max-height: 44px !important;
    height: auto !important;
    width: auto !important;
    max-width: 220px !important;
    object-fit: contain !important;
    display: block !important;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-branding .custom-logo:hover {
    transform: scale(1.03);
}

.offcanvas-title .custom-logo,
.offcanvas-title img {
    max-height: 36px;
    height: auto;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

.footer-brand-box .custom-logo,
.footer-brand-box img {
    max-height: 42px;
    height: auto;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

.brand-text-logo {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--az-text-main);
}

.brand-highlight {
    background: var(--az-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-dot {
    color: #06b6d4;
}

/* Nav Menu */
.nav-menu-list .nav-link-item,
.nav-menu-list a {
    color: var(--az-text-main);
    font-weight: 600;
    font-size: 0.93rem;
    padding: 8px 12px;
    border-radius: var(--az-radius-sm);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.nav-menu-list .nav-link-item:hover,
.nav-menu-list a:hover,
.nav-menu-list .nav-link-item.active {
    color: var(--az-primary);
    background-color: rgba(6, 182, 212, 0.08);
}

/* Header search */
.search-form-header {
    position: relative;
}

.search-form-header .input-group {
    position: relative;
}

.search-form-header .form-control {
    background-color: var(--az-bg-elevated);
    border: 1px solid var(--az-border);
    color: var(--az-text-main);
    min-width: 190px;
    padding-right: 36px !important;
    transition: all 0.25s ease;
}

.search-form-header .form-control:focus {
    border-color: var(--az-primary);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
    min-width: 230px;
}

.btn-search-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--az-text-muted);
    z-index: 5;
    padding: 2px 6px;
    cursor: pointer;
}

.btn-search-icon:hover {
    color: var(--az-primary);
}

/* Donate Button */
.btn-donate-header {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(244, 63, 94, 0.16) 100%);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: var(--az-text-main);
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.15);
}

.btn-donate-header:hover {
    background: linear-gradient(135deg, #ef4444 0%, #f43f5e 100%);
    color: #ffffff !important;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.btn-donate-header:hover .text-danger {
    color: #ffffff !important;
}

.pulse-heart {
    display: inline-block;
    animation: heartPulse 1.8s infinite;
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    14% { transform: scale(1.25); }
    28% { transform: scale(1); }
    42% { transform: scale(1.25); }
    70% { transform: scale(1); }
}

.btn-theme-toggle {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--az-bg-elevated);
    border: 1px solid var(--az-border);
    color: var(--az-text-main);
    cursor: pointer;
    transition: all 0.2s;
}

/* Donate Page Styling */
.donate-hero-banner {
    background: linear-gradient(145deg, var(--az-bg-card) 0%, var(--az-bg-elevated) 100%);
    border: 1px solid var(--az-border);
}

.donate-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f43f5e;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 16px;
    border-radius: 30px;
}

.donate-main-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--az-text-main);
}

.donate-main-desc {
    max-width: 680px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.donate-goal-card {
    background-color: var(--az-bg-surface);
    border: 1px solid var(--az-border);
    max-width: 500px;
}

.tier-card {
    background-color: var(--az-bg-card);
    transition: all 0.25s ease;
}

.tier-card:hover {
    transform: translateY(-4px);
    border-color: var(--az-border-hover);
    box-shadow: var(--az-shadow-md);
}

.tier-icon {
    font-size: 2.5rem;
}

.tier-price .price-val {
    font-size: 2.2rem;
}

.tier-featured {
    background: linear-gradient(180deg, var(--az-bg-card) 0%, rgba(6, 182, 212, 0.05) 100%);
}

.payment-method-card {
    background-color: var(--az-bg-card);
}

.qr-box {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qr-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.qr-box img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.donate-qr-img {
    max-height: 420px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.intl-wire-box {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.copy-trigger {
    transition: all 0.2s ease;
}

.donors-wall-section {
    background-color: var(--az-bg-card);
}

.donor-item {
    transition: transform 0.2s;
}

.donor-item:hover {
    transform: translateY(-2px);
}

.btn-theme-toggle:hover {
    color: var(--az-primary);
    transform: rotate(20deg);
}

/* ==========================================================================
   3. Ad Containers & Strategic High-CTR Slots
   ========================================================================== */
.azpivi-ad-container {
    margin: 1.5rem auto;
    text-align: center;
    clear: both;
    position: relative;
    max-width: 100%;
}

.azpivi-ad-container .ad-badge {
    display: flex;
    justify-content: center;
    margin-bottom: 6px;
}

.azpivi-ad-container .ad-badge span {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--az-text-muted);
    opacity: 0.75;
}

.ad-content-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
}

.ad-content-wrapper ins.adsbygoogle,
.azpivi-ad-container ins.adsbygoogle {
    display: block !important;
    margin: 0 auto !important;
    max-width: 100% !important;
}

/* Strategic Layout Shift (CLS) Prevention */
.ad-slot-ad-header .ad-content-wrapper {
    min-height: 90px;
}

.ad-slot-ad-sidebar-top .ad-content-wrapper {
    min-height: 250px;
}

.ad-slot-ad-sidebar-sticky .ad-content-wrapper {
    min-height: 300px;
}

.ad-slot-ad-redirect-middle .ad-content-wrapper {
    min-height: 250px;
}

.ad-slot-ad-article-top .ad-content-wrapper,
.ad-slot-ad-article-bottom .ad-content-wrapper {
    min-height: 90px;
}

.ad-placeholder-box {
    background-color: var(--az-ad-bg);
    border: 1px dashed var(--az-border);
    border-radius: var(--az-radius-md);
    padding: 1.25rem 1rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s;
}

.ad-placeholder-box:hover {
    border-color: var(--az-border-hover);
}

.ad-placeholder-box.size-728x90 {
    min-height: 90px;
    max-width: 728px;
}

.ad-placeholder-box.size-300x250,
.ad-placeholder-box.size-336x280 {
    min-height: 250px;
    max-width: 336px;
}

.ad-placeholder-box.size-300x600 {
    min-height: 480px;
    max-width: 300px;
}

.ad-placeholder-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.ad-placeholder-inner .ad-icon {
    font-size: 1.8rem;
    color: var(--az-primary);
    opacity: 0.8;
}

.ad-placeholder-inner .ad-title {
    display: block;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--az-text-main);
}

.ad-placeholder-inner .ad-sub {
    display: block;
    font-size: 0.75rem;
    color: var(--az-text-muted);
}

.sticky-sidebar-ad {
    position: -webkit-sticky;
    position: sticky;
    top: 85px;
    z-index: 10;
}

@media (max-width: 991.98px) {
    .sticky-sidebar-ad {
        position: static !important;
        top: auto !important;
    }
    .ad-slot-ad-header .ad-content-wrapper {
        min-height: 50px;
    }
}

/* Slot Max-Width Constraints for Balanced Visual Alignment */
.ad-slot-ad-header {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.ad-slot-ad-sidebar-top,
.ad-slot-ad-sidebar-sticky {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.ad-slot-ad-redirect-middle {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Advertisement Frames, Borders & Badges (Dark Mode & Light Mode)
   ========================================================================== */
/* Base / Default Theme (Dark Mode) */
.azpivi-ad-container {
    background-color: #131d32;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--az-radius-md);
    padding: 12px 16px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.azpivi-ad-container:hover {
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 4px 24px rgba(6, 182, 212, 0.08);
}

.azpivi-ad-container .ad-badge {
    margin-bottom: 8px;
}

.azpivi-ad-container .ad-badge span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #94a3b8;
    background-color: #1a2642;
    padding: 3px 10px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    opacity: 1;
}

.azpivi-ad-container .ad-badge span i {
    color: var(--az-primary);
}

.azpivi-ad-container .ad-content-wrapper {
    background-color: #0e1626;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--az-radius-sm);
    padding: 6px;
}

.ad-placeholder-box {
    background-color: #0e1626;
    border: 1.5px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--az-radius-sm);
    transition: all 0.2s ease;
}

.ad-placeholder-box:hover {
    background-color: #131d32;
    border-color: var(--az-primary);
}

/* Light Mode Overrides */
[data-bs-theme="light"] .azpivi-ad-container {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 16px -4px rgba(15, 23, 42, 0.04);
}

[data-bs-theme="light"] .azpivi-ad-container:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.08);
}

[data-bs-theme="light"] .azpivi-ad-container .ad-badge span {
    color: #64748b;
    background-color: #f1f5f9;
    border-color: #e2e8f0;
}

[data-bs-theme="light"] .azpivi-ad-container .ad-content-wrapper {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
}

[data-bs-theme="light"] .ad-placeholder-box {
    background-color: #f8fafc;
    border: 1.5px dashed #cbd5e1;
}

[data-bs-theme="light"] .ad-placeholder-box:hover {
    background-color: #f1f5f9;
    border-color: var(--az-primary);
}

[data-bs-theme="light"] .ad-placeholder-inner .ad-icon {
    color: var(--az-primary);
    opacity: 0.9;
}

[data-bs-theme="light"] .ad-placeholder-inner .ad-title {
    color: #0f172a;
    font-weight: 700;
}

[data-bs-theme="light"] .ad-placeholder-inner .ad-sub {
    color: #64748b;
}

@media (max-width: 575.98px) {
    .azpivi-ad-container {
        padding: 10px 8px 12px;
        border-radius: 12px;
    }
}


/* ==========================================================================
   4. Hero Carousel
   ========================================================================== */
.hero-carousel-section {
    position: relative;
}

.hero-slide-item {
    position: relative;
    height: 460px;
    border-radius: var(--az-radius-lg);
    overflow: hidden;
}

.hero-slide-item .slide-bg-img {
    width: 100%;
    height: 100%;
}

.hero-slide-item .slide-bg-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 6s ease;
}

.swiper-slide-active .hero-slide-item .slide-bg-img img {
    transform: scale(1.08);
}

.slide-placeholder-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.slide-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 17, 32, 0.1) 0%, rgba(11, 17, 32, 0.6) 45%, rgba(11, 17, 32, 0.95) 100%);
}

.slide-content-box {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 3rem;
    z-index: 3;
}

.hero-badge-cat {
    background: var(--az-accent-gradient);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
}

.slide-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0.5rem 0;
}

.slide-title a {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.slide-title a:hover {
    color: var(--az-primary);
}

.btn-hero-read {
    background: var(--az-accent-gradient);
    color: #ffffff;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.4);
    transition: all 0.25s;
}

.btn-hero-read:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.6);
}

.swiper-button-prev,
.swiper-button-next {
    width: 44px;
    height: 44px;
    background-color: rgba(19, 29, 50, 0.75);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.2s;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    display: none;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: var(--az-primary);
    color: #ffffff;
}

.swiper-pagination-bullet {
    background: #ffffff;
    opacity: 0.5;
    transition: all 0.2s;
}

.swiper-pagination-bullet-active {
    background: var(--az-primary);
    opacity: 1;
    width: 24px;
    border-radius: 6px;
}

/* ==========================================================================
   5. Post Cards & Blog Grid
   ========================================================================== */
.post-card {
    background-color: var(--az-bg-card);
    border: 1px solid var(--az-border);
    border-radius: var(--az-radius-md);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    border-color: var(--az-border-hover);
    box-shadow: var(--az-shadow-md);
}

.post-thumb-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: var(--az-bg-elevated);
}

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

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

.thumb-placeholder-box {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--az-text-muted);
    opacity: 0.4;
}

.card-floating-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.card-floating-badges .cat-badge {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    color: #38bdf8;
    font-weight: 600;
    font-size: 0.72rem;
    padding: 5px 10px;
    border-radius: 20px;
}

.card-floating-badges .dl-badge {
    background: #10b981;
    color: #ffffff;
    padding: 5px 8px;
    border-radius: 20px;
}

.post-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-title a {
    color: var(--az-text-main);
}

.post-card-title a:hover {
    color: var(--az-primary);
}

.post-card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   6. Single Post & Typography
   ========================================================================== */
.article-card {
    background-color: var(--az-bg-card);
    border: 1px solid var(--az-border);
    border-radius: var(--az-radius-lg);
    padding: 2.5rem;
}

.category-pill-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(6, 182, 212, 0.12);
    color: var(--az-primary);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 14px;
    border-radius: 30px;
}

.entry-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0.8rem 0 1rem;
    color: var(--az-text-main);
}

.entry-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    color: var(--az-text-muted);
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--az-border);
}

.entry-meta-bar .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.entry-meta-bar .meta-separator {
    opacity: 0.4;
}

/* Article Typography (Clean, high readability) */
.typography-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--az-text-main);
}

.typography-content p {
    margin-bottom: 1.4rem;
}

.typography-content h2 {
    font-size: 1.55rem;
    font-weight: 700;
    margin: 2.2rem 0 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid rgba(6, 182, 212, 0.3);
    color: var(--az-text-main);
}

.typography-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 1.8rem 0 0.8rem;
    color: var(--az-text-main);
}

.typography-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--az-radius-md);
    margin: 1.2rem 0;
    box-shadow: var(--az-shadow-sm);
}

.typography-content blockquote {
    border-left: 4px solid var(--az-primary);
    background: rgba(6, 182, 212, 0.05);
    padding: 1.2rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--az-radius-sm) var(--az-radius-sm) 0;
    font-style: italic;
}

.typography-content pre,
.typography-content code {
    font-family: var(--az-font-mono);
}

.typography-content pre {
    background-color: var(--az-bg-body);
    border: 1px solid var(--az-border);
    border-radius: var(--az-radius-sm);
    padding: 1.2rem;
    overflow-x: auto;
    font-size: 0.9rem;
}

/* ==========================================================================
   7. High-Conversion Download Box (In-Article)
   ========================================================================== */
.azpivi-download-box {
    background: linear-gradient(145deg, var(--az-bg-card) 0%, var(--az-bg-elevated) 100%);
    border: 2px solid rgba(6, 182, 212, 0.35);
    border-radius: var(--az-radius-lg);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.12);
    overflow: hidden;
}

.download-box-header {
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(6, 182, 212, 0.2);
}

.download-box-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--az-accent-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.4);
}

.download-box-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
    color: var(--az-text-main);
}

.download-box-subtitle {
    font-size: 0.85rem;
    color: var(--az-text-muted);
    margin: 2px 0 0;
}

.download-box-body {
    padding: 1.5rem 2rem;
}

.download-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.4rem;
    background-color: var(--az-bg-surface);
    border: 1px solid var(--az-border);
    border-radius: var(--az-radius-md);
    margin-bottom: 0.8rem;
    transition: all 0.2s ease;
}

.download-link-item:hover {
    border-color: var(--az-primary);
    transform: translateX(4px);
}

.download-link-item .link-title {
    display: block;
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--az-text-main);
}

.download-link-item .link-meta {
    display: block;
    font-size: 0.78rem;
    color: var(--az-text-muted);
    margin-top: 2px;
}

.btn-download-pulse {
    background: var(--az-download-gradient);
    color: #ffffff;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
    transition: all 0.25s;
    white-space: nowrap;
}

.btn-download-pulse:hover {
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.download-box-footer {
    padding: 1rem 2rem;
    background-color: rgba(0, 0, 0, 0.15);
    border-top: 1px solid var(--az-border);
}

/* ==========================================================================
   8. Redirect Landing Page (/redirect-to/) - Maximum Ad Monetization
   ========================================================================== */
.redirect-page-wrapper {
    min-height: 80vh;
    padding: 2rem 0;
}

.redirect-card {
    background-color: var(--az-bg-card);
    border: 1px solid var(--az-border);
    border-radius: var(--az-radius-lg);
    padding: 3rem 2.5rem;
    position: relative;
}

.security-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.redirect-heading {
    font-size: 2rem;
    font-weight: 800;
    color: var(--az-text-main);
    margin-bottom: 0.5rem;
}

.redirect-subheading {
    font-size: 0.95rem;
    color: var(--az-text-muted);
}

.destination-preview-box {
    background-color: var(--az-bg-elevated);
    border: 1px solid var(--az-border);
    border-radius: var(--az-radius-md);
    padding: 1.2rem 1.6rem;
    margin: 1.5rem 0;
}

.file-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(6, 182, 212, 0.15);
    color: var(--az-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.file-details {
    flex-grow: 1;
    margin-left: 1.2rem;
}

.file-label {
    display: block;
    font-size: 0.75rem;
    color: var(--az-text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.file-name {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--az-text-main);
}

/* Circular Timer */
.countdown-stage-box {
    padding: 1.5rem 0;
}

.progress-ring-container {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 1.5rem;
}

.progress-ring {
    transform: rotate(-90deg);
}

.countdown-number {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    font-weight: 800;
    font-family: var(--az-font-mono);
    color: var(--az-primary);
}

.progress-bar-custom {
    height: 6px;
    background-color: var(--az-bg-elevated);
    border-radius: 10px;
    overflow: hidden;
    max-width: 320px;
    margin: 0 auto;
}

.progress-bar-fill {
    height: 100%;
    background: var(--az-accent-gradient);
    transition: width 1s linear;
}

.timer-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--az-text-main);
    margin-bottom: 0.3rem;
}

.timer-desc {
    font-size: 0.9rem;
    color: var(--az-text-muted);
}

/* Ready Box & Big Button */
.download-ready-box {
    padding: 1.5rem 0;
}

.ready-check-icon {
    font-size: 3.5rem;
    color: #10b981;
    margin-bottom: 0.8rem;
}

.ready-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--az-text-main);
}

.btn-download-primary {
    background: var(--az-download-gradient);
    border: none;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.15rem;
    padding: 16px 30px;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-download-primary:hover {
    color: #ffffff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.65);
}

.pulse-glow {
    animation: pulseGlowAnimation 2s infinite;
}

@keyframes pulseGlowAnimation {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.download-tips-box {
    background-color: var(--az-bg-elevated);
    border-left: 4px solid var(--az-primary);
    border-radius: 0 var(--az-radius-sm) var(--az-radius-sm) 0;
    padding: 1.2rem 1.5rem;
    text-align: left;
    font-size: 0.88rem;
    color: var(--az-text-muted);
}

/* ==========================================================================
   9. Sidebar & Widgets
   ========================================================================== */
.sidebar-widget {
    background-color: var(--az-bg-card);
    border: 1px solid var(--az-border);
    border-radius: var(--az-radius-md);
    padding: 1.5rem;
    margin-bottom: 1.8rem;
}

.widget-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--az-border);
    position: relative;
}

.widget-title span::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--az-primary);
}

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

.categories-list li a {
    padding: 8px 10px;
    border-radius: var(--az-radius-sm);
    color: var(--az-text-main);
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.2s;
}

.categories-list li a:hover {
    background-color: var(--az-bg-elevated);
    color: var(--az-primary);
    transform: translateX(4px);
}

.trending-item .rank-number {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: var(--az-bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--az-text-muted);
    flex-shrink: 0;
}

.trending-item .rank-1 {
    background: var(--az-danger-gradient);
    color: #ffffff;
}

.trending-item .rank-2 {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
}

.trending-item .rank-3 {
    background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
    color: #ffffff;
}

.trending-title {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trending-title a {
    color: var(--az-text-main);
}

.trending-title a:hover {
    color: var(--az-primary);
}

/* ==========================================================================
   10. Pagination & Footer
   ========================================================================== */
.pagination {
    display: flex;
    gap: 6px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: var(--az-radius-sm);
    background-color: var(--az-bg-card);
    border: 1px solid var(--az-border);
    color: var(--az-text-main);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.page-numbers:hover,
.page-numbers.current {
    background-color: var(--az-primary);
    color: #ffffff;
    border-color: var(--az-primary);
}

.site-footer {
    background-color: var(--az-bg-surface);
    border-top: 1px solid var(--az-border);
}

.footer-heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--az-text-main);
}

.footer-link {
    color: var(--az-text-muted);
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--az-primary);
}

.social-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--az-bg-elevated);
    border: 1px solid var(--az-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--az-text-main);
    transition: all 0.2s;
}

.social-icon-btn:hover {
    background: var(--az-accent-gradient);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   11. Advanced Responsive Optimizations & Overflow Protection
   ========================================================================== */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Ensure embedded content never overflows containers */
.typography-content table {
    width: 100% !important;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.typography-content pre {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.typography-content iframe,
.typography-content video,
.typography-content embed {
    max-width: 100%;
}

.azpivi-ad-container {
    max-width: 100%;
    overflow: hidden;
}

/* Tablet & Smaller (<= 991.98px) */
@media (max-width: 991.98px) {
    .site-navbar {
        padding: 4px 0;
    }
    .hero-slide-item {
        height: 360px;
    }
    .slide-content-box {
        padding: 1.5rem 1.8rem;
    }
    .slide-title {
        font-size: 1.55rem;
    }
    .article-card {
        padding: 1.75rem 1.5rem;
    }
    .entry-title {
        font-size: 1.75rem;
    }
    .download-link-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }
    .download-link-item .link-action {
        width: 100%;
    }
    .btn-download-pulse {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    .sidebar-wrapper {
        margin-top: 1.5rem;
    }
}

/* Mobile Devices (<= 767.98px) */
@media (max-width: 767.98px) {
    .hero-slide-item {
        height: 310px;
    }
    .slide-content-box {
        padding: 1.2rem;
    }
    .slide-title {
        font-size: 1.25rem;
        line-height: 1.35;
    }
    .btn-hero-read {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
    .article-card {
        padding: 1.25rem 1rem;
        border-radius: var(--az-radius-md);
    }
    .entry-title {
        font-size: 1.45rem;
        line-height: 1.3;
    }
    .entry-meta-bar {
        font-size: 0.8rem;
        gap: 8px;
        padding-bottom: 0.8rem;
    }
    .download-box-header {
        padding: 1.2rem 1rem;
    }
    .download-box-body {
        padding: 1rem;
    }
    .download-box-footer {
        padding: 0.8rem 1rem;
    }
    .download-box-title {
        font-size: 1.15rem;
    }
    .download-box-icon {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }
    .redirect-card {
        padding: 2rem 1.2rem;
    }
    .redirect-heading {
        font-size: 1.5rem;
    }
    .redirect-subheading {
        font-size: 0.88rem;
    }
    .btn-download-primary {
        font-size: 1rem;
        padding: 14px 20px;
        width: 100%;
    }
    .ad-placeholder-box {
        padding: 1rem 0.75rem;
    }
    .ad-placeholder-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    .archive-header-banner {
        padding: 2rem 1.2rem !important;
    }
    .archive-title {
        font-size: 1.45rem;
    }
}

/* Small Screens / Fold Phones (<= 480px) */
@media (max-width: 480px) {
    .site-branding .custom-logo,
    .site-branding img,
    .custom-logo,
    .custom-logo-link img {
        max-height: 36px !important;
        max-width: 160px !important;
    }
    .brand-text-logo {
        font-size: 1.35rem;
    }
    .hero-slide-item {
        height: 270px;
    }
    .slide-title {
        font-size: 1.15rem;
        margin-bottom: 0.3rem;
    }
    .slide-meta-info {
        font-size: 0.75rem;
    }
    .entry-title {
        font-size: 1.3rem;
    }
    .typography-content {
        font-size: 0.98rem;
        line-height: 1.75;
    }
    .typography-content h2 {
        font-size: 1.3rem;
        margin: 1.6rem 0 0.8rem;
    }
    .typography-content h3 {
        font-size: 1.15rem;
    }
    .redirect-card {
        padding: 1.5rem 0.85rem;
    }
    .redirect-heading {
        font-size: 1.35rem;
    }
    .countdown-number {
        font-size: 2.3rem;
    }
    .progress-ring-container {
        width: 110px;
        height: 110px;
    }
    .progress-ring {
        width: 110px;
        height: 110px;
    }
    .btn-download-primary {
        font-size: 0.92rem;
        padding: 13px 16px;
    }
    .social-icon-btn {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    .footer-heading {
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   11. Mega Homepage Multi-Section Styles (V2.4)
   ========================================================================== */

/* 11.1 Trending Ticker Bar */
.trending-ticker-bar {
    background: var(--az-bg-surface);
    border: 1px solid var(--az-border);
    border-radius: 50px;
    padding: 6px 14px;
    box-shadow: var(--az-shadow-sm);
}

.ticker-label {
    background: var(--az-accent-gradient);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.ticker-items-scroll {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.ticker-items-scroll::-webkit-scrollbar {
    display: none;
}

.ticker-chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--az-text-main);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--az-border);
    padding: 3px 12px;
    border-radius: 50px;
    transition: all 0.2s ease;
    text-decoration: none;
}

[data-bs-theme="light"] .ticker-chip {
    background: rgba(0, 0, 0, 0.04);
}

.ticker-chip:hover {
    color: #fff;
    background: var(--az-primary);
    border-color: var(--az-primary);
    transform: translateY(-1px);
}

/* 11.2 Hero Magazine Bento Spotlight Cards */
.hero-spotlight-card {
    position: relative;
    height: 222px;
    border-radius: var(--az-radius-lg);
    overflow: hidden;
    background: var(--az-bg-card);
    border: 1px solid var(--az-border);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--az-shadow-sm);
}

.hero-spotlight-card:hover {
    transform: translateY(-3px);
    border-color: var(--az-border-hover);
    box-shadow: var(--az-shadow-md);
}

.hero-spotlight-card .spotlight-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.5s ease;
}

.hero-spotlight-card:hover .spotlight-img {
    transform: scale(1.08);
}

.hero-spotlight-card .spotlight-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 17, 32, 0.15) 0%, rgba(11, 17, 32, 0.65) 50%, rgba(11, 17, 32, 0.95) 100%);
    z-index: 2;
}

.hero-spotlight-card .spotlight-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.15rem;
    z-index: 3;
}

.hero-spotlight-card .spotlight-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    backdrop-filter: blur(8px);
}

.hero-spotlight-card .spotlight-title {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0.35rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-spotlight-card .spotlight-title a {
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-spotlight-card .spotlight-title a:hover {
    color: var(--az-primary);
}

/* 11.3 Quick Category Explorer Grid */
.quick-topic-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: var(--az-radius-md);
    background: var(--az-bg-card);
    border: 1px solid var(--az-border);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--az-shadow-sm);
    text-decoration: none;
    height: 100%;
}

.quick-topic-card:hover {
    transform: translateY(-4px);
    border-color: var(--az-primary);
    box-shadow: var(--az-shadow-md);
}

.quick-topic-card .topic-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.quick-topic-card .topic-info {
    min-width: 0;
}

.quick-topic-card .topic-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--az-text-main);
    margin: 0;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quick-topic-card .topic-count {
    font-size: 0.75rem;
    color: var(--az-text-muted);
}

/* 11.4 Modern Section Headers */
.section-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--az-border);
    position: relative;
}

.section-header-modern::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--az-accent-gradient);
    border-radius: 2px;
}

.section-header-modern .section-heading {
    font-size: 1.35rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: var(--az-text-main);
}

.section-header-modern .section-subheading {
    font-size: 0.85rem;
    color: var(--az-text-muted);
    margin: 0.25rem 0 0;
}

.section-header-modern .btn-section-more {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--az-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.section-header-modern .btn-section-more:hover {
    background: var(--az-primary);
    color: #ffffff;
    border-color: var(--az-primary);
    transform: translateX(3px);
}

/* 11.5 Modern Card Styles */
.az-card-modern {
    background: var(--az-bg-card);
    border: 1px solid var(--az-border);
    border-radius: var(--az-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--az-shadow-sm);
}

.az-card-modern:hover {
    transform: translateY(-5px);
    border-color: var(--az-border-hover);
    box-shadow: var(--az-shadow-md);
}

.az-card-modern .card-thumb-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: var(--az-bg-elevated);
}

.az-card-modern .card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.45s ease;
}

.az-card-modern:hover .card-thumb-wrap img {
    transform: scale(1.08);
}

.az-card-modern .card-badges-float {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 2;
}

.az-card-modern .card-body-wrap {
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.az-card-modern .card-title-modern {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.az-card-modern .card-title-modern a {
    color: var(--az-text-main);
}

.az-card-modern .card-title-modern a:hover {
    color: var(--az-primary);
}

.az-card-modern .card-excerpt-modern {
    font-size: 0.85rem;
    color: var(--az-text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.az-card-modern .card-footer-modern {
    padding-top: 0.75rem;
    margin-top: auto;
    border-top: 1px solid var(--az-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--az-text-muted);
}

/* 11.6 Magazine Guide Block */
.guide-lead-card {
    position: relative;
    height: 100%;
    min-height: 380px;
    border-radius: var(--az-radius-md);
    overflow: hidden;
    background: var(--az-bg-card);
    border: 1px solid var(--az-border);
    box-shadow: var(--az-shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.guide-lead-card:hover {
    transform: translateY(-4px);
    border-color: var(--az-border-hover);
    box-shadow: var(--az-shadow-md);
}

.guide-lead-card .lead-thumb-wrap {
    position: relative;
    height: 230px;
    overflow: hidden;
}

.guide-lead-card .lead-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.45s ease;
}

.guide-lead-card:hover .lead-thumb-wrap img {
    transform: scale(1.07);
}

.guide-lead-card .lead-content-wrap {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.guide-compact-item {
    display: flex;
    gap: 0.9rem;
    padding: 0.75rem;
    border-radius: var(--az-radius-md);
    background: var(--az-bg-card);
    border: 1px solid var(--az-border);
    transition: all 0.25s ease;
    align-items: center;
    margin-bottom: 0.75rem;
    text-decoration: none;
}

.guide-compact-item:hover {
    transform: translateX(4px);
    border-color: var(--az-primary);
    box-shadow: var(--az-shadow-sm);
}

.guide-compact-item .compact-thumb {
    width: 96px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.guide-compact-item .compact-info {
    min-width: 0;
    flex-grow: 1;
}

.guide-compact-item .compact-title {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--az-text-main);
    margin: 0 0 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.guide-compact-item:hover .compact-title {
    color: var(--az-primary);
}

.guide-compact-item .compact-meta {
    font-size: 0.75rem;
    color: var(--az-text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* 11.7 Developer Corner Card */
.dev-code-card {
    background: var(--az-bg-surface);
    border: 1px solid var(--az-border);
    border-radius: var(--az-radius-md);
    overflow: hidden;
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dev-code-card:hover {
    transform: translateY(-4px);
    border-color: #3b82f6;
    box-shadow: var(--az-shadow-md);
}

.dev-card-topbar {
    background: rgba(0, 0, 0, 0.25);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--az-border);
}

.dev-card-dots {
    display: flex;
    gap: 5px;
}

.dev-card-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.dev-dot-red { background-color: #ef4444; }
.dev-dot-yellow { background-color: #f59e0b; }
.dev-dot-green { background-color: #10b981; }

/* 11.8 Leaderboard Widget */
.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
    border-bottom: 1px dashed var(--az-border);
}

.leaderboard-item:last-child {
    border-bottom: none;
}

.leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

[data-bs-theme="light"] .leaderboard-item:hover {
    background: rgba(0, 0, 0, 0.03);
}

.leaderboard-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    flex-shrink: 0;
    color: #fff;
}

.leaderboard-badge.rank-1 {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.leaderboard-badge.rank-2 {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}

.leaderboard-badge.rank-3 {
    background: linear-gradient(135deg, #b45309 0%, #78350f 100%);
}

.leaderboard-badge.rank-other {
    background: var(--az-bg-elevated);
    color: var(--az-text-muted);
    border: 1px solid var(--az-border);
}

/* 11.9 Safe Guarantee Box */
.safe-guarantee-card {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.08) 0%, rgba(6, 182, 212, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--az-radius-md);
    padding: 1.25rem;
}

.safe-guarantee-card .safe-item {
    font-size: 0.84rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--az-text-main);
}

/* 11.10 Trust Features Bar */
.home-trust-features {
    background: var(--az-bg-surface);
    border: 1px solid var(--az-border);
    border-radius: var(--az-radius-lg);
    padding: 1.75rem 1.25rem;
}

.trust-feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.trust-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    color: #fff;
}

.trust-feature-info h6 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.15rem;
    color: var(--az-text-main);
}

.trust-feature-info p {
    font-size: 0.78rem;
    color: var(--az-text-muted);
    margin: 0;
}

@media (max-width: 767.98px) {
    .hero-spotlight-card {
        height: 180px;
    }
    .quick-topic-card {
        padding: 0.75rem;
    }
    .quick-topic-card .topic-icon-wrap {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    .guide-lead-card {
        min-height: auto;
    }
    .guide-compact-item .compact-thumb {
        width: 80px;
        height: 60px;
    }
    .section-header-modern .section-heading {
        font-size: 1.15rem;
    }
    .home-trust-features {
        padding: 1rem;
    }
}

/* 11.11 Pagination Styles */
.azpivi-pagination-wrapper ul.page-numbers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.azpivi-pagination-wrapper .page-numbers li a,
.azpivi-pagination-wrapper .page-numbers li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 50px;
    background: var(--az-bg-card);
    border: 1px solid var(--az-border);
    color: var(--az-text-main);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.azpivi-pagination-wrapper .page-numbers li a:hover {
    background: var(--az-primary);
    color: #ffffff;
    border-color: var(--az-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.azpivi-pagination-wrapper .page-numbers li span.current {
    background: var(--az-accent-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}