/* style/about.css */

/* Custom Colors */
:root {
    --page-about-primary-color: #11A84E;
    --page-about-secondary-color: #22C768;
    --page-about-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-about-card-bg: #11271B;
    --page-about-background: #08160F; /* Body background from custom palette */
    --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;
}

/* Base styles for the page-about content */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--page-about-text-main); /* Dark background, so light text */
    background-color: var(--page-about-background); /* Explicitly set page background */
    padding-bottom: 60px; /* Add some padding at the bottom for overall page */
}

/* Utility background classes for sections */
.page-about__dark-bg {
    background-color: var(--page-about-background);
}
.page-about__deep-green-bg {
    background-color: var(--page-about-deep-green);
}

/* Section styling */
.page-about__section-title {
    font-size: clamp(2em, 5vw, 3.2em); /* H1 constraint: clamp() */
    color: var(--page-about-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-about__sub-title {
    font-size: clamp(1.5em, 3vw, 2em);
    color: var(--page-about-gold);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

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

.page-about__text-block p,
.page-about__faq-answer p {
    color: var(--page-about-text-secondary);
    margin-bottom: 15px;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-about__hero-section .page-about__container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-about__hero-content {
    max-width: 900px;
    z-index: 1;
}

.page-about__main-title {
    font-size: clamp(2.5em, 6vw, 3.8em); /* H1 constraint: clamp() */
    color: var(--page-about-gold);
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-about__description {
    font-size: clamp(1em, 2vw, 1.2em);
    color: var(--page-about-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-align: center;
    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: var(--page-about-button-gradient);
    color: #ffffff; /* White text for dark button background */
    border: 2px solid transparent;
}

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

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

.page-about__btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: rgba(242, 193, 78, 0.1);
}

/* Mission & Vision Section */
.page-about__mission-vision {
    padding: 60px 0;
    color: var(--page-about-text-main); /* Light text on deep green */
}

.page-about__content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.page-about__content-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Advantages Section */
.page-about__advantages-section {
    padding: 60px 0;
}

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

.page-about__card {
    background-color: var(--page-about-card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--page-about-border);
    color: var(--page-about-text-main); /* Light text on dark card background */
}

.page-about__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.page-about__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency, will be object-fit */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-about__card-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--page-about-secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-about__card-link:hover {
    color: var(--page-about-gold);
    text-decoration: underline;
}

/* Responsibility Section */
.page-about__responsibility-section {
    padding: 60px 0;
    color: var(--page-about-text-main);
}

.page-about__content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.page-about__content-image--left {
    order: 0; /* Default order for mobile/small screens */
}

/* Achievements Section */
.page-about__achievements-section {
    padding: 60px 0;
}

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

.page-about__achievement-card {
    background-color: var(--page-about-card-bg);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    border: 1px solid var(--page-about-border);
    color: var(--page-about-text-main);
}

/* Future Section */
.page-about__future-section {
    padding: 60px 0;
    color: var(--page-about-text-main);
}

/* Contact Section */
.page-about__contact-section {
    padding: 60px 0;
    text-align: center;
}

.page-about__text-center {
    text-align: center;
}

/* FAQ Section */
.page-about__faq-section {
    padding: 60px 0;
    color: var(--page-about-text-main);
}

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

.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;
    color: var(--page-about-text-main);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.15em;
    color: var(--page-about-gold);
    background-color: var(--page-about-card-bg);
    transition: background-color 0.3s ease;
    list-style: none; /* Hide default marker for details */
}

.page-about__faq-question:hover {
    background-color: rgba(17, 168, 78, 0.1); /* Slight hover effect */
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--page-about-gold);
}

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to form an X or minus */
}

.page-about__faq-answer {
    padding: 0 25px 20px;
    color: var(--page-about-text-secondary);
    font-size: 0.95em;
}

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

/* Responsive Styles */
@media (min-width: 769px) {
    .page-about__content-grid {
        grid-template-columns: 1fr 1fr;
    }
    .page-about__content-wrapper {
        grid-template-columns: 1fr 1fr;
    }
    .page-about__content-image--left {
        order: -1; /* Image on left for larger screens */
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }

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

    .page-about__hero-section {
        padding-bottom: 40px;
    }

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

    .page-about__main-title {
        font-size: 2em; /* Adjust H1 for mobile */
    }

    .page-about__description {
        font-size: 1em;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .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__container {
        padding: 0 15px;
    }

    .page-about__card,
    .page-about__achievement-card {
        padding: 20px;
    }

    /* Images 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__content-grid,
    .page-about__content-wrapper,
    .page-about__advantages-grid,
    .page-about__achievement-grid,
    .page-about__future-grid,
    .page-about__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Specific padding for sections */
    .page-about__hero-section,
    .page-about__mission-vision,
    .page-about__advantages-section,
    .page-about__responsibility-section,
    .page-about__achievements-section,
    .page-about__future-section,
    .page-about__contact-section,
    .page-about__faq-section {
        padding-left: 0;
        padding-right: 0;
        padding-top: 30px;
        padding-bottom: 30px;
    }
    
    .page-about__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
    }

    .page-about__card-image {
        height: 180px; /* Adjust card image height for mobile */
    }

    .page-about__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
        flex-direction: column; /* Ensure vertical stacking for buttons */
    }
}

/* CSS for video elements if any, ensuring responsiveness */
.page-about video,
.page-about__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-about__video-section,
.page-about__video-container,
.page-about__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-about__video-section {
    padding-top: 10px !important;
  }
  
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}