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

/* Navigation */
.header__nav {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 1.875rem !important;
}

/* ── Mobile drawer top bar: hidden on desktop ── */
.header__nav-header {
    display: none;
}

.header__nav-brand,
.header__nav-close-btn {
    display: none;
}

.header__nav-list {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.header__nav-item {
    position: relative;
    padding: 1.875rem 0;
    z-index: 100;
}

.header__nav-item-header {
    display: flex;
    align-items: center;
}

.header__nav-link {
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    color: #000000;
    font-size: 0.875rem;
}

.header__nav-item:hover .header__nav-link {
    color: var(--accent);
}


.header__nav-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
        margin-left: 8px;
    width: 12px;
    height: 12px;
}

.header__nav-item svg path {
    fill: #000;
}

.header__nav-item:hover .header__nav-toggle svg path {
    fill: var(--accent);
}

.header__icon {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.header__icon svg{
	width:1.875rem;
	height:1.875rem;
}

.header__nav-item--active .header__nav-toggle .header__icon {
    transform: rotate(180deg);
}

/* Dropdown Shared */
.header__nav-dropdown {
    position: absolute;
    top: 100%;
    padding-top: 25px;
    left: -20px;
    min-width: 16.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 10;
}

.header__nav-item--has-dropdown:not(.header__nav-item--mega) .header__nav-dropdown:before {
    content: "";
    position: absolute;
    left: 30px;
    top: 10px;
    background: #ffffff;
    width: 1.875rem;  /* 30px */
    height: 1.875rem; /* 30px */
    transform: rotate(45deg);
    z-index: -1;
}

.header__nav-dropdown_bg {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: -1;
    opacity: 0;
    visibility: hidden;
}

.header__nav-item:hover+.header__nav-dropdown_bg {
    z-index: 90;
    opacity: 1;
    visibility: visible;
}

/* Desktop Hover */
@media screen and (min-width: 1024px) {
    .header__nav-item--has-dropdown:hover .header__nav-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .header__nav-item--has-dropdown:hover .header__icon {
        transform: rotate(180deg);
    }
}

.header__dropdown-container {
    padding: 2.5rem 1.563rem;
    background: #fff;
}

.header__dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.header__dropdown-link {
    display: block;
    color: #1a1a1a;
    transition: transform 0.2s ease;
}

.header__dropdown-link:hover {
    transform: translateX(4px);
    color: var(--accent);
}

.header__dropdown-title {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 1.375rem;
}

.header__dropdown-desc {
    display: block;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

/* Megamenu Variations */
.header__nav-dropdown--mega {
    position: fixed;
    left: 0;
    transform: translateY(15px);
    width: 100%;
    padding-top: 0px;
    border-top: 1px solid #eee;
    background: #ffffff;
}

.header__nav-dropdown--mega .header__dropdown-inner {
    max-width: var(--wp--style--global--content-size);
    margin-left: auto !important;
    margin-right: auto !important;
}

.header__dropdown-columns {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.header__megamenu-column {
    flex: 1;
}

.header__megamenu-title, .header__megamenu-title a {
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
    font-size: 1.375rem;
}

/* Sub-section title (e.g. CMS under Cloud & DevOps) */
.header__megamenu-title--subsection {
    margin-top: 40px;
}

.header__megamenu-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.header__dropdown-title-description {
    font-size: 0.9375rem;
    color: #111827;
    transition: color 0.2s ease;
}

.header__megamenu-link {
    font-size: 1.1875rem;
    color: #111827;
    transition: color 0.2s ease;
}

.header__megamenu-link:hover {
    color: var(--accent);
}

.header__megamenu-footer {
    border-top: 1px solid #aaaaaa;
    padding: 1.875rem 0px;
}

.header__megamenu-footer-list {
    display: flex;
    font-weight: 600;
}

.header__megamenu-footer-list li,
.header__nav-footer-list li {
    padding: 0 30px;
    border-right: 1px solid #aaaaaa;
}

.header__megamenu-footer-list li:first-child,
.header__nav-footer-list li:first-child {
    padding-left: 0;
}

.header__megamenu-footer-list li:last-child,
.header__nav-footer-list li:last-child {
    border-right: none;
}

.header__megamenu-footer-link {
    color: #121212;
    font-size: 1.1875rem;
}

.header__megamenu-footer-link:hover {
    color: var(--accent);
}

/* Footer / Contact Button */
.header__contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0066ff;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    margin-left: 30px;
    transition: background-color 0.3s ease;
}

.header__contact-btn:hover {
    background: #0052cc;
}

.header__mobile-menu-btn {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: #333;
}

.header__nav-footer {
    display: none;
}

/* ============================================================
   Responsive Styles
   ============================================================ */
@media screen and (max-width: 1100px) {
    header {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .header__nav-dropdown_bg {
        display: none;
    }

    .header__contact-btn {
        margin-left: 15px;
        padding: 10px 18px;
    }

    /* Drawer panel */
    .header__nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 0%;
        height: 0dvh;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 0 0 5rem 0;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        overflow-y: hidden;
        box-sizing: border-box;
		z-index: -1;
    }

    .header__nav--active {
        opacity: 1;
        visibility: visible;
        width: 100%;
        height: 100dvh;
		z-index: 1;
    }

    /* ── Mobile drawer top bar (logo + close) ── */
    .header__nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 1.25rem 1rem;
        box-sizing: border-box;
        flex-shrink: 0; /* don't collapse when list scrolls */
    }

    /* Logo inside the drawer */
    .header__nav-logo-wrap {
        display: flex;
        align-items: center;
        line-height: 0; /* remove phantom gap under img */
    }

    .header__nav-logo-wrap .custom-logo-link {
        display: flex;
        align-items: center;
    }

    .header__nav-logo-wrap .custom-logo {
        max-height: 40px;
        display: block;
    }

    /* Close button — re-positioned inside the flex bar */
    .header__nav-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        /* remove the old absolute positioning */
        position: static;
        background: transparent;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #111;
        width: 40px;
        height: 40px;
        flex-shrink: 0;
        margin-left: auto; /* push to right edge even if no logo */
    }
    /* ─────────────────────────────────────────── */

    /* Nav list scrolls below the header bar */
    .header__nav-list {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
        overflow-y: auto;
        padding: 1rem 2rem;
        box-sizing: border-box;
        flex: 1; /* fill remaining height */
    }

    .header__nav-item {
        width: 100%;
        padding: 0;
    }

    .header__nav-item-header {
        justify-content: space-between;
        width: 100%;
    }

    .header__nav-link {
        padding: 8px 0;
        flex: 1;
        font-size: 1.75rem;
        font-weight: bold;
		text-transform: capitalize;
    }

    .header__nav-toggle {
        padding: 8px;
        font-size: 14px;
    }

    /* Submenu accordion animation */
    .header__nav-dropdown,
    .header__nav-dropdown--mega {
        position: static;
        width: 100%;
        max-width: 100%;
        box-shadow: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        border-radius: 0;

        /* CSS Grid trick for robust accordion without fixed heights */
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.35s ease-out;
    }

    .header__dropdown-inner {
        overflow: hidden;
    }

    .header__nav-item--active .header__nav-dropdown,
    .header__nav-item--active .header__nav-dropdown--mega {
        grid-template-rows: 1fr;
    }

    .header__dropdown-container {
        padding: 15px 0 20px 0px;
    }

    .header__dropdown-columns {
        flex-direction: column;
        gap: 20px;
    }

    .header__megamenu-title {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .header__megamenu-footer {
        display: none;
    }

    .header__mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 30px !important;
    }

    .header__contact-btn {
        display: none;
    }

    .header__nav-footer {
        display: block;
        width: 100%;
        margin-bottom: 0;
        padding: 1rem;
        border-top: 1px solid #aaa;
        position: absolute;
        bottom: 0;
        top: auto;
        right: auto;
        left: 0;
        box-sizing: border-box;
        z-index: 100;
        background: #fff;
    }

    .header__nav-footer-list {
        display: flex;
        font-weight: 600;
    }

    .header__nav-footer-link {
        font-size: 16px;
        color: #111;
    }

    .header__nav-dropdown {
        padding: 0;
    }

    .header__nav-item--has-dropdown:not(.header__nav-item--mega) .header__nav-dropdown:before {
        content: none;
    }

    .header__nav-dropdown--mega {
        border: none;
    }

    .header__nav-dropdown--mega .header__dropdown-inner {
        max-width: 100%;
        margin-right: 0 !important;
		margin-left:0!important;
    }
}

@media (max-width: 781px) {
    .header__nav-list {
        padding: 1rem;
    }

    .header-contact-btn {
        display: none !important;
    }

    .header__mobile-menu-btn {
        margin-right: 0 !important;
    }
}

.custom-logo {
    width: clamp(12rem, 20vw, 15.625rem);
}

.blog-template {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.header__megamenu-column .header__megamenu-title:not(:first-child) {
    margin-top: 20px;
}
@media (min-width: 64rem) {

.header__nav-item::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.header__nav-item:hover::after,
.header__nav-item--active::after {
    width: 100%; 
}
}
@media (max-width: 768px) {

.header__dropdown-menu {
    gap: 15px;
}
	.header__dropdown-title {
		    margin-bottom: 0px;
		        font-size: 1.25rem;

	}
}



.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    transition: top 0.35s ease, box-shadow 0.3s ease;
}

.header--scrolled {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
@media (max-width: 1200px) and (min-width: 1100px) {
    .header__nav-list {
        gap: 1.5rem;
    }
}