/*
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
*/

/* --- Desktop Navigation Styling --- */
@media (min-width: 992px) {
    /* Ensure the menu container behaves as a clean flex row */
    #lnPrimaryNavbar .navbar-nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 1.5rem; /* Space between menu items */
    }
	
	/* Navigation Active States & Hover Accents */
#lnPrimaryNavbar .navbar-nav > li > a:hover,
#lnPrimaryNavbar .navbar-nav > li.current-menu-item > a,
#lnPrimaryNavbar .navbar-nav > li.current_page_item > a {
    color: #005aa7 !important;
}

#lnPrimaryNavbar .navbar-nav > li > a::after {
    background-color: #005aa7;
}


    /* Style individual menu links */
    #lnPrimaryNavbar .navbar-nav > li > a {
        font-family: 'Montserrat', 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;
    }

    /* Hover effect: subtle background tint and primary brand color accent */
    #lnPrimaryNavbar .navbar-nav > li > a:hover {
        color: var(--bs-primary, #005aa7) !important;
        background-color: rgba(0, 90, 167, 0.05);
    }

    /* Active page indicator or current menu item highlight */
    #lnPrimaryNavbar .navbar-nav > li.current-menu-item > a,
    #lnPrimaryNavbar .navbar-nav > li.current_page_item > a {
        color: var(--bs-primary, #005aa7) !important;
        font-weight: 600;
    }
    
    /* Underline accent animation on hover */
    #lnPrimaryNavbar .navbar-nav > li > a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 50%;
        background-color: var(--bs-primary, #005aa7);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    #lnPrimaryNavbar .navbar-nav > li > a:hover::after,
    #lnPrimaryNavbar .navbar-nav > li.current-menu-item > a::after {
        width: 70%;
    }
}
/* --- Mobile Navigation Styling --- */
@media (max-width: 991.98px) {
    /* Style the collapsible container box */
    #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;
    }

    /* Stack items vertically with clean spacing */
    #lnPrimaryNavbar .navbar-nav {
        display: flex;
        flex-direction: column;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 0.35rem; 
    }

    /* Style individual mobile menu links like modern buttons/pills */
    #lnPrimaryNavbar .navbar-nav > li > a {
        font-family: 'Montserrat', 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;
        display: block;
        background-color: #f8f9fa; /* Soft background tint for clear tappable areas */
        border: 1px solid #eaeaea;
    }

    /* Hover and Active states matching your primary brand accent */
    #lnPrimaryNavbar .navbar-nav > li > a:hover,
    #lnPrimaryNavbar .navbar-nav > li > a:focus {
        color: var(--bs-primary, #005aa7) !important;
        background-color: rgba(0, 90, 167, 0.08);
        border-color: rgba(0, 90, 167, 0.2);
    }

	/* --- Corrected Active Page Mobile Navigation Styling --- */
	@media (max-width: 991.98px) {
		/* Highlight current active page item on mobile with high contrast */
		#lnPrimaryNavbar .navbar-nav > li.current-menu-item > a,
		#lnPrimaryNavbar .navbar-nav > li.current_page_item > a {
			color: #ffffff !important;
			background-color: var(--bs-primary, #005aa7) !important;
			border-color: var(--bs-primary, #005aa7) !important;
			font-weight: 600;
		}
	}
	

    }
}


/* ==========================================================
   PROFESSIONAL NEWS WEBSITE TYPOGRAPHY
   ========================================================== */

/* Apply clean Inter sans-serif for global body text */
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;
}

/* Apply authoritative Playfair Display serif font for all article titles, headings, and site titles */
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;
}

/* Fine-tune post & page content typography for long-form reading */
.entry-content {
    font-family: 'Inter', sans-serif !important;
    font-size: 1.05rem;
    color: #333333;
}

/* Give main article titles extra journalistic weight */
.entry-title, .single .entry-header h1 {
    font-weight: 700 !important;
    line-height: 1.25;
}

/* Keep navigation and buttons crisp and readable in sans-serif */
.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); /* Slight lift effect */
}

/* Individual Brand Colors on Hover */
.header-social-links a[href*="linkedin"]:hover {
    color: #0a66c2 !important; /* LinkedIn Blue */
}

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

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

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

/* --- Global Theme Primary Color Override (#005aa7) --- */
:root {
    --bs-primary: #005aa7 !important;
    --bs-primary-rgb: 0, 90, 167 !important;
}

/* 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; /* Slightly darker shade for hover */
    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;
}

/* ==========================================================
   MODERN SUB-MENU & DROPDOWN STYLING
   ========================================================== */

