* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================================================
   HEADER
========================================================= */

.header {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    background: #2f5fe3;

    z-index: 1000;

}


/* =========================================================
   HEADER TOP
========================================================= */

.header-top {

    width: 100%;

    min-height:50px;

    padding: 0 24px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

}


/* =========================================================
   LOGO
========================================================= */

.header-left {

    flex: 0 0 auto;

    display: flex;

    align-items: center;

}


.logo {

    display: flex;

    align-items: center;

    gap: 8px;

    text-decoration: none;

    white-space: nowrap;
    
    }


.header-logo {

    width:40px;

    height: 40px;

    display: block;

    object-fit: contain;

}


.header-title {

    font-family: 'Montserrat', sans-serif;

    font-size: 25px;

    font-weight: 800;

    color: #fff;

    letter-spacing: 1px;

    text-transform: uppercase;

    white-space: nowrap;

}


/* =========================================================
   HEADER NAV
========================================================= */

.header-nav {

    flex: 1;

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 26px;

    min-width: 0;

    white-space: nowrap;

}


.header-nav-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    color: #fff;

    text-decoration: none;

    font-size: 17px;

    font-weight: 600;

    white-space: nowrap;

}


.header-nav-btn:hover {

    color: #fff;

    text-decoration: none;

}


/* =========================================================
   LOCATION
========================================================= */

.location-btn{
    min-height:38px;
    height:38px;
    padding:0 16px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    border:none !important;
    background:transparent !important;
    color: #fff;
    font-size: 15px;
    font-weight:600 !important;

}

.location-pin{
    width:20px !important;
    height:20px !important;
    object-fit:contain !important;
    display:block !important;
    flex:0 0 20px !important;
}

/* =========================================================
   NOTIFICATION
========================================================= */

.notification-btn {

    position: relative;

    width: 38px;

    height: 38px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    color: #fff;

    text-decoration: none;

    font-size: 22px;

    flex: 0 0 auto;

}


.notification-btn:hover {

    color: #fff;

    text-decoration: none;

}


.notification-badge {

    position: absolute;

    top: 1px;

    right: 0;

    min-width: 18px;

    height: 18px;

    padding: 0 4px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #e60000;

    color: #fff;

    border-radius: 50%;

    font-size: 10px;

    font-weight: 700;

    line-height: 1;

}


/* =========================================================
   USER MENU
========================================================= */

.user-menu {

    display: flex;

    align-items: center;

    gap: 12px;

    flex: 0 0 auto;

    white-space: nowrap;

}


.user-name {

    color: #fff;

    font-size: 15px;

    font-weight: 600;

    white-space: nowrap;

    text-decoration: none !important;
}

.user-name:hover,
.user-name:focus,
.user-name:active {
    text-decoration: none !important;
}


.login-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 38px;

    padding: 0 15px;

    background: transparent;

    border: 1px solid rgba(255,255,255,.6);

    border-radius: 20px;

    color: #fff;

    text-decoration: none;

    font-size: 15px;

    font-weight: 600;

    white-space: nowrap;

}


.login-btn:hover {

    background: rgba(255,255,255,.10);

    color: #fff;

    text-decoration: none;

}


/* =========================================================
   FLASH NEWS
========================================================= */

.flash-bar {

    width: 100%;

    height: 30px;

    display: flex;

    align-items: center;

    overflow: hidden;

    background: #c00000;

}


.flash-icon {

    flex: 0 0 70px;

    margin-left: 8px;

    color: #fff;

    font-weight: bold;

    text-align: center;

    border: 2px solid #fff;

    border-radius: 5px;

    animation: blink 1s infinite;

}


.flash-scroll {

    flex: 1;

    overflow: hidden;

    margin-left: 12px;

    white-space: nowrap;

}


.flash-text {

    display: inline-block;

    color: #fff;

    white-space: nowrap;

    padding-left: 100%;

    animation: scrollNews 20s linear infinite;

}


@keyframes blink {

    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: .35;
    }

}


@keyframes scrollNews {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }

}


/* =========================================================
   LATEST NEWS
========================================================= */

.latest-card {

    display: block;

    background: #fff;

    border-radius: 14px;

    overflow: hidden;

    text-decoration: none;

    color: #222;

    margin: 15px;

    margin-bottom: 25px;

    box-shadow: 0 2px 10px rgba(0,0,0,.08);

}


.latest-image img {

    width: 100%;

    display: block;

    aspect-ratio: 16/9;

    object-fit: cover;

}


.latest-title {

    padding: 14px 15px 10px;

    font-size: 22px;

    font-weight: 700;

    line-height: 1.4;

}


.latest-meta {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 15px 15px;

    gap: 10px;

    font-size: 13px;

    color: #666;

}


.latest-place {

    flex: 1;

    text-align: left;

}


.latest-badge {

    flex: 0 0 auto;

    background: #d60000;

    color: #fff;

    padding: 4px 12px;

    border-radius: 20px;

    font-size: 12px;

    font-weight: 600;

}


.latest-time {

    flex: 1;

    text-align: right;

}


/* =========================================================
   LOCATION POPUP
========================================================= */

