/* style/about.css */

/* Variables for colors */
:root {
    --okbet-primary: #F2C14E;
    --okbet-secondary: #FFD36B;
    --okbet-card-bg: #111111;
    --okbet-background: #0A0A0A;
    --okbet-text-main: #FFF6D6;
    --okbet-border: #3A2A12;
    --okbet-glow: #FFD36B;
    --okbet-btn-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

/* Base styles for the About Us page */
.page-about {
    font-family: Arial, sans-serif;
    color: var(--okbet-text-main); /* Ensure text is visible on dark background */
    background-color: var(--okbet-background); /* Body background from shared.css, this acts as a fallback/context */
    line-height: 1.6;
}

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

.page-about__section-title {
    font-size: 2.8em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--okbet-primary);
    letter-spacing: 1px;
    line-height: 1.2;
}

.page-about__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: -20px auto 60px auto;
    color: var(--okbet-text-main);
}

.page-about__card {
    background-color: var(--okbet-card-bg);
    border: 1px solid var(--okbet-border);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: var(--okbet-text-main);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px var(--okbet-glow);
}

.page-about__card-title {
    font-size: 1.6em;
    color: var(--okbet-primary);
    margin-top: 0;
    margin-bottom: 15px;
}

.page-about__card-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--okbet-secondary);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-about__card-link:hover {
    color: var(--okbet-primary);
    text-decoration: underline;
}

.page-about__text-link {
    color: var(--okbet-secondary);
    text-decoration: none;
    font-weight: bold;
}

.page-about__text-link:hover {
    color: var(--okbet-primary);
    text-decoration: underline;
}

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

.page-about__btn-primary {
    background: var(--okbet-btn-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 10px rgba(242, 193, 78, 0.4);
}

.page-about__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(242, 193, 78, 0.6);
}

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

.page-about__btn-secondary:hover {
    background: var(--okbet-secondary);
    color: var(--okbet-card-bg);
    border-color: var(--okbet-secondary);
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 40px 20px 80px 20px; /* Small top padding, more bottom padding */
    text-align: center;
    overflow: hidden;
}

.page-about__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6); /* Darken image for text readability */
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    color: #ffffff;
}

.page-about__hero-title {
    font-size: 3.8em;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--okbet-primary);
    line-height: 1.1;
    letter-spacing: -1px;
}

.page-about__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Section common styles */
.page-about__mission-section,
.page-about__why-choose-section,
.page-about__team-section,
.page-about__responsible-gaming-section,
.page-about__faq-section,
.page-about__cta-section {
    padding: 80px 0;
}

.page-about__dark-bg {
    background-color: var(--okbet-background);
    color: var(--okbet-text-main);
}

.page-about__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.page-about__text-block {
    font-size: 1.1em;
    line-height: 1.8;
}

.page-about__text-block p {
    margin-bottom: 20px;
}

.page-about__image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    min-width: 200px;
    min-height: 200px;
}

.page-about__image-centered {
    text-align: center;
    margin-top: 60px;
}

.page-about__image-centered .page-about__image {
    max-width: 90%;
}

.page-about__values-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-about__values-list li {
    background-color: var(--okbet-card-bg);
    border-left: 5px solid var(--okbet-primary);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.05em;
}

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

.page-about__feature-card h3 {
    color: var(--okbet-primary);
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__responsible-gaming-features h3 {
    color: var(--okbet-secondary);
    margin-top: 0;
}

.page-about__responsible-gaming-cta {
    text-align: center;
    margin-top: 50px;
    font-size: 1.1em;
}

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

.page-about__faq-item {
    background-color: var(--okbet-card-bg);
    border: 1px solid var(--okbet-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--okbet-primary);
    background-color: #1a1a1a;
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: #2a2a2a;
}

.page-about__faq-question h3 {
    margin: 0;
    color: inherit; /* Inherit color from parent for hover effect */
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--okbet-text-main);
    font-size: 1.05em;
    line-height: 1.7;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px 25px;
}

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

/* CTA Section */
.page-about__cta-section {
    background-color: var(--okbet-primary);
    color: #ffffff;
    text-align: center;
    padding: 60px 0;
}

.page-about__cta-section .page-about__section-title {
    color: #ffffff;
    margin-bottom: 20px;
}

.page-about__cta-section .page-about__section-description {
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3em;
    }
    .page-about__section-title {
        font-size: 2.2em;
    }
    .page-about__content-grid {
        grid-template-columns: 1fr;
    }
    .page-about__content-grid .page-about__image-wrapper:first-child {
        order: 2;
    }
    .page-about__content-grid .page-about__text-block:first-child {
        order: 1;
    }
    .page-about__team-section .page-about__content-grid .page-about__image-wrapper:first-child {
        order: initial;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        min-height: 500px;
        padding-top: 10px; /* Small top padding for mobile, body handles main offset */
    }
    .page-about__hero-title {
        font-size: 2.5em;
    }
    .page-about__hero-description {
        font-size: 1.1em;
    }
    .page-about__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__btn-primary, .page-about__btn-secondary {
        width: 100% !important;
        max-width: 300px !important; /* Constrain button width on small screens */
        margin: 0 auto;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-about__section-title {
        font-size: 1.8em;
    }
    .page-about__section-description {
        font-size: 1em;
    }
    .page-about__mission-section,
    .page-about__why-choose-section,
    .page-about__team-section,
    .page-about__responsible-gaming-section,
    .page-about__faq-section,
    .page-about__cta-section {
        padding: 50px 0;
    }
    .page-about__container {
        padding: 0 15px;
    }
    .page-about__content-grid {
        gap: 30px;
    }
    .page-about__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px;
        min-height: 200px;
    }
    .page-about__features-grid,
    .page-about__responsible-gaming-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-about__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-about__faq-answer {
        padding: 0 20px;
        font-size: 0.95em;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 10px 20px 20px 20px;
    }
    /* Ensure all content containers are responsive */
    .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__cta-buttons {
      flex-direction: column;
      gap: 15px;
    }
    .page-about img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block;
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__section-title {
        font-size: 1.6em;
    }
    .page-about__hero-actions {
        flex-direction: column;
        gap: 10px;
    }
}