/* ==========================================================================
   1. ดึงฟอนต์ผ่าน @import (วางบรรทัดแรกสุดของไฟล์ style.css เท่านั้น)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;800;900&family=Noto+Sans+Thai:wght@100..900&display=swap');

/* ==========================================================================
   2. กำหนดการใช้งานฟอนต์ทั้งเว็บไซต์
   ========================================================================== */
:root {
    --font-primary: 'Noto Sans Thai', 'Montserrat', sans-serif;
    --font-heading: 'Montserrat', 'Noto Sans Thai', sans-serif;
}

/* บังคับใช้ฟอนต์ Noto Sans Thai เป็นฟอนต์หลักของทุกองค์ประกอบ */
body, 
input, 
button, 
select, 
textarea, 
.nav-link, 
.dropdown-item {
    font-family: var(--font-primary) !important;
}

/* กำหนดให้หัวข้อ หรือ โลโก้ ภาษาอังกฤษ เน้นใช้ฟอนต์ Montserrat */
h1, h2, h3, h4, h5, h6, 
.sidebar-logo, 
.navbar-brand {
    font-family: var(--font-heading);
}

/* ==========================================================================
   SmartEvent — Global Stylesheet (Top Navigation Layout)
   ========================================================================== */

:root {
    --brand-primary: #0d6efd;
    --brand-dark: #0b3b8f;
    --brand-light: #1c7ed6;
    --bg-page: #f4f9ff;
    --text-main: #12315f;
    --text-muted: #5a6f8e;
    --border-soft: #e6efff;
    --shadow-card: 0 8px 24px rgba(13, 110, 253, 0.08);
    --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.12);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Global --- */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    overflow-x: hidden; /* ป้องกันการสเกลเกินขอบจอแนวนอน */
}

a { text-decoration: none; }

/* ==========================================================================
   Top Navigation Bar (แบบเต็มจอสีน้ำเงิน + สไตล์ปุ่มใหม่ + 2-Step Sticky)
   ========================================================================== */

/* --- ส่วนที่คุมโครงสร้างเว็บ (เก็บไว้) --- */
.site-content {
    margin-left: 0 !important;
    min-height: 100vh;
}

/* ==========================================
   สไตล์ Navbar แบบเต็มจอสีน้ำเงิน
========================================== */
.site-navbar {
    width: 100%;
    /* 🌟 เวอร์ชั่นกระจกฝ้าโปร่งแสงละมุน (มองทะลุแล้วเบลอฉากหลังได้จริง) */
    background: linear-gradient(
    180deg, 
    rgba(21, 93, 237, 0.88) 0%,    /* ขอบบนสุด: น้ำเงินสว่างนุ่มนวล */
    rgba(18, 79, 215, 0.90) 50%,   /* ตรงกลาง: ค่อยๆ ทอดสะพานลดความสว่างลงอย่างสมดุล */
    rgba(14, 58, 184, 0.90) 100%   /* ขอบล่างสุด: น้ำเงินเข้มลึกแบบนุ่มๆ ไม่ตัดฉับ */
    ) !important;

    backdrop-filter: blur(12px) !important; 
    -webkit-backdrop-filter: blur(12px) !important;
    padding: 0.5rem 1.5rem;
    z-index: 1030;
    
    /* สัดส่วนเงาด้านล่าง: นุ่มนวล ละมุน ไม่ทึบเกินไป */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12) !important;
    /* หากต้องการให้เงาเข้มขึ้นอีกนิด สามารถเปลี่ยนเป็น rgba(0, 0, 0, 0.18) ได้ครับ */
}
/* 1. กล่องไอคอนโลโก้สีขาว */
.nav-logo-box {
    width: 48px;
    height: 48px;
    background-color: #ffffff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #186bf6;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* 2. ข้อความโลโก้ (สีขาวล้วน) */
.sidebar-logo {
    font-family: 'Prompt', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffffff !important;
    letter-spacing: -0.5px;
    line-height: 1;
    background: none;
    -webkit-text-fill-color: initial;
}
.sidebar-tagline {
    font-family: 'Kanit', sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-top: 2px;
}

/* 3. เส้นคั่นบางๆ หลังโลโก้ */
.nav-divider {
    width: 1px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.25);
    margin: 0 1.5rem;
}

/* 4. เมนูนำทาง (สีขาว) */
.site-navbar .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    padding: 0.6rem 1.2rem !important;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.site-navbar .nav-link.active {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.05);
}
.site-navbar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 5. วงกลมไอคอนกระดิ่งแจ้งเตือน */
.nav-icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.12) !important; 
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 0.2s ease;
}

/* ตอนเอาเมาส์มาชี้ หรือตอนเปิด Dropdown ให้สว่างขึ้น */
.nav-icon-circle:hover, 
.nav-icon-circle[aria-expanded="true"] {
    background-color: rgba(255, 255, 255, 0.25) !important;
}

