/* ==========================================================================
   STYLE SYSTEM - SHANGRI-LA DIALOGUE 2026 INTERACTIVE PAGE
   ========================================================================== */

/* Design Tokens & Variables */
:root {
    /* Color Palette */
    --color-navy-dark: #071126;
    --color-navy-medium: #0B1B3D;
    --color-navy-light: #162E61;
    --color-navy-muted: #1e3a7a;
    --color-gold-bright: #F3C63F;
    --color-gold-dark: #D4AF37;
    --color-gold-light: #FCE8A6;
    --color-crimson: #C8102E;
    
    /* Backgrounds & Fades */
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --bg-dark-accent: #0F172A;
    --bg-dark-main: #0B0F19;
    --bg-sepia: #FCF5E3;
    
    /* Text Colors */
    --text-dark-primary: #1E293B;
    --text-dark-secondary: #475569;
    --text-light-primary: #F1F5F9;
    --text-light-secondary: #94A3B8;
    --text-sepia-primary: #433422;
    
    /* Structural variables */
    --header-height: 80px;
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --box-shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --box-shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.1);
    --box-shadow-deep: 0 20px 40px rgba(0, 0, 0, 0.2);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Reader state defaults */
    --reader-font-size: 1.15rem;
    --reader-line-height: 1.85;
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-dark-primary);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark Mode Overrides for Body */
body.dark-mode {
    --bg-light: var(--bg-dark-main);
    --bg-white: var(--bg-dark-accent);
    --text-dark-primary: var(--text-light-primary);
    --text-dark-secondary: var(--text-light-secondary);
    --box-shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --box-shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.5);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Helper Utilities */
.text-gold { color: var(--color-gold-bright) !important; }
.border-gold { border-color: var(--color-gold-dark) !important; }
.hidden { display: none !important; }

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1001;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--color-crimson), var(--color-gold-bright));
    transition: width 0.1s ease-out;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(7, 17, 38, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    height: 70px;
    background-color: rgba(7, 17, 38, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.highlight-bar {
    width: 4px;
    height: 24px;
    background: linear-gradient(to bottom, var(--color-crimson), var(--color-gold-bright));
    border-radius: var(--border-radius-sm);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--bg-white);
    background: linear-gradient(to right, #ffffff, var(--color-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 0;
    position: relative;
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-gold-bright);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold-bright);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.theme-switch-container {
    display: flex;
    align-items: center;
}

.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: var(--color-gold-bright);
    transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.theme-icon {
    width: 20px;
    height: 20px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--bg-white);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* Mobile Nav Sidebar */
.mobile-nav {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 280px;
    height: calc(100vh - var(--header-height));
    background-color: rgba(7, 17, 38, 0.98);
    backdrop-filter: blur(15px);
    z-index: 999;
    padding: 40px 30px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.25);
    transition: var(--transition-smooth);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mobile-nav-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    color: var(--color-gold-bright);
    padding-left: 10px;
}

/* ==========================================================================
   HERO BANNER SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    /* Bắt đầu sau header 80px để ảnh không bị che */
    margin-top: var(--header-height);
    height: calc(100vh - var(--header-height));
    min-height: 560px;
    background-color: #061125; /* Fallback và vùng bù lấp khi kéo ảnh xuống */
    background-image: linear-gradient(to right, rgba(7, 17, 38, 0.1) 0%, rgba(7, 17, 38, 0.4) 35%, rgba(7, 17, 38, 0.88) 72%, rgba(7, 17, 38, 0.98) 100%), url('GalleryTBT/To Lam.jpg');
    background-size: 100% 100%, cover;
    /* Kéo ảnh xuống 60px để không bị cắt phần đỉnh đầu */
    background-position: left top, left 60px;
    background-repeat: no-repeat, no-repeat;
    background-attachment: scroll;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 6% 0 8%;
    color: var(--bg-white);
    z-index: 1;
}

.hero-container {
    /* Tăng max-width để tiêu đề vừa đủ 3 dòng */
    max-width: 740px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 1.2s ease-out;
}

.diplomatic-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    opacity: 0.9;
    justify-content: flex-end;
}

.badge-line {
    width: 40px;
    height: 1px;
    background-color: var(--color-gold-bright);
}

