/* ============================================================
   E-ITM (International Textile Market) Stylesheet
   Universal font family: "Open Sans", serif
   ============================================================ */

/* CSS RESET & BOX SIZING */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    font-family: "Open Sans", serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333333;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a,
input,
button,
select,
textarea,
div,
li,
ul {
    font-family: "Open Sans", serif;
}

/* Reset font-family inheritance so FontAwesome icons render */
.fa,
.fas,
.far,
.fal,
.fad,
.fab,
.fa-solid,
.fa-regular,
.fa-brands {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

.fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
}

.fa-solid {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease-in-out;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* CONTAINER */
.site-container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ============================================================
   1. TOP BAR (Dark strip)
   ============================================================ */
.top-bar {
    background-color: #212121;
    color: #d1d5db;
    font-size: 11.5px;
    border-bottom: 1px solid #2d2d2d;
    padding: 6px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    white-space: nowrap;
}

.top-date {
    color: #e5e7eb;
    font-weight: 500;
}

.top-latest-label {
    color: #9ca3af;
    font-weight: 600;
}

.ticker-wrap {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 580px;
}

.top-news-link {
    color: #38bdf8;
    font-size: 11.5px;
}

.top-news-link:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 14px;
}

.social-icon {
    color: #9ca3af;
    font-size: 12.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.social-icon:hover {
    color: #ffffff;
}

.social-icon:hover .fa-facebook-f {
    color: #3b82f6;
}

.social-icon:hover .fa-x-twitter {
    color: #ffffff;
}

.social-icon:hover .fa-instagram {
    color: #f43f5e;
}

.social-icon:hover .fa-pinterest-p {
    color: #ef4444;
}

.social-icon:hover .fa-youtube {
    color: #ef4444;
}

/* ============================================================
   2. MAIN WHITE BRAND HEADER & LOGO
   ============================================================ */
.main-header {
    background-color: #ffffff;
    padding: 16px 0;
    color: #1f2937;
    border-bottom: none;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.brand-logo-link:hover {
    opacity: 0.92;
}

.main-site-logo {
    display: block;
    height: 46px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.brand-block {
    display: none;
}

.mobile-nav-toggle {
    display: none;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    border-radius: 6px;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   3. ACCENT SEPARATOR STRIP
   ============================================================ */
.blue-separator {
    display: none;
}

/* ============================================================
   4. NAVIGATION BAR (Dark charcoal / black)
   ============================================================ */
.main-navbar {
    background-color: #212121;
    border-bottom: 1px solid #1a1a1a;
    position: relative;
    z-index: 50;
    min-height: 54px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 20px;
    padding-right: 20px;
    min-height: 54px;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 20px;
    padding: 12px 0;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: 50px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-item {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* Nav Link Styling & Hover Effects */
.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #ffffff;
    white-space: nowrap;
    text-transform: uppercase;
    transition: all 0.25s ease;
    line-height: 1;
    overflow: hidden;
    border-radius: 4px;
    text-decoration: none;
}

/* Desktop Active Menu Item - Solid Full Background Accent */
.nav-item.active .nav-link {
    background-color: #005a8c;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 90, 140, 0.45);
    border-radius: 4px;
    transform: none;
    text-shadow: none;
}

/* Desktop Active Menu - Turn off bottom underline and hover glow */
.nav-item.active .nav-link::before,
.nav-item.active .nav-link::after {
    display: none !important;
}

/* Background subtle glow pill effect on hover (for non-active items) */
.nav-link::before {
    content: '';
    position: absolute;
    inset: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1;
}

.nav-link:hover {
    color: #ffffff;
    background-color: #005a8c;
}

.nav-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

.home-icon-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    line-height: 1;
    overflow: visible;
    border-radius: 4px;
}

.nav-item.active .home-icon-link {
    background-color: #005a8c;
    box-shadow: 0 2px 8px rgba(0, 90, 140, 0.45);
}

.home-exact-svg {
    width: 24px;
    height: 24px;
    display: block;
    fill: #ffffff !important;
    transition: transform 0.2s ease;
}

.home-icon-link:hover .home-exact-svg,
.nav-item.active .home-icon-link .home-exact-svg {
    transform: scale(1.08);
}

            /* ============================================================
   5. HOMEPAGE AD GRID LAYOUT (Exact 2-column distribution)
   ============================================================ */
            .portal-main-content {
                background-color: #f8fafc;
                padding: 24px 0 36px 0;
            }

            .ad-portal-layout {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 18px;
                align-items: start;
            }

            .ad-column {
                display: flex;
                flex-direction: column;
                gap: 16px;
            }

            /* Ad card styles */
            .ad-card {
                background: #ffffff;
                border-radius: 4px;
                overflow: hidden;
                box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
                border: 1px solid #e5e7eb;
                transition: transform 0.2s ease, box-shadow 0.2s ease;
            }

            .ad-card:hover {
                transform: translateY(-2px);
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
            }

            .ad-card img {
                width: 100%;
                height: auto;
                display: block;
            }

            .ad-pair-grid {
                display: grid;
                grid-template-columns: 1fr 1.35fr;
                gap: 12px;
            }

            .ad-pair-grid-equal {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 12px;
            }

            /* ============================================================
   5. CATEGORY ARCHIVE GRID (3 Cards Per Row, 5 Rows = 15/Page)
   ============================================================ */
            .category-grid-container {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: 24px;
                margin-bottom: 36px;
            }

            .category-article-card {
                background: #ffffff;
                border: 1px solid #eef2f6;
                border-radius: 6px;
                overflow: hidden;
                box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
                display: flex;
                flex-direction: column;
                max-width: 400px;
                width: 100%;
                margin: 0 auto;
                transition: transform 0.2s ease, box-shadow 0.2s ease;
            }

            .category-article-card:hover {
                transform: translateY(-3px);
                box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
            }

            /* Card Thumbnail with 160:89 Aspect Ratio & Max Render Width 400px */
            .card-thumbnail-box {
                position: relative;
                width: 100%;
                max-width: 400px;
                aspect-ratio: 160 / 89;
                background-color: #f1f5f9;
                overflow: hidden;
                margin: 0 auto;
            }

            .card-thumbnail-box img {
                width: 100%;
                max-width: 400px;
                height: 100%;
                aspect-ratio: 160 / 89;
                object-fit: cover;
                display: block;
                transition: transform 0.3s ease;
            }

            .category-article-card:hover .card-thumbnail-box img {
                transform: scale(1.04);
            }

            .card-thumbnail-fallback {
                width: 100%;
                max-width: 400px;
                height: 100%;
                aspect-ratio: 160 / 89;
                display: flex;
                align-items: center;
                justify-content: center;
                background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
                color: #94a3b8;
                font-size: 28px;
            }

            /* Category Badge (Overlay at bottom-left of thumbnail) */
            .card-cat-badge {
                position: absolute;
                bottom: 12px;
                left: 12px;
                background-color: #0284c7;
                color: #ffffff;
                font-size: 11px;
                font-weight: 700;
                text-transform: uppercase;
                letter-spacing: 0.5px;
                padding: 4px 10px;
                border-radius: 3px;
                z-index: 2;
                text-decoration: none;
                box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
            }

            .card-cat-badge:hover {
                background-color: #0369a1;
                color: #ffffff;
            }

            /* Card Body */
            .card-body-content {
                padding: 16px 18px 20px 18px;
                display: flex;
                flex-direction: column;
                flex: 1;
            }

            /* Card Meta (Date & Author) */
            .card-meta-row {
                display: flex;
                align-items: center;
                gap: 14px;
                font-size: 12px;
                color: #64748b;
                margin-bottom: 10px;
            }

            .card-meta-row span {
                display: inline-flex;
                align-items: center;
                gap: 5px;
            }

            .card-meta-row i {
                color: #94a3b8;
                font-size: 11px;
            }

            /* Card Title */
            .card-title-head {
                font-size: 16px;
                font-weight: 700;
                line-height: 1.4;
                margin: 0 0 16px 0;
                flex: 1;
            }

            .card-title-head a {
                color: #0f172a;
                text-decoration: none;
                transition: color 0.15s ease;
                display: -webkit-box;
                -webkit-line-clamp: 3;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }

            .card-title-head a:hover {
                color: #0284c7;
            }

            /* Card Read More Button */
            .card-readmore-btn {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                align-self: flex-start;
                background-color: #0284c7;
                color: #ffffff !important;
                padding: 7px 16px;
                font-size: 12.5px;
                font-weight: 600;
                border-radius: 4px;
                text-decoration: none;
                transition: background-color 0.2s ease, transform 0.15s ease;
            }

            .card-readmore-btn:hover {
                background-color: #0369a1;
                transform: translateY(-1px);
            }

            /* Custom Grid Numeric Pagination */
            .pagination-wrapper {
                display: flex;
                justify-content: center;
                align-items: center;
                gap: 6px;
                margin-top: 10px;
                padding: 20px 0;
                flex-wrap: wrap;
            }

            .pagination-wrapper a,
            .pagination-wrapper span {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                min-width: 38px;
                height: 38px;
                padding: 0 12px;
                border-radius: 4px;
                border: 1px solid #cbd5e1;
                background: #ffffff;
                color: #334155;
                font-size: 13px;
                font-weight: 600;
                text-decoration: none;
                transition: all 0.15s ease;
            }

            .pagination-wrapper a:hover {
                background-color: #0284c7;
                border-color: #0284c7;
                color: #ffffff;
            }

            .pagination-wrapper .current-page {
                background-color: #005a8c;
                border-color: #005a8c;
                color: #ffffff;
            }

            .pagination-wrapper .dots {
                border: none;
                background: transparent;
                color: #94a3b8;
            }

            @media (max-width: 991px) {
                .category-grid-container {
                    grid-template-columns: repeat(2, 1fr);
                    gap: 18px;
                }
            }

            @media (max-width: 600px) {
                .category-grid-container {
                    grid-template-columns: 1fr;
                }
            }

            /* Archive Title Banner */
            .header-post-title-container {
                background-color: #f8f9fa;
                border-bottom: 1px solid #e5e7eb;
                padding: 16px 0;
                margin-bottom: 24px;
            }

            .page-header {
                border: none;
                padding: 0;
                margin: 0;
            }

            .page-title {
                font-size: 19px;
                font-weight: 700;
                color: #111827;
                margin: 0;
                line-height: 1.2;
            }

            .page-title span {
                color: #005a8c;
                font-weight: 700;
            }

            /* Main Site Content Grid */
            #content.site-content {
                background-color: #ffffff;
                padding-bottom: 40px;
            }

            .category-main-wrap {
                width: 100%;
            }

            /* Primary Article Feed */
            #primary.content-area {
                width: 100%;
            }

            .article-container {
                display: flex;
                flex-direction: column;
            }

            /* Post Article Container */
            article.post.hentry {
                border-bottom: 1px solid #e5e7eb;
                padding-bottom: 24px;
                margin-bottom: 24px;
                display: flex;
                flex-direction: row;
                gap: 20px;
            }

            article.post.hentry:last-child {
                border-bottom: none;
                margin-bottom: 12px;
            }

            /* Post Featured Thumbnail */
            .post-featured-image {
                width: 260px;
                min-width: 260px;
                height: 175px;
                overflow: hidden;
                margin: 0;
                border-radius: 2px;
                background-color: #f3f4f6;
            }

            .post-featured-image img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                transition: opacity 0.2s ease, transform 0.25s ease;
            }

            .post-featured-image a:hover img {
                opacity: 0.9;
                transform: scale(1.03);
            }

            /* Article Content Body */
            .article-content {
                flex: 1;
                display: flex;
                flex-direction: column;
            }

            .entry-header {
                margin-bottom: 6px;
            }

            .entry-title {
                font-size: 17px;
                font-weight: 700;
                line-height: 1.35;
                margin: 0 0 6px 0;
            }

            .entry-title a {
                color: #1f2937;
                transition: color 0.15s ease;
            }

            .entry-title a:hover {
                color: #005a8c;
            }

            /* Entry Meta Bar (Date, Author, Comments) */
            .entry-meta-bar {
                display: flex;
                align-items: center;
                flex-wrap: wrap;
                gap: 14px;
                font-size: 11.5px;
                color: #6b7280;
                margin-bottom: 10px;
            }

            .entry-meta-bar span {
                display: inline-flex;
                align-items: center;
                gap: 4px;
            }

            .entry-meta-bar i {
                color: #9ca3af;
                font-size: 11px;
            }

            .entry-meta-bar a {
                color: #6b7280;
            }

            .entry-meta-bar a:hover {
                color: #005a8c;
            }

            /* Post Summary & Read More */
            .entry-summary {
                font-size: 13px;
                line-height: 1.6;
                color: #4b5563;
                margin-bottom: 14px;
            }

            .entry-summary p {
                margin: 0;
            }

            .entry-readmore {
                margin-top: auto;
            }

            .more-link {
                display: inline-block;
                background-color: #005a8c;
                color: #ffffff !important;
                padding: 6px 14px;
                font-size: 11.5px;
                font-weight: 600;
                text-transform: uppercase;
                letter-spacing: 0.3px;
                border-radius: 2px;
                transition: background-color 0.2s ease;
            }

            .more-link:hover {
                background-color: #0284c7;
            }

            /* Authentic ColorMag / WordPress Archive Pagination */
            ul.default-wp-page {
                list-style: none;
                margin: 15px 0 0 0;
                padding: 16px 0 0 0;
                border-top: 1px solid #e5e7eb;
                display: flex;
                justify-content: space-between;
                align-items: center;
            }

            ul.default-wp-page li.previous a,
            ul.default-wp-page li.next a {
                display: inline-flex;
                align-items: center;
                gap: 6px;
                background-color: #212121;
                color: #ffffff;
                font-size: 12px;
                font-weight: 600;
                padding: 8px 16px;
                border-radius: 3px;
                transition: background-color 0.2s ease;
            }

            ul.default-wp-page li.previous a:hover,
            ul.default-wp-page li.next a:hover {
                background-color: #005a8c;
            }

            /* Secondary Widget Sidebar */
            #secondary.widget-area {
                display: flex;
                flex-direction: column;
                gap: 24px;
            }

            .widget {
                background: #ffffff;
                margin-bottom: 0;
            }

            /* Widget Titles */
            .widget-title {
                position: relative;
                font-size: 14px;
                font-weight: 700;
                text-transform: uppercase;
                color: #1f2937;
                margin-bottom: 16px;
                padding-bottom: 8px;
                border-bottom: 2px solid #e5e7eb;
            }

            .widget-title span {
                position: relative;
                display: inline-block;
                padding-bottom: 8px;
                margin-bottom: -10px;
                border-bottom: 2px solid #005a8c;
            }

            /* Sidebar Ads */
            .widget_ad .widget-ad-wrap {
                background: #ffffff;
                border: 1px solid #e5e7eb;
                border-radius: 3px;
                overflow: hidden;
                transition: transform 0.2s ease, box-shadow 0.2s ease;
            }

            .widget_ad .widget-ad-wrap:hover {
                transform: translateY(-2px);
                box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
            }

            .widget_ad img {
                width: 100%;
                height: auto;
                display: block;
            }

            /* Categories Widget */
            .widget_categories ul {
                list-style: none;
                margin: 0;
                padding: 0;
            }

            .widget_categories li {
                border-bottom: 1px dotted #e5e7eb;
                padding: 7px 0;
            }

            .widget_categories li:last-child {
                border-bottom: none;
            }

            .widget_categories li a {
                color: #374151;
                font-size: 13px;
                transition: color 0.15s ease, padding-left 0.15s ease;
                display: block;
            }

            .widget_categories li a:hover,
            .widget_categories li.current-cat a {
                color: #005a8c;
                font-weight: 700;
                padding-left: 4px;
            }

            @media (max-width: 900px) {
                .category-main-wrap {
                    grid-template-columns: 1fr;
                }

                article.post.hentry {
                    flex-direction: column;
                }

                .post-featured-image {
                    width: 100%;
                    min-width: 100%;
                    height: 220px;
                }
            }

            /* ============================================================
   6. UNIVERSAL FOOTER
   ============================================================ */
            .main-footer {
                background-color: #27262b;
                color: #9ca3af;
                padding: 14px 0;
                font-size: 11px;
                border-top: 1px solid #374151;
            }

            .footer-content {
                display: flex;
                justify-content: space-between;
                align-items: center;
                flex-wrap: wrap;
                gap: 10px;
            }

            .copyright-text {
                margin: 0;
                color: #9ca3af;
                letter-spacing: 0.2px;
            }

            .footer-links-nav {
                display: flex;
                align-items: center;
                flex-wrap: wrap;
                gap: 12px;
            }

            .footer-page-link {
                color: #cbd5e1;
                font-size: 12px;
                font-weight: 500;
                text-decoration: none;
                transition: color 0.2s ease;
            }

            .footer-page-link:hover {
                color: #ffffff;
                text-decoration: underline;
            }

            .footer-link-sep {
                color: #64748b;
                font-size: 11px;
            }

            .footer-social-icons {
                display: flex;
                align-items: center;
                gap: 14px;
            }

            .f-social-icon {
                color: #6b7280;
                font-size: 12px;
                transition: color 0.2s;
            }

            .f-social-icon:hover {
                color: #ffffff;
            }

            /* ============================================================
   SINGLE ARTICLE DETAILS PAGE (70% Main + 30% Related Sidebar)
   ============================================================ */
            .article-breadcrumb-bar {
                background-color: #f8fafc;
                border-bottom: 1px solid #e2e8f0;
                padding: 12px 0;
                font-size: 13px;
            }

            .article-breadcrumbs {
                list-style: none;
                display: flex;
                align-items: center;
                flex-wrap: wrap;
                gap: 8px;
                margin: 0;
                padding: 0;
                color: #64748b;
            }

            .article-breadcrumbs li a {
                color: #0284c7;
                text-decoration: none;
                transition: color 0.2s;
            }

            .article-breadcrumbs li a:hover {
                color: #0369a1;
                text-decoration: underline;
            }

            .article-breadcrumbs li.active {
                color: #1e293b;
                font-weight: 600;
                white-space: normal;
                word-break: break-word;
            }

            .article-detail-layout {
                display: grid;
                grid-template-columns: 7fr 3fr;
                gap: 32px;
                align-items: start;
                padding: 30px 0 60px 0;
            }

            /* 70% Left Main Content */
            .article-detail-main {
                min-width: 0;
                /* Prevents flex/grid overflow */
            }

            .single-article-card {
                background: #ffffff;
                border: 1px solid #e2e8f0;
                border-radius: 6px;
                overflow: hidden;
                box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
            }

            .single-featured-image-wrap {
                width: 100%;
                background-color: #ffffff;
                border-bottom: 1px solid #f1f5f9;
                text-align: center;
            }

            .single-featured-image-wrap img {
                width: 100%;
                height: auto;
                max-height: 520px;
                object-fit: contain;
                display: block;
                margin: 0 auto;
            }

            .single-article-body {
                padding: 24px 28px;
            }

            .single-article-title {
                font-size: 26px;
                font-weight: 700;
                line-height: 1.35;
                color: #0f172a;
                margin-bottom: 16px;
                word-break: break-word;
            }

            .single-article-meta {
                display: flex;
                align-items: center;
                flex-wrap: wrap;
                gap: 16px;
                padding-bottom: 20px;
                margin-bottom: 24px;
                border-bottom: 1px solid #e2e8f0;
                font-size: 13px;
                color: #64748b;
            }

            .single-cat-badge {
                background-color: #0284c7;
                color: #ffffff;
                padding: 3px 10px;
                border-radius: 3px;
                font-size: 11.5px;
                font-weight: 600;
                text-transform: uppercase;
                letter-spacing: 0.5px;
            }

            .single-article-meta i {
                margin-right: 4px;
                color: #94a3b8;
            }

            /* Embedded PDF Section */
            .single-pdf-embed-section {
                margin-top: 10px;
            }

            .pdf-action-header {
                display: flex;
                align-items: center;
                justify-content: space-between;
                flex-wrap: wrap;
                gap: 12px;
                background: #f8fafc;
                border: 1px solid #e2e8f0;
                border-bottom: none;
                border-radius: 6px 6px 0 0;
                padding: 12px 18px;
            }

            .pdf-action-header .pdf-label {
                font-size: 13.5px;
                color: #334155;
            }

            .pdf-popout-btn {
                display: inline-flex;
                align-items: center;
                gap: 6px;
                background-color: #0284c7;
                color: #ffffff;
                padding: 6px 14px;
                font-size: 12.5px;
                font-weight: 600;
                border-radius: 4px;
                text-decoration: none;
                transition: background-color 0.2s;
            }

            .pdf-popout-btn:hover {
                background-color: #0369a1;
                color: #ffffff;
            }

            .pdf-viewer-frame-box {
                width: 100%;
                border: 1px solid #cbd5e1;
                border-radius: 6px;
                background: #525659;
                position: relative;
                overflow: hidden;
            }

            .pdf-embed-frame {
                width: 100%;
                height: 900px;
                border: none;
                display: block;
                background: #525659;
            }

            /* ============================================================
   PREVIOUS & NEXT ARTICLE NAVIGATION (Post-PDF)
   ============================================================ */
            .article-pagination-nav {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 20px;
                margin-top: 36px;
                padding-top: 28px;
                border-top: 1px solid #e2e8f0;
            }

            .article-nav-card {
                display: flex;
                flex-direction: column;
                padding: 16px 18px;
                background: #f8fafc;
                border: 1px solid #e2e8f0;
                border-radius: 8px;
                text-decoration: none;
                transition: all 0.25s ease;
                min-height: 90px;
                justify-content: center;
            }

            .article-nav-card:hover {
                background: #ffffff;
                border-color: #0284c7;
                box-shadow: 0 4px 12px rgba(2, 132, 199, 0.1);
                transform: translateY(-2px);
            }

            .article-nav-card.nav-empty {
                border: none;
                background: transparent;
                pointer-events: none;
                box-shadow: none;
            }

            .nav-card-label {
                font-size: 11.5px;
                font-weight: 700;
                text-transform: uppercase;
                letter-spacing: 0.6px;
                color: #0284c7;
                margin-bottom: 8px;
                display: flex;
                align-items: center;
                gap: 6px;
            }

            .article-nav-card.nav-next .nav-card-label {
                justify-content: flex-end;
            }

            .nav-card-body {
                display: flex;
                align-items: center;
                gap: 12px;
            }

            .article-nav-card.nav-next .nav-card-body {
                justify-content: flex-end;
                text-align: right;
            }

            .nav-card-thumb {
                width: 60px;
                min-width: 60px;
                aspect-ratio: 160 / 89;
                border-radius: 4px;
                overflow: hidden;
                background: #e2e8f0;
                flex-shrink: 0;
            }

            .nav-card-thumb img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }

            .nav-card-title {
                font-size: 13.5px;
                font-weight: 600;
                color: #1e293b;
                line-height: 1.35;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
                transition: color 0.2s;
            }

            .article-nav-card:hover .nav-card-title {
                color: #0284c7;
            }

            @media (max-width: 600px) {
                .article-pagination-nav {
                    grid-template-columns: 1fr;
                }

                .article-nav-card.nav-next .nav-card-label,
                .article-nav-card.nav-next .nav-card-body {
                    justify-content: flex-start;
                    text-align: left;
                }
            }

            /* 30% Right Sidebar: Related Articles */
            .article-detail-sidebar {
                min-width: 0;
            }

            .related-articles-box {
                background: #ffffff;
                border: 1px solid #e2e8f0;
                border-radius: 6px;
                padding: 18px 20px;
                box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
            }

            .sidebar-block-header {
                border-bottom: 2px solid #0284c7;
                padding-bottom: 10px;
                margin-bottom: 16px;
            }

            .sidebar-block-header h3 {
                font-size: 17px;
                font-weight: 700;
                color: #0f172a;
                margin: 0;
                display: flex;
                align-items: flex-start;
                gap: 8px;
                line-height: 1.35;
            }

            .sidebar-block-header h3 i {
                margin-top: 3px;
                flex-shrink: 0;
            }

            .related-cards-list {
                display: flex;
                flex-direction: column;
                gap: 16px;
            }

            .related-article-card {
                display: flex;
                gap: 12px;
                padding-bottom: 14px;
                border-bottom: 1px solid #f1f5f9;
            }

            .related-article-card:last-child {
                padding-bottom: 0;
                border-bottom: none;
            }

            .related-card-thumb {
                width: 110px;
                min-width: 110px;
                aspect-ratio: 160 / 89;
                border-radius: 4px;
                overflow: hidden;
                background-color: #f1f5f9;
            }

            .related-card-thumb a {
                display: block;
                width: 100%;
                height: 100%;
            }

            .related-card-thumb img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                transition: transform 0.25s ease;
            }

            .related-card-thumb a:hover img {
                transform: scale(1.04);
            }

            .related-card-content {
                flex: 1;
                min-width: 0;
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                align-items: flex-start;
                gap: 8px;
            }

            .related-card-title {
                font-size: 13.5px;
                line-height: 1.4;
                font-weight: 600;
                color: #1e293b;
                margin: 0;
                word-break: break-word;
            }

            .related-card-title a {
                color: #1e293b;
            }

            .related-card-title a:hover {
                color: #0284c7;
            }

            @media (max-width: 900px) {
                .article-detail-layout {
                    grid-template-columns: 1fr;
                }

                .pdf-embed-frame {
                    height: 600px;
                }
            }

            /* ============================================================
   RESPONSIVE DESIGN & MOBILE FLYOUT CATEGORY MENU
   ============================================================ */
            /* Desktop defaults for flyout elements */
            .mobile-nav-toggle {
                display: none;
                background: transparent;
                border: none;
                color: #ffffff;
                font-size: 24px;
                padding: 6px 10px;
                cursor: pointer;
                line-height: 1;
                border-radius: 4px;
                transition: background-color 0.2s, transform 0.15s ease;
            }

            .mobile-nav-toggle:active {
                transform: scale(0.95);
            }

            .flyout-header {
                display: none;
            }

            .mobile-flyout-overlay {
                display: none;
            }

            .mobile-home-text {
                display: none;
            }

            .nav-flyout-drawer {
                display: flex;
                align-items: center;
                width: 100%;
            }

            @media (max-width: 991px) {

                /* Main Red Header: Place Logo & Hamburger side by side */
                .header-inner {
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    padding-top: 4px;
                    padding-bottom: 4px;
                }

                .mobile-nav-toggle {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    background: rgba(0, 0, 0, 0.2);
                    border: 1px solid rgba(255, 255, 255, 0.25);
                }

                .mobile-nav-toggle:hover {
                    background: rgba(0, 0, 0, 0.35);
                }

                /* Hide desktop horizontal nav bar in mobile/tablet */
                .main-navbar {
                    min-height: 0;
                    background: transparent;
                    border-bottom: none;
                }

                .nav-container {
                    padding: 0;
                    min-height: 0;
                }

                /* Flyout Backdrop Overlay */
                .mobile-flyout-overlay {
                    display: block;
                    position: fixed;
                    top: 0;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    background: rgba(15, 23, 42, 0.65);
                    backdrop-filter: blur(2px);
                    opacity: 0;
                    visibility: hidden;
                    transition: opacity 0.3s ease, visibility 0.3s ease;
                    z-index: 9998;
                }

                .mobile-flyout-overlay.overlay-active {
                    opacity: 1;
                    visibility: visible;
                }

                /* Flyout Drawer Sliding from Left in Clean White Theme */
                .nav-flyout-drawer {
                    position: fixed;
                    top: 0;
                    left: 0;
                    right: auto;
                    width: 320px;
                    max-width: 86vw;
                    height: 100vh;
                    background-color: #ffffff;
                    /* Clean White Theme */
                    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.25);
                    z-index: 9999;
                    display: flex;
                    flex-direction: column;
                    align-items: stretch;
                    transform: translateX(-100%);
                    /* Opens from Left */
                    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
                    overflow-y: auto;
                }

                .nav-flyout-drawer.flyout-active {
                    transform: translateX(0);
                }

                /* Drawer Header */
                .flyout-header {
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    padding: 18px 20px;
                    background-color: #005a8c;
                    border-bottom: 3px solid #0284c7;
                    color: #ffffff;
                }

                .flyout-brand strong {
                    display: block;
                    font-size: 20px;
                    font-weight: 800;
                    line-height: 1.1;
                    letter-spacing: 0.5px;
                    color: #ffffff;
                }

                .flyout-brand span {
                    font-size: 11px;
                    color: rgba(255, 255, 255, 0.85);
                    font-weight: 500;
                }

                .flyout-close-btn {
                    background: rgba(0, 0, 0, 0.25);
                    border: 1px solid rgba(255, 255, 255, 0.3);
                    color: #ffffff;
                    width: 32px;
                    height: 32px;
                    border-radius: 6px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    cursor: pointer;
                    font-size: 16px;
                    transition: all 0.2s;
                }

                .flyout-close-btn:hover {
                    background: rgba(0, 0, 0, 0.5);
                }

                /* Drawer Menu Item List in White Theme */
                .nav-menu {
                    display: flex;
                    flex-direction: column;
                    width: 100%;
                    padding: 6px 0 30px 0;
                    overflow-y: auto;
                    gap: 0;
                    background-color: #ffffff;
                }

                .nav-item {
                    width: 100%;
                    border-bottom: 1px solid #f1f5f9;
                    background-color: #ffffff;
                }

                .nav-link {
                    display: flex;
                    align-items: center;
                    padding: 13px 20px;
                    font-size: 13.5px;
                    font-weight: 600;
                    color: #1e293b;
                    /* Dark charcoal text on clean white */
                    gap: 12px;
                    transition: background 0.2s, color 0.2s, padding-left 0.2s;
                    border-radius: 0;
                    letter-spacing: 0.4px;
                    text-transform: uppercase;
                    transform: none !important;
                    text-shadow: none !important;
                }

                /* Turn off desktop hover pseudo-elements in mobile flyout */
                .nav-link::before,
                .nav-link::after,
                .nav-item.active .nav-link::before,
                .nav-item.active .nav-link::after {
                    display: none !important;
                }

                .nav-link:hover {
                    background-color: #f8fafc;
                    color: #0284c7;
                    padding-left: 24px;
                    transform: none !important;
                    text-shadow: none !important;
                }

                /* Elegant, premium mobile active menu item styling */
                .nav-item.active {
                    background: #f0f9ff;
                    border-left: 4px solid #005a8c;
                }

                .nav-item.active .nav-link {
                    border-left: none;
                    background: transparent !important;
                    color: #005a8c !important;
                    font-weight: 700;
                    text-shadow: none !important;
                    transform: none !important;
                    padding-left: 18px;
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                }

                .nav-item.active .nav-link::after {
                    content: '\f054' !important;
                    display: inline-block !important;
                    font-family: 'Font Awesome 6 Free';
                    font-weight: 900;
                    font-size: 11px;
                    color: #005a8c;
                    position: static;
                    width: auto;
                    height: auto;
                    background: none;
                    box-shadow: none;
                    opacity: 0.8;
                }

                .mobile-home-text {
                    display: inline-block;
                    font-size: 13.5px;
                    font-weight: 700;
                }

                .nav-link.home-icon-link {
                    color: #005a8c;
                }

                .home-exact-svg {
                    display: none;
                }

                /* Portal & Dynamic Grid on Tablets/Mobile */
                .ad-portal-layout {
                    grid-template-columns: 1fr;
                }

                .dynamic-row {
                    grid-template-columns: 1fr !important;
                    gap: 16px !important;
                }

                /* Prevent background scroll when flyout is open */
                body.flyout-open-noscroll {
                    overflow: hidden;
                }
            }

            @media (max-width: 600px) {
                .brand-title {
                    font-size: 22px;
                }

                .brand-subtitle {
                    font-size: 9.5px;
                }

                .brand-tagline {
                    font-size: 9px;
                }

                .ad-pair-grid {
                    grid-template-columns: 1fr;
                }

                .ad-pair-grid-equal {
                    grid-template-columns: 1fr;
                }

                .dynamic-nested-row {
                    grid-template-columns: 1fr !important;
                }

                .footer-content {
                    flex-direction: column;
                    text-align: center;
                    gap: 14px;
                }
            }

            /* Mobile-only E-Magazine item inside category flyout drawer */
            .nav-item.mobile-only-emag {
                display: none;
            }

            @media (max-width: 992px) {
                .header-emag-cta {
                    display: none !important;
                    /* On mobile/tablet screens, hidden from top header - shows strictly in the flyout menu */
                }

                .nav-item.mobile-only-emag {
                    display: block !important;
                    border-top: 1px solid rgba(255, 255, 255, 0.12);
                    margin-top: 8px;
                    padding-top: 6px;
                }

                .nav-item.mobile-only-emag .nav-link {
                    color: #38bdf8 !important;
                    font-weight: 700 !important;
                    display: flex;
                    align-items: center;
                    gap: 8px;
                }
            }

            /* Header Right CTA */
            .header-emag-cta {
                margin-left: auto;
                display: flex;
                align-items: center;
            }

            .emag-header-btn {
                display: inline-flex;
                align-items: center;
                gap: 12px;
                background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.08) 100%);
                border: 1px solid rgba(255, 255, 255, 0.28);
                padding: 7px 16px 7px 12px;
                border-radius: 30px;
                text-decoration: none;
                color: #ffffff;
                box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
                transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
                position: relative;
                overflow: hidden;
            }

            .emag-header-btn:hover {
                background: #ffffff;
                color: #005a8c;
                border-color: #ffffff;
                transform: translateY(-2px);
                box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
            }

            .emag-btn-icon {
                width: 34px;
                height: 34px;
                border-radius: 50%;
                background: #ffffff;
                color: #005a8c;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                font-size: 15px;
                box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
                transition: all 0.25s ease;
            }

            .emag-header-btn:hover .emag-btn-icon {
                background: #005a8c;
                color: #ffffff;
                transform: rotate(-10deg) scale(1.05);
            }

            .emag-btn-text {
                display: flex;
                flex-direction: column;
                line-height: 1.15;
            }

            .emag-btn-badge {
                font-size: 9px;
                font-weight: 700;
                letter-spacing: 0.8px;
                color: #38bdf8;
                text-transform: uppercase;
                transition: color 0.2s;
            }

            .emag-header-btn:hover .emag-btn-badge {
                color: #0284c7;
            }

            .emag-btn-title {
                font-size: 13.5px;
                font-weight: 800;
                letter-spacing: 0.4px;
                display: flex;
                align-items: center;
                gap: 4px;
            }

            .emag-btn-title i {
                font-size: 11px;
                transition: transform 0.2s ease;
            }

            .emag-header-btn:hover .emag-btn-title i {
                transform: translateX(3px);
            }

            /* E-Magazine Archive Top Header */
            .emag-archive-header {
                background: #ffffff;
                border-bottom: 3px solid #005a8c;
                padding: 24px 28px;
                border-radius: 8px 8px 0 0;
                margin-bottom: 24px;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            }

            .emag-header-badge {
                display: inline-flex;
                align-items: center;
                gap: 6px;
                background: #e0f2fe;
                color: #005a8c;
                padding: 4px 10px;
                border-radius: 4px;
                font-size: 11px;
                font-weight: 700;
                text-transform: uppercase;
                letter-spacing: 0.5px;
                margin-bottom: 8px;
            }

            .emag-archive-title {
                font-size: 24px;
                font-weight: 800;
                color: #0f172a;
                margin: 0 0 6px 0;
                line-height: 1.25;
            }

            .emag-archive-subtitle {
                font-size: 13.5px;
                color: #64748b;
                margin: 0;
                line-height: 1.5;
                max-width: 780px;
            }

            /* 4 in One Row Grid (4 Columns x 5 Rows = 20 Count) */
            .emag-grid-4col {
                display: grid;
                grid-template-columns: repeat(4, 1fr);
                gap: 22px;
                margin-bottom: 30px;
            }

            /* Magazine Card */
            .emag-card {
                background: #ffffff;
                border: 1px solid #e2e8f0;
                border-radius: 8px;
                overflow: hidden;
                display: flex;
                flex-direction: column;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
                transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
                position: relative;
            }

            .emag-card:hover {
                transform: translateY(-4px);
                box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
                border-color: #cbd5e1;
            }

            /* Cover Image Aspect Ratio 300x400 (3:4 ratio) */
            .emag-card-cover-wrap {
                width: 100%;
                aspect-ratio: 3 / 4;
                background: #f8fafc;
                position: relative;
                overflow: hidden;
                border-bottom: 1px solid #e2e8f0;
            }

            .emag-cover-link {
                display: block;
                width: 100%;
                height: 100%;
                position: relative;
            }

            .emag-cover-img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;
                transition: transform 0.35s ease;
            }

            .emag-card:hover .emag-cover-img {
                transform: scale(1.04);
            }

            .emag-cover-hover-overlay {
                position: absolute;
                inset: 0;
                background: rgba(146, 12, 12, 0.65);
                display: flex;
                align-items: center;
                justify-content: center;
                opacity: 0;
                transition: opacity 0.25s ease;
            }

            .emag-card:hover .emag-cover-hover-overlay {
                opacity: 1;
            }

            .emag-read-hover-badge {
                background: #ffffff;
                color: #005a8c;
                font-size: 12.5px;
                font-weight: 700;
                padding: 7px 14px;
                border-radius: 20px;
                box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
                display: inline-flex;
                align-items: center;
                gap: 6px;
                transform: translateY(6px);
                transition: transform 0.25s ease;
            }

            .emag-card:hover .emag-read-hover-badge {
                transform: translateY(0);
            }

            /* Card Body */
            .emag-card-body {
                padding: 14px 16px 16px 16px;
                display: flex;
                flex-direction: column;
                flex: 1;
                justify-content: space-between;
            }

            .emag-card-title {
                font-size: 14px;
                font-weight: 700;
                line-height: 1.4;
                color: #0f172a;
                margin: 0 0 14px 0;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
                min-height: 38px;
            }

            .emag-card-title a {
                color: #0f172a;
                text-decoration: none;
                transition: color 0.15s ease;
            }

            .emag-card-title a:hover {
                color: #005a8c;
            }

            /* Read More Button */
            .emag-card-action {
                margin-top: auto;
                padding-top: 10px;
                border-top: 1px solid #f1f5f9;
            }

            .emag-readmore-btn {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 8px;
                width: 100%;
                padding: 8px 14px;
                background: #005a8c;
                color: #ffffff;
                font-size: 12.5px;
                font-weight: 700;
                border-radius: 5px;
                text-decoration: none;
                transition: all 0.2s ease;
                box-shadow: 0 2px 5px rgba(146, 12, 12, 0.2);
            }

            .emag-readmore-btn:hover {
                background: #00456c;
                color: #ffffff;
                box-shadow: 0 4px 12px rgba(146, 12, 12, 0.35);
                transform: translateY(-1px);
            }

            .emag-readmore-btn i {
                font-size: 11px;
            }

            .emag-readmore-btn.disabled {
                background: #e2e8f0;
                color: #94a3b8;
                box-shadow: none;
                cursor: not-allowed;
            }

            .emag-empty-state {
                background: #ffffff;
                border: 1px solid #e2e8f0;
                border-radius: 8px;
                padding: 60px 20px;
                text-align: center;
                color: #64748b;
                margin: 20px 0;
            }

            .emag-empty-state i {
                font-size: 44px;
                color: #cbd5e1;
                margin-bottom: 14px;
                display: block;
            }

            .emag-empty-state h3 {
                font-size: 18px;
                color: #0f172a;
                margin: 0 0 6px 0;
            }

            .emag-empty-state p {
                font-size: 14px;
                margin: 0;
            }

            /* Responsive Grid Breakpoints */
            @media (max-width: 1100px) {
                .emag-grid-4col {
                    grid-template-columns: repeat(3, 1fr);
                    gap: 18px;
                }
            }

            @media (max-width: 768px) {
                .emag-grid-4col {
                    grid-template-columns: repeat(2, 1fr);
                    gap: 14px;
                }

                .emag-archive-header {
                    padding: 18px 20px;
                }

                .emag-archive-title {
                    font-size: 20px;
                }
            }

            @media (max-width: 480px) {
                .emag-grid-4col {
                    grid-template-columns: 1fr;
                    gap: 16px;
                }
            }