/* ==========================================================================
   STADION 12 HRVATSKIH REDARSTVENIKA - VUKOVAR
   Official Landing Page Stylesheet
   ========================================================================== */

/* 1. DESIGN SYSTEM & ROOT VARIABLES */
:root {
  --primary-blue: #0055A5;
  --primary-blue-dark: #003B73;
  --primary-blue-light: #1A75D2;
  --accent-red: #FC0214;
  --accent-red-hover: #D90011;
  --accent-gold: #D4AF37;
  --dark-bg: #0D1117;
  --dark-surface: #161B22;
  --dark-text: #1A1A1A;
  --muted-text: #6C757D;
  --light-bg: #F5F7FA;
  --white: #FFFFFF;

  --bs-secondary-color: rgba(255, 255, 255, 0.75);

  /* Gradients */
  --grad-patriotic: linear-gradient(135deg, #FC0214 0%, #0055A5 100%);
  --grad-blue: linear-gradient(135deg, #0055A5 0%, #00264D 100%);
  --grad-gold: linear-gradient(135deg, #F39C12 0%, #D4AF37 100%);
  --grad-hero-overlay: linear-gradient(180deg, rgba(13, 17, 23, 0.75) 0%, rgba(13, 17, 23, 0.85) 60%, rgba(13, 17, 23, 0.95) 100%);
  --grad-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);

  /* Shadows & Radius */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 85, 165, 0.15);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.18);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 50px;

  /* Transitions */
  --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. BASE & TYPOGRAPHY */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--dark-text);
  background-color: #FFFFFF;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark-text);
}

.text-gradient {
  background: var(--grad-patriotic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-primary-blue {
  color: var(--primary-blue) !important;
}

.text-accent-red {
  color: var(--accent-red) !important;
}

.bg-light-custom {
  background-color: var(--light-bg);
}

.bg-dark-custom {
  background-color: var(--dark-bg);
  color: var(--white);
}

/* Section Title Styling */
.section-header {
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-blue);
  background: rgba(0, 85, 165, 0.08);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 85, 165, 0.15);
}

.section-title {
  font-size: 2.25rem;
  line-height: 1.25;
  font-weight: 800;
}

@media (min-width: 992px) {
  .section-title {
    font-size: 2.75rem;
  }
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--muted-text);
  max-width: 680px;
  margin: 0 auto;
}

/* 3. NAVIGATION */
.navbar-custom {
  padding: 1.2rem 0;
  transition: var(--transition-normal);
  background: transparent;
}

.navbar-custom.scrolled {
  padding: 0.75rem 0;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-badge {
  width: 42px;
  height: 42px;
  background: var(--primary-blue);
  color: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 85, 165, 0.4);
  border: 2px solid var(--accent-red);
}

.brand-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  line-height: 1.2;
}

.brand-text span {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--white) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--accent-red);
  transform: scaleX(0);
  transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
}

/* 4. BUTTONS & UI COMPONENTS */
.btn-custom {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-pill);
  transition: var(--transition-normal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn-primary-red {
  background: var(--accent-red);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(252, 2, 20, 0.35);
}

.btn-primary-red:hover {
  background: var(--accent-red-hover);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(252, 2, 20, 0.45);
}

.btn-primary-blue {
  background: var(--primary-blue);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(0, 85, 165, 0.35);
}

.btn-primary-blue:hover {
  background: var(--primary-blue-dark);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 85, 165, 0.45);
}

.btn-outline-light-custom {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.btn-outline-light-custom:hover {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.5);
}

/* 5. HERO SECTION */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dark-bg);
  padding: 8rem 0 5rem 0;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--grad-hero-overlay);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: var(--white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(252, 2, 20, 0.15);
  border: 1px solid rgba(252, 2, 20, 0.35);
  color: #FF6B6B;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-pill);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-red);
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(252, 2, 20, 0.7);
  animation: pulse 1.8s infinite;
}

.hero-video-play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0 0 1.5rem;
  border: 0;
  background: transparent;
  color: #ff0033;
  font-size: 4.5rem;
  line-height: 1;
  cursor: pointer;
  filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.45));
  animation: hero-youtube-pulse 2.4s ease-in-out infinite;
}

