/* style/about.css */

/* Custom colors from requirements */
:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    --card-bg: #17191F;
    --background-color: #0D0E12; /* This should ideally come from shared.css --bg-color */
    --text-main: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange: #D96800;
}

/* Base styles for the page content, assuming body has dark background from shared.css */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Light text for dark background */
    background-color: var(--background-color); /* Fallback if shared.css doesn't set body background */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding as per requirements */
    text-align: center;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-about__hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 20px; /* Space between image and content */
    border-radius: 8px;
}

.page-about__hero-content {
    position: relative; /* Ensure content is not absolutely positioned over image */
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.page-about__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Use clamp for H1 font size */
    color: var(--glow-color); /* Highlight H1 */
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.page-about__intro-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-main);
}

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

/* Section Titles */
.page-about__section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
}

/* Text Blocks */
.page-about__text-block {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-main);
    text-align: justify;
}

/* Cards */
.page-about__card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-main);
    transition: transform 0.3s ease;
    height: 100%; /* Ensure equal height in grid */
    display: flex;
    flex-direction: column;
}

.page-about__card:hover {
    transform: translateY(-5px);
}

.page-about__card-title {
    font-size: 1.6rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__card-text {
    font-size: 1rem;
    line-height: 1.7;
    flex-grow: 1; /* Allows text to fill space */
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Ensure padding is included in width */
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-about__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    margin: 10px;
    box-shadow: 0 5px 15px rgba(255, 140, 26, 0.4);
}

.page-about__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 140, 26, 0.6);
}

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

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

/* Images in content */
.page-about__content-image {
    width: 100%;
    max-width: 800px; /* Example max-width, adjust as needed */
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

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

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

/* Dark sections for contrast */
.page-about__dark-section {
    background-color: var(--card-bg); /* Use card background for dark sections */
    padding: 60px 20px;
}

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

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

.page-about__dark-section .page-about__link {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-about__dark-section .page-about__link:hover {
    color: var(--primary-color);
}

/* FAQ Section */
.page-about__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-about__faq-item {
    background: var(--background-color); /* Slightly darker for contrast */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-about__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
    background: var(--card-bg);
    transition: background-color 0.3s ease;
}

.page-about__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-about__faq-item summary:hover {
    background-color: rgba(255, 140, 26, 0.1);
}

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

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

.page-about__faq-item[open] .page-about__faq-toggle {
    content: "−"; /* Change to minus when open */
}

.page-about__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--text-main);
    border-top: 1px solid var(--border-color);
}

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

/* CTA Section */
.page-about__cta-section {
    text-align: center;
    padding: 80px 20px;
    background: var(--background-color);
}

.page-about__cta-section .page-about__section-title {
    color: var(--primary-color);
}

.page-about__cta-section .page-about__text-block {
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-main);
}

.page-about__cta-section .page-about__btn-primary,
.page-about__cta-section .page-about__btn-secondary {
    margin: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    .page-about__section-title {
        font-size: 2rem;
    }
    .page-about__intro-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding: 40px 15px;
        padding-top: 10px; /* Ensure small top padding */
    }

    .page-about__container {
        padding: 30px 15px;
    }

    .page-about__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
    .page-about__section-title {
        font-size: 1.8rem;
    }
    .page-about__intro-text {
        font-size: 1rem;
    }

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

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

    .page-about__card {
        padding: 25px;
    }

    .page-about__card-title {
        font-size: 1.4rem;
    }

    .page-about__faq-item summary {
        font-size: 1rem;
        padding: 15px 20px;
    }

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

    /* Mobile image responsive adaptation */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__hero-section,
    .page-about__container,
    .page-about__mission-vision-grid,
    .page-about__features-grid,
    .page-about__faq-list,
    .page-about__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Mobile button responsive adaptation */
    .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; /* Full width for single buttons */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 10px 0 !important; /* Stack buttons vertically */
    }

    .page-about__cta-section {
        display: flex;
        flex-direction: column; /* Stack buttons vertically */
        align-items: center;
    }
}

@media (max-width: 480px) {
    .page-about__section-title {
        font-size: 1.6rem;
    }
    .page-about__card-title {
        font-size: 1.2rem;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        font-size: 1rem;
        padding: 12px 20px;
    }
}

/* Ensure content area images are at least 200x200px */
.page-about__content-area img,
.page-about__mission-vision-section img,
.page-about__why-choose-us-section img,
.page-about__responsible-gambling-section img,
.page-about__our-team-section img {
    min-width: 200px;
    min-height: 200px;
}