/* style/about.css */

.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF3E6; /* Text Main color, assuming dark body background #0D0E12 */
    background-color: #0D0E12; /* Background color from custom palette */
}

/* Fixed Header Spacing: Assuming shared.css sets body padding-top,
   this page's first section only needs a small top padding. */
.page-about__hero-section {
    padding-top: 10px; /* Small top padding */
    background-color: #0D0E12;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 40px;
}

.page-about__hero-image-wrap {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    min-height: 200px; /* Minimum image size */
}

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

.page-about__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Using clamp for H1 */
    font-weight: 700;
    line-height: 1.2;
    color: #FFB04D; /* Glow color for main title */
    margin-bottom: 20px;
    text-shadow: 0 0 8px rgba(255, 176, 77, 0.5);
}

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

.page-about__hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.page-about__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to wrap */
    max-width: 100%; /* Ensure button doesn't overflow */
    box-sizing: border-box;
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
}

.page-about__btn-primary:hover {
    background: linear-gradient(180deg, #FFB04D 0%, #E87A10 100%);
    box-shadow: 0 6px 20px rgba(255, 176, 77, 0.6);
    transform: translateY(-2px);
}

.page-about__btn-secondary {
    background: transparent;
    color: #FF8C1A; /* Primary color */
    border: 2px solid #FF8C1A; /* Border color */
    box-shadow: 0 4px 10px rgba(255, 140, 26, 0.2);
}

.page-about__btn-secondary:hover {
    background: rgba(255, 140, 26, 0.1);
    color: #FFB04D;
    border-color: #FFB04D;
    box-shadow: 0 6px 15px rgba(255, 176, 77, 0.3);
    transform: translateY(-2px);
}

.page-about__section {
    padding: 60px 0;
    background-color: #0D0E12; /* Default background */
}

.page-about__dark-section {
    background-color: #17191F; /* Card BG color */
    color: #FFF3E6; /* Text Main color */
}

.page-about__article-wrap {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-about__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    color: #FFB04D; /* Glow color */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.3;
}

.page-about__sub-title {
    font-size: clamp(1.4em, 2.5vw, 2em);
    color: #FF8C1A; /* Primary color */
    margin-top: 35px;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.page-about__text-block {
    font-size: 1em;
    color: #FFF3E6;
    margin-bottom: 15px;
}

.page-about__figure {
    margin: 30px auto;
    max-width: 800px;
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-about__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

.page-about__figcaption {
    font-size: 0.9em;
    color: #A84F0C; /* Border color */
    padding: 10px 15px;
    background-color: #17191F;
    border-top: 1px solid #A84F0C;
}

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

.page-about__list-item {
    font-size: 1em;
    color: #FFF3E6;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.page-about__list-item::before {
    content: '✓';
    color: #FFB04D; /* Glow color */
    position: absolute;
    left: 0;
    font-weight: bold;
}

.page-about__contact-cta-section {
    text-align: center;
    padding-bottom: 80px;
}

.page-about__contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }

    /* 1. Top Section Title + Dual CTA */
    .page-about__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 30px;
    }

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

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

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

    /* Buttons themselves */
    .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-left: 15px !important;
        padding-right: 15px !important;
    }

    /* 2. Single Column Long Text Container */
    .page-about__article-wrap {
        padding: 0 15px !important; /* Adjust padding for mobile */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-about__section {
        padding: 40px 0;
    }

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

    .page-about__sub-title {
        font-size: 1.2em;
        margin-top: 25px;
        margin-bottom: 15px;
    }

    .page-about__text-block,
    .page-about__list-item {
        font-size: 0.95em;
    }

    /* 3. General Images and Figure */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__figure {
        margin: 20px auto;
        border-radius: 8px;
    }

    .page-about__figcaption {
        font-size: 0.85em;
        padding: 8px 10px;
    }

    /* 4. Buttons and Button Containers */
    .page-about__contact-buttons {
        flex-direction: column; /* Stack contact buttons vertically */
        gap: 10px;
        padding: 0 15px; /* Add horizontal padding to button container */
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Specific container for images or sections to ensure no overflow */
    .page-about__hero-image-wrap,
    .page-about__figure {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}