/*
Theme Name: Leonate Bootstrap Theme
Theme URI: https://example.com/leonate-bootstrap-theme
Author: Leonate Solutions
Description: Custom Bootstrap 5 WordPress theme using the ln prefix.
Version: 1.0.0
Text Domain: leonate-bootstrap-theme
*/

/* ==========================================================
   GLOBAL THEME VARIABLES & BRAND OVERRIDES (#005aa7)
   ========================================================== */
:root {
    --bs-primary: #005aa7 !important;
    --bs-primary-rgb: 0, 90, 167 !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    color: #212529;
    background-color: #f8f9fa;
    line-height: 1.6;
}

/* Primary Buttons */
.btn-primary {
    background-color: #005aa7 !important;
    border-color: #005aa7 !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #004582 !important;
    border-color: #004582 !important;
}

/* Outline Primary Buttons */
.btn-outline-primary {
    color: #005aa7 !important;
    border-color: #005aa7 !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: #005aa7 !important;
    border-color: #005aa7 !important;
    color: #ffffff !important;
}

/* Primary Text & Links */
.text-primary {
    color: #005aa7 !important;
}

a {
    color: #005aa7;
}

a:hover {
    color: #004582;
}

/* ==========================================================
   PROFESSIONAL NEWS WEBSITE TYPOGRAPHY
   ========================================================== */
h1, h2, h3, h4, h5, h6,
.entry-title,
.card-title,
.navbar-brand span.fw-bold,
.archive-header h1 {
    font-family: 'Playfair Display', Georgia, Cambria, "Times New Roman", Times, serif !important;
    letter-spacing: -0.01em;
}

.entry-content {
    font-family: 'Inter', sans-serif !important;
    font-size: 1.05rem;
    color: #333333;
}

.entry-title,
.single .entry-header h1 {
    font-weight: 700 !important;
    line-height: 1.25;
}

.navbar-nav,
.btn,
.small,
.text-muted,
time {
    font-family: 'Inter', sans-serif !important;
}

/* ==========================================================
   SOCIAL MEDIA BRAND HOVER COLORS
   ========================================================== */