.badge-text {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-gold-bright);
    text-shadow: 0 2px 10px rgba(243, 198, 63, 0.3);
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.9rem;
    font-weight: 700;
    line-height: 1.28;
    margin-bottom: 25px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    letter-spacing: -0.5px;
    /* Không cho wrap tự do – chỉ xuống dòng theo <br> */
    white-space: pre-line;
    background: linear-gradient(to right, #FFFFFF, #FFF9E6, #FCE8A6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    max-width: 750px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 30px;
    margin-bottom: 50px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 18px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.meta-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--color-gold-bright);
}

.meta-icon {
    width: 18px;
    height: 18px;
    color: var(--color-gold-bright);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(7, 17, 38, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
}

.scroll-down-btn:hover {
    background-color: var(--color-navy-light);
    border-color: var(--color-gold-bright);
}

.scroll-arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--color-gold-bright);
    border-bottom: 2px solid var(--color-gold-bright);
    transform: rotate(45deg);
    margin-bottom: 4px;
}

/* ==========================================================================
   SECTION COMMON ELEMENTS
   ========================================================================== */
section {
    padding: 100px 0;
    position: relative;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.section-tag {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--color-crimson);
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.dark-theme-section .section-tag {
    color: var(--color-gold-bright);
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-navy-dark);
    margin-bottom: 20px;
}

.dark-theme-section .section-title {
    color: var(--bg-white);
}

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--color-crimson), var(--color-gold-bright));
    margin: 0 auto 20px auto;
    border-radius: 3px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-dark-secondary);
    line-height: 1.6;
}

.dark-theme-section .section-desc {
    color: var(--text-light-secondary);
}

.dark-theme-section {
    background-color: var(--bg-dark-main);
    color: var(--text-light-primary);
}

.light-theme-section {
    background-color: var(--bg-white);
    color: var(--text-dark-primary);
}

/* ==========================================================================
   SUMMARY DASHBOARD (TÓM TẮT Ý CHÍNH)
   ========================================================================== */
.summary-tabs-container {
    margin-top: 40px;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.tab-btn {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-light-secondary);
    padding: 10px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    transition: var(--transition-smooth);
}

.tab-btn:hover {
    color: var(--color-gold-bright);
}

.tab-btn.active {
    color: var(--color-gold-bright);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--color-gold-bright);
    transition: var(--transition-smooth);
}

.tab-btn.active::after {
    width: 100%;
}

.tab-icon {
    width: 20px;
    height: 20px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.6s ease-out;
}

.tab-content.active {
    display: block;
}

/* Crises Cards Grid */
.crises-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.crisis-card {
    background: rgba(22, 46, 97, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--box-shadow-soft);
    transition: var(--transition-smooth);
}

.crisis-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--color-crimson), var(--color-gold-bright));
    opacity: 0;
    transition: var(--transition-smooth);
}

.crisis-card:hover {
    transform: translateY(-8px);
    background: rgba(22, 46, 97, 0.4);
    border-color: rgba(243, 198, 63, 0.25);
    box-shadow: var(--box-shadow-deep);
}

.crisis-card:hover::before {
    opacity: 1;
}

.card-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(243, 198, 63, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-gold-bright);
    margin-bottom: 25px;
    transition: var(--transition-smooth);
}

.crisis-card:hover .card-icon-wrapper {
    background-color: var(--color-gold-bright);
    color: var(--color-navy-dark);
    transform: scale(1.1);
}

.card-icon {
    width: 28px;
    height: 28px;
}

.crisis-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 15px;
}

