/* style/about.css */

/* Base styles for the About Us page */
.page-about {
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    background-color: #000000; /* Body background is dark */
    color: #ffffff; /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    overflow: hidden;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px;
}

.page-about__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-about__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    z-index: 2;
}

.page-about__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    color: #ffffff;
}

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FCBC45; /* Highlight with accent color */
    line-height: 1.2;
}

.page-about__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    opacity: 0.9;
}

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

/* General Content Sections */
.page-about__section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-about__section-dark {
    background-color: #1a1a1a;
    color: #ffffff;
}

.page-about__section-light {
    background-color: #000000; /* Use main background for contrast with cards */
    color: #ffffff;
}

.page-about__heading-primary {
    font-size: 2.8em;
    color: #FCBC45;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-about__heading-primary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FCBC45;
    border-radius: 2px;
}

.page-about__heading-secondary {
    font-size: 2.2em;
    color: #ffffff;
    margin-bottom: 25px;
    text-align: center;
}

.page-about__text-content {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-about__list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-about__list-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-about__list-icon {
    color: #FCBC45;
    font-size: 1.5em;
    margin-right: 15px;
    flex-shrink: 0;
}

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

.page-about__card {
    background-color: #1a1a1a; /* Darker background for cards on black body */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    color: #ffffff;
}

.page-about__card:hover {
    transform: translateY(-10px);
}

.page-about__card-icon {
    font-size: 3em;
    color: #FCBC45;
    margin-bottom: 20px;
}

.page-about__card-title {
    font-size: 1.5em;
    color: #FCBC45;
    margin-bottom: 15px;
}

.page-about__card-description {
    font-size: 1em;
    opacity: 0.8;
}

/* Images in content */
.page-about__image-container {
    text-align: center;
    margin: 40px 0;
}

.page-about__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    display: block; /* Ensure it behaves as a block element */
    margin: 0 auto; /* Center the image */
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

/* Buttons */
.page-about__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.page-about__button-register {
    background-color: #FFFFFF; /* Register button background */
    color: #000000; /* Dark text for white button */
    border: 2px solid #FFFFFF;
}

.page-about__button-register:hover {
    background-color: transparent;
    color: #FFFFFF;
}

.page-about__button-login {
    background-color: #FCBC45; /* Login button background */
    color: #000000; /* Dark text for golden button */
    border: 2px solid #FCBC45;
}

.page-about__button-login:hover {
    background-color: transparent;
    color: #FCBC45;
}

.page-about__button-primary {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-about__button-primary:hover {
    background-color: transparent;
    color: #FCBC45;
}

.page-about__button-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.page-about__button-secondary:hover {
    background-color: #FFFFFF;
    color: #000000;
}

/* Links within text content */
.page-about__text-link {
    color: #FCBC45; /* Golden color for internal links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-about__text-link:hover {
    color: #FFFFFF;
}

/* Call to Action Section */
.page-about__cta-section {
    background-color: #1a1a1a;
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
}

.page-about__cta-title {
    font-size: 2.5em;
    color: #FCBC45;
    margin-bottom: 20px;
}

.page-about__cta-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    opacity: 0.9;
}

.page-about__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 2.8em;
    }
    .page-about__hero-description {
        font-size: 1.1em;
    }
    .page-about__heading-primary {
        font-size: 2.2em;
    }
    .page-about__heading-secondary {
        font-size: 1.8em;
    }
    .page-about__text-content, .page-about__list-item, .page-about__card-description {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding: 60px 20px;
        min-height: 400px;
    }
    .page-about__hero-title {
        font-size: 2.2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__section {
        padding: 40px 15px;
    }
    .page-about__heading-primary {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-about__heading-secondary {
        font-size: 1.5em;
    }
    .page-about__cards-grid {
        grid-template-columns: 1fr;
    }
    .page-about__button {
        width: 100%;
        max-width: 300px;
    }
    .page-about__cta-title {
        font-size: 2em;
    }
    .page-about__cta-description {
        font-size: 1em;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    /* Ensure content images are responsive and do not overflow */
    .page-about__content-image {
        max-width: 100%;
        height: auto;
    }
    /* All images within .page-about must be responsive and not cause horizontal scroll */
    .page-about img {
        max-width: 100%;
        height: auto;
        display: block; /* Ensure block-level behavior for centering/sizing */
    }
    /* Enforce minimum size for all content images on mobile as well */
    .page-about__content-image,
    .page-about__section img { /* Generic rule for all images in content sections */
        min-width: 200px;
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 1.8em;
    }
    .page-about__hero-description {
        font-size: 0.9em;
    }
    .page-about__heading-primary {
        font-size: 1.5em;
    }
    .page-about__heading-secondary {
        font-size: 1.3em;
    }
    .page-about__text-content {
        font-size: 0.9em;
    }
    .page-about__button {
        padding: 12px 25px;
        font-size: 1em;
    }
}