/* style/about-our-story.css */

/* Global styles for the page content area */
.page-about-our-story {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #ffffff; /* Default background */
    overflow-x: hidden; /* Prevent horizontal scroll on desktop too */
}

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

.page-about-our-story__section {
    padding: 60px 0;
    text-align: center;
}

.page-about-our-story__heading {
    font-size: 36px;
    color: #017439; /* Primary brand color for headings */
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
}

.page-about-our-story__paragraph {
    font-size: 17px;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about-our-story__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* CTA Button styles */
.page-about-our-story__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-sizing; /* Ensure padding is included in width */
    max-width: 100%; /* Ensure button doesn't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-about-our-story__cta-button--primary {
    background: #C30808; /* Custom color for Register/Login */
    color: #FFFF00; /* Custom font color for Register/Login */
    border: 2px solid #C30808;
}

.page-about-our-story__cta-button--primary:hover {
    background: #a30606;
    border-color: #a30606;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-about-our-story__cta-button--secondary {
    background: #ffffff;
    color: #017439;
    border: 2px solid #017439;
}

.page-about-our-story__cta-button--secondary:hover {
    background: #f0f0f0;
    color: #017439;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.page-about-our-story__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background: linear-gradient(135deg, #017439, #FFFFFF); /* Blend primary with white */
    overflow: hidden;
}

.page-about-our-story__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensure content is above any background effects */
}

.page-about-our-story__hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

.page-about-our-story__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: #ffffff; /* White text on hero gradient */
}

.page-about-our-story__hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.1;
    color: #FFFF00; /* Use custom font color for main title */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-about-our-story__hero-description {
    font-size: 20px;
    margin-bottom: 25px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Introduction Section */
.page-about-our-story__introduction-section {
    background-color: #f8f8f8;
}

/* Mission & Vision Section */
.page-about-our-story__mission-vision-section {
    background-color: #017439; /* Dark background */
    color: #ffffff; /* Light text */
    padding: 80px 0;
}

.page-about-our-story__mission-vision-section .page-about-our-story__heading {
    color: #ffffff; /* White heading on dark background */
}

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

.page-about-our-story__card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff; /* Light text for card */
}

.page-about-our-story__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-about-our-story__card-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #FFFF00; /* Highlight with custom font color */
}

.page-about-our-story__card-description {
    font-size: 16px;
    line-height: 1.7;
}

/* Journey Section */
.page-about-our-story__journey-section {
    background-color: #ffffff;
}

.page-about-our-story__timeline {
    position: relative;
    max-width: 900px;
    margin: 50px auto;
    padding: 20px 0;
}

.page-about-our-story__timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #017439;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.page-about-our-story__timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    text-align: left;
}

.page-about-our-story__timeline-item:nth-child(odd) {
    left: 0;
    transform: translateX(-100%);
    text-align: right;
    padding-right: 60px;
}

.page-about-our-story__timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 60px;
}

.page-about-our-story__timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: #017439;
    border: 2px solid #ffffff;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.page-about-our-story__timeline-item:nth-child(even)::after {
    left: -8px;
}

.page-about-our-story__timeline-year {
    font-size: 22px;
    font-weight: bold;
    color: #017439;
    margin-bottom: 5px;
}

.page-about-our-story__timeline-description {
    font-size: 16px;
    color: #555555;
}

/* Values Section */
.page-about-our-story__values-section {
    background-color: #f0f8f0; /* Light green background */
    padding: 80px 0;
}

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

.page-about-our-story__value-item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.page-about-our-story__value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-about-our-story__value-title {
    font-size: 22px;
    font-weight: bold;
    color: #017439;
    margin-bottom: 10px;
}

.page-about-our-story__value-description {
    font-size: 16px;
    color: #555555;
}

/* Team Section */
.page-about-our-story__team-section {
    background-color: #ffffff;
}

.page-about-our-story__team-cta {
    margin-top: 40px;
}

/* Security Section */
.page-about-our-story__security-section {
    background-color: #017439; /* Dark background */
    color: #ffffff; /* Light text */
    padding: 80px 0;
}

.page-about-our-story__security-section .page-about-our-story__heading {
    color: #ffffff;
}

.page-about-our-story__security-list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0 auto;
    max-width: 800px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    text-align: left;
}

.page-about-our-story__security-item {
    font-size: 18px;
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
    color: #f0f0f0;
}

.page-about-our-story__security-item::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    top: 0;
    font-size: 20px;
    color: #FFFF00; /* Custom color */
}

