.header-section,
.header-section .header-inner,
.header-section .container,
.header-section .row,
.menu-column-area,
.site-main-menu,
.site-main-menu > ul {
    overflow: visible;
}

.site-main-menu > ul {
    flex-wrap: nowrap;
    align-items: center;
}

.site-main-menu > ul > li > a:not(.link-get_a_proposal) {
    padding: 28px 7px !important;
    font-size: 14.5px;
    white-space: nowrap;
}

.site-main-menu > ul > li.has-mega {
    position: static;
}

.site-main-menu > ul > li.has-mega > a .menu-text {
    gap: 6px;
}

.site-main-menu > ul > li.has-mega > a .menu-text i {
    font-size: 9px;
    opacity: 0.85;
    transition: transform 0.2s ease;
}

.site-main-menu > ul > li.has-mega:hover > a .menu-text i {
    transform: rotate(180deg);
}

/* Panel wrapper: fixed under the header, hidden until hover/focus */
.sdm-mega {
    position: fixed;
    left: 50%;
    z-index: 100000;
    width: min(1240px, calc(100vw - 32px));
    padding-top: 12px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

/* Invisible bridge so the pointer can move from the link into the panel */
.sdm-mega::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 24px;
}

.site-main-menu > ul > li.has-mega:hover > .sdm-mega,
.site-main-menu > ul > li.has-mega:focus-within > .sdm-mega {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.sdm-mega-panel {
    padding: 18px;
    border: 1px solid #e6ebf2;
    border-top: 3px solid #f6af3e;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 48px -16px rgba(12, 23, 48, 0.22);
}

.sdm-mega-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) 248px;
    gap: 12px;
    align-items: stretch;
}

.sdm-mega--studies .sdm-mega-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) 264px;
}

/* Link groups */
.sdm-mega-col {
    padding: 20px 16px 14px;
    border: 1px solid #edf1f6;
    border-radius: 14px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sdm-mega-col:hover {
    border-color: #d9e2ec;
    box-shadow: 0 6px 18px -10px rgba(12, 23, 48, 0.18);
}

.sdm-mega-col h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f3f7;
    color: #0c1730;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.sdm-mega-col h3 .sdm-ic {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 14px;
}

.sdm-ic-search { color: #0369a1; background: #e0f2fe; }
.sdm-ic-ads { color: #0f766e; background: #ccfbf1; }
.sdm-ic-social { color: #be185d; background: #fce7f3; }
.sdm-ic-leads { color: #a16207; background: #fef3c7; }

.sdm-mega-col a {
    position: relative;
    display: block;
    padding: 8px 0;
    color: #475569;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
    transition: color 0.15s ease, padding-left 0.15s ease;
}

.sdm-mega-col a::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 50%;
    width: 5px;
    height: 5px;
    margin-top: -2.5px;
    border-radius: 50%;
    background: #f6af3e;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.sdm-mega-col a:hover,
.sdm-mega-col a:focus-visible {
    padding-left: 4px;
    color: #0c1730;
    outline: none;
}

.sdm-mega-col a:hover::before,
.sdm-mega-col a:focus-visible::before {
    opacity: 1;
}

/* Stat card */
.sdm-mega-promo {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px 22px 22px;
    border: 1px solid #fde7bd;
    border-radius: 14px;
    background: linear-gradient(170deg, #fff8eb 0%, #ffffff 100%);
}

.sdm-target {
    position: relative;
    width: 104px;
    height: 104px;
    margin-bottom: 18px;
}

.sdm-target-ring,
.sdm-target-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.sdm-target-ring {
    width: 100px;
    height: 100px;
    border: 8px solid #0c1730;
}

.sdm-target-ring-mid {
    width: 60px;
    height: 60px;
    border-width: 7px;
    border-color: #f6af3e;
}

.sdm-target-dot {
    width: 20px;
    height: 20px;
    background: #f6af3e;
}

.sdm-mega-promo-copy strong {
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 5px solid #f6af3e;
    color: #0c1730;
    font-size: 66px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
}

.sdm-mega-promo-copy span {
    display: block;
    margin-top: 14px;
    color: #0c1730;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.sdm-mega-promo-btn {
    display: block;
    margin-top: auto;
    padding: 14px 14px;
    border-radius: 12px;
    background: #0c1730;
    color: #fff !important;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.sdm-mega-promo-btn:hover {
    background: #f6af3e;
    color: #0c1730 !important;
}

/* Proposal bar */
.sdm-mega-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0 0;
    padding: 12px;
    border-radius: 14px;
    background: #f7f9fc;
}

.sdm-mega-bar input {
    flex: 1;
    height: 56px;
    padding: 0 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    color: #0c1730;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sdm-mega-bar input::placeholder {
    color: #94a3b8;
}

.sdm-mega-bar input:focus {
    border-color: #f6af3e;
    box-shadow: 0 0 0 3px rgba(246, 175, 62, 0.2);
}

.sdm-mega-bar button {
    height: 56px;
    padding: 0 28px;
    border: 0;
    border-radius: 12px;
    background: #f6af3e;
    color: #0c1730;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sdm-mega-bar button:hover {
    background: #e89b25;
}

.site-mobile-menu .sdm-mobile-label {
    padding-top: 12px;
    color: #f6af3e;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
