/* style/about.css */

/* Custom Colors */
:root {
    --page-about-bg: #08160F;
    --page-about-card-bg: #11271B;
    --page-about-text-main: #F2FFF6;
    --page-about-text-secondary: #A7D9B8;
    --page-about-border: #2E7A4E;
    --page-about-glow: #57E38D;
    --page-about-gold: #F2C14E;
    --page-about-divider: #1E3A2A;
    --page-about-deep-green: #0A4B2C;
    --page-about-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-about-primary-color: #11A84E; /* Main brand color */
    --page-about-secondary-color: #22C768; /* Auxiliary brand color */
}

/* Base styles for the page-about scope */
.page-about {
    background-color: var(--page-about-bg);
    color: var(--page-about-text-main);
    font-family: Arial, sans-serif; /* Example font, adjust if specific font is needed */
    line-height: 1.6;
    padding-bottom: 40px; /* Ensure space above footer */
}

/* Ensure body padding-top is handled by shared.css, not here */

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

.page-about__container--flex {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-about__container--reverse {
    flex-direction: row-reverse;
}

.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text for hero */
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
    background-color: var(--page-about-bg);
    overflow: hidden; /* Ensure no overflow from image */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Match hero image width */
    margin-bottom: 30px;
    overflow: hidden;
}

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

.page-about__hero-content {
    max-width: 800px;
    text-align: center;
    padding: 0 20px;
}

.page-about__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
    color: var(--page-about-text-main);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-about__description {
    font-size: 1.1rem;
    color: var(--page-about-text-secondary);
    margin-bottom: 30px;
}

.page-about__section {
    padding: 60px 0;
    border-bottom: 1px solid var(--page-about-divider);
}

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

.page-about__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--page-about-primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-about__sub-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--page-about-text-main);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__text-block {
    font-size: 1rem;
    color: var(--page-about-text-secondary);
    margin-bottom: 15px;
}

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

.page-about__list-item {
    font-size: 1rem;
    color: var(--page-about-text-secondary);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.page-about__list-item::before {
    content: '✅'; /* Or a custom icon */
    position: absolute;
    left: 0;
    color: var(--page-about-secondary-color);
    font-weight: bold;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Include padding in width calculation */
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

.page-about__btn-primary {
    background: var(--page-about-btn-gradient);
    color: var(--page-about-text-main);
    border: 2px solid transparent;
}

.page-about__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Reverse gradient on hover */
    box-shadow: 0 0 15px var(--page-about-glow);
}

.page-about__btn-secondary {
    background: transparent;
    color: var(--page-about-primary-color);
    border: 2px solid var(--page-about-primary-color);
}

.page-about__btn-secondary:hover {
    background: var(--page-about-primary-color);
    color: var(--page-about-text-main);
    box-shadow: 0 0 15px var(--page-about-glow);
}

.page-about__btn-link {
    background: var(--page-about-deep-green);
    color: var(--page-about-text-main);
    border: 1px solid var(--page-about-border);
    padding: 8px 15px;
    font-size: 0.9rem;
    margin-top: 15px;
}

.page-about__btn-link:hover {
    background: var(--page-about-primary-color);
    box-shadow: 0 0 10px var(--page-about-glow);
}

.page-about__image-block {
    flex: 1;
    min-width: 300px;
}

.page-about__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

.page-about__content-block {
    flex: 1;
}

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

.page-about__card {
    background-color: var(--page-about-card-bg);
    border: 1px solid var(--page-about-border);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--page-about-text-secondary); /* Default text for card */
}

.page-about__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    min-height: 200px; /* Ensure min size */
}

.page-about__card-title {
    font-size: 1.3rem;
    color: var(--page-about-text-main);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-about__card-text {
    font-size: 0.95rem;
    margin-bottom: 15px;
    flex-grow: 1; /* Push button to bottom */
}

.page-about__contact-info {
    margin-top: 30px;
    text-align: center;
}

.page-about__contact-item {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--page-about-text-main);
}

/* FAQ Section */
.page-about__faq-section {
    padding-top: 40px;
}

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

.page-about__faq-item {
    background-color: var(--page-about-card-bg);
    border: 1px solid var(--page-about-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden; /* For smooth transition */
}

.page-about__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--page-about-text-main);
    position: relative;
    outline: none;
}

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

.page-about__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-about__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    width: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or just change to '-' */
}

.page-about__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: var(--page-about-text-secondary);
    line-height: 1.6;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-about__container--flex {
        flex-direction: column;
        gap: 30px;
    }
    .page-about__container--reverse {
        flex-direction: column; /* Revert order for smaller screens */
    }
    .page-about__hero-image-wrapper {
      margin-bottom: 20px;
    }
    .page-about__hero-content {
      padding: 0 15px;
    }
    .page-about__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-about__section-title {
        font-size: clamp(1.6rem, 4vw, 2.5rem);
    }
    .page-about__sub-title {
        font-size: clamp(1.2rem, 3vw, 1.8rem);
    }
    .page-about__grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__container {
        padding: 0 15px;
    }
    .page-about__hero-section {
      padding-bottom: 40px;
    }
    .page-about__hero-image-wrapper {
      margin-bottom: 15px;
    }
    .page-about__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-about__description {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    .page-about__section {
        padding: 40px 0;
    }
    .page-about__section-title {
        font-size: clamp(1.4rem, 5vw, 2rem);
        margin-bottom: 30px;
    }
    .page-about__sub-title {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
        margin-top: 25px;
        margin-bottom: 10px;
    }
    .page-about__text-block,
    .page-about__list-item,
    .page-about__contact-item,
    .page-about__faq-answer {
        font-size: 0.95rem;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px; /* Add padding to container */
        margin-top: 25px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about__btn-link {
        width: 100% !important; /* Force full width */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95rem;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }
    .page-about__grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-about__card {
        padding: 20px;
    }
    .page-about__card-image {
        height: 180px;
        min-height: 180px;
    }
    .page-about__faq-item summary {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-about__faq-answer {
        padding: 0 20px 15px 20px;
    }

    /* Mobile image responsiveness */
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__image-block,
    .page-about__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding handled by container for overall content, but sections/cards might need it too if they are direct children of body/main */
        /* For images and image blocks, ensure no overflow */
        overflow: hidden !important;
    }
    /* Specific padding for content sections if they are direct children of main */
    .page-about__introduction .page-about__container,
    .page-about__commitment .page-about__container,
    .page-about__ecosystem .page-about__container,
    .page-about__why-choose-us .page-about__container,
    .page-about__social-responsibility .page-about__container,
    .page-about__contact .page-about__container,
    .page-about__faq-section .page-about__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    /* Hero section top padding is already small, no need for var(--header-offset) */
    .page-about__hero-section {
        padding-top: 10px !important;
    }
}