/* 2. จัดตำแหน่งเลข 3 สีแดงให้เยื้องขวาบน พร้อมขอบขาวและเงาละมุน */
.nav-icon-circle .notification-badge {
    top: 8px !important;
    margin-left: -8px !important; 
    font-size: 11px !important;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    padding: 0 4px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* 6. ปุ่มเข้าสู่ระบบ (กรอบขาว) */
.btn-nav-outline {
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #ffffff;
    border-radius: 50px;
    padding: 0.5rem 1.4rem;
    background: transparent;
    transition: all 0.3s ease;
}
.btn-nav-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: #ffffff;
}

/* 7. ปุ่มสมัครสมาชิก (พื้นขาวทึบ ตัวอักษรสีน้ำเงิน) */
.btn-nav-solid {
    background: #ffffff !important;
    color: #186bf6 !important;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.btn-nav-solid:hover {
    background-color: #ffffff !important; /* บังคับให้พื้นหลังเป็นสีขาวทึบเหมือนเดิม */
    color: #0d4af0 !important;            /* ตัวอักษรสีน้ำเงินเข้มขึ้นเวลา Hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    opacity: 1 !important;                 /* ป้องกันปุ่มโปร่งแสงหรือจางลง */
}

/* ==========================================
   2-Step Sticky สำหรับ Navbar แบบเต็มจอ
========================================== */

/* 1. สไตล์เริ่มต้น (ตอนอยู่บนสุดของเว็บ) */
.site-navbar.custom-navbar {
    position: relative; 
    top: 0;
    left: 0;
    right: 0;
    transition: transform 0.35s ease-in-out, box-shadow 0.3s ease;
}

/* 2. สเต็ปที่ 1: เลื่อนจอลง -> ดันเมนูขึ้นไปซ่อนแบบพอดีขอบ */
.site-navbar.nav-hidden {
    transform: translateY(-100%); 
}

/* 3. สเต็ปที่ 2: เลื่อนจอขึ้น -> เมนูเด้งลงมาติดขอบบน (Sticky) */
.site-navbar.nav-sticky {
    position: fixed !important; 
    top: 0 !important; 
    transform: translateY(0);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important; 
}
/* ========================================================
   ✨ ดีไซน์ลายน้ำเฉพาะสำหรับ .custom-navbar (Glow & Dot)
   ======================================================== */

