/* style/promotions-deposit-bonus.css */

/* General page styling */
.page-promotions-deposit-bonus {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text on light background */
    background-color: #FFFFFF; /* Explicitly set body background to white */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-promotions-deposit-bonus__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-promotions-deposit-bonus__container--center {
    text-align: center;
}

.page-promotions-deposit-bonus__section {
    padding: 60px 0;
    margin-bottom: 20px;
}

.page-promotions-deposit-bonus__section:nth-of-type(even) {
    background-color: #f8f8f8; /* Slightly off-white for contrast */
}

.page-promotions-deposit-bonus__heading {
    font-size: 36px;
    color: #017439; /* Primary color for headings */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-promotions-deposit-bonus__paragraph {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: justify;
}

.page-promotions-deposit-bonus__image {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* Hero Section */
.page-promotions-deposit-bonus__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0; /* padding-top handled by main element */
    background: linear-gradient(135deg, #017439, #000000); /* Darker gradient for hero background */
    color: #ffffff;
    overflow: hidden;
}

.page-promotions-deposit-bonus__hero-container {
    position: relative;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-promotions-deposit-bonus__hero-image {
    width: 100%;
    position: relative;
    z-index: 1;
}

.page-promotions-deposit-bonus__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 0;
}

.page-promotions-deposit-bonus__hero-content {
    position: absolute;
    z-index: 2;
    text-align: center;
    width: 80%;
    max-width: 900px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
    border-radius: 10px;
}

.page-promotions-deposit-bonus__hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFFF00; /* Bright yellow for emphasis */
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions-deposit-bonus__hero-description {
    font-size: 22px;
    margin-bottom: 30px;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-promotions-deposit-bonus__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: 2px solid #FFFF00;
}

.page-promotions-deposit-bonus__cta-button:hover {
    background: #a10707;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: #ffffff;
}

.page-promotions-deposit-bonus__cta-button--small {
    font-size: 16px;
    padding: 12px 30px;
    margin-top: 15px;
}

.page-promotions-deposit-bonus__cta-button--large {
    font-size: 22px;
    padding: 18px 50px;
    margin-top: 30px;
}

/* Card Grid */
.page-promotions-deposit-bonus__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions-deposit-bonus__card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions-deposit-bonus__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-promotions-deposit-bonus__card-title {
    font-size: 22px;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.3;
}

.page-promotions-deposit-bonus__card-text {
    font-size: 16px;
    color: #555555;
    text-align: justify;
}

/* Lists */
.page-promotions-deposit-bonus__list,
.page-promotions-deposit-bonus__numbered-list {
    list-style-type: none;
    padding: 0;
    margin: 30px 0;
}

.page-promotions-deposit-bonus__list-item {
    background-color: #fdfdfd;
    border-left: 5px solid #017439;
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-size: 17px;
    color: #444444;
}

.page-promotions-deposit-bonus__list-item strong {
    color: #017439;
}

.page-promotions-deposit-bonus__link-in-text {
    color: #017439;
    text-decoration: underline;
}

.page-promotions-deposit-bonus__link-in-text:hover {
    color: #005f2c;
    text-decoration: none;
}

.page-promotions-deposit-bonus__numbered-list {
    counter-reset: my-awesome-counter;
}

.page-promotions-deposit-bonus__numbered-list .page-promotions-deposit-bonus__list-item {
    position: relative;
    padding-left: 60px;
    background-color: #fdfdfd;
    border-left: none;
}

.page-promotions-deposit-bonus__numbered-list .page-promotions-deposit-bonus__list-item::before {
    counter-increment: my-awesome-counter;
    content: counter(my-awesome-counter) ".";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #017439;
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

/* FAQ Section */
.page-promotions-deposit-bonus__faq {
    background-color: #f8f8f8;
    padding: 60px 0;
}

.page-promotions-deposit-bonus__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

/* FAQ容器样式 */
.page-promotions-deposit-bonus__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* FAQ默认状态 - 答案隐藏 */
.page-promotions-deposit-bonus__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  background: #ffffff;
  color: #555555;
}

/* FAQ展开状态 - 🚨 使用!important và đủ lớn max-height để đảm bảo mở rộng */
.page-promotions-deposit-bonus__faq-item.active .page-promotions-deposit-bonus__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng !important để đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px !important;
  opacity: 1;
  background: #ffffff;
  border-radius: 0 0 8px 8px;
}

/* Vấn đề kiểu dáng */
.page-promotions-deposit-bonus__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #017439; /* Primary color for question background */
  color: #ffffff; /* White text for contrast */
  border: 1px solid #017439;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  position: relative;
}

.page-promotions-deposit-bonus__faq-item.active .page-promotions-deposit-bonus__faq-question {
    border-radius: 8px 8px 0 0;
    background-color: #005f2c; /* Slightly darker when active */
}

.page-promotions-deposit-bonus__faq-question:hover {
  background: #005f2c;
  border-color: #005f2c;
}

