/* header */
.nextalya-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
    padding-top: 10px;
}

.bg-head {
    --bs-bg-opacity: 1;
    background-color: var(--bg-color) !important;
}

.text-gold {
    color: #e0b038;
}

.logo a {
    text-decoration: none;
    display: inline-block;
}

#custom-search .form-control:focus {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #d4af37;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--bs-body-bg);
    background-clip: padding-box;
    border: var(--bs-border-width) solid #d4af37;
    border-radius: var(--bs-border-radius);
    transition: #d4af37 .15s ease-in-out, box-shadow .15s ease-in-out;
    box-shadow: 0 0 5px 2px rgba(212, 175, 55, 0.7);
}

.homepage-logo {
    width: 295px;
}

.btn-gold {
    background-color: #e0b038;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.25s ease-in-out;
}

.btn-gold:hover {
    background-color: #c99c2a;
    transform: scale(1.03);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.btn-homepage-login {
    background-color: #c99c2a;
    color: #ffffff;
    border: 2px solid #c99c2a;
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.25s ease-in-out;
}

.btn-homepage-login:hover {
    background-color: #b38b24;
    color: var(--text-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.btn-homepage-signup {
    background-color: #c99c2a;
    color: #ffffff;
    border: 2px solid #c99c2a;
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.25s ease-in-out;
}

.btn-homepage-signup:hover {
    background-color: #c99c2a;
    color: var(--text-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

  .search-input-wrapper {
    width: 100%;
    max-width: 700px;
  }

  .search-input-wrapper input {
    width: 100%;
  }

.search-form input {
    display: flex;
    width: 100%;
    max-width: 718px;
    height: 50px;
    padding-bottom: 11px;
    justify-content: center;
    align-items: center;
    border-radius: 999px;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    font-size: 1rem;
    border: 1px solid #ccc;
}

.search-form .form-control.ps-5 {
    padding-left: 2.5rem !important;
}

#custom-search {
    width: 100%;
    max-width: 700px;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .homepage-header .container-fluid {
        display: flex;
        align-items: center;
        gap: 1rem;
        flex-wrap: nowrap;
    }

    .homepage-logo {
        width: 200px;
        flex-shrink: 0;
    }

    .search-form {
        flex-grow: 1;
        max-width: 100%;
    }

    .search-form input {
        height: 50px;
        max-width: 100%;
    }

    #custom-search {
        display: none !important;
    }

    .homepage-buttons {
        display: flex !important;
        gap: 0.75rem;
        margin-left: auto;
    }
}

@media (max-width: 768px) {

    .homepage-logo {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 999;
        background-color: var(--bg-color);
        padding: 12px 16px;
        margin-top: 0 !important;
        width: 100%;
        max-width: 100%;
        text-align: left;
        border-bottom: 1px solid #eee;
    }

    .homepage-logo a {
        font-size: 1.25rem;
    }

    #mobilmenu {
        position: fixed;
        top: 10px;
        right: 16px;
        z-index: 1000;
        /* transform: translateY(-10%); */
    }

    .homepage-mobile-menu {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: white;
        border-top: 1px solid #ddd;
        z-index: 1000;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 16px;
    }

    .homepage-mobile-menu a {
        flex: 1;
        text-align: center;
    }

    .homepage-mobile-menu i {
        font-size: 1.5rem;
        display: inline-block;
    }

    .search-form input {
        max-width: 100%;
        height: 50px;
    }

    .homepage-buttons {
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }

    .dropdown-toggle {
        background-color: #e0b038;
        color: #1a1a1a;
        font-weight: 700;
        font-size: 0.95rem;
        padding: 0.5rem 1.5rem;
        border-radius: 30px;
        border: none;
        transition: all 0.3s ease;
    }

    .dropdown-toggle:hover {
        background-color: #c99c2a;
        color: #ffffff;
        transform: scale(1.03);
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    .dropdown-menu {
        background-color: #ffffff;
        border-radius: 10px;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
        border: none;
        padding: 0.5rem 0;
        width: 100%;
    }

    .dropdown-item {
        padding: 10px 20px;
        font-size: 15px;
        font-weight: 500;
        color: #2c3e50;
        transition: all 0.2s ease;
    }

    .dropdown-item:hover {
        background-color: #f1c40f;
        color: #ffffff;
        border-radius: 6px;
    }

    .btn-link {
        font-size: 1.5rem;
        color: #1a1a1a;
    }

    .btn-link:hover {
        color: #e0b038;
    }
}

.input-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

@media (max-width: 576px) {
    .dropdown-toggle {
        padding: 4px 10px;
        font-size: 0.85rem;
        border-radius: 20px;
    }

    .mobile-menu-icon {
        font-size: 30px;
        color: var(--text-color);
    }

    .mobile-dropdown-menu {
        width: auto;
        min-width: 100%;
        border-radius: 10px;
        background-color: var(--bg-color) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 0.5rem 0;
        z-index: 9999;
        border: 1px solid #ddd;
    }

    .mobile-dropdown-menu .dropdown-item {
        font-size: 15px;
        padding: 10px 20px;
        color: var(--text-color) !important;
        background-color: transparent;
        transition: background-color 0.2s ease, color 0.2s ease;
        border-left: 3px solid transparent;
    }

    .mobile-dropdown-menu .dropdown-item:hover {
        background-color: #f0e6d2;
        color: #000 !important;
        border-left: 3px solid #c9a227;
    }


}



.profile-menu-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    background: var(--bg-color) !important;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: right 0.3s ease-in-out;
    padding: 1.5rem;
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    min-height: 700px;
    border-left: 1px solid #ddd;
    color: var(--text-color);
}

.profile-menu-container.active {
    right: 0;
}

.profile-menu-header {
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1rem;
}

.profile-menu-username {
    font-size: 1.2rem;
}

.profile-menu-help-icon,
.profile-menu-close-btn {
    font-size: 1.3rem;
    cursor: pointer;
}

.profile-menu-list {
    margin-top: 1.5rem;
    max-height: 730px;
    overflow-y: scroll;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f1f1;
    text-decoration: none;
    color: var(--text-color);
    transition: background 0.2s;
}

.profile-menu-item:hover {
    background: var(--bg-hover-color);
}

.profile-menu-icon {
    background-color: black;
    color: white;
    border-radius: 50%;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-right: 10px;
}

.profile-menu-item span {
    flex: 1;
    margin-left: 10px;
    font-weight: 500;
}

.profile-menu-right-icon {
    color: #888;
    font-size: 1rem;
}

.profile-menu-toggle {
    accent-color: #c99d2c;
    width: 2.2rem;
    height: 1.2rem;
    background-color: #f0e6c0;
    border-radius: 50px;
    transition: background-color 0.3s ease;
}

.profile-menu-toggle:checked {
    background-color: #c99d2c;
}

.profile-menu-divider {
    border-top: 2px solid black;
    border-bottom: 2px solid #c99d2c;
    margin: 2rem 0 1rem;
}

.profile-menu-links a {
    display: block;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.4rem;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.profile-menu-links a:hover {
    text-decoration: none;
    color: #c99d2c;
}

.profile-menu-logout {
    background: #c99d2c;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.profile-menu-logout:hover {
    background: #000;
    color: #fff;
}

/* Tablet */
@media (max-width: 992px) {
    .profile-menu-container {
        width: 280px;
        right: -280px;
        height: 100vh;
    }

    .profile-menu-container.active {
        right: 0;
    }

      .search-input-wrapper {
    width: 30%;
    max-width: 700px;
  }

  .search-input-wrapper input {
    width: 100%;
  }

}

/* Mobile */
@media (max-width: 576px) {
    .profile-menu-container {
        width: 100vw;
        right: -100vw;
        height: calc(100vh - 60px);
        bottom: 60px;
    }

    .profile-menu-container.active {
        right: 0;
    }
}
