/* === CSS RESET === */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  font-family: "Inter", sans-serif;
}
body {
  margin: 0;
}
h1,
h2,
h3,
h4,
p,
ul,
li {
  margin: 0;
  padding: 0;
}
a {
  color: inherit;
  text-decoration: inherit;
}
button {
  background-color: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}
img,
svg {
  display: block;
  max-width: 100%;
}

/* === GRID SYSTEM === */
.grid-row {
  display: flex;
  flex-wrap: wrap;
}
.grid-col-12 {
  width: 100%;
}
@media (min-width: 1024px) {
  .lg-grid-col-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
  }
  .lg-grid-col-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
  }
}

/* === UTILITIES === */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 1rem;
  padding-left: 1rem;
}
@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}
@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}
.consulting-button-choose {
  padding: 10px 16px;
  border-radius: 8px;
  background-color: #a40000;
  color: white;
  font-size: 16px;
  line-height: 28px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #8c0000;
}

.consulting-button-choose:hover {
  background-color: #fff;
  color: #8c0000;
  border: 1px solid #8c0000;
}

.consulting-button-register {
  padding: 10px 16px;
  border: 1px solid #174ea2;
  border-radius: 8px;
  background-color: white;
  color: #174ea2;
  font-size: 16px;
  line-height: 28px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.consulting-button-register:hover {
  background-color: #174ea2;
  color: #fff;
}

@media (max-width: 767px) {
  .consulting-button-choose,
  .consulting-button-register {
    width: 100%;
    text-align: center;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}
@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

.flex {
  display: flex;
}
.lg-flex-wrap {
  flex-wrap: wrap;
}
.flex-wrap {
  flex-wrap: wrap;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.text-center {
  text-align: center;
}
.w-full {
  width: 100%;
}
.banner-w-full {
  padding-right: 0px;
  width: 100%;
}
.h-full {
  height: 100%;
}
.w-fit {
  width: fit-content;
}
.w-2 {
  width: 0.5rem;
}
.h-2 {
  height: 0.5rem;
}
.object-cover {
  object-fit: cover;
}
.overflow-hidden {
  overflow: hidden;
}

.rounded-md {
  border-radius: 0.375rem;
}
.rounded-xl {
  border-radius: 0.75rem;
}
.rounded-2xl {
  border-radius: 1rem;
}
.rounded-full {
  border-radius: 9999px;
}

.border {
  border-width: 1px;
  border-style: solid;
}
.border-red-800 {
  border-color: #a40000;
}
.border-blue-800 {
  border-color: #004aad;
}

.bg-white {
  background-color: #fff;
}
.bg-gray-50 {
  background-color: #fafafa;
}
.bg-blue-50 {
  background-color: #edf7ff;
}
.bg-green-50 {
  background-color: #e9f6ed;
}
.bg-green-600 {
  background-color: #24a148;
}
.bg-red-800 {
  background-color: #a40000;
}
.bg-red-800:hover a {
  color: white;
}

.hover-bg-red-800:hover {
  background-color: #a40000 !important;
  color: #fff;
}

.course-button {
  border-color: #a40000 !important;
  font-weight: 600 !important;
}

.course-button:hover a {
  color: #fff;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-4xl {
  font-size: 32px;
}
.leading-tight {
  line-height: 44px;
}

.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.font-bold {
  font-weight: 700;
}

.text-white {
  color: #fff;
}
.text-neutral-700 {
  color: #404040;
}
.text-neutral-800 {
  color: #262626;
}
.text-blue-800 {
  color: #004aad;
}
.text-red-800 {
  color: #a40000;
}

.px-0 {
  padding-left: 0;
  padding-right: 0;
}
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-6 {
  padding-left: 24px;
  padding-right: 24px;
}
.lg-px-6 {
  padding-left: 24px;
  padding-right: 24px;
}
.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.py-2 {
  padding-top: 8px;
  padding-bottom: 8px;
}
.py-3 {
  padding-top: 12px;
  padding-bottom: 12px;
}
.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.py-2-5 {
  padding-top: 10px;
  padding-bottom: 10px;
}
.py-px-3 {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.pt-6 {
  padding-top: 1.5rem;
}
.pt-8 {
  padding-top: 2rem;
}
.pr-6 {
  padding-right: 1.5rem;
}
.pb-12 {
  padding-bottom: 40px;
}
.pt-32 {
  padding-top: 8rem;
}
.pb-64 {
  padding-bottom: 16rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-6 {
  margin-top: 1.5rem;
}

.gap-3 {
  gap: 0.75rem;
}
.gap-4 {
  gap: 1rem;
}

.space-y-4 > *:not([hidden]) ~ *:not([hidden]) {
  margin-top: 1rem;
}

.w-xl {
  max-width: 42rem;
}
.py-lexical {
  padding: 40px 0;
}
.img-mobile-lexical {
  display: block;
}

/* Responsive Utilities */
@media (min-width: 1024px) {
  .pb-12 {
    padding-bottom: 48px;
  }
  .img-mobile-lexical {
    display: none;
  }
  .bg-lexical {
    background-image: url("/assets/img/consulting/bg-lexical.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .lg-pb-20 {
    padding-bottom: 5rem;
  }
  .lg-py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  .lg-justify-between {
    justify-content: space-between;
  }
  .lg-w-72 {
    width: 18rem;
  }
  .lg-flex-wrap {
    flex-wrap: nowrap;
  }
  .lg-px-6 {
    padding-left: 0px;
    padding-right: 24px;
  }
  .banner-w-full {
    padding-right: 24px;
  }
  .text-4xl {
    font-size: 40px;
  }
  .leading-tight {
    line-height: 56px;
  }
  .py-lexical {
    padding-top: 125px;
    padding-bottom: 257px;
  }
}

/* === NEWS SECTIONS === */

/* Hiển thị section desktop trên PC, ẩn trên mobile */
.news-section-desktop {
  display: block;
}

.news-section-mobile {
  display: none;
}

/* Mobile Grid Layout */
.news-mobile-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.news-mobile-item {
  width: 100%;
}

/* Tin tức Desktop */
.wrap_tintuc {
  padding: 80px 0;
}

.news-title-section {
  text-align: center;
  margin-bottom: 40px;
}

.news-main-title {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.news-slider-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

.news-slider-wrapper {
  overflow: hidden;
}

.news-slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

.news-slide-item {
  flex: 0 0 33.333%;
  min-width: 0;
  padding-right: 30px;
}

.news-slide-item:last-child {
  padding-right: 0;
}

.news-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-8px);
}

.news-card-header {
  position: relative;
  padding: 15px;
  background: linear-gradient(45deg, #e3f2fd, #fff);
}

.news-logo {
  display: inline-block;
}

.logo-text {
  background: linear-gradient(45deg, #2196f3, #21cbf3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.news-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
  transform: scale(1.05);
}

.news-card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-title {
  font-size: 24px;
  line-height: 36px;
  letter-spacing: 0.1px;
  font-weight: 600;
  color: #262626;
  margin: 0 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-transform: uppercase;
}

.news-desc {
  font-size: 16px;
  color: #262626;
  line-height: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
}

.read-more-btn {
  background: #d32f2f;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.read-more-btn:hover {
  background: #b71c1c;
  color: white;
  text-decoration: none;
}

.news-meta {
  display: flex;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0.2px;
  color: #262626;
  gap: 16px;
  margin-bottom: 16px;
}

.news-date {
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: #a40000;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: white;
}

.news-slider-btn:hover {
  background: #b71c1c;
  transform: translateY(-50%) scale(1.1);
}

.news-slider-btn:disabled,
.news-slider-btn[style*="pointer-events: none"] {
  opacity: 0.5;
  cursor: not-allowed;
}

.news-slider-prev {
  left: 0px;
}

.news-slider-next {
  right: 0px;
}

/* Responsive */
@media (max-width: 992px) {
  .news-slide-item {
    flex: 0 0 50%;
    padding-right: 30px;
  }
  .news-title-section {
    margin-bottom: 32px;
  }
  .news-slide-item:nth-child(2n) {
    padding-right: 0;
  }

  .news-title-section {
    text-align: left;
  }

  .news-slider-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: #a40000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
  }

  .news-card-content {
    padding: 12px 0 0;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  /* Ẩn phiên bản desktop trên mobile */
  .news-section-desktop {
    display: none;
  }

  /* Hiển thị phiên bản mobile */
  .news-section-mobile {
    display: block;
  }

  .wrap_tintuc {
    padding: 40px 0 0;
  }

  .news-slide-item {
    flex: 0 0 100%;
    padding-right: 0;
  }

  .news-slide-item:nth-child(2n) {
    padding-right: 0;
  }

  .news-slider-container {
    padding: 0;
  }

  .news-main-title {
    font-size: 24px;
  }

  .news-title {
    font-size: 18px;
    line-height: 32px;
    letter-spacing: 0.1px;
  }

  .news-desc {
    font-size: 16px;
    line-height: 28px;
    letter-spacing: 0.2px;
  }

  .news-desc,
  .news-title {
    -webkit-line-clamp: 3;
  }

  /* Mobile news styles */
  .news-section-mobile .news-title-section {
    text-align: left;
  }

  .news-section-mobile .news-main-title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .news-slider-container {
    padding: 0;
  }
}
