/* ==========================================================================
   NORTHEAST TODAY - News & Magazine Portal Custom Styling
   ========================================================================== */

:root {
    --primary-red: #c91414;
    --primary-red-hover: #a80f0f;
    --primary-red-light: #fef2f2;
    --dark-heading: #111827;
    --dark-body: #334155;
    --muted-meta: #64748b;
    --border-color: #e5e7eb;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.04);
    --hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    font-family: var(--font-sans);
    color: var(--dark-body);
    background-color: #f8fafc;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

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

img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.topbar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--muted-meta);
    padding: 6px 0;
}

.topbar .date-display {
    font-weight: 500;
}

.topbar .top-nav-links a {
    color: var(--muted-meta);
    margin-right: 1.25rem;
    font-weight: 500;
}

.topbar .top-nav-links a:hover {
    color: var(--primary-red);
}

.topbar .social-icons a {
    color: #1e293b;
    margin-left: 0.85rem;
    font-size: 0.875rem;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.topbar .social-icons a:hover {
    color: var(--primary-red);
    transform: translateY(-1px);
}

/* ==========================================================================
   LOGO & HEADER AD AREA
   ========================================================================== */
.header-brand-ad-area {
    background-color: #ffffff;
    padding: 22px 0 18px 0;
}

.brand-logo-wrap {
    display: inline-block;
    vertical-align: middle;
}

.brand-logo-img {
    max-height: 70px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: opacity 0.2s ease;
}

.brand-logo-wrap:hover .brand-logo-img {
    opacity: 0.92;
}

.brand-logo-text {
    font-size: 2.25rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
    color: #0f172a;
    margin: 0;
    text-transform: uppercase;
}

.brand-logo-text .text-red {
    color: var(--primary-red);
}

.brand-tagline {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.26em;
    color: #64748b;
    margin-top: 5px;
    text-transform: uppercase;
}

.header-ad-banner {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    height: auto;
    background: transparent;
    display: block;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.header-ad-banner img.ad-bg {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 6px;
    opacity: 1;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.header-ad-banner:hover img.ad-bg {
    opacity: 0.95;
    transform: scale(1.005);
}

.header-ad-banner .ad-content {
    position: relative;
    z-index: 2;
    padding: 0 24px;
    text-align: right;
    color: #ffffff;
}

.header-ad-banner .ad-tagline {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #e2e8f0;
    margin-bottom: 2px;
}

.header-ad-banner .ad-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

/* ==========================================================================
   NAVIGATION BAR (STICKY DESKTOP & MOBILE)
   ========================================================================== */
.main-navbar {
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.main-navbar .nav-link,
#mainNavContent .nav-link {
    font-size: 0.8rem; /* Reduced by ~2px (from 15px/0.9375rem to 13px/0.8125rem) */
    font-weight: 600;
    color: #1e293b !important;
    padding: 10px 13px !important;
    transition: all 0.2s ease;
}

#mainNavContent .dropdown-item {
    font-size: 0.8rem;
}

.main-navbar .nav-link:hover {
    color: var(--primary-red) !important;
}

/* Selected / Active Navigation Item: Background #C91414 & Font #FFFFFF */
.main-navbar .nav-item.active .nav-link,
.main-navbar .nav-item.active-home .nav-link,
.main-navbar .nav-link.active,
#mainNavContent .nav-item.active > .nav-link,
#mainNavContent .nav-link.active {
    background-color: #c91414 !important;
    color: #ffffff !important;
    border-radius: 0;
}

.main-navbar .nav-item.active .nav-link:hover,
.main-navbar .nav-item.active-home .nav-link:hover,
.main-navbar .nav-link.active:hover,
#mainNavContent .nav-item.active > .nav-link:hover,
#mainNavContent .nav-link.active:hover {
    background-color: #a80f0f !important;
    color: #ffffff !important;
}

/* Home tab special padding for short 4-letter title */
.main-navbar .nav-item.active-home .nav-link {
    padding-left: 18px !important;
    padding-right: 18px !important;
}

/* Ensure active dropdown toggle caret is white */
.main-navbar .nav-item.active .nav-link.dropdown-toggle::after,
.main-navbar .nav-link.active.dropdown-toggle::after,
#mainNavContent .nav-link.active.dropdown-toggle::after {
    border-top-color: #ffffff !important;
}

