/* Tintuc.css - Styles cho trang Tin tức */

/* Custom checkbox visual styles */
.custom-checkbox-visual {
  width: 25px;
  height: 25px;
  background-color: #d9d9d9;
  border: none;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.2s ease-in-out;
  margin-right: 20px;
}

/* Checkmark style */
.custom-checkbox-visual .checkmark-symbol {
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

/* When the hidden input is checked, style the custom visual checkbox */
input[type="checkbox"]:checked + label .custom-checkbox-visual {
  background-color: #d72323;
}

/* When the hidden input is checked, show the checkmark */
input[type="checkbox"]:checked + label .custom-checkbox-visual .checkmark-symbol {
  opacity: 1;
}

/* Main container */
.tin-tuc-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Blog header */
.blog-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 100px;
}

.blog-category {
  font-size: 18px;
  font-weight: bold;
  color: #D72323;
  margin-bottom: 10px;
}

.blog-title {
  font-size: 48px;
  font-weight: bold;
  color: #000;
  margin-bottom: 20px;
}

.search-container {
  width: 829px;
  display: flex;
  justify-content: flex-start;
  margin-top: 20px;
  margin-left: 0;
}

.search-bar {
  width: 100%;
  height: 49px;
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0 15px;
  background-color: #fff;
}

.search-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.search-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
}

/* News articles section */
.news-articles-section {
  margin-top: 100px;
}

.main-articles {
  width: 1216px;
  height: 488px;
  margin: 0;
  display: flex;
  gap: 32px;
}

/* Article cards */
.article-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

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

.article-card.large {
  width: 592px;
  height: 416px;
  display: flex;
  flex-direction: column;
}

.article-card.small {
  width: 620px;
  height: 240px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.article-card.small:nth-child(2) {
  height: 216px;
}

.article-image {
  width: 100%;
  height: 228px;
  object-fit: cover;
}

.article-card.small .article-image {
  width: 320px;
  height: 200px;
  object-fit: cover;
  display: block;
}

.article-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card.small .article-info {
  width: 248px;
  height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 0;
}

.article-card.small:nth-child(2) .article-info {
  height: 216px;
}

.article-date {
  align-self: stretch;
  color: #D5D5D5;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 20px;
  margin-bottom: 10px;
}

.article-title-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.article-title {
  color: #000;
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: 32px;
  margin: 0;
  flex: 1;
}

.article-card.large .article-title {
  font-size: 20px !important;
}

.title-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Main article description (phía trên Tin tức mới) */
.main-articles .article-description {
  align-self: stretch;
  color: var(--Gray-500, #667085);
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}

.read-more {
  color: #D72323;
  text-decoration: none;
  font-weight: bold;
  margin-top: auto;
  display: inline-block;
}

.read-more:hover {
  text-decoration: underline;
}

/* Side articles */
.side-articles {
  width: 592px;
  height: 488px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* News grid section */
.news-grid-container {
  width: 1209px;
  height: auto;
  margin-top: 50px;
  margin-left: auto;
  margin-right: auto;
  left: 50%;
  transform: translateX(-50%);
  position: relative;
}

.section-title {
  color: #000000;
  text-align: left;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
  font-size: 32px;
  font-weight: bold;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.articles-grid .article-card {
  width: 100%;
  height: auto;
  min-height: 400px;
}

.articles-grid .article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Tin tức mới (news grid) article description */
.articles-grid .article-description {
  color: #000;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}

/* Pagination */
.pagination {
  width: 1216px;
  height: 61px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pagination-link {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 20px;
  color: #000;
  font-family: Inter, sans-serif;
  font-style: normal;
  font-weight: 700;
  line-height: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.3s ease;
}

.pagination-link:hover {
  color: #000;
  text-decoration: none;
}

.pagination-arrow {
  width: 16px;
  height: 16px;
}

.right-arrow {
  transform: rotate(180deg);
}

/* Registration section */
.registration-section {
  margin-top: 100px;
  margin-bottom: 100px;
  position: relative;
}

.registration-frame {
  position: relative;
  width: 1216px;
  height: 588px;
  border-radius: 100px;
  border: 5px solid #D72323;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  left: 50%;
  transform: translateX(-50%);
}

.registration-title {
  width: 510px;
  height: 37px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  font-weight: bold;
  text-align: center;
  color: #000;
  margin-bottom: 10px;
  margin-top: -20px;
}

.input-fields-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 997px;
  margin-bottom: 30px;
  gap: 40px;
  margin-top: 30px;
}

.input-group {
  position: relative;
  width: 476px;
  height: 63px;
}

.input-group label {
  position: absolute;
  top: -7px;
  left: 10px;
  background-color: #fff;
  padding: 0 5px;
  font-size: 14px;
  color: #555;
  font-weight: bold;
}

.input-group input {
  width: 100%;
  height: 100%;
  padding: 12px 15px;
  border-radius: 10px;
  border: 2px solid #000;
  font-size: 16px;
  box-sizing: border-box;
  color: #000000;
}

.terms-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  margin-top: 15px;
}

.terms-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
  margin: 0;
  padding: 0;
}

.terms-checkbox label {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
  margin-left: 10px;
  cursor: pointer;
}

.divider-line {
  width: 583px;
  height: 1.5px;
  background-color: #000000;
  margin-bottom: 30px;
}

.submit-button {
  background-color: #000;
  color: #fff;
  width: 373px;
  height: 84px;
  border-radius: 92px;
  border: none;
  font-size: 27px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  transition: transform 0.2s ease;
}

.submit-button:hover {
  transform: scale(1.05);
}

/* Responsive design */
@media (max-width: 1440px) {
  .tin-tuc-container {
    max-width: 100%;
    padding: 0 20px;
  }

  .main-articles,
  .news-grid-container,
  .registration-frame {
    width: 100%;
    max-width: 1216px;
  }
  
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-articles {
    flex-direction: column;
    height: auto;
    gap: 20px;
  }

  .article-card.large,
  .article-card.small {
    width: 100%;
    height: auto;
  }

  .side-articles {
    width: 100%;
    height: auto;
  }

  .input-fields-container {
    flex-direction: column;
    width: 100%;
  }
  
  .input-group {
    width: 100%;
  }
  
  .search-container {
    width: 100%;
  }
}

/* Thêm các style inline từ React sang đây */
.tin-tuc-header-bar {
  background: #fff;
  color: #000;
  padding: 8px 20px;
  font-size: 16px;
  font-family: Inter, sans-serif;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 30px;
  width: auto;
  height: 39px;
  margin-left: 17px;
  margin-bottom: 10px;
}

.tin-tuc-header-bar > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tin-tuc-outer-frame {
  max-width: 1440px;
  height: 3200px;
  margin: 0 auto;
  position: relative;
  background: #fff;
  overflow: hidden;
}

.main-articles .article-info {
  padding-left: 0;
  margin-left: 0;
}

.side-articles .article-info {
  padding-left: 20px;
  width: 248px;
}

.articles-grid .article-info {
  padding-left: 0;
  margin-left: 0;
}
