/* style/contact.css */

/* Biến CSS cho màu sắc và khoảng cách */
:root {
    --by88club-primary-color: #003366;
    --by88club-secondary-color: #FFCC00;
    --by88club-text-dark: #333333;
    --by88club-text-light: #ffffff;
    --by88club-bg-light: #f9f9f9;
    --by88club-bg-dark: #002244; /* slightly darker primary for contrast */
    --by88club-border-color: #e0e0e0;
}

/* Base styles for the contact page */
.page-contact {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--by88club-text-dark); /* Default text color for light backgrounds */
    background-color: var(--by88club-bg-light);
}

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

/* Sections */
.page-contact__section-title {
    font-size: 2.5em;
    color: var(--by88club-primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-contact__section-description {
    font-size: 1.1em;
    color: var(--by88club-text-dark);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__text-block {
    font-size: 1em;
    margin-bottom: 20px;
    text-align: justify;
}

/* Color themes for sections */
.page-contact__light-bg {
    background-color: var(--by88club-bg-light);
    color: var(--by88club-text-dark);
    padding: 60px 0;
}

.page-contact__dark-section {
    background-color: var(--by88club-primary-color);
    color: var(--by88club-text-light);
    padding: 60px 0;
}

.page-contact__dark-section .page-contact__section-title,
.page-contact__dark-section .page-contact__section-description,
.page-contact__dark-section .page-contact__text-block {
    color: var(--by88club-text-light);
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-contact__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-contact__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-contact__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
    color: var(--by88club-text-light);
}

.page-contact__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    color: var(--by88club-secondary-color); /* Use secondary color for emphasis */
}

.page-contact__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    box-sizing: border-box;
}

.page-contact__btn-primary {
    background-color: var(--by88club-secondary-color);
    color: var(--by88club-primary-color); /* Dark text on bright background */
    border: 2px solid var(--by88club-secondary-color);
}

.page-contact__btn-primary:hover {
    background-color: #e6b800; /* Slightly darker gold on hover */
    border-color: #e6b800;
}

.page-contact__btn-secondary {
    background-color: transparent;
    color: var(--by88club-secondary-color);
    border: 2px solid var(--by88club-secondary-color);
}

.page-contact__btn-secondary:hover {
    background-color: var(--by88club-secondary-color);
    color: var(--by88club-primary-color);
}

.page-contact__btn-text {
    color: var(--by88club-primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    display: block; /* Ensure it takes full width in card */
    margin-top: 10px;
}

.page-contact__btn-text:hover {
    color: var(--by88club-secondary-color);
    text-decoration: underline;
}

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

.page-contact__channel-card,
.page-contact__issue-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark section cards */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px; /* Ensure cards have similar height */
}

.page-contact__issue-card {
    background-color: var(--by88club-text-light); /* White background for light section cards */
    color: var(--by88club-text-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__channel-card:hover,
.page-contact__issue-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-contact__channel-icon {
    max-width: 150px; /* Larger icons */
    height: auto;
    margin: 0 auto 20px auto;
    display: block;
    border-radius: 8px; /* Slightly rounded images */
    min-width: 200px; /* Ensure min size */
    min-height: 200px;
    object-fit: cover;
}

.page-contact__channel-title,
.page-contact__issue-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--by88club-secondary-color);
}

.page-contact__issue-title {
    color: var(--by88club-primary-color);
}

.page-contact__channel-text,
.page-contact__issue-text {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Video Section */
.page-contact__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    margin-top: 40px;
}

.page-contact__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    cursor: pointer; /* Indicate clickability */
}

/* FAQ Section */
.page-contact__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__faq-item {
    background-color: var(--by88club-text-light);
    border: 1px solid var(--by88club-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #f0f0f0;
    transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
    background-color: #e8e8e8;
}

.page-contact__faq-title {
    font-size: 1.2em;
    color: var(--by88club-primary-color);
    margin: 0;
    flex-grow: 1;
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--by88club-secondary-color);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg); /* Plus to X */
}

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: var(--by88club-text-dark);
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px 25px;
}

.page-contact__faq-answer p {
    margin: 0;
}

/* Contact Form */
.page-contact__contact-form {
    max-width: 700px;
    margin: 40px auto 0 auto;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__form-group {
    margin-bottom: 20px;
}

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--by88club-text-light);
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--by88club-secondary-color);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--by88club-text-dark);
    font-size: 1em;
    box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: #888;
}

.page-contact__form-textarea {
    resize: vertical;
}

.page-contact__form-submit-btn {
    width: auto;
    padding: 15px 40px;
    margin-top: 20px;
    font-size: 1.2em;
}

/* Final CTA Section */
.page-contact__cta-section {
    text-align: center;
    padding: 80px 0;
}

.page-contact__final-cta {
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 2.8em;
    }
    .page-contact__hero-description {
        font-size: 1.1em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__channel-card,
    .page-contact__issue-card {
        min-height: 320px;
    }
}

@media (max-width: 768px) {
    .page-contact {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-contact__container {
        padding: 15px;
    }
    .page-contact__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-contact__hero-title {
        font-size: 2.2em;
    }
    .page-contact__hero-description {
        font-size: 1em;
    }
    .page-contact__section-title {
        font-size: 1.8em;
    }
    .page-contact__section-description {
        font-size: 0.95em;
    }
    .page-contact__channels-grid,
    .page-contact__issues-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-contact__channel-card,
    .page-contact__issue-card {
        padding: 25px;
        min-height: auto;
    }
    .page-contact__channel-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-contact__video-wrapper {
        padding-bottom: 75%; /* More square aspect ratio for mobile if needed, or keep 16:9 */
    }
    .page-contact__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-contact__faq-question {
        padding: 15px 20px;
    }
    .page-contact__faq-title {
        font-size: 1.1em;
    }
    .page-contact__faq-answer {
        padding: 0 20px;
    }
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 15px 20px 20px 20px;
    }
    .page-contact__contact-form {
        padding: 30px 20px;
    }
    /* Ensure all images within .page-contact are responsive */
    .page-contact img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* All containers must adapt */
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__video-section,
    .page-contact__video-container,
    .page-contact__video-wrapper,
    .page-contact__cta-buttons,
    .page-contact__button-group,
    .page-contact__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    /* Buttons responsive */
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact a[class*="button"],
    .page-contact a[class*="btn"] {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      white-space: normal !important;
      word-wrap: break-word !important;
      padding-left: 15px;
      padding-right: 15px;
    }
    .page-contact__cta-buttons {
        display: flex;
        flex-direction: column; 
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 1.8em;
    }
    .page-contact__hero-description {
        font-size: 0.9em;
    }
    .page-contact__hero-cta {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-contact__section-title {
        font-size: 1.5em;
    }
    .page-contact__form-submit-btn {
        width: 100%;
    }
}