/* --- CSS Cấu trúc và Thẩm mỹ Dự án Phép Lạ Thánh Thể --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --bg-primary: #07090e;
  --bg-secondary: #0d121f;
  --bg-card: rgba(18, 25, 41, 0.6);
  --border-color: rgba(212, 175, 55, 0.15);
  --border-glow: rgba(212, 175, 55, 0.4);
  
  --color-gold: #d4af37;
  --color-gold-light: #f6e095;
  --color-crimson: #991b1b;
  --color-crimson-light: #ef4444;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Outfit', sans-serif;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --blur: blur(12px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(153, 27, 27, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 14, 0.8);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.logo-icon {
  font-size: 1.8rem;
  color: var(--color-gold);
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
  animation: pulseGlow 3s infinite ease-in-out;
}

.logo-text h1 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #fff 40%, var(--color-gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text p {
  font-size: 0.75rem;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: var(--transition);
  border: 1px solid transparent;
}

nav a:hover, nav li.active a {
  color: var(--color-gold-light);
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.2);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Hero Section */
.hero {
  padding: 6rem 2rem 4rem 2rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(153, 27, 27, 0.15) 0%, transparent 70%);
  z-index: -1;
}

.hero h2 {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.hero h2 span {
  color: var(--color-gold);
  display: block;
  font-size: 1.8rem;
  font-family: var(--font-sans);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-top: 0.5rem;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold) 0%, #b8901c 100%);
  color: #000;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
  background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: var(--blur);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}

/* App Container and Section management */
main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem 2rem;
}

.section {
  display: none;
  animation: fadeIn 0.5s ease;
}

.section.active {
  display: block;
}

/* 19-Day Journey Section Layout */
.journey-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 992px) {
  .journey-layout {
    grid-template-columns: 1fr;
  }
}

/* Left panel: Timeline */
.journey-sidebar {
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  max-height: 80vh;
  overflow-y: auto;
  position: sticky;
  top: 100px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.journey-sidebar h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--color-gold);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  text-align: center;
}

.progress-bar-container {
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  height: 8px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-bar {
  background: linear-gradient(90deg, var(--color-crimson) 0%, var(--color-gold) 100%);
  width: 0%;
  height: 100%;
  border-radius: 10px;
  transition: width 0.5s ease;
}

.progress-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: -1rem;
  margin-bottom: 1.5rem;
  display: block;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.timeline-node {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.timeline-node:hover {
  background: rgba(212, 175, 55, 0.04);
  border-color: rgba(212, 175, 55, 0.15);
}

.timeline-node.active {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--color-gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

.node-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--text-muted);
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: var(--transition);
}

.timeline-node.active .node-number {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: #000;
}

.timeline-node.completed .node-number {
  background: var(--color-crimson);
  border-color: var(--color-crimson);
  color: #fff;
}

.node-info {
  flex-grow: 1;
  min-width: 0;
}

.node-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.node-country {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.timeline-node.completed .node-title {
  color: var(--text-secondary);
  text-decoration: line-through;
  text-decoration-color: rgba(212, 175, 55, 0.3);
}

/* Right panel: Content Viewer */
.journey-content {
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  min-height: 60vh;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
}

.country-transition {
  font-style: italic;
  color: var(--color-gold-light);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  border-left: 3px solid var(--color-gold);
  padding-left: 1rem;
  line-height: 1.5;
}

.day-header {
  margin-bottom: 2rem;
}

.day-number-label {
  font-size: 0.85rem;
  color: var(--color-crimson-light);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}

.day-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 1rem;
}

.day-quote {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--color-gold-light);
  font-style: italic;
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgba(212, 175, 55, 0.03);
  border-radius: 8px;
  border-top: 1px solid rgba(212, 175, 55, 0.08);
  border-bottom: 1px solid rgba(212, 175, 55, 0.08);
  text-align: center;
}

.day-body {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  text-align: justify;
}

.day-body p {
  text-indent: 1.5rem;
}

/* Image Showcase Grid */
.image-showcase {
  margin: 2.5rem 0;
}

.image-showcase h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-gold);
  margin-bottom: 1rem;
  text-align: center;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.image-card {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.image-card:hover {
  border-color: var(--color-gold);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.image-card:hover img {
  transform: scale(1.1);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

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

.image-overlay span {
  color: #fff;
  font-size: 1.5rem;
  filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
}

.day-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  margin-top: 2rem;
}

.hashtags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.8rem;
  color: var(--color-gold-light);
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.navigation-buttons {
  display: flex;
  gap: 1rem;
}

/* Checkbox Button styles */
.read-checkbox-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--color-gold);
  background: transparent;
  color: var(--color-gold);
  cursor: pointer;
  transition: var(--transition);
}

