/* ============================================================
   ASSETS/CSS/STYLE.CSS - COMMON/ SHARED STYLES
   (Remove page-specific styles - they are inlined in index.php)
   ============================================================ */

/* ===== ROOT VARIABLES ===== */
:root {
    --navy: #0d3b7a;
    --navy-dark: #0a2c5c;
    --gold: #f5b700;
    --gold-dark: #e0a600;
    --sky: #1e6fd9;
    --text-dark: #16213e;
    --muted: #6b7280;
    --bg-soft: #eef4fb;
}

/* ===== GLOBAL RESETS ===== */
* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: var(--text-dark);
    background: #fff;
}

a {
    text-decoration: none;
}

/* ===== COMMON BUTTONS ===== */
.btn-navy {
    background: var(--navy);
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 0.82rem;
    transition: 0.2s;
}
.btn-navy:hover {
    background: var(--navy-dark);
    color: #fff;
}

.btn-outline-navy {
    border: 1.5px solid var(--navy);
    color: var(--navy);
    font-weight: 600;
    font-size: 0.82rem;
    background: #fff;
    transition: 0.2s;
}
.btn-outline-navy:hover {
    background: var(--bg-soft);
    color: var(--navy);
}

.btn-gold {
    background: var(--navy);
    color: #fff;
    font-weight: 700;
    border-radius: 8px;
    padding: 12px 22px;
    border: none;
    white-space: nowrap;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}
.btn-gold:hover {
    background: var(--navy-dark);
    color: #fff;
}

/* ===== NAVBAR ===== */
.navbar-custom {
    padding: 2px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    background: #fff;
}

.brand-logo {
    height: 65px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 767px) {
    .brand-logo {
        height: 40px;
        background-color:  #fff;
        border-radius: 10px;
        padding: 5px;
    }
 
}
 

.nav-link-custom {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 12px;
    font-size: 0.85rem;
    transition: 0.2s;
}
.nav-link-custom:hover {
    color: var(--sky) !important;
}

/* ===== FOOTER ===== */
footer {
    background: var(--navy-dark);
    color: #b9c6dc;
    padding: 40px 0 0;
    font-size: 0.8rem;
}

footer h6 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 14px;
    font-size: 0.85rem;
}

footer a {
    color: #b9c6dc;
    transition: 0.2s;
}
footer a:hover {
    color: var(--gold);
}

footer p {
    margin-bottom: 8px;
}

footer .footer-about p {
    color: #a9b7cf;
    font-size: 0.78rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.footer-social a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    transition: 0.2s;
}
.footer-social a:hover {
    background: var(--sky);
}

.footer-city-group {
    font-weight: 700;
    color: #fff;
    font-size: 0.72rem;
    margin: 10px 0 4px;
}
.footer-city-group:first-of-type {
    margin-top: 0;
}

.contact-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.78rem;
}
.contact-line i {
    color: var(--gold);
    margin-top: 2px;
}

.footer-brand-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    background-color: #fff;
    padding: 8px;
    border-radius: 0.8rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 25px;
    padding: 14px 0;
    font-size: 0.7rem;
    color: #8fa0bd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}

.footer-bottom-links a {
    color: #8fa0bd;
    margin-left: 14px;
}
.footer-bottom-links a:hover {
    color: var(--gold);
}

.footer-col-toggle {
    display: none;
}

/* ===== MOBILE FILTER (shared across pages) ===== */
.mobile-filter-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    cursor: pointer;
}

.mobile-filter-bar .mfb-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-filter-bar .mfb-icon {
    width: 38px;
    height: 38px;
    background: var(--sky);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.mobile-filter-bar .mfb-text strong {
    display: block;
    font-size: 0.92rem;
    color: var(--text-dark);
}

.mobile-filter-bar .mfb-text span {
    font-size: 0.75rem;
    color: var(--muted);
}

.mobile-filter-bar .mfb-arrow {
    color: var(--sky);
    font-size: 1rem;
    font-weight: bold;
}

.mobile-filter-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 40, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
    z-index: 1049;
}
.mobile-filter-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.mobile-filter-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    max-height: 88vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    z-index: 1050;
    padding: 10px 20px 22px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
}
.mobile-filter-sheet.open {
    transform: translateY(0);
}

