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

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

body {
    font-family: 'Lato', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.header-top {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.header_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-top-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    align-items: center;
    gap: 20px;
}

/* LEFT */

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-date {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    color: #000;
}

/* SEARCH */

.header-search {
    position: relative;
    width: 100%;
    max-width: 260px;
}

.header-search input {
    width: 100%;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 12px 0 38px;
    font-size: 13px;
    outline: none;
}

.header-search::before {
    content: "\f002";
    font-family: FontAwesome;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #888;
}

/* CENTER */

.header-center {
    text-align: center;
}

.header-logo {
    height: 70px;
    object-fit: contain;
}

/* RIGHT */

.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

/* EPAPER */

.btn-epaper {
    background: #dd221b;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.btn-epaper i {
    font-size: 14px;
}

/* SOCIAL */

.social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn img {
    width: 18px;
    height: 18px;
}

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

.nav-bar {
    width: 100%;
    background: #00162f;
    position: relative;
    z-index: 999;
}

.nav-container {
    /* max-width:1200px; */
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* NAV MENU */

.nav-menu {
    display: flex;
    align-items: center;
}

/* NAV ITEM */

.nav-item {
    position: relative;
    color: #fff;
    padding: 16px 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.3s;
}

.nav-item:last-child {
    border-right: none;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* DROPDOWN */

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #00162f;
    display: none;
    flex-direction: column;
    z-index: 9999;
}

.dropdown li {
    width: 100%;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 13px;
    transition: 0.3s;
}

.dropdown li:hover {
    background: #000;
}

/* DESKTOP HOVER */

@media (min-width:993px) {

    .nav-item-dropdown:hover .dropdown {
        display: flex;
    }
}

/* ================= HAMBURGER ================= */

.hamburger {
    display: none;
}

.menu-overlay {
    display: none;
}

.close-menu {
    display: none;
}

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

@media (max-width:992px) {

    /* HEADER */

    .header-top-content {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
    }

    .header-left,
    .header-right {
        display: none;
    }

    .header-center {
        order: 1;
        flex: 1;
        text-align: left;
    }

    .header-logo {
        height: 52px;
    }

    /* HAMBURGER */

    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        order: 2;
        padding: 10px;
        background: #f5f5f5;
        border-radius: 4px;

    }

    .hamburger span {
        width: 22px;
        height: 3px;
        background: #333;
    }

    /* MOBILE SEARCH */

    .mobile-search-container {
        width: 100%;
        order: 3;
        display: block !important;
    }

    .mobile-search-container input {
        width: 100%;
        height: 45px;
        border: 1px solid #ddd;
        border-radius: 4px;
        padding: 0 15px;
        font-size: 14px;
    }

    /* MOBILE NAV */

    .nav-menu {
        position: fixed;
        top: 0;

        /* THIS MAKES MENU COME ABOVE FIXED MOBILE BUTTONS */
        z-index: 99999;

        right: -100%;
        width: 85%;
        height: 100vh;
        background: #00162f;
        flex-direction: column;
        align-items: flex-start;
        overflow-y: auto;
        transition: 0.4s;
        padding-top: 70px;
    }

    .nav-menu.active {
        right: 0;
    }

    /* CLOSE */

    .close-menu {
        display: block;
        position: absolute;
        top: 18px;
        right: 20px;
        font-size: 32px;
        color: #fff;
        cursor: pointer;
    }

    /* OVERLAY */

    .menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 99998;
        display: none;
    }

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

    /* NAV ITEMS */

    .nav-item {
        width: 100%;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        justify-content: space-between;
        padding: 18px 22px;
        font-size: 15px;
    }

    /* MOBILE DROPDOWN */

    .dropdown {
        position: static;
        width: 100%;
        min-width: 100%;
        display: none;
        background: #022447;
    }

    .nav-item.active .dropdown {
        display: flex;
    }

    /* DRAWER FOOTER */

    .drawer-footer {
        width: 100%;
        background: #fff;
        margin-top: auto;
        padding: 25px 20px;
        text-align: center;
    }

    .drawer-date {
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 15px;
    }

    .drawer-epaper {
        width: 100%;
        border: none;
        background: #dd221b;
        color: #fff;
        border-radius: 4px;
        padding: 12px;
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 15px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
    }

    .drawer-social {
        display: flex;
        justify-content: center;
        gap: 18px;
    }

    .drawer-social a {
        width: 36px;
        height: 36px;
        border: 1px solid #ddd;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #000;
    }
}

/* HIDE MOBILE ELEMENTS ON DESKTOP */

@media (min-width:993px) {

    .mobile-search-container,
    .drawer-footer {
        display: none;
    }
}

/* Add this anywhere inside your <style> tag */
body.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
}

/* Ensure the drawer itself can scroll if it has too many links */
@media (max-width: 992px) {
    .nav-menu {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 992px) {

    /* 1. THE BLURRY OVERLAY */
    .menu-overlay {
        position: fixed !important;
        inset: 0 !important;
        background: rgba(0, 0, 0, 0.6) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        z-index: 2147483646 !important;
        /* Max value to stay above everything */
        display: none;
    }

    /* 2. THE SIDEBAR DRAWER */
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: -100%;
        /* Hidden off-screen */
        width: 85% !important;
        height: 100vh !important;
        background: #00162f !important;
        /* Deep Navy */
        z-index: 2147483647 !important;
        /* Highest value */
        flex-direction: column !important;
        display: flex !important;
        overflow-y: auto !important;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        padding-top: 80px;
        /* Space for the Close 'X' button */

        /* ALIGN ITEMS TO THE RIGHT WALL */
        align-items: flex-end !important;
    }

    .nav-menu.active {
        right: 0 !important;
    }

    /* 3. NAV ITEMS (Rows like HOME, GOA NEWS) */
    .nav-item {
        width: 100% !important;
        border: none !important;
        /* border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important; */
        padding: 18px 30px !important;
        font-size: 16px !important;
        color: #fff !important;
        font-weight: 700 !important;
        text-transform: uppercase;

        /* ALIGN TEXT AND ICON TO THE RIGHT */
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        text-align: right !important;
    }

    /* Chevron Icon spacing */
    .nav-item i {
        margin-left: 15px !important;
        /* Space between text and arrow */
        font-size: 14px !important;
        order: 2;
        /* Ensures arrow stays on the absolute right */
    }

    /* Wrapper for "THE GOAN SPECIAL" to keep them together */
    .nav-text-wrapper {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 5px;
        order: 1;
    }

    /* 4. DROPDOWN LIST (Sub-menus) */
    .dropdown {
        position: static !important;
        width: 100% !important;
        background: #011d3d !important;
        /* Darker navy for sub-items */
        display: none;
    }

    .dropdown li {
        padding: 12px 30px !important;
        text-align: right !important;
        /* Align sub-links to right */
        border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
        color: rgba(255, 255, 255, 0.7) !important;
    }

    /* 5. THE WHITE FOOTER INSIDE DRAWER */
    .drawer-footer {
        width: 100% !important;
        background: #fff !important;
        margin-top: auto !important;
        /* Pushes to the bottom */
        padding: 30px 20px 100px 20px !important;
        /* Bottom padding to clear mobile bars */
        text-align: center !important;
        display: block !important;
        position: relative !important;
        box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
    }

    .drawer-date {
        color: #333 !important;
        font-weight: 700 !important;
        margin-bottom: 15px !important;
    }
}