/* css/index.css */

/* ── Reset section backgrounds (override styles.css about.webp) ── */
.section-default { background: #fff; }
.section-alt     { background: #f4f6f0; }

/* ── Ad banner (hidden) ──────────────────────────────────────────── */
.ad-banner {
  height: 1px;
  width: 1px;
  position: absolute;
  left: -9999px;
  top: -9999px;
  overflow: hidden;
}

/* ══════════════════════════════════════════════════════════════════
   HERO / CATEGORIES SECTION
══════════════════════════════════════════════════════════════════ */

.categories {
  position: relative;
  min-height: 90vh;
  padding: 90px 8%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.categories::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.categories > * {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.welcome-title {
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  margin: 0 0 8px;
}

.logo-image {
  max-width: 300px;
  width: 60%;
  height: auto;
}

/* Category grid */
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 22px 12px 18px;
  text-align: center;
  text-decoration: none;
  color: #1a1a1a;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: background 0.22s, transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}

.category-card:hover {
  background: #fff;
  border-color: #556B2F;
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
  color: #1a1a1a;
}


.category-card img.category-image {
  width: auto;
  height: 64px;
  object-fit: contain;
  display: block;
  margin: 0 auto 14px;
  transition: transform 0.22s;
}

.category-card:hover img.category-image {
  transform: scale(1.1) translateY(-2px);
}

.category-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ad-count-badge {
  background: #556B2F;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 20px;
}

/* ══════════════════════════════════════════════════════════════════
   FEATURED ADS
══════════════════════════════════════════════════════════════════ */

.featured-ads.section-alt {
  padding: 50px 5%;
}

.featured-ads h2 {
  margin-bottom: 24px;
}

.latest-ads-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.latest-ad-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  cursor: pointer;
}

.latest-ad-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: #c5d4a8;
}

.latest-ad-card a,
.latest-ad-card a:link,
.latest-ad-card a:visited,
.latest-ad-card a:hover,
.latest-ad-card a:active {
  all: unset;
  display: block;
  cursor: pointer;
}

.card-img-wrap {
  position: relative;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.latest-ad-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.card-transaction-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #556B2F;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  text-transform: capitalize;
  letter-spacing: 0.03em;
}

.card-info {
  padding: 10px 12px 14px;
}

.latest-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: #1a1a1a;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.3em;
  margin-bottom: 8px;
}

.card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.latest-price {
  font-weight: 700;
  font-size: 1rem;
  color: #556B2F;
}

.latest-meta {
  font-size: 0.72rem;
  color: #9ca3af;
}

/* ── Featured ads pagination ──────────────────────────── */
.featured-pagination { margin-top: 28px; }

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  font-size: 0.875rem;
  transition: background 0.15s, border-color 0.15s;
}

.pagination a:hover {
  background: #f4f6f0;
  border-color: #556B2F;
}

.pagination .current {
  background: #556B2F;
  color: #fff;
  border-color: #556B2F;
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════════
   4 STEPS CAROUSEL
══════════════════════════════════════════════════════════════════ */

.promo-carousel {
  padding: 70px 8%;
  text-align: center;
  background: #f4f6f0;
}

.promo-carousel-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 40px;
}

.promo-swiper {
  max-width: 680px;
  margin: 0 auto;
}

/* Force each slide to full width (Swiper loop fix) */
.promo-carousel .swiper-slide {
  flex: 0 0 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.promo-slide {
  padding: 0 20px 40px;
}

.step-img {
  width: auto;
  height: 120px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.promo-slide h3 {
  font-size: 1.15rem;
  color: #1a1a1a;
  margin-bottom: 10px;
  font-weight: 700;
}

.promo-slide p {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.65;
  max-width: 500px;
  margin: 0 auto;
}

/* Swiper arrows */
.promo-prev,
.promo-next {
  position: absolute;
  top: 38%;
  width: 40px;
  height: 40px;
  line-height: 38px;
  text-align: center;
  font-size: 20px;
  color: #556B2F;
  background: #fff;
  border: 1px solid #e0e7d0;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  user-select: none;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.promo-prev:hover,
.promo-next:hover {
  background: #556B2F;
  color: #fff;
  box-shadow: 0 4px 10px rgba(85, 107, 47, 0.25);
}

.promo-prev { left: 0; }
.promo-next { right: 0; }

.promo-pagination { margin-top: 28px; }

.promo-pagination .swiper-pagination-bullet {
  background: #556B2F;
  opacity: 0.3;
}

.promo-pagination .swiper-pagination-bullet-active {
  opacity: 1;
}

/* ══════════════════════════════════════════════════════════════════
   BOOST YOUR REACH (Promo options)
══════════════════════════════════════════════════════════════════ */

.promo-options {
  padding: 70px 8%;
  text-align: center;
  background: #fff;
}

.promo-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin-top: 40px;
}

.promo-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top: 3px solid #556B2F;
  border-radius: 12px;
  padding: 32px 28px 36px;
  width: 300px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s, transform 0.2s;
}

.promo-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.promo-icon {
  width: 60px;
  height: auto;
  margin-bottom: 16px;
}

.promo-card h3 {
  color: #1a1a1a;
  font-size: 1.15rem;
  margin-bottom: 12px;
  margin-top: 0;
}

.promo-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #555;
  margin-bottom: 20px;
}

