/* style/about.css */

/* Custom CSS Variables for colors */
:root {
    --primary-color: #F2C14E; /* Main brand color */
    --secondary-color: #FFD36B; /* Auxiliary brand color */
    --card-bg: #111111; /* Card Background */
    --body-bg: #0A0A0A; /* Page Background */
    --text-main-color: #FFF6D6; /* Main text color for dark backgrounds */
    --border-color: #3A2A12; /* Border color */
    --glow-color: #FFD36B; /* Glow color */

    /* Generic text colors for contrast */
    --dark-text: #333333;
    --light-text: #ffffff;
}

.page-about {
    background-color: var(--body-bg);
    color: var(--text-main-color); /* Light text for dark body background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    font-size: 16px;
}

.page-about__section {
    padding: 60px 0;
    position: relative;
    z-index: 1; /* Ensure content is above any potential background layers */
}

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

.page-about__container--centered {
    text-align: center;
}

.page-about__heading {
    font-size: 3em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.3);
}

.page-about__sub-heading {
    font-size: 2.2em;
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-about__text {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--text-main-color);
}

.page-about__text--centered {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-about__hero-container {
    position: relative;
    max-width: 1200px;
    width: 100%; /* Ensure it takes full width up to max-width */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-about__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.page-about__hero-image img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    max-width: 100%;
    display: block;
    object-fit: cover;
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-about__hero-content h1 {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(255, 211, 107, 0.5);
}

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

/* Buttons */
.page-about__cta-button,
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
    box-sizing: border-box; /* Ensure padding and border are included in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-about__cta-button,
.page-about__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: var(--light-text);
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-about__btn-secondary {
    background: var(--card-bg);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__cta-button:hover,
.page-about__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
    filter: brightness(1.1);
}

.page-about__btn-secondary:hover {
    transform: translateY(-3px);
    background: var(--primary-color);
    color: var(--light-text);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

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

.page-about__cta-group--centered {
    justify-content: center;
}

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

/* Cards */
.page-about__card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px; /* Ensure minimum height for cards */
}

.page-about__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 211, 107, 0.2);
}

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

.page-about__card-text {
    font-size: 1em;
    color: var(--text-main-color);
    line-height: 1.7;
    margin-bottom: 15px;
}

.page-about__link-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.page-about__link-more:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Image wrappers for content images */
.page-about__image-wrapper {
    flex: 1;
    min-width: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.page-about__image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

/* Team and Security sections with image and text block */
.page-about__team-content,
.page-about__security-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-about__team-content .page-about__image-wrapper,
.page-about__security-content .page-about__image-wrapper {
    flex: 1;
    min-width: 400px; /* Adjust min-width for image in these sections */
}

.page-about__text-block {
    flex: 1;
    min-width: 400px; /* Adjust min-width for text block */
}

/* FAQ Section */
.page-about__faq-list {
    margin-top: 40px;
}

details.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
details.page-about__faq-item summary.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2em;
}
details.page-about__faq-item summary.page-about__faq-question::-webkit-details-marker {
    display: none;
}
details.page-about__faq-item summary.page-about__faq-question:hover {
    background: rgba(255, 211, 107, 0.1);
    color: var(--primary-color);
}
.page-about__faq-qtext {
    flex: 1;
    font-size: 1.1em;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main-color);
}
details.page-about__faq-item summary.page-about__faq-question:hover .page-about__faq-qtext {
    color: var(--primary-color);
}
.page-about__faq-toggle {
    font-size: 2em;
    font-weight: bold;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}
details.page-about__faq-item[open] .page-about__faq-toggle {
    color: var(--secondary-color);
}
details.page-about__faq-item .page-about__faq-answer {
    padding: 0 25px 25px;
    background: rgba(17, 17, 17, 0.8); /* Slightly lighter than card-bg for contrast */
    border-radius: 0 0 12px 12px;
    color: var(--text-main-color);
    font-size: 1em;
}
.page-about__faq-answer p {
    margin: 0;
    padding: 0;
    color: var(--text-main-color);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__heading {
        font-size: 2.5em;
    }
    .page-about__sub-heading {
        font-size: 1.8em;
    }
    .page-about__text {
        font-size: 1em;
    }
    .page-about__hero-content h1 {
        font-size: clamp(2em, 4vw, 3em);
    }
    .page-about__hero-description {
        font-size: 1.1em;
    }
    .page-about__team-content,
    .page-about__security-content {
        flex-direction: column;
        gap: 30px;
    }
    .page-about__team-content .page-about__image-wrapper,
    .page-about__security-content .page-about__image-wrapper,
    .page-about__text-block {
        min-width: unset;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-about__section {
        padding: 40px 0;
    }
    .page-about__container {
        padding: 0 15px;
    }
    .page-about__heading {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .page-about__hero-section {
        padding-top: 10px !important; /* body handles header offset, small top padding for hero */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__hero-image {
        border-radius: 8px;
    }
    .page-about__hero-content h1 {
        font-size: clamp(1.8em, 6vw, 2.5em);
        margin-bottom: 15px;
    }
    .page-about__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    /* Buttons Mobile */
    .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: 12px 20px !important;
        font-size: 1em !important;
    }
    .page-about__cta-group {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
    }
    .page-about__cta-group > *,
    .page-about__cta-group--centered > * {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .page-about__grid {
        gap: 20px;
    }
    .page-about__card {
        padding: 20px;
        border-radius: 8px;
    }
    .page-about__card-title {
        font-size: 1.4em;
    }
    .page-about__card-text {
        font-size: 0.95em;
    }

    /* Images Mobile */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: unset !important;
        min-height: unset !important;
    }
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__image-wrapper,
    .page-about__text-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__image-wrapper {
        border-radius: 8px;
    }
    .page-about__team-content,
    .page-about__security-content {
        gap: 20px;
    }

    /* FAQ Mobile */
    details.page-about__faq-item summary.page-about__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-about__faq-qtext {
        font-size: 1em;
    }
    .page-about__faq-toggle {
        font-size: 1.8em;
        width: 25px;
    }
    details.page-about__faq-item .page-about__faq-answer {
        padding: 0 20px 20px;
    }
}