/* stylesblog.css - chỉ dành cho nội dung blog, không chứa header/nav */
:root {
  --orange: #e8500a;
  --orange-light: #ff6b2b;
  --dark: #0d0d0d;
  --dark-bg: #111111;
  --white: #ffffff;
  --gray-100: #f7f7f5;
  --gray-200: #eeede9;
  --gray-400: #aaaaaa;
  --gray-600: #666666;
  --text: #1a1a1a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ─── HERO DARK ─── */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6)),url("./assests/HeroSetionBlog.jpg") center/cover no-repeat;
  padding: 72px 60px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle,
      rgba(232, 80, 10, 0.15) 0%,
      transparent 70%);
  pointer-events: none;
}

.hero-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: whitesmoke;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font);
  font-size: 42px;
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  max-width: 680px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 15px;
  color: whitesmoke;
  max-width: 900px;
  line-height: 1.7;
  font-weight: 300;
}

/* ─── FILTER BAR ─── */
.filter-bar {
  padding: 36px 40px 20px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-wrap {
  position: relative;
  width: 200px;
  flex-shrink: 0;
}

.search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
}

.search-wrap input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--font);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.search-wrap input:focus {
  border-color: var(--orange);
}

.filter-btn {
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  border: 1.5px solid var(--gray-200);
  background: white;
  color: var(--gray-600);
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.filter-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
  font-weight: 600;
}

.social-icon:hover {
  background: #111a2e;;
  color:  #f1f5f9;;
}

/* ─── CONTENT AREA ─── */
.content {
  padding: 36px 40px 80px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

/* ─── FEATURED POST ─── */
.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.featured-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.featured:hover .featured-image img {
  transform: scale(1.04);
}

.badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--orange);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 6px;
}

.featured-body {
  background: white;
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1.5px solid var(--gray-200);
  border-left: none;
}

.post-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--orange);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-category svg {
  width: 13px;
  height: 13px;
}

.featured-body h2 {
  font-family: var(--font);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.35;
  color: var(--dark);
  margin-bottom: 16px;
}

.featured-body p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 24px;
  font-weight: 300;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gray-400);
  margin-bottom: 24px;
}

.post-meta svg {
  width: 13px;
  height: 13px;
}

.read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: gap 0.2s;
}

.read-link:hover {
  gap: 10px;
}

/* ─── GRID POSTS ─── */
.grid-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  border: 1.5px solid var(--gray-200);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.card-image {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.post-card:hover .card-image img {
  transform: scale(1.06);
}

.card-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(4px);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 20px;
}

.card-meta {
  font-size: 11px;
  color: var(--gray-400);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-body h3 {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--dark);
  margin-bottom: 10px;
}

.card-body p {
  font-size: 12.5px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 16px;
  font-weight: 300;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-link {
  margin-top: auto;
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s;
}

.card-link:hover {
  gap: 8px;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  animation: fadeUp 0.6s ease both 0.1s;
}

.hero p {
  animation: fadeUp 0.6s ease both 0.25s;
}

.featured {
  animation: fadeUp 0.6s ease both 0.1s;
}

.post-card:nth-child(1) {
  animation: fadeUp 0.5s ease both 0.1s;
}

.post-card:nth-child(2) {
  animation: fadeUp 0.5s ease both 0.2s;
}

.post-card:nth-child(3) {
  animation: fadeUp 0.5s ease both 0.3s;
}

/* ─── RESPONSIVE (chỉ cho nội dung blog) ─── */
@media (max-width: 1024px) {
  .header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .nav {
    position: fixed;
    top: 72px;
    left: 50%;
    padding: 1rem;
    width: min(calc(100% - 2rem), 400px);
    background: #fff;
    color: #111;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -8px);
    transition:
      opacity 0.2s,
      transform 0.2s,
      visibility 0.2s;
    z-index: 60;
  }

  .nav--open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .nav__list a,
  .nav__cta {
    width: 100%;
  }

  .nav__cta {
    margin-top: 0.25rem;
  }

  .nav__toggle {
    display: flex;
    flex-shrink: 0;
    position: relative;
    z-index: 70;
    background: #fff;
    border: 1px solid var(--gray-200);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  }

  .btn--header {
    display: none;
  }

  .hero,
  .filter-bar,
  .content {
    padding-left: 32px;
    padding-right: 32px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .featured {
    grid-template-columns: 1fr;
  }

  .featured-body {
    border-left: 1.5px solid var(--gray-200);
    border-top: none;
    padding: 36px 32px;
  }

  .grid-posts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 48px 20px 56px;
  }

  .hero h1 {
    font-size: 26px;
    max-width: 100%;
  }

  .hero p {
    font-size: 14px;
  }

  .filter-bar {
    padding: 24px 20px 0;
    gap: 8px;
  }

  .search-wrap {
    max-width: 100%;
    width: 100%;
    flex: unset;
  }

  .filter-btn {
    font-size: 12px;
    padding: 8px 14px;
  }

  .content {
    padding: 24px 20px 60px;
  }

  .featured {
    grid-template-columns: 1fr;
    border-radius: 10px;
  }

  .featured-body {
    padding: 24px 20px;
    border-left: 1.5px solid var(--gray-200);
    border-top: none;
  }

  .featured-body h2 {
    font-size: 20px;
  }

  .featured-body p {
    font-size: 13px;
  }

  .grid-posts {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card-body {
    padding: 18px 16px 16px;
  }

  .card-body h3 {
    font-size: 14px;
  }

  .card-body p {
    font-size: 12px;
  }
}
