/* --- 1. HEADER NAVIGATOR --- */
.sp-sticky-header {
    position: fixed !important; 
    top: 0 !important; 
    left: 0 !important; 
    width: 100%; 
    height: 45px !important;
    background-color: #000 !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: space-between !important;
    z-index: 99999 !important; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.5) !important; 
    font-family: Arial, sans-serif !important;
}

.left-group, .right-group { display: flex; align-items: center; height: 100%; }

.sp-back-to-soha-new {
    display: flex; align-items: center; justify-content: center; 
    width: 45px; height: 45px;
    background-color: #007f74; color: white; font-size: 18px; cursor: pointer;
    transition: background-color 0.3s;
}
.sp-back-to-soha-new:hover { background-color: #00665d; }

.emg-icon-svg { fill: currentColor; width: 20px; height: 20px; }

.sp-mag-logo-new { margin-left: 15px; display: flex; align-items: center; }
.sp-mag-logo-new img { height: 24px; width: auto; display: block; }

.center-logo {
    position: absolute; left: 50%; transform: translateX(-50%); 
    pointer-events: none; user-select: none;
    display: flex; align-items: center; justify-content: center;
}
.center-logo img { height: 26px; width: auto; display: block; }

.mobile-emag-logo { display: none; height: 24px; width: auto; margin-right: 15px; }

.fb-custom-btn {
    display: flex; align-items: center; gap: 6px; color: white; 
    font-size: 13px; font-weight: bold; cursor: pointer; opacity: 0.9;
    margin-right: 15px; text-decoration: none;
}
.fb-custom-btn:hover { opacity: 1; text-decoration: underline; }

@media (max-width: 768px) { 
    .center-logo, .fb-custom-btn { display: none !important; } 
    .mobile-emag-logo { display: block !important; }
}

/* --- 2. THEME CONFIGURATION --- */
:root {
    --bg-main: #fdfaf4;       
    --text-main: #262626;     
    --text-muted: #52525b;    
    --accent-gold: #c05c00;   
    --box-bg: rgba(255, 255, 255, 0.9); 
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    line-height: 1.8;
    font-size: 19px; 
    font-weight: 400;
}

/* FONTS STYLE */
.serif, .drop-cap::first-letter, .quote-mark, .quote-text, .sapo-text, .ending-sapo, .highlight-box-unified {
    font-family: 'Playfair Display', serif;
}

/* TEXT EFFECTS */
.text-gold-luxury {
    color: var(--accent-gold); 
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800; 
    text-transform: uppercase;
    letter-spacing: 0.04em; 
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    font-size: 2rem; 
    color: var(--accent-gold);
}

/* DROP CAP */
.drop-cap::first-letter {
    font-size: 4.8rem;
    color: var(--accent-gold); 
    float: left;
    line-height: 0.85;
    margin-right: 1rem;
    margin-top: 0.3rem;
    font-weight: 700;
}

figcaption {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 10px;
    display: inline-block;
    width: 100%;
}

/* COVER SECTION */
.cover-wrapper {
    position: relative;
    width: 100%;
    height: auto; 
    min-height: 400px; 
    overflow: hidden;
    background-color: #000; 
    margin-top: 45px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover-img {
    width: 100%;
    height: auto; 
    object-fit: contain; 
    display: block;
}

.cover-gradient-bottom {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 5%;
    background: linear-gradient(to top, rgba(253, 250, 244, 0.001) 0%, rgba(253, 250, 244, 0) 100%);
    z-index: 10;
}

.cover-title-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 20;
    text-align: center;
    padding: 0 1rem;
}

.cover-title-container {
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
}

.cover-title-main {
    display: inline-block;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.9);
    color: #ffffff;
    font-weight: 800;
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.cover-title-sub {
    display: inline;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    color: #FFD700;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.7;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4), 2px 4px 10px rgba(0,0,0,0.9);
    background-color: rgba(128, 128, 128, 0.01);
    backdrop-filter: blur(4px); 
    -webkit-backdrop-filter: blur(4px);
    padding: 0.1rem 0.4rem; 
    border-radius: 6px;
}

@media (min-width: 768px) {
    .cover-title-main { font-size: 4rem; }
    .cover-title-sub { font-size: 1.8rem; padding: 0.1rem 0.6rem; }
}

/* SAPO BOX */
.sapo-box {
    background: transparent;
    padding: 2rem 1rem;
    position: relative;
    z-index: 30;
    margin-top: 1rem; 
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}
.sapo-text {
    font-size: 1.55rem;
    font-weight: 700;
    font-style: italic;
    color: var(--text-main);
    line-height: 1.65;
    text-align: center;
}

/* LAYOUT CONTAINERS */
.container-media-boxed {
    max-width: 980px;
    margin: 3.5rem auto;
    padding: 0 1rem;
}

.img-soft-blend {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12); 
}