.crisis-text {
    font-size: 0.95rem;
    color: var(--text-light-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-gold-bright);
    background-color: rgba(243, 198, 63, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    align-self: flex-start;
}

/* Accordion Orientations */
.orientations-accordion {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(22, 46, 97, 0.15);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.accordion-item:hover {
    border-color: rgba(243, 198, 63, 0.2);
    background-color: rgba(22, 46, 97, 0.25);
}

.accordion-item.active {
    border-color: rgba(243, 198, 63, 0.35);
    background-color: rgba(22, 46, 97, 0.35);
    box-shadow: var(--box-shadow-soft);
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 24px 30px;
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    color: var(--bg-white);
}

.accordion-num {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-gold-bright);
    margin-right: 25px;
    opacity: 0.8;
}

.accordion-title {
    font-size: 1.15rem;
    font-weight: 600;
    flex-grow: 1;
    transition: var(--transition-smooth);
}

.accordion-item:hover .accordion-title,
.accordion-item.active .accordion-title {
    color: var(--color-gold-bright);
}

.accordion-arrow {
    width: 12px;
    height: 12px;
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
    transition: var(--transition-smooth);
    margin-left: 15px;
}

.accordion-item.active .accordion-arrow {
    transform: rotate(-135deg);
    border-color: var(--color-gold-bright);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 30px;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
    color: var(--text-light-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.accordion-item.active .accordion-content {
    max-height: 600px;
    padding: 0 30px 24px 30px; /* add top padding to 0, bottom padding to 24px */
}

.accordion-content p {
    margin-bottom: 15px;
}

.highlight-point {
    background-color: rgba(243, 198, 63, 0.08);
    border-left: 3px solid var(--color-gold-bright);
    padding: 15px 20px;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    color: var(--bg-white);
    font-size: 0.95rem;
}

/* ==========================================================================
   SPEECH CONTENT SECTION (TOÀN VĂN PHÁT BIỂU)
   ========================================================================== */
.speech-layout {
    display: block;
    margin-top: 40px;
}

/* Sticky Sidebar Outline */
.speech-outline-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    z-index: 10;
}

.outline-card {
    background-color: var(--bg-light);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--border-radius-md);
    padding: 25px 20px;
    box-shadow: var(--box-shadow-soft);
    transition: var(--transition-smooth);
}

body.dark-mode .outline-card {
    border-color: rgba(255, 255, 255, 0.06);
}

.outline-card-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-navy-muted);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1.5px dashed rgba(0,0,0,0.1);
}

body.dark-mode .outline-card-title {
    color: var(--color-gold-bright);
    border-bottom-color: rgba(255,255,255,0.1);
}

.outline-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.outline-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark-secondary);
    display: flex;
    align-items: center;
    padding: 4px 0;
    transition: var(--transition-smooth);
    border-left: 2px solid transparent;
    padding-left: 12px;
}

.outline-link:hover, .outline-link.active {
    color: var(--color-crimson);
    border-left-color: var(--color-crimson);
    font-weight: 600;
}

body.dark-mode .outline-link:hover, body.dark-mode .outline-link.active {
    color: var(--color-gold-bright);
    border-left-color: var(--color-gold-bright);
}

/* Reader Toolbar */
.reader-toolbar {
    background-color: var(--bg-light);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--border-radius-md);
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow-soft);
    transition: var(--transition-smooth);
}

body.dark-mode .reader-toolbar {
    border-color: rgba(255, 255, 255, 0.06);
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toolbar-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark-secondary);
}

body.dark-mode .toolbar-label {
    color: var(--text-light-secondary);
}

.theme-buttons, .size-buttons {
    display: flex;
    gap: 8px;
}

.reader-theme-btn {
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: none;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

body.dark-mode .reader-theme-btn {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-light-primary);
}

.reader-theme-btn[data-theme="light"] {
    background-color: var(--bg-white);
    color: #1E293B;
}

.reader-theme-btn[data-theme="sepia"] {
    background-color: #F6EED4;
    color: #433422;
}

.reader-theme-btn[data-theme="dark"] {
    background-color: #1E293B;
    color: #F8FAFC;
}