.read-checkbox-btn:hover {
  background: rgba(212, 175, 55, 0.1);
}

.read-checkbox-btn.is-read {
  background: var(--color-gold);
  color: #000;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* Exhibition Section Layout */
.exhibition-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.search-wrapper {
  position: relative;
  flex-grow: 1;
  max-width: 450px;
}

.search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 0.8rem 1.2rem 0.8rem 2.8rem;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.filter-tabs {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  padding: 4px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
}

.filter-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-tab:hover {
  color: #fff;
}

.filter-tab.active {
  background: var(--color-crimson);
  color: #fff;
}

/* Exhibition Grid */
.exhibition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.exhibition-card {
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 320px;
}

.exhibition-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.card-image-wrapper {
  position: relative;
  height: 160px;
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.card-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.exhibition-card:hover .card-thumbnail {
  transform: scale(1.08);
}

.card-content-wrapper {
  padding: 1.2rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.card-header h4 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.badge-country {
  background: rgba(7, 9, 14, 0.85);
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  backdrop-filter: blur(4px);
}

.badge-thematic {
  background: rgba(7, 9, 14, 0.85);
  color: var(--color-crimson-light);
  border: 1px solid var(--color-crimson-light);
  backdrop-filter: blur(4px);
}

.badge-general {
  background: rgba(7, 9, 14, 0.85);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(4px);
}

.card-body {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

.pdf-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-card-action {
  background: transparent;
  border: none;
  color: var(--color-gold);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-card-action:hover {
  color: var(--color-gold-light);
  transform: translateX(3px);
}

/* Detail view / Overlay Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 6, 10, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-container {
  background: #0d121f;
  border: 1px solid var(--border-color);
  width: 90%;
  max-width: 1000px;
  height: 85%;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.active .modal-container {
  transform: scale(1);
}

.modal-header {
  padding: 1.2rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(18, 25, 41, 0.5);
}

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: #fff;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--color-crimson-light);
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  gap: 2rem;
}

@media (max-width: 768px) {
  .modal-body {
    flex-direction: column;
  }
}

.modal-sidebar {
  width: 250px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (max-width: 768px) {
  .modal-sidebar {
    width: 100%;
  }
}

.pdf-list-item {
  padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.pdf-list-item:hover, .pdf-list-item.active {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--color-gold);
  color: var(--color-gold-light);
}

.modal-content-area {
  flex-grow: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pdf-viewer-frame {
  width: 100%;
  height: 100%;
  min-height: 450px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: #202124;
}

/* Lightbox styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 85%;
  max-height: 85%;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border: 2px solid var(--color-gold);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-nav:hover {
  background: rgba(212, 175, 55, 0.2);
  color: var(--color-gold-light);
  border-color: var(--color-gold);
}

.lightbox-prev {
  left: -70px;
}

.lightbox-next {
  right: -70px;
}

@media (max-width: 768px) {
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

/* Carlo Acutis Section Styles */
.carlo-section {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3.5rem 3rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.carlo-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .carlo-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

.carlo-avatar-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--color-gold);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
}

.carlo-avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carlo-content h3 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.carlo-title {
  color: var(--color-gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: block;
}

.carlo-quote {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--color-gold-light);
  line-height: 1.4;
  margin-bottom: 2rem;
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid var(--color-gold);
}

.carlo-bio {
  color: var(--text-secondary);
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Footer Section */
footer {
  text-align: center;
  padding: 4rem 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 5rem;
  background: rgba(4, 6, 10, 0.5);
}

footer a {
  color: var(--color-gold);
  text-decoration: none;
}

footer a:hover {
  color: var(--color-gold-light);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.6)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3)); }
}

/* --- Interactive World Map Styles --- */
#world-map-container {
  background: #eef2f7 !important; /* Đảm bảo nền sáng phủ nhận mọi khai báo inline */
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: var(--transition);
  overflow: hidden; /* Cắt phần bản đồ tràn ra ngoài khi zoom lớn */
}

/* Nút bấm zoom phóng to/thu nhỏ trên bản đồ */
.map-controls {
  position: absolute;
  top: 2.5rem;
  left: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 20;
}

