/**
 * 3D Card Design System & Rebranded News Components
 *
 * Implements:
 * - 3D Card Architecture (Rounded edges, multi-layer elevation, hover physics)
 * - Desktop 3-Column Layout
 * - Mobile Single-Stream Layout
 * - Sri Lankan Utility Widgets (Calendar, Rahu Kalaya, Subha/Maru Dishawa, Cartoon, WhatsApp)
 * - Modern News Portal Footer
 * - Full Dark Mode Support
 *
 * @package BuzzMag
 */

/* ==========================================================================
   1. 3D Card Core Architecture
   ========================================================================== */
.fl-3d-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 1px 1px 10px 1px #abb8c3;
    transition: transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
    overflow: hidden;
    position: relative;
}

.fl-3d-card:hover {
    transform: translateY(-3px);
    box-shadow: 1px 3px 12px 1px #9aaab6;
    border-color: rgba(0, 0, 0, 0.1);
}

/* Dark Theme Overrides for 3D Cards */
[data-theme="dark"] .fl-3d-card {
    background: #212121;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 1px 1px 10px 1px rgba(0, 0, 0, 0.65);
}

[data-theme="dark"] .fl-3d-card:hover {
    box-shadow: 1px 3px 14px 2px rgba(0, 0, 0, 0.85);
    border-color: rgba(255, 255, 255, 0.16);
}

/* Responsive Visibility Helpers */
@media (min-width: 992px) {
    .fl-mobile-only {
        display: none !important;
    }

    .fl-desktop-only {
        display: block !important;
    }
}

@media (max-width: 991px) {
    .fl-desktop-only {
        display: none !important;
    }

    .fl-mobile-only {
        display: block !important;
    }
}

/* ==========================================================================
   2. Lead Post 3D Hero Card
   ========================================================================== */
.fl-lead-section {
    width: 100%;
    margin-bottom: 25px;
    box-sizing: border-box;
}

.fl-lead-hero-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 380px;
    width: 100%;
    box-sizing: border-box;
}

.fl-lead-media {
    flex: 0 0 55%;
    position: relative;
    overflow: hidden;
    background: #111;
}


.fl-lead-media .fl-lead-thumb-link,
.fl-lead-media>a:first-child {
    display: block;
    width: 100%;
    height: 100%;
}

.fl-lead-media::before,
.fl-lead-media::after,
.fl-lead-thumb-link::before,
.fl-lead-thumb-link::after {
    display: none !important;
    content: none !important;
}

