﻿/* ==========================================================================
   FESTIVAL HOA ĐÀ LẠT 2026 — LỚP TÍCH HỢP GIAO DIỆN V2 VÀO SOURCE
   Nạp sau festival-theme.css / festival-layout.css / festival-components.css.
   · Class dùng chung rút ra từ style inline của PrototypeV2 (page-hero, grid, card…), có responsive
   · Phần dữ liệu động: chatbot API, trạng thái tải / rỗng, phân trang, tài khoản trên topbar
   ========================================================================== */

/* ---------- Biến CSS của giao diện cũ → trỏ về token V2 (cho đoạn style / JS còn dùng tên cũ) ---------- */
:root {
  --font-sans: var(--f-sans);
  --font-vietnamese: var(--f-sans);
  --font-primary: var(--f-sans);
  --font-serif: var(--f-serif);
  --primary-color: var(--c-primary);
  --secondary-color: var(--c-pine-light);
  --accent-color: var(--c-primary);
  --text-dark: var(--c-text);
  --text-light: var(--c-text-muted);
  --text-muted: var(--c-text-muted);
  --bg-light: var(--c-surface-soft);
  --space-xs: 6px; --space-sm: 10px; --space-md: 18px; --space-lg: 26px; --space-xl: 36px; --space-xxl: 68px;
  --radius-sm: var(--r-sm); --radius-md: var(--r-md); --radius-lg: var(--r-lg); --radius-pill: var(--r-full);
  --transition-fast: var(--t-fast); --transition-normal: var(--t-smooth);
  --glass-blur: blur(14px); --glass-border: 1px solid rgba(255,255,255,.6);
}

/* Thuộc tính hidden luôn thắng các class display:flex/grid (alert, btn…) */
[hidden] { display: none !important; }