/* --- Desktop Dropdown Menus --- */
@media (min-width: 992px) {
    /* Make parent menu items position relative so dropdowns anchor properly */
    #lnPrimaryNavbar .navbar-nav > li.menu-item-has-children {
        position: relative;
    }

    /* Style the dropdown container box */
    #lnPrimaryNavbar .navbar-nav .dropdown-menu {
        border: none;
        border-radius: 8px;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
        padding: 0.5rem 0;
        margin-top: 0.5rem;
        background-color: #ffffff;
        min-width: 220px;
        animation: lnDropdownFade 0.2s ease-in-out;
    }

    /* Style individual sub-menu links */
    #lnPrimaryNavbar .navbar-nav .dropdown-menu > li > a {
        font-family: 'Montserrat', sans-serif;
        font-weight: 500;
        font-size: 0.9rem;
        color: #444444 !important;
        padding: 0.6rem 1.25rem;
        transition: all 0.2s ease-in-out;
        background-color: transparent !important;
    }

    /* Hover effect matching your primary brand accent */
    #lnPrimaryNavbar .navbar-nav .dropdown-menu > li > a:hover,
    #lnPrimaryNavbar .navbar-nav .dropdown-menu > li > a:focus {
        color: var(--bs-primary, #005aa7) !important;
        background-color: rgba(0, 90, 167, 0.05) !important;
        padding-left: 1.5rem; /* Subtle slide-to-right micro-interaction */
    }

    /* Active sub-menu item highlight */
    #lnPrimaryNavbar .navbar-nav .dropdown-menu > li.current-menu-item > a,
    #lnPrimaryNavbar .navbar-nav .dropdown-menu > li.current_page_item > a {
        color: var(--bs-primary, #005aa7) !important;
        font-weight: 600;
        background-color: rgba(0, 90, 167, 0.08) !important;
    }
}

/* --- Mobile Sub-Menus --- */
@media (max-width: 991.98px) {
    /* Indent and frame sub-menus nicely inside the mobile dropdown */
    #lnPrimaryNavbar .navbar-nav .sub-menu,
    #lnPrimaryNavbar .navbar-nav .dropdown-menu {
        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);
    }

    #lnPrimaryNavbar .navbar-nav .sub-menu li a,
    #lnPrimaryNavbar .navbar-nav .dropdown-menu li a {
        font-size: 0.9rem !important;
        padding: 0.5rem 1rem !important;
        color: #555555 !important;
        background-color: transparent !important;
        border: none !important;
    }

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

/* Smooth fade-in animation for dropdowns */
@keyframes lnDropdownFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* --- Dropdown Visibility & Behavior --- */
@media (min-width: 992px) {
    /* Hide dropdown menu by default */
    #lnPrimaryNavbar .navbar-nav .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
    }

    /* Show dropdown menu when parent li is hovered */
    #lnPrimaryNavbar .navbar-nav li.menu-item-has-children:hover > .dropdown-menu,
    #lnPrimaryNavbar .navbar-nav li.dropdown:hover > .dropdown-menu {
        display: block;
    }
}
/* ==========================================================
   FORCE HIDE SUB-MENUS UNTIL HOVER (DESKTOP) & NO UNDERLINE
   ========================================================== */
@media (min-width: 992px) {
    /* Hide all default WordPress sub-menus by default */
    #lnPrimaryNavbar .navbar-nav li ul.sub-menu {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        min-width: 220px;
        background-color: #ffffff;
        border-radius: 8px;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
        list-style: none;
        padding: 0.5rem 0;
        margin: 0;
    }

    /* Reveal the sub-menu only when hovering over the parent list item */
    #lnPrimaryNavbar .navbar-nav li.menu-item-has-children:hover > ul.sub-menu,
    #lnPrimaryNavbar .navbar-nav li.page_item_has_children:hover > ul.sub-menu {
        display: block !important;
    }

    /* Style the sub-menu links and remove underlines */
    #lnPrimaryNavbar .navbar-nav li ul.sub-menu li a {
        color: #444444 !important;
        padding: 0.6rem 1.25rem;
        display: block;
        font-size: 0.9rem;
        white-space: nowrap;
        background: transparent !important;
        text-decoration: none !important; /* Removes underline */
    }

    #lnPrimaryNavbar .navbar-nav li ul.sub-menu li a:hover {
        color: var(--bs-primary, #005aa7) !important;
        background-color: rgba(0, 90, 167, 0.05) !important;
        padding-left: 1.5rem;
        text-decoration: none !important; /* Ensures underline stays off on hover */
        transition: all 0.2s ease;
    }
}

/* Mobile Sub-Menu Underline Removal */
@media (max-width: 991.98px) {
    #lnPrimaryNavbar .navbar-nav li ul.sub-menu li a {
        text-decoration: none !important;
    }
}
/* ==========================================================
   BRIGHT GOLD CALL-TO-ACTION BUTTON (.nav-gold-btn)
   ========================================================== */
@media (min-width: 992px) {
    #lnPrimaryNavbar .navbar-nav > li.nav-gold-btn {
        display: flex;
        align-items: center;
        margin-left: 0.75rem; /* Clean separation from surrounding items */
    }

    #lnPrimaryNavbar .navbar-nav > li.nav-gold-btn > a {
        background: linear-gradient(135deg, #ffd700 0%, #f39c12 100%) !important; /* Brighter gold to rich amber */
        color: white !important; /* Dark, #1a1a1a high-contrast text for premium readability */
        font-weight: 600 !important;
        padding: 0.5rem 1.25rem !important;
        border-radius: 50rem !important; /* Smooth pill-shaped button */
        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;
    }
}

/* Mobile Styling for the Bright Gold Button */
@media (max-width: 991.98px) {
    #lnPrimaryNavbar .navbar-nav > li.nav-gold-btn > a {
        background: linear-gradient(135deg, #ffd700 0%, #f39c12 100%) !important;
        color: white !important; /* #1a1a1a */
        font-weight: 600 !important;
        text-align: center;
        border-radius: 6px;
        margin-top: 0.5rem;
        padding: 0.6rem 1rem !important;
        text-decoration: none !important;
    }
}