.promo-note {
  margin-top: 36px;
  font-size: 0.9rem;
  color: #6b7280;
  font-style: italic;
}

/* ── Shared CTA button ────────────────────────────────── */
.get-ticket-btn {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  padding: 10px 22px;
  border: 1px solid #556B2F;
  background: #556B2F;
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}

.get-ticket-btn:hover {
  background: #fff;
  color: #556B2F;
}

/* ══════════════════════════════════════════════════════════════════
   TRANSFER PROMOTION SECTION
══════════════════════════════════════════════════════════════════ */

.promo-transfer-section {
  padding: 60px 8%;
  text-align: center;
  background: #f4f6f0;
}

.transfer-inner {
  max-width: 680px;
  margin: 0 auto;
}

.transfer-inner h2 { margin-bottom: 16px; }

.transfer-inner p {
  color: #555;
  line-height: 1.75;
  margin-bottom: 28px;
  font-size: 0.97rem;
}

.desktop-break { display: none; }

/* ══════════════════════════════════════════════════════════════════
   PRIZE DRAW SECTION
══════════════════════════════════════════════════════════════════ */

.raffle-items {
  padding: 65px 8%;
  text-align: center;
  background: #fff;
}

.raffle-items .overlay { display: none; }

.prize-draw-info {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 10px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Current prize draws ────────────────────────────── */
.current-prize-draws { margin-bottom: 48px; }

.current-prize-draws h3 {
  color: #556B2F;
  margin-bottom: 20px;
}

.current-prize-cards {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.prize-card.current-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  width: 320px;
  text-align: left;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  color: #333;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.prize-card.current-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.prize-card.current-card .draw-type {
  background: #556B2F;
  color: #fff;
  padding: 9px 14px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0;
}

.prize-card.current-card .draw-date {
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #556B2F;
  background: #f7f9f3;
  margin: 0;
  border-bottom: 1px solid #e5e7eb;
}

.prize-card.current-card .prize-thumbnail {
  width: 100%;
  height: 175px;
  object-fit: contain;
  background: #fafafa;
  display: block;
  border-bottom: 1px solid #f0f0f0;
}

.prize-card.current-card .prize-card-title {
  font-size: 0.975rem;
  color: #1a1a1a;
  padding: 12px 14px 6px;
  margin: 0;
  min-height: auto;
  font-weight: 700;
  line-height: 1.3;
}

.prize-card.current-card .prize-card-description {
  font-size: 0.83rem;
  color: #555;
  padding: 0 14px 10px;
  height: auto;
  max-height: 100px;
  overflow: hidden;
  margin: 0;
}

.prize-card.current-card .ticket-counter {
  font-size: 0.78rem;
  color: #6b7280;
  padding: 8px 14px;
  border-top: 1px solid #f0f0f0;
  margin: 0;
}

.prize-card.current-card .get-ticket-btn {
  display: block;
  margin: auto 14px 14px;
  text-align: center;
}

/* ── Past prize draws ───────────────────────────────── */
.past-prize-draws {
  text-align: center;
  margin-top: 48px;
}

.past-prize-draws h3 {
  color: #556B2F;
  margin-bottom: 20px;
}

.prize-grid.past-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.prize-card.past-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px;
  width: 170px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.prize-card.past-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.prize-card.past-card .prize-thumbnail {
  width: 100%;
  height: 100px;
  object-fit: contain;
  border-radius: 6px;
  margin-bottom: 8px;
  display: block;
}

.prize-card.past-card .prize-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #556B2F;
  margin-bottom: 4px;
  min-height: auto;
  line-height: 1.3;
}

.prize-card.past-card .prize-card-date {
  font-size: 0.72rem;
  color: #6b7280;
  margin-bottom: 4px;
  font-weight: 500;
}

.prize-card.past-card .prize-card-winner {
  font-size: 0.75rem;
  color: #2e7d32;
  font-weight: 700;
}

/* ── Past draws pagination ──────────────────────────── */
.past-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.past-pagination a.prev-page,
.past-pagination a.next-page {
  display: inline-block;
  padding: 8px 20px;
  min-width: 100px;
  text-align: center;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  background: #556B2F;
  color: #fff;
  border: 1px solid #556B2F;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: background 0.15s, color 0.15s, transform 0.12s;
}

