/* Custom CSS Fixes for Insurance Broker Resources */

/* Fix navigation menu - make active/current items GREY (not white/invisible) */
/* Using ultra-specific selectors to override everything */

/* Desktop menu - current/active items */
.ast-builder-menu-1 .menu-item.current-menu-item > .menu-link,
.ast-builder-menu-1 .menu-item.current-menu-item > a.menu-link,
.main-header-menu .current-menu-item > .menu-link,
.main-header-menu .current-menu-item > a.menu-link,
.main-header-menu .current-menu-ancestor > .menu-link,
.main-header-menu .current-menu-ancestor > a.menu-link,
.ast-main-header-bar-alignment .menu-item.current-menu-item > .menu-link,
.main-navigation .menu-item.current-menu-item > .menu-link,
.ast-builder-menu .menu-item.current-menu-item > .menu-link {
    color: #666666 !important; /* Grey color - visible on blue background */
    opacity: 1 !important;
}

/* Hover state for menu items */
.ast-builder-menu-1 .menu-item > .menu-link:hover,
.ast-builder-menu-1 .menu-item > a.menu-link:hover,
.main-header-menu .menu-item > .menu-link:hover,
.main-header-menu .menu-item > a.menu-link:hover {
    color: #666666 !important; /* Grey color on hover */
    opacity: 1 !important;
}

/* Ensure regular (non-active) menu items stay black */
.ast-builder-menu-1 .menu-item > .menu-link,
.ast-builder-menu-1 .menu-item > a.menu-link {
    color: #000000 !important; /* Black text */
    opacity: 1 !important;
}

/* Override any link color inheritance */
.ast-builder-menu-1 a,
.main-header-menu a {
    text-decoration: none !important;
}

/* Mobile menu items */
@media (max-width: 921px) {
    .ast-builder-menu-mobile .main-navigation .menu-item.current-menu-item > .menu-link,
    .ast-builder-menu-mobile .main-navigation .menu-item.current-menu-item > a.menu-link,
    .ast-mobile-header-content .menu-item.current-menu-item > .menu-link {
        color: #060097 !important; /* Blue for mobile */
        opacity: 1 !important;
    }
}

/* ========================================
   MODERN UI ENHANCEMENTS - Types of Insurance Page
   ======================================== */

/* Page background gradient */
.post-1028 .site-content {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%) !important;
    padding: 40px 0 !important;
}

/* Main heading style - BLACK TEXT */
.post-1028 .elementor-heading-title {
    color: #000000 !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
    margin-bottom: 30px !important;
}

/* Card-style containers for insurance types */
.post-1028 .elementor-widget-text-editor {
    background: white !important;
    padding: 30px !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(59, 130, 246, 0.1) !important;
    margin: 20px 0 !important;
    transition: all 0.3s ease !important;
}

.post-1028 .elementor-widget-text-editor:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}

/* Text styling - BLACK TEXT */
.post-1028 .elementor-widget-text-editor p {
    font-size: 16px !important;
    line-height: 1.8 !important;
    color: #000000 !important;
    font-weight: 400 !important;
}

/* Section headings (Property and Casualty, Life, Health) - BLACK TEXT */
.post-1028 .elementor-widget-heading h2 {
    color: #000000 !important;
    position: relative !important;
    padding-left: 20px !important;
    margin-top: 40px !important;
}

.post-1028 .elementor-widget-heading h2:before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 5px !important;
    height: 30px !important;
    background: linear-gradient(180deg, #3b82f6 0%, #1e3a8a 100%) !important;
    border-radius: 3px !important;
}

/* Add subtle animation to main content */
.post-1028 .entry-content {
    animation: fadeInUp 0.6s ease-out !important;
}

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

/* All containers now use the same structure - no special fixes needed */

/* Responsive improvements */
@media (max-width: 768px) {
    .post-1028 .elementor-widget-text-editor {
        padding: 20px !important;
        margin: 15px 0 !important;
    }

    .post-1028 .elementor-heading-title {
        font-size: 28px !important;
    }
}

/* ========================================
   MODERN UI ENHANCEMENTS - Carriers Page
   ======================================== */

/* Page background gradient */
.post-354 .site-content {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%) !important;
    padding: 40px 0 !important;
}

/* Center all content with max-width */
.post-354 .e-con-inner {
    max-width: 1000px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
}

