:root {
  --text: #222;
  --muted: #777;
  --border: #e5e5e5;
  --bg: #fafafa;
  --theme-color: #004234;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}
body {
  background: #e9e9e9;
  color: var(--text);
} /* outer gray background */

/* BOXED LAYOUT WRAPPER */
.page-wrapper {
  max-width: 1200px;
  margin: 20px auto;
  background: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  overflow: hidden;
}

header {
  text-align: center;
  padding: 20px 0 10px;
}
.logo img {
  width: 250px;
  height: 250px;
}

.main__nav {
  background-color: #fff;
  height: 60px;
  line-height: 60px;
  border: 1px solid var(--border);
  /* border-top: 1px solid var(--theme-color);
  border-bottom: 1px solid var(--theme-color); */
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 25px;
  font-size: 15px;
  list-style: none;
}
nav a {
  text-decoration: none;
  color: #333;
  text-transform: uppercase;
  font-family: "Poppins", sans-serif;
  font-weight: bold;
}

.container {
  max-width: 1100px;
  margin: 30px auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 25px;
}

/* CAROUSEL (FIXED CLEAN) */
.carousel {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}
.carousel-track {
  display: flex;
  transition: 0.5s ease;
}
.slide {
  min-width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 15px;
  color: #fff;
  position: relative;
}
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.1));
}
.slide-content {
  position: relative;
  z-index: 2;
}
.slide-category {
  font-size: 11px;
  opacity: 0.8;
  text-transform: uppercase;
}
.slide-title {
  font-size: 15px;
  font-weight: 600;
  margin: 3px 0;
}
.slide-desc {
  font-size: 12px;
  opacity: 0.9;
}

.carousel-buttons {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}
.carousel-buttons button {
  background: #fff;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
}

.section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 15px;
}
.section h3 {
  font-size: 14px;
  margin-bottom: 15px;
}

a {
  text-decoration: none;
  color: #111;
}

.slide-title {
  color: #fff;
}

/* LATEST (PROPERLY ALIGNED) */
.latest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 20px;
}
.post a {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.post img {
  width: 90px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}
.post .info {
  flex: 1;
}
.tag {
  font-size: 10px;
  color: #999;
}
.title {
  font-size: 13px;
  margin: 3px 0;
  line-height: 1.3;
}
.date {
  font-size: 11px;
  color: var(--muted);
}

.archive-header h2 {
  background-color: #111;
  color: #fff;
  width: fit-content;
  font-size: 15px;
  padding: 10px 20px;
  margin: 10px 0;
  text-transform: uppercase;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.search__form {
  display: flex;
  justify-content: center;
}

.search__form form {
  display: flex;
}

.search__form form input {
  height: 40px;
  padding: 0 10px;
  border: 0;
  outline: none;
}

.search__form form button {
  height: 40px;
  width: 40px;
  font-size: 14px;
  border-radius: 50px;
  background-color: var(--theme-color);
  color: #fff;
  border: 0;
}

.search__form form {
  border: 1px solid var(--border);
  padding: 5px 2px;
  border-radius: 30px;
}

/* TRENDING (MATCH ORIGINAL LOOK BETTER) */

.trending-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.trending-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.trending-item:last-child {
  border-bottom: none;
}
.trending-rank {
  font-size: 12px;
  font-weight: 600;
  color: #999;
  width: 20px;
}
.trending-item img {
  width: 150px !important;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
}
.trending-info {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.trending-title {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 500;
}
.trending-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}

.pagination {
  display: flex;
  gap: 6px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.page {
  border: 1px solid var(--border);
  padding: 5px 8px;
  font-size: 11px;
  cursor: pointer;
}
.page.active {
  background: #111;
  color: #fff;
}

footer {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  font-size: 12px;
  color: var(--muted);
}

/* Single post */

.single-card {
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.breadcrumb {
  font-size: 14px;
  color: #777;
  margin-bottom: 10px;
}

.category-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  margin-bottom: 10px;
  background-color: var(--theme-color);
  color: #fff;
}

.single-card .title {
  font-size: 26px;
  font-weight: 700;
  margin: 10px 0;
}

.meta {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
}

.featured-image img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

.content {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

.content p {
  padding: 10px 0;
}

.content ul,
.content ol {
  margin-left: 20px;
}

.tags {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

.tags span {
  display: inline-block;
  background: #eee;
  padding: 6px 10px;
  margin: 5px;
  border-radius: 20px;
  font-size: 13px;
}

.share {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.related {
  margin: 0 10px;
}

.related h2 {
  display: inline-block;
  padding-bottom: 5px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 15px;
}

.card img {
  width: 100%;
  height: 100px;
  border-radius: 10px;
  object-fit: cover;
}

.card h3 {
  font-size: 14px;
  margin: 5px 0;
}

.card .date {
  font-size: 12px;
  color: #777;
}

@media (min-width: 400px) {
  .logo img {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 600px) {
  .single-card .title {
    font-size: 22px;
  }
}

@media (max-width: 900px) {
  .nav {
    background-color: var(--theme-color);
  }
  .container {
    grid-template-columns: 1fr;
  }
  .latest-grid {
    grid-template-columns: 1fr;
  }
}