/* Ensure active icon (such as PDF download icon) is white */
.main-navbar .nav-link.active i,
#mainNavContent .nav-link.active i {
    color: #ffffff !important;
}

/* Inactive PDF icon */
.main-navbar .nav-link:not(.active) .fa-file-pdf,
#mainNavContent .nav-link:not(.active) .fa-file-pdf {
    color: #c91414;
}

/* Dropdown active item inside sub-menu */
.main-navbar .dropdown-item.active,
.main-navbar .dropdown-item:active,
#mainNavContent .dropdown-item.active {
    background-color: #c91414 !important;
    color: #ffffff !important;
}

.nav-search-btn {
    border: none;
    background: transparent;
    color: #1e293b;
    font-size: 1.05rem;
    padding: 8px 12px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.nav-search-btn:hover {
    color: var(--primary-red);
}

/* Mobile Header Layout (70% Brand Left / 30% Search + Menu Right) */
.mobile-nav-header {
    width: 100%;
}

.mobile-brand-col {
    flex: 0 0 70%;
    max-width: 70%;
    width: 70%;
    overflow: hidden;
    padding-right: 8px;
    display: flex;
    align-items: center;
}

.mobile-brand-col .navbar-brand {
    max-width: 100%;
    overflow: hidden;
}

.mobile-brand-logo {
    max-height: 40px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.mobile-brand-text {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    color: #0f172a;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.mobile-actions-col {
    flex: 0 0 30%;
    max-width: 30%;
    width: 30%;
    gap: 4px;
}

.mobile-actions-col .mobile-icon-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #1e293b;
    font-size: 1.15rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.mobile-actions-col .mobile-icon-btn:hover,
.mobile-actions-col .mobile-icon-btn:focus {
    color: var(--primary-red);
    background-color: #f1f5f9;
}

@media (max-width: 991.98px) {
    .main-navbar {
        border-top: none;
        padding: 0 4px;
    }

    .main-navbar .navbar-collapse {
        max-height: calc(100vh - 65px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background-color: #ffffff;
        border-top: 1px solid var(--border-color);
        padding: 0.75rem 0 1.25rem 0;
    }

    .main-navbar .nav-link {
        padding: 10px 16px !important;
        border-bottom: 1px solid #f1f5f9;
    }

    .main-navbar .nav-item.active .nav-link,
    .main-navbar .nav-item.active-home .nav-link,
    .main-navbar .nav-link.active {
        background-color: #c91414 !important;
        color: #ffffff !important;
        font-weight: 700;
        border-bottom-color: #a80f0f !important;
    }

    .main-navbar .dropdown-menu {
        background-color: #f8fafc;
        margin: 0 12px 8px 12px;
        border-radius: 6px;
        padding: 6px 0;
        border: 1px solid #e2e8f0 !important;
    }

    .main-navbar .dropdown-item {
        padding: 8px 16px;
        font-size: 0.875rem;
    }
}

/* ==========================================================================
   SECTION HEADINGS & BADGES
   ========================================================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark-heading);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 1.15em;
    background-color: var(--primary-red);
    border-radius: 2px;
}

.section-view-all {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted-meta);
}

.section-view-all:hover {
    color: var(--primary-red);
}

.badge-tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-red);
    margin-bottom: 4px;
}

.badge-pill-red {
    background-color: var(--primary-red);
    color: #ffffff !important;
    font-size: 0.6875rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
}

/* ==========================================================================
   HERO / TOP STORIES SECTION
   ========================================================================== */
.hero-main-card {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    height: 480px;
    background-color: #0f172a;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: var(--card-shadow);
}

.hero-main-card .hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hero-main-card:hover .hero-bg-img {
    transform: scale(1.03);
}

.hero-main-card .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.92) 100%);
    z-index: 1;
}

.hero-main-card .hero-content {
    position: relative;
    z-index: 2;
    padding: 24px 28px;
    color: #ffffff;
}

.hero-main-card .hero-title {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 10px 0 8px 0;
    color: #ffffff;
}

.hero-main-card .hero-excerpt {
    font-size: 0.9375rem;
    color: #cbd5e1;
    line-height: 1.45;
    margin-bottom: 12px;
    max-width: 90%;
}

