/* style/about.css */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light body background */
    background-color: #FFFFFF; /* Matches var(--secondary-color) from shared.css */
}

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

.page-about__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    text-align: center;
    color: #ffffff;
    background-color: #017439;
}

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

.page-about__hero-content {
    position: relative;
    padding: 40px 20px;
    max-width: 900px;
    margin: -150px auto 0 auto; /* Pull content up over image */
    background: rgba(1, 116, 57, 0.85); /* Semi-transparent brand color background */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.page-about__main-title {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.5px;
    max-width: 100%;
    color: #FFFF00; /* Custom color for main title */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-about__intro-text {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-about__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.page-about__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    border: 2px solid transparent; /* Default transparent border */
}

.page-about__btn-primary {
    background-color: #C30808; /* Custom color for Register */
    color: #FFFF00; /* Custom color for Register text */
    border-color: #C30808;
}

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

.page-about__btn-secondary {
    background-color: #017439;
    color: #ffffff;
    border-color: #017439;
}

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

.page-about__section {
    padding: 60px 0;
    border-bottom: 1px solid #eee;
}

.page-about__section:last-of-type {
    border-bottom: none;
}

.page-about__article-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-about__heading {
    font-size: 2.2em;
    color: #017439;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-about__heading--white {
    color: #ffffff;
}

.page-about__sub-heading {
    font-size: 1.6em;
    color: #017439;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__paragraph {
    margin-bottom: 15px;
    font-size: 1.05em;
    line-height: 1.7;
    color: #333333;
}

.page-about__paragraph--white {
    color: #ffffff;
}

.page-about__list {
    list-style: disc;
    margin-left: 20px;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-about__list-item {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #333333;
}

.page-about__figure {
    margin: 30px 0;
    text-align: center;
}

.page-about__figure-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-about__figcaption {
    font-style: italic;
    font-size: 0.9em;
    color: #555555;
    margin-top: 10px;
}

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

.page-about__product-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding-bottom: 20px;
}

.page-about__product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-about__product-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-about__product-title {
    font-size: 1.3em;
    color: #017439;
    margin-bottom: 10px;
    padding: 0 15px;
}

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

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

.page-about__product-description {
    font-size: 0.95em;
    color: #555555;
    padding: 0 15px;
}

.page-about__cta-buttons--center {
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-about__light-bg {
    background-color: #f8f8f8;
    color: #333333;
}

.page-about__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

.page-about__conclusion-content {
    text-align: center;
    padding: 60px 20px;
}

.page-about a {
    color: #017439;
    text-decoration: none;
}

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

.page-about .highlight {
    color: #017439;
    font-weight: bold;
}

.page-about__dark-bg .highlight {
    color: #FFFF00; /* Highlight color for dark background */
}

/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-content {
        margin-top: -100px; /* Adjust for smaller screens */
        padding: 30px 20px;
    }

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

    .page-about__heading {
        font-size: 2em;
    }

    .page-about__sub-heading {
        font-size: 1.4em;
    }

    .page-about__product-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    /* 1. Top section title + dual CTA */
    .page-about__hero-section {
        padding-top: 10px !important;
    }

    .page-about__hero-content {
        margin-top: -80px; /* Further adjust for mobile */
        padding: 25px 15px;
    }

    .page-about__main-title {
        font-size: 1.8em !important;
        line-height: 1.3 !important;
    }

    .page-about__intro-text {
        font-size: 1em !important;
    }

    .page-about__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .page-about__btn {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px !important;
        font-size: 0.95em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* 2. Single column long text container */
    .page-about__article-wrap {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-about__heading {
        font-size: 1.8em !important;
        margin-bottom: 30px !important;
    }

    .page-about__sub-heading {
        font-size: 1.3em !important;
        margin-top: 25px !important;
        margin-bottom: 10px !important;
    }

    .page-about__paragraph,
    .page-about__list-item {
        font-size: 0.95em !important;
        line-height: 1.6 !important;
    }

    /* 3. General images and figure */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .page-about__figure-image {
        border-radius: 4px !important;
    }

    .page-about__product-image {
        height: 150px !important;
    }

    /* 4. Buttons and button containers (already covered above for .page-about__btn and .page-about__cta-buttons) */
    .page-about__product-grid {
        grid-template-columns: 1fr !important; /* Stack product cards */
        gap: 20px !important;
    }

    .page-about__product-card {
        padding-bottom: 15px !important;
    }

    .page-about__product-title {
        font-size: 1.1em !important;
    }

    .page-about__product-description {
        font-size: 0.9em !important;
    }

    /* 5. Registration tutorial and FAQ blocks - Not explicitly present, but general content blocks will follow the .page-about__article-wrap and paragraph styles. */
    .page-about__conclusion-content {
        padding: 40px 15px !important;
    }
}