/* style/about.css */

/* Variables */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-dark: #0a0a0a;
    --bg-light: #ffffff;
    --btn-register: #C30808;
    --btn-login: #C30808;
    --btn-font-color: #FFFF00;
}

/* Base styles for the page content */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--bg-dark); /* Inherited from body via shared.css */
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
}

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

.page-about__section-title {
    font-size: 2.5em;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

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

.page-about__section-description {
    font-size: 1.1em;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-about p {
    margin-bottom: 15px;
    color: var(--text-light);
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 60px 0;
    overflow: hidden;
    background-color: var(--primary-color);
}

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

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(50%); /* Allowed for stylistic effect, not color change */
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
    color: var(--text-light);
    padding: 20px;
}

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
}

.page-about__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: var(--text-light);
}

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

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

.page-about__btn-primary {
    background-color: var(--btn-register);
    color: var(--btn-font-color);
    border: 2px solid var(--btn-register);
}

.page-about__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
}

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

.page-about__btn-secondary:hover {
    background-color: var(--btn-login);
    color: var(--text-light);
}

/* Mission Vision Section */
.page-about__mission-vision-section {
    padding: 80px 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.page-about__mission-vision-section .page-about__section-title,
.page-about__mission-vision-section .page-about__section-description,
.page-about__mission-vision-section .page-about__sub-title,
.page-about__mission-vision-section p {
    color: var(--text-dark);
}

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

.page-about__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 60px;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

/* Why Choose Us Section */
.page-about__why-choose-us {
    padding: 80px 0;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

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

.page-about__feature-card {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.page-about__feature-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.15);
}

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

.page-about__feature-card p {
    color: var(--text-light);
}

/* Licenses and Regulations Section */
.page-about__licenses-regulations {
    padding: 80px 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.page-about__licenses-regulations .page-about__section-title,
.page-about__licenses-regulations .page-about__section-description,
.page-about__licenses-regulations .page-about__sub-title,
.page-about__licenses-regulations p {
    color: var(--text-dark);
}

/* Technology and Innovation Section */
.page-about__technology-innovation {
    padding: 80px 0;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

/* Community and Support Section */
.page-about__community-support {
    padding: 80px 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.page-about__community-support .page-about__section-title,
.page-about__community-support .page-about__section-description,
.page-about__community-support .page-about__sub-title,
.page-about__community-support p {
    color: var(--text-dark);
}

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

.page-about__faq-item {
    background-color: #f0f0f0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--text-dark);
    background-color: #e0e0e0;
    transition: background-color 0.3s ease;
}

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

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

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-dark);
}

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

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

.page-about__faq-answer p {
    color: var(--text-dark);
    margin-bottom: 0;
}

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

.page-about__cta-section .page-about__section-title,
.page-about__cta-section .page-about__section-description {
    color: var(--text-light);
}

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

/* Responsive images & videos */
.page-about img,
.page-about video {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-about__video-section,
.page-about__video-container,
.page-about__video-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

    .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 {
        width: 100%;
        padding: 12px 20px;
        font-size: 1em;
    }

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

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

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

    .page-about__feature-card {
        padding: 20px;
    }

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

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

    /* Mobile image and video adaptation */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-about video,
    .page-about__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .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 !important;
      padding-right: 15px !important;
      overflow: hidden !important;
    }

    .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;
    }
    
    .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 !important;
      padding-right: 15px !important;
      flex-wrap: wrap !important;
      gap: 10px;
    }

    .page-about__cta-buttons {
        flex-direction: column;
    }
}