.custom-navbar {
    position: relative; /* หรือ fixed ตามระบบสติ๊กกี้ของคุณ */
    background: linear-gradient(90deg, #186bf6 0%, #0d4af0 100%);
    
}

/* 🌟 เลเยอร์ที่ 1: วงกลมขาวเรืองแสงละมุน (Glow Aura) ด้านหลัง */
.custom-navbar .nav-bg-glow {
    position: absolute;
    width: 260px;  /* ขนาดวงเรืองแสงพอดีๆ กับบาร์ */
    height: 260px;
    top: -110px;   /* ดันขึ้นไปข้างบนเล็กน้อย ให้เห็นส่วนโค้งจางๆ สวยๆ */
    left: -60px;   /* ชิดมุมซ้าย */
    
    /* ใช้การไล่เฉดวงกลมสีขาวโปร่งแสงแบบละมุนตา */
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 40%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none; /* เพื่อไม่ให้บังเมาส์เวลากดปุ่มเมนู */
    z-index: 1;
}

/* 🌟 เลเยอร์ที่ 2: กลุ่มจุดตารางไข่ปลาตกแต่ง (Dot Matrix) ด้านซ้ายล่าง */
.custom-navbar .nav-bg-dot {
    position: absolute;
    width: 140px;  /* กำหนดพื้นที่กลุ่มจุด */
    height: 100%;  /* สูงเต็มแถบ Navbar */
    bottom: -15px; /* ดันลงมามุมล่างเล็กน้อยตามรูป */
    left: 25px;    /* เยื้องมาทางขวาหน่อยให้ทับกับวงเงาขาว */
    
    /* สร้างจุดขนาดเล็ก 1.5px และระยะห่างวนลูป 14px */
    background-image: radial-gradient(rgba(255, 255, 255, 0.25) 1.5px, transparent 1.5px);
    background-size: 14px 14px;
    
    opacity: 0.7;
    pointer-events: none;
    z-index: 2;
}


/* --- Cards --- */
.stat-card,
.content-card {
    border: 0;
    border-radius: 1rem;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

/* --- Event Cards Modern Refinement --- */
.event-card {
    border: none !important;
    border-radius: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: #fff;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(13, 110, 253, 0.12);
    
}

.event-card .event-card-img-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.event-card .card-img-top {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.event-card:hover .card-img-top {
    transform: scale(1.05);
}

.event-card .card-body {
    padding: 1.1rem !important;
}

/* --- Title (ตัดคำ ... + เปลี่ยนสีเป็นฟ้าเมื่อ Hover กล่อง) --- */
.event-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 0.4rem !important;
    
    /* 👈 1. เพิ่มการตัดคำยาวๆ ให้มี ... */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease; /* เพิ่ม Transition ให้สีค่อยๆ เปลี่ยนอย่างนุ่มนวล */
}

/* 👈 2. เมื่อเอาเมาส์แตะกล่องการ์ด ให้ชื่อกิจกรรมเปลี่ยนเป็นสีฟ้า */
.event-card:hover .event-card-title {
    color: #0d6efd;
}

/* 👈 3. เพิ่มสไตล์ไอคอนสีฟ้า และข้อความวันที่/จำนวนที่นั่งสีเทา */
.event-card-info {
    color: #64748b; /* ตัวหนังสือสีเทา */
    font-size: 0.85rem;
}

.event-card-info i {
    color: #0d6efd; /* ไอคอนสีฟ้า */
    margin-right: 0.3rem;
}

.event-card-meta {
    font-size: 0.8rem;
    color: #64748b !important;
    font-weight: 500;
    margin-bottom: 0.8rem !important;
}
.event-card-meta i {
    color: #0d6efd !important; /* 👈 บังคับเฉพาะไอคอนปฏิทินให้เป็นสีฟ้า */
    margin-right: 0.35rem;
}

.event-card-desc {
    font-size: .85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* บังคับปุ่มดูรายละเอียดให้เป็นสีฟ้าเต็มปุ่มตั้งแต่เริ่มต้น */
.event-card .btn,
.event-card .btn-outline-primary,
.event-card .btn-primary {
    background-color: #0d6efd !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    width: 100% !important;            /* ขยายเต็มความกว้างขอบในของการ์ด */
    padding: 0.4rem 0.75rem !important; /* ลดความสูงปุ่มให้กระชับขึ้น */
    font-size: 0.85rem !important;      /* ปรับขนาดข้อความให้พอดีกับปุ่ม */
    transition: background-color 0.2s ease;
}

/* เมื่อเอาเมาส์ไปแตะ (Hover) ให้สีฟ้าเข้มขึ้นเล็กน้อย */
.event-card .btn:hover,
.event-card .btn-outline-primary:hover,
.event-card .btn-primary:hover {
    background-color: #0b5ed7;
    color: #ffffff !important;
}

.event-card .event-card-img-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0.45rem 0.45rem 0 0;
    isolation: isolate;
}

.event-card .card-img-top {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Hero Carousel --- */
.hero-carousel .carousel-item img {
    height: 260px;
    object-fit: cover;
}

@media (min-width: 992px) {
    .hero-carousel .carousel-item img { height: 300px; }
}

/* --- Auth Pages (Login / Register) --- */
.auth-overlay-bg {
    background: rgba(18, 49, 95, 0.03);
    min-height: calc(100vh - 73px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
}

.auth-window-card {
    background: #fff;
    border: 0;
    border-radius: 1.5rem;
    box-shadow: 0 15px 45px rgba(11, 59, 143, 0.12);
    width: 100%;
    max-width: 520px;
    padding: 3rem 2.25rem;
    position: relative;
}

.auth-window-card.auth-narrow {
    max-width: 460px;
    padding: 3.5rem 2.5rem;
}

.btn-close-mock {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 32px;
    height: 32px;
    background-color: #cbd5e1;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.btn-close-mock:hover {
    background-color: #94a3b8;
    color: #fff;
}

.auth-brand-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--brand-dark);
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-input-custom,
.auth-select-custom {
    background-color: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 1.2rem !important;
    color: var(--text-main) !important;
    font-size: 0.95rem;
    transition: all 0.2s ease !important;
}

.auth-input-custom:focus,
.auth-select-custom:focus {
    background-color: #fff !important;
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15) !important;
}

.btn-pill-primary {
    background-color: #2563eb !important;
    border: none !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 0.75rem 2.5rem !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.btn-pill-primary:hover {
    background-color: var(--brand-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25) !important;
    color: #fff !important;
}

/* --- Google Button & Custom Components --- */
.btn-google-official {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 50px;
    padding: 0;
    height: 44px;
    overflow: hidden;
    text-decoration: none;
    width: 75%;
    margin: 0 auto;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.1s ease;
}

.btn-google-official:hover {
    background-color: #f8fafd;
    border-color: #c3c7cb;
    box-shadow: 0 4px 12px rgba(60, 64, 67, 0.15);
    transform: translateY(-1px);
}

.btn-google-official:active {
    background-color: #eeeeee;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.2) inset;
    transform: translateY(1px);
}

.google-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 100%;
    border-right: 1px solid #dadce0 !important;
    background: #ffffff;
    flex-shrink: 0;
}

.google-icon-wrapper img {
    width: 20px;
    height: 20px;
}

.google-text-wrapper {
    flex-grow: 1;
    color: #1a73e8;
    font-weight: 600;
    font-size: 15px;
    font-family: 'Roboto', 'Kanit', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0;
    margin-right: 20px;
}

.auth-divider-text {
    display: flex;
    align-items: center;
    text-align: center;
    color: #9ca3af;
    font-size: 0.85rem;
    margin: 24px auto;
    width: 75%;
}

.auth-divider-text::before, .auth-divider-text::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.auth-divider-text:not(:empty)::before { margin-right: .75em; }
.auth-divider-text:not(:empty)::after { margin-left: .75em; }

/* Profile Dropdown Custom Style */
.profile-dropdown-btn {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50px !important;
    color: #fff !important;
    font-weight: 500;
    padding: 6px 16px;
    font-family: 'Kanit', sans-serif;
}

.profile-dropdown-btn:hover, .profile-dropdown-btn:focus {
    background-color: rgba(255, 255, 255, 0.3) !important;
}

/* --- Modal --- */
.modal-content {
    border: 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(11, 59, 143, 0.2);
}

/* --- ช่องค้นหา --- */
.search-input-white::placeholder {
    color: #ffffff !important;
    opacity: 0.9 !important;
}
.search-input-white::-webkit-input-placeholder {
    color: #ffffff !important;
    opacity: 0.9 !important;
}
.search-input-white::-moz-placeholder {
    color: #ffffff !important;
    opacity: 0.9 !important;
}
.search-input-white:-ms-input-placeholder {
    color: #ffffff !important;
    opacity: 0.9 !important;
}

/* --- Password Toggle Position --- */
.password-toggle-container {
    position: relative !important;
    display: block;
}

.password-toggle-icon {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    right: 15px !important;
    cursor: pointer;
    color: #6c757d;
    font-size: 1.2rem;
    z-index: 10;
    transition: color 0.2s;
}

.password-toggle-icon:hover {
    color: #0d6efd;
}

.password-toggle-container .form-control {
    padding-right: 45px !important;
}

/* --- Phone Input Group Fix --- */

/* 1. กำหนดให้ Container เป็นจุดอ้างอิง */
.phone-input-group {
    position: relative !important;
    display: block;
}

/* 2. จัดตำแหน่ง ธงชาติ + +66 + เส้นคั่น ให้อยู่ในกล่องฝั่งซ้าย */
.phone-input-group .thai-flag-badge {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    left: 15px !important;
    display: flex !important;
    align-items: center !important;
    z-index: 10 !important;
    padding-right: 12px !important;
    border-right: 1.5px solid #cbd5e1 !important; /* เส้นคั่นบางๆ สีเทาอ่อน */
    height: 50%; /* ความสูงของเส้นคั่น */
}

/* 3. ดันข้อความในช่อง Input ไปทางขวา เพื่อไม่ให้ทับกับธงชาติ */
.phone-input-group .phone-input-custom {
    padding-left: 95px !important; /* ขยับข้อความหลบธงชาติและเส้นคั่น */
}
.custom-toast-container {
    z-index: 1055;
    margin-top: 15px; 
    margin-right: 15px;
}

/* 1. ตั้งค่าเริ่มต้นของ Dropdown (ตอนที่ยังปิดอยู่) */
.dropdown-menu {
    display: block !important; /* บังคับให้เป็น block เสมอ เพื่อไม่ให้มันหายวับไป */
    visibility: hidden;        /* แต่ใช้การซ่อนด้วย visibility แทน */
    opacity: 0;                /* โปร่งใส 100% */
    transform: translateY(-15px); /* เลื่อนลอยขึ้นไปนิดนึง */
    
    /* ควบคุมความสมูททั้งตอนเปิดและปิด (ปรับเลข 0.4s ให้ช้า/เร็วได้ตามต้องการ) */
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); 
    
    pointer-events: none;      /* สำคัญมาก: ป้องกันไม่ให้เมาส์ไปโดนตอนที่มันซ่อนอยู่ */
    overflow: hidden !important;
}

/* 2. เมื่อกดเปิด (Bootstrap จะเติมคลาส .show เข้ามา) */
.dropdown-menu.show {
    visibility: visible;       /* เปลี่ยนเป็นมองเห็นได้ */
    opacity: 1;                /* ชัดเจน 100% */
    transform: translateY(0);  /* เลื่อนลงมาตำแหน่งปกติ */
    pointer-events: auto;      /* กลับมาคลิกเมนูได้ตามปกติ */
}

/* คลาสพิเศษสำหรับปุ่มออกจากระบบ */
.btn-logout-hover {
    color: #dc3545 !important; /* สีแดงตั้งต้น */
    transition: all 0.2s ease-in-out;
}

/* เมื่อเอาเมาส์แตะ ให้พื้นหลังแดง ตัวหนังสือขาว */
.btn-logout-hover:hover {
    background-color: #dc3545 !important;
    color: #ffffff !important;
}

/* ทำให้ไอคอนเปลี่ยนเป็นสีขาวตามตัวหนังสือด้วย */
.btn-logout-hover:hover i {
    color: #ffffff !important;
}

/* 1. สไตล์หลักของกล่อง Dropdown */
/* 🌟 1. สไตล์กล่อง Dropdown การ์ดขาวคลีน (ถอดแบบจากกล่องค้นหา) */
.dropdown-glass {
    background: #ffffff !important; /* เปลี่ยนเป็นสีขาวล้วนสะอาดตา */
    border: 1px solid rgba(0, 0, 0, 0.08) !important; /* ขอบบางจางๆ */
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03) !important; /* เงาสมูทนุ่มนวล */
    padding: 0.75rem !important; 
    border-radius: 20px !important; /* ดัดขอบมน 20px สไตล์เดียวกับช่องค้นหา */
    overflow: hidden !important;
}