.map-btn {
  width: 38px;
  height: 38px;
  background: rgba(13, 18, 31, 0.85);
  border: 1px solid var(--color-gold);
  color: var(--color-gold-light);
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  transition: var(--transition);
  user-select: none;
}

.map-btn:hover {
  background: var(--color-gold);
  color: #000;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}

.map-btn:active {
  transform: scale(0.92);
}

#world-map-container svg {
  width: 100%;
  height: auto;
  max-height: 550px;
  display: block;
}

#world-map-container svg path {
  fill: var(--country-color, #e0e0e0);
  fill-opacity: 0.55; /* Làm mờ các nước thường để tôn lên nước có Phép Lạ */
  stroke: rgba(0, 0, 0, 0.2); /* Đường viền nước mỏng nhẹ */
  stroke-width: 0.6px;
  transition: all 0.25s ease;
  cursor: default;
}

/* Hiệu ứng di chuột giữa các quốc gia bình thường */
#world-map-container svg path:not(.highlighted-country):hover {
  fill-opacity: 0.9;
  stroke: rgba(0, 0, 0, 0.6);
  stroke-width: 1px;
}

/* Các nước có Phép lạ Thánh thể nổi bật lên */
#world-map-container svg path.highlighted-country {
  fill: var(--country-color);
  fill-opacity: 1; /* Hiện rõ 100% màu sắc */
  stroke: var(--color-gold); /* Viền màu vàng nổi bật */
  stroke-width: 1.5px;
  cursor: pointer;
  filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.65));
  animation: mapPulse 3s infinite ease-in-out;
}

/* Hiệu ứng hover cho nước có Phép Lạ */
#world-map-container svg path.highlighted-country:hover {
  animation: none; /* Dừng xung động khi rê chuột */
  fill: var(--color-gold); /* Chuyển hoàn toàn sang màu vàng kim */
  fill-opacity: 1;
  stroke: var(--color-gold-light);
  stroke-width: 2px;
  filter: drop-shadow(0 0 15px rgba(212, 175, 55, 1));
}

/* La Bàn Hàng Hải (Compass Rose) định vị góc dưới phải */
.map-compass {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 80px;
  height: 80px;
  opacity: 0.75;
  pointer-events: none;
  z-index: 10;
  transition: var(--transition);
}

@media (max-width: 576px) {
  .map-compass {
    display: none; /* Ẩn đi trên điện thoại nhỏ để tránh che mất các nước */
  }
}

/* Hoạt ảnh xung động phát sáng của nước có Phép Lạ */
@keyframes mapPulse {
  0% {
    filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.5));
    stroke-width: 1.2px;
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.95));
    stroke-width: 1.8px;
  }
  100% {
    filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.5));
    stroke-width: 1.2px;
  }
}

/* Tooltip hiển thị thông tin khi rê chuột trên bản đồ */
.map-tooltip {
  position: absolute;
  display: none;
  background: rgba(13, 18, 31, 0.95);
  border: 1px solid var(--color-gold);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  z-index: 10000;
  pointer-events: none;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.6);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.map-tooltip strong {
  color: var(--color-gold-light);
  display: block;
  font-family: var(--font-serif);
  font-size: 1rem;
  margin-bottom: 2px;
}

.map-tooltip span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Thanh hành động cho tài liệu PDF giúp xem thoải mái hơn */
.pdf-actions-toolbar {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
  z-index: 5;
}

.btn-pdf-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.7rem 1.6rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.btn-pdf-open {
  background: linear-gradient(135deg, var(--color-gold) 0%, #b8901c 100%);
  color: #000;
  border: none;
}

.btn-pdf-open:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
  background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
}

.btn-pdf-download {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.btn-pdf-download:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-2px);
}

/* =============================================
   FIX 1: Sao rơi toàn trang (stars canvas)
   ============================================= */
#stars-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Đảm bảo header, main, footer nổi lên trên canvas */
header, main, .hero, footer {
  position: relative;
  z-index: 1;
}
/* modal và lightbox giữ nguyên position: fixed, không override */

/* =============================================
   FIX 5: Modal 2 cột mới
   ============================================= */

/* Xóa layout cũ, dùng flex 2 cột */
.modal-container {
  display: flex !important;
  flex-direction: row !important;
  max-width: 1100px !important;
  height: 88% !important;
}

/* Left panel - info + PDF list */
.modal-left-panel {
  width: 300px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #0d121f 0%, #0a0f1c 100%);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  position: relative;
}

