/* style/about.css */

/* Base styles for the About Us page */
.page-about {
    font-family: 'Arial', sans-serif;
    color: #FFF6D6; /* Main text color for dark background */
    background-color: #0A0A0A; /* Body background color from shared.css */
    line-height: 1.6;
}

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

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

.page-about__section-title {
    font-size: 2.5em;
    color: #F2C14E; /* Primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-about__subsection-title {
    font-size: 1.8em;
    color: #FFD36B; /* Secondary color for sub-titles */
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-about__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #FFF6D6; /* Ensure text is light on dark background */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 60px;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    text-align: center;
    overflow: hidden; /* Prevent content overflow */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 30px; /* Space between image and content */
}

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

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

.page-about__hero-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
    color: #F2C14E;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-about__hero-description {
    font-size: 1.2em;
    color: #FFF6D6;
    margin-bottom: 30px;
}

.page-about__hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Buttons */
.page-about__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to wrap */
    max-width: 100%; /* Ensure button fits container */
    box-sizing: border-box;
}

.page-about__btn--primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-about__btn--primary:hover {
    background: linear-gradient(180deg, #FFE48E 0%, #F2C14E 100%);
    box-shadow: 0 8px 20px rgba(242, 193, 78, 0.6);
}

.page-about__btn--secondary {
    background: #111111; /* Card BG color */
    color: #F2C14E;
    border: 2px solid #F2C14E;
}

.page-about__btn--secondary:hover {
    background: #F2C14E;
    color: #111111;
}

.page-about__btn--small {
    padding: 10px 20px;
    font-size: 0.9em;
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 3px 10px rgba(242, 193, 78, 0.3);
}

.page-about__btn--small:hover {
    background: linear-gradient(180deg, #FFE48E 0%, #F2C14E 100%);
    box-shadow: 0 5px 12px rgba(242, 193, 78, 0.5);
}

/* Content Layouts */
.page-about__content-flex {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 40px;
}

.page-about__content-flex--reverse {
    flex-direction: row-reverse;
}

.page-about__content-text {
    flex: 1;
}

.page-about__image-figure {
    flex: 1;
    text-align: center;
    margin: 0;
    min-width: 300px; /* Ensure images are not too small */
}

.page-about__content-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    max-width: 100%;
    min-height: 200px; /* Min size for images */
}

.page-about__image-caption {
    font-size: 0.9em;
    color: #FFD36B;
    margin-top: 10px;
}

/* Lists */
.page-about__list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

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

.page-about__list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #F2C14E;
}

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

.page-about__card {
    background-color: #111111; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #3A2A12; /* Border color */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-about__card-title {
    font-size: 1.4em;
    color: #FFD36B;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__card-text {
    font-size: 1em;
    color: #FFF6D6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-about__card-link {
    color: #F2C14E;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-about__card-link:hover {
    color: #FFD36B;
    text-decoration: underline;
}

/* Support Section */
.page-about__support-cta-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Quick Guide Section */
.page-about__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__guide-card {
    background-color: #111111;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #3A2A12;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-about__guide-title {
    font-size: 1.3em;
    color: #FFD36B;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__guide-text {
    font-size: 0.95em;
    color: #FFF6D6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-about__guide-link {
    display: inline-block;
    padding: 10px 20px;
    background: #F2C14E;
    color: #111111;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-about__guide-link:hover {
    background-color: #FFD36B;
}

.page-about__full-guide-cta {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background-color: #111111;
    border-radius: 12px;
    border: 1px solid #3A2A12;
}

.page-about__guide-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Conclusion Section */
.page-about__conclusion-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Footer */
.page-about__footer {
    padding: 30px 0;
    text-align: center;
    background-color: #111111; /* Card BG for footer */
    border-top: 1px solid #3A2A12;
    margin-top: 60px;
}

.page-about__copyright {
    font-size: 0.9em;
    color: #FFF6D6;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__section-title {
        font-size: 2.2em;
    }
    .page-about__subsection-title {
        font-size: 1.6em;
    }
    .page-about__hero-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__content-flex {
        flex-direction: column;
        align-items: center;
    }
    .page-about__content-flex--reverse {
        flex-direction: column;
    }
    .page-about__image-figure {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    /* 1. Top section title + dual CTA */
    .page-about__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 40px;
    }
    .page-about__hero-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__hero-cta-group {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to prevent overflow */
        width: 100%;
        box-sizing: border-box;
    }

    /* 2. Single column long text container */
    .page-about__container {
        padding: 0 15px !important; /* Adjust padding for smaller screens */
        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.8em;
        margin-bottom: 30px;
    }
    .page-about__subsection-title {
        font-size: 1.4em;
    }
    .page-about__text-block {
        font-size: 1em;
    }
    .page-about__list-item {
        font-size: 1em;
    }

    /* 3. General images and figure */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min- /* Still > 200px equivalent for display as a content image */
        box-sizing: border-box !important;
    }
    .page-about__image-figure {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 4. Buttons and button containers */
    .page-about__btn,
    .page-about__btn--primary,
    .page-about__btn--secondary,
    .page-about__btn--small,
    .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__support-cta-group,
    .page-about__guide-links,
    .page-about__conclusion-cta {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    /* Card adjustments for mobile */
    .page-about__advantage-grid,
    .page-about__guide-steps {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }
    .page-about__card,
    .page-about__guide-card {
        padding: 20px;
    }

    /* 5. Registration tutorial and FAQ blocks (Quick Guide in this case) */
    .page-about__quick-guide .page-about__text-block {
        padding: 0 15px;
    }
    .page-about__full-guide-cta {
        padding: 20px;
    }
    .page-about__guide-card {
        padding: 20px;
    }

    .page-about__footer {
        padding: 20px 15px;
    }
    .page-about__copyright {
        font-size: 0.85em;
    }
}