/* style/about.css */

/* Base styles for the page content */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-about__section {
    padding: 80px 0;
    text-align: center;
}

.page-about__section-title {
    font-size: 3.2em;
    color: #017439;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-about__section-subtitle {
    font-size: 2em;
    color: #017439;
    margin-bottom: 15px;
}

.page-about__section-intro {
    font-size: 1.1em;
    color: #f0f0f0;
    max-width: 900px;
    margin: 0 auto 60px;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding: 120px 0 80px; /* Adjust for fixed header */
    padding-top: var(--header-offset, 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    text-align: left;
    background-color: #0a0a0a;
}

.page-about__hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    color: #ffffff;
}

.page-about__hero-title {
    font-size: 3.8em;
    color: #017439;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-about__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-about__hero-cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.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: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary {
    background-color: #C30808; /* Custom color for Register/Login */
    color: #FFFF00; /* Custom font color for Register/Login */
    border: 2px solid #C30808;
}

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

.page-about__btn-secondary {
    background-color: #017439;
    color: #FFFFFF;
    border: 2px solid #017439;
}

.page-about__btn-secondary:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

.page-about__hero-image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

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

.page-about__card {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 450px; /* Ensure cards have similar height */
}

.page-about__card-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__card p {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
    color: #f0f0f0;
}

.page-about__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: auto;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

/* Feature List */
.page-about__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

.page-about__dark-bg .page-about__section-title {
    color: #ffffff;
}

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

.page-about__feature-item {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
    min-width: 100px;
    min-height: 100px;
}

.page-about__feature-title {
    font-size: 1.6em;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-about__feature-item p {
    font-size: 1em;
    color: #f0f0f0;
}

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

.page-about__product-card {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-about__product-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-about__product-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-about__product-title a {
    color: #017439;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-about__product-title a:hover {
    color: #005a2e;
}

.page-about__product-card p {
    font-size: 0.95em;
    color: #f0f0f0;
}

/* CSR Section */
.page-about__csr-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-about__csr-item {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__csr-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
    min-width: 100px;
    min-height: 100px;
}

.page-about__csr-title {
    font-size: 1.6em;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-about__csr-item p {
    font-size: 1em;
    color: #f0f0f0;
}

/* Download App Section */
.page-about__download-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-top: 50px;
}

.page-about__download-qr {
    text-align: center;
}

.page-about__qr-image {
    width: 200px;
    height: 200px;
    border: 5px solid #017439;
    border-radius: 10px;
    margin-bottom: 15px;
    object-fit: contain;
    min-width: 200px;
    min-height: 200px;
}

.page-about__qr-text {
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-about__download-benefits {
    text-align: left;
    max-width: 500px;
}

.page-about__benefits-title {
    font-size: 2em;
    color: #017439;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-about__benefits-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-about__benefits-list li {
    font-size: 1.1em;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    color: #f0f0f0;
}

.page-about__benefits-list li::before {
    content: '✓';
    color: #017439;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.page-about__benefits-list li a {
    color: #f0f0f0;
    text-decoration: none;
}

.page-about__benefits-list li a:hover {
    text-decoration: underline;
}

.page-about__btn-download {
    width: auto;
    min-width: 250px;
    text-align: center;
}

/* Contact and Support Section */
.page-about__contact-support {
    background-color: #017439;
    color: #ffffff;
}

.page-about__contact-support .page-about__section-title {
    color: #ffffff;
}

.page-about__contact-support .page-about__section-intro {
    color: #e0e0e0;
}

.page-about__contact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
    text-align: left;
}

.page-about__contact-info,
.page-about__support-channels {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 10px;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__contact-title {
    font-size: 1.8em;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-about__contact-info p,
.page-about__support-list li {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #f0f0f0;
}

.page-about__contact-link {
    color: #FFFF00; /* Use custom font color for links in dark sections */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-about__contact-link:hover {
    text-decoration: underline;
    color: #fff;
}

.page-about__support-list {
    list-style: none;
    padding: 0;
}

/* FAQ Section */
.page-about__faq-section {
    margin-top: 60px;
    text-align: left;
}

.page-about__faq-item {
    margin-bottom: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.page-about__faq-item details {
    width: 100%;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none; /* For details/summary */
}

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

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 10px;
    color: #017439;
}

.page-about__faq-item details[open] .page-about__faq-toggle {
    content: '−';
}

.page-about__faq-answer {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.1);
    color: #f0f0f0;
    font-size: 1em;
}

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

/* Ensure all images in content area are large enough */
.page-about img {
  min-width: 200px;
  min-height: 200px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3em;
    }

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

@media (max-width: 768px) {
    .page-about__hero-section {
        flex-direction: column;
        text-align: center;
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
    }

    .page-about__hero-content {
        max-width: 100%;
        padding: 0 15px;
    }

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

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

    .page-about__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .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__hero-image-wrapper {
        max-width: 100%;
        padding: 0 15px;
    }

    .page-about__section {
        padding: 40px 0;
    }

    .page-about__section-title {
        font-size: 2em;
        padding: 0 15px;
    }

    .page-about__section-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .page-about__container {
        padding: 0 15px;
    }

    .page-about__card,
    .page-about__feature-item,
    .page-about__product-card,
    .page-about__csr-item,
    .page-about__contact-info,
    .page-about__support-channels {
        padding: 20px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px;
        min-height: 200px;
    }

    .page-about__download-content {
        flex-direction: column;
        gap: 30px;
    }

    .page-about__download-benefits {
        text-align: center;
        max-width: 100%;
    }

    .page-about__benefits-list {
        text-align: left;
    }

    .page-about__contact-grid {
        flex-direction: column;
        gap: 30px;
    }

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

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

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

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

    .page-about__btn-primary,
    .page-about__btn-secondary {
        font-size: 1em;
        padding: 12px 20px;
    }

    .page-about__card-title,
    .page-about__feature-title,
    .page-about__product-title,
    .page-about__csr-title,
    .page-about__contact-title,
    .page-about__benefits-title {
        font-size: 1.5em;
    }
}