/**
 * ============================================================================
 * File: vn/assets/css/theme-default.css
 * Theme: LPBank Warm Style (Nâu Đất & Vàng Cam - Trẻ trung, Năng lượng)
 * Format: One-line CSS per rule
 * ============================================================================
 */

/* === ROOT & BASE === */
:root { --primary-brown: #5A3520; --secondary-brown: #7A4C32; --primary-gold: #F59D31; --light-gold: #FFF6EA; --dark-gold: #D9821F; --text-dark: #212529; --text-gray: #6C757D; --sidebar-width: 260px; }
body { font-family: 'Inter', sans-serif; color: var(--text-dark); background-color: #FFFFFF; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6, .navbar-brand { font-family: 'Inter', sans-serif; font-weight: 700; }

/* === BỐ CỤC CHÍNH (LAYOUT & FIX OVERLAP) === */
@media (min-width: 992px) { .sidebar { position: fixed; top: 0; left: 0; height: 100vh; border-right: 1px solid #E5E5E5; } .main-content { margin-left: var(--sidebar-width); min-height: 100vh; display: flex; flex-direction: column; } }
.sidebar { width: var(--sidebar-width) !important; background-color: #FFFFFF; display: flex; flex-direction: column; z-index: 1045; }
.main-content { display: flex; flex-direction: column; min-height: 100vh; }
.mobile-topbar { display: none; position: sticky; top: 0; background: #FFF; z-index: 1030; padding: 15px 20px; border-bottom: 1px solid #E5E5E5; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }

/* === LEFT SIDEBAR MENU === */
.sidebar-logo { padding: 30px 20px; text-align: center; }
.sidebar-logo img { max-width: 150px; }
.sidebar-menu { flex-grow: 1; overflow-y: auto; padding: 0 20px; }
.sidebar-menu .nav-link-parent { color: var(--primary-brown); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; padding: 12px 15px; border-bottom: 1px solid #F0F0F0; display: flex; justify-content: space-between; align-items: center; transition: 0.3s; text-decoration: none; }
.sidebar-menu .nav-link-parent:hover, .sidebar-menu .nav-link-parent[aria-expanded="true"] { color: var(--primary-gold); }
.sidebar-menu .nav-link-parent i { font-size: 0.7rem; color: #999; transition: transform 0.3s; }
.sidebar-menu .nav-link-parent[aria-expanded="true"] i { transform: rotate(180deg); color: var(--primary-gold); }
.sidebar-menu .collapse .nav-link-child { color: var(--text-gray); font-size: 0.9rem; font-weight: 500; padding: 10px 15px; text-decoration: none; display: block; text-transform: none !important; transition: all 0.3s ease; }
.sidebar-menu .collapse .nav-link-child:hover { color: var(--primary-gold); padding-left: 20px; }
.sidebar-footer { padding: 20px; text-align: center; }
.social-icons a { color: var(--primary-brown); font-size: 1.2rem; margin: 0 10px; transition: 0.3s; }
.social-icons a:hover { color: var(--primary-gold); }
.sidebar-footer p { font-size: 0.75rem; color: #999; margin-top: 15px; }
.sidebar-footer p span { color: var(--primary-gold); font-weight: 600; }

/* === CUSTOM UI ELEMENTS === */
.section-title { font-weight: 800; text-transform: uppercase; color: var(--primary-brown); position: relative; padding-bottom: 15px; }
.section-title::after { content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 60px; height: 4px; border-radius: 2px; background-color: var(--primary-gold); }
.btn-gold { background-color: var(--primary-gold); color: #FFF; border: none; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; transition: all 0.3s ease; }
.btn-gold:hover { background-color: var(--dark-gold); color: #FFF; }
.business-icon { color: var(--primary-gold); font-size: 2.2rem; margin-bottom: 15px; }
.news-card img { height: 180px; object-fit: cover; border-radius: 8px 8px 0 0; }
.news-title { font-size: 1.1rem; font-weight: 700; color: var(--primary-brown); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: 0.3s; }
.news-title:hover { color: var(--primary-gold); }

/* === SLIDER & POPUP === */
.carousel-item { height: 80vh; min-height: 500px; background-size: cover; background-position: center; }
.carousel-caption-custom { position: absolute; top: 50%; transform: translateY(-50%); left: 10%; right: 10%; text-align: left; }
.carousel-control-prev-icon, .carousel-control-next-icon { background-color: transparent; border: 2px solid rgba(255,255,255,0.5); width: 40px; height: 40px; }
.modal-backdrop.show { opacity: 0.85; background-color: #000; }

/* === FOOTER & CTA === */
.footer-section { margin-top: auto; background-color: #F8F9FA; padding: 60px 0 20px; border-top: 1px solid #EAEAEA; position: relative; z-index: 10; width: 100%; clear: both; }
.cta-section { background: linear-gradient(to right, rgba(33, 37, 41, 0.95), rgba(33, 37, 41, 0.8)), url('https://images.unsplash.com/photo-1534536281715-e28d76689b4d?auto=format&fit=crop&w=1920&q=80') center/cover; padding: 80px 0; color: #fff; position: relative; z-index: 10; width: 100%; clear: both; }
.cta-input { background-color: #E9ECEF; border: none; border-radius: 0; padding: 12px 15px; font-size: 0.95rem; }
.cta-input:focus { background-color: #FFF; box-shadow: none; border-color: var(--primary-gold); }
.cta-btn { background-color: #1A1A1A; color: #fff; border: none; border-radius: 0; padding: 12px 30px; text-transform: lowercase; font-weight: bold; font-size: 1.1rem; transition: 0.3s; display: flex; justify-content: center; align-items: center; }
.cta-btn:hover { background-color: var(--primary-brown); color: #FFF; }
.hover-gold:hover { color: var(--primary-gold) !important; padding-left: 5px; }

/* === RESPONSIVE TWEAKS === */
.display-4 { font-size: 2.5rem; }
@media (min-width: 768px) { .display-4 { font-size: 3.5rem; } }
@media (max-width: 991px) { .mobile-topbar { display: flex; justify-content: space-between; align-items: center; } .hero-section { text-align: center; padding: 60px 15px !important; } }
/* === CUSTOM ACCORDION === */
.custom-accordion .accordion-button::after { display: none; }
.custom-accordion .accordion-button { padding: 0; background: transparent; color: var(--text-gray); font-size: 1rem; box-shadow: none; border: none; }
.custom-accordion .accordion-button:not(.collapsed) { background: transparent; color: var(--primary-brown); box-shadow: none; }
.custom-accordion .accordion-button:not(.collapsed) .fa-plus-square { display: none !important; }
.custom-accordion .accordion-button:not(.collapsed) .fa-minus-square { display: inline-block !important; }
.custom-accordion .accordion-button.collapsed .fa-plus-square { display: inline-block !important; }
.custom-accordion .accordion-button.collapsed .fa-minus-square { display: none !important; }

/* === ARTICLE DETAIL & SIDEBAR === */
.article-header { border-bottom: 1px solid #EAEAEA; padding-bottom: 20px; margin-bottom: 30px; }
.article-title { color: var(--primary-brown); font-weight: 800; font-size: 2.2rem; line-height: 1.3; }
.article-meta { color: #888; font-size: 0.9rem; }
.article-meta i { color: var(--primary-gold); margin-right: 5px; }
.article-content { font-size: 1.05rem; line-height: 1.8; color: #333; }
.article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 25px 0; }
.article-content h2, .article-content h3 { color: var(--primary-brown); margin-top: 30px; margin-bottom: 15px; font-weight: 700; }

/* Sticky Sidebar Settings */
.sticky-sidebar { position: sticky; top: 30px; z-index: 10; padding-bottom: 30px; }
.sidebar-widget { background: #FFFFFF; border: 1px solid #EAEAEA; border-radius: 8px; padding: 25px; margin-bottom: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.widget-title { font-weight: 700; color: var(--primary-brown); text-transform: uppercase; font-size: 1.1rem; border-bottom: 2px solid var(--primary-gold); padding-bottom: 10px; margin-bottom: 20px; display: inline-block; }

/* Widget TÌM KIẾM */
.search-input { border: 1px solid #E0E0E0; border-radius: 4px 0 0 4px; padding: 12px 15px; box-shadow: none; font-size: 0.95rem; }
.search-input:focus { border-color: var(--primary-gold); box-shadow: none; }
.search-btn { background-color: var(--primary-gold); color: #FFF; border: none; border-radius: 0 4px 4px 0; padding: 12px 20px; transition: 0.3s; }
.search-btn:hover { background-color: var(--primary-brown); color: #FFF; }

/* Widget DANH MỤC */
.cat-list { list-style: none; padding: 0; margin: 0; }
.cat-list li { border-bottom: 1px dashed #EAEAEA; padding: 12px 0; }
.cat-list li:last-child { border-bottom: none; padding-bottom: 0; }
.cat-link { color: var(--text-gray); text-decoration: none; font-weight: 500; transition: all 0.3s ease; display: flex; justify-content: space-between; align-items: center; }
.cat-link:hover { color: var(--primary-gold); padding-left: 8px; }
.cat-count { background-color: #F8F9FA; color: #999; font-size: 0.8rem; padding: 2px 8px; border-radius: 20px; }

/* Widget CALL TO ACTION */
.cta-widget { background: linear-gradient(135deg, var(--primary-brown), #3a2214); color: #FFF; text-align: center; border: none; }
.cta-widget-icon { font-size: 3rem; color: var(--primary-gold); margin-bottom: 15px; }