/* 🎨 2. สไตล์เมนูแต่ละช่อง (ปรับมุมมนให้เข้าทรงกล่อง) */
.dropdown-glass .dropdown-item {
    color: #2b303a !important; 
    font-weight: 500;
    border-radius: 12px !important; /* ปรับขอบมน 12px ไม่ล้นขอบกล่องขาว */
    padding: 0.7rem 1rem !important; 
    margin-bottom: 4px; 
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* คงสีไอคอนไว้เป็นสีน้ำเงิน */
.dropdown-glass .dropdown-item i {
    color: #0d6efd !important;
    transition: all 0.25s ease;
}

/* 3. ตอนเอาเมาส์ชี้ (Hover) หรือ Focus */
.dropdown-glass .dropdown-item:hover,
.dropdown-glass .dropdown-item:focus {
    background-color: #f0f5ff !important; /* พื้นหลังฟ้าอ่อนละมุน */
    color: #0d6efd !important; 
    transform: translateX(4px); 
}

.dropdown-glass .dropdown-item:hover i,
.dropdown-glass .dropdown-item:focus i {
    color: #0d6efd !important;
}

/* 4. สถานะหน้าปัจจุบันที่เลือกอยู่ (Active) */
.dropdown-glass .dropdown-item.active {
    background-color: #0d6efd !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25) !important; 
    transform: none; 
}

.dropdown-glass .dropdown-item.active i {
    color: #ffffff !important;
}

/* 5. เส้นคั่น (Divider) */
.dropdown-glass .dropdown-divider {
    border-top-color: rgba(0, 0, 0, 0.06);
    margin: 0.5rem 0;
}

/* 6. ปุ่มสมัครสมาชิก */
.site-navbar .btn-light {
    border: 1px solid transparent; 
    transition: all 0.3s ease-in-out; 
}

.site-navbar .btn-light:hover {
    background-color: transparent !important; 
    border-color: #ffffff !important;         
    color: #ffffff !important;               
}

.site-navbar .btn-light:hover i {
    color: #ffffff !important;
}

/* 🚨 7. ปุ่มออกจากระบบ (เพิ่มสไตล์ดักสีไอคอนเวลานำเมาส์ไปชี้) */
.dropdown-glass .dropdown-item.logout-btn {
    color: #495057 !important; 
}

.dropdown-glass .dropdown-item.logout-btn i {
    color: #dc3545 !important; 
}

.dropdown-glass .dropdown-item.logout-btn:hover,
.dropdown-glass .dropdown-item.logout-btn:focus {
    background-color: rgba(220, 53, 69, 0.1) !important; 
    color: #dc3545 !important;
}

/* ⚡ เพิ่มบรรทัดนี้เพื่อไม่ให้ไอคอน logout กลายเป็นสีฟ้าตอน hover */
.dropdown-glass .dropdown-item.logout-btn:hover i,
.dropdown-glass .dropdown-item.logout-btn:focus i {
    color: #dc3545 !important;
}

/* 8. ตำแหน่งเมนูด้านขวา */
.dropdown-menu-end {
    right: 0 !important;
    left: auto !important;
}

/* ↔️ 9. ระบบยืดขยายขนาดปุ่มด้านบนให้เท่ากล่องดรอปดาวน์แบบสมูท */
#eventsDropdown,
#userProfileDropdown,
.dropdown-toggle {
    width: 150px; /* ความกว้างเริ่มต้นก่อนกด */
    white-space: nowrap;
    overflow: hidden;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                background-color 0.3s ease, 
                box-shadow 0.3s ease !important;
}

#eventsDropdown.show,
#userProfileDropdown.show,
.dropdown-toggle.show {
    width: 210px !important; /* ยืดออกเท่ากล่องดรอปดาวน์ */
    background-color: rgba(255, 255, 255, 0.22) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12) !important;
}

