* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f6f7f9;
}

.container {
  flex: 1;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 30px 80px 30px;
  width: 100%;
}

header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}

.category-box, .latest-title, .latest-date {
  text-decoration: none !important;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  max-width: 100%;
  margin: 0;
}

.logo {
  font-weight: 800;
  font-size: 20px;
}

.logo img {
  max-height: 50px;
  width: auto;
  display: block;
}

.search-bar form {
  display: flex;
}

.search-bar input {
  width: 320px;
  padding: 10px 14px;
  border-radius: 20px;
  border: 1px solid #ccc;
}

.header-bottom {
  border-top: 1px solid #eee;
  padding: 12px 40px;
  max-width: 100%;
  margin: 0;
}

.categories-menu {
  display: flex;
  align-items: center;
}

.categories-menu ul {
  display: flex;
  gap: 15px;
  list-style: none;
}

.categories-menu li {
  background: #f0f0f0;
  padding: 8px 15px;
  border-radius: 6px;
  transition: 0.25s;
}

.categories-menu li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  white-space: nowrap;
}

.categories-menu li:hover {
  background: #333;
}

.categories-menu li:hover a {
  color: #fff;
}

.section-title,
.trending-title {
  font-size: 26px;
  margin: 40px 0 20px 20px;
  padding: 0px 42px;
}

.section-title {
  margin-left: 50px !important;
}

.spaced {
  margin-top: 60px;
}

.slider-wrapper {
  position: relative;
  padding: 0 65px;
}

.slider-viewport {
  overflow: hidden;
  padding: 35px 25px;
  margin: -35px -25px;
}

.slider {
  display: flex;
  gap: 10px;
  transition: transform 0.3s ease;
}

.article-card {
  flex: 0 0 300px;
}