.hero-video-play-button:hover {
  color: #ff334f;
}

.hero-video-play-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 6px;
  border-radius: 0.5rem;
}

@keyframes hero-youtube-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.hero-video-modal .modal-content {
  background: #080808;
}

.hero-video-player {
  display: block;
  width: 100%;
  max-height: 78vh;
  background: #000;
}

@media (prefers-reduced-motion: reduce) {
  .hero-video-play-button {
    animation: none;
  }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(252, 2, 20, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(252, 2, 20, 0); }
  100% { box-shadow: 0 0 0 0 rgba(252, 2, 20, 0); }
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  color: #fff;
}

@media (min-width: 992px) {
  .hero-title {
    font-size: 4rem;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 720px;
  margin: 0 auto 2.5rem auto;
  font-weight: 400;
  line-height: 1.5;
}

/* 6. ABOUT SECTION & STATS */
.about-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-render-placeholder {
  display: flex;
  width: 100%;
  height: 300px;
  align-items: center;
  justify-content: center;
  background-color: #e9ecef;
}

@media (min-width: 992px) {
  .project-feature-row {
    align-items: stretch;
  }

  .project-feature-column {
    display: flex;
  }

  .project-feature-card,
  .project-render-frame {
    width: 100%;
    height: 100%;
  }

  .project-render-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .project-render-placeholder {
    width: 100%;
    height: 100%;
    min-height: 300px;
  }
}

.stat-box {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.2rem;
  text-align: center;
  border: 1px solid rgba(0, 85, 165, 0.1);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  height: 100%;
}

.stat-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-blue);
}

.stat-icon {
  width: 50px;
  height: 50px;
  background: rgba(0, 85, 165, 0.08);
  color: var(--primary-blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 1rem auto;
}

.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-blue);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted-text);
  line-height: 1.3;
}

/* 7. PROGRESS BAR SECTION */
.progress-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 85, 165, 0.12);
  position: relative;
  overflow: hidden;
}

.progress-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--grad-patriotic);
}

.progress-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.progress-stat-item h3 {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary-blue);
  margin-bottom: 0.2rem;
}

.progress-stat-item p {
  font-size: 0.9rem;
  color: var(--muted-text);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

/* Custom Progress Bar */
.progress-container {
  position: relative;
  height: 32px;
  background: #E9ECEF;
  border-radius: var(--radius-pill);
  padding: 4px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  margin: 1.5rem 0 1rem 0;
}

.progress-bar-fill {
  height: 100%;
  width: 0%; /* Dynamic animation */
  background: var(--grad-patriotic);
  border-radius: var(--radius-pill);
  transition: width 2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 0 15px rgba(252, 2, 20, 0.4);
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
  animation: shine 2.5s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-badge-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--dark-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 8. DONATION TIERS CARDS */
.tier-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.tier-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-blue);
}

.tier-card.featured {
  border-color: var(--accent-red);
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF5F5 100%);
}

.tier-badge {
  position: absolute;
  top: -14px;
  right: 20px;
  background: var(--accent-red);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 10px rgba(252, 2, 20, 0.3);
}

.tier-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(0, 85, 165, 0.08);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

.tier-card.featured .tier-icon-wrapper {
  background: rgba(252, 2, 20, 0.1);
  color: var(--accent-red);
}

.tier-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.tier-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.tier-card.featured .tier-price {
  color: var(--accent-red);
}

.tier-benefit {
  font-size: 0.95rem;
  color: var(--muted-text);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.tier-benefit i {
  color: #28A745;
  margin-right: 0.4rem;
}

/* 9. RECENT DONATIONS FEED */
.feed-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
  max-height: 420px;
  overflow: hidden;
  position: relative;
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.feed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--light-bg);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-blue);
  transition: var(--transition-fast);
}

.feed-item:hover {
  background: #EBF3FA;
  transform: translateX(4px);
}

.feed-item.anonymous {
  border-left-color: var(--muted-text);
}

.feed-item-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feed-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.feed-avatar.anon {
  background: #6C757D;
}

