/* =========================
   HEADER
========================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.page:not(#homePage) {
    padding-top: 130px;
}

.page {
    padding-top: 44px;
}

@media (max-width: 700px) {
    .page:not(#homePage) {
        padding-top: 150px;
    }
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    min-height: 80px;
    margin: auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* =========================================================
   RISHTABOX HEADER LOGO - STANDARD RESPONSIVE
========================================================= */
.logo-section {
    width: 42%;
    height: 90px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: visible;
    position: relative;
}

.logo {
    width: 100%;
    height: 90px;

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

    text-decoration: none;
    overflow: visible;
}

.logo img {
    width: 360px;
    height: auto;

    max-width: 100%;
    max-height: 82px;

    display: block;

    object-fit: contain;
    object-position: center;
    position: absolute;
    left: 50vw;
    transform: translateX(-50%);
}

/* =========================================================
   LARGE DESKTOP
========================================================= */
@media (min-width: 1200px) {
    .logo img {
        width: 380px;
        max-height: 88px;
        position: absolute;
        left: 40vw;
        transform: translateX(-50%);
    }

    .logo-section {
        width: 45%;
        height: 95px;
    }

    .logo {
        height: 95px;
    }
}

/* =========================================================
   LAPTOP
========================================================= */
@media (min-width: 1025px) and (max-width: 1199px) {
    .logo-section {
        width: 43%;
        height: 90px;
        position: relative;
    }

    .logo {
        height: 90px;
    }

    .logo img {
        width: 340px;
        max-height: 84px;

        position: absolute;

        /* Center on browser viewport */
        left: 40vw;

        transform: translateX(-50%);
    }
}

/* =========================================================
   TABLET
========================================================= */
@media (min-width: 768px) and (max-width: 1024px) {
    .logo-section {
        width: 45%;
        height: 85px;
    }

    .logo {
        height: 85px;
    }

    .logo img {
        width: 300px;
        max-width: 100%;
        max-height: 78px;
    }
}

/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 767px) {
    .logo-section {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .logo {
        width: 100%;

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

    .logo img {
        width: 220px;

        object-fit: contain;
        object-position: center;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */
@media (max-width: 480px) {
    .logo-section {
        height: 65px;
    }

    .logo {
        height: 65px;
    }

    .logo img {
        width: 200px;
        max-width: 88%;
        max-height: 58px;
    }
}

/* RishtaBox text */
.logo-section .home-btn {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-section .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 0.85;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -1.5px;
}

.logo-section .logo-text span {
    display: block;
    font-weight: 900;
}

.logo-section .logo-text span:first-child {
    color: rgba(212, 57, 111, 1);
}

.logo-section .logo-text span:last-child {
    color: rgba(217, 63, 117, 1);
}

/* =========================================================
   MOBILE / SMALL PHONE - RISTHABOX TEXT
========================================================= */
@media (max-width: 767px) {
    .logo-section {
        position: relative;
        width: 100%;
        height: 70px;
    }

    .logo {
        height: 70px;
        position: relative;
    }

    /* RishtaBox text */
    .logo-section .logo-text {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;

        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);

        z-index: 20;

        white-space: nowrap;
        font-size: 20px;
        font-weight: 700;
    }

    /* Logo image */
    .logo img {
        position: absolute;

        left: 50vw;
        top: 50%;

        transform: translate(-50%, -50%);

        max-width: 180px;
        max-height: 60px;

        z-index: 10;
    }
}

@media (max-width: 380px) {
    .logo-section .logo-text {
        left: 8px;
        font-size: 16px;
    }

    .logo img {
        max-width: 150px;
        max-height: 55px;
    }
}

/* color footer */
h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 10px;
}

/* =========================
   SEARCH
========================= */
.search-bar {
    flex: 1;
    width: 100%;
    max-width: 500px;
    margin: 0 10px;
}

.search-bar input {
    width: 100%;
    height: 50px;
    padding: 14px 110px 14px 20px;
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    outline: none;
    font-size: 15px;
    background: var(--white);
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-bar input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(114, 84, 227, 0.12);
}

.search-bar input::placeholder {
    color: var(--gray-500);
}

.search-bar button {
    position: absolute;
    top: 6px;
    right: 6px;
    bottom: 6px;
    padding: 0 20px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    cursor: pointer;
    font-weight: 600;
}

/* =========================
   NAV BUTTONS
========================= */
.nav-actions {
    grid-area: actions;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}

.nav-sections {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition);
    box-shadow: 0 5px 12px rgba(17, 24, 39, 0.25);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-800);
    padding: 8px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--gray-100);
}

.sidebar {
    position: fixed;
    left: -320px;
    top: 0;
    width: 320px;
    height: 100vh;
    background: linear-gradient(135deg, var(--white), var(--gray-50));
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    padding: 24px;
    border-right: 1px solid var(--gray-200);
}

.sidebar.active {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
}

.sidebar-overlay.active {
    display: block;
}

.close-sidebar {
    float: right;
    background: var(--gray-100);
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-600);
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.close-sidebar:hover {
    background: var(--gray-200);
    transform: rotate(90deg);
}

.sidebar-menu {
    list-style: none;
    margin-top: 40px;
}

.sidebar-menu li {
    margin-bottom: 4px;
}

.sidebar-menu a {
    text-decoration: none;
    color: var(--gray-700);
    font-size: 16px;
    display: block;
    padding: 12px 16px;
    font-weight: 500;
    transition: var(--transition);
    border-radius: var(--border-radius-sm);
}

.sidebar-menu a:hover {
    background: var(--gray-100);
    color: var(--gray-900);
    transform: translateX(4px);
}

