/* General Styles for .page-tin-tuc */
.page-tin-tuc {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light background */
    background: #FFFFFF; /* Explicitly set for clarity, matches var(--secondary-color) */
}

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

.page-tin-tuc__section-title {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    color: #017439; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-tin-tuc__section-title--white {
    color: #ffffff;
}

.page-tin-tuc__section-description {
    font-size: clamp(16px, 2vw, 18px);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #555555;
}

.page-tin-tuc__section-description--white {
    color: #f0f0f0;
}

.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary,
.page-tin-tuc__read-more-btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-tin-tuc__btn-primary {
    background: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-tin-tuc__btn-primary:hover {
    background: #a00606;
    border-color: #a00606;
}

.page-tin-tuc__btn-secondary {
    background: transparent;
    color: #017439;
    border: 2px solid #017439;
}

.page-tin-tuc__btn-secondary:hover {
    background: #017439;
    color: #ffffff;
}

.page-tin-tuc__read-more-btn {
    background: #017439;
    color: #ffffff;
    padding: 8px 15px;
    font-size: 14px;
    border: 1px solid #017439;
}

.page-tin-tuc__read-more-btn:hover {
    background: #005a2e;
    border-color: #005a2e;
}

/* Image base styles */
.page-tin-tuc img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* HERO Section */
.page-tin-tuc__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 60px;
    background-color: #017439; /* Dark section background */
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-tin-tuc__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
    max-height: 500px; /* Adjust as needed */
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-tin-tuc__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-tin-tuc__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: 40px;
}

.page-tin-tuc__main-title {
    font-size: clamp(36px, 5vw, 50px);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    color: #FFFF00; /* Yellow for main title */
}

.page-tin-tuc__hero-description {
    font-size: clamp(18px, 2.5vw, 22px);
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-tin-tuc__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Latest News Section */
.page-tin-tuc__latest-news-section {
    padding: 80px 0;
}

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

.page-tin-tuc__news-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-tin-tuc__news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-tin-tuc__news-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #e0e0e0;
}

.page-tin-tuc__news-card-content {
    padding: 20px;
}

.page-tin-tuc__news-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-tin-tuc__news-card-title a {
    color: #017439;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-tin-tuc__news-card-title a:hover {
    color: #005a2e;
}

.page-tin-tuc__news-card-meta {
    font-size: 14px;
    color: #888888;
    margin-bottom: 15px;
}

.page-tin-tuc__news-card-excerpt {
    font-size: 16px;
    color: #555555;
    margin-bottom: 20px;
}

.page-tin-tuc__view-all-button {
    text-align: center;
    margin-top: 50px;
}

/* In-depth Articles Section */
.page-tin-tuc__in-depth-articles-section {
    padding: 80px 0;
    background: #017439; /* Brand primary color background */
    color: #ffffff;
}

.page-tin-tuc__in-depth-articles-section .page-tin-tuc__section-title {
    color: #FFFF00; /* Yellow for titles in dark section */
}

.page-tin-tuc__in-depth-articles-section .page-tin-tuc__section-description {
    color: #f0f0f0;
}

