/* style/about.css */
/* 
  Màu sắc chủ đạo: #4A148C (Tím xanh đậm)
  Màu phụ: #FFD700 (Vàng kim)
  Body background: #000 (Đen) -> Văn bản chính sẽ là màu trắng (#ffffff) để đảm bảo độ tương phản.
*/

.page-about {
    color: #ffffff; /* Do body background là #000 (dark), nên văn bản chính là màu trắng */
    background-color: #000; /* Đảm bảo màu nền của main khớp với body */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: 0; /* shared.css đã xử lý padding-top cho body */
}

.page-about__section {
    padding: 80px 20px;
    position: relative;
    z-index: 1;
}

.page-about__section:nth-of-type(even) {
    background-color: #1a062f; /* Màu nền xen kẽ để tạo sự phân biệt, vẫn là màu tối */
}

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

.page-about__heading {
    font-size: 38px;
    color: #FFD700; /* Tiêu đề sử dụng màu vàng kim */
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-about__sub-heading {
    font-size: 20px;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 400;
}

.page-about__text-block p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #e0e0e0;
}

.page-about__list {
    list-style: disc;
    margin-left: 20px;
    color: #e0e0e0;
}

.page-about__list li {
    margin-bottom: 8px;
    font-size: 16px;
}

/* Hero Section */
.page-about__hero-section {
    background: linear-gradient(135deg, #4A148C, #1a062f); /* Nền gradient từ tím đậm sang tím đen */
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding-top: 0; /* shared.css đã xử lý padding-top cho body */
}

.page-about__hero-container {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 2;
}

.page-about__hero-content {
    flex: 1;
    max-width: 600px;
    text-align: left;
}

.page-about__hero-title {
    font-size: 48px;
    color: #FFD700;
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 800;
}

.page-about__hero-description {
    font-size: 20px;
    color: #f0f0f0;
    margin-bottom: 30px;
    line-height: 1.5;
}

.page-about__hero-button {
    display: inline-block;
    background-color: #FFD700;
    color: #4A148C;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
}

.page-about__hero-button:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

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

.page-about__hero-image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: block;
    object-fit: cover;
}

/* Content Layouts */
.page-about__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.page-about__content-wrapper--reverse {
    flex-direction: row-reverse;
}

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

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

.page-about__image-block img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: block;
    object-fit: cover;
}

.page-about__image-block--full-width {
    flex: none; /* Override flex: 1 */
    width: 100%;
    margin-top: 40px;
}

.page-about__image-block--full-width img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

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

/* Cards */
.page-about__card {
    background: rgba(255, 255, 255, 0.08); /* Nền hơi trong suốt */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: #ffffff; /* Đảm bảo văn bản trên card là màu trắng */
}

.page-about__card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-about__card-title {
    font-size: 24px;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__dark-bg {
    background-color: #4A148C; /* Sử dụng màu chủ đạo làm nền */
    color: #ffffff; /* Văn bản màu trắng */
}

.page-about__dark-bg .page-about__card-title {
    color: #FFD700; /* Tiêu đề vẫn vàng kim */
}

.page-about__light-bg {
    background-color: #f0f0f0; /* Nền sáng cho các card khác nếu cần */
    color: #333333; /* Văn bản màu tối */
}

.page-about__light-bg .page-about__card-title {
    color: #4A148C; /* Tiêu đề màu chủ đạo */
}

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

.page-about__value-item {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.page-about__value-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-about__value-item img {
    
    
    margin-bottom: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #FFD700;
    padding: 5px;
}

.page-about__value-title {
    font-size: 22px;
    color: #FFD700;
    margin-bottom: 10px;
    font-weight: 600;
}

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

.page-about__feature-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    transition: transform 0.3s ease;
}

.page-about__feature-card:hover {
    transform: translateY(-5px);
}

.page-about__feature-title {
    font-size: 24px;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: 600;
}

/* CTA Section */
.page-about__cta-section {
    text-align: center;
    padding-top: 60px;
}

.page-about__cta-button {
    display: inline-block;
    background-color: #FFD700;
    color: #4A148C;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
}

.page-about__cta-button:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.page-about__cta-final {
    background-color: #4A148C; /* Màu chủ đạo */
    padding: 80px 20px;
    text-align: center;
}

.page-about__cta-container {
    max-width: 900px;
}

.page-about__heading--white {
    color: #ffffff;
}

.page-about__description--white {
    color: #f0f0f0;
    font-size: 18px;
    margin-bottom: 40px;
}

.page-about__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Cho phép xuống dòng trên mobile */
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    border-width: 2px;
    border-style: solid;
    max-width: 100%; /* Đảm bảo nút không tràn ra ngoài */
    box-sizing: border-box;
    white-space: normal; /* Cho phép văn bản xuống dòng */
    word-wrap: break-word;
}

.page-about__btn-primary {
    background-color: #FFD700;
    color: #4A148C;
    border-color: #FFD700;
}

.page-about__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    transform: translateY(-2px);
}

.page-about__btn-secondary {
    background-color: transparent;
    color: #FFD700;
    border-color: #FFD700;
}

.page-about__btn-secondary:hover {
    background-color: #FFD700;
    color: #4A148C;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-container {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }

    .page-about__hero-content {
        max-width: 100%;
        text-align: center;
    }

    .page-about__hero-image-wrapper {
        margin-top: 40px;
    }

    .page-about__content-wrapper {
        flex-direction: column;
    }

    .page-about__content-wrapper--reverse {
        flex-direction: column; /* Đảo ngược lại trên mobile */
    }

    .page-about__heading {
        font-size: 32px;
    }
}

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

    .page-about__section {
        padding: 60px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-about__container {
        padding: 0 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden; /* Ngăn tràn ngang */
    }

    .page-about__hero-section {
        padding: 60px 0;
        min-height: auto;
    }

    .page-about__hero-title {
        font-size: 32px;
    }

    .page-about__hero-description {
        font-size: 18px;
    }

    .page-about__heading {
        font-size: 28px;
    }

    .page-about__sub-heading {
        font-size: 18px;
    }

    .page-about__card {
        padding: 25px;
    }

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

    .page-about__value-item img {
        
        
    }

    .page-about__value-title {
        font-size: 18px;
    }

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

    /* Images responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__image-block,
    .page-about__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Buttons responsiveness */
    .page-about__hero-button,
    .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-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-about__button-group {
        flex-direction: column !important; /* Stack buttons vertically on mobile */
        gap: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px !important; /* Thêm padding cho nhóm nút */
    }
    
    .page-about__cta-final {
        padding: 60px 15px;
    }
}

/* Ensure contrast for all elements */
.page-about h1, .page-about h2, .page-about h3, .page-about h4, .page-about h5, .page-about h6 {
    color: #FFD700; /* Tiêu đề luôn vàng kim để nổi bật */
}

.page-about__text-block, .page-about__list, .page-about__card p {
    color: #e0e0e0; /* Văn bản thường màu trắng nhạt */
}

.page-about__card {
    background: rgba(74, 20, 140, 0.6); /* Nền card đậm hơn một chút để phân biệt với nền chính */
    color: #ffffff;
}

.page-about__dark-bg {
    background-color: #4A148C;
    color: #ffffff;
}
.page-about__dark-bg p {
    color: #f0f0f0;
}

.page-about__light-bg { /* If any light-bg card is used, ensure text is dark */
    background-color: #f0f0f0;
    color: #333333;
}
.page-about__light-bg h3 {
    color: #4A148C;
}
.page-about__light-bg p {
    color: #555555;
}