/* ☁️ 2. เติม Animation ให้กล่องดรอปดาวน์ขาวค่อยๆ คลี่ลงมาอย่างสมูท */
@keyframes dropdownSmoothShow {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-glass.show {
    animation: dropdownSmoothShow 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-origin: top center;
}
/* 👤 ปุ่มโปรไฟล์: ขยายความกว้างยืดหยุ่นตามความยาวชื่อผู้ใช้ */
#userProfileDropdown {
    width: auto !important; /* ขยายตามความยาวชื่อจริง */
    white-space: nowrap; /* ป้องกันชื่อตกบรรทัด */
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.3s ease, 
                box-shadow 0.3s ease !important;
}

/* 🌟 ตอนกดเปิดดรอปดาวน์ ให้ขยายใหญ่ออก 4% แบบสมูท */
#userProfileDropdown.show,
#userProfileDropdown[aria-expanded="true"] {
    transform: scale(1.04) !important; 
    background-color: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
}

/* 📌 เมนูกิจกรรม (ข้อความคงที่): ยืดความกว้างเท่ากล่องตามเดิม */
#eventsDropdown {
    width: 145px;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                background-color 0.3s ease !important;
}

#eventsDropdown.show {
    width: 220px !important;
    background-color: rgba(255, 255, 255, 0.25) !important;
}

