/* style/about.css */

/* Custom properties for colors from the palette */
:root {
    --tk88-primary-color: #11A84E;
    --tk88-secondary-color: #22C768;
    --tk88-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --tk88-card-bg: #11271B;
    --tk88-background: #08160F;
    --tk88-text-main: #F2FFF6;
    --tk88-text-secondary: #A7D9B8;
    --tk88-border: #2E7A4E;
    --tk88-glow: #57E38D;
    --tk88-gold: #F2C14E;
    --tk88-divider: #1E3A2A;
    --tk88-deep-green: #0A4B2C;
}

.page-about {
    font-family: 'Arial', sans-serif;
    color: var(--tk88-text-main); /* Main text color for the page */
    background-color: var(--tk88-background); /* Body background handled by shared.css, but this is for context */
    line-height: 1.6;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding for visual separation, body handles --header-offset */
    padding-bottom: 60px;
    box-sizing: border-box;
}

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

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

.page-about__main-title {
    font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size */
    font-weight: 700;
    color: var(--tk88-text-main);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-about__hero-description {
    font-size: 1.1em;
    color: var(--tk88-text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.page-about__cta-button {
    display: inline-block;
    background: var(--tk88-button-gradient);
    color: var(--tk88-text-main);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
}

.page-about__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

/* General Section Styling */
.page-about__section {
    padding: 80px 0;
    box-sizing: border-box;
}

.page-about__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--tk88-gold); /* Using gold for main section titles */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

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

.page-about__sub-title {
    font-size: 1.8em;
    color: var(--tk88-primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

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

.page-about__text-block {
    font-size: 1em;
    color: var(--tk88-text-main);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Dark Section Styling */
.page-about__dark-section {
    background-color: var(--tk88-deep-green);
}

/* Grid Layout for sections with image and text */
.page-about__grid-layout {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-about__grid-layout:nth-child(even) {
    flex-direction: row-reverse; /* Alternate image/text order */
}

.page-about__text-content {
    flex: 1;
}

.page-about__image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-about__value-card {
    background-color: var(--tk88-card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--tk88-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-about__value-icon {
    width: 150px; /* Ensure minimum size */
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px;
}

.page-about__card-title {
    font-size: 1.4em;
    color: var(--tk88-primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

/* History Section Timeline */
.page-about__timeline {
    position: relative;
    max-width: 1000px;
    margin: 60px auto 0;
    padding: 20px 0;
}

.page-about__timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--tk88-divider);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.page-about__timeline-item {
    padding: 10px 0;
    position: relative;
    width: 50%;
}

.page-about__timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 40px;
    text-align: right;
}

.page-about__timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 40px;
    text-align: left;
}

.page-about__timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--tk88-primary-color);
    border: 3px solid var(--tk88-text-main);
    top: 15px;
    right: -10px;
    z-index: 1;
}

.page-about__timeline-item:nth-child(even)::after {
    left: -10px;
}

.page-about__timeline-year {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--tk88-gold);
    margin-bottom: 10px;
}

.page-about__timeline-title {
    font-size: 1.5em;
    color: var(--tk88-primary-color);
    margin-bottom: 10px;
}

/* Commitment Section */
.page-about__commitment-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-about__list-item {
    background-color: var(--tk88-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--tk88-border);
}

.page-about__list-title {
    font-size: 1.3em;
    color: var(--tk88-primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

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

.page-about__reason-card {
    background-color: var(--tk88-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--tk88-border);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__reason-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-about__cta-wrapper {
    text-align: center;
    margin-top: 60px;
}

.page-about__cta-button--large {
    padding: 18px 40px;
    font-size: 1.2em;
}

/* Contact Us Section */
.page-about__contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__contact-item {
    background-color: var(--tk88-card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--tk88-border);
}

.page-about__contact-button {
    display: inline-block;
    background: var(--tk88-button-gradient);
    color: var(--tk88-text-main);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: background 0.3s ease;
}

.page-about__contact-button:hover {
    opacity: 0.9;
}

/* FAQ Section */
.page-about__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--tk88-primary-color);
    cursor: pointer;
    background-color: var(--tk88-card-bg);
    position: relative;
    list-style: none; /* For details/summary */
}

.page-about__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome */
}

.page-about__faq-question::marker {
    display: none; /* Hide default marker for Firefox */
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--tk88-gold);
    transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--tk88-text-secondary);
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-about__faq-item[open] .page-about__faq-answer {
    max-height: 500px; /* Sufficiently large to show content */
    padding-top: 10px;
}

.page-about__text-link {
    color: var(--tk88-gold);
    text-decoration: none;
    font-weight: bold;
}

.page-about__text-link:hover {
    text-decoration: underline;
}

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

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

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

    .page-about__grid-layout {
        flex-direction: column;
        text-align: center;
    }
    
    .page-about__grid-layout:nth-child(even) {
        flex-direction: column; /* Reset order for smaller screens */
    }

    .page-about__image-wrapper {
        margin-bottom: 30px;
    }

    .page-about__timeline::before {
        left: 20px;
    }

    .page-about__timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 20px;
        text-align: left;
    }

    .page-about__timeline-item:nth-child(odd) {
        left: 0;
        padding-right: 20px;
    }

    .page-about__timeline-item:nth-child(even) {
        left: 0;
        padding-left: 60px;
    }

    .page-about__timeline-item::after {
        left: 10px;
    }

    .page-about__timeline-item:nth-child(even)::after {
        left: 10px;
    }
}

@media (max-width: 768px) {
    .page-about__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
    }

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

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

    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

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

    .page-about__text-block {
        font-size: 0.95em;
    }

    /* Images responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__image-wrapper,
    .page-about__video-container,
    .page-about__video-wrapper,
    .page-about__cta-wrapper,
    .page-about__contact-info-grid,
    .page-about__values-grid,
    .page-about__reasons-grid,
    .page-about__commitment-list,
    .page-about__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }

    /* Video responsiveness (if any video was included) */
    .page-about video,
    .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    /* Button responsiveness */
    .page-about__cta-button,
    .page-about__contact-button,
    .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;
        text-align: center; /* Center button text if it wraps */
    }

    .page-about__cta-wrapper {
        display: flex;
        flex-direction: column;
        gap: 15px; /* Space between buttons if multiple */
    }
    .page-about__contact-info-grid {
        flex-direction: column;
        gap: 20px;
    }
    .page-about__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-about__faq-answer {
        padding: 0 20px 15px;
    }
}