/* style/about.css */

/* Custom Colors */
:root {
    --kbet-bg-color: #08160F;
    --kbet-card-bg: #11271B;
    --kbet-text-main: #F2FFF6;
    --kbet-text-secondary: #A7D9B8;
    --kbet-border-color: #2E7A4E;
    --kbet-glow-color: #57E38D;
    --kbet-gold-color: #F2C14E;
    --kbet-divider-color: #1E3A2A;
    --kbet-deep-green: #0A4B2C;
    --kbet-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-about {
    background-color: var(--kbet-bg-color);
    color: var(--kbet-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--kbet-bg-color);
    overflow: hidden;
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 1920px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    background: rgba(17, 39, 27, 0.85); /* Card BG with opacity */
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    margin-top: -80px; /* Overlap slightly for visual effect */
}

.page-about__main-title {
    color: var(--kbet-gold-color);
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-about__intro-text {
    color: var(--kbet-text-secondary);
    font-size: 1.1em;
    margin-bottom: 30px;
}

.page-about__btn-primary {
    background: var(--kbet-btn-gradient);
    color: #ffffff;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(42, 209, 111, 0.4);
}

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

.page-about__btn-secondary {
    background: transparent;
    color: var(--kbet-gold-color);
    border: 2px solid var(--kbet-gold-color);
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.page-about__btn-secondary:hover {
    background: rgba(242, 193, 78, 0.1);
    color: var(--kbet-gold-color);
    transform: translateY(-2px);
}

.page-about__section-title {
    color: var(--kbet-gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.4);
}

.page-about__sub-title {
    color: var(--kbet-glow-color);
    font-size: 1.8em;
    margin-bottom: 20px;
}

.page-about__paragraph {
    margin-bottom: 15px;
    color: var(--kbet-text-main);
    font-size: 1.05em;
}

.page-about__mission-vision-section,
.page-about__why-choose-us-section,
.page-about__games-overview-section,
.page-about__security-section,
.page-about__responsible-gaming-section,
.page-about__faq-section,
.page-about__contact-cta-section {
    padding: 80px 0;
    background-color: var(--kbet-bg-color);
    border-top: 1px solid var(--kbet-divider-color);
}

.page-about__grid-layout {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.page-about__grid-layout--reverse {
    flex-direction: row-reverse;
}

.page-about__text-block {
    flex: 1;
}

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

.page-about__image-block img {
    width: 100%;
    height: auto;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-about__feature-card {
    background-color: var(--kbet-card-bg);
    border: 1px solid var(--kbet-border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__card-title {
    color: var(--kbet-gold-color);
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__card-title a {
    color: var(--kbet-gold-color);
    text-decoration: none;
}

.page-about__card-title a:hover {
    text-decoration: underline;
}

.page-about__card-description {
    color: var(--kbet-text-secondary);
    font-size: 0.95em;
}

.page-about__cta-buttons {
    text-align: center;
    margin-top: 60px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

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

.page-about__game-card {
    background-color: var(--kbet-card-bg);
    border: 1px solid var(--kbet-border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-about__game-card .page-about__card-title {
    padding: 15px 20px 5px;
    font-size: 1.2em;
}

.page-about__game-card .page-about__card-description {
    padding: 0 20px 20px;
    font-size: 0.9em;
}

.page-about__content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

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

.page-about__faq-item {
    background-color: var(--kbet-card-bg);
    border: 1px solid var(--kbet-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    color: var(--kbet-text-main);
    font-size: 1.1em;
    user-select: none;
    background-color: var(--kbet-deep-green);
    border-bottom: 1px solid transparent; /* default */
}

.page-about__faq-item[open] .page-about__faq-question {
    border-bottom: 1px solid var(--kbet-border-color);
}

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

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

.page-about__faq-answer {
    padding: 0 20px 20px;
    color: var(--kbet-text-secondary);
    font-size: 1em;
    line-height: 1.7;
}

.page-about__faq-answer p {
    margin-top: 10px;
}

/* Ensure images are at least 200x200px */
.page-about img:not(.page-about__hero-image) {
    min-width: 200px;
    min-height: 200px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-content {
        margin-top: -60px;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__grid-layout {
        flex-direction: column;
    }
    .page-about__grid-layout--reverse {
        flex-direction: column;
    }
    .page-about__image-block img {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles header offset */
    }
    .page-about__hero-content {
        padding: 15px;
        margin-top: -40px;
        max-width: 95%;
    }
    .page-about__main-title {
        font-size: 1.8em;
    }
    .page-about__intro-text {
        font-size: 1em;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__cta-buttons {
        flex-direction: column !important;
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-about__container {
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-about__sub-title {
        font-size: 1.5em;
    }
    .page-about__mission-vision-section,
    .page-about__why-choose-us-section,
    .page-about__games-overview-section,
    .page-about__security-section,
    .page-about__responsible-gaming-section,
    .page-about__faq-section,
    .page-about__contact-cta-section {
        padding: 40px 0;
    }
    .page-about__grid-layout {
        gap: 30px;
        margin-bottom: 40px;
    }
    .page-about__features-grid,
    .page-about__games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__game-card img {
        height: auto;
    }
    .page-about__video-section,
    .page-about__video-container,
    .page-about__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-about__video-section {
        padding-top: 10px !important;
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: 1.5em;
    }
    .page-about__section-title {
        font-size: 1.5em;
    }
    .page-about__sub-title {
        font-size: 1.3em;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        font-size: 1em;
        padding: 12px 20px;
    }
}