/* Loading */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* คลาสสำหรับสั่งซ่อน */
.page-loader.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important; /* ป้องกันไม่ให้แผ่นโปร่งแสงบังการคลิก */
}

/* Spinner */
.modern-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(13, 110, 253, 0.15);
    border-top-color: #0d6efd;
    border-radius: 50%;
    animation: spin-smooth 0.7s linear infinite;
}

@keyframes spin-smooth {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* จบฉากหลังฉาก Loading */

/* การสลับหน้าสำหรับทั้งเว็บ */
@view-transition {
    navigation: auto;
}


/* ปุ่มลงทะเบียนแบบไล่เฉด + แสงเงาเรืองแสง */
.btn-register-glow {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #1a1a1a !important;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.75rem 2.25rem;
    border-radius: 50rem;
    border: none;
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

/* เอฟเฟกต์เมื่อลากเมาส์มาชี้ (Hover) */
.btn-register-glow:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 28px rgba(255, 193, 7, 0.6);
    background: linear-gradient(135deg, #ffd54f 0%, #ffa726 100%);
}

/* เอฟเฟกต์เมื่อกดปุ่ม (Active) */
.btn-register-glow:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

/* อนิเมชันขยับไอคอนลูกศร */
.btn-register-glow i {
    transition: transform 0.3s ease;
}

.btn-register-glow:hover i {
    transform: translateX(5px);
}

/* เอฟเฟกต์ปุ่มข้อความนำทาง */
.nav-text-btn {
    color: rgba(255, 255, 255, 0.75) !important;
    transition: transform 0.15s ease, color 0.15s ease, opacity 0.15s ease;
    cursor: pointer;
    background: transparent;
}

/* เอฟเฟกต์เวลาเอาเมาส์ชี้ (Hover) */
.nav-text-btn:hover {
    color: #ffffff !important;
    transform: translateY(-1px); /* ลอยขึ้นเล็กน้อย */
}

/* เอฟเฟกต์เวลากดปุ่ม (Click / Active) */
.nav-text-btn:active {
    transform: scale(0.90) !important; /* ยุบตัวลง 10% ให้ความรู้สึกเหมือนถูกกดจริง */
    opacity: 0.6;
}

/* เมื่อมีข้อความในช่อง ให้เป็นสีฟ้าอ่อน แต่ถ้าลบข้อความออกจะกลับเป็นสีขาวตามเดิม */
.auth-input-custom:not(:placeholder-shown) {
    background-color: #e8f0fe !important;
}
/* 1. สำรองพื้นที่ Scrollbar ไว้ล่วงหน้าไม่ให้หน้าเว็บกระตุก */
html {
    scrollbar-gutter: stable;
}

/* 2. ล้าง padding-right ทั้งบน body และตัว .modal ป้องกัน Popup เบี้ยวไปทางซ้าย */
body.modal-open,
.modal {
    padding-right: 0 !important;
}

/* 3. ตรึง Scrollbar ด้านข้างให้คงที่ */
body.modal-open {
    overflow-y: scroll !important;
}
/* เอฟเฟกต์ปุ่มกากบาทไม่มีขอบ และเปลี่ยนเป็นสีเทาอ่อนเมื่อนำเมาส์ไปชี้ */
.btn-close-custom {
    width: 38px;
    height: 38px;
    border: none !important;
    background-color: transparent;
    transition: background-color 0.2s ease-in-out;
    cursor: pointer;
}

.btn-close-custom:hover {
    background-color: #e4e6eb !important; /* สีเทาอ่อน */
}

/* ปุ่มดูการแจ้งเตือนทั้งหมด */
.btn-all-notifications {
    background-color: #f8f9fa;
    color: #0d6efd;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.25s ease-in-out;
}

/* เอฟเฟกต์ตอนเอาเมาส์ชี้ (Hover) */
.btn-all-notifications:hover {
    background-color: #0d6efd !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
    transform: translateY(-1px);
}

/* เอฟเฟกต์ไอคอนลูกศรเลื่อนไปทางขวา */
.btn-all-notifications .transition-icon {
    transition: transform 0.25s ease-in-out;
}

.btn-all-notifications:hover .transition-icon {
    transform: translateX(4px);
}
/* สไตล์กล่องแจ้งเตือนแต่ละรายการ */
.notif-item {
    border-radius: 10px;
    transition: all 0.25s ease-in-out;
}

/* เอฟเฟกต์ตอนเอาเมาส์ชี้ (Hover) / Focus ให้เหมือนปุ่มดูทั้งหมด */
.notif-item:hover,
.notif-item:focus {
    background-color: #0d6efd !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
    transform: translateY(-1px);
}

/* เอฟเฟกต์ตอนกดคลิก (OnClick / Active) ทั้งรายการแจ้งเตือนและปุ่มดูทั้งหมด */
.notif-item:active,
.btn-all-notifications:active {
    background-color: #0b5ed7 !important; /* ปรับสีน้ำเงินเข้มขึ้นเล็กน้อยให้รู้สึกถึงการกด */
    transform: translateY(0);
    box-shadow: none;
}

/* เปลี่ยนสีตัวหนังสือข้างในให้เป็นสีขาวเมื่อ Hover หรือกด Active */
.notif-item:hover .text-dark,
.notif-item:hover .text-muted,
.notif-item:focus .text-dark,
.notif-item:focus .text-muted,
.notif-item:active .text-dark,
.notif-item:active .text-muted {
    color: #ffffff !important;
}

/* ==========================================================================
   Hero Stat Cards Modern Hover & Glow Effects
   ========================================================================== */
.hero-stat-card {
    background: rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* ประกายแสงพาดผ่านเมื่อเอาเมาส์ชี้ */
.hero-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transition: all 0.6s ease;
}

.hero-stat-card:hover::before {
    left: 100%;
}

/* สถาวะ Hover: การ์ดลอยขึ้น + พื้นหลังสว่างขึ้น */
.hero-stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.09) !important;
}

