/* style/about.css */

/* Variables from custom palette */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --site-bg: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

.page-about {
    background: var(--site-bg);
    color: var(--text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-about__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--gold-color);
    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: var(--primary-color);
    border-radius: 2px;
}

/* Hero Section */
.page-about__hero-section {
    display: flex;
    flex-direction: column; /* Ensure image is above text */
    align-items: center;
    padding-top: 10px; /* Small top padding, not --header-offset */
    padding-bottom: 60px;
    background: var(--deep-green);
    overflow: hidden;
    position: relative;
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 40px; /* Space between image and content */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page-about__hero-content {
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 1;
}

.page-about__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Use clamp for H1 */
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* For mobile responsiveness */
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-about__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main); /* White text on dark button */
    border: none;
}

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

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

.page-about__btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: var(--primary-color);
    color: var(--text-main);
}

/* Mission Section */
.page-about__mission-section {
    padding: 80px 0;
    background: var(--site-bg);
    border-top: 1px solid var(--divider-color);
}

.page-about__mission-content {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-about__text-block {
    flex: 1;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.page-about__mission-image {
    flex-shrink: 0;
    width: 45%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: block;
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
    object-fit: cover;
}

/* Why Choose Us Section */
.page-about__why-choose-us {
    padding: 80px 0;
    background: var(--card-bg);
    border-top: 1px solid var(--divider-color);
}

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

.page-about__feature-card {
    background: var(--deep-green);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    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 6px 20px rgba(0, 0, 0, 0.4);
}

.page-about__feature-icon {
    width: 100%; /* Card image takes full width */
    max-width: 400px; /* Max width for card image */
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px;
    min-height: 200px;
}

.page-about__card-title {
    font-size: 24px;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: 600;
}

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

/* Values Section */
.page-about__values-section {
    padding: 80px 0;
    background: var(--site-bg);
    border-top: 1px solid var(--divider-color);
}

.page-about__values-list {
    list-style: none;
    padding: 0;
    margin: 40px 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-about__value-item {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.page-about__value-heading {
    font-size: 22px;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: 600;
}

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

/* FAQ Section */
.page-about__faq-section {
    padding: 80px 0;
    background: var(--deep-green);
    border-top: 1px solid var(--divider-color);
}

.page-about__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px; /* Slightly larger radius */
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
details.page-about__faq-item summary.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px; /* Increased padding */
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-about__faq-item summary.page-about__faq-question::-webkit-details-marker {
  display: none;
}
details.page-about__faq-item summary.page-about__faq-question:hover {
  background: var(--divider-color); /* Darker hover for dark background */
}
.page-about__faq-qtext {
  flex: 1;
  font-size: 18px; /* Slightly larger font */
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main); /* Light text for dark background */
}
.page-about__faq-toggle {
  font-size: 26px; /* Larger toggle icon */
  font-weight: bold;
  color: var(--gold-color); /* Gold color for toggle */
  flex-shrink: 0;
  margin-left: 20px; /* Increased margin */
  width: 30px; /* Larger width */
  text-align: center;
}
details.page-about__faq-item .page-about__faq-answer {
  padding: 0 25px 20px; /* Increased padding */
  background: var(--deep-green); /* Slightly different background for answer */
  border-radius: 0 0 8px 8px;
  color: var(--text-secondary); /* Secondary text color for answer */
  font-size: 1rem;
}

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

/* --- Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
    .page-about__container {
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-about__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    /* Hero Section */
    .page-about__hero-section {
        padding-top: 10px !important; /* Ensure small padding top */
        padding-bottom: 40px;
    }

    .page-about__hero-image-wrapper {
        margin-bottom: 30px;
        border-radius: 0; /* No border-radius on mobile for full bleed */
    }

    .page-about__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-about__hero-content {
        padding: 0 15px;
    }

    .page-about__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem); /* Adjust clamp for mobile H1 */
        margin-bottom: 15px;
    }

    .page-about__hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .page-about__hero-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to button group */
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Mission Section */
    .page-about__mission-section {
        padding: 50px 0;
    }

    .page-about__mission-content {
        flex-direction: column; /* Stack image and text */
        gap: 30px;
        margin-top: 30px;
    }

    .page-about__text-block {
        font-size: 1rem;
    }

    .page-about__mission-image {
        width: 100%;
        max-width: 100% !important;
        height: auto !important;
    }

    /* Why Choose Us Section */
    .page-about__why-choose-us {
        padding: 50px 0;
    }

    .page-about__features-grid {
        grid-template-columns: 1fr; /* Single column for cards */
        gap: 25px;
        margin-top: 30px;
    }

    .page-about__feature-card {
        padding: 25px;
    }

    .page-about__feature-icon {
        height: 200px; /* Adjust card image height for mobile */
        min-width: 200px !important;
        min-height: 200px !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-about__card-title {
        font-size: 20px;
    }

    .page-about__card-description {
        font-size: 0.95rem;
    }

    /* Values Section */
    .page-about__values-section {
        padding: 50px 0;
    }

    .page-about__values-list {
        grid-template-columns: 1fr; /* Single column for values */
        gap: 25px;
        margin-top: 30px;
    }

    .page-about__value-heading {
        font-size: 20px;
    }

    /* FAQ Section */
    .page-about__faq-section {
        padding: 50px 0;
    }

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

    details.page-about__faq-item summary.page-about__faq-question {
        padding: 15px 20px;
    }
    .page-about__faq-qtext {
        font-size: 16px;
    }
    .page-about__faq-toggle {
        font-size: 22px;
        margin-left: 15px;
        width: 25px;
    }
    details.page-about__faq-item .page-about__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95rem;
    }
}