.reader-theme-btn:hover, .reader-theme-btn.active {
    transform: scale(1.03);
    border-color: var(--color-navy-light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body.dark-mode .reader-theme-btn.active {
    border-color: var(--color-gold-bright);
}

.reader-size-btn {
    background-color: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
}

body.dark-mode .reader-size-btn {
    background-color: var(--bg-dark-accent);
    border-color: rgba(255,255,255,0.1);
    color: var(--bg-white);
}

.reader-size-btn:hover {
    border-color: var(--color-navy-light);
    background-color: var(--color-gold-light);
    color: var(--color-navy-dark);
}

/* Reader Paper */
.reader-paper {
    background-color: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius-lg);
    padding: 60px 50px;
    box-shadow: var(--box-shadow-medium);
    transition: var(--transition-smooth);
}

body.dark-mode .reader-paper {
    border-color: rgba(255, 255, 255, 0.04);
}

/* Custom styles for reading themes in reader paper */
.reader-paper.theme-light {
    background-color: #FFFFFF;
    color: #1E293B;
}

.reader-paper.theme-sepia {
    background-color: var(--bg-sepia);
    color: var(--text-sepia-primary);
}

.reader-paper.theme-sepia .speech-para {
    color: var(--text-sepia-primary);
}

.reader-paper.theme-sepia .speech-main-title {
    color: #342717;
}

.reader-paper.theme-sepia .outline-card,
.reader-paper.theme-sepia .reader-toolbar {
    background-color: #F3E9CD;
    border-color: rgba(0,0,0,0.08);
}

.reader-paper.theme-dark {
    background-color: #0E1626;
    color: #E2E8F0;
}

.reader-paper.theme-dark .speech-para {
    color: #CBD5E1;
}

.reader-paper.theme-dark .speech-main-title {
    color: var(--bg-white);
}

.speech-title-container {
    text-align: center;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 40px;
    margin-bottom: 40px;
}

.reader-paper.theme-dark .speech-title-container {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.speech-meta-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-crimson);
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.reader-paper.theme-dark .speech-meta-date {
    color: var(--color-gold-bright);
}

.speech-main-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-navy-dark);
    margin-bottom: 15px;
}

.speech-author {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-dark-secondary);
}

.reader-paper.theme-dark .speech-author {
    color: var(--text-light-secondary);
}

.speech-para {
    font-family: 'Lora', serif;
    font-size: var(--reader-font-size);
    line-height: var(--reader-line-height);
    margin-bottom: 25px;
    text-align: justify;
    color: #2D3748;
}

.speech-quote {
    background-color: rgba(11, 27, 61, 0.03);
    border-left: 4px solid var(--color-crimson);
    padding: 30px 40px;
    margin: 40px 0;
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    font-family: 'Lora', serif;
    position: relative;
}

.reader-paper.theme-dark .speech-quote {
    background-color: rgba(255, 255, 255, 0.03);
    border-left-color: var(--color-gold-bright);
}

.speech-quote p {
    font-size: 1.2rem;
    line-height: 1.7;
    font-style: italic;
    color: var(--color-navy-dark);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.reader-paper.theme-dark .speech-quote p {
    color: var(--bg-white);
}

.speech-quote cite {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark-secondary);
    font-style: normal;
}

.reader-paper.theme-dark .speech-quote cite {
    color: var(--color-gold-bright);
}

.speech-quote::after {
    content: '“';
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: Georgia, serif;
    font-size: 8rem;
    color: rgba(11, 27, 61, 0.05);
    line-height: 1;
    pointer-events: none;
}

.reader-paper.theme-dark .speech-quote::after {
    color: rgba(255, 255, 255, 0.03);
}

/* ==========================================================================
   SPEECH INLINE IMAGES (ẢNH CHÈN TRONG BÀI PHÁT BIỂU)
   ========================================================================== */
.speech-inline-media {
    margin: 40px auto;
    max-width: 800px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow-medium);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.speech-inline-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
    transition: transform 0.4s ease;
}

.speech-inline-media:hover .speech-inline-img {
    transform: scale(1.015);
}

.speech-inline-caption {
    background-color: #f0f4f8;
    border-left: 3px solid var(--color-crimson);
    padding: 12px 20px;
    font-size: 0.88rem;
    font-style: italic;
    color: var(--text-dark-secondary);
    line-height: 1.6;
    margin: 0;
    border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
    font-family: 'Lora', serif;
}

.reader-paper.theme-sepia .speech-inline-caption {
    background-color: #efe9d0;
    color: #5a4535;
}

.reader-paper.theme-dark .speech-inline-caption {
    background-color: rgba(22, 46, 97, 0.4);
    color: var(--text-light-secondary);
    border-left-color: var(--color-gold-bright);
}