/* Future Section */
.page-about-our-story__future-section {
    background-color: #f8f8f8;
}

/* FAQ Section */
.page-about-our-story__faq-section {
    background-color: #f0f8f0; /* Light green background */
    padding: 80px 0;
}

.page-about-our-story__faq-list {
    max-width: 900px;
    margin: 40px auto;
    text-align: left;
}

/* FAQ容器样式 */
.page-about-our-story__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* FAQ默认状态 - 答案隐藏 */
.page-about-our-story__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 15px;
  opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.page-about-our-story__faq-item.active .page-about-our-story__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng !important để đảm bảo độ ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333; /* Đảm bảo màu chữ tối trên nền sáng */
}

/* Kiểu câu hỏi */
.page-about-our-story__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-about-our-story__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-about-our-story__faq-question:active {
  background: #eeeeee;
}

/* Kiểu tiêu đề câu hỏi */
.page-about-our-story__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px; /* Slightly larger for readability */
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn thẻ h3 chặn sự kiện click */
  color: #017439; /* Primary color for question text */
}

/* Biểu tượng chuyển đổi */
.page-about-our-story__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Ngăn biểu tượng chặn sự kiện click */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-about-our-story__faq-item.active .page-about-our-story__faq-toggle {
  color: #C30808; /* Highlight toggle when active */
  transform: rotate(45deg); /* Rotate for 'x' effect, or keep as '-' */
}

/* CTA Bottom Section */
.page-about-our-story__cta-bottom-section {
    background-color: #017439; /* Dark background */
    color: #ffffff; /* Light text */
    padding: 80px 0;
}

.page-about-our-story__cta-bottom-section .page-about-our-story__heading {
    color: #ffffff;
}

.page-about-our-story__cta-bottom-section .page-about-our-story__paragraph {
    color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-about-our-story__hero-title {
        font-size: 40px;
    }
    .page-about-our-story__heading {
        font-size: 30px;
    }
    .page-about-our-story__timeline::before {
        left: 20px;
    }
    .page-about-our-story__timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 15px;
        text-align: left;
    }
    .page-about-our-story__timeline-item:nth-child(odd) {
        left: 0;
        transform: translateX(0);
        padding-right: 15px;
    }
    .page-about-our-story__timeline-item:nth-child(even) {
        left: 0;
    }
    .page-about-our-story__timeline-item::after {
        left: 12px;
    }
    .page-about-our-story__timeline-item:nth-child(odd)::after {
        left: 12px;
    }
}

@media (max-width: 768px) {
    /* Mobile General */
    .page-about-our-story__section {
        padding: 40px 0;
    }
    .page-about-our-story__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-about-our-story__paragraph {
        font-size: 16px;
    }

    /* Hero Section Mobile */
    .page-about-our-story__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about-our-story__hero-title {
        font-size: 32px;
    }
    .page-about-our-story__hero-description {
        font-size: 18px;
    }
    .page-about-our-story__hero-image {
        border-radius: 4px;
        min-width: unset; /* Remove min-width for mobile flexibility */
        min-height: unset; /* Remove min-height for mobile flexibility */
    }

    /* Images Mobile */
    .page-about-our-story img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px; /* Re-apply minimum size for content images */
        min-height: 200px; /* Re-apply minimum size for content images */
    }
    .page-about-our-story__image {
        margin: 20px auto;
    }

    /* Buttons Mobile */
    .page-about-our-story__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-top: 20px;
    }
    .page-about-our-story__team-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .page-about-our-story__team-cta .page-about-our-story__cta-button {
        width: calc(100% - 30px); /* Account for container padding */
        margin-left: 15px;
        margin-right: 15px;
    }


    /* Cards and Grids Mobile */
    .page-about-our-story__grid,
    .page-about-our-story__values-grid,
    .page-about-our-story__security-list {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    .page-about-our-story__card,
    .page-about-our-story__value-item {
        padding: 20px;
    }
    .page-about-our-story__card-title,
    .page-about-our-story__value-title {
        font-size: 20px;
    }

    /* FAQ Mobile */
    .page-about-our-story__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-about-our-story__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-about-our-story__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-about-our-story__faq-answer {
        padding: 0 15px;
    }
    .page-about-our-story__faq-item.active .page-about-our-story__faq-answer {
        padding: 15px !important;
    }
}

/* Ensure no CSS filter on images */
.page-about-our-story img {
    filter: none; /* Explicitly remove any potential filters */
}