/* style/about.css */

/* Variables for colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background-main: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-deep-green: #0A4B2C;
    --color-divider: #1E3A2A;
}

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

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

.page-about__section {
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.page-about__section-title {
    font-size: clamp(1.8rem, 2.5vw, 2.8rem); /* Responsive font size for H2 */
    color: var(--color-gold);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.page-about__section-description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 800px;
    margin: 0 auto 40px auto;
}

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

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height of hero image */
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

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

.page-about__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    z-index: 1; /* Ensure content is above any background elements */
}

.page-about__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    color: var(--color-gold);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.03em;
}

.page-about__intro-text {
    font-size: 1.2rem;
    color: var(--color-text-main);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Call to Action Button */
.page-about__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__cta-button:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__cta-button--secondary {
    background: var(--color-deep-green);
    border: 2px solid var(--color-primary);
    color: var(--color-text-main);
}

.page-about__cta-button--secondary:hover {
    background: var(--color-primary);
    border-color: var(--color-deep-green);
    color: #ffffff;
}

/* General Content Sections */
.page-about__general-introduction,
.page-about__history-milestones,
.page-about__diverse-products,
.page-about__social-responsibility,
.page-about__future-vision,
.page-about__call-to-action {
    background-color: var(--color-background-main); /* Consistent background */
    color: var(--color-text-main);
}

.page-about__license-security,
.page-about__team-support,
.page-about__promotions,
.page-about__faq-section {
    background-color: var(--color-card-bg); /* Darker background for contrast */
    color: var(--color-text-main);
}

.page-about__content-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    margin-top: 40px;
}

.page-about__content-grid--reverse {
    flex-direction: row-reverse;
}

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

.page-about__text-block p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--color-text-secondary);
}

.page-about__text-block h3 {
    color: var(--color-gold);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.page-about__image-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
    background-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-about__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px;
}

/* Product Cards */
.page-about__product-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__card {
    background-color: var(--color-deep-green); /* Changed to deep green for contrast */
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--color-text-main);
}

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

.page-about__card-title {
    font-size: 1.6rem;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__card p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.page-about__card-link {
    display: inline-block;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

/* Promotions List */
.page-about__promo-list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 800px;
    text-align: left;
}

.page-about__promo-list li {
    background-color: var(--color-deep-green);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__promo-list li strong {
    color: var(--color-gold);
    margin-right: 10px;
}

/* FAQ Section */
.page-about__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-about__faq-item {
    background-color: var(--color-deep-green);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--color-gold);
    cursor: pointer;
    position: relative;
    user-select: none;
    list-style: none; /* For <summary> tag */
}

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

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

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-about__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    border-top: 1px solid var(--color-divider);
}

.page-about__faq-answer p {
    margin-bottom: 15px;
}

.page-about__faq-cta {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background: var(--color-primary);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.95rem;
    transition: background-color 0.3s ease;
}

.page-about__faq-cta:hover {
    background-color: var(--color-button-gradient-start);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-about__content-grid {
        flex-direction: column;
    }
    .page-about__content-grid--reverse {
        flex-direction: column; /* Still column for reverse on smaller screens */
    }
    .page-about__image-wrapper {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-about__section {
        padding: 40px 0;
    }
    .page-about__hero-section {
        padding: 10px 0 40px 0;
    }
    .page-about__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 20px;
    }
    .page-about__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
    .page-about__intro-text {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    .page-about__section-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }
    .page-about__cta-button,
    .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: 12px 20px !important;
        font-size: 1rem !important;
    }
    .page-about__cta-button-wrapper, /* If a wrapper exists for buttons */
    .page-about__button-group,
    .page-about__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        display: flex;
        flex-direction: column; /* Stack buttons vertically */
    }

    .page-about__image,
    .page-about img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-about__image-wrapper,
    .page-about__product-cards,
    .page-about__card,
    .page-about__general-introduction,
    .page-about__history-milestones,
    .page-about__license-security,
    .page-about__diverse-products,
    .page-about__team-support,
    .page-about__social-responsibility,
    .page-about__promotions,
    .page-about__future-vision,
    .page-about__faq-section,
    .page-about__call-to-action,
    .page-about__container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important; /* Prevent horizontal scroll */
    }

    .page-about__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
    
    .page-about__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-about__faq-answer {
        padding: 0 20px 15px 20px;
    }
    .page-about__card {
        padding: 20px;
    }
    .page-about__card-title {
        font-size: 1.4rem;
    }
    .page-about__promo-list li {
        font-size: 1rem;
        padding: 12px 15px;
    }
}

/* Ensure content text is readable on dark backgrounds */
.page-about p,
.page-about li,
.page-about__text-block p {
    color: var(--color-text-secondary); /* Use secondary text color for paragraphs */
}
.page-about__hero-content .page-about__intro-text {
    color: var(--color-text-main); /* Brighter for hero intro */
}