/* mobile header start */
header.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999999;
}

.submenu li a {
    color: #ffffff;
    text-decoration: none;
}

.menu-item button {
    font: inherit;
    color: #ffffff;
}

/* NAV WRAPPER */
.mobile-nav {
    max-width: 100%;
    margin: 0 auto;
}

.nav-card {
    background: #2d3c69;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

/* TOP BAR */
.nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 14px;
}

.nav-top a img {
    filter: invert(1) brightness(10);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.brand-mark {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: radial-gradient(
        120% 120% at 20% 20%,
        #6aa1ff 0%,
        #5b8cff 40%,
        #3c62df 70%,
        #2b2f7a 100%
    );
    box-shadow: 0 4px 18px rgba(91, 140, 255, 0.45) inset,
        0 6px 18px rgba(91, 140, 255, 0.25);
}

.brand svg {
    display: block;
}

/* HAMBURGER */
.hamburger {
    --size: 44px;
    width: var(--size);
    height: var(--size);
    display: inline-grid;
    place-items: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.hamburger:focus-visible {
    outline: 2px solid rgba(91, 140, 255, 0.45);
    outline-offset: 2px;
}

.hamburger:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.03);
}

.hamburger-bars {
    position: relative;
    width: 22px;
    height: 14px;
}

.hamburger-bars span {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #e5e7eb;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.hamburger-bars span:nth-child(1) {
    top: 0;
}

.hamburger-bars span:nth-child(2) {
    top: 6px;
}

.hamburger-bars span:nth-child(3) {
    top: 12px;
}

.hamburger[aria-expanded="true"] .hamburger-bars span:nth-child(1) {
    top: 6px;
    transform: rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger-bars span:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger-bars span:nth-child(3) {
    top: 6px;
    transform: rotate(-45deg);
}

/* DROPDOWN MENU */
nav.menu {
    display: block;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.menu-inner {
    padding: 8px;
    display: grid;
    gap: 8px;
}

.menu-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
}

.submenu-toggle {
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 14px;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.submenu-toggle .label {
    display: flex;
    gap: 10px;
    align-items: center;
}

.submenu-toggle .chev {
    transition: transform 0.2s ease;
}

.submenu-toggle:focus-visible {
    outline: 2px solid rgba(91, 140, 255, 0.45);
    outline-offset: 2px;
}

.submenu {
    display: grid;
    gap: 4px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.submenu a {
    display: block;
    padding: 10px 10px;
    border-radius: 10px;
    color: #9aa3b2;
}

.submenu a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #e5e7eb;
}
.submenu li {
    border-top: 1px solid #3d4b75;
}
/* CTA button at the end */
.cta {
    display: block;
    text-align: center;
    margin: 6px 8px 10px;
    padding: 14px 16px;
    background: #d5c28b;
    color: #333;
    font-weight: 500;
    border-radius: 12px;
    border: 0;
    text-decoration: none;
}

/* Collapsible behavior (hidden attribute fallback) */
[hidden] {
    display: none !important;
}

/* mobile header end */

.header {
    backdrop-filter: blur(20px);
    color: #000000;
    align-items: center;
    background-color: #ffffffd4;
    padding: 10px 30px;
    position: fixed;
    top: 0;
    display: flex;
    width: 100%;
    z-index: 99;
    justify-content: space-between;
    box-shadow: 0px -10px 20px 1px grey;
}


.header-right {
    display: flex;
    gap: 10px;
}

.header-right a {
    text-align: justify;
    float: left;
    color: rgb(0, 0, 0);
    background-color: #ffffff7c;
    text-align: center;
    padding: 6px 20px;
    text-decoration: none;
    font-size: 14px;
    line-height: 25px;
    border-radius: 21px;
    border: 1px solid rgba(2, 2, 2, 0.281);
    text-transform: uppercase;
    font-family: "Poppins", sans-serif;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-image 0.3s ease, box-shadow 0.3s ease;
}

.header a.logo img {
    width: 240px;
}

.header-right a:hover {
    color: rgb(0, 0, 0);
    background-image: linear-gradient(
        135deg,
        rgb(255 255 255 / 90%) 0%,
        rgba(255, 255, 255, 0.3) 100%
    );
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.header-right a.active {
    color: rgb(0, 0, 0);
    background-color: #00000031;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.header-button a {
    color: #fff;
    background-color: #2d3c69;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    text-align: center;
    padding: 12px 25px;
    text-decoration: none;
    font-size: 14px;
    line-height: 25px;
    border-radius: 21px;
    border: none;
    transition: background-color 0.2s ease, box-shadow 0.3s ease;
}

.header-button a:hover {
    background-color: #d5c28b;
    color: #2d3c69;
    box-shadow: 2px 2px 5px rgb(0 0 0 / 25%);
}

/* dropdown */
.dropdown,
.sngl-mn {
    position: relative;
    display: inline-block;
    height: 50px;
    align-content: center;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    top: calc(100% + 0px);
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.dropdown-content::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ffffff;
    filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.1));
}

.dropdown-content a {
    color: #2c3e50 !important;
    padding: 14px 20px !important;
    text-decoration: none;
    display: block !important;
    text-align: left;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    float: none !important;
    position: relative;
    line-height: 1.4;
}

.dropdown-content a::before {
    content: "";
    position: absolute;
    left: 0px;
    top: 0;
    height: 100%;
    width: 6px;
    background: #2d3c69;
    transform: scaleY(0);
    transition: transform 0.2s ease;
    border-radius: 0 4px 4px 0;
}

.dropdown-content a:hover::before {
    transform: scaleY(1);
}

.dropdown-content a:hover {
    color: #2c3e50 !important;
    box-shadow: none !important;
    background-image: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.15) 0%,
        rgba(118, 75, 162, 0.15) 100%
    ) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2) !important;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown > a {
    position: relative;
    transition: all 0.3s ease;
}
.sngl-mn > a {
    transition: all 0.3s ease;
}

