/* ============================================
   CUỘC THI TRỰC TUYẾN — PORTAL STYLE
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #0055A5;
  --primary-dark: #003D7A;
  --primary-light: #1A8FD1;
  --secondary: #FFB800;
  --accent: #E8F4FD;
  --success: #28A745;
  --text-dark: #1A2B47;
  --text-muted: #6C7A8D;
  --white: #FFFFFF;
  --border: #D8E4F0;
  --gradient-hero: linear-gradient(135deg, #003D7A 0%, #0055A5 50%, #1A8FD1 100%);
}

/* --- Global Reset & Base --- */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  color: var(--text-dark);
  background: #F8FAFC;
  margin: 0;
  padding: 0;
  opacity: 0;
  animation: pageFadeIn 0.6s ease forwards;
}

@keyframes pageFadeIn {
  to {
    opacity: 1;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

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

a:hover {
  color: var(--primary-dark);
}

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

/* --- Utilities --- */
.section {
  padding: 70px 0;
}

.section-alt {
  background: var(--accent);
}

.section-title {
  font-size: 1.85rem;
  color: var(--primary);
  margin-bottom: 44px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--secondary);
  margin: 14px auto 0;
  border-radius: 2px;
}

.section-title .decorative-line {
  display: inline-block;
  width: 40px;
  height: 2px;
  background: var(--secondary);
  vertical-align: middle;
  margin: 0 14px;
}

/* --- HEADER --- */
.top-header {
  background: var(--white);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  z-index: 1050;
}

.top-header .logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
}

.top-header .header-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  line-height: 1.4;
  text-align: center;
}

.top-header .org-logos img {
  height: 48px;
  margin-left: 10px;
}

/* Main Navigation */
.main-nav {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1040;
  transition: box-shadow 0.3s;
}

.main-nav.scrolled {
  box-shadow: 0 4px 20px rgba(0, 55, 122, 0.25);
}

.main-nav .navbar {
  padding: 0;
  justify-content: center;
}

.main-nav .nav-link {
  color: rgba(255, 255, 255, 0.88) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 14px 18px !important;
  position: relative;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.2px;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
}

.main-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px 2px 0 0;
}

.main-nav .nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px 2px 0 0;
  transition: width 0.3s ease;
}

.main-nav .nav-link:hover::before {
  width: 70%;
}

.main-nav .nav-link.active::before {
  width: 0;
}

.badge-live {
  display: inline-block;
  background: var(--success);
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
  font-weight: 600;
  animation: pulse-live 2s ease-in-out infinite;
  vertical-align: middle;
}

@keyframes pulse-live {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.nav-search-btn {
  color: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 6px 12px !important;
  font-size: 0.85rem;
}

.nav-search-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff !important;
}

/* Mobile nav */
@media (max-width: 991.98px) {
  .main-nav .navbar-collapse {
    background: var(--primary-dark);
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-nav .nav-link {
    padding: 12px 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
  padding: 6px 10px;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- HERO SECTION --- */
.hero-section {
  background: var(--gradient-hero);
  background-image: url(http://timhieuphapluatgd-2025.superweb.xyz/resource/714041/assets/images/silder/hero-bg.png);
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 520px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 60px 0;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 184, 0, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(26, 143, 209, 0.12) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.hero-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  animation: heroFadeUp 0.8s ease-out;
  display: inline-block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.hero-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.85);
  animation: heroFadeUp 0.8s ease-out 0.1s both;
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.4;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.25);
  margin-bottom: 10px;
  animation: heroFadeUp 0.8s ease-out 0.2s both;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-city {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--secondary);
  margin-bottom: 28px;
  animation: heroFadeUp 0.8s ease-out 0.3s both;
}

.hero-date-chip {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  border-radius: 30px;
  padding: 8px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 32px;
  animation: heroFadeUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
  animation: heroFadeUp 0.8s ease-out 0.5s both;
}

.hero-buttons .btn {
  padding: 12px 32px;
  font-weight: 600;
  border-radius: 30px;
  font-size: 0.95rem;
  margin: 0 6px 10px;
}

.btn-hero-primary {
  background: var(--secondary);
  color: var(--text-dark);
  border: 2px solid var(--secondary);
  box-shadow: 0 4px 15px rgba(255, 184, 0, 0.35);
}

.btn-hero-primary:hover {
  background: #e6a600;
  border-color: #e6a600;
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 184, 0, 0.45);
}

.btn-hero-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 340px;
    padding: 40px 0;
  }

  .hero-title {
    font-size: 1.25rem;
  }

  .hero-city {
    font-size: 1.1rem;
  }

  .hero-subtitle {
    font-size: 0.8rem;
    letter-spacing: 2px;
  }

  .hero-icon {
    font-size: 2.5rem;
  }
}

