/* style/resources.css */

/* Căn chỉnh padding-top cho nội dung chính để tránh bị header cố định che khuất */
.page-resources {
    padding-top: 120px; /* Giá trị này có thể điều chỉnh tùy theo chiều cao header */
    background-color: #0a0a0a; /* Màu nền body từ shared.css */
    color: #ffffff; /* Màu chữ chính cho nền tối */
}

.page-resources a {
    color: #FFD700; /* Màu vàng kim cho liên kết */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources a:hover {
    color: #ffd700cc; /* Màu vàng kim nhạt hơn khi hover */
}

.page-resources__hero-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, #000080, #0a0a0a); /* Nền xanh hải quân đậm dần */
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.page-resources__hero-content {
    max-width: 900px;
    z-index: 1;
    margin-bottom: 40px;
}

.page-resources__hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFD700; /* Tiêu đề màu vàng kim */
}

.page-resources__hero-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-resources__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: #FFD700;
    color: #000000; /* Chữ đen trên nền vàng */
    border-radius: 8px;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-resources__btn-primary:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
}

.page-resources__hero-image-container {
    width: 100%;
    max-width: 1000px;
    margin-top: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__hero-image-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-resources__section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.page-resources__section-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #FFD700; /* Tiêu đề phần màu vàng kim */
}

.page-resources__section-intro {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #cccccc;
}

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

.page-resources__card {
    background: rgba(255, 255, 255, 0.08); /* Nền thẻ hơi trong suốt */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
}

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

.page-resources__card-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-resources__card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-resources__card-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #FFD700; /* Tiêu đề thẻ màu vàng kim */
}

.page-resources__card-title a {
    color: #FFD700;
}

.page-resources__card-title a:hover {
    color: #e6c200;
}

.page-resources__card-text {
    font-size: 16px;
    line-height: 1.6;
    color: #cccccc;
    margin-bottom: 20px;
}

.page-resources__card-link {
    display: inline-block;
    font-weight: 600;
    color: #FFD700;
    text-decoration: none;
    position: relative;
    padding-bottom: 3px;
}

.page-resources__card-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #FFD700;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.page-resources__card-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.page-resources__strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: left;
}

.page-resources__strategy-item {
    background: rgba(0, 0, 128, 0.4); /* Nền xanh hải quân hơi trong suốt */
    border: 1px solid #000080;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
}

.page-resources__strategy-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__strategy-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

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

.page-resources__strategy-description {
    font-size: 15px;
    line-height: 1.6;
    color: #e0e0e0;
}

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

.page-resources__promo-card {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid #FFD700;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
}

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

.page-resources__promo-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

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

.page-resources__promo-description {
    font-size: 16px;
    line-height: 1.6;
    color: #cccccc;
    margin-bottom: 20px;
}

.page-resources__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.page-resources__btn-secondary:hover {
    background-color: #FFD700;
    color: #000000;
}

/* FAQ Section Styles */
.page-resources__faq-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  color: #e0e0e0;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important; /* Sử dụng !important và giá trị đủ lớn */
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 5px 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(0, 0, 128, 0.6); /* Nền xanh hải quân cho câu hỏi */
  border: 1px solid #000080;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources__faq-question:hover {
  background: rgba(0, 0, 128, 0.8);
  border-color: #0000a0;
}

.page-resources__faq-question:active {
  background: #0000a0;
}

.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn h3 chặn sự kiện click */
  color: #FFD700; /* Màu vàng kim cho tiêu đề câu hỏi */
}

.page-resources__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  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-resources__faq-item.active .page-resources__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Xoay biểu tượng khi mở */
}

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

.page-resources__news-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
}

.page-resources__news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

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

.page-resources__news-title a {
    color: #FFD700;
}

.page-resources__news-title a:hover {
    color: #e6c200;
}

.page-resources__news-date {
    font-size: 14px;
    color: #999999;
    margin-bottom: 10px;
}

.page-resources__news-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #cccccc;
}

.page-resources__cta-section {
    background: linear-gradient(90deg, #000080, #FFD700); /* Nền chuyển màu từ xanh sang vàng */
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
}

.page-resources__cta-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-resources__cta-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 40px;
    }
    .page-resources__section-title {
        font-size: 32px;
    }
    .page-resources__cta-title {
        font-size: 34px;
    }
}

@media (max-width: 768px) {
    .page-resources {
        padding-top: 100px; /* Điều chỉnh padding-top cho mobile */
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources__hero-banner {
        flex-direction: column;
        padding: 60px 15px;
    }
    .page-resources__hero-content {
        margin-bottom: 30px;
    }
    .page-resources__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-resources__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }
    .page-resources__btn-primary {
        padding: 12px 25px;
        font-size: 16px;
    }
    .page-resources__hero-image-container {
        margin-top: 30px;
    }
    .page-resources__section {
        padding: 40px 15px;
    }
    .page-resources__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-resources__section-intro {
        font-size: 15px;
        margin-bottom: 30px;
    }
    .page-resources__card-grid, .page-resources__strategy-grid, .page-resources__promo-grid, .page-resources__news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-resources__card, .page-resources__strategy-item, .page-resources__promo-card, .page-resources__news-card {
        padding: 20px;
    }
    .page-resources__card-title, .page-resources__strategy-title, .page-resources__promo-title, .page-resources__news-title {
        font-size: 20px;
    }
    .page-resources__card-text, .page-resources__strategy-description, .page-resources__promo-description, .page-resources__news-excerpt {
        font-size: 15px;
    }
    .page-resources__btn-secondary {
        padding: 10px 20px;
        font-size: 15px;
    }
    .page-resources__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-resources__faq-question h3 {
        font-size: 16px;
        width: calc(100% - 40px);
    }
    .page-resources__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-resources__faq-answer {
        padding: 0 15px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px !important;
    }
    .page-resources__cta-section {
        padding: 60px 15px;
    }
    .page-resources__cta-title {
        font-size: 28px;
    }
    .page-resources__cta-description {
        font-size: 16px;
    }

    /* 强制图片响应式适配 */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__hero-image-container,
    .page-resources__strategy-item,
    .page-resources__promo-card,
    .page-resources__news-card,
    .page-resources__hero-banner,
    .page-resources__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Đảm bảo tất cả hình ảnh đều có kích thước tối thiểu và không bị filter */
.page-resources img {
    min-width: 200px; 
    min-height: 200px; 
    filter: none; /* Đảm bảo không có filter */
}