/* style/support.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --bg-color-light: #f9f9f9;
    --bg-color-white: #ffffff;
    --border-color: #e0e0e0;
    --login-button-color: #EA7C07;
}

.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    background: var(--bg-color-white);
}

.page-support__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px);
    background: linear-gradient(135deg, var(--primary-color) 0%, #a7e0f7 100%);
    color: var(--text-color-light);
    overflow: hidden;
}

.page-support__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.page-support__hero-image {
    width: 100%;
    margin-bottom: 30px;
    max-width: 800px; /* Limit image width in hero for better composition */
}

.page-support__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-support__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.page-support__hero-title {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-support__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color-light);
}

.page-support__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-support__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    max-width: 100%; /* Ensure button doesn't overflow */
    box-sizing: border-box;
}

.page-support__btn-primary {
    background: var(--login-button-color); /* Sử dụng màu cam cho nút chính */
    color: var(--text-color-light);
    border: 2px solid var(--login-button-color);
}

.page-support__btn-primary:hover {
    background: #e06a00;
    border-color: #e06a00;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-support__btn-secondary {
    background: var(--bg-color-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-support__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-color-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-support__section {
    padding: 60px 20px;
    text-align: center;
}

.page-support__container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-support__section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.page-support__section-intro {
    font-size: 18px;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: var(--text-color-dark);
}

/* Contact Channels Section */
.page-support__contact-channels {
    background: var(--bg-color-light);
}

.page-support__channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-support__channel-item {
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%; /* Ensure consistent height */
}

.page-support__channel-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-support__channel-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-support__channel-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-support__channel-description {
    font-size: 16px;
    color: var(--text-color-dark);
    margin-bottom: 25px;
    flex-grow: 1; /* Allow description to take available space */
}

/* FAQ Section */
.page-support__faq-section {
    background: var(--bg-color-white);
}

.page-support__faq-list {
    margin-top: 40px;
    text-align: left;
}

.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--bg-color-white);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-support__faq-question:hover {
  background: var(--bg-color-light);
}

.page-support__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none;
}

.page-support__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-support__faq-item.active .page-support__faq-toggle {
  color: var(--login-button-color);
  transform: rotate(180deg);
}

.page-support__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 25px;
  opacity: 0;
  color: var(--text-color-dark);
  background: var(--bg-color-light);
}

.page-support__faq-item.active .page-support__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  border-top: 1px solid var(--border-color);
}

.page-support__faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
}

/* Responsible Gambling Section */
.page-support__responsible-gambling {
    background: var(--primary-color);
    color: var(--text-color-light);
}

.page-support__responsible-gambling .page-support__section-title,
.page-support__responsible-gambling .page-support__section-intro {
    color: var(--text-color-light);
}

.page-support__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-support__feature-item {
    padding: 25px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15); /* Semi-transparent white background */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-support__feature-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.page-support__feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Ensure icons are white on dark background */
}

.page-support__feature-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color-light);
}

.page-support__feature-description {
    font-size: 16px;
    color: var(--text-color-light);
}

/* Security and Privacy Section */
.page-support__security-privacy {
    background: var(--bg-color-white);
}

.page-support__security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-support__security-item {
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.page-support__security-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-support__security-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-support__security-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-support__security-description {
    font-size: 16px;
    color: var(--text-color-dark);
    flex-grow: 1;
}

.page-support__btn-container {
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-support__hero-title {
        font-size: 38px;
    }

    .page-support__section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .page-support__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-support__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-support__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .page-support__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-support__hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }

    .page-support__section {
        padding: 40px 15px;
    }

    .page-support__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .page-support__section-intro {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .page-support__channels-grid,
    .page-support__features-grid,
    .page-support__security-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-support__channel-item,
    .page-support__feature-item,
    .page-support__security-item {
        padding: 25px;
    }

    .page-support__faq-question {
        padding: 15px 20px;
    }

    .page-support__faq-question h3 {
        font-size: 16px;
    }

    .page-support__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }

    .page-support__faq-answer {
        padding: 0 20px;
    }

    .page-support__faq-item.active .page-support__faq-answer {
        padding: 15px 20px !important;
    }

    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-support__section,
    .page-support__card,
    .page-support__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-support__hero-title {
        font-size: 28px;
    }

    .page-support__section-title {
        font-size: 24px;
    }

    .page-support__cta-button {
        font-size: 15px;
        padding: 10px 20px;
    }
}