/* --- TICKER --- */
.ticker-wrap {
  background: var(--secondary);
  color: var(--text-dark);
  overflow: hidden;
  padding: 10px 0;
  font-size: 0.88rem;
  font-weight: 500;
  position: relative;
}

.ticker-wrap::before,
.ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
}

.ticker-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--secondary), transparent);
}

.ticker-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--secondary), transparent);
}

.ticker {
  display: inline-block;
  white-space: nowrap;
  animation: ticker-scroll 35s linear infinite;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(100vw);
  }

  to {
    transform: translateX(-100%);
  }
}

.ticker span {
  margin: 0 40px;
}

/* --- STAT CARDS --- */
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 85, 165, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  height: 100%;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0, 85, 165, 0.12);
}

.stat-card .stat-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  display: block;
}

.stat-card .stat-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.stat-card .stat-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-card .stat-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --- INTRO SECTION --- */
.intro-section .video-placeholder {
  background: var(--gradient-hero);
  border-radius: 16px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
}

.intro-section .video-placeholder:hover {
  transform: scale(1.02);
}

/* .intro-section .video-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 16px;
} */

.intro-section .video-placeholder i {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.play-btn-circle {
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(4px);
  transition: transform 0.3s, background 0.3s;
}

.play-btn-circle:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.35);
}

/* --- COUNTDOWN --- */
.countdown-section {
  background: var(--gradient-hero);
  padding: 50px 0;
  color: #fff;
  text-align: center;
}

.countdown-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.countdown-status {
  font-size: 0.9rem;
  margin-bottom: 28px;
  font-weight: 500;
}

.countdown-status .badge-status {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
}

.badge-status.ongoing {
  background: var(--success);
  color: #fff;
}

.badge-status.ended {
  background: #dc3545;
  color: #fff;
}

.badge-status.upcoming {
  background: #fd7e14;
  color: #fff;
}

.countdown-boxes {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.countdown-box {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 18px 22px;
  text-align: center;
  min-width: 90px;
}

.countdown-number {
  font-size: 2.8rem;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  color: #fff;
  line-height: 1;
  display: block;
  transition: transform 0.3s;
}

.countdown-number.flip {
  animation: flipNum 0.4s ease;
}

@keyframes flipNum {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15) translateY(-4px);
  }

  100% {
    transform: scale(1);
  }
}

.countdown-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 1px;
  margin-top: 8px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .countdown-number {
    font-size: 2rem;
  }

  .countdown-box {
    min-width: 70px;
    padding: 14px 16px;
  }
}

/* --- PRIZE CARDS --- */
.prize-section {
  background-image: linear-gradient(135deg, rgba(0, 61, 122, 0.75) 0%, rgba(0, 20, 50, 0.77) 100%), url('https://images.unsplash.com/photo-1513151233558-d860c5398176?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.prize-section .section-title {
  color: #fff !important;
}

.prize-section .section-title::after {
  background: var(--secondary) !important;
}

.prize-section .section-title .decorative-line {
  background: var(--secondary) !important;
}

.prize-section .nav-pills .nav-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 30px;
  padding: 10px 28px;
  margin: 0 6px;
  transition: all 0.3s;
  backdrop-filter: blur(5px);
}

.prize-section .nav-pills .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

.prize-section .nav-pills .nav-link.active {
  background: var(--secondary) !important;
  color: var(--text-dark) !important;
  border-color: var(--secondary) !important;
  box-shadow: 0 4px 15px rgba(255, 184, 0, 0.4);
}

.prize-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  position: relative;
  overflow: hidden;
  color: var(--text-dark);
}

.prize-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 85, 165, 0.14);
}

.prize-card .prize-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
  display: block;
}

.prize-card .prize-rank {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.prize-card .prize-amount {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.prize-card .prize-desc {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.prize-card .prize-qty {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 14px;
}

/* Gold */
.prize-card-gold {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #fff;
  transform: scale(1.05);
  border: none;
  box-shadow: 0 8px 30px rgba(255, 184, 0, 0.35);
}

.prize-card-gold .prize-amount {
  color: #fff;
}

.prize-card-gold .prize-desc {
  color: rgba(255, 255, 255, 0.85);
}

.prize-card-gold .prize-qty {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.prize-card-gold:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 40px rgba(255, 184, 0, 0.45);
}

/* Shimmer effect on gold */
.prize-card-gold::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent 30%,
      rgba(255, 255, 255, 0.15) 50%,
      transparent 70%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) rotate(0deg);
  }

  100% {
    transform: translateX(100%) rotate(0deg);
  }
}

