/* style/about.css */

/* Variables (if needed, though direct colors are provided) */
:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --background-color: #0A0A0A;
    --card-bg-color: #111111;
    --text-main-color: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --dark-text-color: #333333; /* For light backgrounds */
    --light-text-color: #ffffff; /* For dark backgrounds */
}

/* Base styles for the page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main-color); /* Main text color on dark body background */
    background-color: var(--background-color);
}

.page-about__section {
    padding: 60px 0;
    position: relative;
    overflow: hidden; /* Prevent content overflow */
}

.page-about__dark-section {
    background-color: var(--card-bg-color); /* Use card background for dark sections */
    color: var(--text-main-color);
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 40px;
    background-color: var(--background-color);
}

.page-about__hero-image {
    width: 100%;
    max-height: 675px; /* Maintain aspect ratio, cap height */
    object-fit: cover;
    display: block;
    margin-bottom: 30px;
}

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

.page-about__main-title {
    font-size: 2.8em;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 100%; /* Ensure H1 doesn't cause overflow */
    box-sizing: border-box;
}

.page-about__hero-description {
    font-size: 1.2em;
    color: var(--text-main-color);
    margin-bottom: 30px;
}

.page-about__hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%; /* Ensure container takes full width */
    box-sizing: border-box;
}

/* General Buttons */
.page-about__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%; /* Ensure button doesn't exceed container */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-about__btn-primary {
    background: var(--button-gradient);
    color: var(--light-text-color);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-about__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

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

.page-about__btn-secondary:hover {
    background-color: rgba(242, 193, 78, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(242, 193, 78, 0.3);
}

/* Section Titles and Paragraphs */
.page-about__section-title {
    font-size: 2.2em;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

.page-about__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--text-main-color);
    max-width: 100%; /* Ensure paragraphs don't cause overflow */
    box-sizing: border-box;
}

.page-about__highlight {
    color: var(--secondary-color);
    font-weight: bold;
}

/* Images and Figures */
.page-about__figure {
    margin: 40px auto;
    text-align: center;
    max-width: 800px; /* Max width for content images */
    width: 100%;
    box-sizing: border-box;
}

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

.page-about__figcaption {
    font-size: 0.9em;
    color: var(--secondary-color);
    margin-top: 15px;
    font-style: italic;
}

/* Card Grid */
.page-about__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-about__card {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    color: var(--text-main-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__card-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__card-text {
    font-size: 1em;
    color: var(--text-main-color);
}

/* Value List */
.page-about__value-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-about__value-item {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    color: var(--text-main-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color);
}

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

.page-about__value-description {
    font-size: 1em;
    color: var(--text-main-color);
}

/* Feature Grid (Why Choose Us) */
.page-about__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-about__feature-item {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    color: var(--text-main-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color);
}

.page-about__feature-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-about__feature-description {
    font-size: 1em;
    color: var(--text-main-color);
}

/* Commitment List */
.page-about__commitment-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-about__commitment-item {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    color: var(--text-main-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__commitment-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color);
}

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

.page-about__commitment-description {
    font-size: 1em;
    color: var(--text-main-color);
}

/* CTA Section */
.page-about__cta-section {
    text-align: center;
    padding-bottom: 60px;
}

.page-about__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* --- Responsive Styles --- */

/* Tablet and Mobile (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-about__section {
        padding: 40px 0;
    }

    .page-about__main-title {
        font-size: 2.5em;
    }

    .page-about__hero-description {
        font-size: 1.1em;
    }

    .page-about__section-title {
        font-size: 2em;
    }

    .page-about__paragraph {
        font-size: 1em;
    }

    .page-about__card-grid,
    .page-about__value-list,
    .page-about__feature-grid,
    .page-about__commitment-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .page-about__card,
    .page-about__value-item,
    .page-about__feature-item,
    .page-about__commitment-item {
        padding: 25px;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* Top section title + dual CTA */
    .page-about__hero-section {
        padding-top: 10px !important; /* Fixed small top padding */
        padding-bottom: 30px;
    }

    .page-about__hero-image {
        max-height: 400px;
        margin-bottom: 20px;
    }

    .page-about__main-title {
        font-size: clamp(1.8em, 7vw, 2.2em); /* Responsive font size */
        margin-bottom: 15px;
        padding: 0 15px; /* Add padding to prevent overflow */
        box-sizing: border-box;
    }

    .page-about__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
        padding: 0 15px; /* Add padding */
        box-sizing: border-box;
    }

    .page-about__hero-cta {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        padding: 0 15px; /* Add padding to container */
        box-sizing: border-box;
    }

    /* Single Column Long Article Container */
    .page-about__container {
        padding: 0 15px !important; /* Override default padding for mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .page-about__section {
        padding: 30px 0;
    }

    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .page-about__paragraph {
        font-size: 0.95em;
        margin-bottom: 15px;
        padding: 0 15px;
        box-sizing: border-box;
    }

    /* Universal Images and Figure */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-about__figure {
        margin: 20px auto;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .page-about__figcaption {
        font-size: 0.85em;
        margin-top: 10px;
    }

    /* Buttons and Button Containers */
    .page-about__btn {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px !important;
    }

    .page-about__cta-buttons {
        flex-direction: column !important; /* Force vertical stacking */
        gap: 10px !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }

    /* Card, Value, Feature, Commitment Items */
    .page-about__card-grid,
    .page-about__value-list,
    .page-about__feature-grid,
    .page-about__commitment-list {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .page-about__card,
    .page-about__value-item,
    .page-about__feature-item,
    .page-about__commitment-item {
        padding: 20px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .page-about__card-title,
    .page-about__value-title,
    .page-about__feature-title,
    .page-about__commitment-title {
        font-size: 1.3em;
        margin-bottom: 10px;
    }

    .page-about__card-text,
    .page-about__value-description,
    .page-about__feature-description,
    .page-about__commitment-description {
        font-size: 0.9em;
    }
}