.header-social-links a {
    transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.header-social-links a:hover {
    transform: translateY(-2px);
}

.header-social-links a[href*="linkedin"]:hover {
    color: #0a66c2 !important;
}

.header-social-links a[href*="youtube"]:hover {
    color: #ff0000 !important;
}

.header-social-links a[href*="facebook"]:hover {
    color: #1877f2 !important;
}

.header-social-links a[href*="instagram"]:hover {
    color: #e4405f !important;
}

/* ==========================================================
   DESKTOP NAVIGATION & MEGA MENU (≥ 992px)
   ========================================================== */
@media (min-width: 992px) {
    /* Hide mobile toggle buttons completely on desktop */
    .ln-submenu-toggle {
        display: none !important;
    }

    /* Top-Level Flex Row */
    #lnPrimaryNavbar .navbar-nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 1.5rem;
    }

    /* Top-Level Links */
    #lnPrimaryNavbar .navbar-nav > li > a {
        font-family: 'Montserrat', 'Inter', sans-serif;
        font-weight: 500;
        font-size: 0.95rem;
        color: #333333 !important;
        padding: 0.5rem 0.75rem;
        border-radius: 4px;
        transition: all 0.2s ease-in-out;
        text-decoration: none;
        position: relative;
        display: inline-block;
    }

    #lnPrimaryNavbar .navbar-nav > li > a:hover {
        color: #005aa7 !important;
        background-color: rgba(0, 90, 167, 0.05);
    }

    #lnPrimaryNavbar .navbar-nav > li.current-menu-item > a,
    #lnPrimaryNavbar .navbar-nav > li.current_page_item > a {
        color: #005aa7 !important;
        font-weight: 600;
    }

    /* Animated Bottom Accent Bar on Top-Level Links */
    #lnPrimaryNavbar .navbar-nav > li:not(.nav-gold-btn) > a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 50%;
        background-color: #005aa7;
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    #lnPrimaryNavbar .navbar-nav > li:not(.nav-gold-btn) > a:hover::after,
    #lnPrimaryNavbar .navbar-nav > li.current-menu-item > a::after {
        width: 70%;
    }

    /* ----------------------------------------------------------
       1. STANDARD SINGLE-COLUMN SUBMENUS (WITHOUT .has-mega-menu)
       ---------------------------------------------------------- */
    #lnPrimaryNavbar .navbar-nav > li.menu-item-has-children:not(.has-mega-menu) {
        position: relative;
    }

    #lnPrimaryNavbar .navbar-nav > li:not(.has-mega-menu) ul.sub-menu,
    #lnPrimaryNavbar .navbar-nav > li:not(.has-mega-menu) ul.dropdown-menu {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        min-width: 220px;
        background-color: #ffffff;
        border: 1px solid rgba(0, 0, 0, 0.06);
        border-radius: 8px;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
        list-style: none;
        padding: 0.5rem 0;
        margin: 0;
        animation: lnDropdownFade 0.2s ease-in-out;
    }

    #lnPrimaryNavbar .navbar-nav > li.menu-item-has-children:not(.has-mega-menu):hover > ul.sub-menu,
    #lnPrimaryNavbar .navbar-nav > li.page_item_has_children:not(.has-mega-menu):hover > ul.sub-menu,
    #lnPrimaryNavbar .navbar-nav > li.menu-item-has-children:not(.has-mega-menu):hover > ul.dropdown-menu,
    #lnPrimaryNavbar .navbar-nav > li.dropdown:not(.has-mega-menu):hover > ul.dropdown-menu {
        display: block !important;
    }

    #lnPrimaryNavbar .navbar-nav > li:not(.has-mega-menu) ul.sub-menu li a,
    #lnPrimaryNavbar .navbar-nav > li:not(.has-mega-menu) ul.dropdown-menu li a {
        font-family: 'Montserrat', 'Inter', sans-serif;
        font-weight: 500;
        font-size: 0.9rem;
        color: #444444 !important;
        padding: 0.6rem 1.25rem;
        display: block;
        white-space: nowrap;
        background: transparent !important;
        text-decoration: none !important;
        transition: all 0.2s ease;
    }

    #lnPrimaryNavbar .navbar-nav > li:not(.has-mega-menu) ul.sub-menu li a:hover,
    #lnPrimaryNavbar .navbar-nav > li:not(.has-mega-menu) ul.dropdown-menu li a:hover {
        color: #005aa7 !important;
        background-color: rgba(0, 90, 167, 0.05) !important;
        padding-left: 1.5rem;
    }

    #lnPrimaryNavbar .navbar-nav > li:not(.has-mega-menu) ul.sub-menu li.current-menu-item > a,
    #lnPrimaryNavbar .navbar-nav > li:not(.has-mega-menu) ul.dropdown-menu li.current-menu-item > a {
        color: #005aa7 !important;
        font-weight: 600;
        background-color: rgba(0, 90, 167, 0.08) !important;
    }

    /* ----------------------------------------------------------
       2. MULTI-COLUMN MEGA MENU (ITEMS WITH .has-mega-menu)
       ---------------------------------------------------------- */
    #lnPrimaryNavbar .navbar-nav > li.has-mega-menu {
        position: static !important;
    }

    #lnPrimaryNavbar .navbar-nav > li.has-mega-menu > ul.sub-menu,
    #lnPrimaryNavbar .navbar-nav > li.has-mega-menu > ul.dropdown-menu {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
        gap: 1.75rem;
        position: absolute !important;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        padding: 1.75rem 2rem;
        margin: 0;
        background-color: #ffffff;
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-top: 3px solid #005aa7;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
        list-style: none;
        z-index: 1050;

        /* Hidden state with a 0.18s grace delay before closing */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(4px);
        transition: opacity 0.2s ease 0.18s, transform 0.2s ease 0.18s, visibility 0s linear 0.38s;
    }

    /* Invisible hover bridge covering the gap between nav bar and mega menu */
    #lnPrimaryNavbar .navbar-nav > li.has-mega-menu > ul.sub-menu::before,
    #lnPrimaryNavbar .navbar-nav > li.has-mega-menu > ul.dropdown-menu::before {
        content: '';
        position: absolute;
        top: -22px;
        left: 0;
        right: 0;
        height: 22px;
        background: transparent;
    }

    /* Instant open (0s delay) on hover or keyboard focus */
    #lnPrimaryNavbar .navbar-nav > li.has-mega-menu:hover > ul.sub-menu,
    #lnPrimaryNavbar .navbar-nav > li.has-mega-menu:focus-within > ul.sub-menu,
    #lnPrimaryNavbar .navbar-nav > li.has-mega-menu:hover > ul.dropdown-menu,
    #lnPrimaryNavbar .navbar-nav > li.has-mega-menu:focus-within > ul.dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        transition: opacity 0.18s ease 0s, transform 0.18s ease 0s, visibility 0s linear 0s;
    }

    /* Level 2: Column Headings */
    #lnPrimaryNavbar .navbar-nav > li.has-mega-menu > ul > li > a {
        display: block;
        font-family: 'Playfair Display', serif !important;
        font-weight: 700;
        font-size: 1rem;
        color: #111827 !important;
        text-decoration: none !important;
        padding: 0 0 0.5rem 0;
        margin-bottom: 0.65rem;
        border-bottom: 1px solid #e5e7eb;
        background: transparent !important;
    }

    /* Level 3: Column Link Lists */
    #lnPrimaryNavbar .navbar-nav > li.has-mega-menu > ul > li > ul.sub-menu,
    #lnPrimaryNavbar .navbar-nav > li.has-mega-menu > ul > li > ul.dropdown-menu {
        display: block !important;
        position: static !important;
        box-shadow: none !important;
        border: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        min-width: 0 !important;
        background: transparent !important;
        list-style: none;
    }

    #lnPrimaryNavbar .navbar-nav > li.has-mega-menu > ul > li > ul > li > a {
        display: block;
        padding: 0.35rem 0;
        font-family: 'Inter', sans-serif !important;
        font-size: 0.875rem;
        font-weight: 400;
        color: #4b5563 !important;
        text-decoration: none !important;
        white-space: normal;
        background: transparent !important;
        transition: color 0.15s ease, padding-left 0.15s ease;
    }

    #lnPrimaryNavbar .navbar-nav > li.has-mega-menu > ul > li > ul > li > a:hover {
        color: #005aa7 !important;
        padding-left: 4px;
    }

    /* ----------------------------------------------------------
       3. BRIGHT GOLD CALL-TO-ACTION BUTTON (.nav-gold-btn)
       ---------------------------------------------------------- */
    #lnPrimaryNavbar .navbar-nav > li.nav-gold-btn {
        display: flex;
        align-items: center;
        margin-left: 0.75rem;
    }

    #lnPrimaryNavbar .navbar-nav > li.nav-gold-btn > a {
        background: linear-gradient(135deg, #ffd700 0%, #f39c12 100%) !important;
        color: #ffffff !important;
        font-weight: 600 !important;
        padding: 0.5rem 1.25rem !important;
        border-radius: 50rem !important;
        box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
        transition: all 0.25s ease-in-out !important;
        text-decoration: none !important;
    }

    #lnPrimaryNavbar .navbar-nav > li.nav-gold-btn > a:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(255, 215, 0, 0.6);
        background: linear-gradient(135deg, #ffe033 0%, #e67e22 100%) !important;
        color: #000000 !important;
    }
	
	/* ==========================================================
   MENU ITEM IMAGES (MEGA MENU CARDS & LINK THUMBNAILS)
	========================================================== */
	@media (min-width: 992px) {
		/* Level 2 Mega Menu Column Image (Featured Card / Issue Cover) */
		#lnPrimaryNavbar .navbar-nav > li.has-mega-menu > ul > li > a .ln-menu-item-img {
			display: block;
			width: 100%;
			max-height: 180px;
			object-fit: cover;
			object-position: center top;
			border-radius: 6px;
			margin-bottom: 0.65rem;
			box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
			transition: transform 0.2s ease;
		}

		#lnPrimaryNavbar .navbar-nav > li.has-mega-menu > ul > li > a:hover .ln-menu-item-img {
			transform: translateY(-2px);
		}

		/* Level 3 or Standard Dropdown Small Thumbnail Icons */
		#lnPrimaryNavbar .navbar-nav > li.has-mega-menu > ul > li > ul > li > a,
		#lnPrimaryNavbar .navbar-nav > li:not(.has-mega-menu) ul.sub-menu li a {
			display: flex;
			align-items: center;
			gap: 0.65rem;
		}

		#lnPrimaryNavbar .navbar-nav > li.has-mega-menu > ul > li > ul > li > a .ln-menu-item-img,
		#lnPrimaryNavbar .navbar-nav > li:not(.has-mega-menu) ul.sub-menu li a .ln-menu-item-img {
			width: 36px;
			height: 36px;
			object-fit: cover;
			object-position: center top;
			border-radius: 4px;
			flex-shrink: 0;
		}
	}

	@media (max-width: 991.98px) {
		/* Hide decorative mega menu promo images on mobile so the drawer stays compact */
		#lnPrimaryNavbar .ln-menu-item-img {
			display: none;
		}
	}
}