.article-inner {
  position: relative;
  width: 100%;
  height: 220px;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 10px 35px rgba(0,0,0,0.12); 
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.article-thumb {
  position: absolute;
  inset: 0;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-title {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 24px 18px 22px 18px; 
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  box-sizing: border-box;
}

.article-inner:hover img {
  transform: scale(1.06);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
}

.slider-btn:hover {
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.slider-btn.left { left: 5px; }
.slider-btn.right { right: 5px; }
.slider-btn svg { display: block; }

.latest-list {
  max-width: 800px;
  margin-left: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.latest-item {
  display: flex;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  text-decoration: none;
  color: #000;
  height: 160px;
}

.latest-item a {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.latest-thumb {
  width: 220px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.latest-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.latest-info {
  flex: 1;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}

.latest-category {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.latest-category a,
.latest-category .category-box {
  display: inline-block;
  background-color: #f0f0f0;
  color: #333;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 4px 10px;
  border-radius: 12px;
  text-decoration: none;
  transition: 0.25s;
  margin-bottom: 6px;
}

.latest-category a:hover,
.latest-category .category-box:hover {
  background-color: #111;
  color: #fff;
}

.latest-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
}

.latest-date {
  font-size: 13px;
  color: #888;
}

.latest-item:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.show-all {
  display: block;
  margin: 40px auto 0;
  padding: 12px 32px;
  border-radius: 25px;
  border: none;
  background: #111;
  color: #fff;
  cursor: pointer;
}

.single-container {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

.single-article {
  background: #fff;
  border-radius: 18px;
  padding: 50px 60px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.single-title {
  font-family: 'Poppins', sans-serif;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}

.single-meta {
  font-size: 14px;
  color: #777;
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.single-thumb {
  margin: 30px 0;
  border-radius: 16px;
  overflow: hidden;
}

.single-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.single-content {
  font-size: 17px;
  line-height: 1.8;
  color: #222;
}

.single-content p {
  margin-bottom: 22px;
}

.single-content h2,
.single-content h3 {
  font-family: 'Poppins', sans-serif;
  margin: 40px 0 15px;
  line-height: 1.3;
}

.single-content h2 {
  font-size: 26px;
}

.single-content h3 {
  font-size: 22px;
}

.single-content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 30px 0;
}

.single-content blockquote {
  border-left: 4px solid #111;
  padding-left: 20px;
  color: #555;
  font-style: italic;
  margin: 30px 0;
}

.single-post-content {
  max-width: 860px;
  margin: 60px auto;
  background: #ffffff;
  padding: 50px 60px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.post-header {
  margin-bottom: 40px;
  text-align: center;
}

.post-title {
  font-size: 3.2rem;
  font-weight: 800;
  color: #111111;
  line-height: 1.25;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.post-meta {
  font-size: 0.95rem;
  color: #888888;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.post-thumbnail {
  margin: 0 0 40px 0 !important;
  width: 100% !important;
  max-height: 450px;
  overflow: hidden;
  border-radius: 6px;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.post-body {
  font-size: 1.25rem;
  line-height: 1.85;
  color: #292929;
  letter-spacing: -0.03px;
}

.post-body p {
  margin-bottom: 28px;
}

.post-body h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #111111;
  margin-top: 45px;
  margin-bottom: 20px;
  letter-spacing: -0.4px;
}

.post-body h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #111111;
  margin-top: 35px;
  margin-bottom: 15px;
}

.post-body img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  border-radius: 8px;
  margin: 35px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.post-footer {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid #f0f0f0;
  background: transparent !important;
  color: #555555 !important;
}

.post-categories, .post-tags {
  margin-bottom: 15px;
  font-size: 1rem;
  font-weight: 500;
}

.post-categories strong, .post-tags strong {
  color: #222222;
}

.post-categories a, .post-tags a {
  color: #ff2a54 !important;
  background: none !important;
  padding: 0 !important;
  text-decoration: none;
  font-weight: 600;
  margin-right: 5px;
}

.post-categories a:hover, .post-tags a:hover {
  color: #111111 !important;
  text-decoration: underline;
}

.you-may-like {
  max-width: 860px;
  margin: 40px auto 80px auto;
}

.related-section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #111111;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  height: 190px !important; 
}

.error-container {
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.error-card {
  max-width: 620px;
  width: 100%;
  background: #fff;
  border-radius: 22px;
  padding: 60px 70px;
  text-align: center;
  box-shadow: 0 15px 45px rgba(0,0,0,0.1);
}

.error-code {
  font-size: 110px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -4px;
  margin-bottom: 10px;
  color: #111;
}

.error-title {
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 14px;
}

.error-text {
  font-size: 16px;
  line-height: 1.7;
  color: #666;
  margin-bottom: 35px;
}

.error-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 30px;
}

.error-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: 0.25s;
}

.error-btn.primary {
  background: #111;
  color: #fff;
}

.error-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.error-btn.secondary {
  background: #f0f0f0;
  color: #111;
}

.error-btn.secondary:hover {
  background: #e4e4e4;
}

.error-search form {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.error-search input[type="search"] {
  width: 100%;
  max-width: 360px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid #ccc;
  font-size: 14px;
}

footer {
  background: #222;
  color: #fff;
  padding: 40px 20px 20px;
  margin-top: auto;
  font-size: 14px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 20px;
}

.footer-column h3 {
  font-size: 16px;
  margin-bottom: 12px;
  font-weight: 600;
}

.footer-column p,
.footer-column a {
  color: #ccc;
  line-height: 1.5;
  text-decoration: none;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column a:hover {
  color: #fff;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: 0.25s;
}

.footer-links a:hover {
  color: #fff;
  padding-left: 5px;
}

@media (max-width: 1024px) {
  .article-card { 
    flex: 0 0 260px; 
  }
}

@media (max-width: 768px) {
  .header-top {
    flex-direction: column;
    gap: 15px;
    padding: 15px !important;
    text-align: center;
  }
  
  .search-bar, 
  .search-bar form, 
  .search-bar input {
    width: 100% !important;
    max-width: 100%;
  }
  
  .header-bottom {
    padding: 10px 15px !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .categories-menu ul {
    flex-wrap: nowrap;
    gap: 10px;
    padding-bottom: 5px;
  }
  
  .container {
    padding: 0 15px 40px 15px !important;
  }
  
  .spaced {
    margin-top: 30px !important;
  }
  
  .section-title,
  .trending-title {
    font-size: 22px !important;
    margin: 25px 0 15px 0 !important;
    padding: 0 !important;
  }

  .slider-wrapper {
    padding: 0 !important;
  }
  
  .slider-viewport {
    margin: 0 !important;
    padding: 5px 0 15px 0 !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    -ms-overflow-style: none; 
    scrollbar-width: none; 
  }
  
  .slider-viewport::-webkit-scrollbar { 
    display: none; 
  }
  
  .slider {
    transform: none !important;
    width: max-content;
  }

  .article-card {
    flex: 0 0 240px !important;
    scroll-snap-align: start;
  } 
  
  .slider-btn {
    display: none !important;
  }
  
  .slider-btn.left { left: 0; }
  .slider-btn.right { right: 0; }

  .article-inner,
  .latest-item {
    box-shadow: none !important;
    border: 1px solid #eee;
  }

  .latest-list {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 0 10px !important;
    gap: 15px;
  }

  .latest-item {
    flex-direction: column !important;
    height: auto !important; 
    width: 100% !important;
    max-width: 100%;
    margin-bottom: 20px;
    position: relative !important; 
  }

  .latest-thumb {
    width: 100% !important;
    height: 200px !important; 
    margin: 0 !important;
    border-radius: 14px 14px 0 0; 
    overflow: hidden;
  }
  
  .latest-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; 
    object-position: center;
  }

  .latest-info {
    position: absolute !important;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px !important;
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 75%, transparent 100%) !important;
    display: flex;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 0;
  }

  .latest-title {
    font-size: 16px !important;
    color: #ffffff !important;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 !important;
    -webkit-line-clamp: 2; 
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
    order: 1;
  }

  .latest-date {
    font-size: 12px !important;
    color: rgba(255,255,255,0.7) !important;
    margin: 0 !important;
    order: 2;
    white-space: nowrap;
  }

  .latest-category {
    position: static !important;
    order: 3;
    margin: 0 0 0 10px !important;
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    gap: 5px;
    flex: 1;
    justify-content: flex-start;
  }

  .latest-category .category-box {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 10px !important;
    padding: 3px 8px !important;
    white-space: nowrap;
    border-radius: 4px !important;
  }

.single-post-content {
    padding: 25px 15px !important; 
    margin: 20px 0 40px 0 !important; 
    width: 100% !important; 
    max-width: 100% !important;
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important; 
    box-sizing: border-box !important;
  }

  .post-title {
    font-size: 2rem !important; 
    margin-bottom: 15px;
  }

  .post-thumbnail {
    margin: 0 0 25px 0 !important;
  }

  .post-thumbnail img {
    max-height: 250px !important; 
  }

  .post-body {
    font-size: 1.1rem !important; 
    line-height: 1.7;
  }

  .post-body h2 {
    font-size: 1.5rem !important;
    margin-top: 30px;
  }

  .post-body h3 {
    font-size: 1.25rem !important;
    margin-top: 25px;
  }

  .post-body blockquote.tiktok-embed,
  .post-body blockquote.instagram-media,
  .post-body .twitter-tweet {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important; 
    margin: 25px auto !important;
    box-sizing: border-box !important;
  }

  .post-body blockquote.tiktok-embed iframe,
  .post-body blockquote.instagram-media iframe,
  .post-body .twitter-tweet iframe,
  .post-body iframe,
  .post-body embed,
  .post-body object,
  .post-body video {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto;
    display: block;
    margin: 0 auto !important;
    box-sizing: border-box;
  }

  .you-may-like {
    margin: 30px auto 60px auto !important;
  }

  .related-section-title {
    font-size: 1.5rem !important;
    text-align: center;
  }

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

  .footer-top {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 20px 10px;
    text-align: center;
  }

  .footer-column:first-child {
    grid-column: span 2; 
    margin-bottom: 10px;
    padding: 0 15px;
  }

  .footer-column:nth-child(2),
  .footer-column:nth-child(3) {
    font-size: 13px; 
  }

  .single-article {
    padding: 30px 25px;
  }
  
  .single-title {
    font-size: 28px;
  }
  
  .error-card {
    padding: 40px 30px;
  }
  
  .error-code {
    font-size: 80px;
  }
  
  .error-title {
    font-size: 22px;
  }
	.post-body {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden;
  }

  .post-body table, 
  .post-body pre {
    max-width: 100%;
    overflow-x: auto;
    display: block;
    -webkit-overflow-scrolling: touch;
  }
  .post-body img,
  .post-body figure {
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 480px) {
  .article-inner { 
    height: 190px; 
  }
  .latest-thumb { 
    height: 160px !important; 
  }
}