/* General styles for the About Us page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main, #FFF6D6); /* Default light text for dark background */
    background-color: var(--bg-dark, #0A0A0A); /* Inherited from shared, but for safety */
}

/* Section spacing */
.page-about__section-spacing {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

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

/* Section Titles */
.page-about__section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: bold;
    color: var(--primary-color, #F2C14E);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

/* Text Blocks */
.page-about__text-block {
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--text-main, #FFF6D6);
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding for non-homepage hero */
    padding-bottom: 60px;
    background-color: var(--bg-dark, #0A0A0A);
}

.page-about__hero-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    max-height: 675px;
    object-fit: cover;
    border-radius: 10px;
}

.page-about__hero-text-container {
    text-align: center;
    max-width: 800px;
}

.page-about__hero-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: bold;
    color: var(--primary-color, #F2C14E);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-about__hero-description {
    font-size: 18px;
    color: var(--text-main, #FFF6D6);
    margin-bottom: 30px;
}

/* Buttons */
.page-about__cta-button,
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Important for mobile */
    box-sizing: border-box; /* Important for mobile */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-about__cta-button {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #0A0A0A; /* Dark text for light button */
    border: none;
}

.page-about__cta-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #0A0A0A;
    border: none;
}

.page-about__btn-primary:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.page-about__btn-secondary {
    background: transparent;
    color: var(--primary-color, #F2C14E);
    border: 2px solid var(--border-color, #3A2A12);
}

.page-about__btn-secondary:hover {
    background-color: var(--primary-color, #F2C14E);
    color: #0A0A0A;
    transform: translateY(-2px);
}

/* Dark Section */
.page-about__dark-section {
    background-color: var(--card-bg, #111111); /* Card BG for dark sections */
    color: var(--text-main, #FFF6D6);
}

/* Image Text Block (for history, security, team sections) */
.page-about__image-text-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.page-about__image-text-block--reverse {
    flex-direction: row-reverse;
}

.page-about__content-image {
    flex: 1;
    min-width: 300px;
    width: 100%; /* Ensure image fills its flex container */
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

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

/* Mission & Vision Section */
.page-about__mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-about__mission-item {
    background-color: var(--bg-dark, #0A0A0A); /* Darker background for items */
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color, #3A2A12);
}

.page-about__mission-title {
    font-size: 24px;
    color: var(--secondary-color, #FFD36B);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__values {
    background-color: var(--bg-dark, #0A0A0A);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color, #3A2A12);
}

.page-about__values-title {
    font-size: 24px;
    color: var(--primary-color, #F2C14E);
    margin-bottom: 20px;
    text-align: center;
}

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

.page-about__values-list li {
    font-size: 16px;
    color: var(--text-main, #FFF6D6);
    position: relative;
    padding-left: 25px;
}

.page-about__values-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--secondary-color, #FFD36B);
}

.page-about__value-highlight {
    color: var(--secondary-color, #FFD36B);
}

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

.page-about__product-item {
    background-color: var(--card-bg, #111111);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border-color, #3A2A12);
}

.page-about__product-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
}

.page-about__product-item h3 {
    font-size: 20px;
    color: var(--primary-color, #F2C14E);
    margin: 15px 15px 10px;
    font-weight: bold;
}

.page-about__product-description {
    font-size: 15px;
    color: var(--text-main, #FFF6D6);
    padding: 0 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-about__product-item .page-about__btn-secondary {
    margin: 0 15px 15px;
    align-self: flex-start; /* Align button to start */
    padding: 8px 15px;
    font-size: 14px;
}

/* Why Choose Us Section */
.page-about__advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-about__advantage-item {
    background-color: var(--bg-dark, #0A0A0A);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color, #3A2A12);
}

.page-about__advantage-title {
    font-size: 22px;
    color: var(--secondary-color, #FFD36B);
    margin-bottom: 15px;
    font-weight: bold;
}

/* CTA Section */
.page-about__cta-content {
    text-align: center;
    padding: 40px;
    background-color: var(--card-bg, #111111);
    border-radius: 10px;
    border: 1px solid var(--border-color, #3A2A12);
}

.page-about__cta-content .page-about__section-title {
    color: var(--primary-color, #F2C14E);
}

.page-about__cta-content .page-about__text-block {
    font-size: 18px;
    margin-bottom: 30px;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    width: 100%; /* Important for mobile */
    max-width: 100%; /* Important for mobile */
    box-sizing: border-box; /* Important for mobile */
    overflow: hidden; /* Important for mobile */
}

.page-about__cta-button,
.page-about__btn-primary,
.page-about__btn-secondary {
    max-width: 100%; /* Important for mobile */
    box-sizing: border-box; /* Important for mobile */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-about__cta-image {
    width: 100%;
    height: auto;
    max-height: 675px;
    object-fit: cover;
    border-radius: 10px;
}

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

.page-about__faq-item {
    background-color: var(--bg-dark, #0A0A0A);
    border: 1px solid var(--border-color, #3A2A12);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color, #F2C14E);
    cursor: pointer;
    background-color: var(--card-bg, #111111);
    position: relative;
    list-style: none; /* For details/summary */
}

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

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

.page-about__faq-toggle {
    font-size: 24px;
    line-height: 1;
    margin-left: 15px;
    color: var(--secondary-color, #FFD36B);
    transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
    padding: 0 25px 20px;
    font-size: 16px;
    color: var(--text-main, #FFF6D6);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-about__faq-item[open] .page-about__faq-answer {
    max-height: 500px; /* Sufficient height for content */
    padding-top: 10px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__section-spacing {
        padding: 50px 15px;
    }
    .page-about__hero-title {
        font-size: clamp(28px, 4.5vw, 48px);
    }
    .page-about__hero-description {
        font-size: 17px;
    }
    .page-about__image-text-block {
        flex-direction: column;
        gap: 30px;
    }
    .page-about__image-text-block--reverse {
        flex-direction: column; /* Keep column for consistency on tablet */
    }
    .page-about__content-image {
        min-width: unset;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__cta-button,
    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100%;
    }
    .page-about__values-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-about__hero-section {
        padding-top: 10px !important; /* Enforce small top padding */
        padding-bottom: 40px !important;
    }
    .page-about__hero-title {
        font-size: clamp(24px, 7vw, 36px) !important; /* Smaller H1 for mobile */
    }
    .page-about__hero-description {
        font-size: 16px !important;
    }

    /* Section Spacing and Containers */
    .page-about__section-spacing {
        padding: 40px 15px !important;
    }
    .page-about__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Section Titles */
    .page-about__section-title {
        font-size: clamp(24px, 6vw, 32px) !important;
        margin-bottom: 30px !important;
    }
    .page-about__text-block {
        font-size: 15px !important;
    }

    /* Generic Images & Containers (Required for all images) */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-about__image-text-block {
        flex-direction: column !important;
        gap: 20px !important;
    }
    .page-about__image-text-block--reverse {
        flex-direction: column !important;
    }

    /* Product Grid */
    .page-about__product-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .page-about__product-image {
        height: 180px !important;
    }
    .page-about__product-item h3 {
        font-size: 18px !important;
    }
    .page-about__product-description {
        font-size: 14px !important;
    }

    /* Advantages Grid */
    .page-about__advantages-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .page-about__advantage-title {
        font-size: 20px !important;
    }

    /* Mission Grid */
    .page-about__mission-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .page-about__mission-title {
        font-size: 20px !important;
    }
    .page-about__values-list {
        grid-template-columns: 1fr !important;
    }

    /* CTA Section */
    .page-about__cta-content {
        padding: 30px 15px !important;
    }
    .page-about__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding: 0 15px !important; /* Add padding to prevent buttons touching edges */
    }
    .page-about__cta-button,
    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        font-size: 16px !important;
    }

    /* FAQ Section */
    .page-about__faq-question {
        padding: 15px 20px !important;
        font-size: 16px !important;
    }
    .page-about__faq-answer {
        padding: 0 20px 15px !important;
        font-size: 15px !important;
    }
}