@keyframes lnDropdownFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================
   MOBILE NAVIGATION & ACCORDION SUBMENUS (< 992px)
   ========================================================== */
@media (max-width: 991.98px) {
    #lnPrimaryNavbar {
        background-color: #ffffff;
        padding: 1rem 1.25rem;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
        margin-top: 0.5rem;
    }

    #lnPrimaryNavbar .navbar-nav {
        display: flex;
        flex-direction: column;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 0.35rem;
    }

    /* Make parent items relative so the toggle button sits neatly on the right */
    #lnPrimaryNavbar .navbar-nav li.menu-item-has-children,
    #lnPrimaryNavbar .navbar-nav li.page_item_has_children {
        position: relative;
    }

    /* Top-Level Mobile Links */
    #lnPrimaryNavbar .navbar-nav > li > a {
        font-family: 'Montserrat', 'Inter', sans-serif;
        font-weight: 500;
        font-size: 1rem;
        color: #333333 !important;
        padding: 0.65rem 1rem;
        border-radius: 6px;
        transition: all 0.2s ease-in-out;
        text-decoration: none !important;
        display: block;
        background-color: #f8f9fa;
        border: 1px solid #eaeaea;
    }

    /* Leave room on the right for the chevron toggle button */
    #lnPrimaryNavbar .navbar-nav > li.menu-item-has-children > a,
    #lnPrimaryNavbar .navbar-nav > li.page_item_has_children > a {
        padding-right: 3rem;
    }

    #lnPrimaryNavbar .navbar-nav > li > a:hover,
    #lnPrimaryNavbar .navbar-nav > li > a:focus {
        color: #005aa7 !important;
        background-color: rgba(0, 90, 167, 0.08);
        border-color: rgba(0, 90, 167, 0.2);
    }

    /* Active Page Mobile Highlight */
    #lnPrimaryNavbar .navbar-nav > li.current-menu-item > a,
    #lnPrimaryNavbar .navbar-nav > li.current_page_item > a {
        color: #ffffff !important;
        background-color: #005aa7 !important;
        border-color: #005aa7 !important;
        font-weight: 600;
    }

    /* Mobile Accordion Toggle Button */
    .ln-submenu-toggle {
        position: absolute;
        top: 0;
        right: 0;
        width: 2.75rem;
        height: 2.75rem;
        border: none;
        background: transparent;
        color: #333333;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 5;
        transition: transform 0.25s ease, color 0.2s ease;
    }

    /* Turn chevron white if the parent item is the active page */
    #lnPrimaryNavbar .navbar-nav > li.current-menu-item > .ln-submenu-toggle,
    #lnPrimaryNavbar .navbar-nav > li.current_page_item > .ln-submenu-toggle {
        color: #ffffff;
    }

    /* Rotate chevron 180deg when expanded */
    li.ln-mobile-open > .ln-submenu-toggle {
        transform: rotate(180deg);
        color: #005aa7;
    }

    /* HIDE ALL SUBMENUS & MEGA MENU COLUMNS BY DEFAULT ON MOBILE */
    #lnPrimaryNavbar .navbar-nav .sub-menu,
    #lnPrimaryNavbar .navbar-nav .dropdown-menu {
        display: none !important;
        list-style: none;
        background-color: #f1f3f5 !important;
        border: none;
        border-radius: 6px;
        padding: 0.5rem;
        margin-top: 0.35rem;
        margin-bottom: 0.5rem;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
    }

    /* REVEAL SUBMENU ONLY WHEN PARENT HAS .ln-mobile-open */
    #lnPrimaryNavbar .navbar-nav li.ln-mobile-open > .sub-menu,
    #lnPrimaryNavbar .navbar-nav li.ln-mobile-open > .dropdown-menu {
        display: block !important;
    }

    /* Submenu Links */
    #lnPrimaryNavbar .navbar-nav li ul.sub-menu li a,
    #lnPrimaryNavbar .navbar-nav li ul.dropdown-menu li a {
        font-size: 0.9rem !important;
        padding: 0.5rem 2.5rem 0.5rem 0.75rem !important;
        color: #555555 !important;
        background-color: transparent !important;
        border: none !important;
        text-decoration: none !important;
        display: block;
    }

    #lnPrimaryNavbar .navbar-nav li ul.sub-menu li a:hover,
    #lnPrimaryNavbar .navbar-nav li ul.dropdown-menu li a:hover {
        color: #005aa7 !important;
        background-color: rgba(0, 90, 167, 0.08) !important;
        border-radius: 4px;
    }

    /* Level 2 Mega Menu Column Headings on Mobile */
    #lnPrimaryNavbar li.has-mega-menu > ul > li > a {
        font-weight: 700 !important;
        color: #212529 !important;
    }

    /* Level 2 Toggle Button Sizing */
    #lnPrimaryNavbar .navbar-nav .sub-menu .ln-submenu-toggle {
        height: 2.25rem;
        width: 2.25rem;
    }

    /* Level 3 Nested Links inside Mobile Mega Menu */
    #lnPrimaryNavbar li.has-mega-menu > ul > li > ul {
        background-color: transparent !important;
        box-shadow: none !important;
        padding: 0.25rem 0 0.25rem 0.75rem !important;
        margin: 0 !important;
        border-left: 2px solid #ced4da;
        border-radius: 0;
    }

    /* Gold CTA Button on Mobile */
    #lnPrimaryNavbar .navbar-nav > li.nav-gold-btn > a {
        background: linear-gradient(135deg, #ffd700 0%, #f39c12 100%) !important;
        color: #ffffff !important;
        font-weight: 600 !important;
        text-align: center;
        border-radius: 6px;
        margin-top: 0.5rem;
        padding: 0.6rem 1rem !important;
        border: none !important;
        text-decoration: none !important;
    }
}