/* ==========================================================================
   IMAGE GALLERY SECTION (THƯ VIỆN ẢNH TBT)
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.gallery-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow-soft);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.gallery-card:hover {
    transform: translateY(-5px);
    border-color: rgba(243, 198, 63, 0.2);
    box-shadow: var(--box-shadow-deep);
}

.gallery-img-wrapper {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.2);
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover .gallery-img-wrapper img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 17, 38, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.zoom-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-gold-bright);
    color: var(--color-navy-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.8);
    box-shadow: 0 4px 15px rgba(243, 198, 63, 0.4);
    transition: var(--transition-smooth);
}

.zoom-icon svg {
    width: 24px;
    height: 24px;
}

.gallery-card:hover .zoom-icon {
    transform: scale(1);
}

.gallery-info {
    padding: 20px;
}

.gallery-desc-short {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
    line-height: 1.5;
    /* Multiline ellipsis (2 lines) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-source {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gold-bright);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   PRESS SECTION (BÁO CHÍ QUỐC TẾ)
   ========================================================================== */
.press-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.press-card {
    background-color: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-soft);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: var(--transition-smooth);
}

body.dark-mode .press-card {
    border-color: rgba(255, 255, 255, 0.05);
}

.press-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-deep);
    border-color: rgba(0, 0, 0, 0.1);
}

body.dark-mode .press-card:hover {
    border-color: rgba(243, 198, 63, 0.2);
}

