/* style/about.css */

/* Base styles for the page-about content */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main, #F3F8FF); /* Default text color for dark background */
    background-color: var(--card-bg, #10233F); /* Body background color */
}

/* Hero Section */
.page-about__hero-section {
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    background-color: var(--deep-navy, #08162B); /* Darker background for hero */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 1600px; /* Max width for the hero image */
    overflow: hidden;
    box-sizing: border-box;
}

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

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

.page-about__hero-title {
    font-size: clamp(2em, 3.5vw, 2.8em); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-main, #F3F8FF);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-about__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--text-secondary, #AFC4E8);
}

.page-about__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-about__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    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; /* Include padding/border in width */
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__btn-secondary {
    background: transparent;
    color: var(--main-color, #1D5FD1); /* Using auxiliary color for text */
    border: 2px solid var(--border-color, #244D84);
}

.page-about__btn-secondary:hover {
    background-color: rgba(29, 95, 209, 0.1);
    color: #ffffff;
    border-color: #ffffff;
}

/* Content Sections */
.page-about__content-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--divider, #1B3357);
}

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

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

.page-about__section-title {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: var(--gold, #F2C14E); /* Using gold for section titles */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.page-about p {
    margin-bottom: 15px;
    font-size: 1.05em;
    color: var(--text-secondary, #AFC4E8);
}

.page-about strong {
    color: var(--text-main, #F3F8FF);
}

.page-about__value-list,
.page-about__product-list,
.page-about__vision-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-about__value-item,
.page-about__product-item,
.page-about__vision-item {
    background-color: var(--card-bg, #10233F);
    border: 1px solid var(--border-color, #244D84);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-secondary, #AFC4E8);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-about__value-item strong,
.page-about__product-item strong,
.page-about__vision-item strong {
    color: var(--text-main, #F3F8FF);
    flex-shrink: 0; /* Prevent strong from shrinking */
}

/* Image Figures */
.page-about__image-figure {
    margin: 30px auto;
    max-width: 800px; /* Recommended width for content images */
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

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

.page-about__image-caption {
    text-align: center;
    font-style: italic;
    font-size: 0.95em;
    padding: 10px 15px;
    background-color: var(--deep-navy, #08162B);
    color: var(--text-secondary, #AFC4E8);
}

/* Call to Action at bottom */
.page-about__cta-buttons--bottom {
    margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: clamp(1.8em, 4vw, 2.5em);
    }

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

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

    .page-about__hero-title {
        font-size: clamp(1.5em, 6vw, 2em);
        padding: 0 15px;
    }

    .page-about__hero-description {
        font-size: 1em;
        padding: 0 15px;
    }

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

    .page-about__btn {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px !important;
        font-size: 1em !important;
    }

    /* 2. Single column long text containers */
    .page-about__content-section {
        padding: 40px 0;
    }

    .page-about__article-wrap {
        padding: 0 15px !important; /* Add side padding for mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
        padding: 0 15px;
    }

    .page-about p,
    .page-about li {
        font-size: 0.95em;
        line-height: 1.5;
    }

    .page-about__value-item,
    .page-about__product-item,
    .page-about__vision-item {
        padding: 12px 15px;
        flex-direction: column;
        align-items: flex-start;
    }

    /* 3. General images and figure */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-about__image-figure {
        margin: 20px auto;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        border-radius: 0;
        box-shadow: none;
    }

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

    /* 4. Buttons and button containers */
    .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;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-about__cta-buttons {
        flex-direction: column;
    }

    /* 5. Registration tutorial & FAQ blocks (not present on this page, but placeholder for compliance) */
    /* If .page-about__faq-section or .page-about__tutorial-section were present, their mobile styles would go here. */
}