/* สีขอบและแสงเรือง (Glow) แยกตามประเภทการ์ด */
.stat-card-blue:hover {
    border-color: rgba(56, 189, 248, 0.5) !important;
    box-shadow: 0 10px 25px -5px rgba(56, 189, 248, 0.3);
}

.stat-card-purple:hover {
    border-color: rgba(192, 132, 252, 0.5) !important;
    box-shadow: 0 10px 25px -5px rgba(192, 132, 252, 0.3);
}

.stat-card-amber:hover {
    border-color: rgba(245, 158, 11, 0.5) !important;
    box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.3);
}

.stat-card-rose:hover {
    border-color: rgba(244, 63, 94, 0.5) !important;
    box-shadow: 0 10px 25px -5px rgba(244, 63, 94, 0.3);
}

/* กล่องไอคอน */
.stat-icon-box {
    width: 46px;
    height: 46px;
    min-width: 46px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.text-purple {
    color: #c084fc !important;
}

/* ออนิเมชันไอคอนเวลา Hover (ขยาย + เอียง + เรืองแสง) */
.hero-stat-card:hover .stat-icon-box {
    transform: scale(1.15) rotate(8deg);
}

.stat-card-blue:hover .stat-icon-box {
    background: rgba(56, 189, 248, 0.25);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.6);
}

.stat-card-purple:hover .stat-icon-box {
    background: rgba(192, 132, 252, 0.25);
    box-shadow: 0 0 18px rgba(192, 132, 252, 0.6);
}

.stat-card-amber:hover .stat-icon-box {
    background: rgba(245, 158, 11, 0.25);
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.6);
}

.stat-card-rose:hover .stat-icon-box {
    background: rgba(244, 63, 94, 0.25);
    box-shadow: 0 0 18px rgba(244, 63, 94, 0.6);
}

/* การ์ดแบนเนอร์หลัก */
.info-banner-card {
    background: radial-gradient(circle at 85% 50%, rgba(245, 158, 11, 0.15) 0%, rgba(15, 23, 42, 0.95) 70%),
                linear-gradient(135deg, #1e1b18 0%, #0d1117 100%); /* โน้มไปทางโทนน้ำตาล/ส้มแบบต้นฉบับ หรือปรับเป็นโทนน้ำเงินตาม SmartEvent ได้ */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

/* หัวข้อ + เส้นขีดแนวตั้งด้านหน้า */
.banner-title {
    position: relative;
    padding-left: 20px;
    font-size: 1.75rem;
    line-height: 1.4;
}

.banner-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 4px;
    background: linear-gradient(to bottom, #f59e0b, #d97706); /* สีเส้นขีด (ส้ม-ทอง) หรือเปลี่ยนเป็น #38bdf8 (ฟ้า) ให้เข้ากับธีมหลัก */
    border-radius: 4px;
}

/* ข้อความอธิบาย */
.banner-desc {
    color: #cbd5e1; /* สีเทาสว่าง อ่านง่ายบนพื้นหลังเข้ม */
    font-size: 0.95rem;
    line-height: 1.8;
    font-weight: 300;
}

/* รูปมาสคอต */
.mascot-img {
    max-height: 260px;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35)); /* ใส่เงาใต้รูปมาสคอตให้ดูมีมิติ */
}