.mfs-handle {
    width: 42px;
    height: 5px;
    background: #dbe2ea;
    border-radius: 3px;
    margin: 8px auto 14px;
}

.mfs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.mfs-header h5 {
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0;
    font-size: 1.1rem;
}

.mfs-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-soft);
    border: none;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mfs-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}
.mfs-tabs button {
    border: 1px solid #dbe2ea;
    background: #fff;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.78rem;
    padding: 10px 6px;
    border-radius: 8px;
    transition: 0.2s;
}
.mfs-tabs button.active {
    background: var(--sky);
    border-color: var(--sky);
    color: #fff;
}

.mfs-field {
    margin-bottom: 16px;
}
.mfs-field label {
    font-weight: 600;
    font-size: 0.82rem;
    display: block;
    margin-bottom: 6px;
}
.mfs-field .form-select,
.mfs-field .form-control {
    border-radius: 8px;
    padding: 11px 12px;
    border: 1px solid #dbe2ea;
    width: 100%;
}

.mfs-search-btn {
    background: var(--navy);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    padding: 13px;
    width: 100%;
    font-size: 0.95rem;
}
.mfs-search-btn:hover {
    background: var(--navy-dark);
    color: #fff;
}

/* ===== RESPONSIVE (shared) ===== */
@media (max-width: 991px) {
    .footer-accordion-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .footer-accordion-item:last-child {
        border-bottom: none;
    }

    .footer-col-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        padding: 12px 0;
    }
    .footer-col-toggle h6 {
        margin-bottom: 0;
        font-size: 0.8rem;
    }
    .footer-col-toggle .chevron {
        color: #8fa0bd;
        transition: transform 0.25s ease;
        font-size: 0.75rem;
    }
    .footer-col-toggle.open .chevron {
        transform: rotate(180deg);
    }
    .footer-col-body {
        display: none;
        padding-bottom: 10px;
    }
    .footer-col-body.open {
        display: block;
    }
}

@media (max-width: 767px) {
    .mobile-filter-bar {
        display: flex;
    }
    .footer-brand-logo {
        height: 60px !important;
    }
    .footer-bottom {
        justify-content: center !important;
        text-align: center;
    }
    .footer-bottom-links a {
        margin-left: 8px;
    }
}

@media (max-width: 576px) {
    .search-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== USER PROFILE BOX (Desktop) ===== */
.user-profile-box {
    position: relative;
}

.user-profile-btn {
    background: var(--bg-soft);
    padding: 6px 16px 6px 10px;
    border-radius: 50px;
    border: 1.5px solid #e8edf3;
    transition: all 0.25s ease;
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-profile-btn:hover {
    background: #e8edf3;
    border-color: var(--sky);
    color: var(--text-dark);
}

.user-profile-btn .user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--sky);
}

.user-profile-btn .user-avatar-icon {
    font-size: 1.6rem;
    color: var(--sky);
}

.user-profile-btn .user-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
}

.user-profile-btn::after {
    margin-left: 4px;
    color: var(--muted);
    font-size: 0.7rem;
}

.user-profile-box .dropdown-menu {
    border-radius: 10px;
    border: 1px solid #e8edf3;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    padding: 6px;
    min-width: 180px;
}

.user-profile-box .dropdown-menu .dropdown-item {
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 500;
    transition: 0.2s;
}

.user-profile-box .dropdown-menu .dropdown-item:hover {
    background: var(--bg-soft);
    color: var(--sky);
}

.user-profile-box .dropdown-menu .dropdown-item.text-danger:hover {
    background: #fbe9e7;
    color: #d32f2f !important;
}



/* ============================================================
   PREMIUM MOBILE OFFCANVAS MENU
   ============================================================ */

/* ===== OFFCANVAS CONTAINER ===== */
.premium-offcanvas {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.06);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

.premium-offcanvas:not(.show) {
    transform: translateX(100%);
}

.premium-offcanvas.show {
    transform: translateX(0);
}

