body.home-page,
.main-content-home {
  padding-bottom: 90px;
}
.banner-carousel-img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 90%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  box-shadow: 0 16px 40px -8px rgba(0,0,0,0.32);
  max-width: 480px; /* ลดขนาดจาก 540px */
}
/* Banner */
.banner-img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1px; /* เพิ่มระยะห่างจากขอบบน */
  max-width: 570px;
  width: 95%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: transparent;
}

/* Prize Banner Image */
.prize-banner-img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1px;
  margin-bottom: 1rem !important;
  max-width: 570px;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: transparent;
  box-shadow: 0 24px 56px -12px rgba(25, 118, 210, 0.18), 0 2px 8px rgba(33,150,243,.18);
  transform: scale(1.070);
}

/* Campaign Banner Image */
.campaign-banner-img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 15px;
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: transparent;
  box-shadow: 0 16px 40px -8px rgba(0,0,0,0.32);
}

/* Carousel indicators */
.carousel-indicators { 
  bottom: -40px; 
  z-index: 3; 
}
.carousel-indicators [data-bs-target]{
  background:#fff;border:3px solid #2966e1;opacity:.95;
  box-shadow:0 2px 8px rgba(33,150,243,.18);
  margin:0 8px;transition:opacity .2s, background .2s, border .2s;
}
.carousel-indicators .active{
  background:#0051dc;border:3px solid #fff;opacity:1;
}


/* Modern blue-white card style */

/* Responsive tweaks */
@media (max-width: 500px){
  .carousel-indicators{ bottom:-36px !important; } 
  .carousel-indicators [data-bs-target]{
    width:9px !important;height:9px !important;margin:0 3px !important;border-width:2px !important;
    box-shadow:0 1px 3px rgba(33,150,243,.12) !important;
  }
  .carousel-indicators .active{ border-width:2px !important; }

  .home-carousel-btn{ width:32px;height:32px; }

  .prize-banner-img,
  .campaign-banner-img {
    border-radius: 11px !important;
  }
}

@media (min-width:501px){
  .banner-img {
    max-width: 540px !important;
    height: auto !important;
    border-radius: 12px !important;
    box-shadow: 0 14px 32px -8px rgba(0,0,0,0.30) !important; /* เงาด้านล่างใน tablet */
  }
  .carousel-indicators{ bottom:-36px !important; }
  .carousel-indicators [data-bs-target]{ width:16px !important; height:16px !important; margin:0 5px !important; }

  .prize-banner-img,
  .campaign-banner-img {
    max-width: 600px !important;
    border-radius: 12px !important;
    box-shadow: 0 14px 32px -8px rgba(0,0,0,0.30) !important;
  }
}
.card.shadow-sm,
.rules-card,
.prize-card {
    background: #fff !important;
    border: 2px solid #1976d2 !important;
    box-shadow: 0 6px 32px 0 rgba(25, 118, 210, 0.10), 0 1.5px 4px 0 rgba(25, 118, 210, 0.04);
    border-radius: 1.25rem;
}

/* Prize card */
.prize-card {
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(60,72,88,0.10);
    background: #fff !important;
    transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
    border: none !important; /* ลบกรอบ */
    padding: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1; /* ทำให้เป็นสี่เหลี่ยมจัตุรัส */
}

.prize-img {
  width: 100%;
  height: 100%; /* เปลี่ยนเป็น 100% เพื่อเต็มกรอบ */
  object-fit: cover; /* เปลี่ยนเป็น cover เพื่อเต็มกรอบ */
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: none !important;
  display: block;
  margin-top: 0; /* ลบ margin-top เพื่อให้เต็มกรอบ */
}

.prize-title {
    font-size: 1rem; /* ลดจาก 1.1rem */
    margin-bottom: 0.5rem;
}

.prize-details {
    font-size: 0.85rem; /* ลดจาก 0.9rem */
    margin-bottom: 0.25rem;
}

