/* style/about.css */

/* Custom Colors */
:root {
    --page-about-primary-color: #C91F17;
    --page-about-secondary-color: #E53935;
    --page-about-button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    --page-about-card-bg: #D32F2F;
    --page-about-background: #B71C1C;
    --page-about-text-main: #FFF5E1;
    --page-about-border-color: #F2B544;
    --page-about-glow-color: #FFCC66;
    --page-about-gold-color: #F4D34D;
    --page-about-deep-red: #7A0E0E;
    --page-about-dark-text: #333333;
    --page-about-light-text: #ffffff;
}

.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--page-about-text-main); /* Default text color for the page, assuming dark background */
    background-color: var(--page-about-background); /* Main background color */
}

/* Hero Section */
.page-about__hero-section {
    display: flex;
    flex-direction: column; /* Ensure image is above content initially */
    align-items: center;
    text-align: center;
    padding: 10px 20px 60px;
    position: relative;
    overflow: hidden;
    background-color: var(--page-about-deep-red);
}

.page-about__hero-image-container {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-about__hero-content {
    max-width: 900px;
    z-index: 1;
    position: relative;
}

.page-about__hero-title {
    font-size: 2.8em;
    font-weight: bold;
    line-height: 1.2;
    color: var(--page-about-gold-color);
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    max-width: 100%;
}

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

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    min-width: 180px;
    max-width: 100%;
}

.page-about__btn-primary {
    background: var(--page-about-button-gradient);
    color: var(--page-about-dark-text);
    border: 2px solid var(--page-about-gold-color);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

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

.page-about__btn-secondary {
    background: transparent;
    color: var(--page-about-gold-color);
    border: 2px solid var(--page-about-gold-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-about__btn-secondary:hover {
    background: var(--page-about-gold-color);
    color: var(--page-about-dark-text);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* General Section Styles */
.page-about__intro-section,
.page-about__security-section,
.page-about__products-section,
.page-about__promotions-section,
.page-about__support-section,
.page-about__responsible-gaming-section,
.page-about__future-section,
.page-about__faq-section {
    padding: 80px 20px;
    background-color: var(--page-about-background);
    color: var(--page-about-text-main);
}

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

.page-about__section-title {
    font-size: 2.2em;
    font-weight: bold;
    color: var(--page-about-gold-color);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.page-about__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--page-about-gold-color);
    border-radius: 2px;
}

.page-about__text-block {
    font-size: 1.05em;
    margin-bottom: 25px;
    color: var(--page-about-text-main);
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__image-block {
    text-align: center;
    margin: 40px auto;
    max-width: 800px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-about__content-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

/* Security Section Specifics */
.page-about__security-list,
.page-about__contact-list,
.page-about__responsibility-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 40px 0;
}

.page-about__security-item,
.page-about__contact-item,
.page-about__responsibility-item {
    background-color: var(--page-about-card-bg);
    border-radius: 10px;
    padding: 30px;
    flex: 1 1 calc(33% - 40px);
    max-width: calc(33% - 40px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    min-width: 280px;
}

.page-about__security-item-title,
.page-about__contact-item-title,
.page-about__responsibility-item-title {
    font-size: 1.4em;
    color: var(--page-about-gold-color);
    margin-bottom: 15px;
}

.page-about__security-item p,
.page-about__contact-item p,
.page-about__responsibility-item p {
    font-size: 1em;
    color: var(--page-about-text-main);
}

/* Products Section Specifics */
.page-about__product-grid,
.page-about__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-about__product-card,
.page-about__promo-card {
    background-color: var(--page-about-card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
}

.page-about__product-card:hover,
.page-about__promo-card:hover {
    transform: translateY(-5px);
}

.page-about__product-image,
.page-about__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-about__product-title,
.page-about__promo-title {
    font-size: 1.3em;
    color: var(--page-about-gold-color);
    margin: 20px 15px 10px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-about__product-title a,
.page-about__promo-title a {
    color: inherit;
    text-decoration: none;
}

.page-about__product-title a:hover,
.page-about__promo-title a:hover {
    text-decoration: underline;
}

.page-about__product-description,
.page-about__promo-description {
    font-size: 0.95em;
    color: var(--page-about-text-main);
    padding: 0 15px 20px;
    min-height: 80px;
}

.page-about__cta-center {
    text-align: center;
    margin-top: 40px;
}

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

.page-about__faq-item {
    background-color: var(--page-about-card-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    color: var(--page-about-text-main);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: var(--page-about-gold-color);
    cursor: pointer;
    background-color: var(--page-about-deep-red);
    border-bottom: 1px solid var(--page-about-border-color);
    list-style: none;
}

.page-about__faq-question::-webkit-details-marker {
    display: none;
}

.page-about__faq-question::marker {
    display: none;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--page-about-gold-color);
}

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg);
}

.page-about__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: var(--page-about-text-main);
}

.page-about__faq-answer p {
    margin-bottom: 0;
}

/* Color Contrast Enforcement */
.page-about__dark-section {
    background: var(--page-about-primary-color);
    color: var(--page-about-light-text);
}

.page-about__card {
    background: var(--page-about-card-bg);
    color: var(--page-about-text-main);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 2.4em;
    }

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

    .page-about__security-item,
    .page-about__contact-item,
    .page-about__responsibility-item {
        flex: 1 1 calc(48% - 20px);
        max-width: calc(48% - 20px);
    }
}

@media (max-width: 768px) {
    /* General Page */
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-about__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .page-about__intro-section,
    .page-about__security-section,
    .page-about__products-section,
    .page-about__promotions-section,
    .page-about__support-section,
    .page-about__responsible-gaming-section,
    .page-about__future-section,
    .page-about__faq-section {
        padding: 50px 0;
    }

    /* Hero Section */
    .page-about__hero-section {
        padding: 10px 0 40px;
        flex-direction: column;
    }

    .page-about__hero-image {
        object-fit: contain !important;
        aspect-ratio: unset !important;
        max-height: none !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-about__hero-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-about__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box !important;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* General Images and Containers */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__image-block,
    .page-about__product-card,
    .page-about__promo-card,
    .page-about__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    /* List Items (Security, Contact, Responsibility) */
    .page-about__security-item,
    .page-about__contact-item,
    .page-about__responsibility-item {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 25px;
    }

    /* Product/Promotion Grid */
    .page-about__product-grid,
    .page-about__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__product-image,
    .page-about__promo-image {
        height: auto;
        min-height: 200px;
    }

    .page-about__product-title,
    .page-about__promo-title {
        font-size: 1.2em;
        min-height: unset;
    }

    .page-about__product-description,
    .page-about__promo-description {
        font-size: 0.9em;
        min-height: unset;
    }

    /* FAQ */
    .page-about__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-about__faq-answer {
        padding: 10px 20px 15px;
    }
}