/* style/about.css */

/* Base styles for the about page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF5E1; /* Text Main - for dark background */
    background-color: #B71C1C; /* Background - Deep Red */
    padding-bottom: 40px;
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    text-align: center;
    overflow: hidden;
    background-color: #C91F17; /* Main brand color */
    padding-bottom: 40px;
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 20px;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-about__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.page-about__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    color: #FFD86A; /* Gold-like color for main title */
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__intro-text {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: #FFF5E1; /* Text Main */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__cta-buttons {
    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: 600px; /* Limit max width for button group */
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
}

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

.page-about__btn--primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
    color: #333333; /* Dark text for light button */
    border: 2px solid #F2B544; /* Border */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-about__btn--primary:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-about__btn--secondary {
    background-color: transparent;
    color: #FFF5E1; /* Text Main */
    border: 2px solid #F2B544; /* Border */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-about__btn--secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFD86A; /* Gold */
    border-color: #FFCC66; /* Glow */
}

.page-about__btn--text-link {
    background: none;
    border: none;
    color: #F4D34D; /* Gold */
    font-weight: 600;
    padding: 8px 15px;
    text-decoration: underline;
}

.page-about__btn--text-link:hover {
    color: #FFCC66; /* Glow */
    text-decoration: none;
}

/* General Section Styling */
.page-about__section {
    padding: 60px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__section:last-of-type {
    border-bottom: none;
}

.page-about__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: #F4D34D; /* Gold */
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-about__subsection-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: #FFD86A; /* Gold-like color */
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: left;
}

.page-about__paragraph {
    font-size: 1.1rem;
    color: #FFF5E1; /* Text Main */
    margin-bottom: 20px;
    text-align: justify;
}

.page-about__highlight {
    color: #FFCC66; /* Glow */
    font-weight: bold;
}

.page-about__image-block {
    margin: 30px auto;
    max-width: 800px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-about__content-image {
    width: 100%;
    height: auto;
    display: block;
}

.page-about__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: #FFF5E1; /* Text Main */
}

.page-about__list-item {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.page-about__list-item strong {
    color: #FFCC66; /* Glow */
}

/* Specific Section Adjustments */
.page-about__introduction .page-about__subsection-title,
.page-about__licensing .page-about__subsection-title,
.page-about__products .page-about__subsection-title,
.page-about__commitments .page-about__subsection-title,
.page-about__why-choose-us .page-about__subsection-title,
.page-about__contact .page-about__subsection-title {
    border-left: 5px solid #F2B544; /* Border */
    padding-left: 15px;
}

/* Copyright Section */
.page-about__copyright-section {
    padding: 20px 0;
    background-color: #7A0E0E; /* Deep Red */
    text-align: center;
    color: #FFF5E1; /* Text Main */
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__container {
        padding: 0 15px;
    }

    .page-about__hero-image-wrapper {
        max-height: 400px;
    }

    .page-about__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .page-about__intro-text {
        font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    }

    .page-about__section-title {
        font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    }

    .page-about__subsection-title {
        font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    }

    .page-about__paragraph,
    .page-about__list-item {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    /* Top Section Title + Dual CTA */
    .page-about__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles --header-offset */
        padding-bottom: 30px;
    }

    .page-about__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 15px;
    }

    .page-about__hero-content {
        padding: 15px;
    }

    .page-about__main-title {
        font-size: 2rem !important;
        margin-bottom: 10px;
    }

    .page-about__intro-text {
        font-size: 0.9rem !important;
        margin-bottom: 20px;
    }

    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 15px; /* Add padding to container */
    }

    /* 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-left: 15px;
        padding-right: 15px;
    }

    /* Single Column Long Text Container */
    .page-about__section {
        padding: 40px 0;
    }

    .page-about__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-about__section-title {
        font-size: 1.5rem !important;
        margin-bottom: 30px;
    }

    .page-about__subsection-title {
        font-size: 1.2rem !important;
        margin-top: 25px;
        margin-bottom: 10px;
        padding-left: 10px;
    }

    .page-about__paragraph,
    .page-about__list-item {
        font-size: 0.95rem !important;
        margin-bottom: 15px;
    }

    .page-about__list {
        margin-left: 20px;
    }

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

    .page-about__image-block {
        margin: 20px auto;
        max-width: 100%;
    }

    /* Tutorial and FAQ Blocks (Hypothetical, as per outline no explicit FAQ/tutorial here) */
    /* These rules would apply if such blocks were present in the HTML */
    .page-about__tutorial-step h3,
    .page-about__faq-item p {
        font-size: 1rem;
        line-height: 1.5;
    }

    /* Copyright Section */
    .page-about__copyright-section {
        padding: 15px 15px;
        font-size: 0.8rem;
    }
}