/*
Theme Name: AEI News
Theme URI: https://aeimarketing.com
Author: JT @ AEI Marketing
Author URI: https://aeimarketing.com
Description: Professional news and magazine theme with customizable sections, multiple layouts, RSS feed integration, and advanced display options. Built for performance and flexibility.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aei-news
Tags: news, magazine, blog, two-columns, custom-logo, custom-menu, featured-images, theme-options, grid-layout, custom-header, custom-background, editor-style, flexible-header, full-width-template, sticky-post, threaded-comments, translation-ready, rtl-language-support, accessibility-ready

Bluffton Business Brand Colors:
- Primary Navy Blue: #1a4a68
- Teal/Seafoam: #4db8a4
- Light Mint: #7dd3c0
- Dark Gray: #4A4A4A
- White: #FFFFFF
- Light Background: #F8FAFB
*/

/* ========================================
   CSS VARIABLES - Brand Colors
   ======================================== */

:root {
    --brand-blue: #1a4a68;
    --brand-teal: #4db8a4;
    --brand-green: #7dd3c0;
    --brand-gray: #4A4A4A;
    --brand-white: #FFFFFF;
    --brand-light-bg: #F8FAFB;
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --font-heading: var(--font-primary);
    
    /* Spacing */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(27, 79, 114, 0.08);
    --shadow-md: 0 4px 12px rgba(27, 79, 114, 0.12);
    --shadow-lg: 0 8px 24px rgba(27, 79, 114, 0.16);
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--brand-gray);
    background: var(--brand-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--brand-blue);
    margin: 0 0 var(--spacing-md);
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin: 0 0 var(--spacing-md);
}

a {
    color: var(--brand-teal);
    text-decoration: none;
    transition: color var(--transition-normal);
}

a:hover, a:focus {
    color: var(--brand-blue);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   LAYOUT & CONTAINERS
   ======================================== */

.container {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    padding: 0 15px;
    flex: 1;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn,
button,
input[type="submit"],
input[type="button"] {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    color: var(--brand-white);
    background: var(--brand-teal);
    border: 2px solid var(--brand-teal);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: var(--brand-white);
    transform: translateY(-2px);
}

.btn:focus,
button:focus,
input[type="submit"]:focus {
    outline: 2px solid var(--brand-green);
    outline-offset: 2px;
}

.btn-outline {
    background: transparent;
    color: var(--brand-teal);
}

.btn-outline:hover {
    background: var(--brand-teal);
    color: var(--brand-white);
}

/* ========================================
   FORMS
   ======================================== */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--brand-gray);
    background: var(--brand-white);
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: border-color var(--transition-normal);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--brand-teal);
}

label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--brand-blue);
}

/* ========================================
   HEADER
   ======================================== */

.site-header {
    background: var(--brand-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Sticky Header */
.site-header.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.site-header.sticky-header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) 0;
}

/* Logo */
.site-branding {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.custom-logo-link {
    display: block;
    line-height: 0;
}

.custom-logo-link img {
    height: 70px;
    width: auto;


    transition: transform var(--transition-normal);
}

.custom-logo-link:hover img {
    transform: scale(1.05);
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
}

.site-title a {
    color: var(--brand-blue);
}

.site-description {
    margin: 0;
    font-size: 0.875rem;
    color: var(--brand-gray);
}

/* ========================================
   NAVIGATION - DESKTOP
   ======================================== */

.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--brand-blue);
    border-radius: 6px;
    transition: all var(--transition-normal);
    background: rgba(255, 255, 255, 0.85);
}

.main-navigation a:hover,
.main-navigation a:focus {
    background: var(--brand-light-bg);
    color: var(--brand-teal);
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    background: var(--brand-teal);
    color: var(--brand-white);
}

/* Dropdown Menus - Desktop */
.main-navigation .sub-menu,
.main-navigation .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: var(--spacing-sm) 0;
    background: var(--brand-white);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-normal);
    z-index: 100;
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation .sub-menu a,
.main-navigation .dropdown-menu a {
    padding: 10px 20px;
    border-radius: 0;
}

.main-navigation .sub-menu a:hover,
.main-navigation .dropdown-menu a:hover {
    background: var(--brand-light-bg);
}

/* ========================================
   LEGACY MOBILE HEADER OVERRIDES
   (Main styles are in MOBILE HEADER - PREMIUM DESIGN section below)
   ======================================== */

.header-mobile .site-title,
.header-mobile .site-description {
    display: none;
}

/* ========================================
   SECTIONS & CONTENT
   ======================================== */

.section {
    padding: var(--spacing-xl) 0;
}

.section:nth-child(even) {
    background: var(--brand-light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title h2 {
    display: inline-block;
    position: relative;
    padding-bottom: var(--spacing-md);
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--brand-green);
    border-radius: 2px;
}

/* ========================================
   CARDS & POSTS
   ======================================== */

.card {
    background: var(--brand-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.card-image {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    padding: 20px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    transition: transform var(--transition-normal);
    display: block;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

article.card .card-content {
    padding: 20px;
    background: #ffffff;
    display: flex !important;
    flex-direction: column !important;
}

article.card .card-content .entry-header {
    margin-bottom: 12px;
    width: 100%;
}

article.card .card-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 10px 0;
    color: #2c3e50;
    display: block !important;
    width: 100%;
}

.card-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.25s ease;
}

.card-title a:hover {
    color: #3498db;
}

.card-meta {
    font-size: 0.8125rem;
    color: #7f8c8d;
    margin-bottom: 12px;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.card-meta a {
    color: #7f8c8d;
    text-decoration: none;
    transition: color 0.25s ease;
}

.card-meta a:hover {
    color: #3498db;
}

article.card .card-excerpt {
    color: #5a6c7d;
    margin-bottom: 16px;
    line-height: 1.6;
    font-size: 0.9375rem;
    display: block !important;
    flex: 1;
    width: 100%;
}

.card-excerpt p {
    margin: 0;
}

/* ========================================
   ARCHIVE/NEWS PAGE & PAGE HEADERS
   ======================================== */

.page-header,
.entry-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(52, 152, 219, 0.15);
}

.page-title,
.entry-title {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    margin: 0 0 10px 0;
    letter-spacing: -0.02em;
}

.archive-description {
    color: #5a6c7d;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.archive-description p {
    margin: 0;
}

/* Read More Button */
.btn-outline {
    display: inline-block;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #3498db;
    background: transparent;
    border: 1px solid #3498db;
    border-radius: 0;
    text-decoration: none;
    transition: all 0.25s ease;
    letter-spacing: 0.02em;
    align-self: flex-start;
    margin-top: auto;
}

.btn-outline:hover {
    background: #3498db;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    background: var(--brand-blue);
    color: var(--brand-white);
    margin-top: 50px;
}

/* Copyright Footer */
.site-info {
    background: #000000;
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
    border-top: none;
    margin: 0;
}

.site-info p {
    margin: 0;
    color: #ffffff;
    font-size: 14px;
}

.footer-full-width-section {
    background: var(--brand-blue);
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color:#ffffff;
}

.footer-full-width-section .footer-widget-full {
    width: 100%;
}

.footer-full-width-section .widget-title {

    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--brand-teal);
}

.footer-full-width-section a {
    color: var(--brand-teal);
}

.footer-full-width-section a:hover {

}

.site-footer a {
    color: var(--brand-teal);
}

.site-footer a:hover {
    color: var(--brand-white);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-widget h3 {
    color: var(--brand-white);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--brand-teal);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ========================================
   WIDGETS
   ======================================== */

.widget {
    margin-bottom: var(--spacing-lg);
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--brand-green);
}

.widget ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.widget li {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--brand-light-bg);
}

