/* ==========================
   RESET
========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    font-family: "Plus Jakarta Sans", sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* ==========================
   PAGE BACKGROUND
========================== */

body {
    background: linear-gradient(90deg, #eef0fb 0%, #eef7f7 55%, #eefaf8 100%);
}



/* ==========================
   HEADER / NAVBAR
========================== */

.site-header {
    position: relative;
    z-index: 10;
}

.site-header2 {
    position: relative;
    z-index: 10;
    width: 100%;
    background-color: #ffffff;
}

.navbar {
    width: 100%;
    max-width: 1180px;
    height: 110px;
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex: 0 0 auto;
}

.logo img {
    width: 220px;
    height: 35.6px;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 42px;
}

.nav-links a {
    text-decoration: none;
    color: rgba(65, 70, 81, 1);
    font-size: 16px;
    font-weight: 500;
}

.nav-links a:hover {
    color: #0D1F3C;
}

.btn-started {
    width: 123px;
    height: 44px;
    background: rgba(0, 197, 178, 1);
    color: #ffffff !important;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 16px;
    border-radius: 8px;
    border: 0;

    text-decoration: none;
    font-family: inherit;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-started:hover {
    transform: translateY(-2px);
}

/* ==========================
   MOBILE TOGGLE
========================== */

.mobile-nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    min-width: 40px;

    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;

    border-radius: 0;
    color: #0D1F3C;

    font-size: 22px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle:focus,
.mobile-nav-toggle:active {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* ==========================
   NAV USER DROPDOWN
========================== */

.nav-user-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-user-pill {
    width: 123px;
    height: 44px;
    background: rgba(0, 197, 178, 1);
    color: #ffffff !important;

    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    padding: 7px 8px 7px 14px;
    border: 0;
    border-radius: 8px;

    text-decoration: none;
    font-family: inherit;
    font-size: 14px !important;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s ease;
    overflow: hidden;
}

.nav-user-pill span:first-child {
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-user-pill img,
.nav-user-avatar-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
}

.nav-user-pill img {
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.nav-user-avatar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    font-size: 13px;
}

.nav-user-pill:hover,
.nav-dashboard-btn:hover {
    transform: translateY(-2px);
}

.nav-dashboard-btn {
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.nav-user-menu {
    position: absolute;
    right: 0;
    top: 52px;
    width: 180px;

    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    padding: 8px;
    z-index: 99999;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: 0.2s ease;
}

.nav-user-dropdown.is-open .nav-user-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-user-menu a,
.nav-user-menu button {
    width: 100%;
    height: 38px;
    border: 0;
    background: transparent;
    color: #414651;
    text-decoration: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 0 12px;
    border-radius: 8px;
}

.nav-user-menu a:hover,
.nav-user-menu button:hover {
    background: #F8FAFC;
    transform: none;
    box-shadow: none;
}

.nav-user-menu form {
    margin: 0;
    padding: 0;
}

.nav-user-menu button {
    color: #D92D20;
}

/* ====================================
   FOOTER
==================================== */

.site-footer {
    background: #ffffff;
    padding: 90px 50px 50px;
}

.footer-container {
    max-width: 1304px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 104px;
}

.footer-about {
    max-width: 620px;
}

.footer-about p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: #0D1F3C;
    margin-bottom: 24px;
}

.footer-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #0D1F3C;
}

.footer-phone svg {
    width: 24px;
    height: 24px;
}

.footer-phone span {
    font-size: 20px;
    font-weight: 500;
}

.footer-links {
    display: flex;
    gap: 80px;
    flex-shrink: 0;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.footer-column a {
    text-decoration: none;
    color: #0D1F3C;
    font-size: 20px;
    font-weight: 500;
}

.footer-column a:hover {
    color: #00C5B2;
}

.footer-divider {
    height: 1px;
    background: #D5D7DA;
    margin: 32px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo img {
    width: 220px;
    height: 35.6px;
    object-fit: contain;
}

.footer-logo span {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #102449;
}

.footer-copyright {
    font-size: 20px;
    font-weight: 400;
    color: #0D1F3C;
}

/* ==========================
   SUCCESS MESSAGE
========================== */

.flash-message {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 360px;
    max-width: calc(100% - 40px);
    background: #ffffff;
    border: 1px solid #d1fae5;
    border-left: 5px solid #00c7b2;
    border-radius: 12px;
    padding: 14px 16px;

    display: flex;
    align-items: flex-start;
    gap: 12px;

    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
    z-index: 999999;
    animation: slideInFlash 0.35s ease forwards;
}

.flash-message.success .flash-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #d1fae5;
    color: #00a693;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.flash-text {
    flex: 1;
}

.flash-text strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    margin-bottom: 3px;
}

.flash-text span {
    display: block;
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}

.flash-close {
    border: 0;
    background: transparent;
    color: #94a3b8;
    font-size: 15px;
    cursor: pointer;
    padding: 2px;
}

.flash-close:hover {
    color: #334155;
}

.flash-message.hide {
    animation: slideOutFlash 0.35s ease forwards;
}

@keyframes slideInFlash {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutFlash {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(30px);
    }
}

/* ====================================
   RESPONSIVE FOOTER
==================================== */

@media (max-width: 1200px) {
    .footer-top {
        flex-direction: column;
        gap: 50px;
    }

    .footer-links {
        gap: 80px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 70px 20px 40px;
    }

    .footer-about p {
        font-size: 16px;
    }

    .footer-phone span {
        font-size: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 25px;
    }

    .footer-column a {
        font-size: 18px;
    }

    .footer-logo img {
        width: 180px;
        height: auto;
    }

    .footer-logo span {
        font-size: 28px;
    }

    .footer-copyright {
        font-size: 15px;
    }
}

@media (max-width: 600px) {
    .flash-message {
        top: 16px;
        right: 16px;
        left: 16px;
        width: auto;
    }
}

/* ==========================
   RESPONSIVE NAVBAR
========================== */

@media (max-width: 900px) {
    .site-header,
    .site-header2 {
        width: 100%;
    }

    .site-header .navbar,
    .site-header2 .navbar {
        width: 100%;
        max-width: 100%;
        height: 68px !important;
        min-height: 68px !important;
        margin: 0 !important;
        padding: 0 16px !important;

        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;

        position: relative;
    }

    .site-header .logo,
    .site-header2 .logo {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex: 0 0 auto !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    .site-header .logo img,
    .site-header2 .logo img {
        width: 180px !important;
        max-width: 180px !important;
        height: auto !important;
        max-height: 38px !important;
        object-fit: contain;
        display: block;
    }

    .site-header .mobile-nav-toggle,
    .site-header2 .mobile-nav-toggle {
        display: inline-flex !important;
        flex: 0 0 40px !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;

        margin-left: auto !important;
        position: static !important;

        background: transparent !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }

    .site-header .nav-links,
    .site-header2 .nav-links {
        position: absolute;
        top: 68px;
        left: 16px;
        right: 16px;

        display: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;

        background: #ffffff;
        border: 1px solid #E5E7EB;
        border-radius: 14px;
        box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
        padding: 10px;
        z-index: 99999;
    }

    .site-header .nav-links.show,
    .site-header2 .nav-links.show {
        display: flex;
    }

    .site-header .nav-links > a,
    .site-header2 .nav-links > a {
        width: 100%;
        min-height: 44px;

        display: flex;
        align-items: center;

        padding: 0 14px;
        border-radius: 8px;
        font-size: 14px;
    }

    .site-header .nav-links > a:hover,
    .site-header2 .nav-links > a:hover {
        background: #F8FAFC;
    }

    .site-header .btn-started,
    .site-header2 .btn-started,
    .site-header .nav-user-pill,
    .site-header2 .nav-user-pill,
    .site-header .nav-dashboard-btn,
    .site-header2 .nav-dashboard-btn {
        width: 100% !important;
        height: 44px !important;
        justify-content: center;
        margin-top: 8px;
    }

    .site-header .nav-user-pill,
    .site-header2 .nav-user-pill {
        justify-content: space-between;
        padding-left: 16px;
    }

    .site-header .nav-user-dropdown,
    .site-header2 .nav-user-dropdown {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .site-header .nav-user-menu,
    .site-header2 .nav-user-menu {
        position: static;
        width: 100%;
        margin-top: 8px;
        box-shadow: none;
        border-radius: 10px;
        transform: none;
        display: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .site-header .nav-user-dropdown.is-open .nav-user-menu,
    .site-header2 .nav-user-dropdown.is-open .nav-user-menu {
        display: block;
        transform: none;
    }
}

@media (max-width: 520px) {
    .site-header .navbar,
    .site-header2 .navbar {
        height: 64px !important;
        min-height: 64px !important;
        padding: 0 14px !important;
    }

    .site-header .logo img,
    .site-header2 .logo img {
        width: 165px !important;
        max-width: 165px !important;
    }

    .site-header .mobile-nav-toggle,
    .site-header2 .mobile-nav-toggle {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        flex-basis: 38px !important;

        background: transparent !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }

    .site-header .nav-links,
    .site-header2 .nav-links {
        top: 64px;
        left: 14px;
        right: 14px;
    }
}

@media (max-width: 380px) {
    .site-header .logo img,
    .site-header2 .logo img {
        width: 150px !important;
        max-width: 150px !important;
    }

    .site-header .navbar,
    .site-header2 .navbar {
        padding: 0 12px !important;
    }
}

/* ==========================
   FINAL TWO HEADER MOBILE NAV FIX
   Applies to BOTH .site-header and .site-header2
========================== */

@media (max-width: 900px) {
    .site-header,
    .site-header2 {
        width: 100% !important;
        background: linear-gradient(90deg, #eef0fb 0%, #eef7f7 55%, #eefaf8 100%) !important;
        position: relative !important;
        z-index: 9999 !important;
    }

    .site-header .navbar,
    .site-header2 .navbar {
        width: 100% !important;
        max-width: 100% !important;
        height: 68px !important;
        min-height: 68px !important;
        margin: 0 !important;
        padding: 0 16px !important;

        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;

        background: transparent !important;
        position: relative !important;
    }

    .site-header .logo,
    .site-header2 .logo {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .site-header .logo img,
    .site-header2 .logo img {
        width: 180px !important;
        max-width: 180px !important;
        height: auto !important;
        max-height: 38px !important;
        object-fit: contain !important;
        display: block !important;
    }

    /* Same hamburger style for BOTH headers */
    .site-header .mobile-nav-toggle,
    .site-header2 .mobile-nav-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        flex: 0 0 40px !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;

        margin-left: auto !important;
        margin-top: 0 !important;
        padding: 0 !important;
        position: static !important;

        background: #00C5B2 !important;
        color: #ffffff !important;
        border: 1px solid #00C5B2 !important;
        border-radius: 9px !important;
        box-shadow: 0 10px 24px rgba(0, 197, 178, 0.24) !important;

        font-size: 18px !important;
        cursor: pointer !important;
        outline: none !important;
        appearance: none !important;
        -webkit-appearance: none !important;
    }

    .site-header .mobile-nav-toggle i,
    .site-header2 .mobile-nav-toggle i {
        color: #ffffff !important;
        line-height: 1 !important;
    }

    .site-header .mobile-nav-toggle:hover,
    .site-header2 .mobile-nav-toggle:hover,
    .site-header .mobile-nav-toggle:focus,
    .site-header2 .mobile-nav-toggle:focus,
    .site-header .mobile-nav-toggle:active,
    .site-header2 .mobile-nav-toggle:active {
        background: #00B5A3 !important;
        border-color: #00B5A3 !important;
        color: #ffffff !important;
        outline: none !important;
        box-shadow: 0 10px 24px rgba(0, 197, 178, 0.28) !important;
    }

    /* Full-width mobile menu for BOTH headers */
    .site-header .nav-links,
    .site-header2 .nav-links {
        position: absolute !important;
        top: 68px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;

        display: none !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 0 !important;

        background: linear-gradient(90deg, #eef0fb 0%, #eef7f7 55%, #eefaf8 100%) !important;
        border-top: 1px solid rgba(13, 31, 60, 0.08) !important;
        border-left: 0 !important;
        border-right: 0 !important;
        border-bottom: 1px solid rgba(13, 31, 60, 0.08) !important;
        border-radius: 0 0 18px 18px !important;
        box-shadow: 0 20px 38px rgba(13, 31, 60, 0.08) !important;

        padding: 12px 16px 16px !important;
        z-index: 99999 !important;
    }

    .site-header .nav-links.show,
    .site-header2 .nav-links.show {
        display: flex !important;
    }

    .site-header .nav-links > a,
    .site-header2 .nav-links > a {
        width: 100% !important;
        min-height: 46px !important;
        display: flex !important;
        align-items: center !important;
        padding: 0 16px !important;
        border-radius: 10px !important;
        color: #0D1F3C !important;
        font-size: 14px !important;
        font-weight: 500 !important;
    }

    .site-header .nav-links > a:hover,
    .site-header2 .nav-links > a:hover {
        background: rgba(255, 255, 255, 0.45) !important;
        color: #0D1F3C !important;
    }

    .site-header .btn-started,
    .site-header2 .btn-started,
    .site-header .nav-user-pill,
    .site-header2 .nav-user-pill,
    .site-header .nav-dashboard-btn,
    .site-header2 .nav-dashboard-btn {
        width: 100% !important;
        height: 46px !important;
        margin-top: 8px !important;
        justify-content: center !important;
        border-radius: 10px !important;
    }

    .site-header .nav-user-pill,
    .site-header2 .nav-user-pill {
        justify-content: space-between !important;
        padding-left: 16px !important;
    }

    .site-header .nav-user-dropdown,
    .site-header2 .nav-user-dropdown {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .site-header .nav-user-menu,
    .site-header2 .nav-user-menu {
        position: static !important;
        width: 100% !important;
        margin-top: 8px !important;
        background: rgba(255, 255, 255, 0.35) !important;
        border: 1px solid rgba(13, 31, 60, 0.08) !important;
        box-shadow: none !important;
        border-radius: 12px !important;
        transform: none !important;
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .site-header .nav-user-dropdown.is-open .nav-user-menu,
    .site-header2 .nav-user-dropdown.is-open .nav-user-menu {
        display: block !important;
        transform: none !important;
    }
}

@media (max-width: 520px) {
    .site-header .navbar,
    .site-header2 .navbar {
        height: 64px !important;
        min-height: 64px !important;
        padding: 0 14px !important;
    }

    .site-header .logo img,
    .site-header2 .logo img {
        width: 165px !important;
        max-width: 165px !important;
    }

    .site-header .mobile-nav-toggle,
    .site-header2 .mobile-nav-toggle {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        flex-basis: 38px !important;
        font-size: 17px !important;
    }

    .site-header .nav-links,
    .site-header2 .nav-links {
        top: 64px !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
}

@media (max-width: 380px) {
    .site-header .logo img,
    .site-header2 .logo img {
        width: 150px !important;
        max-width: 150px !important;
    }

    .site-header .navbar,
    .site-header2 .navbar {
        padding: 0 12px !important;
    }

    .site-header .nav-links,
    .site-header2 .nav-links {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}
/* ==========================
   REMOVE HAMBURGER BG/BORDER
========================== */

.mobile-nav-toggle,
.site-header .mobile-nav-toggle,
.site-header2 .mobile-nav-toggle {
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;

    color: #0D1F3C !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle:focus,
.mobile-nav-toggle:active,
.site-header .mobile-nav-toggle:hover,
.site-header .mobile-nav-toggle:focus,
.site-header .mobile-nav-toggle:active,
.site-header2 .mobile-nav-toggle:hover,
.site-header2 .mobile-nav-toggle:focus,
.site-header2 .mobile-nav-toggle:active {
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.mobile-nav-toggle i,
.site-header .mobile-nav-toggle i,
.site-header2 .mobile-nav-toggle i {
    color: #0D1F3C !important;
    font-size: 22px;
}
