/* style/about.css */

/* Biến màu sắc */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --bg-color-main: #08160F;
    --bg-color-card: #11271B;
    --text-color-main: #F2FFF6;
    --text-color-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-about {
    font-family: 'Arial', sans-serif;
    color: var(--text-color-main); /* Mặc định chữ sáng trên nền tối */
    background-color: var(--bg-color-main);
    line-height: 1.6;
}

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

.page-about__section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.page-about__section-title {
    font-size: 2.5em;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.page-about__sub-title {
    font-size: 1.8em;
    color: var(--primary-color);
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-about__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--text-color-secondary);
    text-align: justify;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Nhỏ để tránh bị header đè */
    padding-bottom: 60px;
    overflow: hidden;
}

.page-about__hero-image {
    width: 100%;
    height: 600px; /* Kích thước hiển thị */
    object-fit: cover;
    display: block;
    margin-bottom: 40px;
    border-radius: 8px;
}

.page-about__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.page-about__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em);
    color: var(--gold-color);
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-about__hero-description {
    font-size: 1.3em;
    color: var(--text-color-main);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-about__btn-primary {
    background: var(--button-gradient);
    color: var(--text-color-main);
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-about__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

.page-about__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-color-main);
    transform: translateY(-3px);
}

.page-about__image-content {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Values Section */
.page-about__values-section {
    background-color: var(--bg-color-card);
    padding: 80px 0;
}

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

.page-about__card {
    background-color: var(--deep-green-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__card-title {
    font-size: 1.5em;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__card-text {
    color: var(--text-color-secondary);
    font-size: 1em;
}

/* Offerings Section */
.page-about__offerings-section {
    background-color: var(--bg-color-main);
}

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

.page-about__feature-item {
    background-color: var(--bg-color-card);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__image-feature {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-about__feature-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__feature-description {
    color: var(--text-color-secondary);
    font-size: 0.95em;
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-about__feature-item .page-about__btn-secondary {
    margin-top: auto;
    align-self: center;
    width: fit-content;
}

.page-about__cta-block {
    text-align: center;
    margin-top: 60px;
    background-color: var(--deep-green-color);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.page-about__cta-text {
    font-size: 1.4em;
    color: var(--text-color-main);
    margin-bottom: 30px;
    font-weight: bold;
}

/* Security Section (Dark Background) */
.page-about__dark-section {
    background-color: var(--deep-green-color);
    color: var(--text-color-main);
}

.page-about__dark-section .page-about__section-title {
    color: var(--gold-color);
}

.page-about__dark-section .page-about__text-block {
    color: var(--text-color-secondary);
}

.page-about__security-list,
.page-about__promotion-highlights,
.page-about__support-channels,
.page-about__responsible-gambling-tips {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-about__security-item,
.page-about__promotion-item,
.page-about__support-item,
.page-about__tip-item {
    background-color: var(--bg-color-card);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
    color: var(--text-color-main);
    font-size: 1.05em;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-about__security-item strong {
    color: var(--gold-color);
}

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

.page-about__faq-list {
    margin-top: 40px;
}

.page-about__faq-item {
    background-color: var(--bg-color-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2em;
    color: var(--primary-color);
    font-weight: bold;
    background-color: var(--deep-green-color);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-question {
    background-color: var(--primary-color);
    color: var(--text-color-main);
}

.page-about__faq-item[open] .page-about__faq-toggle {
    color: var(--text-color-main);
}

.page-about__faq-question:hover {
    background-color: var(--primary-color);
    color: var(--text-color-main);
}

.page-about__faq-qtext {
    flex-grow: 1;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: var(--gold-color);
    line-height: 1;
}

.page-about__faq-answer {
    padding: 20px;
    font-size: 1.05em;
    color: var(--text-color-secondary);
}

.page-about__faq-answer p {
    margin-bottom: 10px;
    color: var(--text-color-secondary);
}

.page-about__faq-link {
    color: var(--gold-color);
    text-decoration: underline;
}

.page-about__faq-link:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-image {
        height: 500px;
    }

    .page-about__section-title {
        font-size: 2em;
    }

    .page-about__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }

    .page-about__hero-description {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-about__container {
        padding: 0 15px;
    }

    .page-about__section {
        padding: 40px 0;
    }

    .page-about__hero-section {
        padding-bottom: 40px;
        padding-top: 10px !important; /* body đã có padding-top, đây chỉ là khoảng cách nhỏ */
    }

    .page-about__hero-image {
        height: 350px;
        margin-bottom: 30px;
    }

    .page-about__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }

    .page-about__hero-description {
        font-size: 1em;
    }

    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-about__sub-title {
        font-size: 1.5em;
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .page-about__text-block {
        font-size: 0.95em;
    }

    .page-about__card-grid {
        grid-template-columns: 1fr;
    }

    .page-about__feature-list {
        grid-template-columns: 1fr;
    }

    .page-about__cta-block {
        padding: 30px;
        margin-top: 40px;
    }

    .page-about__cta-text {
        font-size: 1.2em;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-bottom: 10px; /* Thêm khoảng cách nếu có nhiều nút */
    }
    
    .page-about__cta-block .page-about__btn-primary {
        margin-left: auto;
        margin-right: auto;
    }

    .page-about__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }

    .page-about__faq-answer {
        padding: 15px;
        font-size: 0.95em;
    }

    /* Mobile image responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-section,
    .page-about__hero-content,
    .page-about__cta-block,
    .page-about__feature-item,
    .page-about__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about__values-section .page-about__container,
    .page-about__offerings-section .page-about__container,
    .page-about__security-section .page-about__container,
    .page-about__promotions-section .page-about__container,
    .page-about__responsible-gambling-section .page-about__container,
    .page-about__faq-section .page-about__container {
        padding-left: 0;
        padding-right: 0;
    }
    .page-about__cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-about__hero-image {
        height: 250px;
    }

    .page-about__main-title {
        font-size: clamp(1.5em, 7vw, 2.2em);
    }

    .page-about__section-title {
        font-size: 1.5em;
    }
    
    .page-about__hero-section {
        padding-left: 0;
        padding-right: 0;
    }
    
    .page-about__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
}