/* style/about.css */

/* Variables from shared.css might be used, but not defined here. */
/* body padding-top is handled by shared.css */

:root {
    --primary-color: #11A84E; /* Main color */
    --secondary-color: #22C768; /* Auxiliary color */
    --text-main: #F2FFF6; /* Main text color */
    --text-secondary: #A7D9B8; /* Secondary text color */
    --bg-card: #11271B; /* Card Background */
    --bg-main: #08160F; /* Main Background */
    --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    --border-color: #2E7A4E; /* Border color */
    --glow-color: #57E38D; /* Glow color */
    --gold-color: #F2C14E; /* Gold color */
    --divider-color: #1E3A2A; /* Divider color */
    --deep-green: #0A4B2C; /* Deep Green */
}

.page-about {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Default text color for the page */
    background-color: var(--bg-main); /* Default background color for the page */
    line-height: 1.6;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image block first, then content block */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 60px; /* Space below content before next section */
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    overflow: hidden; /* Ensure nothing overflows */
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    max-height: 500px; /* Limit height for hero image */
}

.page-about__hero-content {
    max-width: 900px;
    padding: 30px 20px;
    color: var(--text-main); /* Ensure text is visible on hero background */
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    border-radius: 8px;
    margin-top: -150px; /* Pull content up over the image slightly for visual appeal, but not *on* the image */
    z-index: 1; /* Ensure content is above image */
    position: relative;
    box-sizing: border-box;
}

.page-about__main-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--gold-color);
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-about__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--btn-gradient);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
}

.page-about__cta-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* General Section Styling */
.page-about__section {
    padding: 60px 0;
    box-sizing: border-box;
}

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

.page-about__container--centered {
    text-align: center;
}

.page-about__heading {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 5px rgba(242, 193, 78, 0.3);
}

.page-about__heading--white {
    color: var(--text-main);
    text-shadow: none;
}

.page-about__description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__description--white {
    color: var(--text-main);
}

/* Introduction Section */
.page-about__section--introduction {
    background-color: var(--bg-main);
    padding-top: 30px;
}

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

.page-about__text-block {
    flex: 1;
    min-width: 300px;
    color: var(--text-secondary);
}

.page-about__text-block p {
    margin-bottom: 15px;
    font-size: 1rem;
}

.page-about__sub-heading {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

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

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

.page-about__list-item::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

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

.page-about__image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: block; /* Ensure it behaves as a block for max-width/height auto */
}

/* Why Choose Section */
.page-about__section--why-choose {
    background-color: var(--bg-card); /* Using card background for this section */
    padding-bottom: 40px;
}

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

.page-about__feature-card {
    background-color: var(--bg-main);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-about__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-about__feature-icon {
    width: 100%; /* Ensure it fills the card width */
    max-width: 300px; /* Max size for the icon/image */
    height: auto;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    display: block;
}

.page-about__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-about__card-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Products Section */
.page-about__section--products {
    background-color: var(--bg-main);
}

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

.page-about__product-card {
    background-color: var(--bg-card);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-about__product-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.page-about__product-title a {
    color: var(--gold-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-about__product-title a:hover {
    color: var(--glow-color);
}

.page-about__product-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1; /* Allows text to take up available space */
}

.page-about__btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    align-self: flex-start; /* Align button to start of card */
}

.page-about__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-main);
    box-shadow: 0 3px 10px rgba(17, 168, 78, 0.4);
}

/* Commitment Section */
.page-about__section--commitment {
    background-color: var(--bg-main);
    border-top: 1px solid var(--divider-color);
}

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

.page-about__commitment-item {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    text-align: center;
}

.page-about__commitment-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-about__commitment-text {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* CTA Section */
.page-about__section--cta {
    background: var(--deep-green);
    padding: 80px 0;
    text-align: center;
}

.page-about__dark-section {
    background-color: var(--deep-green); /* Example for dark background section */
    color: var(--text-main);
}

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

.page-about__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: var(--btn-gradient);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
}

.page-about__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* FAQ Section */
.page-about__section--faq {
    background-color: var(--bg-main);
    padding-bottom: 80px;
}

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

.page-about__faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    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: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    background-color: var(--deep-green);
    border-bottom: 1px solid var(--divider-color);
    list-style: none; /* For details/summary */
}

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

.page-about__faq-item[open] .page-about__faq-question {
    border-bottom: 1px solid var(--primary-color);
}

.page-about__faq-qtext {
    flex-grow: 1;
}

.page-about__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--gold-color);
    transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-about__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--text-secondary);
    background-color: var(--bg-main);
    line-height: 1.7;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__hero-content {
        margin-top: -100px; /* Adjust for smaller screens */
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding-bottom: 40px;
    }

    .page-about__hero-content {
        margin-top: -80px;
        padding: 20px 15px;
    }

    .page-about__main-title {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }

    .page-about__subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-about__cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

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

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

    .page-about__heading {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .page-about__description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .page-about__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .page-about__text-block,
    .page-about__image-block {
        min-width: unset;
        width: 100%;
    }

    .page-about__features-grid,
    .page-about__product-grid,
    .page-about__commitment-grid {
        grid-template-columns: 1fr; /* Single column layout for mobile */
    }

    .page-about__feature-card,
    .page-about__product-card,
    .page-about__commitment-item {
        padding: 20px;
    }

    .page-about__feature-icon {
        max-width: 250px;
    }

    .page-about__card-title,
    .page-about__product-title,
    .page-about__commitment-title {
        font-size: 1.3rem;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%; /* Ensure container takes full width */
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px; /* Add padding to the container itself */
    }

    .page-about__cta-button,
    .page-about__btn-primary,
    .page-about__btn-secondary {
        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; /* Ensure button text has internal padding */
    }

    .page-about__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

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

    /* Mobile image responsiveness enforcement */
    .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__content-wrapper,
    .page-about__features-grid,
    .page-about__product-grid,
    .page-about__commitment-grid,
    .page-about__cta-buttons,
    .page-about__faq-list,
    .page-about__image-block,
    .page-about__feature-card,
    .page-about__product-card
    {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
    
    /* Override for specific elements where padding might be handled differently or not needed */
    .page-about__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-about__hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-about__section--cta .page-about__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    /* Ensure images within cards/blocks also respect container padding */
    .page-about__feature-card img,
    .page-about__image {
        padding: 0 !important; /* Image itself should not have internal padding */
    }
}