.widget li:last-child {
    border-bottom: none;
}

/* ========================================
   SIDEBAR
   ======================================== */

.sidebar {
    padding-left: var(--spacing-lg);
}

@media (max-width: 1000px) {
    .sidebar {
        padding-left: 0;
        margin-top: var(--spacing-xl);
    }
}

/* ========================================
   SINGLE POST
   ======================================== */

.single-post .entry-header {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.single-post .entry-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.single-post .post-thumbnail {
    text-align: center;
    width: 100%;
}

.single-post .post-thumbnail img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.single-post .entry-meta {
    color: #888;
    font-size: 0.875rem;
}

.single-post .entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

.single-post .entry-content p {
    margin-bottom: var(--spacing-md);
}

.single-post .entry-content h2,
.single-post .entry-content h3 {
    margin-top: var(--spacing-lg);
}

/* ========================================
   COMMENTS
   ======================================== */

.comments-area {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--brand-light-bg);
}

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

.comment {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    background: var(--brand-light-bg);
    border-radius: 8px;
}

.comment-author {
    font-weight: 600;
    color: var(--brand-blue);
}

.comment-meta {
    font-size: 0.875rem;
    color: #888;
    margin-bottom: var(--spacing-sm);
}

/* ========================================
   PAGINATION
   ======================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xl);
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 var(--spacing-md);
    background: var(--brand-white);
    border: 2px solid var(--brand-light-bg);
    border-radius: 6px;
    font-weight: 600;
    color: var(--brand-blue);
    transition: all var(--transition-normal);
}

.pagination a:hover {
    background: var(--brand-teal);
    border-color: var(--brand-teal);
    color: var(--brand-white);
}

.pagination .current {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: var(--brand-white);
}

/* ========================================
   SOCIAL ICONS
   ======================================== */

.social-icons {
    display: flex;
    gap: var(--spacing-sm);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--brand-light-bg);
    border-radius: 50%;
    color: var(--brand-blue);
    transition: all var(--transition-normal);
}

.social-icon:hover {
    background: var(--brand-green);
    color: var(--brand-white);
    transform: translateY(-2px);
}

/* ========================================
   UTILITIES
   ======================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mb-3 { margin-bottom: var(--spacing-lg); }

.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }
.pt-1 { padding-top: var(--spacing-sm); }
.pb-1 { padding-bottom: var(--spacing-sm); }
.pt-2 { padding-top: var(--spacing-md); }
.pb-2 { padding-bottom: var(--spacing-md); }
.pt-3 { padding-top: var(--spacing-lg); }
.pb-3 { padding-bottom: var(--spacing-lg); }

.hidden { display: none; }
.visible { display: block; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   RESPONSIVE GRID
   ======================================== */

.grid {
    display: grid;
    gap: var(--spacing-md);
}

/* Responsive grid - desktop first */
.grid-2 { 
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.grid-3 { 
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.grid-4 { 
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Posts grid specific styling */
.posts-grid {
    margin-top: 30px;
    margin-bottom: 40px;
}

.posts-grid .card {
    background: #ffffff;
    border: 1px solid rgba(52, 152, 219, 0.08);
    border-radius: 0;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
}

.posts-grid .card .card-content {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    float: none !important;
}

.posts-grid .card .card-image {
    width: 100% !important;
    float: none !important;
}

.posts-grid .card:hover {
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.12);
    border-color: rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
}

/* Tablet: 2 columns */
@media (max-width: 1200px) {
    .grid-4,
    .grid-3,
    .grid-2 { 
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobile: 1 column */
@media (max-width: 768px) {
    .grid-4,
    .grid-3,
    .grid-2 { 
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .posts-grid {
        margin-top: 20px;
        margin-bottom: 30px;
    }
    
    .card-image {
        height: 200px;
        padding: 15px;
    }
    
    article.card .card-content {
        padding: 16px;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

:focus-visible {
    outline: 2px solid var(--brand-teal);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    padding: var(--spacing-md);
    background: var(--brand-blue);
    color: var(--brand-white);
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .comments-area,
    .pagination {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}

/* ========================================
   DESKTOP HEADER - PREMIUM DESIGN
   ======================================== */

header#masthead {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--brand-white) 0%, #f8fbfd 100%);
    box-shadow: 0 2px 20px rgba(27, 79, 114, 0.08);
}

body.home header#masthead {
    background: transparent;
    box-shadow: none;
    margin-bottom: -84px;
}

body.home ul#menu-primary-menu.navbar-nav > li {
    background: rgba(255, 255, 255, 0.85);
}

.top-header {
    background: transparent;
    border: none;
    margin: 0;
    padding: 0;
}

.top-header .container {
    padding-top: 0;
    padding-bottom: 0;
    width: 100%;
    max-width: 1400px;
}

.top-header .row {
    margin: 0;
}

nav.navbar.navbar-default {
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 0;
    margin: 0;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 0;
}

.header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 12px 0;
}

.header-logo .custom-logo-link {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.header-logo .custom-logo-link:hover {
    transform: scale(1.02);
}

.header-logo .custom-logo-link img {
    height: 60px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.header-logo .site-identity-wrap {
    display: none;
}

nav.navbar.navbar-default .navbar-toggle {
    display: none;
}

/* Desktop Navigation - High specificity to override Bootstrap */
header#masthead #navbar-collapse,
header#masthead nav.navbar #navbar-collapse {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: flex-end;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

header#masthead ul#menu-primary-menu.navbar-nav,
header#masthead ul.navbar-nav.navbar-center,
header#masthead nav.navbar ul.navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0 0 0 auto;
    padding: 0;
    float: none;
    gap: 4px;
}

ul#menu-primary-menu.navbar-nav > li {
    float: none;
    display: inline-block;
    position: relative;
}

ul#menu-primary-menu.navbar-nav > li > a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--brand-blue);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

ul#menu-primary-menu.navbar-nav > li > a::before {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--brand-green);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.25s ease;
}

ul#menu-primary-menu.navbar-nav > li > a:hover {
    background: rgba(65, 136, 67,.86);

    color: #ffffff;
}

ul#menu-primary-menu.navbar-nav > li > a:hover::before {
    width: calc(100% - 24px);
}

ul#menu-primary-menu.navbar-nav > li.current-menu-item > a,
ul#menu-primary-menu.navbar-nav > li.current_page_item > a {
    background: rgba(26, 74, 104, 0.95);
    color: #ffffff;
    box-shadow: none;
}

ul#menu-primary-menu.navbar-nav > li.current-menu-item > a::before,
ul#menu-primary-menu.navbar-nav > li.current_page_item > a::before {
    display: none;
}

ul#menu-primary-menu.navbar-nav > li.current-menu-item > a:hover,
ul#menu-primary-menu.navbar-nav > li.current_page_item > a:hover {
    background: rgba(26, 74, 104, 0.95);
    box-shadow: none;
    transform: none;
}

/* Desktop Dropdown Menus */
ul#menu-primary-menu.navbar-nav .dropdown-menu,
ul#menu-primary-menu.navbar-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    padding: 12px 0;
    margin-top: 8px;
    background: var(--brand-white);
    border: none;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(27, 79, 114, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

ul#menu-primary-menu.navbar-nav > li:hover > .dropdown-menu,
ul#menu-primary-menu.navbar-nav > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

ul#menu-primary-menu.navbar-nav .dropdown-menu > li > a,
ul#menu-primary-menu.navbar-nav .sub-menu > li > a {
    display: block;
    padding: 12px 24px;
    color: var(--brand-gray);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

ul#menu-primary-menu.navbar-nav .dropdown-menu > li > a:hover,
ul#menu-primary-menu.navbar-nav .sub-menu > li > a:hover {
    background: var(--brand-light-bg);
    color: var(--brand-teal);
    border-left-color: var(--brand-green);
    padding-left: 28px;
}

