:root {
  --primary: #2e5470;
  --secondary: #035bcd;
  --text: #333333;
  --light-text: #666666;
  --border: hsl(0, 0%, 88%);
  --bg: #fff;
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  --card-shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
}

.main-container {
  position: relative;
  margin: 15vh auto 0;
  padding: 0 20px;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 40px;
  /* width: 90%; */
  margin: 0 auto;
}

.main-content {
  position: relative;
  width: 85%;
  margin: 0 auto;
}

.line-behind-container {
  position: relative;
}

.full-width-line {
  position: absolute;
  top: 17%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--border);
  transform: translateX(-50%);
  left: 50%;
  z-index: -1;
}

.blog-header {
  margin-bottom: 2rem;
  position: relative;
  background: var(--bg);
}

.date {
  color: var(--light-text);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.blog-title {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.blog-image {
  margin: 2rem 0;
  position: relative;
}

.blog-image img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  background: var(--bg);
  display: block;
}

.blog-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.line {
  width: 90%;
  height: 1px;
  background-color: var(--border);
  margin: 2rem auto;
}

.blog-author {
  font-style: italic;
  color: var(--light-text);
  text-align: left;
  padding: 1rem 0;
  width: 88%;
  margin: 0 auto;
}

.recent-blog {
  position: absolute;
  top: 17%;
  right: 15px;
  width: 290px;
  align-self: start;
  padding: 2rem 0;
}

.recent-blog h2 {
  margin-bottom: 0.1rem;
  color: var(--primary);
  font-size: 1.5rem;
}

.post {
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.post-link {
  text-decoration: none;
}

.post:hover {
  transform: translateY(-0.5rem);
  box-shadow: var(--card-shadow-hover);
}

.post-image-container {
  overflow: hidden;
  aspect-ratio: 16/9;
}

.post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post:hover .post-image {
  transform: scale(1.05);
}

.post-content {
  padding: 1.5rem;
}

.post-date {
  font-size: 0.8rem;
  color: var(--light-text);
  display: block;
  margin-bottom: 0.75rem;
}

.post-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--primary);
  line-height: 1.3;
}

.post-excerpt {
  font-size: 0.95rem;
  color: var(--light-text);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.read-more {
  color: var(--secondary);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: var(--primary);
  text-decoration: underline;
}

.read-more span {
  transition: transform 0.3s ease;
}

.read-more:hover span {
  transform: translateX(0.25rem);
}

@media (max-width: 768px) {
  .tips-details-container.banner-active {
    padding-top: 100px;
  }

  .content-wrapper {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 0;
  }

  .blog-title {
    font-size: 1.8rem;
  }

  .recent-blog {
    position: static;
    /* order: 2; */
    margin-bottom: 2rem;
    padding: 1rem;
  }

  .full-width-line {
    display: none;
  }

  .blog-image img {
    max-height: 300px;
  }

  .line,
  .blog-author {
    width: 100%;
  }
}
