/* style/about.css */

/* Custom Colors */
:root {
    --rikbet-primary: #11A84E;
    --rikbet-secondary: #22C768;
    --rikbet-bg-card: #11271B;
    --rikbet-bg-main: #08160F;
    --rikbet-text-main: #F2FFF6;
    --rikbet-text-secondary: #A7D9B8;
    --rikbet-border: #2E7A4E;
    --rikbet-glow: #57E38D;
    --rikbet-gold: #F2C14E;
    --rikbet-divider: #1E3A2A;
    --rikbet-deep-green: #0A4B2C;
}

.page-about {
    font-family: Arial, sans-serif;
    color: var(--rikbet-text-main); /* Default text color for the page */
    background-color: var(--rikbet-bg-main); /* Default background for the page */
}

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

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
}

.page-about__hero-content {
    text-align: center;
    max-width: 900px;
    margin-top: 40px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-about__main-title {
    color: var(--rikbet-gold);
    font-size: clamp(2.2em, 4vw, 3.5em);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.page-about__hero-description {
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--rikbet-text-secondary);
    margin-bottom: 30px;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    margin: 10px;
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: none;
}

.page-about__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-about__btn-secondary {
    background: var(--rikbet-bg-card);
    color: var(--rikbet-primary);
    border: 2px solid var(--rikbet-border);
}

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

.page-about__section {
    padding: 60px 20px;
    background-color: var(--rikbet-bg-main);
    color: var(--rikbet-text-main);
    overflow: hidden;
}

.page-about__section--mission-vision {
    background-color: var(--rikbet-bg-main);
}

.page-about__section--why-choose,
.page-about__section--team {
    background-color: var(--rikbet-bg-card);
}

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

.page-about__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    color: var(--rikbet-gold);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-about__section-description {
    font-size: 1.1em;
    color: var(--rikbet-text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

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

.page-about__content-grid--reverse {
    direction: rtl; /* For image-text reversal */
}

.page-about__content-grid--reverse .page-about__text-block {
    direction: ltr;
}

.page-about__content-grid--reverse .page-about__image-wrapper {
    direction: ltr;
}

.page-about__sub-title {
    font-size: 1.8em;
    color: var(--rikbet-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__text-block p {
    font-size: 1em;
    line-height: 1.7;
    color: var(--rikbet-text-secondary);
    margin-bottom: 20px;
}

.page-about__text-block strong {
    color: var(--rikbet-text-main);
}

.page-about__image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-about__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

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

.page-about__feature-card {
    background-color: var(--rikbet-bg-main);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px 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__feature-icon {
    width: 250px;
    height: 250px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
}

.page-about__feature-title {
    font-size: 1.4em;
    color: var(--rikbet-gold);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-about__feature-card p {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--rikbet-text-secondary);
}

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

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

.page-about__commitment-item {
    background-color: var(--rikbet-bg-card);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-about__commitment-title {
    font-size: 1.5em;
    color: var(--rikbet-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__commitment-item p {
    font-size: 1em;
    line-height: 1.7;
    color: var(--rikbet-text-secondary);
}

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

.page-about__team-member {
    background-color: var(--rikbet-bg-main);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-about__team-photo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
    border: 3px solid var(--rikbet-primary);
    display: block;
}

.page-about__member-name {
    font-size: 1.5em;
    color: var(--rikbet-gold);
    margin-bottom: 8px;
    font-weight: 600;
}

.page-about__member-role {
    font-size: 0.95em;
    color: var(--rikbet-text-secondary);
    line-height: 1.6;
}

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

.page-about__future-item {
    background-color: var(--rikbet-bg-card);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-about__future-title {
    font-size: 1.5em;
    color: var(--rikbet-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__future-item p {
    font-size: 1em;
    line-height: 1.7;
    color: var(--rikbet-text-secondary);
}

.page-about__faq-list {
    margin-top: 30px;
}

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--rikbet-text-main);
    cursor: pointer;
    background-color: var(--rikbet-bg-card);
    transition: background-color 0.3s ease;
}

.page-about__faq-item summary {
    list-style: none;
}

.page-about__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-about__faq-question:hover {
    background-color: var(--rikbet-deep-green);
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--rikbet-primary);
}

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

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

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-about__content-grid {
        grid-template-columns: 1fr;
        direction: ltr; /* Reset direction for smaller screens */
    }

    .page-about__content-grid--reverse {
        direction: ltr;
    }

    .page-about__content-grid .page-about__text-block,
    .page-about__content-grid--reverse .page-about__text-block {
        order: 2;
    }

    .page-about__content-grid .page-about__image-wrapper,
    .page-about__content-grid--reverse .page-about__image-wrapper {
        order: 1;
        margin-bottom: 30px;
    }

    .page-about__hero-content {
        margin-top: 30px;
    }

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

    .page-about__section-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section,
    .page-about__section {
        padding: 40px 15px;
    }

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

    .page-about__section-title {
        font-size: 1.8em;
    }

    .page-about__sub-title,
    .page-about__feature-title,
    .page-about__commitment-title,
    .page-about__member-name,
    .page-about__future-title {
        font-size: 1.3em;
    }

    .page-about__hero-description,
    .page-about__section-description,
    .page-about p,
    .page-about li {
        font-size: 16px;
        line-height: 1.6;
    }

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

    .page-about__hero-image-wrapper,
    .page-about__image-wrapper,
    .page-about__feature-icon,
    .page-about__team-photo,
    .page-about__container,
    .page-about__section,
    .page-about__card,
    .page-about__box {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Mobile responsive for buttons */
    .page-about__cta-button,
    .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;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        margin: 5px 0;
    }

    .page-about__cta-buttons,
    .page-about__button-group,
    .page-about__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important;
        gap: 10px;
    }

    .page-about__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

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

    .page-about__hero-section {
        padding-top: 10px !important; /* body handles --header-offset */
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: 1.8em;
    }

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

    .page-about__feature-icon {
        width: 200px;
        height: 200px;
    }

    .page-about__team-photo {
        width: 200px;
        height: 200px;
    }
}