.press-logo-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: var(--bg-light);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode .press-logo-bar {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.press-badge {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 4px;
}

/* Custom Press badges color mapping */
.ny-badge { background-color: #E2E8F0; color: #1A202C; }
.cna-badge { background-color: #FEE2E2; color: #DC2626; }
.st-badge { background-color: #DBEAFE; color: #1E40AF; }
.iss-badge { background-color: #FEF3C7; color: #D97706; }
.asean-badge { background-color: #E0F2FE; color: #0369A1; }
.lw-badge { background-color: #ECEFEE; color: #2B6CB0; }
.tw-badge { background-color: #D1FAE5; color: #065F46; }

.press-country {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dark-secondary);
    text-transform: uppercase;
}

body.dark-mode .press-country {
    color: var(--text-light-secondary);
}

.press-img-container {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #F1F5F9;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode .press-img-container {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.press-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.press-card:hover .press-img-container img {
    transform: scale(1.03);
}

.press-overlay-zoom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 17, 38, 0.7);
    backdrop-filter: blur(3px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: var(--bg-white);
    opacity: 0;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.press-overlay-zoom svg {
    width: 32px;
    height: 32px;
    color: var(--color-gold-bright);
}

.press-card:hover .press-overlay-zoom {
    opacity: 1;
}

.press-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.press-headline {
    font-family: 'Lora', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-navy-dark);
    line-height: 1.4;
}

body.dark-mode .press-headline {
    color: var(--bg-white);
}

.press-translation {
    font-size: 0.92rem;
    color: var(--text-dark-secondary);
    line-height: 1.6;
    border-top: 1px dashed rgba(0,0,0,0.08);
    padding-top: 15px;
}

body.dark-mode .press-translation {
    color: var(--text-light-secondary);
    border-top-color: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.site-footer {
    background-color: var(--color-navy-dark);
    color: var(--bg-white);
    padding: 80px 0 40px 0;
    border-top: 2px solid var(--color-gold-dark);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand {
    max-width: 500px;
}

.footer-brand-title {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--color-gold-bright);
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.footer-brand-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-links-group {
    min-width: 250px;
}

.footer-heading {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bg-white);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--color-gold-bright);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 700px;
}

.diplomatic-seal {
    font-size: 0.8rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 4px;
    letter-spacing: 3px;
    pointer-events: none;
}

/* ==========================================================================
   LIGHTBOX MODAL (POPUP ẢNH)
   ========================================================================== */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 17, 38, 0.98);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 2002;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--color-gold-bright);
    transform: scale(1.1);
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: var(--bg-white);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 2002;
    transition: var(--transition-smooth);
}

.lightbox-nav-btn:hover {
    background-color: var(--color-gold-bright);
    color: var(--color-navy-dark);
    border-color: var(--color-gold-bright);
    box-shadow: 0 4px 15px rgba(243, 198, 63, 0.3);
}

.lightbox-nav-btn svg {
    width: 24px;
    height: 24px;
}

.prev-btn { left: 40px; }
.next-btn { right: 40px; }

.lightbox-content-wrapper {
    max-width: 80%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    animation: scaleUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--box-shadow-deep);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-caption {
    font-family: 'Lora', serif;
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    max-width: 750px;
    background-color: rgba(11, 27, 61, 0.5);
    padding: 15px 25px;
    border-radius: var(--border-radius-md);
    border-left: 3px solid var(--color-gold-bright);
    backdrop-filter: blur(10px);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

@keyframes revealText {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* Large Tablets & Small Laptops (under 1200px) */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .crises-grid {
        gap: 20px;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Medium Tablets & iPads (under 992px) */
@media (max-width: 992px) {
    .main-header {
        padding: 0 4%;
    }
    
    .nav-links {
        display: none; /* Hide desktop nav */
    }
    
    .mobile-menu-toggle {
        display: flex; /* Show mobile hamburger toggle */
    }
    
    .hero-title {
        font-size: 2.3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .crises-grid {
        grid-template-columns: 1fr; /* Single column */
        max-width: 600px;
        margin: 0 auto;
    }
    
    .press-grid {
        grid-template-columns: 1fr; /* Single column press */
        max-width: 700px;
        margin: 0 auto;
        gap: 30px;
    }
    
    .prev-btn { left: 20px; }
    .next-btn { right: 20px; }
}

/* Mobile Devices (under 768px) */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .hero-section {
        margin-top: var(--header-height);
        height: calc(100vh - var(--header-height));
        /* Giữ chặt góc trái ảnh nơi có nhân vật, có thể kéo nhẹ xuống nếu cần */
        background-position: 15% top !important;
        background-size: cover !important;
        /* Gradient dọc: trong ở trên (mặt nhân vật), tối ở dưới (vùng chữ) */
        background-image: linear-gradient(
            to bottom,
            rgba(7, 17, 38, 0.02) 0%,
            rgba(7, 17, 38, 0.15) 35%,
            rgba(7, 17, 38, 0.85) 65%,
            rgba(7, 17, 38, 0.98) 100%
        ), url('GalleryTBT/To Lam.jpg') !important;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 0 0 40px 0;
    }
    
    .theme-switch-container {
        display: none;
    }

    .main-header {
        justify-content: space-between;
    }
    
    .logo-text {
        font-size: 0.95rem;
    }

    .hero-container {
        align-items: center;
        text-align: center;
        /* Glassmorphic card ở đáy màn hình */
        background: rgba(7, 17, 38, 0.35);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        border-top: 1px solid rgba(255,255,255,0.1);
        padding: 28px 10px 20px;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }
    
    .diplomatic-badge {
        display: none;
    }
    
    .hero-title {
        font-size: 1.25rem;
        line-height: 1.4;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .hero-meta {
        display: none;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .tabs-nav {
        flex-direction: column;
        gap: 10px;
        border-bottom: none;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: var(--border-radius-md);
        padding: 12px 20px;
    }
    
    .tab-btn::after {
        display: none; /* Remove bottom bar indicator */
    }
    
    .tab-btn.active {
        background-color: var(--color-navy-light);
        border: 1px solid var(--color-gold-bright);
    }
    
    .accordion-header {
        padding: 18px 20px;
    }
    
    .accordion-num {
        font-size: 1.3rem;
        margin-right: 15px;
    }
    
    .accordion-title {
        font-size: 1rem;
    }
    
    .reader-toolbar {
        padding: 15px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .toolbar-group {
        justify-content: space-between;
    }
    
    .reader-paper {
        padding: 30px 20px;
    }
    
    .speech-main-title {
        font-size: 1.4rem;
    }
    
    .speech-para {
        font-size: 1.05rem;
    }
    
    .speech-quote {
        padding: 20px;
        margin: 25px 0;
    }
    
    .speech-quote p {
        font-size: 1.05rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr; /* Single column gallery */
        gap: 20px;
    }
    
    .lightbox-nav-btn {
        width: 44px;
        height: 44px;
    }
    
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
    
    .lightbox-content-wrapper {
        max-width: 92%;
    }
    
    .lightbox-caption {
        font-size: 0.9rem;
        padding: 10px 15px;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }
}

/* Extra Small Mobile (under 480px) */
@media (max-width: 480px) {
    .logo-text {
        font-size: 1.1rem;
    }
    .hero-title {
        font-size: 1.6rem;
    }
}