/* Header Social Icons */
ul.header-icons {
    display: flex;
    align-items: center;
    margin-left: 24px;
    list-style: none;
    padding: 0;
    gap: 8px;
}

ul.header-icons li {
    margin: 0;
}

ul.header-icons .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

ul.header-icons .social-icon a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--brand-light-bg);
    color: var(--brand-blue);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

ul.header-icons .social-icon a:hover {
    background: var(--brand-green);
    color: var(--brand-white);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(130, 195, 65, 0.4);
}

/* ========================================
   MOBILE HEADER - PREMIUM DESIGN
   ======================================== */

.header-mobile {
    display: none;
    background: linear-gradient(135deg, var(--brand-white) 0%, #f8fbfd 100%);
    box-shadow: 0 2px 20px rgba(27, 79, 114, 0.1);
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 10000;
}

.header-mobile .site-branding {
    display: flex;
    align-items: center;
    padding: 12px 0;
}

.header-mobile .custom-logo-link img {
    height: 48px;
    width: auto;
}

.header-mobile .logo-wrap {
    display: none;
}

.header-mobile .mobile-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-mobile .header-social {
    display: none;
}

#mobile-menu-wrap {
    position: static;
}

/* Hamburger Button - Premium Style (mobile only) */
button.navbar-toggle {
    width: 48px;
    height: 48px;
    padding: 14px 12px;
    background: linear-gradient(135deg, var(--brand-blue) 0%, #1a4766 100%);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(27, 79, 114, 0.25);
    position: relative;
    z-index: 10002;
    margin: 0;
    float: none;
}

button.navbar-toggle:hover {
    background: linear-gradient(135deg, var(--brand-teal) 0%, #3da897 100%);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(77, 184, 164, 0.4);
}

.header-mobile button.navbar-toggle:focus,
#mobile-menu-wrap button.navbar-toggle:focus,
button.navbar-toggle.collapsed:focus,
button.navbar-toggle:focus {
    background: linear-gradient(135deg, var(--brand-blue) 0%, #1a4766 100%);
    color: #ffffff;
    outline: 2px solid var(--brand-teal);
    outline-offset: 2px;
    box-shadow: 0 6px 20px rgba(77, 184, 164, 0.4);
}

button.navbar-toggle .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
    margin: 0 auto;
}

button.navbar-toggle .icon-bar + .icon-bar {
    margin-top: 5px;
}

/* Hamburger to X Animation */
button.navbar-toggle:not(.collapsed) .icon-bar:nth-child(2) {
    transform: rotate(45deg) translate(5px, 5px) !important;
}

button.navbar-toggle:not(.collapsed) .icon-bar:nth-child(3) {
    opacity: 0 !important;
}

button.navbar-toggle:not(.collapsed) .icon-bar:nth-child(4) {
    transform: rotate(-45deg) translate(5px, -5px) !important;
}

/* Active state styling - Keep blue background for contrast */
button.navbar-toggle:not(.collapsed) {
    background: linear-gradient(135deg, var(--brand-blue) 0%, #1a4766 100%);
    border-color: var(--brand-teal);
    box-shadow: 0 6px 20px rgba(77, 184, 164, 0.4);
}

/* Mobile Menu Panel - Full Width Slide Down */
body .header-mobile #navbar-collapse1,
body .header-mobile .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    background: var(--brand-white);
    border: none;
    border-top: 4px solid var(--brand-teal);
    border-radius: 0;
    box-shadow: 0 20px 60px rgba(27, 79, 114, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9998;
}

body .header-mobile #navbar-collapse1.collapse {
    display: none;
    height: 0;
    overflow: hidden;
}

body .header-mobile #navbar-collapse1.collapse.in,
body .header-mobile #navbar-collapse1.in {
    display: block;
    height: auto;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile Menu Items - Premium Styling */
body .header-mobile #navbar-collapse1 ul.navbar-nav,
body .header-mobile #navbar-collapse1 ul.nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 12px 0;
    list-style: none;
    float: none;
}

body .header-mobile #navbar-collapse1 ul.navbar-nav > li,
body .header-mobile #navbar-collapse1 ul.nav > li {
    width: 100%;
    margin: 4px 0;
    padding: 0;
    border: none;
    float: none;
    display: block;
}

body .header-mobile #navbar-collapse1 ul.navbar-nav > li > a,
body .header-mobile #navbar-collapse1 ul.nav > li > a {
    display: block;
    width: calc(100% - 32px);
    margin: 0 16px;
    padding: 18px 24px;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    background: #ffffff;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid transparent;
    box-shadow: 0 2px 8px rgba(27, 79, 114, 0.08);
    position: relative;
}

body .header-mobile #navbar-collapse1 ul.navbar-nav > li > a:hover,
body .header-mobile #navbar-collapse1 ul.nav > li > a:hover {
    background: rgba(77, 184, 164, 0.15);
    color: #1a4a68;
    border-left-color: var(--brand-teal);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(77, 184, 164, 0.2);
}

body .header-mobile #navbar-collapse1 ul.navbar-nav > li.current_page_item > a,
body .header-mobile #navbar-collapse1 ul.navbar-nav > li.current-menu-item > a,
body .header-mobile #navbar-collapse1 ul.nav > li.current_page_item > a,
body .header-mobile #navbar-collapse1 ul.nav > li.current-menu-item > a {
    background: rgba(26, 74, 104, 0.95);
    color: #ffffff;
    border-left-color: var(--brand-white);
    box-shadow: none;
    font-weight: 600;
}

/* Active/Current Menu Item */
body .header-mobile .navbar-nav > li.current_page_item > a,
body .header-mobile .navbar-nav > li.current-menu-item > a,
body .header-mobile .navbar-nav > li.active > a {
    background: rgba(26, 74, 104, 0.95);
    color: #ffffff;
    box-shadow: none;
}

.header-mobile .navbar-nav > li.current_page_item > a::before,
.header-mobile .navbar-nav > li.current-menu-item > a::before,
#navbar-collapse1 .navbar-nav > li.current_page_item > a::before,
#navbar-collapse1 .navbar-nav > li.current-menu-item > a::before {
    height: 60%;
    background: var(--brand-white);
}

/* Mobile Dropdown/Submenu */
body .header-mobile .navbar-nav .dropdown-menu,
body .header-mobile .navbar-nav .sub-menu {
    position: static;
    float: none;
    width: 100%;
    padding: 0;
    margin: 0;
    background: var(--brand-light-bg);
    border: none;
    box-shadow: inset 0 2px 8px rgba(27, 79, 114, 0.06);
}

body .header-mobile .navbar-nav .dropdown-menu > li > a,
body .header-mobile .navbar-nav .sub-menu > li > a {
    padding: 14px 28px 14px 48px;
    margin: 0;
    width: 100%;
    color: #2c3e50;
    font-size: 15px;
    background: transparent;
    border-radius: 0;
}

body .header-mobile .navbar-nav .dropdown-menu > li > a:hover,
body .header-mobile .navbar-nav .sub-menu > li > a:hover {
    background: rgba(77, 184, 164, 0.1);
    color: var(--brand-teal);
    padding-left: 56px;
}

