/* style/about.css */

/* Custom properties for theme */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #B22222; /* Red */
    --text-color-dark-bg: #ffffff;
    --text-color-light-bg: #333333;
    --bg-dark: #0d0d0d;
    --card-bg-dark-mode: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark body */
    --border-color-dark-mode: rgba(255, 255, 255, 0.15);
    --shadow-color: rgba(0, 0, 0, 0.2);
}

.page-about {
    color: var(--text-color-dark-bg); /* Default text color for dark body background */
    background-color: var(--bg-dark); /* Ensure consistency, though body bg is global */
    line-height: 1.6;
    font-family: 'Arial', sans-serif;
    padding-top: 120px; /* Fixed header spacing for desktop */
}

/* Page content container */
.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section titles */
.page-about__section-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
    position: relative;
}

.page-about__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-about__sub-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 15px;
}

.page-about__text-content {
    font-size: 17px;
    color: var(--text-color-dark-bg);
    margin-bottom: 20px;
}

/* Buttons */
.page-about__cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
    flex-wrap: wrap; /* Ensure buttons wrap on small screens */
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-color);
    border: none;
    cursor: pointer;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure text wraps within button */
    max-width: 100%; /* Ensure button doesn't exceed container */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.page-about__cta-button--primary {
    background: var(--primary-color);
    color: var(--text-color-light-bg); /* Gold background needs dark text for contrast */
}

.page-about__cta-button--primary:hover {
    background: #e6c200; /* Darker gold */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-color);
}

.page-about__cta-button--secondary {
    background: var(--secondary-color);
    color: var(--text-color-dark-bg); /* Red background needs light text for contrast */
}

.page-about__cta-button--secondary:hover {
    background: #991e1e; /* Darker red */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-color);
}

/* Hero Section */
.page-about__hero-section {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(178, 34, 34, 0.8), rgba(255, 215, 0, 0.6)), url('[GALLERY:about:lucky88 club,nen,background]') no-repeat center center/cover;
    background-blend-mode: multiply;
    margin-bottom: 60px;
}

.page-about__hero-title {
    font-size: 52px;
    color: var(--text-color-dark-bg);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    font-weight: 800;
}

.page-about__hero-description {
    font-size: 20px;
    color: var(--text-color-dark-bg);
    max-width: 800px;
    margin: 0 auto 40px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
    padding: 60px 0;
    background-color: var(--bg-dark);
}

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

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

.page-about__mission-vision-item:hover {
    transform: translateY(-5px);
}

.page-about__mission-vision-image {
    width: 100%;
    max-width: 300px;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
    padding: 80px 0;
    background-color: var(--secondary-color); /* Use secondary color as background */
    color: var(--text-color-dark-bg); /* Light text on red background */
}

.page-about__why-choose-us-section .page-about__section-title {
    color: var(--text-color-dark-bg); /* Title is also light on red background */
}

.page-about__why-choose-us-section .page-about__section-title::after {
    background: var(--primary-color); /* Gold line on red background */
}

.page-about__section-description {
    font-size: 18px;
    text-align: center;
    max-width: 900px;
    margin: -20px auto 60px;
    color: var(--text-color-dark-bg);
}

.page-about__advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-about__advantage-card {
    background: var(--card-bg-dark-mode); /* Light translucent card on red background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color-dark-mode);
}

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

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

.page-about__card-text {
    font-size: 16px;
    color: var(--text-color-dark-bg);
}

.page-about__cta-buttons--center {
    margin-top: 50px;
}

/* Commitment Section */
.page-about__commitment-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

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

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

.page-about__commitment-item:hover {
    transform: translateY(-5px);
}

.page-about__commitment-image {
    width: 100%;
    max-width: 300px;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
.page-about__faq-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
}

.page-about__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background: var(--card-bg-dark-mode);
    border: 1px solid var(--border-color-dark-mode);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--card-bg-dark-mode);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: var(--text-color-dark-bg);
}

.page-about__faq-question:hover {
    background: rgba(255, 255, 255, 0.15); /* Slightly lighter hover */
}

.page-about__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--primary-color); /* FAQ question text color */
}

.page-about__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-about__faq-item.active .page-about__faq-toggle {
    color: var(--secondary-color);
    transform: rotate(45deg); /* Rotate for minus sign effect */
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px;
    opacity: 0;
    background: rgba(255, 255, 255, 0.05); /* Slightly darker card bg for answer */
    color: var(--text-color-dark-bg);
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 2000px !important;
    padding: 20px !important;
    opacity: 1;
    border-top: 1px solid var(--border-color-dark-mode);
}

.page-about__faq-answer p {
    margin: 0;
    font-size: 16px;
    color: var(--text-color-dark-bg);
}

/* Blog Section */
.page-about__blog-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

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

.page-about__blog-item {
    background: var(--card-bg-dark-mode);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color-dark-mode);
}

.page-about__blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-about__blog-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding-bottom: 20px; /* Padding for content below image */
}

.page-about__blog-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-about__blog-item-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 20px 10px;
    line-height: 1.3;
}

.page-about__blog-item-excerpt {
    font-size: 15px;
    color: var(--text-color-dark-bg);
    margin: 0 20px 15px;
}

.page-about__blog-item-date {
    font-size: 14px;
    color: #999999;
    margin: 0 20px;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 44px;
    }
    .page-about__section-title {
        font-size: 34px;
    }
}

@media (max-width: 768px) {
    .page-about {
        padding-top: 100px !important; /* Mobile fixed header spacing */
        font-size: 16px;
        line-height: 1.6;
    }

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

    .page-about__hero-section {
        padding: 60px 0;
        margin-bottom: 40px;
    }

    .page-about__hero-title {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .page-about__hero-description {
        font-size: 17px;
        margin-bottom: 30px;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .page-about__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-about__section-title {
        font-size: 30px;
        margin-bottom: 30px;
        padding-top: 30px;
    }

    .page-about__sub-title {
        font-size: 20px;
    }

    .page-about__text-content {
        font-size: 16px;
    }

    .page-about__content-grid,
    .page-about__advantages-grid,
    .page-about__commitment-content,
    .page-about__blog-list {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Ensure all images are responsive */
    .page-about img {
      max-width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-about__mission-vision-image,
    .page-about__commitment-image {
        max-width: 100% !important;
        height: auto !important;
        width: 100% !important;
        object-fit: contain;
    }

    .page-about__advantage-card,
    .page-about__mission-vision-item,
    .page-about__commitment-item,
    .page-about__blog-item {
        padding: 25px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }

    .page-about__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-about__faq-question h3 {
        font-size: 16px;
        width: calc(100% - 40px);
    }
    
    .page-about__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-about__faq-answer {
        padding: 0 15px;
    }
    
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px !important;
    }

    .page-about__blog-item-image {
        height: 180px;
    }
    
    .page-about__blog-item-title {
        font-size: 18px;
    }
    
    .page-about__blog-item-excerpt {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 30px;
    }
    .page-about__section-title {
        font-size: 26px;
    }
    .page-about__hero-description {
        font-size: 16px;
    }
    .page-about__cta-button {
        font-size: 15px;
        padding: 10px 20px;
    }
    .page-about__faq-question h3 {
        font-size: 15px;
    }
}