/* style/about.css */

/* Root variables for colors */
:root {
    --luckycola-primary: #F2C14E;
    --luckycola-secondary: #FFD36B;
    --luckycola-card-bg: #111111;
    --luckycola-background: #0A0A0A;
    --luckycola-text-main: #FFF6D6;
    --luckycola-border: #3A2A12;
    --luckycola-glow: #FFD36B;
    --luckycola-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-about {
    color: var(--luckycola-text-main);
    background-color: var(--luckycola-background);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-offset, 120px); /* Desktop: Ensure content is below fixed header */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden;
}

.page-about__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text readability */
}

.page-about__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text */
    border-radius: 10px;
    margin: 20px;
}

.page-about__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--luckycola-secondary);
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.page-about__hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--luckycola-text-main);
    margin-bottom: 30px;
}

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

.page-about__cta-buttons--center {
    justify-content: center;
    margin-top: 30px;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary {
    background: var(--luckycola-button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-about__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

.page-about__btn-secondary {
    background: transparent;
    color: var(--luckycola-secondary);
    border: 2px solid var(--luckycola-secondary);
}

.page-about__btn-secondary:hover {
    background: var(--luckycola-secondary);
    color: var(--luckycola-background);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

.page-about__section {
    padding: 60px 0;
    border-bottom: 1px solid var(--luckycola-border);
}

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

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

.page-about__heading {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--luckycola-primary);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.3;
}

.page-about__text-block {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--luckycola-text-main);
    text-align: justify;
}

.page-about__text-link {
    color: var(--luckycola-secondary);
    text-decoration: underline;
    transition: color 0.3s ease;
}

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

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

.page-about__card {
    background-color: var(--luckycola-card-bg);
    border: 1px solid var(--luckycola-border);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--luckycola-text-main);
}

.page-about__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 211, 107, 0.3);
}

.page-about__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-about__card-title {
    font-size: 1.5rem;
    color: var(--luckycola-primary);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-about__card-text {
    font-size: 1rem;
    color: var(--luckycola-text-main);
    flex-grow: 1;
}

.page-about__security-content,
.page-about__agent-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-about__security-content {
    flex-direction: row;
}

.page-about__agent-content {
    flex-direction: row-reverse;
}

.page-about__security-image,
.page-about__agent-image {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    min-height: 200px;
}

.page-about__security-text,
.page-about__agent-text {
    flex: 1;
}

.page-about__partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(167px, 1fr));
    gap: 30px;
    justify-items: center;
    margin-top: 40px;
}

.page-about__partner-logo {
    background-color: var(--luckycola-card-bg);
    border: 1px solid var(--luckycola-border);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 127px; /* Fixed height for logos */
    width: 167px; /* Fixed width for logos */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: auto; /* Allow image to scale within fixed container */
    height: auto; /* Allow image to scale within fixed container */
    min-width: unset; /* Override global min-width for logos */
    min-height: unset; /* Override global min-height for logos */
}

.page-about__faq-list {
    margin-top: 40px;
}

.page-about__faq-item {
    background-color: var(--luckycola-card-bg);
    border: 1px solid var(--luckycola-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #1a1a1a;
    color: var(--luckycola-primary);
    font-weight: bold;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: #2a2a2a;
}

.page-about__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg);
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--luckycola-text-main);
    background-color: var(--luckycola-card-bg);
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show all content */
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-content {
        margin: 15px;
    }

    .page-about__heading {
        margin-bottom: 30px;
    }

    .page-about__security-content,
    .page-about__agent-content {
        flex-direction: column;
        gap: 30px;
    }

    .page-about__security-image,
    .page-about__agent-image {
        min-width: unset;
        max-width: 100%;
    }
}

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

    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile: Ensure content is below fixed header */
        padding-bottom: 40px;
    }

    .page-about__main-title {
        font-size: 2.2rem;
    }

    .page-about__hero-description {
        font-size: 1rem;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .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__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__section {
        padding: 40px 0;
    }

    .page-about__container {
        padding: 0 15px;
    }

    .page-about__heading {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    .page-about__text-block {
        font-size: 1rem;
    }

    .page-about__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__card {
        padding: 20px;
    }

    .page-about__card-image {
        height: 180px;
    }

    .page-about__card-title {
        font-size: 1.3rem;
    }

    .page-about__security-content,
    .page-about__agent-content {
        flex-direction: column;
        gap: 20px;
    }

    .page-about__security-image,
    .page-about__agent-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px;
    }

    .page-about__partner-logo {
        width: 120px;
        height: 90px;
        padding: 10px;
    }

    .page-about__faq-question {
        font-size: 1rem;
        padding: 15px;
    }

    /* Mobile image overflow prevention for all images within .page-about */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    .page-about__section,
    .page-about__card,
    .page-about__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}