.hero-main-card .hero-meta {
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Stacked Hero Cards on Right */
.hero-stack-item {
    display: flex;
    gap: 14px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.2s ease;
}

.hero-stack-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.hero-stack-item .stack-thumb {
    width: 140px;
    height: 94px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.hero-stack-item:hover .stack-thumb img {
    transform: scale(1.05);
}

.hero-stack-item .stack-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-stack-item .stack-title {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--dark-heading);
    margin: 2px 0 6px 0;
}

.hero-stack-item .stack-meta {
    font-size: 0.75rem;
    color: var(--muted-meta);
}

/* ==========================================================================
   3-COLUMN SECTION (Latest News / Featured / Trending)
   ========================================================================== */
.news-list-item {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.news-list-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-list-item .news-thumb {
    width: 115px;
    height: 78px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.news-list-item:hover .news-thumb img {
    transform: scale(1.05);
}

.news-list-item .news-title {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--dark-heading);
    margin: 0 0 5px 0;
}

.news-list-item .news-meta {
    font-size: 0.75rem;
    color: var(--muted-meta);
}

/* Middle Featured Card */
.featured-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.featured-card .featured-img-wrap {
    height: 220px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.featured-card .featured-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-card:hover .featured-img-wrap img {
    transform: scale(1.04);
}

.featured-card .featured-body {
    padding: 16px 18px 20px 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.featured-card .featured-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--dark-heading);
    margin: 6px 0 10px 0;
    transition: color 0.2s ease;
}

.featured-card .featured-title:hover {
    color: var(--primary-red);
}

.featured-card .featured-excerpt {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 14px;
    flex-grow: 1;
}

.featured-card .featured-meta {
    font-size: 0.75rem;
    color: var(--muted-meta);
    margin-top: auto;
}

/* Trending List with Rankings */
.trending-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.trending-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.trending-item .trending-rank {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1e293b;
    min-width: 28px;
    text-align: center;
    flex-shrink: 0;
    line-height: 1;
}

.trending-item:nth-child(-n+3) .trending-rank {
    color: var(--primary-red, #c91414);
}

.trending-item .trending-thumb {
    width: 80px;
    height: 56px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.trending-item:hover .trending-thumb img {
    transform: scale(1.06);
}

.trending-item .trending-title {
    font-size: 0.84375rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--dark-heading);
    margin: 0;
}

/* ==========================================================================
   EXPLORE BY CATEGORY SECTION
   ========================================================================== */
.category-tile {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    height: 110px;
    display: flex;
    align-items: flex-end;
    padding: 12px;
    box-shadow: var(--card-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
}

.category-tile .tile-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-tile:hover .tile-bg {
    transform: scale(1.08);
}

.category-tile .tile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.category-tile .tile-title {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* ==========================================================================
   EDITOR'S PICK & OPINION SECTION
   ========================================================================== */
.editors-pick-opinion-section {
    position: relative;
}

/* Featured Lead Card (Col-md-6) */
.editors-pick-lead-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.editors-pick-lead-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    border-color: rgba(201, 20, 20, 0.3);
}

.lead-thumb-wrap {
    position: relative;
    display: block;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #0f172a;
}

.lead-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.editors-pick-lead-card:hover .lead-thumb-wrap img {
    transform: scale(1.06);
}

.badge-editorial-star {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: linear-gradient(135deg, #c91414 0%, #991b1b 100%);
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(201, 20, 20, 0.4);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
}

.lead-content-wrap {
    background: #ffffff;
}

.lead-meta-top .category-pill {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #c91414;
    letter-spacing: 0.5px;
}

.lead-meta-top .lead-date {
    font-size: 0.75rem;
    color: #64748b;
}

.lead-headline {
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.38;
    margin: 8px 0;
}

.lead-headline a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.lead-headline a:hover {
    color: #c91414;
}

.lead-excerpt {
    font-size: 0.8rem;
    color: #475569;
    line-height: 1.55;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.author-avatar-sm {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #e2e8f0;
}

.author-icon-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
}

.author-byline {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1e293b;
}

.read-time-pill {
    font-size: 0.6875rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 500;
}

/* Stacked Side Editorial Picks (Col-md-6) */
.editors-pick-side-item {
    display: flex;
    gap: 12px;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.editors-pick-side-item:hover {
    transform: translateY(-2px);
    border-color: rgba(201, 20, 20, 0.25);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.side-thumb-wrap {
    position: relative;
    width: 110px;
    height: 78px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background-color: #0f172a;
}

.side-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.editors-pick-side-item:hover .side-thumb-wrap img {
    transform: scale(1.08);
}

.side-order-num {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 0.625rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.side-content-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    width: 100%;
}

.side-cat-tag {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #c91414;
    letter-spacing: 0.4px;
}

.side-meta-top .side-date {
    font-size: 0.6875rem;
    color: #94a3b8;
}

.side-headline {
    font-size: 0.84375rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 3px 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.side-headline a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.side-headline a:hover {
    color: #c91414;
}

.side-byline {
    font-size: 0.6875rem;
    color: #64748b;
}

/* Polished Opinion Column */
.opinion-item-card {
    display: flex;
    gap: 14px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.opinion-item-card:hover {
    transform: translateY(-2px);
    border-color: rgba(201, 20, 20, 0.25);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.opinion-avatar-wrap {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.opinion-avatar-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.opinion-quote-bubble {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #c91414;
    color: #ffffff;
    font-size: 0.5625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.opinion-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.opinion-title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    color: #0f172a;
    margin: 0 0 4px 0;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.opinion-item-card:hover .opinion-title {
    color: #c91414;
}

.opinion-author-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 2px;
}

.opinion-meta {
    font-size: 0.6875rem;
    color: #94a3b8;
}

/* Legacy Video Styles for Backward Compatibility */
.video-card-main {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background-color: #0f172a;
    box-shadow: var(--card-shadow);
    cursor: pointer;
}

.video-thumb-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

.video-card-main:hover .video-thumb-container img {
    transform: scale(1.04);
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    background-color: rgba(201, 20, 20, 0.9);
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.play-button-overlay.sm {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
    border-width: 1.5px;
}

.video-card-main:hover .play-button-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: var(--primary-red);
}

.video-main-body {
    padding: 12px 4px 0 4px;
}

.video-main-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-heading);
    margin: 0 0 4px 0;
}

.video-main-meta {
    font-size: 0.75rem;
    color: var(--muted-meta);
}

.video-side-item {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}

.video-side-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.video-side-thumb {
    position: relative;
    width: 110px;
    height: 68px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.video-side-item:hover .video-side-thumb img {
    transform: scale(1.05);
}

.video-side-item:hover .play-button-overlay.sm {
    transform: translate(-50%, -50%) scale(1.15);
}

.video-side-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-side-title {
    font-size: 0.84375rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--dark-heading);
    margin: 0 0 4px 0;
}

.video-side-meta {
    font-size: 0.75rem;
    color: var(--muted-meta);
}

/* ==========================================================================
   SUBSCRIBE BANNER
   ========================================================================== */
.subscribe-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 8px;
    padding: 36px 32px;
    color: #ffffff;
    margin: 30px 0;
    box-shadow: var(--card-shadow);
}

.subscribe-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.subscribe-subtitle {
    font-size: 0.9375rem;
    color: #94a3b8;
    margin-bottom: 0;
}

.subscribe-form .form-control {
    height: 48px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0 16px;
    font-size: 0.9375rem;
}

.subscribe-form .btn-subscribe {
    height: 48px;
    padding: 0 24px;
    font-weight: 700;
    background-color: var(--primary-red);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.subscribe-form .btn-subscribe:hover {
    background-color: var(--primary-red-hover);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background-color: #0b1120;
    color: #94a3b8;
    padding-top: 48px;
    font-size: 0.875rem;
    border-top: 3px solid var(--primary-red);
}

.footer-heading {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #94a3b8;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.8rem;
}

.back-to-top-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background-color: var(--primary-red);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn:hover {
    background-color: var(--primary-red-hover);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   ARTICLE DETAIL PAGE STYLES
   ========================================================================== */
.article-header {
    margin-bottom: 24px;
}

.article-headline {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark-heading);
    line-height: 1.25;
    margin-top: 10px;
    margin-bottom: 14px;
}

.article-subheadline {
    font-size: 1.25rem;
    font-weight: 500;
    color: #475569;
    line-height: 1.5;
    margin-top: -6px;
    margin-bottom: 16px;
    border-left: 3px solid var(--primary-red);
    padding-left: 14px;
}

.article-lead {
    font-size: 1.15rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 18px;
}

.article-meta-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--muted-meta);
}

.article-meta-bar .article-author-avatar,
.article-meta-bar img.rounded-circle {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

.article-featured-img-wrap {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 28px;
    width: 100%;
}

.article-featured-img-wrap img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

.article-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #334155;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: var(--dark-heading);
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 14px;
    line-height: 1.35;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-red);
    padding: 12px 20px;
    margin: 24px 0;
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #475569;
}

.article-content table {
    width: 100%;
    margin-bottom: 24px;
    border-collapse: collapse;
}

.article-content table th,
.article-content table td {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
}

.article-content table th {
    background: #f1f5f9;
    font-weight: 600;
}

.article-share-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.article-share-buttons a,
.article-share-buttons button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #ffffff;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.article-share-buttons a:hover,
.article-share-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    opacity: 0.95;
    color: #ffffff;
}

.share-fb { background: #1877f2; }
.share-tw { background: #000000; }
.share-wa { background: #25d366; }
.share-li { background: #0a66c2; }
.share-tg { background: #229ed9; }
.share-pin { background: #e60023; }
.share-copy { background: #475569; }

/* ==========================================================================
   IMAGE UPLOADER & PROGRESS STYLES
   ========================================================================== */
.upload-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    background-color: #f8fafc;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
    border-color: var(--primary-red);
    background-color: var(--primary-red-light);
}

.preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: rgba(0,0,0,0.7);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
}

/* ==========================================================================
   FOOTER STYLING
   ========================================================================== */
.main-footer {
    background-color: #0b1120;
    color: #e2e8f0;
    padding-top: 50px;
    font-size: 0.875rem;
    border-top: 3px solid var(--primary-red);
}

.main-footer .footer-desc {
    color: #cbd5e1;
    line-height: 1.65;
    font-size: 0.84375rem;
}

.main-footer .footer-heading {
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.main-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-footer .footer-links li {
    margin-bottom: 9px;
}

.main-footer .footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.main-footer .footer-links a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.main-footer .footer-contact-item {
    color: #e2e8f0;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.main-footer .footer-contact-item i {
    color: var(--primary-red);
    margin-top: 3px;
    margin-right: 12px;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.main-footer .footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    margin-right: 8px;
    font-size: 0.875rem;
    transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.main-footer .footer-social-link:hover {
    background-color: var(--primary-red);
    color: #ffffff;
    transform: translateY(-2px);
}

.main-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 22px 0;
    margin-top: 40px;
    color: #cbd5e1;
    font-size: 0.875rem;
}

.main-footer .footer-bottom strong {
    color: #ffffff;
}

.main-footer .footer-bottom .footer-bottom-link {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.main-footer .footer-bottom .footer-bottom-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.main-footer .footer-bottom .footer-bottom-sep {
    color: #64748b;
    margin: 0 10px;
}

.back-to-top-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background-color: var(--primary-red);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn:hover {
    background-color: var(--primary-red-hover);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 991.98px) {
    .header-brand-ad-area {
        padding: 16px 0;
    }
    .header-ad-banner {
        margin-top: 14px;
        height: auto;
    }
    .hero-main-card {
        height: 380px;
        margin-bottom: 20px;
    }
    .hero-main-card .hero-title {
        font-size: 1.45rem;
    }
    .main-navbar .nav-link {
        padding: 8px 12px !important;
    }
}

@media (max-width: 575.98px) {
    .brand-logo-img {
        max-height: 52px;
        margin: 0 auto;
    }
    .brand-logo-text {
        font-size: 1.8rem;
    }
    .hero-main-card {
        height: 320px;
    }
    .hero-main-card .hero-title {
        font-size: 1.25rem;
    }
    .hero-main-card .hero-excerpt {
        display: none;
    }
    .hero-stack-item .stack-thumb {
        width: 100px;
        height: 70px;
    }
    .subscribe-section {
        padding: 24px 18px;
    }
}

/* ============================================================
   COOKIE CONSENT POPUP COMPONENT (Manageable via Admin Settings)
   ============================================================ */
.cookie-consent-popup {
    position: fixed;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    transform: translateY(120%);
    opacity: 0;
}
.cookie-consent-popup.cookie-consent-visible {
    transform: translateY(0);
    opacity: 1;
}
.cookie-consent-popup.cookie-consent-hide {
    transform: translateY(120%);
    opacity: 0;
}
.cookie-consent-popup.position-bottom_banner {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 16px 0;
}
.cookie-consent-popup.position-bottom_right {
    bottom: 24px;
    right: 24px;
    max-width: 440px;
    width: calc(100% - 48px);
    border-radius: 16px;
    padding: 20px 22px;
}
.cookie-consent-popup.position-bottom_left {
    bottom: 24px;
    left: 24px;
    max-width: 440px;
    width: calc(100% - 48px);
    border-radius: 16px;
    padding: 20px 22px;
}
.cookie-consent-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cookie-consent-text {
    font-size: 0.875rem;
    color: #cbd5e1;
    line-height: 1.55;
    margin-bottom: 0;
}
.cookie-consent-text a {
    color: #f87171;
    text-decoration: underline;
}
.cookie-consent-text a:hover {
    color: #fca5a5;
}
.cookie-btn-accept {
    background: #c91414;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 8px 18px;
    border-radius: 8px;
    border: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.cookie-btn-accept:hover {
    background: #a50f0f;
    color: #ffffff;
    transform: translateY(-2px);
}
.cookie-btn-decline {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
    white-space: nowrap;
}
.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

/* ==========================================================================
   LEGAL / POLICY PAGES TYPOGRAPHY & CONTRAST
   ========================================================================== */
.legal-page {
    background-color: #f8fafc;
}

.legal-content {
    color: #0f172a !important;
    font-size: 1.0625rem;
    line-height: 1.85;
}

.legal-content p {
    color: #1e293b !important;
    margin-bottom: 1.35rem;
    font-size: 1.0625rem;
    line-height: 1.85;
}

.legal-content h1,
.legal-content h2,
.legal-content h3,
.legal-content h4 {
    color: #0f172a !important;
    font-weight: 700 !important;
    margin-top: 2.25rem;
    margin-bottom: 0.9rem;
    letter-spacing: -0.015em;
}

.legal-content h3 {
    font-size: 1.35rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.5rem;
}

.legal-content ul,
.legal-content ol {
    color: #1e293b !important;
    margin-bottom: 1.5rem;
    padding-left: 1.75rem;
}

.legal-content li {
    margin-bottom: 0.6rem;
    color: #1e293b !important;
    line-height: 1.75;
}

.legal-content strong,
.legal-content b {
    color: #0f172a !important;
    font-weight: 700;
}

.legal-content a {
    color: var(--primary-red) !important;
    text-decoration: underline;
    font-weight: 600;
}

.legal-content a:hover {
    color: var(--hover-red) !important;
}

/* ==========================================================================
   PAGINATION STYLING (Center-aligned, Theme Branded)
   ========================================================================== */
.pagination {
    gap: 5px;
}

.pagination .page-link {
    color: #334155;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px !important;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
}

.pagination .page-link:hover {
    color: var(--primary-red, #c91414);
    background-color: #fef2f2;
    border-color: #fca5a5;
    box-shadow: 0 2px 4px rgba(201, 20, 20, 0.08);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-red, #c91414) !important;
    border-color: var(--primary-red, #c91414) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(201, 20, 20, 0.25);
}

.pagination .page-item.disabled .page-link {
    color: #94a3b8;
    background-color: #f8fafc;
    border-color: #e2e8f0;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.7;
}

/* Sidebar Right Panel Ad (from advertisement_v.php?tab=panel) */
.sidebar-ad-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-ad-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
}

.sidebar-ad-box {
    width: 100%;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-ad-box a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.sidebar-ad-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.sidebar-ad-box:hover img {
    opacity: 0.96;
    transform: scale(1.008);
}

/* ==========================================================================
   ARTICLE BODY CONTENT: RICH MEDIA & EMBEDS
   ========================================================================== */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
}

.article-content figure {
    margin: 20px 0;
    max-width: 100%;
}

.article-content figure img {
    margin-bottom: 6px;
}

.article-content figcaption {
    font-size: 0.85rem;
    color: #64748b;
    font-style: italic;
    line-height: 1.4;
}

.article-content .video-embed-container,
.article-content .fb-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 standard */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin: 24px 0;
    background: #0f172a;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.article-content .video-embed-container iframe,
.article-content .fb-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
}

.article-content .mp4-video-wrapper {
    width: 100%;
    margin: 24px 0;
    background: #000000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.article-content .mp4-video-wrapper video {
    width: 100% !important;
    max-height: 560px;
    background: #000000;
    display: block;
    border-radius: 8px;
}

/* ========================================================
   Frontier In-Body Photo Gallery & Lightbox
   ======================================================== */
.article-inbody-gallery {
    margin: 30px 0;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.inbody-gallery-title {
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
    border-left: 4px solid #7c3aed;
    padding-left: 12px;
    font-size: 1.15rem;
}
.inbody-gallery-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none !important;
    background: #ffffff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.inbody-gallery-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}
.inbody-gallery-thumb {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0f172a;
}
.inbody-gallery-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.inbody-gallery-link:hover .inbody-gallery-thumb img {
    transform: scale(1.06);
}
.inbody-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 22px;
    transition: opacity 0.25s ease;
}
.inbody-gallery-link:hover .inbody-gallery-overlay {
    opacity: 1;
}
.inbody-gallery-caption {
    padding: 8px 6px 4px;
    font-size: 12px;
    color: #64748b;
    text-align: center;
    font-style: italic;
    line-height: 1.35;
}

/* Lightbox Modal */
.frontier-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}
.frontier-lightbox .fl-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 28, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.frontier-lightbox .fl-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
    padding: 15px;
    box-sizing: border-box;
}
.frontier-lightbox .fl-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    padding: 10px 15px;
    font-size: 15px;
}
.frontier-lightbox .fl-counter {
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
}
.frontier-lightbox .fl-title {
    font-weight: 600;
    color: #e2e8f0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    max-width: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.frontier-lightbox .fl-close {
    background: rgba(255, 255, 255, 0.14);
    border: none;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.frontier-lightbox .fl-close:hover {
    background: rgba(239, 68, 68, 0.9);
    transform: rotate(90deg);
}
.frontier-lightbox .fl-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    min-height: 0;
}
.frontier-lightbox .fl-img-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    max-width: 90vw;
    position: relative;
    margin: 0 auto;
}
.frontier-lightbox .fl-img-wrap img {
    max-height: 78vh;
    max-width: 86vw;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.frontier-lightbox .fl-nav {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    font-size: 42px;
    width: 52px;
    height: 64px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}
.frontier-lightbox .fl-nav:hover {
    background: rgba(124, 58, 237, 0.9);
    transform: scale(1.08);
}
.frontier-lightbox .fl-caption-bar {
    text-align: center;
    padding: 10px 20px;
    color: #f1f5f9;
}
.frontier-lightbox .fl-caption-text {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #cbd5e1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.frontier-lightbox .fl-spinner {
    position: absolute;
    color: #a855f7;
    font-size: 36px;
    display: none;
}

/* Hide admin in-editor controls on the public website */
.inbody-gallery-editor-bar {
    display: none !important;
}

/* In-Editor Gallery Protection: Disables unwanted Summernote resize handles and selection on thumbnails */
.note-editable .article-inbody-gallery {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
}
.note-editable .article-inbody-gallery img {
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
}
.note-editable .article-inbody-gallery .inbody-gallery-thumb,
.note-editable .article-inbody-gallery .inbody-gallery-link,
.note-editable .article-inbody-gallery .inbody-gallery-card,
.note-editable .article-inbody-gallery .inbody-gallery-overlay {
    pointer-events: none !important;
}
.note-editable .article-inbody-gallery .inbody-gallery-editor-bar,
.note-editable .article-inbody-gallery .inbody-gallery-editor-bar * {
    pointer-events: auto !important;
}

/* Public Website: Guarantee all gallery links, thumbnails, cards, and overlay icons are fully clickable */
body:not(.admin-body) .article-inbody-gallery img,
body:not(.admin-body) .article-inbody-gallery .inbody-gallery-thumb,
body:not(.admin-body) .article-inbody-gallery .inbody-gallery-link,
body:not(.admin-body) .article-inbody-gallery .inbody-gallery-card,
body:not(.admin-body) .article-inbody-gallery .inbody-gallery-overlay,
body:not(.admin-body) .article-attached-gallery a,
body:not(.admin-body) .article-attached-gallery img,
.article-content .article-inbody-gallery img,
.article-content .article-inbody-gallery .inbody-gallery-thumb,
.article-content .article-inbody-gallery .inbody-gallery-link,
.article-content .article-inbody-gallery .inbody-gallery-card,
.article-content .article-inbody-gallery .inbody-gallery-overlay,
.article-attached-gallery a,
.article-attached-gallery img {
    pointer-events: auto !important;
    cursor: pointer !important;
}