/* Mobile Social Icons (if shown) */
.header-mobile .header-social ul {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-mobile .header-social a.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--brand-light-bg);
    color: var(--brand-blue);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.header-mobile .header-social a.social-btn:hover {
    background: var(--brand-green);
    color: var(--brand-white);
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

@media (max-width: 1000px) {
    header#masthead,
    .top-header {
        display: none;
    }
    
    .header-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: sticky;
        top: 0;
        z-index: 10000;
    }
    
    .header-mobile .navbar-toggle,
    .header-mobile button.navbar-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .header-mobile button.navbar-toggle .icon-bar {
        display: block;
        width: 22px;
        height: 2px;
        background-color: #ffffff;
        border-radius: 2px;
    }
    
    .header-mobile button.navbar-toggle .icon-bar + .icon-bar {
        margin-top: 5px;
    }
}

@media (max-width: 576px) {
    .header-mobile {
        padding: 0 16px;
    }
    
    .header-mobile .custom-logo-link img {
        height: 42px;
    }
    
    button.navbar-toggle {
        width: 44px;
        height: 44px;
        padding: 10px;
        border-radius: 10px;
    }
    
    .header-mobile .navbar-collapse,
    #navbar-collapse1 {
        top: 70px !important;
    }
    
    .header-mobile .navbar-nav > li > a,
    #navbar-collapse1 .navbar-nav > li > a {
        padding: 16px 24px;
        margin: 0 12px;
        width: calc(100% - 24px);
        font-size: 15px;
    }
}

/* ========================================
   POST FOOTER & NAVIGATION - PREMIUM STYLING
   ======================================== */

/* Entry Footer */
.entry-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e8ecef;
}

/* Social Share Buttons */
.social-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafb 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(27, 79, 114, 0.08);
}

.social-share .share-label {
    font-weight: 600;
    color: var(--brand-gray);
    font-size: 15px;
    margin-right: 8px;
}

.social-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-share a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.social-share .share-facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0d5dbf 100%);
}

.social-share .share-twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0c85d0 100%);
}

.social-share .share-linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
}

.social-share .share-email {
    background: linear-gradient(135deg, var(--brand-gray) 0%, #3a3a3a 100%);
}

/* Post Navigation */
.post-navigation {
    margin-top: 50px;
    margin-bottom: 50px;
}

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafb 100%);
    border-radius: 12px;
    border: 2px solid #e8ecef;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.post-navigation .nav-previous::before,
.post-navigation .nav-next::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--brand-teal) 0%, #3da897 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.post-navigation .nav-previous:hover::before,
.post-navigation .nav-next:hover::before {
    opacity: 0.05;
}

.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
    border-color: var(--brand-teal);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(77, 184, 164, 0.2);
}

.post-navigation .nav-previous {
    text-align: left;
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation .nav-subtitle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--brand-teal);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.post-navigation .nav-previous .nav-subtitle {
    justify-content: flex-start;
}

.post-navigation .nav-next .nav-subtitle {
    justify-content: flex-end;
}

.post-navigation .nav-subtitle i {
    font-size: 12px;
}

.post-navigation .nav-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--brand-gray);
    line-height: 1.4;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.post-navigation .nav-previous:hover .nav-title,
.post-navigation .nav-next:hover .nav-title {
    color: var(--brand-blue);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .social-share {
        flex-wrap: wrap;
        justify-content: center;
        padding: 16px;
    }
    
    .social-share .share-label {
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
        margin-right: 0;
    }
    
    .post-navigation .nav-links {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        text-align: left;
    }
    
    .post-navigation .nav-next .nav-subtitle {
        justify-content: flex-start;
    }
    
    .post-navigation .nav-subtitle {
        font-size: 12px;
    }
    
    .post-navigation .nav-title {
        font-size: 15px;
    }
}

/* ========================================
   BREADCRUMBS - PREMIUM STYLING
   ======================================== */

.breadcrumbs {
    background: linear-gradient(135deg, var(--brand-light-bg) 0%, #eef4f8 100%);
    padding: 14px 0;
    border-bottom: 1px solid rgba(27, 79, 114, 0.08);
}

.breadcrumbs .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumbs a {
    color: var(--brand-teal);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: var(--brand-blue);
}

.breadcrumbs span,
.breadcrumbs .current {
    color: var(--brand-gray);
    font-size: 13px;
}

.breadcrumbs .separator,
.breadcrumbs i {
    color: var(--brand-gray);
    opacity: 0.5;
    font-size: 10px;
    margin: 0 4px;
}

@media (max-width: 1000px) {
    .breadcrumbs {
        padding: 12px 0;
    }
    
    .breadcrumbs a,
    .breadcrumbs span {
        font-size: 12px;
    }
}

/* ========================================
   HOMEPAGE SECTIONS - NEW 2026 DESIGN
   ======================================== */

/* Value Proposition Section */
.bb-value-prop-section {
    background: linear-gradient(135deg, #1a4a68 0%, #0d2d42 100%);
    padding: 60px 20px !important;
}

.bb-value-prop-section .bb-main-headline {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.bb-stat-boxes {
    margin-top: 40px !important;
}

.bb-stat-box {
    text-align: center;
    padding: 20px 10px;
}

.bb-icon {
    font-size: 42px;
    color: #7dd3c0;
    margin-bottom: 12px;
    text-align: center;
}

.bb-icon i {
    display: inline-block;
}

/* Flip Cards Section */
.bb-services-section {
    background: #ffffff;
}

.bb-flip-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.bb-flip-card {
    background: transparent;
    perspective: 1000px;
    height: 280px;
}

.bb-flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    cursor: pointer;
}

.bb-flip-card:hover .bb-flip-card-inner {
    transform: rotateY(180deg);
}

.bb-flip-card-front,
.bb-flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-sizing: border-box;
}

.bb-flip-card-front {
    background: linear-gradient(145deg, #F8FAFB 0%, #ffffff 100%);
    border: 2px solid #e8f0f4;
    box-shadow: 0 4px 20px rgba(26, 74, 104, 0.08);
}

.bb-flip-card-front i {
    font-size: 48px;
    color: #4db8a4;
    margin-bottom: 20px;
}

.bb-flip-card-front h3 {
    font-size: 1.1rem;
    color: #1a4a68;
    text-align: center;
    margin: 0;
    font-weight: 600;
}

.bb-flip-card-back {
    background: linear-gradient(145deg, #1a4a68 0%, #0d3a54 100%);
    transform: rotateY(180deg);
    color: #ffffff;
}

.bb-flip-card-back p {
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: center;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
}

/* About Section */
.bb-about-section {
    background: #F8FAFB !important;
}

.bb-image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(145deg, #e8f0f4 0%, #d4e3eb 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px dashed #4db8a4;
}

.bb-placeholder-content {
    text-align: center;
    color: #1a4a68;
}

.bb-placeholder-content i {
    font-size: 64px;
    color: #4db8a4;
    margin-bottom: 16px;
    display: block;
}

.bb-placeholder-content span {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.bb-placeholder-content small {
    display: block;
    font-size: 0.85rem;
    color: #6a8a9e;
}

/* Expertise Grid */
.bb-expertise-section {
    background: #ffffff;
}

.bb-expertise-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 20px;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.bb-expertise-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 12px;
    background: #F8FAFB;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.bb-expertise-item:hover {
    background: #1a4a68;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(26, 74, 104, 0.2);
}

.bb-expertise-item i {
    font-size: 28px;
    color: #4db8a4;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.bb-expertise-item:hover i {
    color: #7dd3c0;
}

.bb-expertise-item span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a4a68;
    transition: color 0.3s ease;
}

.bb-expertise-item:hover span {
    color: #ffffff;
}

/* CTA Banner Section */
.bb-cta-section {
    padding: 0 !important;
}

.bb-cta-section > div {
    padding: 0 !important;
    max-width: 100% !important;
}

.bb-cta-banner {
    position: relative;
    background: linear-gradient(135deg, #1a4a68 0%, #0d2d42 50%, #1a4a68 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    padding: 100px 40px;
    text-align: center;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.bb-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(125,211,192,0.1)" stroke-width="0.5"/></svg>') repeat;
    background-size: 60px 60px;
    opacity: 0.5;
}

.bb-cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.bb-cta-content h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 16px;
    font-weight: 700;
}

.bb-cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.bb-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.bb-btn {
    display: inline-block;
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bb-btn-primary {
    background: #4db8a4;
    color: #ffffff;
    border: 2px solid #4db8a4;
}

.bb-btn-primary:hover {
    background: #7dd3c0;
    border-color: #7dd3c0;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(77, 184, 164, 0.4);
    color: #ffffff;
}

.bb-btn-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.bb-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-3px);
    color: #ffffff;
}

/* News Section */
.bb-news-section {
    background: #ffffff;
}

.bb-news-section .wp-block-latest-posts {
    margin-top: 40px;
}

.bb-news-section .wp-block-latest-posts li {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(26, 74, 104, 0.08);
    transition: all 0.3s ease;
    padding: 0;
}

.bb-news-section .wp-block-latest-posts li:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(26, 74, 104, 0.15);
}