/* ANIMATIONS ON SCROLL */
.reveal { opacity: 0; transform: translateY(40px); transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

.reveal-zoom { opacity: 0; transform: scale(0.95); transition: all 1.5s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-zoom.active { opacity: 1; transform: scale(1); }

/* TEXT CONTAINERS */
.container-reading { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* HIGHLIGHT BOX (QUOTE) */
.highlight-box-unified {
    position: relative;
    padding: 1.5rem 0;
    margin: 3.5rem 0;
    font-size: 1.6rem; 
    font-weight: 700;
    font-style: italic;
    color: var(--text-main); 
    background: transparent;
    text-align: center;
    border: none;
    box-shadow: none;
    overflow: visible;
    line-height: 1.6;
}

.highlight-box-unified::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold);
    margin: 1.5rem auto 0 auto;
}

.highlight-box-unified::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    bottom: -10px;
    right: 10px;
    font-size: 8rem;
    color: rgba(0, 0, 0, 0.03); 
    z-index: 0;
    pointer-events: none;
    transform: rotate(-15deg);
}

.quote-speed::before { content: "\f0e7"; } 
.quote-police::before { content: "\f3ed"; } 
.quote-plane::before { content: "\f072"; } 

.highlight-box-unified p, .highlight-box-unified div {
    position: relative;
    z-index: 1;
}

/* INFOGRAPHIC CSS */
.info-card {
    background: transparent;
    border: none;
    border-top: 3px solid var(--accent-gold);
    border-radius: 0;
    box-shadow: none;
    transition: all 0.3s ease;
}
.info-card:hover {
    transform: translateY(-5px);
    box-shadow: none;
}
.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    background: linear-gradient(to right, #92400e, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-trend {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.95rem;
    background-color: rgba(16, 185, 129, 0.1);
    color: #059669; 
}

.progress-bar-bg {
    background: rgba(0,0,0,0.06);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 15px;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    width: 0%; 
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ENDING TEXT */
.ending-sapo {
    font-size: 1.85rem;
    font-weight: 700;
    font-style: italic;
    color: var(--text-main);
    line-height: 1.6;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 768px) {
    .section-title { font-size: 1.6rem !important; }
    .drop-cap::first-letter { font-size: 3.5rem; }
    .sapo-box { padding: 2rem 1.5rem; border-radius: 8px; width: 92%; margin-top: 0; }
    .ending-sapo { font-size: 1.4rem; }
    .highlight-box-unified { padding: 1.5rem; font-size: 1.3rem; }
    body { font-size: 17px; }
}

/* ========================================================= */
/* TAILWIND REPLACEMENT CLASSES (ĐẢM BẢO GIAO DIỆN KHÔNG VỠ) */
/* ========================================================= */
.relative { position: relative; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.overflow-hidden { overflow: hidden; }
.w-full { width: 100%; }
.h-auto { height: auto; }
.block { display: block; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.grid { display: grid; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.col-span-2 { grid-column: span 2 / span 2; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.pt-10 { padding-top: 2.5rem; }
.pb-10 { padding-bottom: 2.5rem; }
.pb-0 { padding-bottom: 0; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.p-6 { padding: 1.5rem; }

.mt-16 { margin-top: 4rem; }
.mt-12 { margin-top: 3rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-0 { margin-top: 0; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-0 { margin-bottom: 0; }
.my-16 { margin-top: 4rem; margin-bottom: 4rem; }

.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-\[1920px\] { max-width: 1920px; }
.max-w-\[1320px\] { max-width: 1320px; }
.max-w-5xl { max-width: 64rem; }
.container { width: 100%; margin-right: auto; margin-left: auto; }

.object-cover { object-fit: cover; }
.aspect-video { aspect-ratio: 16 / 9; }

.rounded-xl { border-radius: 0.75rem; }
.rounded-t-xl { border-top-left-radius: 0.75rem; border-top-right-radius: 0.75rem; }
.rounded-bl-xl { border-bottom-left-radius: 0.75rem; }
.rounded-br-xl { border-bottom-right-radius: 0.75rem; }

.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06); }

.border-t { border-top-width: 1px; border-top-style: solid; }
.border-gray-200 { border-color: #e5e7eb; }

.text-center { text-align: center; }
.text-justify { text-align: justify; }
.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }

.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }

.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }

.text-gray-800 { color: #1f2937; }
.text-gray-600 { color: #4b5563; }
.text-gray-500 { color: #6b7280; }
.text-amber-600 { color: #d97706; }
.text-green-800 { color: #166534; }

.tracking-widest { letter-spacing: 0.1em; }
.tracking-wider { letter-spacing: 0.05em; }
.opacity-80 { opacity: 0.8; }

@media (min-width: 640px) {
    .container { max-width: 640px; }
}
@media (min-width: 768px) {
    .container { max-width: 768px; }
    .md\:px-4 { padding-left: 1rem; padding-right: 1rem; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:flex-row { flex-direction: row; }
    .md\:w-\[640px\] { width: 640px; }
}
@media (min-width: 1024px) {
    .container { max-width: 1024px; }
}