.modal-left-panel .modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 10;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}
.modal-left-panel .modal-close:hover {
  color: var(--color-crimson-light);
  border-color: var(--color-crimson-light);
}

/* Cover image */
.modal-cover {
  width: 100%;
  height: 180px;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}
.modal-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.modal-left-panel:hover .modal-cover img {
  transform: scale(1.04);
}
.modal-cover-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, #0d121f, transparent);
}

/* Badge giáo hội */
.modal-church-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.9rem 1.2rem 0.4rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 20px;
  background: rgba(212, 175, 55, 0.08);
  color: var(--color-gold-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  align-self: flex-start;
}
.badge-check {
  font-size: 0.85rem;
  color: var(--color-gold);
}

/* Title + description */
.modal-info {
  padding: 0.5rem 1.2rem 1rem;
}
.modal-info h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.modal-desc-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* PDF list — reuse existing styles, override width */
.modal-left-panel .modal-sidebar {
  width: 100% !important;
  padding: 0 1rem 1.5rem;
  gap: 0.5rem;
  flex-grow: 1;
  overflow-y: auto;
}

/* Right panel - PDF viewer */
.modal-right-panel {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  overflow: hidden;
}
.modal-right-panel .pdf-actions-toolbar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.modal-right-panel .pdf-viewer-frame {
  flex-grow: 1;
  min-height: 0;
  height: 100%;
}

/* Ẩn header cũ của modal (không còn dùng) */
.modal-header {
  display: none !important;
}
/* Ẩn modal-body cũ (chỉ có 2 panel mới) */
.modal-body {
  display: none !important;
}

/* Mobile: stack dọc */
@media (max-width: 768px) {
  .modal-container {
    flex-direction: column !important;
    height: 95% !important;
    width: 98% !important;
  }
  .modal-left-panel {
    width: 100% !important;
    max-height: 50%;
    flex-shrink: 0;
  }
  .modal-cover {
    height: 130px;
  }
  .modal-right-panel {
    padding: 1rem;
    overflow: hidden;
  }
}

/* =============================================
   FIX 6: Ping animation trên SVG map
   ============================================= */
@keyframes ping-expand {
  0%   { transform: scale(1);  opacity: 0.85; }
  100% { transform: scale(8);  opacity: 0; }
}

.ping-ring {
  fill: none;
  stroke: #d4af37;
  stroke-width: 0.7;
  transform-box: fill-box;
  transform-origin: center center;
  animation: ping-expand 2.5s ease-out infinite;
}

.ping-dot {
  fill: #d4af37;
  filter: drop-shadow(0 0 2px rgba(212,175,55,0.9));
}

/* Fix 6: Mobile responsive header navigation */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 1rem;
  }

  .logo-text h1 {
    font-size: 1.1rem;
  }

  .logo-text p {
    font-size: 0.7rem;
  }

  nav ul {
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav a {
    font-size: 0.72rem;
    padding: 0.25rem 0.55rem;
    letter-spacing: 0;
  }
}

/* Fix 6b: Nút chuyển ngày tiếp sau khi đánh dấu đã đọc */
.btn-next-day {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
  color: #000;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-next-day:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.5);
}

/* ==============================================
   FIX 7: Gradient tím-xanh huyền bí (override body)
   ============================================== */
body {
  background-color: #060810 !important;
  background-image:
    radial-gradient(ellipse at 12% 8%,  rgba(72, 28, 140, 0.18) 0%, transparent 42%),
    radial-gradient(ellipse at 88% 5%,  rgba(22, 48, 140, 0.15) 0%, transparent 42%),
    radial-gradient(ellipse at 92% 92%, rgba(153, 27, 27, 0.10) 0%, transparent 42%),
    radial-gradient(ellipse at 5%  90%, rgba(18, 52, 110, 0.13) 0%, transparent 42%) !important;
}

/* ==============================================
   FIX 8: Editorial typography – hero h2
   ============================================== */
.hero h2 {
  font-size: clamp(2.8rem, 6vw, 5rem) !important;
  font-weight: 200 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.05 !important;
}

.hero h2 strong {
  font-weight: 800;
  color: var(--color-gold);
  font-style: normal;
}

/* Trích dẫn vẫn giữ kích thước vừa */
.hero h2 span {
  font-size: clamp(0.9rem, 1.8vw, 1.2rem) !important;
  font-weight: 400 !important;
  letter-spacing: 0.12em !important;
}