.feed-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
}

.feed-time {
  font-size: 0.8rem;
  color: var(--muted-text);
}

.feed-amount {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary-blue);
}

/* 10. DONATION FORM & BANK DETAILS */
.donation-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.amount-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.btn-amount-pill {
  background: var(--light-bg);
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 0.65rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--dark-text);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}

.btn-amount-pill:hover, .btn-amount-pill.active {
  background: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(0, 85, 165, 0.25);
}

.bank-info-box {
  background: linear-gradient(135deg, #0D1117 0%, #1A2332 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 100%;
}

.bank-info-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.bank-info-row {
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bank-info-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
}

.bank-info-val {
  font-family: 'Montserrat', monospace;
  font-weight: 700;
  font-size: 1.05rem;
  color: #FFFFFF;
  word-break: break-all;
}

.btn-copy-sm {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: var(--white);
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-copy-sm:hover {
  background: var(--accent-red);
  color: var(--white);
}

.hub3a-barcode-box {
  background: #FFFFFF;
  padding: 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  margin-top: 1.25rem;
}

.hub3a-barcode-canvas {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  margin: 1rem auto 0;
}

.payment-slip-barcode {
  display: flex;
  justify-content: start;
  margin-top: 1.25rem;
}

.payment-slip-barcode-canvas {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  margin: 0;
}

/* 11. NEWSLETTER & VUKOVAR CONTACT */
.newsletter-card {
  background: var(--grad-blue);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.newsletter-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(252, 2, 20, 0.15);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  height: 100%;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(0, 85, 165, 0.08);
  color: var(--primary-blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* 12. FOOTER */
.footer-custom {
  background: #090C10;
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-logo {
  height: 45px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-fast);
  text-decoration: none;
  margin-right: 0.5rem;
}

.social-link:hover {
  background: var(--accent-red);
  color: var(--white);
  transform: translateY(-3px);
}

/* 13. ANIMATIONS & SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Modal Customization */
.modal-content-custom {
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.modal-header-custom {
  background: var(--primary-blue);
  color: var(--white);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
}

/* 14. WORDPRESS CONTENT TEMPLATES */
body:not(.home) .navbar-custom {
  padding: 0.75rem 0;
  background: rgba(13, 17, 23, 0.96);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.16);
  z-index: 9999;
}

body:not(.home) .site-main {
  padding-top: 6rem;
}

.blog-listing,
.archive .site-main,
.search .site-main {
  min-height: 60vh;
  padding-bottom: 5rem;
  background: var(--light-bg);
}

.blog-listing-container {
  padding-top: 2.5rem;
}

.blog-page-header {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

.blog-page-header .section-tag {
  margin-bottom: 1.25rem;
}

.blog-page-header .page-title {
  margin-bottom: 1rem;
}

.blog-page-header .archive-description > :last-child {
  margin-bottom: 0;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.post-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(0, 59, 115, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.post-card-image {
  display: flex;
  min-height: 220px;
  aspect-ratio: 16 / 9;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--grad-blue);
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.post-card:hover .post-card-image img {
  transform: scale(1.04);
}

.post-card-image-placeholder .brand-badge {
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
}

.post-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
}

.post-card-meta,
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  color: var(--muted-text);
  font-size: 0.85rem;
}

.post-card-category a {
  color: var(--primary-blue);
  font-weight: 700;
  text-decoration: none;
}

.post-card-title {
  margin: 0.9rem 0 0.65rem;
  font-size: 1.3rem;
  line-height: 1.35;
}

.post-card-title a {
  color: var(--dark-text);
  text-decoration: none;
  transition: var(--transition-fast);
}

.post-card-title a:hover,
.post-card-link:hover {
  color: var(--accent-red);
}

.post-card-excerpt {
  color: var(--muted-text);
  font-size: 0.95rem;
}

.post-card-excerpt p:last-child {
  margin-bottom: 0;
}

.post-card-link {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: auto;
  padding-top: 1.25rem;
  color: var(--primary-blue);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-fast);
}

.post-card-link span {
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.post-card-link:hover span {
  transform: translateX(3px);
}

.search-result-card {
  min-width: 0;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid rgba(0, 59, 115, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.search-result-card .entry-title {
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}

.search-result-card .entry-title a {
  color: var(--primary-blue-dark);
  text-decoration: none;
}

.search-result-card .post-thumbnail img {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
  border-radius: var(--radius-md);
}

.search-result-card .entry-summary {
  color: var(--muted-text);
}

.site-main .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.site-main .nav-links a,
.page-links a {
  display: inline-block;
  padding: 0.75rem 1rem;
  color: var(--primary-blue);
  background: var(--white);
  border: 1px solid rgba(0, 85, 165, 0.15);
  border-radius: var(--radius-pill);
  font-weight: 700;
  text-decoration: none;
}

.page-template-default .site-main,
.single-post-layout {
  min-height: 60vh;
  padding-bottom: 5rem;
  background: var(--light-bg);
}

.page-template-default .site-main {
  padding-top: 7rem;
}

.page-article {
  width: 100%;
  margin: 0;
  padding-bottom: 3.5rem;
  background: var(--light-bg);
}

.page-article-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2.5rem, 7vw, 5rem);
  color: var(--white);
  background:
    radial-gradient(ellipse at 86% 12%, rgba(26, 117, 210, 0.45), transparent 38%),
    linear-gradient(125deg, #0D1117 0%, #003B73 60%, #0055A5 100%);
}

.page-article-header::after {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-red) 0 50%, var(--primary-blue-light) 50% 100%);
  content: "";
}

.page-article-heading {
  max-width: 960px;
  padding: 0.5rem 0 1rem;
}

.page-article-content-container {
  position: relative;
  z-index: 1;
  margin-top: -2.5rem;
}

.page-article-content-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(0, 59, 115, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.page-article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2.25rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
}

.page-article-breadcrumb a {
  color: var(--white);
  text-decoration: none;
}

.page-article-breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.page-article-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.4rem 0.85rem;
  color: var(--white);
  background: rgba(252, 2, 20, 0.92);
  border-radius: var(--radius-pill);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-article-header .entry-title {
  margin: 0;
  color: var(--white);
  font-size: clamp(2.1rem, 5.2vw, 3.75rem);
  font-weight: 800;
  line-height: 1.12;
  text-wrap: balance;
}

.page-article-image {
  margin: 0;
  background: #0D1117;
}

.page-article-image img {
  display: block;
  width: 100%;
  height: clamp(250px, 42vw, 480px);
  object-fit: cover;
}

.single-article-image img {
  display: block;
  width: 100%;
  height: auto;
}

.page-article-image figcaption {
  padding: 0.8rem clamp(1.5rem, 5vw, 3.5rem);
  color: var(--muted-text);
  background: #F8FAFC;
  border-bottom: 1px solid #E6ECF2;
  font-size: 0.85rem;
}

.entry-content {
  color: #343A40;
  font-size: 1.05rem;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.page-article-content {
  padding: clamp(1.75rem, 5vw, 4rem);
}

.page-article-content > * {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.page-article-content > .alignwide {
  max-width: 960px;
}

.page-article-content > .alignfull {
  max-width: none;
}

.page-article-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
}

.page-article-content h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 700;
}

.page-article-content .wp-block-image figcaption {
  color: var(--muted-text);
  font-size: 0.9rem;
  text-align: center;
}

.page-article-content .wp-block-buttons {
  gap: 0.75rem;
}

.page-article-content .wp-block-button__link {
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.page-article-content pre,
.page-article-content code {
  max-width: 100%;
  overflow-x: auto;
}

.page-article-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.entry-content > * {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.entry-content > .alignwide {
  max-width: 960px;
}

.entry-content > .alignfull {
  max-width: none;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin: 2rem auto 0.75rem;
  color: var(--primary-blue-dark);
  line-height: 1.3;
}

.entry-content p {
  margin-bottom: 1.25rem;
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.entry-content a {
  color: var(--primary-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.entry-content blockquote {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.5rem;
  color: var(--primary-blue-dark);
  background: var(--light-bg);
  border-left: 4px solid var(--accent-red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.15rem;
}

.entry-content img,
.entry-content video {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  padding: 0.65rem;
  border: 1px solid #DEE2E6;
}

.page-article-footer {
  padding: 1rem 0 0;
}

.single-post-layout > .container {
  max-width: 960px;
}

.single-article {
  margin: 2.5rem auto 1.5rem;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(0, 59, 115, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.single-article-header {
  padding: clamp(2rem, 6vw, 4rem);
  background: linear-gradient(135deg, #003B73 0%, #0055A5 75%, #1A75D2 100%);
  color: var(--white);
}

.single-article-categories {
  margin-bottom: 1rem;
}

.single-article-categories a {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  color: var(--white);
  background: rgba(252, 2, 20, 0.9);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.single-article-header .entry-title {
  margin: 0 0 1.25rem;
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
}

.single-article-header .entry-meta,
.single-article-header .entry-meta a {
  color: rgba(255, 255, 255, 0.84);
}

.single-article-header .entry-meta a {
  font-weight: 700;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  text-underline-offset: 0.2em;
}

.single-article-image img {
  max-height: 560px;
  object-fit: cover;
}

.single-article > .entry-content {
  padding: clamp(1.5rem, 5vw, 3.5rem);
}

.single-article-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1.5rem, 5vw, 3.5rem);
  background: #F8FAFC;
  border-top: 1px solid #E9ECEF;
}

.single-article-tags a {
  display: inline-block;
  margin: 0.25rem;
  padding: 0.3rem 0.7rem;
  color: var(--primary-blue);
  background: rgba(0, 85, 165, 0.08);
  border-radius: var(--radius-pill);
  text-decoration: none;
}

.single-post-layout .post-navigation {
  margin: 1.5rem 0 2.5rem;
}

.single-post-layout .post-navigation .nav-links {
  gap: 1rem;
}

.single-post-layout .post-navigation .nav-links > div {
  flex: 1 1 240px;
}

.single-post-layout .post-navigation a {
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.single-post-layout .nav-subtitle {
  color: var(--muted-text);
  font-size: 0.85rem;
}

.single-post-layout .nav-title {
  color: var(--primary-blue);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

.comments-area {
  margin: 0 auto 3rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.comments-area .comment-list {
  padding-left: 1.5rem;
}

.comments-area .comment-body {
  margin: 1rem 0;
  padding: 1rem;
  background: var(--light-bg);
  border-radius: var(--radius-md);
}

.progress-update-row {
  gap: 0.75rem 1.5rem;
}

.progress-update-row > span:last-child {
  text-align: right;
}

@media (max-width: 575.98px) {
  .progress-update-row {
    align-items: flex-start !important;
    flex-direction: column;
  }

  .progress-update-row > span:last-child {
    text-align: left;
  }
}


.navbar-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.5rem;
}

.navbar-donate {
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .navbar-brand-logo img {
    width: clamp(112px, 36vw, 150px);
    height: auto;
  }

  .navbar-actions {
    gap: 0.25rem;
  }

  .navbar-donate {
    gap: 0.35rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.78rem;
  }

  .navbar-custom .navbar-toggler {
    padding: 0.25rem 0.4rem;
  }
}

.no-results,
.error-404 {
  max-width: 760px;
  margin: 2.5rem auto;
  padding: clamp(1.5rem, 5vw, 3rem);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

@media (max-width: 575.98px) {
  .blog-listing-container {
    padding-top: 1.5rem;
  }

  .page-template-default .site-main {
    padding-top: 6rem;
  }

  .page-article-header {
    padding: 1.75rem 1.5rem 2rem;
  }

  .page-article-content-container {
    margin-top: -1.5rem;
  }

  .page-article-content-card {
    border-radius: var(--radius-md);
  }

  .page-article-breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.78rem;
  }

  .page-article-image img {
    height: 240px;
  }

  .post-card-content {
    padding: 1.25rem;
  }

  .page-article-footer {
    padding: 0 1.5rem 1.5rem;
  }
}

#wpadminbar{
  top: auto;
  bottom: 0;
}

html{
  margin: 0 !important;
}