:root {
  --primary: #ff0000;
  --primary-dark: #964141;
  --accent: #f59e0b;
  --text: #1f2937;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e5e7eb;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Be Vietnam Pro", system-ui, -apple-system, Segoe UI,
    Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Be Vietnam Pro", system-ui, -apple-system, Segoe UI,
    Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

/* Navbar */
.navbar {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: saturate(180%) blur(10px);
}
.navbar .nav-link {
  font-weight: 500;
}
.navbar .nav-link.active,
.navbar .nav-link:hover {
  color: var(--primary) !important;
}
.navbar .btn-cta {
  background: var(--accent);
  color: #111827;
  border: none;
}
.navbar .btn-cta:hover {
  background: #f59e0bcc;
}

/* Hero - Now using Tailwind CSS classes in HTML */
/* Hero image scroll for mobile */
.hero-image-scroll {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.hero-image-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.hero-image-scroll img {
  scroll-snap-align: center;
}

@media (min-width: 768px) {
  .hero-image-scroll {
    overflow-x: visible;
    scroll-snap-type: none;
  }
}

/* Sections */
.section {
  padding: 5rem 0;
}
.section-title {
  font-weight: 800;
  margin-bottom: 1rem;
}
.section-subtitle {
  color: var(--muted);
  margin-bottom: 2rem;
}

/* Benefits cards */
.benefit-card {
  transition: transform 200ms ease, box-shadow 200ms ease;
  border: 1px solid var(--border);
}
.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}
.benefit-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(13, 110, 253, 0.08);
  color: var(--primary);
}

/* Org structure tabs */
.org-wrapper {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  overflow: hidden;
}
.org-list {
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
}
.org-tab-btn {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--text);
  transition: background-color 160ms ease, color 160ms ease;
}
.org-tab-btn:hover {
  background: #eef2ff;
}
.org-tab-btn.active {
  color: var(--primary);
  background: #eef6ff;
}
.org-content {
  position: relative;
  min-height: 320px;
}
.org-panel {
  display: none;
}
.org-panel.active {
  display: block;
}
.fade-in {
  animation: fadeIn 280ms ease forwards;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hoat dong page */
.activity-section {
  margin-bottom: 4rem;
}
.activity-gallery img {
  border-radius: 12px;
  transition: transform 200ms ease, box-shadow 200ms ease;
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.activity-gallery img:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
}

/* Activity cards */
.activity-card img {
  height: 180px;
  object-fit: cover;
}
.activity-card {
  transition: transform 200ms ease, box-shadow 200ms ease;
  border-radius: 12px;
  overflow: hidden;
}
.activity-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

/* Event feature section */
.event-feature-card img {
  transition: transform 300ms ease;
}
.event-feature-card img:hover {
  transform: scale(1.02);
}
.event-stats {
  padding: 1.5rem;
  background: var(--bg-alt);
  border-radius: 12px;
}

/* Competition cards */
.competition-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 250ms ease, box-shadow 250ms ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.competition-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}
.competition-image {
  position: relative;
  overflow: hidden;
  height: 240px;
}
.competition-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}
.competition-card:hover .competition-image img {
  transform: scale(1.05);
}
.competition-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
}
.competition-content {
  padding: 1.5rem;
}

/* Events timeline */
.timeline {
  position: relative;
  margin-left: 1rem;
  padding-left: 2rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px #e0ecff;
}

/* Event gallery */
.event-gallery .col-md-8 img {
  height: auto;
  width: 100%;
  object-fit: cover;
}
.event-gallery .col-md-4 .col-12 img {
  height: auto;
  width: 100%;
  object-fit: cover;
}

/* Call to Action Section */
.cta-section {
  position: relative;
  padding: 6rem 0;
  background-color: var(--bg-alt);
  overflow: hidden;
}
.cta-image-frame {
  max-width: 700px;
  margin: 0 auto 2rem auto;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.cta-section .container {
  z-index: 2;
}
.cta-title {
  color: var(--text);
  font-weight: 800;
  font-size: 2.75rem;
  line-height: 1.2;
}
.cta-description {
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.btn-cta-large {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 250ms ease;
  box-shadow: 0 12px 32px rgba(13, 110, 253, 0.25);
}
.btn-cta-large:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(13, 110, 253, 0.3);
}

@media (max-width: 767.98px) {
  .cta-section {
    padding: 4rem 0;
  }
  .cta-title {
    font-size: 2rem;
  }
  .cta-description {
    font-size: 1rem;
  }
}

/* Utilities */
.text-muted-2 {
  color: var(--muted) !important;
}
.bg-alt {
  background: var(--bg-alt);
}

/* Responsive */
@media (max-width: 991.98px) {
  .org-list {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 767.98px) {
  .event-gallery .col-12 img {
    height: 240px;
    width: 100%;
    object-fit: cover;
  }
}