/* ==============================================
   FIX 4: Parallax – hero background glow
   ============================================== */
.hero::before {
  transition: none !important;
  transform: translate(-50%, calc(-50% + var(--parallax-y, 0px))) !important;
  width: 500px !important;
  height: 500px !important;
}

/* Hero content nhẹ nhàng trôi lên khi scroll */
.hero-parallax-content {
  transition: none !important;
  transform: translateY(var(--hero-text-y, 0));
  will-change: transform;
}

/* ==============================================
   FIX 2: Masonry grid – CSS columns
   ============================================== */
.exhibition-grid {
  display: block !important;
  columns: 3 270px !important;
  column-gap: 1.5rem !important;
}

.exhibition-card {
  break-inside: avoid !important;
  margin-bottom: 1.5rem !important;
  display: block !important;        /* override flex cho columns */
  min-height: unset !important;
}

/* Image height variants for masonry visual variety */
.card-sm .card-image-wrapper { height: 130px !important; }
.card-md .card-image-wrapper { height: 190px !important; }
.card-lg .card-image-wrapper { height: 250px !important; }

/* card-content-wrapper cần block thay vì flex trong columns */
.exhibition-card .card-content-wrapper {
  display: block !important;
}
.exhibition-card .card-body {
  margin-bottom: 1rem !important;
}

/* ==============================================
   FIX 3: Vertical timeline – connector line + dots
   ============================================== */

/* Sidebar sticky + overflow */
.journey-sidebar {
  max-height: calc(100vh - 90px) !important;
  top: 80px !important;
}

/* Vertical line */
.timeline-list {
  position: relative !important;
  padding-left: 2rem !important;
  gap: 0 !important;
}
.timeline-list::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(to bottom,
    rgba(212, 175, 55, 0.55) 0%,
    rgba(212, 175, 55, 0.2) 65%,
    transparent 100%);
  border-radius: 2px;
}

/* Node: strip box styling, use dot pseudo-element */
.timeline-node {
  position: relative !important;
  padding: 0.5rem 0.4rem 0.5rem 0 !important;
  border: none !important;
  border-radius: 6px !important;
  background: transparent !important;
  box-shadow: none !important;
}

.timeline-node::before {
  content: '';
  position: absolute;
  left: -1.52rem;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #111827;
  border: 2px solid var(--text-muted);
  transition: var(--transition);
  z-index: 1;
}
.timeline-node:hover::before {
  border-color: rgba(212, 175, 55, 0.6);
}
.timeline-node.active {
  background: rgba(212, 175, 55, 0.07) !important;
}
.timeline-node.active::before {
  width: 13px;
  height: 13px;
  left: -1.62rem;
  background: var(--color-gold);
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2), 0 0 10px rgba(212, 175, 55, 0.5);
}
.timeline-node.completed::before {
  background: var(--color-crimson);
  border-color: var(--color-crimson);
}

/* Node number: compact */
.node-number {
  width: 22px !important;
  height: 22px !important;
  font-size: 0.72rem !important;
  flex-shrink: 0;
}


/* =====================================================================
   v2 - Trau chuot giao dien: header gon, trang chu co loi chao, luoi the dong deu,
   anh dai dien that tu tai lieu, de doc hon tren dien thoai.
   ===================================================================== */

