/* style/about.css */
:root {
    --primary-color: #4A148C; /* Deep Purple */
    --secondary-color: #FFD700; /* Gold */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f8f8;
    --bg-medium: #e0e0e0;
}

.page-about {
    font-family: 'Arial', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

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

.page-about-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--bg-medium);
}

.page-about-section:last-of-type {
    border-bottom: none;
}

.page-about-main-title {
    font-size: 3.2em;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
}

.page-about-section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-about-section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-about-hero {
    position: relative;
    width: 100%;
    height: 450px; /* Adjusted height for desktop */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--primary-color);
}

.page-about-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.6);
}

.page-about-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(74, 20, 140, 0.7), rgba(255, 215, 0, 0.3));
    z-index: 2;
}

.page-about-hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 20px;
}

.page-about-hero-description {
    font-size: 1.4em;
    color: var(--text-light);
    margin-top: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-about-content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
}

.page-about-content-wrapper.reverse-layout {
    flex-direction: row-reverse;
}

.page-about-text-content {
    flex: 1;
}

.page-about-image-content {
    flex: 1;
    min-width: 300px; /* Ensure images have enough space */
}

.page-about-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-about-introduction p, .page-about-mission-vision p, .page-about-security p, .page-about-support p, .page-about-responsible-gaming p {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.page-about-mission-vision h3 {
    color: var(--primary-color);
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-about-mission-vision ul {
    list-style: none;
    padding: 0;
}

.page-about-mission-vision ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-about-mission-vision ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2em;
}

.page-about-milestones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-about-milestone-item {
    background: var(--text-light);
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about-milestone-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.page-about-milestone-item h3 {
    color: var(--primary-color);
    font-size: 1.6em;
    margin-bottom: 15px;
}

.page-about-milestone-item p {
    font-size: 1em;
    color: var(--text-dark);
}

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

.page-about-product-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-about-product-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.2);
}

.page-about-product-item h3 {
    color: var(--secondary-color);
    font-size: 1.8em;
    margin-top: 20px;
    margin-bottom: 15px;
}

.page-about-product-item p {
    color: var(--text-light);
    font-size: 1em;
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-about-product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.page-about-btn-link {
    display: inline-block;
    padding: 12px 25px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: auto; /* Push button to bottom */
}

.page-about-btn-link:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.page-about-security ul, .page-about-support ul, .page-about-responsible-gaming ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-about-security ul li, .page-about-support ul li, .page-about-responsible-gaming ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-about-security ul li::before, .page-about-support ul li::before, .page-about-responsible-gaming ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.5em;
    line-height: 1;
}

.page-about-cta {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), #3A0F6C);
}

.page-about-cta-content h2 {
    color: var(--text-light);
}

.page-about-cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-about-btn {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 180px;
    text-align: center;
}

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

.page-about-btn-primary:hover {
    background: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-about-btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.page-about-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* FAQ Styles */
.page-about-faq-list {
    margin-top: 40px;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--bg-medium);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--text-light);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--primary-color);
}

.faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    background: var(--bg-light);
    border-top: 1px solid var(--bg-medium);
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height for content */
    padding: 25px;
}

.faq-answer p {
    margin: 0;
    font-size: 1em;
    color: var(--text-dark);
}

/* Background colors */
.bg-light-purple {
    background-color: #F0F2F5; /* A very light shade of purple/grey for contrast */
}

.bg-dark-purple {
    background-color: var(--primary-color);
}

.text-white {
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-about-hero {
        height: 350px;
    }

    .page-about-main-title {
        font-size: 2.5em;
    }

    .page-about-hero-description {
        font-size: 1.2em;
    }

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

    .page-about-content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .page-about-content-wrapper.reverse-layout {
        flex-direction: column;
    }

    .page-about-image-content {
        order: -1; /* Image appears above text on smaller screens for reverse layout */
    }

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

    .page-about-product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .page-about-btn {
        padding: 12px 30px;
        font-size: 1.1em;
        min-width: unset;
    }

    .page-about-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .page-about-hero {
        height: 300px;
    }

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

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

    .page-about-section {
        padding: 40px 0;
    }

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

    .page-about-introduction p, .page-about-mission-vision p, .page-about-security p, .page-about-support p, .page-about-responsible-gaming p {
        font-size: 1em;
    }

    .page-about-mission-vision h3 {
        font-size: 1.5em;
    }

    .faq-question {
        padding: 15px 20px;
    }

    .faq-question h3 {
        font-size: 1.1em;
    }

    .faq-toggle {
        font-size: 20px;
    }

    .faq-answer {
        padding: 15px 20px;
    }
}

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

    .page-about-main-title {
        font-size: 1.6em;
    }

    .page-about-hero-description {
        font-size: 0.9em;
    }

    .page-about-section-title {
        font-size: 1.5em;
    }

    .page-about-container {
        padding: 15px;
    }

    .page-about-btn-link {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .page-about-btn {
        padding: 12px 25px;
        font-size: 1em;
    }
}