/* ========================================================
   রয়্যাল প্রিমিয়াম হেডার আর্কিটেকচার (Ultra-Modern Header)
   ======================================================== */
.royal-header-zone {
    background: #ffffff;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    z-index: 99;
    width: 100%;
}

/* ========================================================
   ১. প্রিমিয়াম গ্লাস টপবার
   ======================================================== */
.top-bar-royal {
    background: linear-gradient(135deg, #111217 0%, #1c1d24 100%);
    color: #e2e8f0;
    padding: 7px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-left-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.info-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: all 0.25s ease;
}

.info-pill:hover {
    background: rgba(139, 0, 0, 0.3);
    border-color: #dc2626;
    color: #ffffff;
}

.pill-icon { 
    font-size: 12px; 
}

.top-right-socials {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-s-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.top-s-btn.fb { background: #1877f2; }
.top-s-btn.x { background: #000000; border: 1px solid #333; }
.top-s-btn.li { background: #0a66c2; }
.top-s-btn.insta { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.top-s-btn.mail { background: #ea4335; }

.top-s-btn:hover {
    transform: translateY(-2px) scale(1.15);
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.4);
}

/* ========================================================
   ২. পুরো হেডারজুড়ে ব্যানার লোগো (কেটে যাবে না - পারফেক্ট অটো-ফিট)
   ======================================================== */
.brand-showcase-zone.full-header-banner {
    padding: 10px 0;
    margin: 0;
    width: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid #f1f5f9;
}

.header-full-logo-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 15px;
}

.brand-full-link {
    display: inline-block;
    width: 100%;
    text-align: center;
    line-height: normal;
}

/* পুরো ইমেজ অক্ষত রাখার নিয়ম */
.full-width-portal-logo {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;          /* ছবির নিজস্ব অনুপাত বজায় থাকবে */
    max-height: none !important;      /* উচ্চতার কোনো জোরপূর্বক সীমা থাকবে না */
    object-fit: contain !important;   /* কখনোই কোনো অংশ কাটবে না */
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.full-width-portal-logo:hover {
    transform: scale(1.005);
}

/* টেক্সট লোগো ব্যাকআপ */
.brand-text-logo {
    margin: 20px 0;
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1.1;
    text-align: center;
}

.brand-text-logo a { 
    text-decoration: none; 
}

.brand-text-logo .logo-red {
    background: linear-gradient(135deg, #8b0000 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ========================================================
   ৩. মূল নেভিগেশন বার
   ======================================================== */
.main-navbar-royal {
    position: relative;
    background: #ffffff;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.navbar-inner-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 54px;
}

.mobile-only-logo { 
    display: none; 
}

.mobile-only-logo img {
    max-height: 38px;
    width: auto;
    object-fit: contain;
}

.royal-nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 6px;
}

.royal-nav-list li a {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 14.5px;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.royal-nav-list li a:hover,
.royal-nav-list li.current-menu-item a {
    color: #8b0000;
    background: rgba(139, 0, 0, 0.06);
    transform: translateY(-1px);
}

.royal-nav-list li.menu-highlight a {
    background: linear-gradient(135deg, #8b0000 0%, #dc2626 100%) !important;
    color: #ffffff !important;
    border-radius: 6px;
    padding: 7px 18px;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
    animation: epaperPulse 3s infinite;
}

@keyframes epaperPulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3); }
    50% { box-shadow: 0 4px 18px rgba(220, 38, 38, 0.6); }
}

/* ডানপাশের ইউটিলিটি আইকনসমূহ */
.navbar-utility-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.util-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.util-btn:hover {
    background: #8b0000;
    color: #ffffff;
    border-color: #8b0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(139, 0, 0, 0.25);
}

.nav-bottom-glow-strip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b0000 0%, #dc2626 50%, #f59e0b 100%);
}

/* ========================================================
   ৪. পপআপ সার্চ ও সাইড ড্রয়ার মেনু
   ======================================================== */
.pc-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pc-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.pc-search-box {
    width: 90%;
    max-width: 600px;
    position: relative;
}

.pc-search-form {
    display: flex;
    background: #ffffff;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.pc-search-form input {
    flex: 1;
    padding: 16px 24px;
    font-size: 16px;
    border: none;
    outline: none;
}

.pc-search-form button {
    background: #8b0000;
    color: #ffffff;
    border: none;
    padding: 0 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.pc-close-search {
    position: absolute;
    top: -50px;
    right: 0;
    color: #ffffff;
    font-size: 36px;
    cursor: pointer;
}

/* সাইড ড্রয়ার */
.pc-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pc-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.pc-drawer-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background: #ffffff;
    z-index: 99999;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    transition: right 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.pc-drawer-menu.active {
    right: 0;
}

.pc-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #8b0000;
    color: #ffffff;
}

.pc-drawer-header h4 { 
    margin: 0; 
    font-size: 16px; 
}

.pc-close-drawer { 
    font-size: 26px; 
    cursor: pointer; 
}

.pc-drawer-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.drawer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.drawer-nav-list li {
    border-bottom: 1px dashed #e2e8f0;
}

.drawer-nav-list li a {
    display: block;
    padding: 12px 5px;
    color: #1e293b;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.drawer-nav-list li a:hover {
    color: #8b0000;
}

.drawer-epaper a {
    color: #8b0000 !important;
    font-weight: 700 !important;
}

.pc-drawer-auth {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-btn {
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.login-btn, .dash-btn { background: #8b0000; }
.logout-btn { background: #475569; }

/* ========================================================
   ৫. ব্রেকিং নিউজ টিকার বার
   ======================================================== */
.breaking-news-bar {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #fecdd3;
    border-radius: 8px;
    margin: 15px 0 5px 0;
    box-shadow: 0 2px 10px rgba(139, 0, 0, 0.05);
    overflow: hidden;
}

.breaking-badge {
    background: linear-gradient(135deg, #8b0000, #dc2626);
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    padding: 9px 18px;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.breaking-ticker-body {
    flex: 1;
    overflow: hidden;
    padding: 0 15px;
    font-size: 13.5px;
    color: #334155;
}

.breaking-ticker-body a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
}

.breaking-ticker-body a:hover {
    color: #8b0000;
}

.ticker-dot {
    color: #dc2626;
    margin: 0 8px;
}

/* ========================================================
   ৬. ডার্ক মোড সাপোর্ট
   ======================================================== */
body.dark-mode .royal-header-zone {
    background: #18181b;
}

body.dark-mode .brand-showcase-zone.full-header-banner {
    background: #18181b;
    border-color: #27272a;
}

body.dark-mode .main-navbar-royal {
    background: #1c1d22;
    border-color: #27272a;
}

body.dark-mode .royal-nav-list li a {
    color: #cbd5e1;
}

body.dark-mode .royal-nav-list li a:hover,
body.dark-mode .royal-nav-list li.current-menu-item a {
    background: rgba(220, 38, 38, 0.15);
    color: #fca5a5;
}

body.dark-mode .util-btn {
    background: #27272a;
    border-color: #3f3f46;
    color: #e2e8f0;
}

body.dark-mode .util-btn:hover {
    background: #8b0000;
    border-color: #8b0000;
}

body.dark-mode .breaking-news-bar {
    background: #1c1d22;
    border-color: #27272a;
}

body.dark-mode .breaking-ticker-body,
body.dark-mode .breaking-ticker-body a {
    color: #e2e8f0;
}

body.dark-mode .pc-drawer-menu {
    background: #18181b;
}

body.dark-mode .drawer-nav-list li {
    border-color: #27272a;
}

body.dark-mode .drawer-nav-list li a {
    color: #e2e8f0;
}

/* ========================================================
   ৭. রেসপন্সিভ সমন্বয়
   ======================================================== */
@media (max-width: 992px) {
    .desktop-only-branding,
    .desktop-nav-links {
        display: none !important;
    }
    .mobile-only-logo {
        display: block;
    }
    .top-left-info {
        justify-content: center;
        font-size: 11.5px;
    }
    .top-bar-flex {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .brand-showcase-zone.full-header-banner {
        padding: 6px 0;
    }
    .header-full-logo-wrap {
        padding: 0 10px;
    }
}