/* style/about.css */

/* Base styles for the page content */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #f8f8f8; /* Light background for the page content */
}

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

.page-about__section-title {
    font-size: 36px;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 50px;
    font-weight: bold;
    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: #EA7C07; /* Accent color */
    border-radius: 2px;
}

/* 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); /* Ensure content is below fixed header */
    background: linear-gradient(135deg, #26A9E0, #FFFFFF); /* Light blue gradient */
    color: #ffffff;
    overflow: hidden; /* Prevent image overflow */
}

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

.page-about__hero-image {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

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

.page-about__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin-top: -80px; /* Overlap with image slightly for visual appeal */
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: #333333; /* Dark text for light background */
}

.page-about__main-title {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 700;
    color: #26A9E0; /* Brand color */
    line-height: 1.2;
}

.page-about__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #555555;
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #EA7C07; /* Login/Promote color */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__cta-button:hover {
    background: #cc6d06;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
    padding: 80px 0;
    background-color: #ffffff;
}

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

.page-about__card {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333; /* Dark text for light background */
}

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

.page-about__card-title {
    font-size: 24px;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.page-about__card li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.page-about__card li::before {
    content: '✔';
    color: #EA7C07;
    position: absolute;
    left: 0;
    top: 0;
}

/* History Section */
.page-about__history-section {
    padding: 80px 0;
    background-color: #f0f8ff; /* Light blue tint */
}

.page-about__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-about__image-left,
.page-about__image-right,
.page-about__text-left,
.page-about__text-right {
    flex: 1;
}

.page-about__image-left img,
.page-about__image-right img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-about__text-right p,
.page-about__text-left p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #555555;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff; /* White text for dark background */
}

.page-about__why-choose-us-section .page-about__section-title {
    color: #ffffff;
}

.page-about__why-choose-us-section .page-about__section-title::after {
    background-color: #ffffff;
}

.page-about__grid--three-cols {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-about__why-choose-us-section .page-about__card {
    background: rgba(255, 255, 255, 0.95); /* Slightly transparent white card */
    color: #333333; /* Dark text for light card background */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.page-about__why-choose-us-section .page-about__card img {
    
    
    margin-bottom: 20px;
    object-fit: contain;
}

.page-about__why-choose-us-section .page-about__card-title {
    color: #26A9E0;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.page-about__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.page-about__btn-secondary:hover {
    background: #26A9E0;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* FAQ Section */
.page-about__faq-section {
    padding: 80px 0;
    background-color: #f0f8ff;
}

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

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

.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;
    padding: 0 15px;
    opacity: 0;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 2000px !important; /* Ensure it expands sufficiently */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

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

.page-about__faq-question:active {
    background: #eeeeee;
}

.page-about__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: #333333;
}

.page-about__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    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: 28px;
    height: 28px;
}

.page-about__faq-item.active .page-about__faq-toggle {
    color: #26A9E0; /* Brand color when active */
    transform: rotate(45deg); /* Optional: rotate for 'x' effect */
}

.page-about__faq-answer a {
    color: #26A9E0;
    text-decoration: underline;
}

.page-about__faq-answer a:hover {
    text-decoration: none;
}

/* Latest Articles Section */
.page-about__latest-articles-section {
    padding: 80px 0;
    background-color: #ffffff;
}

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

.page-about__article-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
}

.page-about__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-about__article-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-about__article-card .page-about__article-title {
    font-size: 20px;
    font-weight: 600;
    margin: 20px 20px 10px;
    line-height: 1.4;
}

.page-about__article-card .page-about__article-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-about__article-card .page-about__article-title a:hover {
    color: #EA7C07;
}

.page-about__article-card .page-about__article-excerpt {
    font-size: 15px;
    color: #666666;
    margin: 0 20px 20px;
}

.page-about__read-more-link {
    display: inline-block;
    color: #EA7C07;
    text-decoration: none;
    font-weight: bold;
    margin: 0 20px 20px;
    transition: color 0.3s ease;
}

.page-about__read-more-link:hover {
    color: #cc6d06;
    text-decoration: underline;
}

/* General image and content wrapper styles */
.page-about__content-wrapper.page-about__content-wrapper--reverse {
    flex-direction: row-reverse;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-content {
        padding: 30px;
        margin-top: -60px;
    }
    .page-about__main-title {
        font-size: 36px;
    }
    .page-about__hero-description {
        font-size: 16px;
    }
    .page-about__section-title {
        font-size: 30px;
    }
    .page-about__card-title {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    /* Mobile Hero Section */
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__hero-container {
        flex-direction: column;
    }
    .page-about__hero-image {
        margin-bottom: 20px;
    }
    .page-about__hero-image img {
        border-radius: 4px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-about__hero-content {
        margin-top: 0;
        padding: 25px;
        border-radius: 8px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    .page-about__main-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-about__hero-description {
        font-size: 15px;
        margin-bottom: 20px;
    }
    .page-about__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* General Sections */
    .page-about__container {
        padding: 20px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden;
    }
    .page-about__section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    .page-about__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .page-about__text-right,
    .page-about__text-left {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-about__image-left img,
    .page-about__image-right img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 4px;
    }
    .page-about__card {
        padding: 25px;
    }
    .page-about__card img {
        max-width: 100% !important;
         /* Keep icon size */
        height: auto !important;
    }

    /* FAQ Section */
    .page-about__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-about__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-about__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-about__faq-answer {
        padding: 0 15px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px !important;
    }

    /* Article Cards */
    .page-about__article-card {
        margin-bottom: 20px;
    }
    .page-about__article-card img {
        
    }
    .page-about__article-card .page-about__article-title {
        font-size: 18px;
        margin: 15px 15px 8px;
    }
    .page-about__article-card .page-about__article-excerpt {
        font-size: 14px;
        margin: 0 15px 15px;
    }
    .page-about__read-more-link {
        margin: 0 15px 15px;
    }

    /* Buttons */
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}