/* ---------- Topbar: tài khoản đã đăng nhập ---------- */
.gov-account-link .header-account-avatar { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.gov-authority-text strong { font-weight: 800; letter-spacing: .3px; }
.gov-tools .gov-search { color: #E2ECE9; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.gov-tools .gov-search:hover { color: #FFE58F; }

/* Thanh thông báo (Admin → Trang chủ → Thông báo đầu trang) */
.notice-strip { background: linear-gradient(90deg, var(--c-primary-dark), var(--c-primary)); color: #FFF; font-size: .84rem; padding: 7px 0; }
.notice-strip .container { display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; max-width: 1440px; }
.notice-strip span { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.notice-strip a { color: #FFE082; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.notice-strip a:hover { color: #FFF; }

/* Nút tìm kiếm trên header */
.header-search-btn { width: 40px; height: 40px; border-radius: var(--r-full); display: inline-flex; align-items: center; justify-content: center; color: var(--c-pine); font-size: 1.2rem; border: 1px solid var(--c-border); background: #FFF; }
.header-search-btn:hover { color: var(--c-primary); border-color: var(--c-primary); }

/* Mục menu nổi bật (Admin đánh dấu Featured) */
.nav-link.is-featured { color: var(--c-primary); }

/* ---------- Banner trang con (page hero) ---------- */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #07231B 0%, #0E382E 50%, #154539 100%); color: #FFF; padding: 70px 0 60px; text-align: center; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(212,175,55,.16) 0%, transparent 45%), radial-gradient(circle at 10% 90%, rgba(148,19,56,.22) 0%, transparent 50%); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-family: var(--f-display); font-size: 3.2rem; color: #FFF; margin: 12px 0 16px; }
.page-hero h1 em { font-family: var(--f-serif); font-style: italic; background: linear-gradient(135deg, #FFE27A 0%, #FFB444 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.page-hero p { font-size: 1.15rem; color: #CDE0D9; max-width: 750px; margin: 0 auto; }
.page-hero .breadcrumb { display: flex; justify-content: center; gap: 8px; font-size: .85rem; color: #A3C4BC; margin-top: 18px; flex-wrap: wrap; }
.page-hero .breadcrumb a { color: #FFE082; }
.page-hero-image { background-size: cover; background-position: center; }
.page-hero-image::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,28,23,.82) 0%, rgba(7,28,23,.7) 60%, rgba(7,28,23,.92) 100%); }

/* ---------- Lưới dùng chung ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.grid-2-wide { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-sidebar { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr); gap: 40px; align-items: start; }
.text-center { text-align: center; }
.mt-48 { margin-top: 48px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-row.center { justify-content: center; }

/* ---------- Thẻ dùng chung ---------- */
.card { background: #FFF; border-radius: var(--r-lg); border: 1px solid var(--c-border); box-shadow: var(--shadow-sm); overflow: hidden; }
.card-pad { padding: 28px; }
.soft-card { background: var(--c-surface-soft); padding: 32px; border-radius: var(--r-xl); border: 1px solid var(--c-border); }
.info-tile { background: var(--c-surface-soft); padding: 22px; border-radius: var(--r-lg); border-left: 4px solid var(--c-primary); }
.info-tile.gold { border-left-color: var(--c-gold); }
.info-tile.pine { border-left-color: var(--c-pine-light); }
.info-tile h4 { font-size: 1.15rem; color: var(--c-pine); margin-bottom: 6px; }
.info-tile p { font-size: .88rem; color: var(--c-text-muted); margin: 0; }

.value-card { background: var(--c-surface-soft); padding: 36px 28px; border-radius: var(--r-xl); border: 1px solid var(--c-border); text-align: center; transition: transform var(--t-smooth), box-shadow var(--t-smooth); }
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.value-icon { width: 70px; height: 70px; margin: 0 auto 20px; background: rgba(148,19,56,.1); border-radius: var(--r-full); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--c-primary); }
.value-icon.gold { background: rgba(212,175,55,.15); color: var(--c-gold-dark); }
.value-icon.pine { background: rgba(10,51,41,.1); color: var(--c-pine); }
.value-card h3 { font-size: 1.35rem; color: var(--c-pine); margin-bottom: 12px; }
.value-card p { font-size: .9rem; color: var(--c-text-muted); line-height: 1.6; margin: 0; }

/* Ảnh nổi bật có chú thích phủ */
.feature-media { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); border: 2px solid var(--c-border); }
.feature-media img { width: 100%; height: 420px; object-fit: cover; }
.feature-media-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px; background: linear-gradient(180deg, transparent, rgba(10,35,27,.95)); color: #FFF; }
.feature-media-caption h3 { color: #FFF; font-size: 1.5rem; margin: 8px 0 6px; }
.feature-media-caption p { font-size: .9rem; color: #E0EAE6; margin: 0; }

/* ---------- Thẻ tin tức ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.news-card { background: #FFF; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--c-border); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform var(--t-smooth), box-shadow var(--t-smooth); }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-card-media { aspect-ratio: 16/10; overflow: hidden; display: block; background: var(--c-surface-soft); }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.news-card:hover .news-card-media img { transform: scale(1.05); }
.news-card-body { padding: 24px; flex-grow: 1; display: flex; flex-direction: column; }
.news-card-meta { display: flex; justify-content: space-between; gap: 10px; font-size: .8rem; color: var(--c-text-muted); margin-bottom: 10px; }
.news-card-meta .cat { font-weight: 700; color: var(--c-primary); }
.news-card-title { font-size: 1.2rem; font-family: var(--f-serif); line-height: 1.4; margin-bottom: 10px; }
.news-card-title a { color: var(--c-pine); }
.news-card-title a:hover { color: var(--c-primary); }
.news-card-desc { font-size: .88rem; color: var(--c-text-muted); line-height: 1.6; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-foot { margin-top: auto; border-top: 1px solid var(--c-border); padding-top: 14px; font-size: .82rem; color: var(--c-text-muted); display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* Tin tiêu điểm (thẻ lớn) */
.news-hero-card { background: #FFF; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--c-border); display: grid; grid-template-columns: 1.3fr 1fr; margin-bottom: 45px; }
.news-hero-card .media { display: block; overflow: hidden; min-height: 380px; background: var(--c-surface-soft); }
.news-hero-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.news-hero-card:hover .media img { transform: scale(1.05); }
.news-hero-card .body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.news-hero-card h2 { font-family: var(--f-serif); font-size: 1.85rem; line-height: 1.35; margin-bottom: 16px; }
.news-hero-card h2 a { color: var(--c-pine); }

/* Trích dẫn truyền thông */
.quote-card { background: var(--c-surface-soft); padding: 32px; border-radius: var(--r-xl); border: 1px solid var(--c-border); display: flex; flex-direction: column; }
.quote-mark { font-size: 2.5rem; color: var(--c-gold); font-family: var(--f-serif); line-height: 1; margin-bottom: 14px; }
.quote-text { font-size: .95rem; font-style: italic; color: var(--c-text); line-height: 1.7; margin-bottom: 24px; }
.quote-author { margin-top: auto; display: flex; align-items: center; gap: 14px; }
.quote-avatar { width: 44px; height: 44px; border-radius: 99px; background: var(--c-primary); color: #FFF; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; overflow: hidden; }
.quote-avatar img { width: 100%; height: 100%; object-fit: cover; }
.quote-author strong { color: var(--c-pine); display: block; font-size: .92rem; }
.quote-author small { color: var(--c-text-muted); }

/* Logo đối tác trong marquee */
.sponsor-item img { max-height: 56px; max-width: 180px; width: auto; object-fit: contain; display: inline-block; }
.marquee-container:hover .marquee-track { animation-play-state: paused; }

/* Dải CTA cuối trang */
.cta-band { background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary) 50%, var(--c-gold-dark) 100%); color: #FFF; padding: 75px 0; text-align: center; position: relative; }
.cta-band .eyebrow { background: rgba(255,255,255,.15); color: #FFF; border-color: rgba(255,255,255,.3); }
.cta-band h2 { font-family: var(--f-serif); font-size: 2.8rem; color: #FFF; margin: 16px 0 20px; }
.cta-band p { font-size: 1.1rem; color: #F5E8E8; max-width: 650px; margin: 0 auto 36px; }

/* Nội dung bài viết / văn bản dài */
.prose { font-size: 1.05rem; line-height: 1.85; color: var(--c-text); }
.prose h2, .prose h3, .prose h4 { margin: 1.6em 0 .6em; color: var(--c-pine); }
.prose p { margin-bottom: 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.1em 1.4em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--r-md); margin: 1.2em auto; height: auto; }
.prose figure figcaption { font-size: .85rem; color: var(--c-text-muted); text-align: center; font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--c-border); padding: 10px 12px; text-align: left; }
.prose th { background: var(--c-surface-soft); }
.prose blockquote { border-left: 4px solid var(--c-gold); background: var(--c-surface-soft); padding: 16px 20px; border-radius: 0 var(--r-md) var(--r-md) 0; margin: 1.2em 0; font-style: italic; }
.prose a { text-decoration: underline; }
.prose iframe, .prose video { max-width: 100%; border-radius: var(--r-md); }

/* Tab dùng chung */
.tab-bar { display: inline-flex; gap: 6px; padding: 6px; background: #FFF; border: 1px solid var(--c-border); border-radius: var(--r-full); box-shadow: var(--shadow-sm); flex-wrap: wrap; }
.tab-btn { border: none; background: transparent; padding: 10px 22px; border-radius: var(--r-full); font-family: var(--f-sans); font-weight: 700; font-size: .92rem; color: var(--c-text-muted); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all var(--t-fast); }
.tab-btn:hover { color: var(--c-primary); }
.tab-btn.active { background: linear-gradient(135deg, var(--c-primary) 0%, #6E0D29 100%); color: #FFF; box-shadow: var(--shadow-primary); }

/* ---------- Trạng thái dữ liệu: đang tải / rỗng / lỗi ---------- */
.state-box { text-align: center; padding: 50px 20px; color: var(--c-text-muted); grid-column: 1 / -1; }
.state-box i { font-size: 2.4rem; color: var(--c-gold); display: block; margin-bottom: 10px; }
.skeleton { background: linear-gradient(90deg, #EFE9DE 25%, #F8F4EC 50%, #EFE9DE 75%); background-size: 200% 100%; animation: skeletonShine 1.4s infinite; border-radius: var(--r-lg); min-height: 260px; }
@keyframes skeletonShine { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.spinner { width: 34px; height: 34px; border: 3px solid rgba(148,19,56,.15); border-top-color: var(--c-primary); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 10px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Phân trang ---------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 44px; flex-wrap: wrap; list-style: none; }
.pagination a, .pagination button, .pagination span { min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-full); border: 1px solid var(--c-border); background: #FFF; color: var(--c-text); font-weight: 700; font-size: .9rem; cursor: pointer; font-family: var(--f-sans); }
.pagination a:hover, .pagination button:hover { border-color: var(--c-primary); color: var(--c-primary); }
.pagination .active, .pagination [aria-current="page"] { background: var(--c-primary); border-color: var(--c-primary); color: #FFF; }
.pagination [disabled] { opacity: .45; cursor: default; }

/* ---------- Form: bổ sung cho form-card của V2 ---------- */
.form-control[aria-invalid="true"], .form-control.is-invalid { border-color: #C62828; box-shadow: 0 0 0 3px rgba(198,40,40,.12); }
.form-error { color: #C62828; font-size: .82rem; margin-top: 6px; display: block; }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--c-text-muted); }
.form-check input { margin-top: 4px; accent-color: var(--c-primary); width: 18px; height: 18px; flex-shrink: 0; }
.alert { padding: 14px 18px; border-radius: var(--r-md); font-size: .92rem; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; }
.alert i { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.alert-success { background: #E8F5E9; color: #1B5E20; border: 1px solid #A5D6A7; }
.alert-error { background: #FFEBEE; color: #B71C1C; border: 1px solid #EF9A9A; }
.alert-info { background: #FFF8E1; color: #6D4C00; border: 1px solid #FFE082; }
.captcha-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.captcha-row img { height: 46px; border-radius: var(--r-sm); border: 1px solid var(--c-border); background: #FFF; }

/* ---------- Captcha ảnh (FestivalCaptcha trong festival-common.js) — mọi form ---------- */
.fc-label { display: flex; align-items: baseline; gap: 4px; font-weight: 700; font-size: .9rem; color: var(--c-pine); margin-bottom: 8px; }
.fc-label .fc-refresh { margin-left: auto; }
.fc-refresh { background: none; border: 0; color: var(--c-primary); font-size: .85rem; font-weight: 600; cursor: pointer; padding: 2px 4px; font-family: var(--f-sans); }
.fc-refresh:hover { text-decoration: underline; }
.fc-row { display: flex; align-items: center; gap: 10px; }
.fc-input { flex: 1; min-width: 0; letter-spacing: .3em; text-transform: uppercase; font-family: Consolas, "Courier New", monospace; font-weight: 700; }
.fc-img { width: 150px; height: 50px; flex: none; border: 1px solid var(--c-border); border-radius: var(--r-sm); background: #FFF; cursor: pointer; object-fit: cover; }
.fc-img.fc-loading { opacity: .4; }

/* ---------- Tiện ích dùng chung của các form tài khoản / đăng ký (trước ở account.css) ---------- */
.account-hidden { display: none !important; }
.account-captcha { margin: 4px 0 16px; min-height: 0; }
.account-check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; line-height: 1.5; margin: 6px 0 14px; color: var(--c-text-muted); text-align: left; }
.account-check input { margin-top: 3px; flex-shrink: 0; accent-color: var(--c-primary); width: 17px; height: 17px; }
.account-check a { color: var(--c-primary); font-weight: 600; }
.account-alert { padding: 12px 16px; border-radius: var(--r-md); margin-bottom: 16px; font-size: .92rem; text-align: left; border: 1px solid transparent; }
.account-alert-error { background: #FFEBEE; color: #B71C1C; border-color: #EF9A9A; }
.account-alert-success { background: #E8F5E9; color: #1B5E20; border-color: #A5D6A7; }
.account-alert-info { background: #FFF8E1; color: #6D4C00; border-color: #FFE082; }

/* Giới hạn chỗ: thanh tiến độ đăng ký */
.capacity { margin: 4px 0 14px; font-size: .84rem; color: var(--c-text-muted); }
.capacity-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.capacity-head b { color: var(--c-pine); }
.capacity-left { font-weight: 700; color: var(--c-pine-light); white-space: nowrap; }
.capacity-bar { height: 8px; border-radius: 99px; background: rgba(10,51,41,.1); overflow: hidden; }
.capacity-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--c-pine-light), var(--c-pine)); transition: width .6s ease; }
.capacity.hot .capacity-left { color: var(--c-gold-dark); }
.capacity.hot .capacity-bar i { background: linear-gradient(90deg, #FFD54F, var(--c-gold-dark)); }
.capacity.full .capacity-left { color: var(--c-primary); }
.capacity.full .capacity-bar i { background: linear-gradient(90deg, var(--c-primary-light), var(--c-primary)); }

/* Nút phụ / vô hiệu */
.btn-secondary { background: #FFF; color: var(--c-pine) !important; border: 1.8px solid var(--c-border); }
.btn-secondary:hover { border-color: var(--c-primary); color: var(--c-primary) !important; }
.btn:disabled, .btn[disabled], .btn.disabled { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none; }

/* ---------- Bản đồ Google ---------- */
.map-frame { width: 100%; height: 460px; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--c-border); box-shadow: var(--shadow-md); background: var(--c-surface-soft); }

/* ---------- Chatbot: phần trả lời từ API (danh sách, liên kết, gợi ý, đang gõ) ---------- */
.chatbot-panel .chat-items { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.chatbot-panel .chat-items li { background: rgba(255,255,255,.7); border-radius: 10px; padding: 8px 10px; }
.chatbot-panel .chat-items small { display: block; color: var(--c-text-muted); font-size: .78rem; }
.chatbot-panel .chat-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chatbot-panel .chat-link { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 99px; background: var(--c-primary); color: #FFF !important; font-size: .78rem; font-weight: 700; }
.chatbot-panel .chat-items .chat-link { background: none; color: var(--c-primary) !important; padding: 0; font-size: .88rem; }
.chatbot-panel .chat-quick-suggestions:empty { display: none; }
.typing-indicator { display: inline-flex; gap: 4px; align-items: center; }
.typing-indicator span { width: 7px; height: 7px; border-radius: 50%; background: var(--c-text-light); animation: typingDot 1.2s infinite ease-in-out; }
.typing-indicator span:nth-child(2) { animation-delay: .15s; }
.typing-indicator span:nth-child(3) { animation-delay: .3s; }
@keyframes typingDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chatbot-send[disabled] { opacity: .5; cursor: default; }

/* Đếm ngược kết thúc */
.countdown-done { font-family: var(--f-display); font-weight: 800; font-size: 1.4rem; color: #FFE082; padding: 4px 10px; }

/* ---------- Hiện dần khi cuộn ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn-shimmer::after, .marquee-track, .hero-backdrop-img, .dock-btn-ai::after { animation: none !important; }
}

/* Footer: dòng phiên bản build */
.footer-build { opacity: .7; font-size: .76rem; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); color: #FFE082; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.footer-social a:hover { background: var(--c-gold); color: #1A1A1A; }
.footer-contact-item a { color: #CAD5D1; }
.footer-contact-item a:hover { color: #FFE082; }

/* In ấn */
@media print {
  .gov-topbar, .site-header, .mobile-drawer, .mobile-drawer-overlay, .quick-dock, .chatbot-panel, .site-footer, .notice-strip { display: none !important; }
  body::before { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .grid-2, .grid-2-wide { grid-template-columns: 1fr; gap: 32px; }
  .news-hero-card { grid-template-columns: 1fr; }
  .news-hero-card .media { min-height: 240px; }
  .news-hero-card .body { padding: 26px; }
  .page-hero h1 { font-size: 2.3rem; }
  .cta-band h2 { font-size: 2.1rem; }
  .section { padding: 60px 0; }
  .section-title { font-size: 2rem; }
  .hero-title { font-size: 2.8rem; }
  .hero-title em { font-size: 2.2rem; }
  .countdown-box { padding: 12px 18px; gap: 10px; }
  .countdown-num { font-size: 2rem; }
  .countdown-unit { min-width: 48px; }
  .feature-media img { height: 300px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .lineup-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 680px) {
  .gov-authority { max-width: 100%; }
  .gov-authority-text { min-width: 0; }
  .gov-authority-text span, .gov-authority-text small { display: none; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .gov-badge { display: none; }
  .gov-tools { gap: 10px; }
  .gov-account-link span { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
  .grid-3, .grid-4, .news-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 48px 0 40px; }
  .page-hero h1 { font-size: 1.9rem; }
  .page-hero p { font-size: 1rem; }
  .hero-title { font-size: 2.2rem; }
  .hero-title em { font-size: 1.8rem; }
  .hero-slogan { font-size: 1.1rem; }
  .countdown-num { font-size: 1.6rem; }
  .countdown-label { font-size: .62rem; letter-spacing: 1px; }
  .countdown-divider { height: 28px; }
  .section-title { font-size: 1.7rem; }
  .gov-lang-select, .accessibility-tools { display: none; }
  .quick-dock { right: 14px; bottom: 14px; }
  .chatbot-panel { right: 10px !important; left: 10px; width: auto !important; }
  .brand-title { font-size: 1rem; }
  .brand-subtitle { font-size: .64rem; }
  .tab-btn { padding: 8px 14px; font-size: .85rem; }
}

/* ==========================================================================
   ĐĂNG KÝ THEO DÕI SỰ KIỆN (Trang chủ, Chương trình, Theo dõi) — BTC 06/10/2026
   ========================================================================== */
.follow-btn { gap: 6px; }
.follow-btn.is-following { background: #FFF; color: var(--c-primary); border: 1.5px solid var(--c-primary); box-shadow: none; }
.follow-btn.is-following:hover { background: rgba(148,19,56,.06); color: var(--c-primary-dark, var(--c-primary)); }
.follow-btn[aria-busy="true"] { opacity: .65; pointer-events: none; }
.follow-btn.is-ended { background: #ECEFEC; color: #55665E; border: 1px solid #D5DDD9; box-shadow: none; cursor: not-allowed; }
.follow-count { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 600; color: var(--c-text-muted); }
.follow-count i { color: var(--c-gold-dark, var(--c-gold)); }
.ticket-buy-btn { gap: 6px; }
.event-card-footer { flex-wrap: wrap; gap: 10px; }
.event-card-footer .follow-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.follow-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 2000; max-width: min(92vw, 520px); padding: 12px 20px; border-radius: var(--r-full); background: var(--c-pine); color: #FFF; font-size: .9rem; font-weight: 600; box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .25s ease, transform .25s ease; pointer-events: none; text-align: center; }
.follow-toast.show { opacity: 1; transform: translate(-50%, 0); }
.follow-toast.is-error { background: #9B1C1C; }
.follow-highlight { outline: 3px solid var(--c-gold); outline-offset: 4px; box-shadow: var(--shadow-gold, var(--shadow-lg)) !important; }

/* ==========================================================================
   BỘ NHẬN DIỆN FESTIVAL HOA ĐÀ LẠT XI - 2026 (maket tuyên truyền của BTC)
   Logo · Chủ đề · Slogan · Linh vật ong · Ấn phẩm pano/băng rôn — ảnh tại Content/festival-v2/brand
   ========================================================================== */
:root {
  /* Dải màu cầu vồng của vòng cánh hoa trong logo */
  --brand-rainbow: linear-gradient(90deg, #F2231B 0%, #FF7A00 14%, #F6D600 28%, #7ED321 42%, #19B5FE 57%, #2A35F5 71%, #8B2BF0 85%, #E8139C 100%);
  --brand-green: #2E9B1F;
}

/* Logo trên banner trang chủ: nền sáng như trên pano để giữ đúng màu chữ xanh navy của logo */
.hero-brand-logo { display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; padding: 10px 24px; border-radius: 22px; background: rgba(255, 255, 255, .95); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.hero-brand-logo img { display: block; height: 96px; width: auto; }

/* Slogan ở chân trang */
.footer-slogan { display: inline-flex; align-items: center; gap: 8px; margin: -6px 0 18px; padding: 6px 14px; border-radius: var(--r-full); border: 1px solid var(--c-border-gold); background: rgba(212, 175, 55, .08); color: var(--c-gold-light); font-size: .78rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.footer-slogan i { color: #9BE15D; font-size: 1rem; }

/* Linh vật ong làm ảnh đại diện Trợ lý */
.chatbot-avatar.chatbot-avatar-bee { object-fit: contain; padding: 2px; }

/* Khối "Bộ nhận diện" trang chủ */
.brand-kit-section { position: relative; overflow: hidden; background: radial-gradient(circle at 8% 12%, rgba(126, 211, 33, .10), transparent 38%), radial-gradient(circle at 92% 85%, rgba(232, 19, 156, .08), transparent 40%), linear-gradient(180deg, #FFFFFF 0%, var(--c-bg) 100%); }
.brand-kit-section::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--brand-rainbow); }
.brand-kit-section .section-header { position: relative; z-index: 1; }
.brand-kit-bee { position: absolute; top: 46px; right: max(16px, calc(50% - 640px)); width: 120px; height: auto; z-index: 0; pointer-events: none; animation: brand-bee-float 4.5s ease-in-out infinite; filter: drop-shadow(0 10px 16px rgba(10, 51, 41, .18)); }
@keyframes brand-bee-float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(3deg); } }

.brand-kit-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.brand-kit-card { display: flex; flex-direction: column; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform var(--t-smooth), box-shadow var(--t-smooth), border-color var(--t-smooth); }
.brand-kit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--c-border-gold); }
.brand-kit-visual { position: relative; display: flex; align-items: center; justify-content: center; height: 230px; padding: 26px; background: #FFFFFF; border-bottom: 1px solid var(--c-border); }
.brand-kit-visual::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: -1px; height: 3px; border-radius: 3px; background: var(--brand-rainbow); opacity: .85; }
.brand-kit-visual img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.brand-kit-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 22px 24px 24px; }
.brand-kit-tag { align-self: flex-start; font-size: .7rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--brand-green); background: rgba(46, 155, 31, .09); padding: 4px 10px; border-radius: var(--r-full); }
.brand-kit-card h3 { margin: 4px 0 0; font-family: var(--f-display); font-size: 1.12rem; font-weight: 800; line-height: 1.35; color: var(--c-pine); }
.brand-kit-card p { margin: 0; font-size: .9rem; line-height: 1.65; color: var(--c-text-muted); }
.brand-kit-card .brand-kit-en { font-family: var(--f-serif); font-style: italic; color: var(--c-accent-purple); }
.brand-kit-download { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: .85rem; font-weight: 700; color: var(--c-primary); }
.brand-kit-download:hover { color: var(--c-gold-dark); }

.brand-kit-posters { position: relative; z-index: 1; margin-top: 56px; }
.brand-kit-posters-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.brand-kit-posters-head h3 { margin: 0; font-family: var(--f-display); font-size: 1.3rem; font-weight: 800; color: var(--c-pine); }
.brand-kit-posters-head p { margin: 4px 0 0; font-size: .9rem; color: var(--c-text-muted); }
.brand-kit-nav { display: flex; gap: 8px; }
.brand-kit-nav button { width: 42px; height: 42px; border-radius: var(--r-full); border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-pine); font-size: 1.1rem; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--t-fast); }
.brand-kit-nav button:hover { background: var(--c-pine); color: #FFF; border-color: var(--c-pine); }
.brand-kit-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, calc((100% - 36px) / 3)); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 16px; scrollbar-width: thin; }
.brand-kit-poster { scroll-snap-align: start; margin: 0; padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; font: inherit; color: inherit; }
.brand-kit-poster-img { display: block; aspect-ratio: 2 / 1; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--c-border); background: var(--c-surface-soft); box-shadow: var(--shadow-sm); transition: box-shadow var(--t-smooth), transform var(--t-smooth); }
.brand-kit-poster-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.brand-kit-poster:hover .brand-kit-poster-img { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.brand-kit-poster:hover .brand-kit-poster-img img { transform: scale(1.04); }
.brand-kit-poster:focus-visible { outline: none; }
.brand-kit-poster:focus-visible .brand-kit-poster-img { outline: 3px solid var(--c-gold); outline-offset: 3px; }
.brand-kit-poster-cap { display: block; margin-top: 10px; font-size: .88rem; font-weight: 700; color: var(--c-text); }
.brand-kit-poster-cap small { display: block; font-size: .76rem; font-weight: 500; color: var(--c-text-light); margin-top: 2px; }

/* Xem ảnh lớn ấn phẩm */
.brand-lightbox { position: fixed; inset: 0; margin: auto; height: fit-content; width: min(1180px, 94vw); max-width: 94vw; max-height: 92vh; padding: 0; border: 0; border-radius: var(--r-lg); background: #0D1614; color: #FFF; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); overflow: hidden; }
.brand-lightbox::backdrop { background: rgba(5, 15, 12, .82); }
.brand-lightbox figure { margin: 0; display: flex; flex-direction: column; max-height: 92vh; }
.brand-lightbox-stage { position: relative; display: flex; align-items: center; justify-content: center; background: #050B09; min-height: 200px; }
.brand-lightbox-stage img { display: block; max-width: 100%; max-height: calc(92vh - 76px); width: auto; height: auto; object-fit: contain; transition: opacity .25s ease; }
.brand-lightbox-stage img.is-loading { opacity: .25; }
.brand-lightbox figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 16px 22px; font-size: .92rem; font-weight: 600; }
.brand-lightbox figcaption a { display: inline-flex; align-items: center; gap: 6px; color: var(--c-gold-light); font-weight: 700; }
.brand-lightbox-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: var(--r-full); border: 1px solid rgba(255, 255, 255, .3); background: rgba(0, 0, 0, .45); color: #FFF; font-size: 1.3rem; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.brand-lightbox-btn:hover { background: rgba(0, 0, 0, .7); }
.brand-lightbox-prev { left: 12px; }
.brand-lightbox-next { right: 12px; }
.brand-lightbox-close { top: 14px; right: 14px; transform: none; width: 40px; height: 40px; }

@media (max-width: 1024px) {
  .brand-kit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-kit-grid .brand-kit-card:last-child { grid-column: 1 / -1; }
  .brand-kit-track { grid-auto-columns: minmax(260px, calc((100% - 18px) / 2)); }
  .brand-kit-bee { width: 92px; top: 28px; }
}
@media (max-width: 640px) {
  .hero-brand-logo { padding: 6px 14px; border-radius: 16px; margin-bottom: 14px; }
  .hero-brand-logo img { height: 64px; }
  .brand-kit-grid { grid-template-columns: 1fr; gap: 18px; }
  .brand-kit-grid .brand-kit-card:last-child { grid-column: auto; }
  .brand-kit-visual { height: 190px; padding: 20px; }
  .brand-kit-track { grid-auto-columns: 82%; }
  .brand-kit-nav { display: none; }
  .brand-kit-bee { width: 64px; top: 18px; right: 10px; }
  .brand-lightbox-btn { width: 38px; height: 38px; font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-kit-bee { animation: none; }
  .brand-kit-card, .brand-kit-poster-img, .brand-kit-poster-img img { transition: none; }
}
