/* style/about.css */

/* Custom Variables based on provided palette */
: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-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-about-glow: #57E38D;
    --page-about-gold: #F2C14E;
    --page-about-divider: #1E3A2A;
    --page-about-deep-green: #0A4B2C;
}

.page-about {
    background-color: var(--page-about-bg);
    color: var(--page-about-text-main); /* Light text for dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    font-size: 16px;
    /* body already has padding-top from shared.css, no need to add here */
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
}

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

.page-about__dark-section {
    background-color: var(--page-about-deep-green); /* Using Deep Green for dark sections */
    color: var(--page-about-text-main);
}

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

.page-about__section-title {
    font-size: 3em;
    color: var(--page-about-glow); /* Using Glow for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.2;
}

.page-about__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* H1 with clamp for responsive font size */
    color: var(--page-about-gold); /* Using Gold for main title */
    text-align: center;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--page-about-text-main);
    text-align: justify;
}

.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-about__hero-image-wrapper {
    width: 100%;
    position: relative;
    margin-bottom: 40px;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-about__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-about__hero-description {
    font-size: 1.2em;
    color: var(--page-about-text-secondary);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 600px; /* Limit max width for button group */
    margin: 0 auto;
    box-sizing: border-box;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
}

.page-about__btn-primary {
    background: var(--page-about-button-gradient);
    color: var(--page-about-text-main); /* White text for gradient button */
    border: 2px solid transparent;
}

.page-about__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(42, 209, 111, 0.4);
}

.page-about__btn-secondary {
    background: transparent;
    color: var(--page-about-glow); /* Glow color for secondary button text */
    border: 2px solid var(--page-about-glow);
}

.page-about__btn-secondary:hover {
    background: rgba(87, 227, 141, 0.1);
    transform: translateY(-3px);
}

.page-about__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-top: 30px;
    object-fit: cover;
    max-width: 1000px; /* Default max width for content images */
    margin-left: auto;
    margin-right: auto;
}

.page-about__image--centered {
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-about__grid-title {
    font-size: 1.8em;
    color: var(--page-about-gold);
    margin-bottom: 20px;
    font-weight: 600;
}

.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-color: var(--page-about-card-bg);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--page-about-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-about__card-description {
    color: var(--page-about-text-secondary);
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

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

.page-about__responsible-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-about__list-item {
    background-color: var(--page-about-card-bg);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--page-about-border);
    color: var(--page-about-text-main);
    font-size: 1.1em;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__list-item strong {
    color: var(--page-about-gold);
}

.page-about__btn--small {
    padding: 10px 20px;
    font-size: 0.9em;
    margin-top: 20px;
}

/* FAQ Section */
.page-about__faq-list {
    margin-top: 40px;
}

.page-about__faq-item {
    background-color: var(--page-about-card-bg);
    border: 1px solid var(--page-about-border);
    border-radius: 8px;
    margin-bottom: 15px;
    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: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--page-about-glow);
    position: relative;
    user-select: none;
}

.page-about__faq-question::-webkit-details-marker {
    display: none;
}

.page-about__faq-question::marker {
    display: none;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-about-gold);
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__section-title {
        font-size: 2.5em;
    }
    .page-about__main-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }
    .page-about__hero-description {
        font-size: 1.1em;
    }
    .page-about__grid,
    .page-about__features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__section {
        padding: 40px 0;
    }
    .page-about__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .page-about__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }
    .page-about__hero-content {
        padding: 0 15px;
    }
    .page-about__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-about__hero-image,
    .page-about__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-about__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-about__text-block,
    .page-about__card-description,
    .page-about__list-item,
    .page-about__faq-answer p {
        font-size: 1em;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }
    .page-about__feature-card,
    .page-about__grid-item,
    .page-about__faq-item {
        padding: 20px;
    }
    .page-about__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-about__faq-answer {
        padding: 0 20px 15px 20px;
    }
    .page-about__hero-section {
        padding-top: 10px !important;
    }
}

@media (max-width: 480px) {
    .page-about__section-title {
        font-size: 1.8em;
    }
    .page-about__main-title {
        font-size: clamp(1.6em, 7vw, 2.2em);
    }
    .page-about__faq-question {
        font-size: 1em;
    }
}