/* Thiết lập cơ bản */
:root {
  --color-white: #ffffff;
  --color-black: #111111;
  --color-gray-dark: #333333;
  --color-gray-light: #f9f9f9;
  --color-gray-medium: #e0e0e0;
  --color-accent: #8b0000;
  
  --font-heading: 'Lora', serif;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Merriweather', serif;
}

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

body {
  font-family: var(--font-primary);
  background-color: var(--color-white);
  color: var(--color-gray-dark);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-black);
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--color-black);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  border-bottom: 1px solid var(--color-gray-medium);
  padding: 20px 0;
  text-align: center;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-black);
}

/* Hero Section */
.hero {
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-gray-dark);
  max-width: 600px;
  margin: 0 auto 30px;
  font-weight: 500;
}

/* Progress Bar */
.progress-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 30px;
  text-align: left;
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.progress-stats span:first-child {
  color: var(--color-accent);
}

.progress-bar-bg {
  width: 100%;
  height: 12px;
  background-color: var(--color-gray-medium);
  border-radius: 6px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--color-accent);
  width: 0%; /* Sẽ được update bằng JS */
  border-radius: 6px;
  transition: width 1s linear; /* Hiệu ứng thanh chạy mượt mà mỗi giây */
}

/* Counter Box */
.counter-box {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 20px;
  border-radius: 8px;
  margin: 30px auto;
  max-width: 500px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.counter-box h3 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.counter-display {
  display: flex;
  justify-content: space-around;
}

.counter-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.counter-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 5px;
}

.counter-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-gray-medium);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--color-black);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-gray-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-black);
  border-color: var(--color-black);
}

.btn-outline:hover {
  background-color: var(--color-black);
  color: var(--color-white);
}

.btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections Common */
.section-wrapper {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--color-gray-light);
  border-top: 1px solid var(--color-gray-medium);
  border-bottom: 1px solid var(--color-gray-medium);
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--color-black);
}

/* Story Section */
.story-content {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 750px;
  margin: 0 auto;
}

.story-content p:first-child::first-letter {
  font-size: 3rem;
  font-weight: 700;
  float: left;
  line-height: 1;
  padding-right: 8px;
  color: var(--color-black);
}

.highlight-box {
  background-color: var(--color-white);
  padding: 24px;
  border-left: 4px solid var(--color-black);
  margin: 30px 0;
  font-style: italic;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-black);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Timeline Section */
.timeline {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background-color: var(--color-gray-medium);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 11px;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--color-black);
  border: 4px solid var(--color-white);
  box-shadow: 0 0 0 2px var(--color-gray-medium);
}

.timeline-item:last-child .timeline-dot {
  background-color: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(139, 0, 0, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(139, 0, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(139, 0, 0, 0); }
}

.timeline-date {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-black);
  margin-bottom: 5px;
}

.timeline-content {
  font-size: 1.05rem;
  color: var(--color-gray-dark);
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

/* Demands Section */
.demand-list {
  list-style-type: none;
  max-width: 700px;
  margin: 0 auto;
}

.demand-list li {
  padding: 20px;
  border: 1px solid var(--color-gray-medium);
  margin-bottom: 16px;
  border-radius: 4px;
  display: flex;
  align-items: flex-start;
  font-weight: 500;
  font-size: 1.1rem;
  background-color: var(--color-white);
}

.demand-list li::before {
  content: '✓';
  display: inline-block;
  font-weight: bold;
  color: var(--color-black);
  margin-right: 15px;
  font-size: 1.2rem;
}

/* Footer */
footer {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 40px 0 20px;
  text-align: center;
}

.social-links {
  margin-bottom: 20px;
}

.social-links a {
  display: inline-block;
  margin: 0 10px;
  color: var(--color-white);
  font-size: 1.5rem;
}

.copyright {
  color: #999;
  font-size: 0.9rem;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #333;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .story-content {
    font-size: 1.05rem;
  }
  
  .timeline::before {
    left: 10px;
  }
  
  .timeline-item {
    padding-left: 40px;
  }
  
  .timeline-dot {
    left: 1px;
    width: 16px;
    height: 16px;
  }
}

/* Mobile Version Specific Styles */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-white);
  padding: 15px 20px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  z-index: 1000;
  display: flex;
  justify-content: center;
}

.mobile-sticky-bar .btn {
  width: 100%;
  text-align: center;
  font-size: 1.1rem;
  padding: 16px;
}

body.mobile-version {
  padding-bottom: 80px; /* Nhường chỗ cho sticky bar */
}

.mobile-version .hero {
  padding: 40px 0 20px;
}

.mobile-version .hero-content h1 {
  font-size: 2.2rem;
}

.mobile-version .counter-box {
  margin: 10px auto 20px;
  padding: 15px;
}

.mobile-version .counter-num {
  font-size: 1.8rem;
}
