/* style/about.css */
.page-about__hero-section {
    position: relative;
    width: 100%;
    min-height: 550px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding-top: var(--header-offset, 120px);
    box-sizing: border-box;
}

.page-about__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.page-about__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-about__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #f0f0f0;
}

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

.page-about__section {
    padding: 60px 20px;
    background: #1a1a1a;
    color: #ffffff;
}

.page-about__dark-section {
    background: #0d0d0d;
    color: #ffffff;
}

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

.page-about__heading {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: #017439;
    position: relative;
    padding-bottom: 15px;
}

.page-about__heading::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #017439;
    border-radius: 2px;
}

.page-about__text {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #f0f0f0;
    text-align: justify;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: block;
    margin: 20px 0;
}

.page-about__image--left {
    float: left;
    margin-right: 30px;
    margin-bottom: 20px;
}

.page-about__image--right {
    float: right;
    margin-left: 30px;
    margin-bottom: 20px;
}

.page-about__image--center {
    margin-left: auto;
    margin-right: auto;
}

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

.page-about__content-flex--reverse {
    flex-direction: row-reverse;
}

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

.page-about__content-flex .page-about__image {
    flex-shrink: 0;
    width: 500px;
    height: 375px; /* 4:3 aspect ratio */
    object-fit: cover;
}

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

.page-about__feature-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.page-about__feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.page-about__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: brightness(1.2);
}

.page-about__feature-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
}

.page-about__feature-description {
    font-size: 1em;
    line-height: 1.6;
    color: #f0f0f0;
}

.page-about__btn-primary {
    background: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    padding: 14px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
    font-size: 1.1em;
}

.page-about__btn-primary:hover {
    background: #a30606;
    transform: translateY(-2px);
}

.page-about__btn-secondary {
    background: transparent;
    color: #017439;
    padding: 14px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #017439;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    font-size: 1.1em;
}

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

.page-about__btn-primary--large, .page-about__btn-secondary--large {
    padding: 16px 35px;
    font-size: 1.2em;
}

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

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

.page-about__faq-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.page-about__faq-question:hover {
    background: rgba(255, 255, 255, 0.1);
}

.page-about__faq-title {
    font-size: 1.2em;
    color: #ffffff;
    margin: 0;
}

.page-about__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #017439;
    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: #f0f0f0;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important;
    padding: 20px 25px;
}

.page-about__faq-answer p {
    margin: 0;
    line-height: 1.7;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 2.8em;
    }
    .page-about__hero-description {
        font-size: 1.1em;
    }
    .page-about__heading {
        font-size: 2em;
    }
    .page-about__content-flex {
        flex-direction: column;
    }
    .page-about__content-flex .page-about__image {
        width: 100%;
        height: auto;
    }
    .page-about__image--left, .page-about__image--right {
        float: none;
        margin: 20px auto;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-about__hero-title {
        font-size: 2.2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__btn-primary, .page-about__btn-secondary, .page-about__btn-primary--large, .page-about__btn-secondary--large {
        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__section, .page-about__dark-section {
        padding: 40px 15px;
    }
    .page-about__heading {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-about__text {
        font-size: 0.95em;
    }
    .page-about__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 20px auto !important;
    }
    .page-about__feature-item {
        padding: 20px;
    }
    .page-about__feature-title {
        font-size: 1.3em;
    }
    .page-about__faq-question {
        padding: 15px 20px;
    }
    .page-about__faq-title {
        font-size: 1.1em;
    }
    .page-about__faq-answer {
        padding: 0 20px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px 20px;
    }
    .page-about__container {
        padding: 0 10px;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__content-flex .page-about__image {
        height: auto;
    }
    .page-about__video-section {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-about__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 1.8em;
    }
    .page-about__hero-description {
        font-size: 0.9em;
    }
    .page-about__heading {
        font-size: 1.6em;
    }
    .page-about__btn-primary, .page-about__btn-secondary {
        font-size: 1em;
        padding: 12px 20px;
    }
}