.bb-news-section .wp-block-latest-posts__featured-image {
    margin-bottom: 0;
}

.bb-news-section .wp-block-latest-posts__featured-image img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.bb-news-section .wp-block-latest-posts__post-title {
    display: block;
    padding: 20px 20px 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a4a68;
    text-decoration: none;
}

.bb-news-section .wp-block-latest-posts__post-title:hover {
    color: #4db8a4;
}

.bb-news-section .wp-block-latest-posts__post-date {
    display: block;
    padding: 0 20px;
    font-size: 0.85rem;
    color: #6a8a9e;
}

.bb-news-section .wp-block-latest-posts__post-excerpt {
    padding: 12px 20px 20px;
    font-size: 0.9rem;
    color: #4A4A4A;
    line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .bb-expertise-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .bb-flip-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bb-expertise-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .bb-cta-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .bb-value-prop-section .bb-main-headline {
        font-size: 1.5rem;
    }
    
    .bb-stat-boxes {
        flex-wrap: wrap;
    }
    
    .bb-stat-box {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .bb-flip-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .bb-flip-card {
        height: 240px;
    }
    
    .bb-expertise-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .bb-expertise-item {
        padding: 16px 8px;
    }
    
    .bb-expertise-item i {
        font-size: 24px;
    }
    
    .bb-expertise-item span {
        font-size: 0.7rem;
    }
    
    .bb-cta-banner {
        padding: 60px 20px;
    }
    
    .bb-cta-content h2 {
        font-size: 1.6rem;
    }
    
    .bb-cta-content p {
        font-size: 1rem;
    }
    
    .bb-image-placeholder {
        height: 280px;
        margin-bottom: 30px;
    }
    
    .bb-about-section .wp-block-columns {
        flex-direction: column;
    }
    
    .bb-about-section .wp-block-column {
        flex-basis: 100% !important;
    }
}

@media (max-width: 480px) {
    .bb-stat-box {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .bb-expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bb-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .bb-btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

/* ========================================
   GUTENBERG FULL-WIDTH ALIGNMENT SUPPORT
   ======================================== */

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.alignwide {
    width: calc(100% + 100px);
    max-width: calc(100% + 100px);
    margin-left: -50px;
    margin-right: -50px;
}

@media (max-width: 768px) {
    .alignwide {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/* Ensure full-width blocks have proper inner container */
.alignfull > .wp-block-group__inner-container,
.alignfull > .wp-block-cover__inner-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ========================================
   GUTENBERG BUTTON STYLING
   ======================================== */

.wp-block-button__link,
.wp-block-button__link:visited,
.wp-block-button__link:active,
.wp-block-button__link:focus {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    text-align: center;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    color: #ffffff !important;
}

.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Outline button style */
.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link:visited,
.wp-block-button.is-style-outline .wp-block-button__link:active {
    background: transparent !important;
    border: 2px solid #ffffff;
    color: #ffffff !important;
    text-decoration: none !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* ========================================
   GUTENBERG LATEST POSTS STYLING
   ======================================== */

ul.wp-block-latest-posts__list,
.wp-block-latest-posts__list {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;

}

ul.wp-block-latest-posts__list li,
.wp-block-latest-posts__list li,
.wp-block-latest-posts.is-grid li,
.wp-block-latest-posts.is-grid.columns-3 li {
    list-style: none !important;
    list-style-type: none !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 0 !important;
    margin: 0 !important;
    clear: none !important;
}

ul.wp-block-latest-posts__list li::before,
.wp-block-latest-posts__list li::before {
    display: none !important;
    content: none !important;
}

ul.wp-block-latest-posts__list li::marker,
.wp-block-latest-posts__list li::marker {
    display: none !important;
    content: none !important;
    font-size: 0 !important;
}

.wp-block-latest-posts__list li:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Grid layout for latest posts - override WP defaults */
ul.wp-block-latest-posts__list.is-grid,
.wp-block-latest-posts__list.is-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
}

ul.wp-block-latest-posts__list.is-grid.columns-3,
.wp-block-latest-posts__list.is-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 992px) {
    ul.wp-block-latest-posts__list.is-grid,
    ul.wp-block-latest-posts__list.is-grid.columns-3,
    .wp-block-latest-posts__list.is-grid,
    .wp-block-latest-posts__list.is-grid.columns-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    ul.wp-block-latest-posts__list.is-grid,
    ul.wp-block-latest-posts__list.is-grid.columns-3,
    .wp-block-latest-posts__list.is-grid,
    .wp-block-latest-posts__list.is-grid.columns-3 {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* Featured image styling */
.wp-block-latest-posts__featured-image {
    margin: 0 !important;
    overflow: hidden;
    text-align: center;
}

.wp-block-latest-posts__featured-image img {
    width: 100% !important;
    aspect-ratio: 3 / 2 !important;
    object-fit: cover !important;
    display: block !important;
    max-width: none !important;
    max-height: none !important;
}

/* Post title styling */
a.wp-block-latest-posts__post-title,
.wp-block-latest-posts__post-title {
    display: block !important;
    padding: 20px 20px 10px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--brand-blue, #1a4a68) !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    word-wrap: break-word;
}

a.wp-block-latest-posts__post-title:hover,
.wp-block-latest-posts__post-title:hover {
    color: var(--brand-teal, #4db8a4) !important;
    text-decoration: none !important;
}

/* Post date styling */
.wp-block-latest-posts__post-date {
    display: block !important;
    padding: 0 20px !important;
    font-size: 13px !important;
    color: #888 !important;
}

/* Post excerpt styling */
.wp-block-latest-posts__post-excerpt {
    padding: 10px 20px 20px !important;
    font-size: 14px !important;
    color: var(--brand-gray, #4A4A4A) !important;
    line-height: 1.6 !important;
}

/* ========================================
   GUTENBERG COLUMNS EQUAL HEIGHT
   ======================================== */

/* Make columns equal height */
.wp-block-columns {
    display: flex !important;
    flex-wrap: wrap;
    align-items: stretch !important;
}

.wp-block-column {
    display: flex !important;
    flex-direction: column !important;
}

/* Card-style columns (with background) should stretch content */
.wp-block-column.has-background {
    height: 100%;
}

/* Service cards - equal height with flexbox */
.wp-block-group .wp-block-columns .wp-block-column.has-background {
    flex: 1;
    min-height: 100%;
}

/* ========================================
   SERVICE CARD TYPOGRAPHY FIXES
   ======================================== */

/* Override customizer serif fonts for homepage Gutenberg blocks */
.entry-content .wp-block-group__inner-container h2,
.entry-content .wp-block-group__inner-container h3,
.entry-content .wp-block-group__inner-container h4,
.entry-content .wp-block-group__inner-container h5,
.entry-content .wp-block-cover__inner-container h2,
.entry-content .wp-block-cover__inner-container h4,
.entry-content .wp-block-column h3,
.entry-content .wp-block-column h4,
.entry-content .wp-block-column h5 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    font-style: normal !important;
}

/* Service card titles - h3 */
.wp-block-column.has-background h3.wp-block-heading {
    font-weight: 600 !important;
    margin: 0 0 10px 0 !important;
}

/* Service card descriptions - h5 used as paragraph */
.wp-block-column.has-background h5.wp-block-heading {
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* Section subtitles - h4 */
.wp-block-group h4.wp-block-heading.has-text-align-center {
    font-weight: 400 !important;
}
wp-block-button__link.has-background.wp-element-button a,
wp-block-button__link.has-background.wp-element-button a:visited,
wp-block-button__link.has-background.wp-element-button a:active,
wp-block-button__link.has-background.wp-element-button a:focus {
    text-decoration: none !important;
    color: #fff !important;
}

/* ==========================================================================
   WPForms Date/Time Field Styling
   ========================================================================== */

/* Date and Time on same row */
.wpforms-field-datetime .wpforms-field-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 20px;
}

.wpforms-field-datetime .wpforms-field-row .wpforms-one-half {
    flex: 1 !important;
    width: auto !important;
    float: none !important;
}

.wpforms-field-datetime .wpforms-field-row .wpforms-first {
    margin-right: 0 !important;
}
ul.wp-block-latest-posts__list{
    padding-left:0 !important;
}
/* Responsive - stack on mobile */
@media (max-width: 600px) {
    .wpforms-field-datetime .wpforms-field-row {
        flex-wrap: wrap !important;
    }
    
    .wpforms-field-datetime .wpforms-field-row .wpforms-one-half {
        flex: 0 0 100% !important;
        width: 100% !important;
    }
}

/* ==========================================================================
   MOBILE VIEWPORT FIX - Prevent Horizontal Overflow
   ========================================================================== */

@media (max-width: 768px) {
    html {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        position: relative !important;
    }
    
    .alignfull {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .alignfull > .wp-block-group__inner-container,
    .alignfull > .wp-block-cover__inner-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .wp-block-group,
    .wp-block-cover,
    .wp-block-columns {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    :where(.wp-block-group.has-background) {
        padding: 1.25em 1em !important;
    }
}

@media (max-width: 576px) {
    .alignfull > .wp-block-group__inner-container,
    .alignfull > .wp-block-cover__inner-container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    :where(.wp-block-group.has-background) {
        padding: 1em 0.75em !important;
    }
}

/* ========================================
   ADDITIONAL THEME STYLES FROM AEI-NEWS.CSS
   Consolidated from legacy aei-news.css file
   ======================================== */

/* Widget Styles */
.widget ul.categories-wrap {
    padding: 0;
    margin: 0;
    list-style: none;
}

.widget .categories-wrap li {
    padding: 17px 0 0 0;
}

.widget .categories-wrap .cat-item span.cat-name a {
    color: #62646c;
    font-size: 16px;
    text-decoration: none;
    text-transform: capitalize;
}

.widget .categories-wrap span.cat-count {
    position: relative;
    margin-right: 10px;
    float: right;
}

.widget .categories-wrap .cat-count a {
    color: #62646c;
    font-size: 16px;
    text-decoration: none;
}

/* Tags */
.tagcloud {
    position: relative;
    padding: 20px 0 0 0;
}

.tagcloud a {
    border: 1px solid #f4f4f4;
    color: #fff;
    font-size: 14px !important;
    font-weight: 400;
    padding: 4px 12px 4px;
    border-radius: 5px;
    transition: all 500ms ease 0s;
    display: inline-block;
    margin: 0 3px 10px;
}

.tagcloud a:hover,
.tagcloud a:focus {
    background: #000;
    color: #fff !important;
}

#secondary .widget {
    margin-bottom: 20px;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    margin: 0 0 30px;
    word-wrap: break-word;
}

#secondary .widget .widget-title {
    font-size: 30px;
    line-height: 37px;
    margin-top: 0;
    margin-bottom: 20px;
    text-transform: capitalize;
    color: #000;
}

#secondary .widget ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

#secondary .widget ul li {
    padding-bottom: 8px;
    position: relative;
    margin-bottom: 7px;
}

#secondary .widget ul li a {
    color: #62646c;
    text-decoration: none;
}

#secondary .widget ul li a:hover {
    color: #000;
}

/* Search Form */
.search-form {
    width: 100%;
}

.search-form .search-field {
    width: 100%;
    border: 1px solid #eee !important;
    padding: 9px 23px !important;
    outline: 0;
    -webkit-appearance: none;
    font-weight: 400;
    background: #fff;
    height: auto;
    border-radius: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    height: 50px;
}

.search-form .search-field:focus {
    border-color: #000 !important;
}

.search-form .search-submit {
    position: absolute;
    right: 1px;
    top: 0;
    box-shadow: none !important;
    font-size: 16px;
    border-radius: 0 !important;
    background: #000;
    border: none;
    color: #fff;
    height: 50px;
    display: inline-block;
    padding: 15px 13px;
    margin-left: 0;
    line-height: 21px;
    width: 30%;
}

.search-form label {
    width: 71%;
    margin-bottom: 0;
}

.search-form {
    position: relative;
}

/* Article/Post Styles */
article.hentry {
    margin-bottom: 30px;
}

article.hentry .post-bg {
    padding: 30px 0;
    padding-top: 0;
    margin-top: 30px;
}

article header.entry-header h2.entry-title {
    margin-top: 20px;
}

span.edit-link a {
    box-shadow: none;
    padding: 3px 21px;
    margin-top: 20px;
    border-radius: 4px;
    color: #fff;
}

span.cat-links,
span.tags-links {
    display: block;
    margin-bottom: 5px;
}

article .post-bg .entry-footer {
    margin-top: 20px;
}

span.comments-link {
    border: 1px solid #ddd;
    font-size: 13px;
    padding: 3px 10px;
    border-radius: 5px;
}

span.comments-link a {
    color: #000;
}

/* Comment Form */
.comment-respond .comment-form textarea {
    height: 200px;
    padding: 10px;
    background: none;
    border: none;
    border: 1px solid #eee;
    outline: 0 !important;
    transition: all 0.5s ease-out 0s;
    width: 100%;
    border-radius: 4px;
}

.comment-respond .comment-form input {
    background: none;
    border: none;
    outline: 0;
    font-size: 16px;
    padding: 0;
    border: 1px solid #eee;
    box-shadow: none;
    -webkit-transition: all 0.3s;
    border-radius: 4px;
    height: 40px;
    width: 100%;
    padding: 0 10px;
    transition: all 0.5s ease-out 0s;
}

.comment-respond .comment-form input[type="submit"] {
    font-weight: normal;
    text-transform: capitalize;
    width: auto;
    color: #fff;
    margin-top: 20px;
    height: auto;
}

header.entry-header {
    margin-bottom: 40px;
}

a.post-edit-link {
    display: none;
}

.archive article.hentry {
    margin-bottom: 50px;
}

.single-post ul.post-meta {
    border-top: 0;
}

/* Dropdown Submenu */
ul.dropdown-menu.dropdown-sub {
    padding: 0;
    border-radius: 0;
    margin: 0;
    right: auto;
    left: 100%;
    top: 0;
    margin-left: 0px;
}

.not-found .widget {
    margin-top: 35px;
}

/* Logo */
a.custom-logo-link img {
    height: 80px;
    width: auto;
    position: relative;
    top: 0;
    margin-top: 0;
    margin-bottom: 0;
}

/* Post Meta */
ul.post-meta li {
    display: inline-block;
    margin-right: 10px;
}

ul.post-meta li {
    text-transform: uppercase;
    font-size: 12px;
}

ul.post-meta li:last-child {
    border: none;
}

ul.post-meta li a {
    color: #b9b9b9;
}

ul.post-meta {
    padding: 0 !important;
    margin: 0 !important;
}

ul.post-meta {
    margin-bottom: 13px;
}

/* Navigation Links */
.nav-links {
    width: 100%;
    display: table;
}

.nav-links .nav-previous {
    width: 50%;
    display: inline-block;
}

.nav-links .nav-next {
    width: 50%;
    display: inline-block;
    text-align: right;
}

.nav-links .nav-previous,
.nav-links .nav-next {
    vertical-align: middle;
    float: none;
}

.nav-links a,
.nav-links span {
    padding: 6px 6px;
    margin-right: 5px;
    display: inline-block;
    font-size: 16px;
    color: #62646c;
    position: relative;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

span.nav-subtitle {
    color: #000;
    font-family: "Lora";
    font-weight: 400;
}

.nav-links a:hover,
.nav-links span:hover {
    color: #000;
}

.nav-links a {
    background: #f7f7f7;
}

.nav-links a:focus {
    background: #000;
}

/* Page Header */
.page-header {
    padding-bottom: 5px;
    margin-top: 0;
    margin-bottom: 20px !important;
    border-bottom: none;
}

.page-header h1 {
    margin-top: 0;
    font-size: 37px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

/* Calendar Widget */
div#calendar_wrap table {
    background-color: transparent;
    width: 100%;
}

#wp-calendar caption {
    background-color: #000;
    color: #ffffff;
    padding: 10px;
}

#wp-calendar thead tr th {
    text-align: center;
}

table th {
    border: 1px solid #dddddd;
    padding: 8px;
    line-height: 20px;
    text-align: center;
    vertical-align: top;
}

table td {
    border: 1px solid #dddddd;
    padding: 8px;
    line-height: 20px;
    text-align: center;
    vertical-align: top;
}

#wp-calendar tbody tr td {
    text-align: center;
}

#wp-calendar tr th {
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-right: 0;
    border-bottom: 0;
}

#wp-calendar tr th:last-child {
    border-right: 1px solid rgba(0, 0, 0, 0.2);
}

