@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary-navy: #2f3576;
  --dark-navy: #1b214f;
  --header-bg: linear-gradient(180deg, #1b214f 0%, #29306b 100%);
  --light-gray: #f8f9fa;
  --card-shadow: 0 8px 24px rgba(47, 53, 118, 0.06);
  --card-shadow-hover: 0 16px 32px rgba(47, 53, 118, 0.12);
  --font-inter: 'Inter', sans-serif;
  --pill-date-bg: #f1f3f9;
  --pill-date-text: #4e5d78;
  --badge-new-bg: #eef2ff;
  --badge-new-text: #3538cd;
  --btn-arrow-bg: #4f5b93;
  --btn-arrow-hover: #2f3576;
}

body {
  font-family: var(--font-inter);
  background-color: var(--light-gray);
  color: #1e293b;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navbar styles */
.navbar-custom {
  background-color: var(--dark-navy) !important;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-brand-custom {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.navbar-brand-custom img {
  height: 24px;
  width: auto;
}

.lang-selector {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background-color: transparent;
  color: #ffffff;
  padding: 0.375rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.lang-selector:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Hero Header styles */
.hero-header {
  background: var(--header-bg);
  color: #ffffff;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

.hero-illustration-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Circle background decoration matching the image */
.hero-circle-bg {
  position: absolute;
  width: 280px;
  height: 280px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  z-index: 1;
}

.hero-illustration {
  max-height: 220px;
  z-index: 2;
  position: relative;
  animation: floatIllustration 4s ease-in-out infinite alternate;
}

@keyframes floatIllustration {
  0% {
    transform: translateY(0px);
  }

  100% {
    transform: translateY(-8px);
  }
}

/* Card Section grid container overrides */
.cards-container {
  margin-top: 3rem;
  position: relative;
  z-index: 10;
  padding-bottom: 5rem;
}

/* Card Design styling */
.voucher-card {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.voucher-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-navy);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.voucher-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(47, 53, 118, 0.1);
}

.voucher-card:hover::after {
  opacity: 1;
}

/* Top badges bar */
.card-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.25rem;
}

.badge-cdc {
  height: 22px;
  width: auto;
  object-fit: contain;
}

.badge-nea,
.badge-climate {
  height: 22px;
  width: auto;
  object-fit: contain;
}

.badge-new {
  background-color: var(--badge-new-bg);
  color: var(--badge-new-text);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

/* Card titles and descriptions */
.card-voucher-title {
  color: var(--primary-navy);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.card-voucher-desc {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 1.5rem;
  line-height: 1.45;
}

/* Date Pill and Action button container */
.card-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.pill-date {
  background-color: var(--pill-date-bg);
  color: var(--pill-date-text);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  letter-spacing: 0.2px;
}

.btn-redeem-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--btn-arrow-bg);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(79, 91, 147, 0.25);
}

.btn-redeem-arrow:hover {
  background-color: var(--btn-arrow-hover);
  transform: scale(1.1);
}

.btn-redeem-arrow svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

/* Search and filter toolbar */
.toolbar-container {
  max-width: 900px;
  margin: 0 auto 2rem auto;
  background-color: #ffffff;
  padding: 1.25rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.search-input-group {
  position: relative;
}

.search-icon-inside {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.search-input-group input {
  padding-left: 2.5rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.search-input-group input:focus {
  border-color: var(--primary-navy);
  box-shadow: 0 0 0 3px rgba(47, 53, 118, 0.15);
}

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

.filter-btn {
  background-color: #f1f5f9;
  color: #64748b;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background-color: #e2e8f0;
  color: #334155;
}

.filter-btn.active {
  background-color: var(--primary-navy);
  color: #ffffff;
}

/* Premium modal styles */
.modal-content-custom {
  border-radius: 16px;
  border: none;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.modal-header-custom {
  background-color: var(--primary-navy);
  color: #ffffff;
  padding: 1.5rem;
  border: none;
}

.modal-body-custom {
  padding: 2rem;
}

.redeem-success-icon {
  width: 72px;
  height: 72px;
  background-color: #d1fae5;
  color: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem auto;
}

/* Footer layout matching mockup */
.footer-custom {
  background-color: transparent;
  color: #4e5d78;
  padding: 3rem 0;
  margin-top: auto;
  font-size: 0.95rem;
}

.footer-faq-section {
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.footer-faq-link {
  color: #4f5b93;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-faq-link:hover {
  color: var(--primary-navy);
}

.footer-scam-alert {
  line-height: 1.5;
}

.footer-scam-alert h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark-navy);
}

.text-navy-link {
  color: var(--primary-navy);
  font-weight: 500;
  text-decoration: underline;
}

.text-navy-link:hover {
  color: var(--dark-navy);
}

.footer-brand-logo span {
  font-size: 1.15rem;
  letter-spacing: 0.5px;
}

.footer-link {
  color: #4f5b93;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--primary-navy);
}

.footer-divider {
  border-color: #cbd5e1;
  opacity: 0.3;
}

.footer-logo-img {
  max-height: 28px;
  width: auto;
  object-fit: contain;
}

.social-icon {
  display: inline-flex;
  transition: opacity 0.2s ease;
}

.social-icon:hover {
  opacity: 0.7;
}

.social-icon i {
  color: #0f172a !important;
  /* Make sure icons are solid dark/black */
}

.text-muted-custom {
  color: #64748b;
  font-size: 0.85rem;
}

/* Mobile responsive layout overrides matching custom mockup */
@media (max-width: 991.98px) {
  .hero-header {
    padding: 2.5rem 0 3.5rem 0;
    overflow: hidden;
    position: relative;
  }

  .hero-row {
    display: flex;
    align-items: flex-end;
    position: relative;
    min-height: 150px;
  }

  .hero-text-col {
    width: 60%;
    z-index: 10;
    text-align: left !important;
  }

  .hero-illustration-wrapper {
    position: absolute;
    right: -10px;
    bottom: -3.5rem;
    /* Align to the bottom of padding */
    width: 45%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    margin-top: 0;
    z-index: 5;
  }

  .hero-illustration {
    max-height: 140px;
    width: auto;
    object-fit: contain;
  }

  .hero-circle-bg {
    width: 170px;
    height: 170px;
  }

  .hero-title {
    font-size: 2.25rem;
    margin-bottom: 0.25rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 0;
  }
}