/* ===================================================
   NAVBAR CUSTOM STYLES - OVERRIDES main.css
   =================================================== */

/* --- HEADER: Always white background --- */
.header {
    background: #ffffff !important;
    padding: 15px 0;
    transition: all 0.4s ease-in-out;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header.scrolled {
    background: #ffffff !important;
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

/* --- NAV LINKS: Always dark text --- */
.navmenu a,
.navmenu a:focus {
    color: #1e293b !important;
    font-weight: 600;
}

.navmenu a:hover,
.navmenu .active,
.navmenu .active:focus {
    color: #2563eb !important;
    background: rgba(37, 99, 235, 0.08);
}

/* --- LOGO: Always dark/gradient --- */
.header .logo h1 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #1e293b 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #1e293b;
}

/* --- NAVMENU LINK SIZE (Desktop) --- */
@media (min-width: 1200px) {

    .navmenu a,
    .navmenu a:focus {
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 8px;
        transition: all 0.3s;
    }
}

/* ===================================================
   SEARCH WIDGET
   =================================================== */
.search-widget {
    position: relative;
}

.search-group {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 40px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    /* NO overflow:hidden - this was clipping the button! */
}

.search-group:hover,
.search-group:focus-within {
    width: 250px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

/* Input field */
.search-input.form-control {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border: none !important;
    background: transparent !important;
    padding: 0 45px 0 16px;
    font-size: 14px;
    color: #1e293b !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 40px;
    opacity: 0;
    transition: opacity 0.3s;
}

.search-group:hover .search-input.form-control,
.search-group:focus-within .search-input.form-control {
    opacity: 1;
}

/* Search button - ALWAYS VISIBLE */
.search-btn.btn {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    border: none !important;
    background: transparent !important;
    color: #334155 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 20 !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    font-size: 16px !important;
}

.search-btn.btn i {
    font-size: 16px !important;
    color: inherit !important;
    display: block !important;
    line-height: 1 !important;
}

.search-group:hover .search-btn.btn,
.search-group:focus-within .search-btn.btn {
    color: #2563eb !important;
}

/* ===================================================
   CTA BUTTON
   =================================================== */
.btn-getstarted {
    background: #2563eb;
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    transition: all 0.3s ease;
}

.btn-getstarted:hover {
    background: #0ea5e9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
    color: #fff !important;
}

/* ===================================================
   MOBILE TOGGLE - Always dark
   =================================================== */
.mobile-nav-toggle {
    color: #1e293b !important;
}