.fl-lead-placeholder {
    width: 100%;
    height: 100%;
    min-height: 380px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fl-lead-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.fl-lead-hero-card:hover .fl-lead-media img {
    transform: scale(1.04);
}

.fl-lead-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #ed0e28;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(237, 14, 40, 0.5);
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fl-lead-media .fl-cat-pill,
.fl-cat-pill {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    width: auto !important;
    height: auto !important;
    max-width: calc(100% - 32px);
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    color: #ffffff;
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    padding: 4px 12px;
    border-radius: 12px;
    z-index: 2;
    transition: background 0.2s ease;
    text-decoration: none !important;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.2s ease, transform 0.2s ease;
}

.fl-lead-media .fl-cat-pill:hover,
.fl-cat-pill:hover {
    background: #ed0e28;
    color: #ffffff;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

.fl-lead-content {
    flex: 0 0 45%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fl-lead-meta {
    font-size: 13px;
    color: #888888;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.fl-lead-meta .views {
    color: #e67e22;
    font-weight: 600;
}

.fl-lead-title {
    font-size: 26px;
    line-height: 1.35;
    margin-bottom: 14px;
    font-weight: 700;
}

.fl-lead-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.fl-lead-title a:hover {
    color: #ed0e28;
}

.fl-lead-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 20px;
}

[data-theme="dark"] .fl-lead-excerpt {
    color: #aaaaaa;
}

.fl-3d-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #111111;
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    align-self: flex-start;
}

.fl-3d-btn:hover {
    background: #ed0e28;
    transform: translateX(2px);
    box-shadow: 0 6px 14px rgba(237, 14, 40, 0.35);
}

@media (max-width: 991px) {
    .fl-lead-hero-card {
        flex-direction: column;
    }

    .fl-lead-media {
        min-height: 240px;
    }

    .fl-lead-content {
        padding: 20px;
    }

    .fl-lead-title {
        font-size: 20px;
    }
}

/* ==========================================================================
   3. Desktop 3-Column Grid Layout
   ========================================================================== */
.fl-home-desktop-wrapper {
    display: block !important;
    width: 100%;
    box-sizing: border-box;
}

.fl-home-3col-grid {
    display: grid;
    grid-template-columns: minmax(0, 71fr) minmax(0, 29fr);
    gap: 22px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 35px;
}

.fl-home-main-cols-wrap {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.fl-home-2col-subgrid {
    display: grid;
    grid-template-columns: minmax(0, 31fr) minmax(0, 40fr);
    gap: 22px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 991px) {
    .fl-home-3col-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .fl-home-2col-subgrid {
        grid-template-columns: minmax(0, 31fr) minmax(0, 40fr);
        gap: 18px;
    }
}

@media (max-width: 640px) {
    .fl-home-2col-subgrid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.fl-home-col12-bottom-ads {
    width: 100%;
    margin: 24px auto 0;
}

.fl-home-col {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Column Headers */
.fl-col-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 15px;
    border-bottom: 2px solid #ed0e28;
}

.fl-col-header.sub-header {
    border-bottom-color: #e67e22;
    margin-top: 25px;
}

.fl-col-header h3,
.fl-col-header h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: inherit;
}

.fl-col-badge {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 13px;
}

.fl-col-badge.red {
    background: #ed0e28;
}

.fl-col-badge.orange {
    background: #e67e22;
}

/* ==========================================================================
   4. Horizontal / Compact Post Cards (Column 1 - Latest 10 & Most Viewed)
   ========================================================================== */
.fl-latest-10-stack,
.fl-most-viewed-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fl-most-viewed-4days-wrap article.fl-3d-card + article.fl-3d-card {
    margin-top: 12px;
}

.fl-post-card-horizontal,
.fl-post-card-compact {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 12px 14px;
    gap: 14px;
    border-radius: 12px;
}

.fl-post-card-horizontal .fl-card-thumb,
.fl-post-card-compact .fl-card-thumb {
    flex: 0 0 125px;
    width: 125px;
    height: 88px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #111;
}

.fl-post-card-horizontal .fl-card-thumb a,
.fl-post-card-compact .fl-card-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.fl-post-card-horizontal .fl-card-thumb img,
.fl-post-card-compact .fl-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fl-post-card-horizontal:hover .fl-card-thumb img,
.fl-post-card-compact:hover .fl-card-thumb img {
    transform: scale(1.06);
}

.fl-post-card-horizontal .fl-card-body,
.fl-post-card-compact .fl-card-body {
    flex: 1 1 auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.fl-post-card-horizontal .fl-card-title,
.fl-post-card-compact .fl-card-title {
    font-size: 15px;
    line-height: 1.38;
    margin: 0;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fl-post-card-horizontal .fl-card-title a,
.fl-post-card-compact .fl-card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

[data-theme="dark"] .fl-post-card-horizontal .fl-card-title a,
[data-theme="dark"] .fl-post-card-compact .fl-card-title a {
    color: #f3f4f6;
}

.fl-post-card-horizontal .fl-card-title a:hover,
.fl-post-card-compact .fl-card-title a:hover {
    color: #ed0e28;
}

.fl-post-card-horizontal .fl-card-meta,
.fl-post-card-compact .fl-card-meta {
    font-size: 13px;
    color: #333333;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

[data-theme="dark"] .fl-post-card-horizontal .fl-card-meta,
[data-theme="dark"] .fl-post-card-compact .fl-card-meta {
    color: #a3a3a3;
}

.fl-post-card-horizontal .fl-card-meta i.fa-calendar,
.fl-post-card-compact .fl-card-meta i.fa-calendar {
    color: #1a1a1a;
    font-size: 13px;
}

[data-theme="dark"] .fl-post-card-horizontal .fl-card-meta i.fa-calendar,
[data-theme="dark"] .fl-post-card-compact .fl-card-meta i.fa-calendar {
    color: #f3f4f6;
}

/* FontAwesome 4.7 Compatibility Aliases */
.fa-landmark:before {
    font-family: 'FontAwesome' !important;
    content: "\f19c" !important; /* FA 4.7 fa-institution / fa-university */
}

/* ==========================================================================
   5. Standard 3D Post Card
   ========================================================================== */
.fl-post-card-standard {
    display: flex;
    flex-direction: column;
}

.fl-card-media {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: #111;
}

.fl-card-media a {
    display: block;
    width: 100%;
    height: 100%;
}

.fl-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.3s ease;
}

.fl-post-card-standard:hover .fl-card-media img {
    transform: scale(1.05);
}

.fl-cat-badge {
    display: none !important;
}

.fl-card-details {
    padding: 14px;
}

.fl-card-details .fl-card-title {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 8px;
}

/* ==========================================================================
   6. Column 2: 3D Category Cards (Local, Off Road, Business, Sports)
   ========================================================================== */
.fl-col-categories {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.fl-category-card-3d {
    border-top: 4px solid var(--cat-accent, #ed0e28);
}

.fl-cat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .fl-cat-card-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.fl-cat-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fl-cat-icon-link {
    display: inline-flex;
    text-decoration: none;
    line-height: 1;
    transition: transform 0.2s ease;
}

.fl-cat-icon-link:hover {
    transform: scale(1.08);
}

.fl-cat-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 13px;
}

.fl-cat-name {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: inherit;
}

.fl-cat-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.fl-cat-name a:hover {
    color: var(--cat-accent, #ed0e28);
}

.fl-cat-more {
    font-size: 11.5px;
    font-weight: 700;
    color: #4b5563;
    background: #f3f4f6;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 4px 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.22s cubic-bezier(0.25, 0.8, 0.25, 1);
    white-space: nowrap;
}

.fl-cat-more i {
    font-size: 13px;
    transition: transform 0.2s ease;
}

.fl-cat-more:hover {
    background: var(--cat-accent, #ed0e28);
    color: #ffffff;
    border-color: var(--cat-accent, #ed0e28);
    box-shadow: 0 4px 12px rgba(237, 14, 40, 0.25);
    transform: translateY(-1px);
    text-decoration: none;
}

.fl-cat-more:hover i {
    transform: translateX(3px);
}

.fl-cat-more:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .fl-cat-more {
    background: #252830;
    color: #e5e7eb;
    border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .fl-cat-more:hover {
    background: var(--cat-accent, #ed0e28);
    color: #ffffff;
    border-color: var(--cat-accent, #ed0e28);
    box-shadow: 0 4px 14px rgba(237, 14, 40, 0.4);
}

.fl-cat-card-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fl-cat-post-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    gap: 14px;
    transition: transform 0.2s ease;
}

[data-theme="dark"] .fl-cat-post-item {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.fl-cat-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.fl-cat-item-thumb {
    flex: 0 0 115px;
    width: 115px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #111;
}

.fl-cat-item-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.fl-cat-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.fl-cat-post-item:hover .fl-cat-item-thumb img {
    transform: scale(1.06);
}

.fl-cat-item-content {
    flex: 1 1 auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.fl-cat-item-title {
    font-size: 14.5px;
    line-height: 1.38;
    margin: 0;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fl-cat-item-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

[data-theme="dark"] .fl-cat-item-title a {
    color: #f3f4f6;
}

.fl-cat-item-title a:hover {
    color: var(--cat-accent, #ed0e28);
}

.fl-cat-item-meta {
    font-size: 12.5px;
    color: #333333;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

[data-theme="dark"] .fl-cat-item-meta {
    color: #a3a3a3;
}

.fl-cat-item-meta i.fa-calendar {
    color: #1a1a1a;
    font-size: 12.5px;
}

[data-theme="dark"] .fl-cat-item-meta i.fa-calendar {
    color: #f3f4f6;
}

/* Category Card Footer Link */
.fl-cat-card-footer {
    padding: 10px 14px 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(0, 0, 0, 0.015);
    text-align: center;
}

[data-theme="dark"] .fl-cat-card-footer {
    border-top-color: rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.fl-cat-footer-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--cat-accent, #ed0e28);
    text-decoration: none;
    padding: 7px 16px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.07);
    transition: all 0.22s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 100%;
    cursor: pointer;
}

[data-theme="dark"] .fl-cat-footer-more {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.fl-cat-footer-more:hover {
    background: var(--cat-accent, #ed0e28);
    color: #ffffff;
    border-color: var(--cat-accent, #ed0e28);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
    transform: translateY(-1px);
    text-decoration: none;
}

.fl-cat-footer-more i {
    font-size: 13px;
    transition: transform 0.2s ease;
}

.fl-cat-footer-more:hover i {
    transform: translateX(4px);
}

.fl-cat-footer-more:active {
    transform: translateY(0);
}

/* ==========================================================================
   7. Column 3: Videos & Sri Lankan Utility Cards
   ========================================================================== */
.fl-col-utilities {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fl-utility-card {
    padding: 16px;
}

.fl-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

[data-theme="dark"] .fl-card-header {
    border-bottom-color: rgba(255, 255, 255, 0.07);
}

.fl-header-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #2c3e50;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.fl-header-title h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.fl-header-title small {
    font-size: 11px;
    color: #888888;
    display: block;
}

.fl-header-badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    background: #eef2f5;
    padding: 3px 8px;
    border-radius: 6px;
    color: #555;
}

[data-theme="dark"] .fl-header-badge {
    background: #333333;
    color: #ddd;
}

.fl-header-live {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    background: #fee2e2;
    color: #dc2626;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.fl-header-live .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #dc2626;
    animation: pulseLive 1.5s infinite;
}

@keyframes pulseLive {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.3);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Calendar Grid */
.fl-calendar-grid {
    font-size: 12px;
}

.fl-cal-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    gap: 4px;
}

.fl-cal-head {
    font-weight: 700;
    color: #888888;
    margin-bottom: 6px;
}

.fl-cal-cell {
    padding: 6px 0;
    border-radius: 6px;
}

.fl-cal-cell.today {
    background: #ed0e28;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(237, 14, 40, 0.4);
}

/* Astrology Card (Rahu Kalaya, Subha, Maru) */
.fl-rahu-box {
    background: rgba(237, 14, 40, 0.05);
    border: 1px solid rgba(237, 14, 40, 0.2);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fl-astro-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
}

.fl-astro-label i {
    color: #ed0e28;
}

.fl-astro-value .badge {
    background: #ed0e28;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.fl-astro-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.fl-astro-sub-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .fl-astro-sub-box {
    background: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.06);
}

.fl-astro-sub-box.subha .icon {
    color: #10b981;
    font-size: 18px;
}

.fl-astro-sub-box.maru .icon {
    color: #ef4444;
    font-size: 18px;
}

.fl-astro-sub-box .txt small {
    display: block;
    font-size: 10.5px;
    color: #888888;
}

.fl-astro-sub-box .txt strong {
    font-size: 12px;
    display: block;
}

/* Cartoon & Top Stories Image Cards */
.fl-cartoon-body,
.fl-top-stories-body {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.fl-cartoon-lightbox,
.fl-top-stories-lightbox {
    position: relative;
    display: block;
}

.fl-cartoon-lightbox img,
.fl-top-stories-lightbox img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.fl-cartoon-lightbox:hover img,
.fl-top-stories-lightbox:hover img {
    transform: scale(1.02);
}

.fl-zoom-icon {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.fl-cartoon-caption,
.fl-top-stories-caption {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    font-style: italic;
    text-align: center;
}

/* Promo Banners (WhatsApp, Advertise With Us, Facebook Page) */
.fl-promo-banner {
    color: #ffffff;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.fl-whatsapp-banner {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.fl-advertise-banner {
    background: linear-gradient(135deg, #f39c12 0%, #d35400 100%);
}

.fl-facebook-banner {
    background: linear-gradient(135deg, #1877f2 0%, #0d5cb6 100%);
}

.fl-tiktok-banner {
    background: linear-gradient(135deg, #010101 0%, #171822 60%, #0d0f18 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.fl-promo-content,
.fl-wa-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fl-promo-icon-wrap,
.fl-wa-icon-wrap {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    color: #ffffff;
}

.fl-promo-text h4,
.fl-wa-text h4 {
    margin: 0 0 3px 0;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.fl-promo-text p,
.fl-wa-text p {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.35;
}

.fl-promo-btn,
.fl-wa-btn {
    background: #ffffff;
    text-decoration: none;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.22s ease;
}

/* WhatsApp Button */
.fl-whatsapp-banner .fl-promo-btn,
.fl-wa-btn {
    color: #075e54 !important;
}

.fl-whatsapp-banner .fl-promo-btn:hover,
.fl-wa-btn:hover {
    background: #f0fdf4;
    color: #075e54 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

/* Advertise With Us Button (Directs to WhatsApp) */
.fl-advertise-banner .fl-promo-btn {
    color: #b73e00 !important;
}

.fl-advertise-banner .fl-promo-btn:hover {
    background: #25d366;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(37, 211, 102, 0.35);
}

/* Facebook Page Button */
.fl-facebook-banner .fl-promo-btn {
    color: #0d5cb6 !important;
}

.fl-facebook-banner .fl-promo-btn:hover {
    background: #ffffff;
    color: #1877f2 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(24, 119, 242, 0.3);
}

/* TikTok Banner Button & Visual Accents */
.fl-tiktok-banner .fl-promo-icon-wrap {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    box-shadow: -1.5px -1.5px 0 rgba(37, 244, 238, 0.8), 1.5px 1.5px 0 rgba(254, 44, 85, 0.8);
}

.fl-promo-svg-icon {
    display: block;
}

.fl-btn-svg-icon {
    display: inline-block;
}

.fl-tiktok-banner .fl-promo-btn {
    color: #010101 !important;
}

.fl-tiktok-banner .fl-promo-btn:hover {
    background: #fe2c55;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(254, 44, 85, 0.45);
}

/* Standalone Channel 3D Cards (4 Channels x 5 Videos Each - No Tabs) */
.fl-channel-card {
    padding: 16px;
    border-top: 4px solid var(--ch-color, #ed0e28);
    margin-bottom: 20px;
}

.fl-channel-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .fl-channel-card-header {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.fl-ch-head-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fl-ch-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 13px;
    flex-shrink: 0;
}

.fl-ch-name {
    margin: 0;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.3;
}

.fl-ch-count {
    font-size: 11px;
    color: #888888;
    display: block;
    margin-top: 2px;
}

.fl-ch-pill {
    font-size: 10.5px;
    font-weight: 700;
    color: #ffffff;
    padding: 3px 9px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.fl-ch-pill {
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
    padding: 2px 7px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* 5 Videos Grid in Channel */
.fl-channel-videos-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Video 1 Lead */
.fl-video-lead {
    margin-bottom: 4px;
}

.fl-video-lead .fl-v-thumb-wrap {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 145px;
    background: #000;
    margin-bottom: 6px;
}

.fl-video-lead .fl-v-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.fl-video-lead:hover .fl-v-thumb-wrap img {
    transform: scale(1.04);
}

.fl-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(237, 14, 40, 0.9);
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    padding-left: 3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, background 0.2s ease;
}

.fl-video-lead:hover .fl-play-overlay {
    transform: translate(-50%, -50%) scale(1.15);
    background: #ed0e28;
}

.fl-v-badge {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.fl-video-lead .fl-v-title {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.35;
    font-weight: 700;
}

.fl-video-lead .fl-v-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.fl-video-lead .fl-v-title a:hover {
    color: var(--ch-color, #ed0e28);
}

/* Videos 2..5 Compact Rows */
.fl-video-compact {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .fl-video-compact {
    border-top-color: rgba(255, 255, 255, 0.05);
}

.fl-v-mini-thumb {
    flex: 0 0 74px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    background: #111;
}

.fl-v-mini-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.fl-v-mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.fl-video-compact:hover .fl-v-mini-thumb img {
    transform: scale(1.08);
}

.fl-play-mini {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    padding-left: 2px;
}

.fl-v-info {
    flex: 1 1 auto;
    overflow: hidden;
}

.fl-v-num {
    display: block;
    font-size: 9.5px;
    font-weight: 700;
    color: var(--ch-color, #ed0e28);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.fl-video-compact .fl-v-title {
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 600;
}

.fl-video-compact .fl-v-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.fl-video-compact .fl-v-title a:hover {
    color: var(--ch-color, #ed0e28);
}

/* ==========================================================================
   8. Below Sections (Politics & Featured) - Desktop Only
   ========================================================================== */
.fl-below-sections {
    margin-top: 40px;
    margin-bottom: 50px;
    padding-top: 30px;
    border-top: 2px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 70px;
}

[data-theme="dark"] .fl-below-sections {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.fl-below-block {
    position: relative;
}

.fl-below-block:last-child {
    margin-top: 1em;
}

.fl-below-sections .fl-card-media {
    height: 205px;
}

.fl-below-sections .fl-card-media img {
    object-position: top center;
}

.fl-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.fl-section-header .fl-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fl-section-header-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.fl-section-header-link:hover {
    color: #ed0e28;
    text-decoration: none;
}

.fl-section-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.fl-section-header .fl-header-line {
    flex: 1;
    height: 2px;
    background: rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .fl-section-header .fl-header-line {
    background: rgba(255, 255, 255, 0.08);
}

.fl-section-more {
    font-size: 11.5px;
    font-weight: 700;
    color: #4b5563;
    background: #f3f4f6;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 4px 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.22s cubic-bezier(0.25, 0.8, 0.25, 1);
    white-space: nowrap;
}

.fl-section-more i {
    font-size: 13px;
    transition: transform 0.2s ease;
}

.fl-section-more:hover {
    background: #ed0e28;
    color: #ffffff;
    border-color: #ed0e28;
    box-shadow: 0 4px 12px rgba(237, 14, 40, 0.25);
    transform: translateY(-1px);
    text-decoration: none;
}

.fl-section-more:hover i {
    transform: translateX(3px);
}

[data-theme="dark"] .fl-section-more {
    background: #252830;
    color: #e5e7eb;
    border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .fl-section-more:hover {
    background: #ed0e28;
    color: #ffffff;
    border-color: #ed0e28;
}

.fl-section-header .fl-badge {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}

.fl-3d-grid-6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.fl-3d-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* ==========================================================================
   9. Mobile Single-Stream View
   ========================================================================== */
.fl-home-mobile-wrapper {
    display: block !important;
    padding: 5px 0 25px 0;
}

.fl-mobile-section {
    margin-bottom: 25px;
}

.fl-mobile-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 14px;
    border-bottom: 2px solid #ed0e28;
}

.fl-mobile-section-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.fl-mobile-section-header .fl-badge {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
}

.fl-mobile-posts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fl-mobile-grid-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.fl-mobile-categories {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.fl-mobile-videos-utilities {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

@media (max-width: 576px) {
    .fl-mobile-grid-cards {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   10. Single Post 3D Layout & Under-Post Modules
   ========================================================================== */
.fl-single-columns-wrap {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
    width: 100%;
    margin-top: 1em;
}

.fl-single-columns-wrap.fl-sidebar-left-layout {
    flex-direction: row-reverse;
}

.fl-3d-single-page #fl-post-container,
.fl-3d-category-page #fl-post-container {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    float: none;
    margin: 0;
}

.fl-3d-single-page #fl-post-container.no-sidebar,
.fl-3d-category-page #fl-post-container.no-sidebar {
    max-width: 100%;
    margin: 0 auto;
}

.fl-3d-single-page .fl-single-article-card {
    padding: 0;
    margin-bottom: 30px;
}

.fl-3d-single-page .fl-media-wrap {
    margin-bottom: 0;
    overflow: hidden;
    background: #111;
}

.fl-3d-single-page .fl-media-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

.fl-single-body-wrap {
    padding: 28px 32px;
}

.fl-single-sidebar {
    flex: 0 0 330px;
    width: 330px;
    float: none;
    margin: 0;
}

.fl-single-sidebar-categories {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.fl-sidebar-cat-widget {
    margin-bottom: 25px;
}

.fl-sidebar-cat-widget:last-child {
    margin-bottom: 0;
}

.fl-single-under-post-blocks {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 2px solid rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .fl-single-under-post-blocks {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.fl-under-block {
    margin-bottom: 30px;
}

.fl-block-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 16px;
    border-bottom: 2px solid #ed0e28;
}

.fl-block-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.fl-block-header .fl-badge {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
}

@media (max-width: 991px) {
    .fl-single-columns-wrap {
        flex-direction: column !important;
        gap: 25px;
    }

    .fl-3d-single-page #fl-post-container,
    .fl-3d-category-page #fl-post-container {
        width: 100% !important;
        max-width: 100% !important;
    }

    .fl-single-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 auto;
        margin: 0 !important;
        float: none !important;
    }

    .fl-single-sidebar-categories {
        display: flex;
        flex-direction: column;
        gap: 25px;
        width: 100%;
    }

    .fl-single-mobile-utilities-wrap {
        margin-top: 25px;
        width: 100%;
    }

    .fl-single-body-wrap {
        padding: 18px;
    }

    .fl-3d-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Category 3D Page Architecture & Components
   ========================================================================== */
.fl-category-header-card {
    padding: 22px 24px;
    margin-bottom: 25px;
    border-top: 4px solid var(--cat-accent, #ed0e28);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fl-cat-header-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.fl-cat-header-badge {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.fl-cat-header-info {
    flex: 1 1 auto;
    min-width: 0;
}

.fl-cat-sub-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #888888;
    margin-bottom: 2px;
}

.fl-cat-header-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    color: inherit;
}

.fl-cat-count-pill {
    margin-left: auto;
    font-size: 12px;
    font-weight: 700;
    background: #f1f5f9;
    color: #475569;
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

[data-theme="dark"] .fl-cat-count-pill {
    background: #2a2a2a;
    color: #cbd5e1;
}

.fl-cat-subcategories {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .fl-cat-subcategories {
    border-top-color: rgba(255, 255, 255, 0.06);
}

.fl-subcat-label {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.fl-subcat-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px 8px;
}

.fl-subcat-pill {
    font-size: 11.5px;
    font-weight: 600;
    color: #334155;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 3px 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.fl-subcat-pill:hover {
    background: var(--cat-accent, #ed0e28);
    color: #ffffff;
    border-color: var(--cat-accent, #ed0e28);
    transform: translateY(-1px);
}

[data-theme="dark"] .fl-subcat-pill {
    background: #262626;
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.1);
}

.fl-cat-header-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: #555555;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .fl-cat-header-desc {
    color: #aaaaaa;
    border-top-color: rgba(255, 255, 255, 0.06);
}

/* Category Posts 3D Grid (2 Columns) */
.fl-category-3d-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

@media (max-width: 680px) {
    .fl-category-3d-grid {
        grid-template-columns: 1fr;
    }
}

/* Category 3D Pagination */
.fl-category-pagination .navigation.pagination,
.fl-category-pagination .pagination {
    margin: 25px 0 35px 0;
}

.fl-category-pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.fl-category-pagination .nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    background: #ffffff;
    color: #111111;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.fl-category-pagination .nav-links .page-numbers:hover {
    background: #ed0e28;
    color: #ffffff;
    border-color: #ed0e28;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(237, 14, 40, 0.3);
}

.fl-category-pagination .nav-links .page-numbers.current {
    background: #ed0e28;
    color: #ffffff;
    border-color: #ed0e28;
    box-shadow: 0 3px 8px rgba(237, 14, 40, 0.35);
}

.fl-category-pagination .nav-links .page-numbers.prev i,
.fl-category-pagination .nav-links .prev i {
    margin-right: 10px;
}

.fl-category-pagination .nav-links .page-numbers.next i,
.fl-category-pagination .nav-links .next i {
    margin-left: 10px;
}

[data-theme="dark"] .fl-category-pagination .nav-links .page-numbers {
    background: #212121;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.5);
}

.fl-no-posts-card {
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 30px;
}

.fl-no-posts-card i {
    font-size: 32px;
    color: #94a3b8;
    margin-bottom: 12px;
    display: inline-block;
}

.fl-no-posts-card p {
    margin: 0;
    font-size: 15px;
    color: #64748b;
    font-weight: 600;
}

/* ==========================================================================
   11. Modern Footer (Compact News Portal Format)
   ========================================================================== */
#fl-footer.fl-modern-footer,
.fl-modern-footer {
    background: #151515 !important;
    color: #cccccc !important;
    padding: 24px 0 0 0;
    margin-top: 25px !important;
    border-top: 3px solid #ed0e28;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] #fl-footer.fl-modern-footer,
[data-theme="dark"] .fl-modern-footer {
    background: #111111 !important;
    color: #cccccc !important;
    border-top-color: #ed0e28;
}

.fl-footer-main-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fl-footer-brand-left {
    flex: 1 1 auto;
    max-width: 680px;
}

.fl-footer-logo h2 a {
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.fl-footer-logo img {
    max-height: 38px;
    display: block;
    margin-bottom: 8px;
}

.fl-footer-desc {
    font-size: 13px;
    line-height: 1.5;
    color: #94a3b8;
    margin: 0;
}

.fl-footer-quick-nav {
    flex: 0 0 auto;
    text-align: right;
}

.fl-footer-quick-nav .nav-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fl-footer-quick-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fl-footer-quick-nav ul li a {
    color: #aaaaaa;
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.fl-footer-quick-nav ul li a:hover {
    color: #ed0e28;
    transform: translateX(-2px);
}

/* Bottom Bar */
#fl-copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 12.5px;
    color: #888888;
}

.fl-copyright-left {
    flex: 1 1 0;
    text-align: left;
    float: none !important;
}

.fl-copyright-center {
    flex: 0 0 auto;
    text-align: center;
}

.fl-copyright-right {
    flex: 1 1 0;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    float: none !important;
}

.fl-copyright-line {
    display: inline-block;
}

.fl-rebrand-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: #94a3b8;
}

.fl-rebrand-tag .fl-rebrand-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(237, 14, 40, 0.12);
    color: #ed0e28;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.35px;
    border: 1px solid rgba(237, 14, 40, 0.28);
    text-transform: uppercase;
    line-height: 1.4;
}

.fl-rebrand-tag .fl-rebrand-badge i {
    font-size: 10px;
}

.fl-rebrand-tag a.fl-rebrand-author {
    color: #f1f5f9 !important;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.fl-rebrand-tag a.fl-rebrand-author:hover {
    color: #ed0e28 !important;
    text-decoration: underline !important;
}

.fl-rebrand-tag strong.fl-rebrand-author {
    color: #f1f5f9;
    font-weight: 600;
}

#fl-copyright a {
    color: #cccccc;
    text-decoration: none;
}

#fl-copyright a:hover {
    color: #ed0e28;
}

.fl-back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #252525;
    color: #ffffff !important;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.fl-back-to-top:hover {
    background: #ed0e28;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-2px);
}

@media (max-width: 991px) {
    #fl-footer.fl-modern-footer,
    .fl-modern-footer {
        padding: 18px 0 0 0;
        margin-top: 20px !important;
    }

    .fl-footer-main-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding-bottom: 14px;
    }

    .fl-footer-brand-left {
        max-width: 100%;
    }

    .fl-footer-quick-nav {
        text-align: left;
        width: 100%;
    }

    .fl-footer-quick-nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 14px;
    }

    #fl-copyright {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 10px 0;
    }

    .fl-copyright-left,
    .fl-copyright-center,
    .fl-copyright-right {
        text-align: center;
        width: 100%;
        justify-content: center;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .fl-post-card-horizontal {
        padding: 10px 12px;
        gap: 12px;
    }

    .fl-post-card-horizontal .fl-card-thumb {
        flex: 0 0 105px;
        width: 105px;
        height: 75px;
    }

    .fl-post-card-horizontal .fl-card-title {
        font-size: 13.5px;
    }

    .fl-post-card-horizontal .fl-card-meta {
        font-size: 12px;
    }

    .fl-cat-post-item {
        gap: 12px;
    }

    .fl-cat-item-thumb {
        flex: 0 0 100px;
        width: 100px;
        height: 72px;
    }

    .fl-cat-item-title {
        font-size: 13.5px;
    }

    .fl-cat-item-meta {
        font-size: 12px;
    }
}

/* ==========================================================================
   12. Mobile Drawer Scroll-Lock & Touch Containment
   ========================================================================== */
#fl-header {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
}

.admin-bar #fl-header {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    .admin-bar #fl-header {
        top: 46px !important;
    }
}

@media screen and (max-width: 600px) {
    .admin-bar #fl-header {
        top: 0 !important;
    }
}

html.fl-drawer-open {
    overflow: hidden !important;
    height: 100% !important;
}

body.fl-drawer-open {
    overflow: hidden !important;
    height: 100% !important;
    position: fixed !important;
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    touch-action: none;
    -webkit-overflow-scrolling: auto;
}

#fl-drawer {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.admin-bar #fl-drawer {
    top: 96px;
    height: calc(100% - 96px);
}

@media screen and (max-width: 782px) {
    .admin-bar #fl-drawer {
        top: 110px;
        height: calc(100% - 110px);
    }
}

@media screen and (max-width: 600px) {
    .admin-bar #fl-drawer {
        top: 64px;
        height: calc(100% - 64px);
    }
}

.push-overlay.open {
    touch-action: none;
    overscroll-behavior: none;
}

/* ==========================================================================
   14. Modern Ad Spaces & Sticky Bottom Banner Ad (Desktop & Mobile)
   ========================================================================== */
.fl-ad-space {
    width: 100%;
    margin: 24px auto;
    text-align: center;
    box-sizing: border-box;
    clear: both;
}

.fl-ad-space .adtitle {
    display: block;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--fl-text-meta, #888888);
    opacity: 0.85;
    margin-bottom: 8px;
}

.fl-ad-space .fl-ad-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    overflow: hidden;
    margin: 0 auto;
}

.fl-ad-space .fl-ad-content img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fl-ad-space .fl-ad-content img:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.fl-ad-space .fl-ad-content iframe,
.fl-ad-space .fl-ad-content ins.adsbygoogle {
    max-width: 100%;
    margin: 0 auto;
    display: inline-block;
}

/* Sidebar Ad Specific Styling */
.fl-ad-space.fl-ad-sidebar {
    margin: 16px 0;
    width: 100%;
}

.fl-ad-space.fl-ad-fullwidth {
    max-width: 100%;
    margin: 30px auto;
}

/* Centered Stack of 728x90 Ads */
.fl-ad-stack-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    margin: 22px auto;
    text-align: center;
    clear: both;
    box-sizing: border-box;
}

.fl-ad-728x90 {
    width: 100%;
    max-width: 728px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-sizing: border-box;
}

.fl-ad-728x90 .fl-ad-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.fl-ad-728x90 .fl-ad-content,
.fl-ad-728x90 img,
.fl-ad-728x90 ins.adsbygoogle {
    max-width: 100%;
    height: auto;
}

/* Desktop 728x90 & 718x90 Ad Container Sizing */
@media (min-width: 728px) {
    .fl-ad-728x90 {
        min-height: 90px;
    }

    .fl-ad-728x90 .fl-ad-content > div,
    .fl-ad-728x90 div[id^="block_"],
    .fl-ad-stack-center div[id^="block_"],
    .section-ad-container-double > div {
        width: 718px !important;
        max-width: 100% !important;
        height: 90px !important;
        margin: 0 auto !important;
    }
}

/* Mobile 350x50 / 320x50 Responsive Override for 728x90 Ad Blocks */
@media (max-width: 767px) {
    .fl-ad-stack-center {
        margin: 14px auto;
        gap: 10px;
    }

    .fl-ad-728x90 {
        max-width: 100% !important;
        min-height: 50px;
        overflow: visible !important;
    }

    .fl-ad-728x90 .fl-ad-content {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
    }

    /* Force mobile banner size (350x50) overriding inline style="width: 718px; height: 90px;" */
    .fl-ad-728x90 .fl-ad-content > div,
    .fl-ad-728x90 div[id^="block_"],
    .fl-ad-stack-center div[id^="block_"],
    .fl-article-end-ad div[id^="block_"],
    .section-ad-container-double > div {
        width: 320px !important;
        max-width: 100% !important;
        height: 50px !important;
        margin: 0 auto !important;
        overflow: hidden !important;
    }

    .fl-ad-728x90 .fl-ad-content iframe,
    .fl-ad-728x90 .fl-ad-content img,
    .fl-ad-stack-center iframe,
    .fl-ad-stack-center img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* Small Mobile Screens (<= 360px) */
@media (max-width: 360px) {
    .fl-ad-728x90 .fl-ad-content > div,
    .fl-ad-728x90 div[id^="block_"],
    .fl-ad-stack-center div[id^="block_"],
    .fl-article-end-ad div[id^="block_"],
    .section-ad-container-double > div {
        width: 320px !important;
        max-width: 100% !important;
        height: 50px !important;
    }
}

/* Legacy & Custom Ad Container Compatibility */
.section-ad-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 10px auto;
}

.section-ad-container-single {
    width: 100%;
    margin-top: 5px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-ad-container-double {
    width: 100%;
    margin-top: 5px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.section-ad-img {
    width: 100%;
    height: auto;
}

.section-ad-img-double {
    width: 50%;
    height: auto;
}

/* 300x300 Ad Container */
.fl-ad-300x300 {
    width: 100%;
    max-width: 300px;
    margin: 18px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-sizing: border-box;
}

.fl-ad-300x300 .fl-ad-content,
.fl-ad-300x300 img,
.fl-ad-300x300 ins.adsbygoogle {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Twin Vertical Skyscraper Ads (155x600 + 155x600 Side-by-Side) */
.fl-ad-twin-vertical {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    max-width: 330px;
    margin: 20px auto;
    clear: both;
    box-sizing: border-box;
}

.fl-ad-twin-vertical .fl-ad-half {
    flex: 1 1 155px;
    max-width: 155px;
    width: 155px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    text-align: center;
}

.fl-ad-twin-vertical .fl-ad-half .fl-ad-content,
.fl-ad-twin-vertical .fl-ad-half img,
.fl-ad-twin-vertical .fl-ad-half ins.adsbygoogle {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

@media (max-width: 340px) {
    .fl-ad-twin-vertical {
        flex-direction: column;
        align-items: center;
    }
}

/* Single Post: End of Article Ad Space */
.fl-article-end-ad {
    width: 100%;
    margin: 26px auto 10px;
    text-align: center;
    clear: both;
    box-sizing: border-box;
}

.fl-article-end-ad .fl-ad-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.fl-article-end-ad img,
.fl-article-end-ad iframe,
.fl-article-end-ad ins.adsbygoogle {
    max-width: 100%;
    height: auto;
}

/* Mobile Ad Margins */
@media (max-width: 991px) {
    .fl-ad-space {
        margin: 18px auto;
    }

    .fl-ad-stack-center {
        margin: 16px auto;
        gap: 12px;
    }
}

/* Sticky Bottom Banner Ad */
body.has-sticky-ad {
    transition: padding-bottom 0.2s ease;
}

/* Sticky Bottom Ad Footer Clearance Spacer */
.fl-sticky-ad-footer-spacer {
    display: none;
    width: 100%;
    height: 0;
    clear: both;
}

body.has-sticky-ad .fl-sticky-ad-footer-spacer {
    display: block !important;
    height: 105px;
}

@media (max-width: 768px) {
    body.has-sticky-ad .fl-sticky-ad-footer-spacer {
        height: 75px;
    }
}

.fl-sticky-bottom-ad-wrap {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
    padding: 8px 12px 10px;
    box-sizing: border-box;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

[data-theme="dark"] .fl-sticky-bottom-ad-wrap {
    background: rgba(18, 18, 18, 0.96);
    border-top-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
}

.fl-sticky-ad-container {
    position: relative;
    max-width: 970px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fl-sticky-ad-close {
    position: absolute;
    right: -24px;
    top: -12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ed0e28;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, background 0.2s ease;
    padding: 0;
    z-index: 2;
}

.fl-sticky-ad-close:hover {
    transform: scale(1.1);
    background: #c0392b;
}

.fl-sticky-ad-label {
    display: block;
    font-size: 9px;
    letter-spacing: 1px;
    color: #888888;
    text-transform: uppercase;
    margin-bottom: 4px;
    font-weight: 600;
}

.fl-sticky-ad-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    overflow: hidden;
}

.fl-sticky-ad-inner img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    border-radius: 4px;
}

.fl-sticky-ad-inner iframe,
.fl-sticky-ad-inner ins.adsbygoogle {
    max-width: 100%;
}

@media (max-width: 768px) {
    .fl-sticky-bottom-ad-wrap {
        padding: 6px 8px 8px;
    }

    .fl-sticky-ad-close {
        right: 0px;
        top: -14px;
        width: 22px;
        height: 22px;
        font-size: 14px;
    }
}