.page-promotions-deposit-bonus__faq-question:active {
  background: #004a23;
}

/* Tiêu đề câu hỏi kiểu dáng */
.page-promotions-deposit-bonus__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn thẻ h3 chặn sự kiện click */
  color: #ffffff;
}

/* Biểu tượng chuyển đổi */
.page-promotions-deposit-bonus__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #ffffff;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Ngăn biểu tượng chặn sự kiện click */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-promotions-deposit-bonus__faq-item.active .page-promotions-deposit-bonus__faq-toggle {
  transform: rotate(45deg); /* Tùy chọn: xoay để tạo hiệu ứng 'X' */
  color: #FFFF00; /* Màu vàng khi hoạt động */
}

/* CTA Final Section */
.page-promotions-deposit-bonus__cta-final {
    background-color: #017439; /* Primary color background */
    color: #ffffff;
    padding: 80px 0;
}

.page-promotions-deposit-bonus__cta-final .page-promotions-deposit-bonus__heading {
    color: #FFFF00; /* Yellow for heading on dark background */
    margin-bottom: 30px;
}

.page-promotions-deposit-bonus__cta-final .page-promotions-deposit-bonus__paragraph {
    color: #ffffff;
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions-deposit-bonus__hero-title {
        font-size: 40px;
    }
    .page-promotions-deposit-bonus__hero-description {
        font-size: 20px;
    }
    .page-promotions-deposit-bonus__heading {
        font-size: 30px;
    }
    .page-promotions-deposit-bonus__paragraph {
        font-size: 17px;
    }
    .page-promotions-deposit-bonus__card-title {
        font-size: 20px;
    }
    .page-promotions-deposit-bonus__card-text {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .page-promotions-deposit-bonus {
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
        font-size: 16px;
        line-height: 1.6;
    }
    .page-promotions-deposit-bonus__container {
        padding: 15px;
    }
    .page-promotions-deposit-bonus__section {
        padding: 40px 0;
    }
    .page-promotions-deposit-bonus__hero-section {
        padding: 0;
    }
    .page-promotions-deposit-bonus__hero-content {
        width: 90%;
        padding: 15px;
    }
    .page-promotions-deposit-bonus__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-promotions-deposit-bonus__hero-description {
        font-size: 18px;
        margin-bottom: 20px;
    }
    .page-promotions-deposit-bonus__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        margin-top: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-promotions-deposit-bonus__cta-button--small {
        font-size: 15px;
        padding: 10px 20px;
    }
    .page-promotions-deposit-bonus__cta-button--large {
        font-size: 18px;
        padding: 15px 30px;
    }
    .page-promotions-deposit-bonus__heading {
        font-size: 26px;
        margin-bottom: 30px;
    }
    .page-promotions-deposit-bonus__paragraph {
        font-size: 16px;
    }
    .page-promotions-deposit-bonus__card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-promotions-deposit-bonus__card {
        padding: 20px;
    }
    .page-promotions-deposit-bonus__card-title {
        font-size: 18px;
    }
    .page-promotions-deposit-bonus__list-item,
    .page-promotions-deposit-bonus__numbered-list .page-promotions-deposit-bonus__list-item {
        font-size: 15px;
        padding: 15px;
        padding-left: 50px;
    }
    .page-promotions-deposit-bonus__numbered-list .page-promotions-deposit-bonus__list-item::before {
        left: 15px;
        width: 26px;
        height: 26px;
        font-size: 16px;
    }
    .page-promotions-deposit-bonus__faq-list {
        margin-top: 30px;
    }
    .page-promotions-deposit-bonus__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-promotions-deposit-bonus__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-promotions-deposit-bonus__faq-toggle {
        margin-left: 10px;
        width: 26px;
        height: 26px;
        font-size: 22px;
    }
    .page-promotions-deposit-bonus__faq-item.active .page-promotions-deposit-bonus__faq-answer {
        padding: 15px !important;
    }
    .page-promotions-deposit-bonus__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 30px auto;
    }
    .page-promotions-deposit-bonus__section,
    .page-promotions-deposit-bonus__card,
    .page-promotions-deposit-bonus__container,
    .page-promotions-deposit-bonus__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions-deposit-bonus__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-promotions-deposit-bonus__cta-buttons,
    .page-promotions-deposit-bonus__button-group,
    .page-promotions-deposit-bonus__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
    }
    .page-promotions-deposit-bonus__cta-buttons {
      display: flex;
      flex-direction: column;
    }
}

@media (max-width: 480px) {
    .page-promotions-deposit-bonus__hero-title {
        font-size: 28px;
    }
    .page-promotions-deposit-bonus__hero-description {
        font-size: 16px;
    }
    .page-promotions-deposit-bonus__heading {
        font-size: 22px;
    }
    .page-promotions-deposit-bonus__cta-button--large {
        font-size: 16px;
        padding: 12px 25px;
    }
}