/* style/about.css */

/* General styles for .page-about */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF3E6; /* Text Main for dark background */
    background-color: #0D0E12; /* Background color from custom palette */
}

.page-about__container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

.page-about__section-title {
    font-size: 3em;
    font-weight: bold;
    color: #FF8C1A; /* Primary color */
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-about__item-title {
    font-size: 1.8em;
    font-weight: bold;
    color: #FFA53A; /* Auxiliary color */
    margin-bottom: 10px;
}

.page-about__section-description {
    font-size: 1.1em;
    color: #FFF3E6;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    max-width: 100%; /* For responsiveness */
    box-sizing: border-box; /* For responsiveness */
    white-space: normal; /* For responsiveness */
    word-wrap: break-word; /* For responsiveness */
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
    color: #FFF3E6; /* Text Main */
    box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4); /* Glow color */
}

.page-about__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

.page-about__btn-secondary {
    background-color: transparent;
    color: #FF8C1A; /* Primary color */
    border: 2px solid #FF8C1A; /* Primary color as border */
}

.page-about__btn-secondary:hover {
    background-color: #FF8C1A; /* Primary color */
    color: #FFF3E6; /* Text Main */
    transform: translateY(-2px);
}

/* Hero Section */
.page-about__hero-section {
    padding-top: 10px; /* Fixed header spacing */
    padding-bottom: 60px;
    background-color: #0D0E12;
}

.page-about__hero-container {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    padding: 40px 16px;
    box-sizing: border-box;
}

.page-about__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    color: #FFF3E6;
}

.page-about__main-title {
    font-size: clamp(2.5em, 5vw, 3.8em); /* H1 font size with clamp */
    font-weight: 900;
    color: #FF8C1A;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.page-about__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #FFF3E6;
}

.page-about__cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* For responsiveness */
    width: 100%; /* For responsiveness */
    max-width: 100%; /* For responsiveness */
    box-sizing: border-box; /* For responsiveness */
    overflow: hidden; /* For responsiveness */
}

.page-about__hero-image {
    flex: 1 1 40%;
    min-width: 300px;
    text-align: center;
}

.page-about__hero-side-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: block;
    margin: 0 auto;
}

/* Vision Section (Module 1 equivalent) */
.page-about__vision-section {
    background-color: #0D0E12;
    padding-bottom: 60px;
}

.page-about__vision-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-about__vision-item {
    flex: 1 1 45%;
    max-width: 500px;
    background-color: #17191F; /* Card BG */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid #A84F0C; /* Border color */
}

.page-about__icon-box-media {
    width: 240px;
    height: 240px;
    aspect-ratio: 1/1;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #FF8C1A; /* Primary color */
    box-shadow: 0 0 15px rgba(255, 140, 26, 0.6); /* Glow color */
}

.page-about__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.page-about__vision-item .page-about__item-title {
    color: #FFA53A;
}

/* History Section */
.page-about__history-section {
    background-color: #0D0E12;
    padding-bottom: 60px;
}

.page-about__history-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.page-about__history-image {
    flex: 1 1 45%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    display: block;
}

.page-about__history-text {
    flex: 1 1 45%;
    color: #FFF3E6;
}

.page-about__history-text p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

/* Values Section */
.page-about__values-section {
    background-color: #0D0E12;
    padding-bottom: 60px;
}

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

.page-about__value-item {
    background-color: #17191F; /* Card BG */
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #A84F0C; /* Border color */
}

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

.page-about__value-item .page-about__item-description {
    font-size: 1em;
    color: #FFF3E6;
}

/* Why Choose Section */
.page-about__why-choose-section {
    background-color: #0D0E12;
    padding-bottom: 60px;
}

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

.page-about__why-choose-item {
    background-color: #17191F; /* Card BG */
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #A84F0C; /* Border color */
}

.page-about__why-choose-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-about__why-choose-item .page-about__item-title {
    color: #FFA53A;
}

.page-about__why-choose-item .page-about__item-description {
    font-size: 1em;
    color: #FFF3E6;
}

/* Team Section */
.page-about__team-section {
    background-color: #0D0E12;
    padding-bottom: 60px;
}

.page-about__team-section .page-about__section-description {
    margin-bottom: 40px;
}

.page-about__team-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: block;
    margin: 0 auto;
}

/* Commitment Section */
.page-about__commitment-section {
    background-color: #0D0E12;
    padding-bottom: 60px;
}

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

.page-about__commitment-item {
    background-color: #17191F; /* Card BG */
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #A84F0C; /* Border color */
}

.page-about__commitment-item .page-about__item-title {
    color: #FFA53A;
}

.page-about__commitment-item .page-about__item-description {
    font-size: 1em;
    color: #FFF3E6;
}