/* Silver */
.prize-card-silver {
  border-top: 4px solid #C0C0C0;
}

/* Bronze */
.prize-card-bronze {
  border-top: 4px solid #CD7F32;
}

/* Encourage */
.prize-card-encourage {
  border-top: 4px solid var(--text-muted);
}

/* --- STEPS --- */
.steps-section .step-item {
  text-align: center;
  padding: 0 10px;
}

.step-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  font-family: 'Montserrat', sans-serif;
  margin: 0 auto 14px;
  box-shadow: 0 4px 15px rgba(0, 85, 165, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.step-item:hover .step-circle {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 85, 165, 0.4);
}

.step-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.step-connector {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin-top: 28px;
  position: relative;
}

.step-connector::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--primary-light);
  border-right: 2px solid var(--primary-light);
  transform: rotate(45deg);
}

@media (max-width: 768px) {
  .step-connector {
    display: none;
  }

  .steps-section .step-item {
    margin-bottom: 24px;
  }
}

/* --- NEWS CARDS --- */
.news-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 85, 165, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0, 85, 165, 0.12);
}

.news-card .news-thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 3rem;
  position: relative;
}

.news-card .news-thumb .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
}

.news-card .news-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card .news-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
  line-height: 1.5;
}

.news-card .news-title:hover {
  color: var(--primary);
}

.news-card .news-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.6;
  flex: 1;
}

.news-card .news-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-card .read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.news-card .read-more:hover {
  color: var(--primary-dark);
}

/* --- REFERENCE / ACCORDION --- */
.ref-accordion .accordion-button {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
  background: var(--white);
  border-radius: 10px !important;
}

.ref-accordion .accordion-button:not(.collapsed) {
  background: var(--accent);
  color: var(--primary);
  box-shadow: none;
}

.ref-accordion .accordion-item {
  border: 1px solid var(--border);
  border-radius: 10px !important;
  margin-bottom: 10px;
  overflow: hidden;
}

.ref-accordion .accordion-body {
  padding: 16px 20px;
}

.ref-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.ref-item:last-child {
  border-bottom: none;
}

.ref-item .ref-name {
  font-size: 0.9rem;
  flex: 1;
  min-width: 0;
}

.ref-item .btn-download {
  font-size: 0.78rem;
  padding: 4px 14px;
  border-radius: 20px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* --- ORG CARDS --- */
.org-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px 20px;
  text-align: center;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 85, 165, 0.06);
  transition: transform 0.25s;
  height: 100%;
}

.org-card:hover {
  transform: translateY(-4px);
}

.org-card .org-logo-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 2rem;
  color: var(--primary);
}