/* ==========================================================
   EDITORIAL ARCHIVE & CATEGORY HEADER
   ========================================================== */
.ln-editorial-header {
    position: relative;
    padding-left: 1.25rem;
    border-left: 4px solid #005aa7;
}

.ln-archive-eyebrow {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    color: #005aa7;
    display: inline-block;
}

.ln-editorial-header h1 {
    font-family: 'Playfair Display', Georgia, serif !important;
    line-height: 1.15;
    color: #111827;
}

.ln-archive-desc {
    max-width: 720px;
    font-size: 1.02rem;
    line-height: 1.6;
}

.ln-archive-desc p:last-child {
    margin-bottom: 0;
}

/* ==========================================================
   EDITORIAL ARCHIVE & CATEGORY LAYOUT
   ========================================================== */
.ln-editorial-header {
    position: relative;
    padding-left: 1.25rem;
    border-left: 4px solid #005aa7;
}

.ln-archive-eyebrow {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    color: #005aa7;
    display: inline-block;
}

.ln-editorial-header h1 {
    font-family: 'Playfair Display', Georgia, serif !important;
    line-height: 1.15;
    color: #111827;
}

.ln-archive-desc {
    max-width: 720px;
    font-size: 1.02rem;
    line-height: 1.6;
}

.ln-archive-desc p:last-child {
    margin-bottom: 0;
}

