/* ===============================
   BASE HEADER STYLES
================================= */
header {
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 996;
    width: 100%;
    transition: background 0.9s, box-shadow 0.3s ease;
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.navbar-logo a {
    display: block;
}

.navbar-logo img {
    max-width: 115px;
    transition: max-width 0.3s ease;
}

/* ===============================
   NAVIGATION MENU
================================= */
.main-menu-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.main-nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav>li {
    margin-right: 30px;
    padding: 8px 0;
}

.main-nav>li:last-child {
    margin-right: 0;
}

.main-nav>li>a {
    color: #fff;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.main-nav>li>a:hover,
.main-nav>li>a.active {
    color: var(--tts-buttton-bg);
}

/* ===============================
   BUTTONS
================================= */
.header-btn a.loginbtn {
    background-color: var(--tts-buttton-bg);
    color: var(--tts-buttton-txt);
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: 500;
    text-decoration: none;
    text-transform: capitalize;
    transition: all 0.3s ease-in-out;
}

.header-btn .icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    background-color: var(--tts-buttton-bg1);
    color: var(--tts-buttton-txt1);
    transition: transform 0.3s ease-in-out;
}

/* ===============================
   FIXED HEADER ON SCROLL
================================= */
#header.fixed {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#header.fixed .main-nav>li>a {
    color: #121212;
}

/* Optional: Alternate background on scroll or condition */
#header.navbar-bg-color {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
}

#header.navbar-bg-color .main-nav>li>a {
    color: #121212;
}

#header.navbar-bg-color .main-nav>li>a:hover,
#header.navbar-bg-color .main-nav>li>a.active {
    color: var(--tts-buttton-bg);
}

/* ===============================
   LOGO SWAP ON SCROLL
================================= */
.tts-logo-white {
    display: block;
}

.tts-logo-color {
    display: none;
}

#header.fixed .tts-logo-white {
    display: none;
}

#header.fixed .tts-logo-color {
    display: block;
}

/* ===============================
   1024px (SMALL DESKTOP/TABLET)
================================= */
@media (max-width: 1024px) {
    .header-nav {
        padding: 15px 20px;
    }

    .navbar-logo img {
        max-width: 100px;
    }

    .offcanvas-header {
        border-bottom: 1px solid #d1d1d1;
    }

    .main-nav>li {
        margin-right: 20px;
    }

    .main-nav>li>a,
    .header-btn a.loginbtn {
        font-size: 14px;
    }

    .header__hamburger i {
        color: #fff;
        font-size: 24px;
        cursor: pointer;
    }

    #header.fixed .header__hamburger i {
        color: #121212;
    }

    .offcanvas-header {
        border-bottom: 1px solid #d1d1d1;
    }

    .offcanvas{
        max-width: 300px;
    }

    .offcanvas-body .main-nav {
        flex-direction: column;
        padding: 0;
        align-items: start;
    }

    .offcanvas-body .main-nav>li {
        margin-bottom: 20px;
        margin-right: 0;
        padding: 0;
    }

    .offcanvas-body .main-nav>li>a {
        color: #000;
        font-size: 16px;
    }
}

/* ===============================
   MOBILE (Up to 575px)
================================= */
@media (max-width: 575px) {
    .header-nav {
        padding: 15px 0px;
    }

    .navbar-logo img {
        max-width: 80px;
    }

    .header-btn a.loginbtn,
    .header-btn .icon-container {
        padding: 6px 12px;
        font-size: 14px;
    }

    .sidebar-menu i.text-white {
        color: var(--tts-buttton-bg) !important;
    }

    /* Offcanvas menu styles */
    .offcanvas-header {
        border-bottom: 1px solid #d1d1d1;
    }

    .offcanvas-body .main-nav {
        flex-direction: column;
        padding: 0;
    }

    .offcanvas-body .main-nav>li {
        margin-bottom: 20px;
        margin-right: 0;
        padding: 0;
    }

    .offcanvas-body .main-nav>li>a {
        color: #000;
        font-size: 16px;
    }

    #header.navbar-bg-color .header__hamburger i {
        color: inherit;
    }
}