/* กล่องการ์ดแบนเนอร์ */
.info-banner-card {
    background: radial-gradient(circle at 85% 50%, rgba(56, 189, 248, 0.15) 0%, rgba(15, 23, 42, 0.95) 70%),
                linear-gradient(135deg, #0f172a 0%, #090d16 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

/* หัวข้อ + เส้นขีดสีฟ้าด้านหน้า */
.banner-title {
    position: relative;
    padding-left: 20px;
    font-size: 1.75rem;
    line-height: 1.4;
}

.banner-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 4px;
    background: linear-gradient(to bottom, #38bdf8, #818cf8);
    border-radius: 4px;
}

/* ข้อความอธิบาย */
.banner-desc {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.8;
    font-weight: 300;
}

/* ปรับแต่งรูปมาสคอต */
.mascot-img {
    max-height: 280px;
    object-fit: contain;
    /* เงาเรืองแสงโทนสีฟ้าเข้ากับเว็บ */
    filter: drop-shadow(0 15px 25px rgba(56, 189, 248, 0.25));
}

/* อะนิเมชันขยับลอยขึ้น-ลงแบบนุ่มนวล */
.mascot-float {
    animation: mascotFloat 4s ease-in-out infinite;
}

@keyframes mascotFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* ==========================================================================
   Event Detail — Blurred Hero Card Style (แก้ปัญหาพื้นหลังขาว)
   ========================================================================== */

/* 1. คอนเทนเนอร์หลักของ Hero */
.event-hero-wrapper {
    background-color: #0f172a; /* พื้นหลังสำรองสีเข้ม */
}

/* 2. ฉากหลังรูปเบลอฟุ้ง */
.event-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(28px) brightness(0.45); /* ปรับเบลอและดึงความสว่างลง */
    transform: scale(1.1); /* ขยายรูปเล็กน้อยเพื่อไม่ให้เห็นขอบขาว */
    z-index: 1;
}

/* 3. การ์ดรวมข้อมูล (บังคับให้เป็นสีดำเข้มโปร่งแสง + กระจกฝ้า) */
.event-hero-card {
    background: rgba(15, 23, 42, 0.88) !important; /* สีดำเข้ม/น้ำเงินเข้ม */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45), 
                0 5px 15px rgba(0, 0, 0, 0.25) !important;
}

/* 4. ฝั่งขวา (ข้อความและปุ่ม) ให้โปร่งแสงเพื่อแสดงสีการ์ดหลัก */
.event-hero-info {
    background: transparent !important;
    color: #ffffff !important;
}

/* 5. ปรับความสว่างของตัวหนังสือและไอคอนฝั่งขวา */
.event-hero-info .text-white-80 {
    color: rgba(255, 255, 255, 0.85) !important;
}

.event-hero-info .text-info {
    color: #38bdf8 !important; /* ไอคอนสีฟ้าสว่าง */
}
.event-hero-card .hero-img-container,
.event-hero-card img {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}
/* ==========================================================================
   Fix Ultra-wide & Zoom Out Card Ratio (แก้ไขการ์ดแบนเวลาซูมออก)
   ========================================================================== */

/* 1. ล็อกความกว้างสูงสุดของ container-fluid ไม่ให้ขยายกว้างจนการ์ดยืดแบน */
.container-fluid {
    max-width: 1600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 2. ปรับโครงสร้างการ์ดกิจกรรมให้รักษาสัดส่วนแนวตั้งสมดุล */
.event-card {
    display: flex !important;
    flex-direction: column;
    height: 100% !important;
    max-width: 420px; /* จำกัดความกว้างสูงสุดของการ์ดแต่ละใบ */
    margin-left: auto;
    margin-right: auto;
}

.event-card .event-card-img-wrap {
    aspect-ratio: 16 / 10 !important; /* ปรับสัดส่วนรูปให้สูงขึ้นเล็กน้อย ไม่ให้ดูแบน */
}

.event-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    padding: 1.25rem !important; /* เพิ่มระยะห่างภายในการ์ดให้ทรงดูเต็มสวย */
}

/* 3. หากซูมออกมากๆ บนจอใหญ่พิเศษ ให้เปลี่ยนไปแสดง 5-6 การ์ดต่อแถวอัตโนมัติ */
@media (min-width: 1600px) {
    #eventCardGrid > .col-lg-3 {
        flex: 0 0 auto;
        width: 20% !important; /* แสดงแถวละ 5 การ์ดบนจอขนาดใหญ่พิเศษเพื่อไม่ให้การ์ดใหญ่เกินไป */
    }
}

/* ==========================================================================
   Fixed Header & Hero Section Layout (ตรึงและล็อกสัดส่วน)
   ========================================================================== */

/* 1. ตรึงให้ทั้ง Navbar และส่วนแบนเนอร์ติดขอบบนของจอเสมอ */
.top-executive-wrapper {
    position: sticky;
    top: 0;
    z-index: 1040;
    background-color: #0f172a !important; /* โทน Midnight Navy */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* 2. ควบคุมความกว้างสูงสุด ไม่ให้ยืดกว้างจนภาพและเมนูกระจายตัวเวลา Zoom Out */
.top-executive-wrapper .container-fluid,
.top-executive-wrapper .container {
    max-width: 1500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 3. ล็อกความสูงและระยะการจัดวางภายใต้การ์ดแบนเนอร์ให้อยู่ทรงสวย */
.top-executive-wrapper .info-banner-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
}

/* 4. ปรับขนาดความกว้างของการ์ดสถิติด้านล่างให้อยู่ตรงกลางสมดุล */
.top-executive-wrapper .hero-stat-card {
    min-height: 70px;
    border-radius: 14px;
}