#wp-calendar tr td {
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-right: 0;
    border-bottom: 0;
}

#wp-calendar tr td a {
    font-weight: bold;
}

#wp-calendar tr td:last-child {
    border-right: 1px solid rgba(0, 0, 0, 0.2);
}

#wp-calendar tfoot tr td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

#secondary #wp-calendar tr td {
    border: 1px solid #eee;
}

#secondary #wp-calendar tr th {
    border: 1px solid #eee;
}

/* Entry Content */
article iframe {
    width: 100%;
}

span.edit-link {
    display: block;
}

/* Password Protected Posts */
.post-password-form {
    width: 100%;
}

.post-password-form input[type="password"] {
    width: 100%;
    border: 2px solid #eee;
    padding: 7px 23px;
    outline: 0;
    -webkit-appearance: none;
    font-weight: 400;
    background: #fff;
    height: auto;
    border-radius: 4px;
    margin-top: 15px;
}

.post-password-form input[type="password"]:focus {
    border: 2px solid #000 !important;
}

.post-password-form input[type="submit"] {
    box-shadow: none !important;
    font-size: 15px;
    border-radius: 4px;
    background: #000;
    transition: all 0.5s ease-in-out 0s;
    border: none;
    color: #fff;
    padding: 13px 17px;
    margin-left: -6px;
    line-height: 17px;
    width: 17%;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* Archive Posts Grid */
.archive-posts article {
    vertical-align: top;
    margin: 0 15px;
    width: calc(25% - 30px);
    margin-bottom: 30px;
}

.archive-posts {
    display: flex;
    flex-flow: row wrap;
}

.archive-posts article .post-thumbnail {
    display: block;
    overflow: hidden;
    height: 250px;
    position: relative;
}

.archive-posts article .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

article.hentry h2.entry-title a {
    line-height: 24px !important;
    font-size: 16px;
    display: block;
}

article .entry-meta {
    display: none;
}

article header.entry-header {
    margin-bottom: 10px;
}

/* 404 Page */
.error-404 header.page-header h2 {
    font-size: 74px;
}

section.error-404.not-found.section {
    padding: 70px 0;
}

.not-found .page-header h1 {
    padding: 0 !important;
    margin: 0 !important;
}

/* Breadcrumbs */
.home .breadcrumbs {
    display: none;
}

.breadcrumbs {
    padding: 0px;
}

.breadcrumbs:has(.current) {
    padding: 20px 0px;
}

.page-template-template-home .breadcrumbs,
.home .breadcrumbs {
    display: none;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: white;
    z-index: 1000;
    background: #567b95;
    height: 40px;
    width: 40px;
    border-radius: 0.25rem;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0px 0px 3px #fff;
    display: none;
    transition: .3s ease;
}

#back-to-top:hover {
    color: white;
    background: #286090;
}

