/* style/about.css */

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

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

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

.page-about__section-title {
    font-size: 2.8em;
    color: #F2C14E; /* Main brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.page-about__sub-title {
    font-size: 1.8em;
    color: #FFD36B; /* Auxiliary brand color for sub-titles */
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.3;
}

.page-about p {
    margin-bottom: 15px;
}

.page-about__link {
    color: #FFD36B; /* Link color, auxiliary brand color */
    text-decoration: underline;
}

.page-about__link:hover {
    color: #F2C14E; /* Main brand color on hover */
    text-decoration: none;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: #0A0A0A; /* Ensures consistent dark background */
}

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

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

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

.page-about__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive H1 font size */
    color: #F2C14E;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 0.03em;
}

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

.page-about__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Content Grid Layout */
.page-about__content-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.page-about__content-grid--reverse {
    flex-direction: row-reverse;
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

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

.page-about__image-block {
    flex: 1;
    min-width: 300px; /* Ensure images don't get too small on flex */
}

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

.page-about__content-block {
    margin-top: 40px;
    padding: 20px;
    background-color: #111111; /* Card background color */
    border-radius: 8px;
    border: 1px solid #3A2A12; /* Border color */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* CTA Section */
.page-about__join-cta {
    background-color: #0A0A0A; /* Background color for CTA section */
    padding: 80px 0;
}

.page-about__center-content {
    text-align: center;
}

.page-about__cta-text {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #FFF6D6;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    max-width: 100%;
    width: auto; /* Default to auto, will be 100% on mobile */
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom button gradient */
    color: #000000; /* Dark text for light button */
    border: 2px solid transparent;
}

.page-about__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(242, 193, 78, 0.4);
}

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

.page-about__btn-secondary:hover {
    background: #F2C14E;
    color: #000000; /* Dark text on hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(242, 193, 78, 0.4);
}

/* Colors and Contrast */
/* Smart contrast mechanism: Body is dark, so text is light. Cards are dark, so text is light. */
.page-about__dark-section {
    background-color: #0A0A0A; /* Explicitly dark section */
    color: #FFF6D6; /* Light text */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__content-grid,
    .page-about__content-grid--reverse {
        flex-direction: column;
    }
}

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

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

    .page-about__sub-title {
        font-size: 1.5em;
    }

    .page-about__main-title {
        font-size: clamp(2em, 8vw, 2.5em);
    }

    .page-about__intro-text {
        font-size: 1em;
    }

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

    .page-about__hero-image-wrapper,
    .page-about__image-block,
    .page-about__container,
    .page-about__hero-content-wrapper,
    .page-about__content-text,
    .page-about__content-block,
    .page-about__hero-cta-buttons,
    .page-about__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Buttons responsiveness */
    .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__hero-cta-buttons,
    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 10px;
    }

    /* Padding adjustments for sections */
    .page-about__section {
        padding: 40px 0;
    }
    
    .page-about__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 40px;
    }
}