/* Lead & Grid Card Image Containers */
.ln-card-img-wrap {
    overflow: hidden;
}

.ln-lead-img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    transition: transform 0.35s ease;
}

.ln-grid-img {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    transition: transform 0.35s ease;
}

/* Hover Lift & Subtle Zoom */
.ln-lead-card,
.ln-grid-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ln-lead-card:hover,
.ln-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important;
}

.ln-lead-card:hover .ln-lead-img,
.ln-grid-card:hover .ln-grid-img {
    transform: scale(1.03);
}

.ln-lead-card:hover .card-title a,
.ln-grid-card:hover .card-title a {
    color: #005aa7 !important;
}

@media (max-width: 991.98px) {
    .ln-lead-img {
        min-height: 280px;
    }
}

/* ==========================================================
   SUB-CATEGORY FILTER PILL BAR
   ========================================================== */
.ln-subcat-pills {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    padding-bottom: 2px;
}

.ln-subcat-pills::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.ln-subcat-pills .nav-item {
    flex-shrink: 0;
}

.ln-subcat-pills .nav-link {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    padding: 0.4rem 0.95rem;
    transition: all 0.2s ease;
}

.ln-subcat-pills .nav-link:hover {
    color: #005aa7;
    border-color: #005aa7;
    background-color: rgba(0, 90, 167, 0.05);
}

