/* =================================================
GLOBAL RESET & BASE
================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f5f5f5;
  color: #333;
}

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

:root {
  --gap: 12px;
  --btn-bg: #1f6feb;
  --btn-bg-hover: #165fdd;
  --btn-color: #fff;
  --btn-radius: 8px;
  --btn-padding: 12px 14px;
  --max-width: 1100px;
}

/* =================================================
COMMON CONTAINER WIDTH (CENTER SAFE)
================================================= */
.section,
.main-info,
.winner-section,
.three-box-wrapper,
.prizes,
.prize-gallery,
.wrap,
.gallery-container,
.partners-section,
.containerayojak {
  max-width: 1200px;
  margin: 25px auto;
  padding: 0 15px;
}

/* =================================================
NEWS TICKER (NEVER HIDE)
================================================= */
.ticker-container {
  width: calc(100% - 20px);
  margin: 65px 10px 10px 10px;
  background: linear-gradient(45deg, #1b834f, #126646);
  color: #fff;
  padding: 10px;
  border-radius: 6px;
  overflow: hidden;
  white-space: nowrap;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.ticker-container marquee {
  display: block;
  line-height: 24px;
  width: 100%;
}

.ticker-item {
  padding: 0 15px;
  color: #ffedc1;
  font-weight: 600;
}

/* =================================================
SLIDER
================================================= */
.slider-wrapper {
  max-width: 1200px;
  margin: 15px auto;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,.2);
}

.slide {
  display: none;
  position: relative;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background: rgba(0,0,0,.6);
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.6);
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
}

.prev:hover, .next:hover {
  background: rgba(0,0,0,0.9);
}

.prev { left: 15px; }
.next { right: 15px; }

.indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.indicators span {
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  cursor: pointer;
}

.indicators span.active {
  background: #fff;
}

/* =================================================
TEXT CENTER SECTIONS
================================================= */
.hero-section,
.section,
.winner-section {
  text-align: center;
}

.btn-primary {
  display: inline-block;
  padding: 12px 24px;
  background-color: #28a745;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  margin: 10px 0;
  transition: 0.3s;
  border: none;
}

.btn-primary:hover {
  background-color: #218838;
  transform: translateY(-2px);
}

/* =================================================
MAIN INFO
================================================= */
.main-info {
  display: flex;
  align-items: center;
  gap: 30px;
  background: #fff;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.main-info img {
  width: 220px;
  height: auto;
  flex-shrink: 0;
}

.text-content p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 15px;
}

/* =================================================
WINNER SECTION
================================================= */
.winner-section {
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.winner-details h3 {
  margin: 10px 0;
}

/* =================================================
THREE BOX WRAPPER
================================================= */
.three-box-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  background: #fffbe6;
  border-radius: 15px;
  padding: 25px;
}

.box-item {
  width: 100%;
  max-width: 350px;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* =================================================
PRIZES GRID
================================================= */
.prizes {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.prize-item {
  background: #fef6e4;
  padding: 25px;
  border-radius: 15px;
  min-width: 250px;
  flex: 1 1 250px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  text-align: center;
}

.prize-item:hover {
  transform: translateY(-5px);
}

.prize-item h4 {
  font-size: 22px;
  color: #3e0b91;
  margin-bottom: 15px;
}

.prize-item p {
  font-size: 20px;
  font-weight: bold;
  color: #bd1d1d;
}

/* =================================================
PRIZE GALLERY (GRID)
================================================= */
.prize-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  text-align: center;
}

.prize-gallery > div {
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.prize-gallery img {
  width: 100%;
  max-width: 280px;
  height: 200px;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.prize-gallery img:hover {
  transform: scale(1.05);
}

.prize-gallery h3 {
  margin-top: 15px;
  font-size: 18px;
  font-weight: bold;
  color: #ac1a1a;
}

@media (min-width: 768px) {
  .prize-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =================================================
LINK BUTTONS GRID
================================================= */
.wrap h1 {
  margin-bottom: 20px;
}

.links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.link-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  background: var(--btn-bg);
  color: #fff;
  border-radius: var(--btn-radius);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.link-btn:hover {
  background: var(--btn-bg-hover);
}

@media (min-width: 768px) {
  .links {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .links {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* =================================================
PHOTO GALLERY
================================================= */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  padding: 20px 0;
}

.gallery-container img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.gallery-container img:hover {
  transform: scale(1.03);
}

/* =================================================
AYOJAK & CARDS
================================================= */
.ayojak {
  color: #000080; /* darkblue */
  padding: 40px 20px;
  background: #f5f7fa;
}

.containerayojak h1 {
  font-size: 2rem;
  margin-bottom: 40px;
}

.card-gridayojak {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  max-width: 800px;
  margin: 0 auto;
}

.cardayojak {
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 30px 20px;
  position: relative;
  background: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cardayojak:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.cardayojak:before {
  content: "";
  height: 6px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(90deg, #0ac6ed 0%, #0068e3 50%, #a106a8 100%);
  border-radius: 8px 8px 0 0;
}

.cardayojak img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px;
  border: 3px solid #f0f0f0;
}

.cardayojak h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.cardayojak p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 5px;
}

@media (min-width: 600px) {
  .card-gridayojak {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =================================================
PARTNERS
================================================= */
.partners-section {
  text-align: center;
  padding: 40px 0;
}

.partner-wrapper, .partners-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  align-items: center;
  margin-top: 20px;
}

.partner-item img {
  max-width: 150px;
  height: auto;
  filter: grayscale(20%);
  transition: filter 0.3s;
}

.partner-item img:hover {
  filter: grayscale(0%);
}

/* =================================================
STICKY BOTTOM CTA
================================================= */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #d32f2f;
  padding: 15px;
  text-align: center;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.sticky-cta a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  display: block;
}

/* =================================================
MOBILE ADJUSTMENTS
================================================= */
@media (max-width: 768px) {
  .main-info {
    flex-direction: column;
    text-align: center;
  }

  .main-info img {
    width: 150px;
  }

  .slide img {
    height: 250px;
  }

  .ticker-container {
    margin-top: 60px;
    font-size: 14px;
  }

  .containerayojak h1 {
    font-size: 1.5rem;
  }

  .section h1 {
    font-size: 1.6rem;
  }

  /* Padding for sticky bottom */
  body {
    padding-bottom: 60px;
  }
}

/* Video Container Helper */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}