* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Nunito", sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

/* Main Content */
.blog-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  margin-top: 50px;
}

@media (max-width: 768px) {
  .blog-container {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }
}

.hero {
  background: url("https://d1vmk59yruybuv.cloudfront.net/trailside-campers/images/banner.jpg")
    center/cover no-repeat;
  color: white;
  text-align: center;
  height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.hero h2 {
  font-size: 2.5rem;
}

main {
  padding: 2rem 0;
}

.blog-section {
  /* padding: 40px 0; */
  text-align: center;
}

.blog-section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #2c3e50;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

.blog-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
  transition: 0.4s;
  text-align: left;
  cursor: pointer;
}

.blog-card:hover {
  box-shadow: 0px 3px 30px 0px rgba(0, 0, 0, 0.1);
}

/* .blog-card:hover {
  transform: translateY(-5px);
} */

.blog-card img {
  transform: scale(1);
  transition: 0.4s;
}

.blog-card:hover img {
  transform: scale(1.1);
}

.blog-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.blog-content {
  padding: 16px;
}

.blog-content .date {
  font-size: 13px;
  margin-bottom: 4px;
  color: #999999;
}

.blog-content .desc {
  font-size: 14px;
}

.blog-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #333;
}

.blog-content p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 12px;
}

.read-more {
  color: #f7941d;
  text-decoration: none;
  font-weight: bold;
}

.read-more:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .blog-grid {
    padding: 0;
  }
  .blog-section h2 {
    margin-bottom: 15px;
  }
}

/* Header Styles */
.site-header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 10px 0;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  /* background: #111; */
  background-color: rgba(0, 0, 0, 0.65);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(6px);
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  color: #fff;
  text-decoration: none;
  font-size: 24px;
  font-weight: 700;
}

.logo .logo-flex {
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo .logo-flex img {
  width: 70px;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  font-size: 15px;
}

.nav a:hover {
  color: #f7941d;
}

.nav a.active {
  color: #f7941d;
  font-weight: 700;
}

/* Hamburger Icon */
.hamburger {
  display: none;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
}

/* Mobile Menu */
@media (max-width: 768px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #111;
    background-color: rgba(0, 0, 0, 0.9);
    max-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0;
  }

  .nav.open {
    max-height: max-content;
    padding: 20px 0;
  }

  .nav ul {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .hamburger {
    display: block;
  }
}

/* ---- Footer Start --- */

footer {
  /* background: #2b3e3e; */
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 24px;
  margin-top: 2rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
}

.footer-section p {
  font-size: 14px;
  opacity: 0.8;
  line-height: 22px;
}

.footer-section h4 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #f7941d;
}

.footer-section .footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-section .footer-logo .logo-title {
  font-size: 22px;
  font-weight: 600;
  color: #f7941d;
}

.footer-section img {
  width: 70px;
}

.footer-desc {
  padding-right: 40px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
  font-size: 14px;
  opacity: 0.8;
}

.footer-links li a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  opacity: 0.8;
}

.footer-links li a:hover {
  transform: translateX(5px);
  text-decoration: underline;
}

/* .footer-links a:hover {
  color: var(--accent);
} */

.footer-bottom {
  text-align: center;
  margin-top: 24px;
  color: #bdc3c7;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

.copyright {
  color: #bdc3c7;
  font-size: 0.9rem;
}

@media only screen and (min-device-width: 501px) and (max-device-width: 992px) {
  /* For portrait layouts only */
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }

  .footer-container > div:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 500px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* @media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }

  .footer-container > div:first-child {
    grid-column: span 2;
  }
} */

/* ---- Footer end --- */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 80px;
}

.sidebar-widget {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
}

.widget-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  /* padding-bottom: 0.5rem; */
  border-bottom: 1px solid #dedede;
  padding-bottom: 10px;
  /* font-family: "Spectral", serif; */
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  margin-bottom: 11px;
  padding-bottom: 12px;
  border-bottom: 1px solid #dedede;
  font-size: 14px;
  color: #888;
}

.sidebar ul > li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.sidebar ol li a,
.sidebar ul li a {
  font-size: 14px;
  font-style: normal;
  line-height: 1.4;
  color: #222222;
  text-decoration: none;
}

.sidebar ul li a:hover {
  text-decoration: underline;
  /* color: #be9656; */
}

@media (max-width: 768px) {
  .sidebar {
    margin-top: 0;
  }
}

.line-clamp-4 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  /* Limit to 4 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-clamp: 4;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  /* Limit to 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-clamp: 3;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* Limit to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-clamp: 2;
}

#scrollToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  /* padding: 10px 15px; */
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f7941d;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none; /* Hidden by default */
  transition: opacity 0.3s ease-in-out;
}

/* loader */

/* From Uiverse.io by alexruix */
.loadingspinner {
  width: 48px;
  height: 48px;
  margin: auto;
  position: relative;
}

.loadingspinner:before {
  content: "";
  width: 48px;
  height: 5px;
  background: #f7941d50;
  position: absolute;
  top: 60px;
  left: 0;
  border-radius: 50%;
  animation: shadow324 0.5s linear infinite;
}

.loadingspinner:after {
  content: "";
  width: 100%;
  height: 100%;
  background: #f7941d;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 4px;
  animation: jump7456 0.5s linear infinite;
}

@keyframes jump7456 {
  15% {
    border-bottom-right-radius: 3px;
  }

  25% {
    transform: translateY(9px) rotate(22.5deg);
  }

  50% {
    transform: translateY(18px) scale(1, 0.9) rotate(45deg);
    border-bottom-right-radius: 40px;
  }

  75% {
    transform: translateY(9px) rotate(67.5deg);
  }

  100% {
    transform: translateY(0) rotate(90deg);
  }
}

@keyframes shadow324 {
  0%,
  100% {
    transform: scale(1, 1);
  }

  50% {
    transform: scale(1.2, 1);
  }
}

/*  */
.blog-hero {
  background: url("https://d1vmk59yruybuv.cloudfront.net/trailside-campers/images/blog-banner.png")
    center/cover no-repeat;
  color: white;
  text-align: center;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
}

.blog-hero-title {
  font-size: 34px;
}

.blog-breadcrumb {
  font-size: 13px;
}

.blog-breadcrumb a {
  color: white;
  text-decoration: none;
  cursor: pointer;
}

.blog-breadcrumb a:hover {
  color: #f7941d;
}

.pagination {
  flex-wrap: wrap;
}