/* .dropdown > a::after {
    content: "▾";
    font-size: 12px;
    margin-left: 8px;
    transition: all 0.3s ease;
    display: inline-block;
} */
 .dropdown a svg {
    transition: all 0.3s ease;
}

.dropdown:hover > a svg {
    /* transform: rotate(180deg); */
    transform: rotate3d(0, 60, 0, 190deg);
}

.dropdown:hover > a,
.sngl-mn:hover > a {
    background-image: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.15) 0%,
        rgba(118, 75, 162, 0.15) 100%
    ) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2) !important;
}

/* Laptop (1024px to 1280px) */
@media (min-width: 1201px) and (max-width: 1600px) {
    /*button and others */
    .header-button a,
    .header-right a {
        font-size: 12px;
    }

    .header a.logo img {
        width: 150px;
    }

    /* .header {
        margin-top: -10px;
    } */

    .header-button a {
        padding: 8.5px 10px;
    }
    header.mobile-nav {
        display: none;
    }
}

/* Tablet (768px to 1024px) */
/* @media (min-width: 768px) and (max-width: 12px) {
    .header-button a,
    .header-right a {
        font-size: 10px;
    }

    .header {
        padding: 10px 10px;
    }

    div#heaDer {
        display: none;
    }

    header.mobile-nav {
        display: block;
    }
} */

/* Mobile (480px to 768px) */
@media (max-width: 1200px) {
    div#heaDer {
        display: none;
    }

    header.mobile-nav {
        display: block;
    }
}
@media screen and (max-width: 500px) {
    .header a {
        float: none;
        display: block;
        text-align: left;
    }

    .header-right {
        float: none;
    }
}

/* Small Mobile (320px to 480px) */
@media (max-width: 480px) {
    div#heaDer {
        display: none;
    }

    header.mobile-nav {
        display: block;
    }
}