.org-card .org-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.org-card .org-role {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --- FOOTER --- */
.main-footer {
  background: var(--gradient-hero);
  color: rgba(255, 255, 255, 0.9);
  padding: 50px 0 0;
}

.main-footer h5 {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.main-footer p,
.main-footer li {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.main-footer a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s;
}

.main-footer a:hover {
  color: var(--secondary);
}

.main-footer .footer-icon {
  color: var(--secondary);
  width: 20px;
  text-align: center;
  margin-right: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 18px 0;
  margin-top: 36px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
  color: var(--secondary);
  font-weight: 600;
}

/* --- BREADCRUMB --- */
.breadcrumb-wrapper {
  background: var(--accent);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  margin-bottom: 0;
  font-size: 0.85rem;
}

.breadcrumb-item a {
  color: var(--primary);
}

.breadcrumb-item.active {
  color: var(--text-muted);
}

/* --- PAGE HEADER --- */
.page-header {
  background: linear-gradient(135deg, var(--accent) 0%, #d0e8f5 100%);
  padding: 40px 0;
  margin-bottom: 0;
}

.page-header h1 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- ARTICLE LIST --- */
.sidebar-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 85, 165, 0.06);
  margin-bottom: 20px;
}

.sidebar-card .card-header {
  background: var(--primary);
  color: #fff;
  padding: 14px 18px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: none;
}

.sidebar-card .card-body {
  padding: 16px 18px;
}

.category-filter {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-size: 0.88rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.category-filter:hover {
  background: var(--accent);
}

.category-filter.active {
  background: var(--primary);
  color: #fff;
}

.category-filter .cat-icon {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

.category-filter .cat-count {
  margin-left: auto;
  font-size: 0.78rem;
  background: var(--accent);
  color: var(--primary);
  padding: 1px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.category-filter.active .cat-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Sort bar */
.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.sort-bar .sort-options a {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-right: 16px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.sort-bar .sort-options a.active,
.sort-bar .sort-options a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.sort-bar .total-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Article item (horizontal card) */
.article-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 85, 165, 0.05);
  margin-bottom: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 85, 165, 0.1);
}

.article-item .article-thumb {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 2.5rem;
}

@media (min-width: 576px) {
  .article-item .article-thumb {
    width: 200px;
    min-width: 200px;
    height: auto;
    min-height: 140px;
  }
}

.article-item .article-body {
  padding: 18px;
  flex: 1;
}

.article-item .article-badge {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  display: inline-block;
}

.article-item .article-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.5;
  transition: color 0.2s;
}

.article-item .article-title:hover {
  color: var(--primary);
}

.article-item .article-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-item .article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.article-item .article-meta .read-more {
  margin-left: auto;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.82rem;
}

/* Featured post in sidebar */
.featured-post {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.featured-post:last-child {
  border-bottom: none;
}

.featured-post .fp-thumb {
  width: 60px;
  min-width: 60px;
  height: 48px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.featured-post .fp-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 4px;
}

.featured-post .fp-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Sidebar mini countdown */
.sidebar-countdown {
  text-align: center;
  padding: 10px 0;
}

.sidebar-countdown .days-left {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.sidebar-countdown .days-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Pagination */
.pagination .page-link {
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 8px !important;
  margin: 0 3px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.2s;
}

.pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.pagination .page-link:hover {
  background: var(--accent);
  border-color: var(--primary-light);
}

/* --- ARTICLE DETAIL --- */
.article-detail-header .article-badge {
  font-size: 0.78rem;
  padding: 4px 14px;
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 14px;
  display: inline-block;
}

.article-detail-header h1 {
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.article-detail-meta {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.article-cover {
  width: 100%;
  height: 320px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  border-radius: 14px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.article-cover .cover-text {
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  z-index: 1;
}

.article-content {
  line-height: 1.95;
  font-size: 1.02rem;
}

.article-content .lead {
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--primary-dark);
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
  margin-bottom: 26px;
  line-height: 1.8;
}

.article-content p {
  margin-bottom: 16px;
}

.article-content blockquote {
  border-left: 4px solid var(--primary);
  background: var(--accent);
  padding: 18px 22px;
  border-radius: 0 10px 10px 0;
  font-style: italic;
  margin: 28px 0;
  position: relative;
}

.article-content blockquote::before {
  content: '\201C';
  font-size: 3.5rem;
  color: var(--primary-light);
  position: absolute;
  top: -8px;
  left: 14px;
  opacity: 0.3;
  font-family: serif;
}

.article-content blockquote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.88rem;
}

.article-content h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin: 30px 0 14px;
}

.article-content ul,
.article-content ol {
  margin-bottom: 16px;
  padding-left: 20px;
}

.article-content li {
  margin-bottom: 6px;
}

/* Social share */
.social-share {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 30px 0;
}

.social-share .share-label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-right: 8px;
}

.social-share .btn-share {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.social-share .btn-share:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-share-fb {
  background: #1877F2;
  color: #fff;
  border: none;
}

.btn-share-tw {
  background: #1DA1F2;
  color: #fff;
  border: none;
}

.btn-share-copy {
  background: var(--accent);
  color: var(--primary);
  border: 1px solid var(--border);
}

/* Tags */
.article-tags {
  margin-bottom: 20px;
}

.article-tags .tag {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  margin: 3px 4px;
  transition: background 0.2s;
}

.article-tags .tag:hover {
  background: var(--primary);
  color: #fff;
}

/* Nav between articles */
.article-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  gap: 16px;
  flex-wrap: wrap;
}

.article-nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: background 0.2s;
  max-width: 48%;
}

.article-nav a:hover {
  background: var(--accent);
}

.article-nav .nav-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  display: block;
  margin-bottom: 4px;
}

/* Sidebar CTA */
.sidebar-cta {
  background: var(--gradient-hero);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  color: #fff;
  margin-bottom: 20px;
}

.sidebar-cta h5 {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  margin-bottom: 14px;
}

.sidebar-cta .cta-countdown {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.85);
}