#back-to-top i {
    height: 100%;
    width: 100%;
    align-items: center;
    display: flex;
    justify-content: center;
}

@media screen and (max-width: 1208px) {
    #back-to-top {
        bottom: 50px;
    }
}

@media screen and (max-width: 600px) {
    #back-to-top {
        bottom: 50px;
        height: 30px;
        width: 30px;
    }
}

/* ========================================
   HOME PAGE TRANSPARENT MASTHEAD
   Critical for home page design
   ======================================== */

/* Match homepage masthead spacing to other pages */
.home #content,
.home #primary {
    padding-top: 0;
}

/* Homepage transparent nav effect */
.home header#masthead {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    box-shadow: none;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
}


/* Hide logo on homepage initially - use opacity for smooth transition */
.home header#masthead .header-logo {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Remove background from navbar container */
.home header#masthead .navbar {
    background: transparent;
}

/* Remove background from navbar-nav and push to right */
body.home header#masthead ul#menu-primary-menu.navbar-nav,
body.home header#masthead ul.navbar-nav.navbar-center,
body.home header#masthead nav.navbar ul.navbar-nav {
    background: transparent;
    margin: 0 0 0 auto !important;
}

/* Ensure navbar-collapse is flex-end aligned */
body.home header#masthead #navbar-collapse,
body.home header#masthead nav.navbar #navbar-collapse {
    display: flex !important;
    justify-content: flex-end;
    flex-grow: 1;
}

/* 85% transparent white background on nav list items */
.home header#masthead #menu-primary-menu li {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 6px;
    margin: 0 2px;
}