.location-popup {

    display: none;

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0,0,0,.45);

    z-index: 9999;

}


.location-box {
    width: 320px;
    background: #fff;
    border-radius: 15px;
    padding: 14px 20px;
    }


.location-box h3 {

    margin: 0 0 15px;

}


.location-box label {

    display: block;

    margin: 6px 0 3px;

    font-weight: 600;

}


.location-box select {

    width: 100%;

    padding: 7px;

    border: 1px solid #ddd;

    border-radius: 8px;

    height: 52px;

}


.follow-location {

    display: flex !important;

    align-items: center;

    gap: 10px;

    margin-top: 8px;

}


.popup-buttons {

    display: flex;

    justify-content: flex-end;

    gap: 10px;

    margin-top: 10px;

}


.popup-buttons button {

    padding: 7px 18px;

    border: none;

    border-radius: 8px;

    cursor: pointer;

}


.popup-buttons button:last-child {

    background: #c0002b;

    color: #fff;

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

    .header-top {

        padding: 0 12px;

        gap: 12px;

    }


    .header-logo {

        width: 42px;

        height: 42px;

    }


    .header-title {

        font-size: 23px;

    }


    .header-nav {

        gap: 14px;

    }


    .header-nav-btn {

        font-size: 14px;

    }


    .location-btn {

        padding: 0 12px;

        font-size: 14px;

    }


    .user-name {

        display: none;

    }


}

/* =========================================================
   MOBILE HEADER — FINAL
========================================================= */

@media (max-width: 650px) {

    .header-top{
        height:52px !important;
        min-height:52px !important;
        padding:0 7px !important;

        display:flex !important;
        align-items:center !important;

        overflow:hidden !important;
        gap:0 !important;
    }


    /* =========================
       LOGO + SMACY
    ========================= */

    .header-left{
        flex:0 0 96px !important;
        width:96px !important;
        min-width:96px !important;

        height:52px !important;

        display:flex !important;
        align-items:center !important;
    }

    .logo{
        display:flex !important;
        align-items:center !important;
        gap:4px !important;

        white-space:nowrap !important;
        text-decoration:none !important;
    }

    .header-logo{
        width:30px !important;
        height:30px !important;
        flex:0 0 30px !important;
    }

    .header-title{
        font-size:17px !important;
        line-height:1 !important;
        font-weight:800 !important;
        letter-spacing:.3px !important;
    }


    /* =========================
       RIGHT NAV
    ========================= */

    .header-nav{
        position:absolute !important;

        top:0 !important;
        right:7px !important;

        height:52px !important;

        display:flex !important;
        align-items:center !important;
        justify-content:flex-end !important;

        gap:7px !important;

        margin:0 !important;
        padding:0 !important;

        width:auto !important;
        min-width:0 !important;

        overflow:visible !important;
        white-space:nowrap !important;

        transform:none !important;
    }


    /* HOME HIDDEN */
    .header-nav > a[href*="news/index.php"]{
        display:none !important;
    }


    /* =========================
       TARIFF
    ========================= */

    .header-nav > a[href*="ads/tariff.php"]{
        margin-right:9px !important;
        display:inline-flex !important;
        align-items:center !important;
        justify-content:center !important;

        flex:0 0 auto !important;

        width:auto !important;
        min-width:auto !important;

        padding:0 !important;

        color:#fff !important;

        font-size:14px !important;
        font-weight:600 !important;

        line-height:1 !important;
        white-space:nowrap !important;
    }


    /* =========================
       LOCATION
    ========================= */

    .location-btn{
        transform:translateX(-10px) !important;
        display:inline-flex !important;
        align-items:center !important;
        justify-content:center !important;

        flex:0 1 auto !important;

        min-height:32px !important;
        height:32px !important;

        max-width:105px !important;

        padding:0 !important;

        gap:4px !important;

        border:none !important;
        background:transparent !important;

        color:#fff !important;

        font-size:14px !important;
        font-weight:600 !important;

        white-space:nowrap !important;
        overflow:hidden !important;
    }

    .location-pin{
        width:18px !important;
        height:18px !important;

        flex:0 0 18px !important;

        object-fit:contain !important;
    }

    #currentLocation{
        display:block !important;

        min-width:0 !important;

        overflow:hidden !important;
        text-overflow:ellipsis !important;
        white-space:nowrap !important;
    }


    /* =========================
       NOTIFICATION
    ========================= */

    .notification-wrap{
        flex:0 0 28px !important;
        width:28px !important;
    }

    .notification-btn{
        width:28px !important;
        height:32px !important;

        padding:0 !important;
        margin:0 !important;

        font-size:18px !important;
    }


    /* =========================
       LOGIN
    ========================= */

    .login-btn{
        display:inline-flex !important;
        align-items:center !important;
        justify-content:center !important;

        flex:0 0 auto !important;

        min-height:32px !important;
        height:32px !important;

        padding:0 4px !important;

        border:none !important;
        background:transparent !important;

        color:#fff !important;

        font-size:14px !important;
        font-weight:600 !important;

        white-space:nowrap !important;
    }

}