.ln-subcat-pills .nav-link.active {
    background-color: #005aa7 !important;
    border-color: #005aa7 !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 90, 167, 0.25);
}

.ln-pill-count {
    font-size: 0.75rem;
    opacity: 0.75;
}

.ln-subcat-pills .nav-link.active .ln-pill-count {
    opacity: 0.9;
}

/* ==========================================================
   WORDPRESS PAGINATION AS BOOTSTRAP 5 ROUNDED PILLS
   ========================================================== */
.navigation.pagination {
    display: flex;
    justify-content: center;
}

.navigation.pagination .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.navigation.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

/* Individual Page Number Pills */
.navigation.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0.4rem 0.9rem;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    color: #374151;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 50rem;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

/* Hover State */
.navigation.pagination a.page-numbers:hover,
.navigation.pagination a.page-numbers:focus {
    color: #005aa7;
    border-color: #005aa7;
    background-color: rgba(0, 90, 167, 0.06);
    transform: translateY(-1px);
}

/* Active Current Page Pill */
.navigation.pagination .page-numbers.current {
    color: #ffffff !important;
    background-color: #005aa7 !important;
    border-color: #005aa7 !important;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(0, 90, 167, 0.25);
    cursor: default;
}

/* Previous & Next Pill Buttons */
.navigation.pagination .page-numbers.prev,
.navigation.pagination .page-numbers.next {
    padding: 0.4rem 1.15rem;
    font-weight: 600;
    color: #005aa7;
}

.navigation.pagination .page-numbers.prev:hover,
.navigation.pagination .page-numbers.next:hover {
    color: #ffffff !important;
    background-color: #005aa7 !important;
    border-color: #005aa7 !important;
}

/* Ellipsis (...) Separator */
.navigation.pagination .page-numbers.dots {
    border: none;
    background: transparent;
    color: #6b7280;
    min-width: auto;
    padding: 0 0.25rem;
    cursor: default;
}

/* ==========================================================
   ARCHIVE CARD SUB-CATEGORY PILL BADGE
   ========================================================== */
.ln-card-subcat-pill {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #005aa7 !important;
    background-color: rgba(0, 90, 167, 0.09);
    border: 1px solid rgba(0, 90, 167, 0.2);
    padding: 0.3rem 0.7rem;
    transition: all 0.2s ease;
}

.ln-card-subcat-pill:hover {
    color: #ffffff !important;
    background-color: #005aa7;
    border-color: #005aa7;
}

/* ==========================================================
   SEARCH RESULTS HEADER & KEYWORD HIGHLIGHTING
   ========================================================== */
.ln-search-refine-form {
    max-width: 640px;
}

.ln-search-refine-form .input-group:focus-within {
    border-color: #005aa7 !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 90, 167, 0.15) !important;
}

mark.ln-search-highlight {
    background-color: rgba(0, 90, 167, 0.14);
    color: #004582;
    padding: 0.05em 0.25em;
    border-radius: 3px;
    font-weight: 600;
}

/* ==========================================================
   EDITORIAL LIGHT FOOTER (.ln-site-footer)
   ========================================================== */
.ln-site-footer {
    background-color: #ffffff !important;
    border-top-color: #005aa7 !important;
}

.ln-footer-cta {
    background-color: rgba(0, 90, 167, 0.04);
}

.ln-footer-eyebrow {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: #005aa7;
}

.ln-footer-brand-title {
    font-family: 'Playfair Display', Georgia, serif !important;
}

.ln-footer-heading {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    color: #111827;
}

/* Footer Navigation Links */
.ln-footer-links li {
    margin-bottom: 0.55rem;
}