/* Main heading style - BLACK TEXT */
.post-354 .elementor-heading-title {
    color: #000000 !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
    margin-bottom: 30px !important;
}

/* Card-style containers for text content */
.post-354 .elementor-widget-text-editor {
    background: white !important;
    padding: 30px !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(59, 130, 246, 0.1) !important;
    margin: 20px 0 !important;
    transition: all 0.3s ease !important;
}

.post-354 .elementor-widget-text-editor:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}

/* Text styling - BLACK TEXT */
.post-354 .elementor-widget-text-editor p {
    font-size: 16px !important;
    line-height: 1.8 !important;
    color: #000000 !important;
    font-weight: 400 !important;
}

/* Carrier logo containers */
.post-354 .elementor-widget-image {
    background: white !important;
    padding: 30px !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(59, 130, 246, 0.1) !important;
    margin: 20px 0 !important;
    transition: all 0.3s ease !important;
}

.post-354 .elementor-widget-image:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}

/* Section headings - BLACK TEXT with accent bar */
.post-354 .elementor-widget-heading h2 {
    color: #000000 !important;
    position: relative !important;
    padding-left: 20px !important;
    margin-top: 40px !important;
    margin-bottom: 10px !important;
}

.post-354 .elementor-widget-heading h2:before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 5px !important;
    height: 30px !important;
    background: linear-gradient(180deg, #3b82f6 0%, #1e3a8a 100%) !important;
    border-radius: 3px !important;
}

/* Remove underline from carrier links */
.post-354 .elementor-widget-heading h2 a {
    text-decoration: none !important;
    color: #000000 !important;
}

/* Add spacing between each carrier */
.post-354 .elementor-element-carriers-all .elementor-widget-heading {
    margin-top: 50px !important;
}

.post-354 .elementor-element-carriers-all .elementor-widget-heading:first-child {
    margin-top: 0 !important;
}

.post-354 .elementor-element-carriers-all .elementor-widget-image {
    margin-bottom: 30px !important;
}

/* Add subtle animation to main content */
.post-354 .entry-content {
    animation: fadeInUp 0.6s ease-out !important;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .post-354 .elementor-widget-text-editor,
    .post-354 .elementor-widget-image {
        padding: 20px !important;
        margin: 15px 0 !important;
    }

    .post-354 .elementor-heading-title {
        font-size: 28px !important;
    }
}

/* ========================================
   SOCIAL MEDIA ICONS - Footer Fix
   ======================================== */

/* Make social icons smaller and group them together */
.footer-social-inner-wrap {
    display: flex !important;
    gap: 15px !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Force ALL social icons to same size */
.footer-social-item,
.ast-builder-social-element {
    margin: 0 !important;
    padding: 0 !important;
    width: 24px !important;
    height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.footer-social-item svg,
.ast-builder-social-element svg,
.ahfb-svg-iconset svg,
.ast-facebook svg,
.ast-twitter svg,
.ast-instagram svg,
.ast-linkedin svg {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
}

/* Force the span containers to be same size too */
.ahfb-svg-iconset {
    width: 24px !important;
    height: 24px !important;
    overflow: hidden !important;
}

/* Nuclear option - force Facebook icon smaller with transform */
.ast-facebook,
.ast-facebook svg,
.ast-facebook .ahfb-svg-iconset,
.ast-facebook .ahfb-svg-iconset svg {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    transform: scale(1) !important;
    transform-origin: center !important;
}

/* Ensure footer container doesn't allow overflow */
.ast-footer-social-1-wrap,
.footer-social-inner-wrap {
    overflow: hidden !important;
}

/* Override any inline styles on social links */
a.ast-facebook,
a.ast-twitter,
a.ast-instagram,
a.ast-linkedin {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
}

/* ========================================
   SITE TITLE STYLING
   ======================================== */

/* Show and style the site title */
.site-title {
    display: block !important;
    visibility: visible !important;
    font-size: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

.site-title a {
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

.site-title a:hover {
    color: #ffcd57 !important;
}

/* Hide site description */
.site-description {
    display: none !important;
}

/* Remove any pseudo-elements that might add unwanted text */
.site-branding::before,
.site-branding::after,
.ast-site-identity::before,
.ast-site-identity::after {
    content: "" !important;
    display: none !important;
}