.page-tin-tuc__article-item {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-tin-tuc__article-item:last-child {
    margin-bottom: 0;
}

.page-tin-tuc__article-image {
    flex-shrink: 0;
    width: 400px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.page-tin-tuc__article-content {
    flex-grow: 1;
}

.page-tin-tuc__article-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
    color: #ffffff;
}

.page-tin-tuc__article-meta {
    font-size: 15px;
    color: #cccccc;
    margin-bottom: 15px;
}

.page-tin-tuc__article-text {
    font-size: 16px;
    color: #f0f0f0;
    margin-bottom: 25px;
}

/* CTA Section */
.page-tin-tuc__cta-section {
    padding: 80px 0;
    text-align: center;
    background: #017439; /* Brand primary color background */
    color: #ffffff;
}

.page-tin-tuc__cta-section .page-tin-tuc__section-title {
    color: #FFFF00; /* Yellow for titles in dark section */
    margin-bottom: 15px;
}

.page-tin-tuc__cta-section .page-tin-tuc__section-description {
    color: #f0f0f0;
    margin-bottom: 40px;
}

/* FAQ Section */
.page-tin-tuc__faq-section {
    padding: 80px 0;
    background: #f9f9f9; /* Light background for FAQ */
}

details.page-tin-tuc__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-tin-tuc__faq-item summary.page-tin-tuc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-tin-tuc__faq-item summary.page-tin-tuc__faq-question::-webkit-details-marker {
  display: none;
}
details.page-tin-tuc__faq-item summary.page-tin-tuc__faq-question:hover {
  background: #f5f5f5;
}
.page-tin-tuc__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-tin-tuc__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-tin-tuc__faq-item .page-tin-tuc__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-tin-tuc__article-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .page-tin-tuc__article-image {
        width: 100%;
        max-width: 600px;
        height: auto;
        margin-bottom: 20px;
    }
    .page-tin-tuc__article-content {
        padding: 0 15px;
    }
    .page-tin-tuc__article-title {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .page-tin-tuc__hero-section {
        padding-bottom: 40px;
    }
    .page-tin-tuc__hero-image-wrapper {
        max-height: 300px;
    }
    .page-tin-tuc__hero-image {
        object-fit: contain !important;
        aspect-ratio: unset !important;
    }
    .page-tin-tuc__main-title {
        font-size: clamp(30px, 8vw, 40px);
        padding: 0 10px;
    }
    .page-tin-tuc__hero-description {
        font-size: clamp(16px, 4vw, 18px);
        padding: 0 15px;
    }
    .page-tin-tuc__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-tin-tuc__btn-primary,
    .page-tin-tuc__btn-secondary,
    .page-tin-tuc a[class*="button"],
    .page-tin-tuc 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;
    }
    .page-tin-tuc__latest-news-section,
    .page-tin-tuc__in-depth-articles-section,
    .page-tin-tuc__cta-section,
    .page-tin-tuc__faq-section {
        padding: 40px 0;
    }
    .page-tin-tuc__section-title {
        font-size: clamp(24px, 6vw, 32px);
        padding: 0 10px;
    }
    .page-tin-tuc__section-description {
        font-size: clamp(15px, 3.5vw, 17px);
        padding: 0 15px;
        margin-bottom: 30px;
    }
    .page-tin-tuc__news-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 20px;
        margin-top: 30px;
    }
    .page-tin-tuc__news-card-image {
        height: 180px;
    }
    .page-tin-tuc__news-card-title {
        font-size: 18px;
    }
    .page-tin-tuc__article-item {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        margin-bottom: 40px;
    }
    .page-tin-tuc__article-image {
        width: 100%;
        height: auto;
    }
    .page-tin-tuc__article-title {
        font-size: 20px;
    }
    .page-tin-tuc__article-text {
        font-size: 15px;
    }
    .page-tin-tuc__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Ensure images and containers do not cause horizontal scroll */
    .page-tin-tuc img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-tin-tuc__section,
    .page-tin-tuc__card,
    .page-tin-tuc__container,
    .page-tin-tuc__hero-content,
    .page-tin-tuc__cta-buttons,
    .page-tin-tuc__news-grid,
    .page-tin-tuc__article-item,
    .page-tin-tuc__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden;
    }
    details.page-tin-tuc__faq-item summary.page-tin-tuc__faq-question { padding: 15px; }
    .page-tin-tuc__faq-qtext { font-size: 15px; }
    .page-tin-tuc__faq-toggle {
        width: 24px;
        height: 24px;
        font-size: 20px;
        margin-left: 10px;
    }
    details.page-tin-tuc__faq-item .page-tin-tuc__faq-answer {
        padding: 0 15px 15px;
    }
}