.sidebar-cta .btn-cta {
  background: var(--secondary);
  color: var(--text-dark);
  border: none;
  border-radius: 30px;
  padding: 10px 28px;
  font-weight: 700;
  font-size: 0.9rem;
  display: block;
  width: 100%;
  margin-bottom: 14px;
  transition: background 0.2s, transform 0.2s;
}

.sidebar-cta .btn-cta:hover {
  background: #e6a600;
  transform: translateY(-2px);
}

.sidebar-cta .qr-placeholder {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  border: 1px dashed rgba(255, 255, 255, 0.25);
}

/* Related posts sidebar */
.related-post {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.related-post:last-child {
  border-bottom: none;
}

.related-post .rp-thumb {
  width: 70px;
  min-width: 70px;
  height: 55px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.related-post .rp-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 4px;
}

.related-post .rp-title:hover {
  color: var(--primary);
}

.related-post .rp-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Sidebar category list */
.sidebar-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-cat-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
}

.sidebar-cat-list li:last-child {
  border-bottom: none;
}

.sidebar-cat-list li a {
  font-size: 0.88rem;
  color: var(--text-dark);
}

.sidebar-cat-list li a:hover {
  color: var(--primary);
}

.sidebar-cat-list li .count {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --- SCROLL ANIMATIONS --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Delay classes */
.anim-delay-1 {
  transition-delay: 0.1s;
}

.anim-delay-2 {
  transition-delay: 0.2s;
}

.anim-delay-3 {
  transition-delay: 0.3s;
}

.anim-delay-4 {
  transition-delay: 0.4s;
}

/* --- SEARCH INPUT --- */
.search-input-group .form-control {
  border-radius: 8px 0 0 8px;
  border: 1px solid var(--border);
  padding: 10px 14px;
  font-size: 0.88rem;
}

.search-input-group .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 85, 165, 0.1);
}

.search-input-group .btn {
  border-radius: 0 8px 8px 0;
  padding: 10px 16px;
}

/* --- TABLE (article detail) --- */
.article-content .table {
  font-size: 0.9rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.article-content .table thead th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  border: none;
  padding: 12px 14px;
}

.article-content .table tbody td {
  padding: 10px 14px;
  vertical-align: middle;
  border-color: var(--border);
}

.article-content .table tbody tr:hover {
  background: var(--accent);
}

/* --- Back to top --- */
.btn-back-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 85, 165, 0.3);
  z-index: 1030;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}

.btn-back-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

.btn-back-top.show {
  display: flex;
}

/* --- Added Custom Styles for Portal UI Updates --- */

/* Header & Footer Logo Styles */
.header-logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 250px;
}

.header-logo-img {
  height: 68px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.header-logo-img:hover {
  transform: scale(1.05);
}

.header-logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.3;
}

.footer-logo-icon {
  height: 28px;
  width: 28px;
  object-fit: contain;
  margin-right: 8px;
  vertical-align: middle;
  background: var(--white);
  border-radius: 50%;
  padding: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 61, 122, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  visibility: hidden;
}

.search-overlay.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.search-close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  background: none;
  border: none;
  color: #fff;
  font-size: 3.5rem;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s, color 0.2s;
}

.search-close-btn:hover {
  transform: scale(1.1);
  color: var(--secondary);
}

.search-overlay-content {
  width: 100%;
  max-width: 600px;
  text-align: center;
}

.search-overlay-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 3px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 2.2rem;
  font-weight: 600;
  text-align: center;
  padding: 10px 0;
  outline: none;
  transition: border-color 0.3s;
}

.search-overlay-input:focus {
  border-color: var(--secondary);
}

