:root {
    --primary-color: #013061;
    /* Deep Blue */
    --primary-color-rgb: 1, 48, 97;
    --secondary-color: #0dcaf0;
    /* Using the user's cyan color as highlight */
    --secondary-color-rgb: 13, 202, 240;
    --text-primary: #013061;
}

[data-bs-theme="light"] {
    --primary-color: #013061;
}

.btn-gradient {
    background: linear-gradient(90deg, #013061 0%, #004a8f 100%) !important;
    border: none !important;
    color: #fff !important;
}

.btn-outline-secondary {
    border-color: var(--secondary-color) !important;
    color: var(--secondary-color) !important;
}

.btn-outline-secondary:hover {
    background-color: var(--secondary-color) !important;
    color: #fff !important;
}

.text-primary {
    color: #013061 !important;
}

.bg-primary {
    background-color: #013061 !important;
}

.bg-secondary-theme {
    background-color: var(--secondary-color) !important;
}

.text-secondary-theme {
    color: var(--secondary-color) !important;
}

/* =====================================================
   EZ RANKINGS SECTION TITLE STYLES
   Reusable across all shortcodes
   ===================================================== */
.section-title-ez {
    color: #013061 !important;
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    font-family: 'Poppins', 'Satoshi', sans-serif;
    padding-bottom: 13px;
    line-height: 1.3;
}

.section-title-ez span {
    color: #0dcaf0;
    /* Cyan accent for highlighted words */
}

.section-subtitle-ez {
    color: #666;
    text-align: center;
    font-size: 16px;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .section-title-ez {
        font-size: 28px;
        padding-bottom: 10px;
    }

    .section-subtitle-ez {
        font-size: 14px;
    }
}

/* Header & Footer EZ Style */
header .navbar {
    background: #fff !important;
    border-bottom: 3px solid var(--secondary-color) !important;
}

.header-top .bg-primary-soft {
    background-color: #013061 !important;
}

.header-top,
.header-top * {
    color: #fff !important;
}

.header-top a:hover {
    color: var(--secondary-color) !important;
}

footer .section-footer .container-fluid,
footer .section-footer {
    background-color: #013061 !important;
}

footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6,
footer p,
footer span,
footer li,
footer a {
    color: #fff !important;
}

footer a:hover {
    color: var(--secondary-color) !important;
}

/* =====================================================
   FOOTER BADGE SECTION - EZ Rankings Style
   ===================================================== */


.footer-badge {
    padding: 10px 0;
}

.footer-badge .badge-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
    min-height: 60px;
}

.footer-badge .badge-item:hover {
    background-color: rgba(255, 255, 255, 0.12);
    transform: scale(1.05);
}

.footer-badge .badge-item img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
    filter: grayscale(20%) brightness(1.1);
    transition: filter 0.3s ease;
}

.footer-badge .badge-item:hover img {
    filter: grayscale(0%) brightness(1.2);
}