.past-pagination a.prev-page:not(.disabled):hover,
.past-pagination a.next-page:not(.disabled):hover {
  background: #fff;
  color: #556B2F;
  transform: translateY(-2px);
}

.past-pagination a.disabled,
.past-pagination a[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
  background: #f0f0f0;
  color: #999;
  border-color: #e0e0e0;
  box-shadow: none;
  transform: none;
}

.past-prize-draws.loading {
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 160ms ease;
}

@keyframes pastDrawsSpin { to { transform: rotate(360deg); } }

/* ── Future prize draws ─────────────────────────────── */
.future-prize-draws { margin-top: 48px; }

.future-prize-draws h3 {
  color: #556B2F;
  margin-bottom: 20px;
}

.current-prize-carousel-wrapper {
  position: relative;
  width: 100%;
}

.current-prize-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;
}

.current-prize-carousel::-webkit-scrollbar { display: none; }

.future-pagination--below { margin-top: 16px; }

/* ══════════════════════════════════════════════════════════════════
   FIND A TECH / ARTIST SECTION
══════════════════════════════════════════════════════════════════ */

.find-tech-section {
  padding: 70px 8%;
  text-align: center;
  background: rgba(255, 255, 255, 0.5);
}

.find-tech-section h2 {
  margin-bottom: 14px;
}

.find-tech-intro {
  font-size: 0.97rem;
  color: #555;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 40px;
}

.find-tech-cards {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.find-tech-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top: 3px solid #556B2F;
  border-radius: 12px;
  padding: 32px 28px 28px;
  width: 300px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s, transform 0.2s;
}

.find-tech-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  transform: translateY(-5px);
}

.find-tech-card-icon {
  width: 56px;
  height: 56px;
  background: #e8f0d8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: #556B2F;
}

.find-tech-card-icon svg {
  width: 26px;
  height: 26px;
}

.find-tech-card h3 {
  font-size: 1.1rem;
  color: #1a1a1a;
  margin: 0 0 10px;
  font-weight: 700;
}

.find-tech-card p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.65;
  margin: 0;
}

.find-tech-list-note {
  margin-top: 18px;
  font-size: 0.88rem;
  color: #6b7280;
}

.find-tech-list-note a {
  color: #556B2F;
  font-weight: 600;
  text-decoration: none;
}

.find-tech-list-note a:hover {
  text-decoration: underline;
}

/* ══════════════════════════════════════════════════════════════════
   SCROLL-TO-TOP BUTTON
══════════════════════════════════════════════════════════════════ */

#scrollToTopBtn {
  position: fixed;
  bottom: 70px;
  right: 30px;
  z-index: 9999;
  font-size: 20px;
  background: #556B2F;
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  display: none;
  transition: transform 0.2s, background 0.2s;
}

#scrollToTopBtn:hover {
  transform: translateY(-3px);
  background: #8B4513;
}

/* ══════════════════════════════════════════════════════════════════
   ADBLOCK OVERLAY
══════════════════════════════════════════════════════════════════ */

#adblock-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
}

#adblock-modal {
  background: #fff;
  padding: 32px;
  border-radius: 10px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

#adblock-modal h2 {
  margin-bottom: 14px;
  font-size: 1.4rem;
  color: #1a1a1a;
}

#adblock-modal p {
  margin-bottom: 22px;
  font-size: 0.95rem;
  color: #555;
}

#adblock-modal button {
  padding: 10px 24px;
  background: #556B2F;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
}

#adblock-modal button:hover { background: #8B4513; }

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
  .latest-ads-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .latest-ads-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .latest-ads-grid { grid-template-columns: repeat(2, 1fr); }
  .current-prize-cards { flex-direction: column; align-items: center; }
  .prize-card.current-card { width: 100%; max-width: 400px; }
  .promo-cards { gap: 20px; }
  .promo-card { width: 100%; max-width: 360px; }
  .promo-prev, .promo-next { display: none; }
}

@media (max-width: 600px) {
  .categories { padding: 50px 5%; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .category-card img.category-image { height: 44px; }
  .logo-image { max-width: 220px; width: 75%; }
  .latest-ads-grid { grid-template-columns: repeat(2, 1fr); }
  .card-img-wrap img { height: 120px; }
  .promo-options, .promo-carousel, .promo-transfer-section, .raffle-items { padding: 44px 5%; }
  .prize-card.past-card { width: 140px; }
  .past-pagination a.prev-page, .past-pagination a.next-page {
    padding: 7px 12px;
    min-width: 82px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .promo-prev, .promo-next { display: none; }
  .prize-card.past-card { width: 120px; }
}
