/* style/about.css */

/* Variables (if any, though main colors are from shared) */
:root {
    --primary-color: #0A192F;
    --secondary-color: #FFD700;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --bg-dark: #0A192F;
    --border-color: #e0e0e0;
}

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

/* Section styling */
.page-about__section-title {
    font-size: 36px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-about__sub-title {
    font-size: 28px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.page-about__text-block {
    font-size: 17px;
    margin-bottom: 20px;
    line-height: 1.7;
    text-align: justify;
}

.page-about__text-block--center {
    text-align: center;
}

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

/* Hero Section */
.page-about__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); /* Ensures content is not hidden by fixed header */
    background: linear-gradient(135deg, var(--primary-color) 0%, #000000 100%); /* Darker background for hero */
    color: var(--text-light);
}

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

.page-about__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

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

.page-about__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-about__hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 1.1;
}

.page-about__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

/* CTA Buttons */
.page-about__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--primary-color); /* Gold button with dark text */
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    border: none; /* Ensure no default border */
}

.page-about__cta-button:hover {
    background: #e0b800; /* Slightly darker gold on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-about__cta-button--secondary {
    background: var(--primary-color);
    color: var(--secondary-color); /* Dark button with gold text */
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(10, 25, 47, 0.4);
}

.page-about__cta-button--secondary:hover {
    background: #1a3357; /* Slightly lighter dark blue on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(10, 25, 47, 0.6);
}

.page-about__cta-button--wide {
    min-width: 280px;
}

/* General Section Backgrounds */
.page-about__light-bg {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

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

/* Mission & Vision Section */
.page-about__mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-about__mission-card,
.page-about__vision-card {
    background: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: var(--text-light);
}

.page-about__mission-card .page-about__card-title,
.page-about__vision-card .page-about__card-title {
    color: var(--secondary-color);
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Why Choose Us Section */
.page-about__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-about__feature-card {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-about__feature-card p {
    font-size: 16px;
    line-height: 1.6;
}

/* Security & Responsible Gaming Section */
.page-about__two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.page-about__two-col-grid--reverse {
    direction: rtl; /* Reverse order for content/image */
}

.page-about__two-col-grid--reverse .page-about__content-column {
    direction: ltr; /* Ensure text direction is normal */
}
.page-about__two-col-grid--reverse .page-about__image-column {
    direction: ltr; /* Ensure image direction is normal */
}

.page-about__content-column p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.page-about__image-column img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-about__text-link {
    color: var(--secondary-color);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-about__text-link:hover {
    color: #e0b800;
}

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

.page-about__product-card {
    background: var(--bg-light);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__product-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-about__product-card .page-about__card-title {
    padding: 15px 20px 0;
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 600;
    flex-grow: 1; /* Allow title to take available space */
}

.page-about__product-card .page-about__card-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-about__product-card .page-about__card-title a:hover {
    color: var(--secondary-color);
}

.page-about__product-card p {
    padding: 0 20px 15px;
    font-size: 15px;
    line-height: 1.5;
    color: #555555;
}

.page-about__product-card .page-about__btn-primary {
    display: block;
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    padding: 12px 20px;
    text-align: center;
    font-size: 16px;
    border-radius: 6px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-about__product-card .page-about__btn-primary:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

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

.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.page-about__faq-question:hover {
    background: #f8f8f8;
    border-color: #d0d0d0;
}

.page-about__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; /* Prevent h3 from blocking click event */
}

.page-about__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 icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.page-about__faq-item.active .page-about__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

.page-about__faq-item.active .page-about__faq-question h3 {
    color: var(--text-light);
}

.page-about__faq-item.active .page-about__faq-toggle {
    color: var(--secondary-color);
    transform: rotate(45deg); /* Optional: rotate for 'x' effect, or just change text */
}

.page-about__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.3s ease;
    padding: 0 25px;
    opacity: 0;
    background: #f9f9f9;
    color: var(--text-dark);
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 2000px !important; /* IMPORTANT: Ensure this value is large enough */
    padding: 20px 25px !important;
    opacity: 1;
    border-radius: 0 0 8px 8px;
    border: 1px solid var(--border-color);
    border-top: none;
}

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

/* Image styling for content areas */
.page-about__image-block {
    margin: 30px 0;
    text-align: center;
}

.page-about__image-block img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 42px;
    }
    .page-about__hero-description {
        font-size: 18px;
    }
    .page-about__section-title {
        font-size: 30px;
    }
    .page-about__sub-title {
        font-size: 24px;
    }
    .page-about__mission-vision-grid,
    .page-about__two-col-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .page-about__two-col-grid--reverse {
        direction: ltr; /* Reset direction for mobile */
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__container {
        padding: 30px 15px;
    }

    /* Hero Section */
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile specific padding top */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-about__hero-description {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-about__hero-image img {
        border-radius: 8px;
    }

    /* CTA Buttons Mobile */
    .page-about__cta-button,
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about a[class*="button"],
    .page-about 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: 12px 15px;
        font-size: 16px;
        margin-top: 20px;
    }
    .page-about__cta-button--wide {
        min-width: unset; /* Remove min-width for mobile */
    }

    /* Button containers */
    .page-about__cta-buttons,
    .page-about__button-group,
    .page-about__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0; /* Handled by container padding */
        padding-right: 0; /* Handled by container padding */
        overflow: hidden;
        display: flex; /* Ensure buttons wrap if needed */
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px; /* Spacing between stacked buttons */
    }


    /* Image Responsive */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-about__section,
    .page-about__card,
    .page-about__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about__section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    .page-about__sub-title {
        font-size: 22px;
    }
    .page-about__text-block {
        font-size: 16px;
    }

    /* Mission & Vision Mobile */
    .page-about__mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-about__mission-card,
    .page-about__vision-card {
        padding: 20px;
        border-radius: 8px;
    }
    .page-about__mission-card .page-about__card-title,
    .page-about__vision-card .page-about__card-title {
        font-size: 20px;
    }

    /* Why Choose Us Mobile */
    .page-about__feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-about__feature-card {
        padding: 20px;
        border-radius: 8px;
    }
    .page-about__feature-card .page-about__card-title {
        font-size: 18px;
    }

    /* Security & Responsible Gaming Mobile */
    .page-about__two-col-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }

    /* Products Mobile */
    .page-about__product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-about__product-card {
        border-radius: 8px;
    }
    .page-about__product-card img {
        
    }
    .page-about__product-card .page-about__card-title {
        font-size: 18px;
        padding: 10px 15px 0;
    }
    .page-about__product-card p {
        padding: 0 15px 10px;
        font-size: 14px;
    }
    .page-about__product-card .page-about__btn-primary {
        width: calc(100% - 30px);
        margin: 0 15px 15px;
        padding: 10px 15px;
        font-size: 15px;
    }
}