.ln-footer-links li a {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.9rem;
    color: #4b5563 !important;
    text-decoration: none !important;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.ln-footer-links li a:hover {
    color: #005aa7 !important;
    padding-left: 4px;
}

/* Circular Social Buttons */
.ln-footer-social .btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #374151;
    transition: all 0.2s ease;
}

.ln-footer-social .btn:hover {
    background-color: #005aa7;
    border-color: #005aa7;
    color: #ffffff;
    transform: translateY(-2px);
}

.ln-back-to-top:hover {
    background-color: #005aa7;
    border-color: #005aa7;
    color: #ffffff !important;
}

.ln-footer-bottom {
    background-color: #f8f9fa;
}
/* Footer Widget Compatibility */
.footer-widget h5 {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #111827;
}

.footer-widget ul.menu {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.footer-widget ul.menu li {
    margin-bottom: 0.55rem;
}

.footer-widget ul.menu li a {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.9rem;
    color: #4b5563 !important;
    text-decoration: none !important;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.footer-widget ul.menu li a:hover {
    color: #005aa7 !important;
    padding-left: 4px;
}

.footer-widget p {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Single.php Tags to have same color as others */
.tags-links a {
    color: inherit;
    text-decoration: none;
}
.tags-links a:hover {
    color: #005aa7;
    text-decoration: underline;
}

/* ==========================================================
   BANNER ADVERTISEMENT GUTENBERG BLOCK PRESETS
   ========================================================== */
.ln-banner-ad-wrapper {
    background-color: #f8fafc;
}

.ln-banner-ad-wrapper.ln-banner-ad-sidebar {
    background-color: transparent;
}

.ln-ad-eyebrow {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    opacity: 0.7;
}

.ln-banner-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ln-ad-link:hover .ln-banner-img {
    opacity: 0.95;
}

/* Preset 1: Large Leaderboard (970x90) */
.ln-ad-size-leaderboard {
    max-width: 970px;
    max-height: 90px;
}

/* Preset 2: Standard Leaderboard (728x90) */
.ln-ad-size-standard-leaderboard {
    max-width: 728px;
    max-height: 90px;
}

/* Preset 3: Billboard (970x250) */
.ln-ad-size-billboard {
    max-width: 970px;
    max-height: 250px;
}

/* Preset 4: Sidebar Medium Rectangle (300x250) */
.ln-ad-size-medium-rectangle {
    max-width: 300px;
    max-height: 250px;
}

/* Preset 5: Sidebar Half Page (300x600) */
.ln-ad-size-half-page {
    max-width: 300px;
    max-height: 600px;
}

/* Preset 6: Full Container Responsive */
.ln-ad-size-responsive-full {
    max-width: 100%;
    max-height: none;
}
/* Ensure link and picture wrappers allow full-width scaling */
.ln-ad-link,
.ln-banner-picture {
    display: block;
    width: 100%;
}

/* Allow taller mobile ad formats (e.g. 300x250) on screens below 768px */
@media (max-width: 767.98px) {
.ln-banner-img,
    .ln-banner-img.ln-has-mobile-banner {
        width: 100% !important;
        max-width: 100% !important;
        max-height: none !important;
        height: auto !important;
    }
}

/* ==========================================================
   CATEGORY & TAG SHOWCASE GRID (LEAD + HEADLINE LIST)
   ========================================================== */
.ln-showcase-card {
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ln-showcase-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07) !important;
}

.ln-showcase-lead-img {
    transition: transform 0.35s ease;
}

.ln-showcase-card:hover .ln-showcase-lead-img {
    transform: scale(1.02);
}

.ln-showcase-lead-title a:hover {
    color: #005aa7 !important;
}

.ln-showcase-sublist {
    border-color: #e5e7eb !important;
}

.ln-showcase-subitem {
    position: relative;
    padding-left: 1rem;
    padding-bottom: 0.55rem;
    margin-bottom: 0.55rem;
    border-bottom: 1px solid #f3f4f6;
}

.ln-showcase-subitem:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.ln-showcase-subitem::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.52rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #005aa7;
}

.ln-showcase-sublink {
    display: block;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.4;
    color: #1f2937 !important;
    transition: color 0.15s ease;
}

.ln-showcase-sublink:hover {
    color: #005aa7 !important;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}