/* style/about.css */
:root {
    --primary-color: #FFD700;
    --secondary-color: #1E90FF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f9f9f9;
    --bg-dark: #1a1a1a;
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px);
    background: linear-gradient(135deg, var(--secondary-color), #0f4c81);
    color: var(--text-light);
    overflow: hidden;
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-bottom: 40px;
}

.page-about__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-about__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-about__cta-button:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-about__hero-image-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin-top: 40px;
    z-index: 1;
}

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

/* General Section Styling */
.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.page-about__section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

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

.page-about__paragraph {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    line-height: 1.8;
}

.page-about__image-content {
    display: block;
    margin: 50px auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Light Background Section */
.page-about__light-bg {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.page-about__light-bg .page-about__section-title {
    color: var(--secondary-color);
}

/* Dark Background Section */
.page-about__dark-bg {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-about__dark-bg .page-about__section-title {
    color: var(--primary-color);
}

.page-about__dark-bg .page-about__paragraph {
    color: #cccccc;
}

.page-about__dark-bg .page-about__feature-title,
.page-about__dark-bg .page-about__timeline-title,
.page-about__dark-bg .page-about__value-title,
.page-about__dark-bg .page-about__advantage-title,
.page-about__dark-bg .page-about__product-title,
.page-about__dark-bg .page-about__responsibility-title {
    color: var(--primary-color);
}

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

.page-about__feature-item,
.page-about__value-item,
.page-about__advantage-item,
.page-about__product-item,
.page-about__responsibility-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-about__dark-bg .page-about__feature-item,
.page-about__dark-bg .page-about__value-item,
.page-about__dark-bg .page-about__advantage-item,
.page-about__dark-bg .page-about__product-item,
.page-about__dark-bg .page-about__responsibility-item {
    background-color: #2b2b2b;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-about__feature-item:hover,
.page-about__value-item:hover,
.page-about__advantage-item:hover,
.page-about__product-item:hover,
.page-about__responsibility-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-about__dark-bg .page-about__feature-item:hover,
.page-about__dark-bg .page-about__value-item:hover,
.page-about__dark-bg .page-about__advantage-item:hover,
.page-about__dark-bg .page-about__product-item:hover,
.page-about__dark-bg .page-about__responsibility-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-about__feature-title,
.page-about__value-title,
.page-about__advantage-title,
.page-about__product-title,
.page-about__responsibility-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-about__feature-description,
.page-about__value-description,
.page-about__advantage-description,
.page-about__product-description,
.page-about__responsibility-description {
    font-size: 1em;
    line-height: 1.7;
    color: #666666;
}

.page-about__dark-bg .page-about__feature-description,
.page-about__dark-bg .page-about__value-description,
.page-about__dark-bg .page-about__advantage-description,
.page-about__dark-bg .page-about__product-description,
.page-about__dark-bg .page-about__responsibility-description {
    color: #b0b0b0;
}

/* History Section */
.page-about__timeline {
    position: relative;
    max-width: 1000px;
    margin: 60px auto;
    padding: 20px 0;
}

.page-about__timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
    transform: translateX(-50%);
    z-index: 0;
}

.page-about__timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
    margin-bottom: 50px;
}

.page-about__timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 60px;
}

.page-about__timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
    padding-left: 60px;
}

.page-about__timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--secondary-color);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    top: 28px;
    z-index: 1;
}

.page-about__timeline-item:nth-child(odd)::after {
    right: -10px;
}

.page-about__timeline-item:nth-child(even)::after {
    left: -10px;
}

.page-about__timeline-title {
    font-size: 1.6em;
    margin-bottom: 10px;
}

.page-about__timeline-description {
    font-size: 1em;
    line-height: 1.7;
}

/* Products Section */
.page-about__product-item {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-about__product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-about__product-image {
    width: 100%;
    height: 200px; /* Fixed height for product images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-about__product-title {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-about__product-description {
    font-size: 0.95em;
    line-height: 1.6;
    color: #666666;
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-about__product-link {
    display: inline-block;
    padding: 10px 25px;
    background: var(--secondary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-about__product-link:hover {
    background-color: #1a7ad9;
}

/* CTA Section */
.page-about__cta-section {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(45deg, var(--primary-color), #e6c200);
    color: var(--text-dark);
}

.page-about__cta-section .page-about__section-title {
    color: var(--text-dark);
}

.page-about__cta-section .page-about__section-title::after {
    background-color: var(--secondary-color);
}

.page-about__cta-section .page-about__paragraph {
    color: #555555;
}

.page-about__cta-button--large {
    padding: 18px 50px;
    font-size: 1.2em;
    background: var(--secondary-color);
    color: var(--text-light);
}

.page-about__cta-button--large:hover {
    background-color: #1a7ad9;
}

.page-about__cta-button--centered {
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: fit-content;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: 2.8em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
    }

    .page-about__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-about__hero-description {
        font-size: 1.1em;
        margin-bottom: 25px;
    }

    .page-about__cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }

    .page-about__container {
        padding: 40px 15px;
    }

    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-about__paragraph {
        font-size: 1em;
        margin-bottom: 40px;
    }

    .page-about__features-grid,
    .page-about__values-grid,
    .page-about__advantages-grid,
    .page-about__products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__timeline::before {
        left: 20px;
    }

    .page-about__timeline-item {
        width: 100%;
        padding: 0 0 0 60px;
        margin-bottom: 30px;
    }

    .page-about__timeline-item:nth-child(odd),
    .page-about__timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
        padding-right: 0;
    }

    .page-about__timeline-item:nth-child(odd)::after,
    .page-about__timeline-item:nth-child(even)::after {
        left: 10px;
        right: auto;
    }

    .page-about__timeline-title {
        font-size: 1.4em;
    }

    .page-about__timeline-description {
        font-size: 0.95em;
    }

    .page-about__product-image {
        height: 180px;
    }

    .page-about__cta-section {
        padding: 60px 15px;
    }

    .page-about__cta-button--large {
        padding: 15px 40px;
        font-size: 1.1em;
    }

    /* Mobile image, video, button overflow prevention */
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-about video {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-section,
    .page-about__mission-vision-section,
    .page-about__history-section,
    .page-about__core-values-section,
    .page-about__why-choose-us-section,
    .page-about__products-section,
    .page-about__responsibility-section,
    .page-about__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }

    .page-about__cta-button,
    .page-about__product-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: auto;
        margin-right: auto;
    }
    .page-about__cta-button--centered {
        width: 100% !important; /* Force full width for centered buttons on mobile */
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: 1.8em;
    }
    .page-about__section-title {
        font-size: 1.5em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__feature-title,
    .page-about__value-title,
    .page-about__advantage-title,
    .page-about__product-title,
    .page-about__responsibility-title {
        font-size: 1.2em;
    }
    .page-about__cta-button--large {
        padding: 12px 30px;
        font-size: 1em;
    }
}