/* style/about.css */

/* Common styles for page-about scope */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
}

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

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

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

.page-about__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    min-height: 600px;
    overflow: hidden;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
}

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

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

.page-about__light-bg .page-about__section-title, 
.page-about__light-bg .page-about__card-title, 
.page-about__light-bg .page-about__feature-title, 
.page-about__light-bg .page-about__text-block {
    color: #333333;
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.page-about__hero-title {
    font-size: 3.5em;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__hero-description {
    font-size: 1.3em;
    color: #f0f0f0;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    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;
    transform: translateY(-2px);
}

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

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

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

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4); /* Darken image for text readability, not changing color */
}

/* Introduction Section */
.page-about__introduction-section, .page-about__history-section, .page-about__mission-values-section, .page-about__why-choose-section, .page-about__commitment-section, .page-about__faq-section, .page-about__conclusion-section {
    padding: 60px 0;
}

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

.page-about__card {
    background-color: #ffffff;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.page-about__card:hover {
    transform: translateY(-5px);
}

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

.page-about__card-text {
    font-size: 1em;
    line-height: 1.7;
    text-align: justify;
}

.page-about__value-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-about__value-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

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

.page-about__value-item-title {
    color: #017439;
}

/* Why Choose Section */
.page-about__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__feature-card {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-about__feature-card:hover {
    transform: translateY(-5px);
}

.page-about__feature-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-about__feature-description {
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-about__feature-link {
    display: inline-block;
    margin-top: 10px;
    color: #FFFF00; /* Custom font color for Register/Login */
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid #FFFF00;
    padding-bottom: 5px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-about__feature-link:hover {
    color: #017439;
    border-color: #017439;
}

/* FAQ Section */
.page-about__faq-list {
    margin-top: 40px;
}

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #017439;
    color: #ffffff;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

.page-about__faq-question-title {
    margin: 0;
    color: #ffffff;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    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 20px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #f0f0f0;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-about__faq-answer p {
    margin-top: 0;
    margin-bottom: 10px;
    color: #f0f0f0;
}

.page-about__faq-link {
    color: #FFFF00; /* Custom font color for Register/Login */
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid #FFFF00;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-about__faq-link:hover {
    color: #017439;
    border-color: #017439;
}

/* Conclusion Section */
.page-about__text-link {
    color: #FFFF00; /* Custom font color for Register/Login */
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid #FFFF00;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-about__text-link:hover {
    color: #017439;
    border-color: #017439;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 2.8em;
    }
    .page-about__hero-description {
        font-size: 1.1em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__hero-section {
        padding: 60px 15px;
        min-height: 500px;
        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-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__btn-primary, .page-about__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px;
    }
    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-about__container {
        padding: 15px;
    }
    .page-about__introduction-section, .page-about__history-section, .page-about__mission-values-section, .page-about__why-choose-section, .page-about__commitment-section, .page-about__faq-section, .page-about__conclusion-section {
        padding: 40px 0;
    }
    .page-about__card-grid, .page-about__feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-about__card, .page-about__feature-card {
        padding: 20px;
    }
    .page-about__feature-image {
        height: 200px;
    }
    .page-about__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-about__faq-answer {
        padding: 0 15px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px !important;
    }

    /* Mobile image responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__section, .page-about__card, .page-about__container, .page-about__hero-section, .page-about__introduction-section, .page-about__history-section, .page-about__mission-values-section, .page-about__why-choose-section, .page-about__commitment-section, .page-about__faq-section, .page-about__conclusion-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
    .page-about__hero-image-wrapper {
        padding-left: 0;
        padding-right: 0;
    }

    /* Mobile button responsiveness */
    .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__hero-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-wrap: wrap !important;
      gap: 10px;
    }
    .page-about__cta-buttons {
        flex-direction: column;
    }
}