/* เพิ่มสไตล์ใหม่สำหรับรางวัล */
.prize-title-outside {
    font-size: 1rem;
    margin-bottom: 0.18rem; /* ลดอีก */
    color: #004489;
    font-weight: 700; /* หนา */
    letter-spacing: 0.5px; /* เพิ่มระยะตัวอักษร */
    line-height: 1.4; /* ปรับบรรทัด */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* จำกัด 2 บรรทัด */
    line-clamp: 2; /* มาตรฐาน */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prize-details-outside {
    font-size: 0.9rem;
    margin-bottom: 0.15rem; /* ลดอีก */
    color: #000000; /* เปลี่ยนสีให้อ่อนกว่า */
    font-weight: 500; /* หนาปานกลาง */
    line-height: 1.5; /* ปรับบรรทัด */
}

/* เฉพาะข้อความราคารางวัล */
.prize-details-outside.price {
    color: #1976d2;
}

/* Heading modern blue */
h2, .card-title {
    color: #1976d2 !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
}

.card-title {
    font-size: 1rem; /* ลดจาก 1.08rem */
}

.card-text {
    color: #1976d2 !important;
    font-weight: 600 !important;
}



/* Large screens above 1200px - reduce sizes further */
@media (min-width: 767px) {
  .banner-carousel-img {
    max-width: 400px !important; /* ลดจาก 480px สำหรับจอใหญ่ */
  }

  .prize-title {
    font-size: 0.95rem !important; /* ลดจาก 1rem */
  }
  .prize-details {
    font-size: 0.8rem !important; /* ลดจาก 0.85rem */
  }
  .prizes-section {
    max-width: 600px; /* จำกัดความกว้างของ section */
    margin: 0 auto; /* จัดกลาง */
  }

  .prize-banner-img,
  .campaign-banner-img {
    max-width: 570px !important;
    width: 100% !important;
  }
}


   
.campaign-info-card {
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 4px 18px 0 rgba(25,118,210,0.08);
    padding: 1.25rem 1rem 1rem 1rem;
    margin-top: 3rem; /* เพิ่มระยะห่างขอบบน */
    margin-bottom: 0.5rem;
    border: 1px solid #f2f6fa;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 570px;
}

.campaign-info-card h5 {
    margin-bottom: 0.75rem;
    color: #1976d2;
    font-weight: 700;
    font-size: 1.08rem;
    letter-spacing: 0.01em;
}

.campaign-info-card .mb-2 {
    color: #222;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.campaign-info-card .text-muted {
    color: #789;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}
.campaign-info-card h5 {
    margin-bottom: 0.75rem;
    color: #1976d2;
    font-weight: 700;
    font-size: 1.08rem;
    letter-spacing: 0.01em;
}

.campaign-info-card .mb-2 {
    color: #222;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.campaign-info-card .text-muted {
    color: #789;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* New styles for Facebook Lite carousel indicators and arrows */
.carousel-indicators.fb-lite-indicators {
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 3;
  position: absolute;
}

.carousel-indicators.fb-lite-indicators [data-bs-target] {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #d0d4db;
  border: none;
  opacity: 1;
  box-shadow: none;
  transition: background 0.2s;
}

.carousel-indicators.fb-lite-indicators .active {
  background: #1976d2;
  border: none;
  opacity: 1;
}

/* Hover effect for banners and images */
.banner-carousel-img:hover,
.prize-banner-img:hover,
.campaign-banner-img:hover,
.prize-img:hover {
  transform: scale(1.090);
  box-shadow: 0 24px 56px -12px rgba(25, 118, 210, 0.18), 0 2px 8px rgba(33,150,243,.18);
  transition: transform 0.18s cubic-bezier(.4,0,.2,1), box-shadow 0.18s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
}
.banner-img:hover {
  transform: scale(1.04);
  box-shadow: 0 16px 40px -8px rgba(0,0,0,0.32);
  transition: transform 0.18s cubic-bezier(.4,0,.2,1), box-shadow 0.18s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
}
/* Ensure transition for normal state */
.banner-carousel-img,
.banner-img,
.prize-banner-img,
.campaign-banner-img,
.prize-img {
  transition: transform 0.18s cubic-bezier(.4,0,.2,1), box-shadow 0.18s cubic-bezier(.4,0,.2,1);
}

/* กรอบพื้นหลังขาวสะอาดสำหรับข้อมูลรางวัล */
.prize-info-bg {
    background: #fff;
    border: 1.5px solid #f2f6fa;
    border-radius: 1.1rem;
    box-shadow: 0 2px 12px 0 rgba(25,118,210,0.04);
    padding: 0.75rem 0.5rem 0.5rem 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    width: 96%;
    max-width: 340px;
    display: inline-block;
}
@media (max-width: 500px) {
    .prize-info-bg {
        width: 99%;
        max-width: 99%;
        padding: 0.65rem 0.3rem 0.4rem 0.3rem;
    }
}

/* กล่องสิทธิ์ลุ้นรางวัลของคุณ ตรงกลางด้านบน banner prize */
.rights-count-minimal-center {
    position: absolute;
    top: -1.2rem; /* ขยับขึ้นเหนือ banner */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.92); /* เพิ่มโปร่งใส */
    border: 1px solid #e3eaf3;
    border-radius: 1rem;
    box-shadow: 0 2px 12px 0 rgba(25,118,210,0.04);
    padding: 0.28rem 0.8rem 0.28rem 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    max-width: 180px;
    backdrop-filter: blur(2px);
}
.rights-count-minimal-center .rights-label {
    font-size: 0.85rem;
    color: #1976d2;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 0.08rem;
    white-space: nowrap;
    opacity: 0.85;
}
.rights-count-minimal-center .rights-value {
    font-size: 1.15rem;
    color: #222;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.05rem;
}
@media (max-width: 500px) {
    .rights-count-minimal-center {
        top: -0.7rem;
        padding: 0.18rem 0.5rem 0.18rem 0.5rem;
        min-width: 60px;
        max-width: 99vw;
    }
    .rights-count-minimal-center .rights-value {
        font-size: 0.98rem;
    }
}

/* กล่องสิทธิ์ลุ้นรางวัลของคุณ ใต้ banner prize */
.rights-count-minimal-below {
    background: #fff;
    border: 1.5px solid #e3eaf3;
    border-radius: 1.1rem;
    box-shadow:
        0 0 0.5rem 0.1rem rgba(255,255,255,0.55), /* แสงขาวรอบนอก */
        6px 8px 18px -2px rgba(25,118,210,0.10),   /* เงาซ้ายล่าง */
        0 2px 8px 0 rgba(25,118,210,0.04);         /* เงาเบาๆ */
    padding: 0.55rem 1.2rem 0.55rem 1.2rem;
    margin: 0.2rem auto 0.8rem auto;
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.25s cubic-bezier(.4,0,.2,1), transform 0.18s cubic-bezier(.4,0,.2,1);
}
.rights-count-minimal-below:hover {
    box-shadow:
        0 0 1.2rem 0.2rem rgba(255,255,255,0.65),
        10px 14px 32px -4px rgba(25,118,210,0.16),
        0 4px 16px 0 rgba(25,118,210,0.08);
    transform: scale(1.04);
}

@media (max-width: 500px) {
    .rights-count-minimal-below {
        padding: 0.38rem 0.7rem 0.38rem 0.7rem;
    }
    .rights-count-minimal-below .rights-value {
        font-size: 1.08rem;
    }
}

/* กล่องสิทธิ์ลุ้นรางวัลของคุณ แบบกว้าง */
.rights-count-wide {
    background: #fff;
    border: 1.5px solid #e3eaf3;
    border-radius: 1.25rem;
    box-shadow:
        0 0 0.5rem 0.1rem rgba(255,255,255,0.55),
        6px 8px 18px -2px rgba(25,118,210,0.10),
        0 2px 8px 0 rgba(25,118,210,0.04);
    padding: 0.85rem 1.1rem 0.85rem 1.1rem; /* ลด padding */
    margin: 2rem auto 0.8rem auto;
    width: 100%;
    max-width: 260px; /* ลดจาก 420px */
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.25s cubic-bezier(.4,0,.2,1), transform 0.18s cubic-bezier(.4,0,.2,1);
}
.rights-count-wide:hover {
    box-shadow:
        0 0 1.2rem 0.2rem rgba(255,255,255,0.65),
        10px 14px 32px -4px rgba(25,118,210,0.16),
        0 4px 16px 0 rgba(25,118,210,0.08);
    transform: scale(1.03);
}
.rights-label-wide {
    font-size: 1.15rem;
    color: #222;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.18rem;
    white-space: nowrap;
}
.rights-value-wide {
    font-size: 2.1rem;
    color: #1976d2;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 0.1rem;
    text-shadow: 0 2px 12px #90caf944;
}
@media (max-width: 500px) {
    .rights-count-wide {
        padding: 0.55rem 0.5rem 0.55rem 0.5rem;
        max-width: 50vw; /* ลดจาก 90vw */
    }
    .rights-label-wide {
        font-size: 1rem;
    }
    .rights-value-wide {
        font-size: 1.25rem;
    }
}

/* ช่องทางการซื้อสินค้า (copy from submit-point) */
.shop-channel-section-home {
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
}
.shop-channel-title {
    font-size: 1.08rem;
    color: #1976d2;
    font-weight: 600;
    margin-bottom: 0.18rem;
    letter-spacing: 0.01em;
    font-family: 'Segoe UI', 'Arial', sans-serif;
}
.shop-channel-icons {
    margin-bottom: 18px;
    gap: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.shop-channel-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 14px; 
    overflow: hidden;
    padding: 0;
    margin: 0 4px;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.13);
    background: #fafdff;
    transition: box-shadow .18s, transform .18s;
}
.shop-channel-icon-link:hover {
    box-shadow: 0 0 8px rgba(25,118,210,0.18);
    transform: translateY(-2px) scale(1.07);
    background: #e3f0ff;
}
.shop-channel-icon-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
    display: block;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}