.search-overlay-hint {
  color: rgba(255, 255, 255, 0.5);
  margin-top: 15px;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

/* Hero Section Dynamic Button & Image */
.hero-image-wrap {
  display: inline-block;
  margin-bottom: 24px;
}

.hero-real-img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-real-img:hover {
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.btn-hero-waiting {
  background: var(--secondary) !important;
  border-color: var(--secondary) !important;
  color: var(--text-dark) !important;
  font-weight: 700 !important;
  cursor: not-allowed;
  box-shadow: 0 4px 15px rgba(255, 184, 0, 0.45) !important;
}

.btn-hero-ended {
  background: #dc3545 !important;
  border-color: #dc3545 !important;
  color: #fff !important;
  cursor: not-allowed;
  box-shadow: none !important;
}

/* Video Placeholder Image Background */
.intro-section .video-placeholder {
  min-height: 340px !important;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

/* Countdown Fixed Background */
.countdown-section {
  background-image: linear-gradient(135deg, rgba(0, 61, 122, 0.9) 0%, rgba(0, 85, 165, 0.9) 100%), url('https://cards.algoreducation.com/_next/image?url=https%3A%2F%2Ffiles.algoreducation.com%2Fproduction-ts%2F__S3__41176735-5881-4385-9ba5-d97a894d78a4&w=3840&q=75') !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;
  background-attachment: fixed !important;
}

/* Realistic Medal Images in Prize Section */
.prize-img-real {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: block;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.18);
  border: 3px solid rgba(255, 255, 255, 0.85);
  background: var(--white);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.prize-img-silver {
  filter: grayscale(100%) brightness(1.2) contrast(1.1);
}

.prize-img-bronze {
  filter: sepia(80%) saturate(220%) brightness(0.65) contrast(1.2) hue-rotate(-10deg);
}

.prize-img-encourage {
  filter: hue-rotate(222deg) saturate(220%) brightness(0.85);
}

.prize-card:hover .prize-img-real {
  transform: scale(1.1) rotate(5deg);
  border-color: var(--secondary);
}

/* News Image Thumbnails */
.news-card .news-thumb {
  height: 180px;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  position: relative;
}

/* References styling */
.ref-name-link {
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.2s ease;
  text-decoration: none;
}

.ref-name-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* --- Responsive Adjustments --- */
@media (max-width: 991.98px) {
  .top-header .org-logos {
    display: none;
  }

  .sidebar-cta {
    position: static !important;
  }

  /* 3 logos on one row for tablet */
  .top-header .container>div {
    flex-wrap: nowrap !important;
    gap: 8px !important;
  }

  .header-logo-wrapper {
    min-width: 0 !important;
    flex: 1;
    gap: 4px;
  }

  .header-logo-img {
    height: 48px;
  }

  .header-logo-text {
    font-size: 0.75rem;
    line-height: 1.2;
    text-align: center;
  }

  /* Toggler button padding adjustment */
  .navbar-toggler {
    padding: 10px 12px;
    margin-top: 8px;
    margin-bottom: 8px;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }

  .section-title .decorative-line {
    width: 30px;
    margin: 0 10px;
  }
}

@media (max-width: 767.98px) {
  .section {
    padding: 44px 0;
  }

  .section-title {
    font-size: 1.25rem;
    margin-bottom: 24px;
  }

  .section-title .decorative-line {
    width: 20px;
    margin: 0 8px;
  }

  .stat-card {
    margin-bottom: 16px;
  }

  .article-cover {
    height: 200px;
  }

  .article-detail-header h1 {
    font-size: 1.3rem;
  }

  .social-share {
    flex-wrap: wrap;
  }

  .article-nav a {
    max-width: 100%;
    width: 100%;
  }

  .top-header .header-title {
    font-size: 0.72rem;
  }

  /* 2 buttons on same row for mobile/tablet in intro section */
  .intro-section .d-flex.gap-3 {
    gap: 8px !important;
  }

  .intro-section .btn {
    font-size: 0.85rem;
    padding: 8px 12px;
    flex: 1;
    text-align: center;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .intro-section .btn i {
    margin-right: 4px !important;
  }
}

@media (max-width: 575.98px) {
  .top-header .logo-img {
    height: 40px;
  }

  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin: 0 0 10px;
  }

  .countdown-boxes {
    gap: 10px;
  }

  /* 3 logos on one row for mobile */
  .top-header .container>div {
    gap: 4px !important;
  }

  .header-logo-wrapper {
    min-width: 0 !important;
    gap: 4px;
    flex: 1;
  }

  .header-logo-img {
    height: 36px;
  }

  /* Section title adjustment for mobile */
  .section-title {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }

  .section-title .decorative-line {
    width: 15px;
    margin: 0 6px;
  }

  /* Intro section buttons smaller size on mobile */
  .intro-section .btn {
    font-size: 0.76rem;
    padding: 6px 8px;
  }
}

/* Extra small mobile adjustments */
@media (max-width: 400px) {
  .section-title {
    font-size: 1rem;
  }

  .section-title .decorative-line {
    width: 12px;
    margin: 0 4px;
  }
}

@media (max-width: 375px) {
  .intro-section .btn {
    font-size: 0.7rem;
    padding: 6px 4px;
  }
}

/* --- Print --- */
@media print {

  .main-nav,
  .ticker-wrap,
  .main-footer,
  .btn-back-top,
  .sidebar-cta {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .section {
    padding: 20px 0;
  }
}