/* ---- Header: khong cho chu bi xuong dong, nut ve TTMV ro rang ---- */
header { gap: 1rem; padding: 0.75rem 1.5rem; }
.logo { flex-shrink: 0; min-width: 0; }
.logo-icon { width: 44px; height: 44px; display: grid; place-items: center; font-size: 0; animation: none; }
.logo-icon svg { filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.45)); }
.logo-text p { font-size: 0.68rem; letter-spacing: 0.14em; }
nav { min-width: 0; }
nav ul { align-items: center; gap: 0.25rem; flex-wrap: nowrap; }
nav a {
  white-space: nowrap;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
}
nav li.active a { background: rgba(212, 175, 55, 0.14); border-color: rgba(212, 175, 55, 0.35); color: var(--color-gold-light); }
nav li.nav-back-sys { margin-left: 0.5rem; padding-left: 0.75rem; border-left: 1px solid var(--border-color); }
nav li.nav-back-sys a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  text-transform: none;
  letter-spacing: 0.02em;
}
nav li.nav-back-sys a img { width: 20px; height: 20px; border-radius: 50%; background: #fff; object-fit: contain; }
nav li.nav-back-sys a:hover { background: rgba(212, 175, 55, 0.16); border-color: rgba(212, 175, 55, 0.4); }

a:focus-visible, button:focus-visible, input:focus-visible, .timeline-node:focus-visible {
  outline: 2px solid var(--color-gold-light);
  outline-offset: 2px;
}

@media (max-width: 1100px) {
  header { flex-wrap: wrap; justify-content: center; }
  nav { width: 100%; overflow-x: auto; scrollbar-width: none; }
  nav::-webkit-scrollbar { display: none; }
  nav ul { justify-content: flex-start; width: max-content; margin: 0 auto; }
}
@media (max-width: 768px) {
  header { flex-direction: row; padding: 0.6rem 0.9rem; gap: 0.5rem; }
  nav ul { flex-wrap: nowrap !important; justify-content: flex-start !important; gap: 0.2rem; }
  nav a { font-size: 0.72rem !important; padding: 0.4rem 0.7rem !important; letter-spacing: 0.02em !important; }
  nav li.nav-back-sys { order: -1; margin: 0 0.25rem 0 0; padding: 0 0.5rem 0 0; border-left: 0; border-right: 1px solid var(--border-color); }
}
.btn, .btn-card-action, .filter-tab { font-family: var(--font-sans); }

/* ---- Trang chu: loi chao + so lieu ---- */
.home-hero {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 3.5rem;
  padding: 1.5rem 0 0.5rem;
}
.home-eyebrow {
  color: var(--color-gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.home-hero h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  font-weight: 700;
  line-height: 1.04;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
}
.home-hero h2 span { color: var(--color-gold); font-style: italic; font-weight: 600; }
.home-lead {
  max-width: 640px;
  margin: 1.25rem auto 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  text-wrap: pretty;
}
.home-actions { display: flex; justify-content: center; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.9rem; }
.home-actions .btn { padding: 0.85rem 1.7rem; }
.home-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 2.6rem auto 0;
  max-width: 760px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: rgba(13, 18, 31, 0.55);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  overflow: hidden;
}
.home-stats li { padding: 1.1rem 0.5rem; display: flex; flex-direction: column; gap: 0.2rem; }
.home-stats li + li { border-left: 1px solid var(--border-color); }
.home-stats strong {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--color-gold-light);
  font-variant-numeric: tabular-nums;
}
.home-stats span { font-size: 0.74rem; color: var(--text-secondary); letter-spacing: 0.04em; }
@media (max-width: 640px) {
  .home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-stats li:nth-child(3) { border-left: 0; }
  .home-stats li:nth-child(n + 3) { border-top: 1px solid var(--border-color); }
  .home-actions .btn { width: 100%; }
}

/* ---- The: luoi deu, anh tai lieu ty le 16:10 ---- */
.exhibition-grid {
  display: grid !important;
  columns: auto !important;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)) !important;
  gap: 1.5rem !important;
  align-items: stretch;
}
.exhibition-card {
  display: flex !important;
  flex-direction: column;
  margin-bottom: 0 !important;
  border-radius: 14px;
}
.exhibition-card .card-content-wrapper { display: flex !important; flex-direction: column; flex: 1; }
.card-sm .card-image-wrapper,
.card-md .card-image-wrapper,
.card-lg .card-image-wrapper,
.card-image-wrapper { height: auto !important; aspect-ratio: 16 / 10; background: #0b0f1a; }
.card-thumbnail { object-position: top center; }
.exhibition-card:hover .card-thumbnail { transform: scale(1.04); }
.card-header h4 { font-size: 1.25rem; line-height: 1.25; }
.card-body { font-size: 0.88rem; line-height: 1.6; }
.btn-card-action { white-space: nowrap; }

/* ---- Ban do va phan Carlo ---- */
.map-wrapper { border-radius: 14px; }
.carlo-layout { gap: 2.5rem; }

/* ---- Chu de doc va thanh cuon dep hon ---- */
.journey-content p, .carlo-bio p { text-wrap: pretty; }
html { scroll-padding-top: 6rem; }

/* ---- Khong chuyen dong thi tat hieu ung ---- */
@media (prefers-reduced-motion: reduce) {
  #stars-canvas { display: none; }
  .logo-icon, .ping-ring { animation: none !important; }
  .section { animation: none; }
  .exhibition-card, .exhibition-card:hover, .card-thumbnail { transition: none; transform: none !important; }
}