/* style/about.css */

:root {
    --primary-color: #E53935;
    --secondary-color: #FF5A4F;
    --card-bg-color: #FFFFFF;
    --background-light: #F5F7FA;
    --text-main-color: #333333;
    --border-color: #E0E0E0;
    --header-offset: 0px; /* This will be overridden by shared.css */
}

/* General Page Styling */
.page-about {
    font-family: 'Roboto', sans-serif;
    color: var(--text-main-color);
    background-color: var(--background-light);
    line-height: 1.6;
    font-size: 16px;
}

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

.page-about__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.2;
}

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

.page-about__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-main-color);
}

.page-about__text-block p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.page-about__text-block ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

.page-about__text-block li {
    margin-bottom: 8px;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: none;
}

.page-about__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-about__btn-secondary {
    background: var(--card-bg-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-about__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

.page-about__btn-primary--large,
.page-about__btn-secondary--large {
    padding: 15px 30px;
    font-size: 1.1em;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--background-light);
}

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

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

.page-about__hero-content {
    position: relative; /* Ensure content is above any potential background layering */
    z-index: 10;
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px; /* Overlap slightly with image for visual flow */
    background-color: var(--card-bg-color);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-about__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.page-about__hero-description {
    font-size: 1.15em;
    color: var(--text-main-color);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Introduction Section */
.page-about__introduction-section {
    padding: 60px 0;
    background-color: var(--card-bg-color);
}

.page-about__intro-grid {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.page-about__intro-grid .page-about__text-block {
    flex: 1;
}

.page-about__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-about__text-block--full-width {
    margin-top: 40px;
}

.page-about__values-list {
    list-style: none;
    padding: 0;
}

.page-about__values-list li {
    background-color: #fff;
    border-left: 5px solid var(--secondary-color);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-size: 1.05em;
}

.page-about__values-list li strong {
    color: var(--primary-color);
}

/* Offerings Section */
.page-about__offerings-section {
    padding: 60px 0;
    background-color: var(--background-light);
}

.page-about__offerings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-about__offering-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__offering-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

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

.page-about__offering-card p {
    font-size: 0.95em;
    color: var(--text-main-color);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-about__offering-card .page-about__btn-secondary {
    width: auto;
    margin-top: auto; /* Push button to bottom */
}

/* Security Section */
.page-about__security-section {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: #ffffff;
}

.page-about__security-section .page-about__section-title,
.page-about__security-section .page-about__section-description,
.page-about__security-section .page-about__sub-title,
.page-about__security-section p,
.page-about__security-section li {
    color: #ffffff;
}

.page-about__security-grid {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.page-about__security-grid .page-about__text-block {
    flex: 1;
}

.page-about__security-grid .page-about__image-block {
    flex: 1;
}

/* Advantages Section */
.page-about__advantages-section {
    padding: 60px 0;
    background-color: var(--card-bg-color);
}

.page-about__advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-about__advantage-card {
    background-color: var(--background-light);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-about__advantage-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-about__advantage-card p {
    font-size: 0.95em;
    color: var(--text-main-color);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-about__advantage-card .page-about__btn-secondary {
    width: auto;
    margin-top: auto;
}

/* CTA Section */
.page-about__cta-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__cta-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.page-about__cta-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    display: block;
}

.page-about__cta-text-block {
    max-width: 800px;
}

.page-about__cta-section .page-about__section-title,
.page-about__cta-section .page-about__section-description,
.page-about__cta-section .page-about__sub-title,
.page-about__cta-section p {
    color: #ffffff;
}

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

.page-about__text-block--small {
    text-align: left;
    margin-top: 30px;
}

/* FAQ Section */
.page-about__faq-section {
    padding: 60px 0;
    background-color: var(--background-light);
}

.page-about__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-about__faq-item {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    background-color: #fff;
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: #f9f9f9;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--secondary-color);
}

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg);
}

.page-about__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--text-main-color);
    line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-content {
        margin-top: -80px;
    }
    .page-about__intro-grid,
    .page-about__security-grid {
        flex-direction: column;
        text-align: center;
    }
    .page-about__intro-grid .page-about__image-block,
    .page-about__security-grid .page-about__image-block {
        order: -1; /* Image above text on smaller screens */
    }
    .page-about__offering-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding-bottom: 40px;
    }
    .page-about__hero-image-wrapper {
        max-height: 300px;
    }
    .page-about__hero-content {
        padding: 30px 15px;
        margin-top: -60px;
    }
    .page-about__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }
    .page-about__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-about__section-title {
        font-size: 2em;
        margin-bottom: 25px;
    }
    .page-about__sub-title {
        font-size: 1.5em;
        margin-top: 25px;
    }
    .page-about__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-about__introduction-section,
    .page-about__offerings-section,
    .page-about__security-section,
    .page-about__advantages-section,
    .page-about__cta-section,
    .page-about__faq-section {
        padding: 40px 0;
    }
    .page-about__offering-card,
    .page-about__advantage-card {
        padding: 20px;
    }
    .page-about__offering-image {
        height: 160px;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
        margin-bottom: 30px;
    }
    .page-about__cta-buttons .page-about__btn-primary,
    .page-about__cta-buttons .page-about__btn-secondary {
        width: 100%;
    }
    .page-about__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-about__faq-answer {
        padding: 0 20px 15px;
    }

    /* Mobile specific image/video/button rules */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about video,
    .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__hero-section,
    .page-about__introduction-section,
    .page-about__offerings-section,
    .page-about__security-section,
    .page-about__advantages-section,
    .page-about__cta-section,
    .page-about__faq-section,
    .page-about__offering-card,
    .page-about__advantage-card,
    .page-about__faq-item,
    .page-about__container,
    .page-about__video-container,
    .page-about__video-wrapper,
    .page-about__cta-buttons,
    .page-about__button-group,
    .page-about__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }
    .page-about__cta-button,
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about a[class*="button"],
    .page-about a[class*="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;
    }
    .page-about__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-about__hero-section {
        padding-top: 10px !important;
    }
    .page-about__video-section {
        padding-top: 10px !important;
    }
}

/* Contrast Fixes */
.page-about__dark-section {
    background: var(--primary-color);
    color: #ffffff;
}

.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__sub-title {
    color: #ffffff;
}

.page-about__dark-section .page-about__btn-secondary {
    background: #ffffff;
    color: var(--primary-color);
    border-color: #ffffff;
}

.page-about__dark-section .page-about__btn-secondary:hover {
    background: var(--secondary-color);
    color: #ffffff;
    border-color: var(--secondary-color);
}