/* Mobile responsiveness for badge section */
@media (max-width: 767px) {
    .footer-badge-section {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .footer-badge {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        padding: 10px 15px;
        min-width: max-content;
    }

    .footer-badge .badge-item {
        flex-shrink: 0;
        padding: 6px 10px;
        min-height: 50px;
    }

    .footer-badge .badge-item img {
        max-height: 40px;
    }
}


/* EZ Rankings Hero Style */
.shortcode-hero-banner-style-4 .display-3 {
    font-size: 3.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
}

.trust-indicators {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.floating-card-ez {
    animation: bounce 3s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Service Grid EZ Style */
.card-service-ez {
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.card-service-ez:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(1, 48, 97, 0.1);
    border-color: var(--secondary-color);
}

/* Process Steps EZ Style */
.process-step-ez {
    position: relative;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    border: 1px solid #eee;
}

.step-number-ez {
    position: absolute;
    top: -20px;
    left: 30px;
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 50%;
    font-size: 1.2rem;
}

/* Features Style 2 - Why Choose Us refined */
[data-bs-theme="light"] .shortcode-features-style-2 .container-fluid {
    background-color: #f8f9fa !important;
}

[data-bs-theme="light"] .shortcode-features-style-2 h2,
[data-bs-theme="light"] .shortcode-features-style-2 p,
[data-bs-theme="light"] .shortcode-features-style-2 li p,
[data-bs-theme="light"] .shortcode-features-style-2 strong {
    color: #013061 !important;
}

[data-bs-theme="light"] .shortcode-features-style-2 .phase-item svg path:first-child {
    fill: #013061 !important;
}

[data-bs-theme="light"] .shortcode-features-style-2 .tag-spacing {
    background: #013061 !important;
    color: #fff !important;
}

/* Agency Information Section Styles */
.shortcode-agency-intro {
    background-color: #fff;
}

.shortcode-agency-intro h2 {
    color: #013061 !important;
    letter-spacing: -0.5px;

}

.agency-image-float {
    max-width: 450px;
    width: 100%;
}

.agency-text .ck-content {
    color: #333 !important;
    font-size: 1.1rem !important;
    text-align: justify;
}

.text-justify {
    text-align: justify;
}

@media (max-width: 991px) {
    .agency-image-float {
        float: none !important;
        margin-left: 0 !important;
        max-width: 100%;
        margin-bottom: 30px !important;
    }

    .shortcode-agency-intro h2 {
        font-size: 1.8rem;
    }
}

/* Proposal Form Section Styles */
.shortcode-proposal-form h2 {
    color: #fff !important;
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.shortcode-proposal-form .proposal-input-group {
    background: #fff;
    padding: 5px;
    border-radius: 50px;
}

.shortcode-proposal-form .btn-secondary-yellow {
    background-color: var(--secondary-color) !important;
    color: #fff !important;
    font-size: 0.9rem;
    padding: 12px 30px;
    transition: all 0.3s ease;
}

.shortcode-proposal-form .form-control::placeholder,
.shortcode-proposal-form .form-select {
    color: #666;
    font-size: 0.95rem;
}

/* Track Record Section Styles */
.shortcode-track-record .track-record-card {
    border: none !important;
}

.shortcode-track-record .card-content-part {
    background-color: #ffffff !important;
}

.shortcode-track-record .card-content-part * {
    color: #013061 !important;
    /* Keep text dark for readability on bright cyan */
}

.shortcode-track-record .metric-value {
    color: #013061 !important;
}

.shortcode-track-record .badge {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    background-color: #fff !important;
    color: #013061 !important;
}

/* Strategic Solutions Section Styles */
.strategic-solutions-ez .svg-container-ez {
    filter: drop-shadow(0 10px 30px rgba(1, 48, 97, 0.1));
}

.strategic-solutions-ez .solution-content-wrapper-ez {
    border-left: 8px solid var(--secondary-color) !important;
}

.strategic-solutions-ez .svg-segment-ez.active {
    stroke: var(--primary-color) !important;
    stroke-width: 5px !important;
    filter: brightness(1.1);
}

/* =====================================================
   MULTI-LEVEL MEGA MENU - CSS ONLY FLYOUT
   Bypassing Bootstrap Popper for nested menus
   ===================================================== */
@media (min-width: 992px) {

    /* Level 2: First dropdown (below Digital Marketing) */
    .navbar .nav-item.dropdown>.dropdown-menu {
        background-color: #013061 !important;
        border: none;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
        padding: 0;
        min-width: 260px;
        margin-top: 0;
    }

    /* All dropdown items styling */
    .navbar .dropdown-menu .nav-item {
        position: relative !important;
        /* CRITICAL for flyout anchor */
    }

    .navbar .dropdown-menu .nav-item>.nav-link {
        color: #ffffff !important;
        padding: 14px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        font-weight: 500;
        font-size: 0.95rem;
        transition: all 0.2s ease;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: transparent;
    }

    .navbar .dropdown-menu .nav-item:last-child>.nav-link {
        border-bottom: none;
    }

    .navbar .dropdown-menu .nav-item>.nav-link:hover,
    .navbar .dropdown-menu .nav-item:hover>.nav-link {
        background-color: #0dcaf0 !important;
        color: #013061 !important;
        padding-left: 30px;
    }

    /* Level 3+: Nested dropdowns - FORCE FLYOUT TO THE RIGHT */
    .navbar .dropdown-menu .dropdown-menu {
        position: absolute !important;
        left: 100% !important;
        /* Fly out to the RIGHT */
        top: 0 !important;
        /* Align with the top of the parent item */
        margin: 0 !important;
        margin-left: -2px !important;
        /* Slight overlap for seamless feel */
        min-width: 260px;
        border-radius: 0 10px 10px 10px;
        background-color: #004a8f !important;
        /* Slightly lighter blue */
        box-shadow: 10px 5px 25px rgba(0, 0, 0, 0.15);
        z-index: 9999 !important;

        /* HIDDEN BY DEFAULT - CSS controls visibility, NOT Bootstrap */
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* Show Level 3 on HOVER - Pure CSS, no Popper needed */
    .navbar .dropdown-menu .nav-item.dropend:hover>.dropdown-menu,
    .navbar .dropdown-menu .nav-item.dropdown:hover>.dropdown-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        animation: flyoutRight 0.25s ease-out forwards;
    }

    /* Hide Bootstrap's default ::after arrow */
    .navbar .dropdown-toggle::after {
        display: none !important;
    }

    /* Animation */
    @keyframes flyoutRight {
        from {
            opacity: 0;
            transform: translateX(-15px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

.footer-badge-section {
    background-color: #013061 !important;
    /* Slightly darker than footer */
    /* border-top: 3px solid #d4a017; */
    /* Gold border like EZ Rankings */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}