/* ===== OFFCANVAS HEADER ===== */
.premium-offcanvas-header {
    background: linear-gradient(135deg, #0d3b7a 0%, #1a4f8a 40%, #0a2c5c 100%);
    padding: 18px 22px;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.premium-offcanvas-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    pointer-events: none;
}

.premium-offcanvas-header::after {
    content: '';
    position: absolute;
    bottom: -60%;
    left: -10%;
    width: 120px;
    height: 120px;
    background: rgba(30, 111, 217, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.offcanvas-brand-text {
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    letter-spacing: -0.3px;
    position: relative;
    z-index: 1;
}

.premium-close-btn {
    opacity: 0.8;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.premium-close-btn:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* ===== OFFCANVAS BODY ===== */
.premium-offcanvas-body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ===== MOBILE USER CARD ===== */
.mobile-user-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(30, 111, 217, 0.04);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(30, 111, 217, 0.06);
    transition: all 0.3s ease;
}

.mobile-user-card:hover {
    background: rgba(30, 111, 217, 0.07);
    border-color: rgba(30, 111, 217, 0.12);
}

.mobile-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid #1e6fd9;
    flex-shrink: 0;
}

.mobile-user-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e6fd9, #0d3b7a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.mobile-user-info .fw-bold {
    font-size: 0.95rem;
    color: #16213e;
    line-height: 1.2;
}

.mobile-user-info small {
    font-size: 0.7rem;
    color: #6b7280;
}

/* ===== MOBILE NAV LINKS ===== */
.premium-mobile-nav {
    gap: 2px;
    margin-bottom: 0;
    flex: 1;
}

.premium-mobile-link {
    color: #16213e !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 10px 16px !important;
    border-radius: 10px;
    transition: all 0.25s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.premium-mobile-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, #1e6fd9, #0d3b7a);
    border-radius: 0 4px 4px 0;
    transition: all 0.3s ease;
}

.premium-mobile-link:hover {
    background: rgba(30, 111, 217, 0.06);
    color: #1e6fd9 !important;
    padding-left: 20px !important;
}

.premium-mobile-link:hover::before {
    height: 60%;
}

.premium-mobile-link i {
    font-size: 1.1rem;
    color: #6b7280;
    transition: all 0.3s ease;
    width: 22px;
    text-align: center;
}

.premium-mobile-link:hover i {
    color: #1e6fd9;
}

/* ===== MOBILE ACTION BUTTONS ===== */
.premium-mobile-actions {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-premium-mobile-primary {
    background: linear-gradient(135deg, #0d3b7a, #0a2c5c);
    color: #fff !important;
    border: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 0;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 59, 122, 0.2);
    text-align: center;
}

.btn-premium-mobile-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(13, 59, 122, 0.3);
    color: #fff !important;
}

.btn-premium-mobile-outline {
    background: transparent;
    color: #0d3b7a !important;
    border: 2px solid #0d3b7a;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 0;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-premium-mobile-outline:hover {
    background: #0d3b7a;
    color: #fff !important;
}

.btn-premium-mobile-post {
    background: linear-gradient(135deg, #f5b700, #e0a600);
    color: #0d3b7a !important;
    border: none;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 0;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 183, 0, 0.25);
    text-align: center;
}

.btn-premium-mobile-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(245, 183, 0, 0.35);
    color: #0a2c5c !important;
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 576px) {
    .premium-offcanvas-header {
        padding: 14px 16px;
    }
    .offcanvas-brand-text {
        font-size: 0.95rem;
    }
    .premium-offcanvas-body {
        padding: 14px 16px 18px;
    }
    .mobile-user-card {
        padding: 12px 14px;
        margin-bottom: 16px;
    }
    .mobile-user-avatar,
    .mobile-user-avatar-placeholder {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .mobile-user-info .fw-bold {
        font-size: 0.85rem;
    }
    .premium-mobile-link {
        font-size: 0.82rem;
        padding: 8px 14px !important;
    }
    .premium-mobile-link i {
        font-size: 1rem;
        width: 20px;
    }
    .btn-premium-mobile-primary,
    .btn-premium-mobile-outline,
    .btn-premium-mobile-post {
        font-size: 0.78rem;
        padding: 8px 0;
    }
}