/* style/support.css */

/* Custom properties for colors */
:root {
    --primary-color: #007bff; /* Deep blue */
    --secondary-color: #ffc107; /* Vibrant orange-yellow */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #121212;
    --bg-light: #f9f9f9;
    --card-bg-dark-opacity: rgba(255, 255, 255, 0.1); /* Light card on dark bg */
    --card-bg-light: #ffffff; /* Dark card on light bg */
    --border-color: #e0e0e0;
}

/* Base styles for the support page */
.page-support {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--bg-dark); /* Inherited from shared.css, just for clarity */
    padding-top: 120px; /* Desktop: Adjust for fixed header */
}

.page-support__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-support__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-support__section-intro {
    font-size: 18px;
    color: #cccccc;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-support h1, .page-support h2, .page-support h3, .page-support h4, .page-support h5, .page-support h6 {
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 15px;
}

/* Color contrast classes */
.page-support__dark-bg {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-support__light-bg {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.page-support__light-bg .page-support__section-title,
.page-support__light-bg .page-support__section-intro {
    color: var(--text-dark);
}

/* Card styles for general use */
.page-support__card {
    background: var(--card-bg-dark-opacity); /* Default for dark body bg */
    color: var(--text-light);
    border-radius: 8px;
    padding: 30px;
    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;
    align-items: center;
    text-align: center;
    height: 100%;
    box-sizing: border-box;
}

.page-support__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Specific card styles for light background sections */
.page-support__light-bg .page-support__card {
    background: var(--card-bg-light);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.page-support__light-bg .page-support__card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Button styles */
.page-support__cta-button {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    margin: 0 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-support__btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
}

.page-support__btn-primary:hover {
    background: #0056b3; /* Darker shade of primary */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-support__btn-secondary {
    background: var(--secondary-color);
    color: var(--text-dark); /* Dark text on light secondary color */
}

.page-support__btn-secondary:hover {
    background: #e0a800; /* Darker shade of secondary */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.page-support__hero-section {
    padding: 80px 0;
    text-align: center;
    background-image: url('[GALLERY:support:MB66, cá cược trực tuyến, nền tảng hỗ trợ, banner, 1920x600]');
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
}

.page-support__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Overlay for readability */
    z-index: -1;
}

.page-support__main-title {
    font-size: 48px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.page-support__hero-description {
    font-size: 20px;
    color: #f0f0f0;
    max-width: 900px;
    margin: 0 auto 40px;
}

.page-support__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Channels Section */
.page-support__channels-section {
    padding: 80px 0;
}

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

.page-support__channel-item {
    padding: 40px 25px;
}

.page-support__channel-icon {
    width: 100%; /* Ensure full width within card */
    max-width: 250px; /* Limit max size for icons */
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
    border-radius: 8px;
}

.page-support__channel-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-light); /* For dark cards */
}

.page-support__light-bg .page-support__channel-title {
    color: var(--text-dark); /* For light cards */
}

.page-support__channel-description {
    font-size: 16px;
    color: #cccccc; /* For dark cards */
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-support__light-bg .page-support__channel-description {
    color: #555555; /* For light cards */
}

.page-support__email-address,
.page-support__phone-number {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 25px;
    color: var(--secondary-color);
}

/* FAQ Section */
.page-support__faq-section {
    padding: 80px 0;
}

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

.page-support__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--card-bg-dark-opacity); /* Dark card on dark bg */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-support__faq-question:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.page-support__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-light);
    pointer-events: none; /* Prevent h3 from blocking click event on question div */
}

.page-support__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--secondary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent toggle from blocking click event on question div */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-support__faq-item.active .page-support__faq-toggle {
    color: var(--primary-color);
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

.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 20px;
    opacity: 0;
    background: rgba(0, 0, 0, 0.2); /* Slightly darker background for answer */
    border-radius: 0 0 5px 5px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.page-support__faq-item.active .page-support__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain any content */
    padding: 20px !important;
    opacity: 1;
}

.page-support__faq-answer p {
    font-size: 16px;
    color: #e0e0e0;
    margin-bottom: 15px;
}

.page-support__faq-link {
    display: inline-block;
    padding: 8px 15px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-support__faq-link:hover {
    background: #0056b3;
}

/* Guides Section */
.page-support__guides-section {
    padding: 80px 0;
}

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

.page-support__guide-item {
    padding: 25px;
}

.page-support__guide-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-support__guide-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-light); /* For dark cards */
}

.page-support__light-bg .page-support__guide-title {
    color: var(--text-dark); /* For light cards */
}

.page-support__guide-description {
    font-size: 15px;
    color: #cccccc; /* For dark cards */
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-support__light-bg .page-support__guide-description {
    color: #555555; /* For light cards */
}

/* Safety Section */
.page-support__safety-section {
    padding: 80px 0;
}

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

.page-support__safety-item {
    padding: 30px;
    text-align: left;
    align-items: flex-start;
}

.page-support__safety-icon {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
    border-radius: 5px;
}

.page-support__safety-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-dark); /* For light cards */
}

.page-support__safety-description {
    font-size: 15px;
    color: #555555; /* For light cards */
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-support__cta-bottom {
    text-align: center;
    margin-top: 50px;
}

/* Contact CTA Section */
.page-support__contact-cta-section {
    padding: 80px 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-support__main-title {
        font-size: 42px;
    }
    .page-support__section-title {
        font-size: 32px;
    }
    .page-support__hero-description,
    .page-support__section-intro {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .page-support {
        padding-top: 100px !important; /* Mobile: Adjust for fixed header */
        font-size: 16px;
        line-height: 1.6;
    }

    .page-support__container {
        padding: 0 15px;
    }

    .page-support__hero-section {
        padding: 60px 0;
    }

    .page-support__main-title {
        font-size: 36px;
    }

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

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

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

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

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

    .page-support__channels-section,
    .page-support__faq-section,
    .page-support__guides-section,
    .page-support__safety-section,
    .page-support__contact-cta-section {
        padding: 60px 0;
    }

    .page-support__channel-grid,
    .page-support__guide-grid,
    .page-support__safety-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-support__channel-item,
    .page-support__guide-item,
    .page-support__safety-item {
        padding: 25px;
    }

    .page-support__channel-title,
    .page-support__guide-title,
    .page-support__safety-title {
        font-size: 20px;
    }
    
    .page-support__channel-icon,
    .page-support__guide-image,
    .page-support__safety-icon,
    .page-support img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
      box-sizing: border-box !important;
    }

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

    .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 15px;
    }
    
    .page-support__faq-item.active .page-support__faq-answer {
        padding: 15px !important;
    }
    
    .page-support__faq-answer p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .page-support__main-title {
        font-size: 32px;
    }
    .page-support__section-title {
        font-size: 24px;
    }
    .page-support__cta-button {
        padding: 10px 15px;
        font-size: 15px;
    }
}