/* Translucent background only on individual nav link a tags */
.home header#masthead #menu-primary-menu li a {

    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 6px;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

/* Hover state - lighter aqua on li */

.home header#masthead #menu-primary-menu li:hover a {
    color: #ffffff;
}

/* Current/active page - dark blue on li */
.home header#masthead #menu-primary-menu li.current-menu-item,
.home header#masthead #menu-primary-menu li.current_page_item,
.home header#masthead #menu-primary-menu li.current-menu-ancestor {
    background: rgba(26, 74, 104, 0.95);
}

.home header#masthead #menu-primary-menu li.current-menu-item a,
.home header#masthead #menu-primary-menu li.current_page_item a,
.home header#masthead #menu-primary-menu li.current-menu-ancestor a {
    color: #ffffff;
}

/* After scrolling 200px: solid white background like interior pages */
.home header#masthead.home-scrolled {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.home header#masthead.home-scrolled .navbar {
    background: #ffffff;
}

.home header#masthead.home-scrolled .navbar-nav {
    background: transparent;
}

/* Remove translucent backgrounds from nav items after scroll */
.home header#masthead.home-scrolled #menu-primary-menu li {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.home header#masthead.home-scrolled #menu-primary-menu li a {
    background: transparent;
    color: #2c3e50;
    padding: 8px 16px;
}

/* Hover state after scroll - match interior pages */
.home header#masthead.home-scrolled #menu-primary-menu li a:hover {
    background: rgba(125, 211, 192, 0.1);
    color: var(--brand-teal);
}

/* Current/active page after scroll - match interior pages */
.home header#masthead.home-scrolled #menu-primary-menu li.current-menu-item a,
.home header#masthead.home-scrolled #menu-primary-menu li.current_page_item a,
.home header#masthead.home-scrolled #menu-primary-menu li.current-menu-ancestor a {
    background: rgba(26, 74, 104, 0.05);
    color: var(--brand-blue);
    border-bottom: 2px solid var(--brand-teal);
}

/* Show logo after scroll with smooth transition */
.home header#masthead.home-scrolled .header-logo {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   SINGLE POST ENHANCED READABILITY
   ======================================== */

/* Ensure proper text rendering */
html {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Body overflow fix */
body {
    overflow-x: hidden;
}

/* Content area list styling - preserve WordPress defaults */
.content-area ul:not(.wp-block-latest-posts__list) {
    list-style: disc;
    padding-left: 20px;
}

/* WP Block search button */
.wp-block-search__button {
    background: #000;
}

/* WP Block latest comments */
ol.wp-block-latest-comments {
    padding: 0;
}

/* Single post content styling - enhanced readability */
.single-post .entry-content,
.single .entry-content {
    font-size: 19px;
    line-height: 1.8;
    color: #333;
}

.single-post .entry-content p,
.single .entry-content p {
    font-size: 19px;
    line-height: 1.8;
    margin-bottom: 1.5em;
}

.single-post .entry-content > p:first-of-type,
.single .entry-content > p:first-of-type {
    font-size: 21px;
    line-height: 1.7;
    color: #2d3748;
}

/* Remove drop cap styling */
.single-post .entry-content > p:first-of-type::first-letter,
.single .entry-content > p:first-of-type::first-letter {
    float: none;
    font-size: inherit;
    line-height: inherit;
    margin: 0;
    padding: 0;
    font-weight: inherit;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    color: inherit;
}

/* Single post headings */
.single-post .entry-content h2,
.single .entry-content h2 {
    font-size: 28px;
    margin-top: 2em;
    margin-bottom: 0.6em;
    color: #1a1a1a;
    line-height: 1.3;
}

.single-post .entry-content h3,
.single .entry-content h3 {
    font-size: 24px;
    margin-top: 1.75em;
    margin-bottom: 0.5em;
    color: #2d3748;
    line-height: 1.35;
}

.single-post .entry-content h4,
.single .entry-content h4 {
    font-size: 20px;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #374151;
}

/* Single post lists */
.single-post .entry-content ul,
.single-post .entry-content ol,
.single .entry-content ul,
.single .entry-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
    font-size: 19px;
}

.single-post .entry-content li,
.single .entry-content li {
    margin-bottom: 0.5em;
    line-height: 1.75;
    font-size: 19px;
}

/* Single post blockquotes */
.single-post .entry-content blockquote,
.single .entry-content blockquote {
    margin: 2em 0;
    padding: 1.5em 2em;
    border-left: 4px solid #567b95;
    background: #f8f9fa;
    font-style: italic;
    color: #4a5568;
    border-radius: 0 8px 8px 0;
}

.single-post .entry-content blockquote p:last-child,
.single .entry-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Single post images */
.single-post .entry-content img,
.single .entry-content img {
    border-radius: 8px;
    margin: 1em 0;
}

.single-post .entry-content figure,
.single .entry-content figure {
    margin: 1.25em 0;
}

.single-post .entry-content .wp-block-image,
.single .entry-content .wp-block-image {
    margin: 1.25em 0;
}

.single-post .entry-content figcaption,
.single .entry-content figcaption {
    text-align: center;
    font-size: 15px;
    color: #6b7280;
    margin-top: 0.75em;
    font-style: italic;
}

/* Single post links */
.single-post .entry-content a,
.single .entry-content a {
    color: #567b95;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.single-post .entry-content a:hover,
.single .entry-content a:hover {
    color: #3d5a6f;
}

/* Single post code */
.single .entry-content code {
    background: #f3f4f6;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
    color: #e11d48;
}

.single .entry-content pre {
    background: #1f2937;
    color: #e5e7eb;
    padding: 1.5em;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2em 0;
}

.single .entry-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Single post tables */
.single .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    font-size: 0.95rem;
}

.single .entry-content th {
    background: #567b95;
    color: #fff;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}

.single .entry-content td {
    padding: 12px 15px;
    border-bottom: 1px solid #e5e7eb;
}

.single .entry-content tr:nth-child(even) {
    background: #f9fafb;
}

/* Single post horizontal rule */
.single .entry-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #d1d5db, transparent);
    margin: 3em 0;
}

/* Single post title */
.single header.entry-header h1.entry-title {
    font-size: 2.25rem;
    line-height: 1.25;
    margin-bottom: 0.5em;
    color: #111;
}

/* Single post meta */
.single ul.post-meta {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1.5em;
}

.single ul.post-meta li {
    margin-right: 1em;
}

/* Single post featured image */
.single .post-thumbnail img {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Single post navigation */
.single nav.post-navigation {
    margin-top: 3em;
    padding-top: 2em;
    border-top: 1px solid #e5e7eb;
}

.single nav.post-navigation .nav-subtitle {
    font-size: 0.85rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.single nav.post-navigation .nav-title {
    color: #1a1a1a;
    font-weight: 600;
}

/* Single post entry footer */
.single footer.entry-footer {
    margin-top: 2.5em;
    padding-top: 1.5em;
    border-top: 1px solid #e5e7eb;
}

/* Mobile responsive for single posts */
@media (max-width: 768px) {
    .single .entry-content {
        font-size: 1.1rem;
    }
    
    .single .entry-content > p:first-of-type {
        font-size: 1.15rem;
    }
    
    .single .entry-content h2 {
        font-size: 1.5rem;
        margin-top: 2em;
    }
    
    .single .entry-content h3 {
        font-size: 1.25rem;
    }
    
    .single header.entry-header h1.entry-title {
        font-size: 1.75rem;
    }
    
    .single .entry-content blockquote {
        padding: 1em 1.25em;
        margin: 1.5em 0;
    }
}