.page-about__cta-bottom {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(90deg, #17191F 0%, #0D0E12 100%);
    border-radius: 12px;
    border: 1px solid #A84F0C;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-about__cta-text {
    font-size: 1.5em;
    font-weight: bold;
    color: #FF8C1A;
    margin-bottom: 20px;
}

/* FAQ Section */
.page-about__faq-section {
    background-color: #0D0E12;
    padding-bottom: 60px;
}

.page-about__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-about__faq-item {
    background-color: #17191F; /* Card BG */
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #A84F0C; /* Border color */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #FFF3E6;
}

.page-about__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    list-style: none; /* Hide default marker */
    color: #FFA53A; /* Auxiliary color */
}

.page-about__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-about__faq-question .page-about__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    transition: transform 0.3s ease;
    color: #FF8C1A; /* Primary color */
}

.page-about__faq-item[open] .page-about__faq-question .page-about__faq-toggle {
    transform: rotate(45deg);
}

.page-about__faq-answer {
    padding: 0 25px 18px;
    font-size: 1em;
    color: #FFF3E6;
}

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

/* Contact CTA Section */
.page-about__contact-cta-section {
    background-color: #0D0E12;
    padding-bottom: 60px;
}

.page-about__contact-cta-content {
    text-align: center;
    background-color: #17191F; /* Card BG */
    padding: 50px 30px;
    border-radius: 12px;
    border: 1px solid #A84F0C; /* Border color */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-about__contact-cta-content .page-about__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.page-about__contact-cta-content .page-about__section-description {
    margin-bottom: 30px;
}

/* General image responsiveness */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__hero-container {
        flex-direction: column;
        text-align: center;
    }

    .page-about__hero-content,
    .page-about__hero-image {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .page-about__main-title {
        font-size: clamp(2.2em, 7vw, 3em);
    }

    .page-about__cta-buttons {
        justify-content: center;
    }

    .page-about__vision-grid,
    .page-about__history-content {
        flex-direction: column;
    }

    .page-about__history-image {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    /* General elements */
    .page-about {
        font-size: 15px;
    }

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

    .page-about__section-title {
        font-size: 2em;
        margin-bottom: 25px;
    }
    
    .page-about__item-title {
        font-size: 1.5em;
    }

    .page-about__section-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    /* Hero Section */
    .page-about__hero-section {
        padding-top: 10px !important; /* Fixed header spacing */
        padding-bottom: 30px;
    }

    .page-about__hero-container {
        padding: 20px 15px;
    }

    .page-about__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
        text-align: center;
    }

    .page-about__intro-text {
        font-size: 1em;
        text-align: center;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding-left: 15px; /* Button container padding */
        padding-right: 15px; /* Button container padding */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .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;
        font-size: 1em;
    }

    /* Vision Section (Module 1 equivalent) */
    .page-about__vision-grid {
        flex-direction: column;
        gap: 20px;
    }

    .page-about__vision-item {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 20px;
    }

    .page-about__icon-box-media {
        width: 180px; /* Maintain square aspect ratio */
        height: 180px;
        margin-bottom: 15px;
    }

    /* History Section */
    .page-about__history-content {
        flex-direction: column;
        gap: 20px;
    }

    .page-about__history-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-about__history-text p {
        font-size: 1em;
    }

    /* Values Section */
    .page-about__values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__value-item {
        padding: 20px;
    }

    /* Why Choose Section */
    .page-about__why-choose-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__why-choose-item {
        padding: 20px;
    }

    .page-about__why-choose-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    /* Team Section */
    .page-about__team-section .page-about__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-about__team-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    /* Commitment Section */
    .page-about__commitment-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__commitment-item {
        padding: 20px;
    }

    .page-about__cta-bottom {
        padding: 20px;
    }

    .page-about__cta-text {
        font-size: 1.2em;
    }

    /* FAQ Section */
    .page-about__faq-list {
        padding: 0 15px;
    }

    .page-about__faq-item {
        margin-bottom: 10px;
    }

    .page-about__faq-item summary {
        padding: 15px 20px;
        font-size: 1.1em;
    }

    .page-about__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95em;
    }

    /* Contact CTA Section */
    .page-about__contact-cta-content {
        padding: 30px 20px;
    }

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

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

    /* General image and container responsiveness for all images */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__vision-item,
    .page-about__value-item,
    .page-about__why-choose-item,
    .page-about__commitment-item,
    .page-about__faq-item,
    .page-about__contact-cta-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Override specific padding for elements that handle their own internal padding */
    .page-about__hero-container,
    .page-about__cta-buttons,
    .page-about__faq-list {
        padding-left: 0;
        padding-right: 0;
    }
}