/* style/about.css */

/* Variables (if needed, though shared.css should define global ones) */
:root {
    --page-about-primary-color: #11A84E; /* Main color */
    --page-about-secondary-color: #22C768; /* Accent color */
    --page-about-bg-color: #08160F; /* Section background */
    --page-about-card-bg: #11271B; /* Card background */
    --page-about-text-main: #F2FFF6; /* Main text color */
    --page-about-text-secondary: #A7D9B8; /* Secondary text color */
    --page-about-border-color: #2E7A4E; /* Border color */
    --page-about-glow-color: #57E38D; /* Glow color */
    --page-about-gold-color: #F2C14E; /* Gold color */
    --page-about-divider-color: #1E3A2A; /* Divider color */
    --page-about-deep-green: #0A4B2C; /* Deep Green */
}

.page-about {
    background-color: var(--page-about-bg-color); /* Matches body background if not set by shared */
    color: var(--page-about-text-main); /* Default text color for the page */
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

.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;
    overflow: hidden; /* Ensure no overflow */
}

.page-about__hero-section {
    padding: 0; /* Remove padding here */
    display: flex;
    flex-direction: column; /* Stack image and content vertically */
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: var(--page-about-deep-green);
    color: var(--page-about-text-main); /* Ensure text color is set */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit hero image height */
    overflow: hidden;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7); /* Slightly darken image for visual effect, not color change */
}

.page-about__hero-content {
    position: relative; /* No absolute positioning */
    z-index: 10; /* Keep z-index if there are other elements */
    max-width: 900px;
    width: 100%;
    padding: 40px 20px;
    box-sizing: border-box;
    color: var(--page-about-text-main);
    background-color: var(--page-about-bg-color); /* Add a background for content block */
    margin-top: -50px; /* Pull content up slightly over the bottom of the image */
    border-radius: 15px 15px 0 0;
    box-shadow: 0 -10px 20px rgba(0,0,0,0.3);
}

/* Ensure text colors are right on the new dark background */
.page-about__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--page-about-gold-color); /* Gold for main title on dark background */
    line-height: 1.2;
    letter-spacing: 1px;
}

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

.page-about__section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 40px;
    color: var(--page-about-gold-color);
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.page-about__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--page-about-primary-color), transparent);
    border-radius: 2px;
}

.page-about__sub-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--page-about-primary-color);
}

.page-about__text {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--page-about-text-secondary);
    text-align: justify;
}

.page-about__list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.page-about__list-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    color: var(--page-about-text-secondary);
}

.page-about__list-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--page-about-primary-color);
    font-weight: bold;
}

.page-about__numbered-list {
    list-style: decimal;
    padding-left: 20px;
    margin: 20px 0;
    text-align: left;
    color: var(--page-about-text-secondary);
}

.page-about__numbered-list .page-about__list-item {
    padding-left: 0; /* Reset for numbered list */
    margin-bottom: 10px;
}

.page-about__numbered-list .page-about__list-item::before {
    content: none; /* Remove custom checkmark */
}

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

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: var(--page-about-text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-about__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-about__btn-secondary {
    background: transparent;
    color: var(--page-about-primary-color);
    border: 2px solid var(--page-about-primary-color);
    box-shadow: 0 2px 10px rgba(17, 168, 78, 0.2);
}

.page-about__btn-secondary:hover {
    background-color: var(--page-about-primary-color);
    color: var(--page-about-text-main);
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-about__btn-link {
    background: none;
    border: none;
    color: var(--page-about-primary-color);
    text-decoration: underline;
    padding: 0;
    font-size: 0.95rem;
    margin-top: 10px;
}

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

/* Specific Section Styles */
.page-about__introduction-section {
    background-color: var(--page-about-bg-color);
}

.page-about__security-section {
    background-color: var(--page-about-deep-green); /* Darker background for this section */
    padding: 80px 0;
}

.page-about__security-content,
.page-about__experience-content,
.page-about__responsibility-content {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-about__security-content .page-about__image-wrapper,
.page-about__experience-content .page-about__image-wrapper,
.page-about__responsibility-content .page-about__image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
}

.page-about__security-content .page-about__text-content,
.page-about__experience-content .page-about__text-content,
.page-about__responsibility-content .page-about__text-content {
    flex: 1.5;
    min-width: 300px;
    max-width: 65%;
}

.page-about__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.page-about__products-section {
    background-color: var(--page-about-bg-color);
}

.page-about__products-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Image on left, cards on right */
    gap: 40px;
    align-items: start;
    text-align: left;
}

.page-about__products-image-wrapper {
    grid-column: 1 / 2;
    max-width: 100%;
}

.page-about__product-categories {
    grid-column: 2 / 3;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.page-about__product-card {
    background-color: var(--page-about-card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    border: 1px solid var(--page-about-divider-color);
}

.page-about__product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    border-color: var(--page-about-primary-color);
}

.page-about__card-title {
    font-size: 1.4rem;
    color: var(--page-about-gold-color);
    margin-bottom: 10px;
}

.page-about__card-text {
    font-size: 0.95rem;
    color: var(--page-about-text-secondary);
    flex-grow: 1;
    margin-bottom: 15px;
}

.page-about__experience-section {
    background-color: var(--page-about-bg-color); /* Adjusted to match dark theme */
    padding: 80px 0;
}

.page-about__experience-content {
    flex-direction: row-reverse; /* Image on right, text on left */
}

.page-about__promotions-section {
    background-color: var(--page-about-deep-green);
    padding: 80px 0;
}

.page-about__promotion-list {
    text-align: justify;
}

.page-about__responsibility-section {
    background-color: var(--page-about-bg-color);
    padding: 80px 0;
}

.page-about__join-us-section {
    background-color: var(--page-about-deep-green);
    padding: 80px 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-content {
        max-width: 700px;
    }
    .page-about__main-title {
        font-size: clamp(2rem, 4vw, 3rem);
    }
    .page-about__section-title {
        font-size: 2rem;
    }
    .page-about__sub-title {
        font-size: 1.6rem;
    }
    .page-about__security-content,
    .page-about__experience-content,
    .page-about__responsibility-content {
        flex-direction: column;
        text-align: center;
    }
    .page-about__security-content .page-about__image-wrapper,
    .page-about__experience-content .page-about__image-wrapper,
    .page-about__responsibility-content .page-about__image-wrapper {
        max-width: 100%;
    }
    .page-about__security-content .page-about__text-content,
    .page-about__experience-content .page-about__text-content,
    .page-about__responsibility-content .page-about__text-content {
        max-width: 100%;
    }
    .page-about__products-grid {
        grid-template-columns: 1fr; /* Stack on smaller screens */
    }
    .page-about__products-image-wrapper {
        grid-column: auto;
    }
    .page-about__product-categories {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__hero-content {
        padding: 15px;
        margin-top: -30px; /* Adjust overlap for mobile */
        border-radius: 10px 10px 0 0;
    }
    .page-about__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-about__hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .page-about__section {
        padding: 40px 0;
    }
    .page-about__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .page-about__sub-title {
        font-size: 1.4rem;
        margin-top: 25px;
        margin-bottom: 10px;
    }
    .page-about__text {
        font-size: 0.95rem;
    }
    .page-about__list-item, .page-about__numbered-list .page-about__list-item {
        font-size: 0.95rem;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about__btn-link {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100% !important; /* Force full width */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-about__container {
        padding: 0 15px;
    }

    /* Image responsive adaptions */
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden; /* Ensure no horizontal scroll */
    }
    .page-about__hero-section {
        padding-top: 10px !important; /* Small top padding for hero */
    }
    .page-about__product-categories {
        grid-template-columns: 1fr;
    }
    .page-about__security-content,
    .page-about__experience-content,
    .page-about__responsibility-content {
        gap: 25px;
    }
    .page-about__security-content .page-about__image-wrapper,
    .page-about__experience-content .page-about__image-wrapper,
    .page-about__responsibility-content .page-about__image-wrapper {
      min-width: auto;
      max-width: 100%;
    }
    .page-about__security-content .page-about__text-content,
    .page-about__experience-content .page-about__text-content,
    .page-about__responsibility-content .page-about__text-content {
      min-width: auto;
      max-width: 100%;
    }
    .page-about__products-grid .page-about__products-image-wrapper {
        order: -1; /* Move image above cards on mobile */
        margin-bottom: 20px;
    }
}