/* Extracted from blog.html */
:root {
  --Saniklear-yellow: #fee023;
  --Saniklear-green: #4CAF50;
  --Saniklear-blue: #01244a;
  --Saniklear-white: #ffffff;
  --Saniklear-blue-deep: #00142e;
}

/* ========================
       Featured Post Preview Section
    ========================== */
.featured-post-preview {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  background: linear-gradient(135deg,
      rgba(1, 36, 74, 0.98) 0%,
      rgba(6, 42, 89, 0.95) 50%,
      rgba(0, 20, 46, 0.98) 100%);
  padding-top: 60px;
  padding-bottom: 60px;
  padding-left: 40px;
  padding-right: 40px;
  margin-top: 70px;
  margin-bottom: 70px;
  margin-left: 40px;
  margin-right: 40px;
  border-radius: 28px;
  max-width: calc(100% - 80px);
}

.featured-post-preview::before,
.featured-post-preview::after {
  content: "";
  position: absolute;
  border-radius: 28px;
  pointer-events: none;
  z-index: 0;
}

.featured-post-preview::before {
  top: -1px;
  left: -1px;
  width: 150px;
  height: 150px;
  border-top: 3px solid rgba(254, 224, 35, 0.95);
  border-left: 3px solid rgba(76, 175, 80, 0.9);
  border-radius: 28px 0 0 0;
}

.featured-post-preview::after {
  bottom: -1px;
  right: -1px;
  width: 150px;
  height: 150px;
  border-bottom: 3px solid rgba(254, 224, 35, 0.95);
  border-right: 3px solid rgba(76, 175, 80, 0.9);
  border-radius: 0 0 28px 0;
}

.featured-post-wrapper {
  position: relative;
  z-index: 1;
}

.featured-post-container {
  position: relative;
  background: linear-gradient(145deg,
      rgba(1, 36, 74, 0.92),
      rgba(0, 31, 72, 0.94));
  border: 1px solid rgba(254, 224, 35, 0.15);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(254, 224, 35, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: slideInFeatured 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transform-origin: center;
}

@keyframes slideInFeatured {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.featured-post-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #ffffff;
  color: var(--Saniklear-blue-deep);
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 10;
  box-shadow: 0 8px 25px rgba(254, 224, 35, 0.3);
}

.featured-post-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
  padding: 40px;
}

.featured-post-image {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  height: 100%;
  min-height: 350px;
}

.featured-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.featured-post-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.featured-post-container:hover .featured-post-image img {
  transform: scale(1.08);
}

.featured-post-container:hover .featured-post-overlay {
  opacity: 1;
}

.featured-post-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px;
}

.featured-post-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.featured-post-categories {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.category-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border: 0;
  outline: none;
  border-radius: 6px;
  background: #2983fd;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(41, 131, 253, 0.3);
  transition: box-shadow 0.3s ease, transform 0.12s ease;
  z-index: 1;
  overflow: hidden;
}

.category-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: #01244a;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.24s cubic-bezier(0.37, 0.31, 0.31, 0.9);
}

.category-tag:hover::before {
  transform: scaleX(1);
  transform-origin: left center;
}

.category-tag:hover {
  box-shadow: 0 6px 18px rgba(1, 36, 74, 0.4);
  transform: translateY(-2px);
}

.featured-post-date {
  position: absolute;
  right: 40px;
  bottom: 40px;
  z-index: 12;
  padding: 8px 16px;
  background: #2983fd;
  color: var(--Saniklear-white);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(1, 36, 74, 0.35);
}

.featured-post-title {
  font-size: 1.75rem;
  line-height: 1.4;
  margin-bottom: 16px;
  color: var(--Saniklear-white);
  font-weight: 700;
  transition: all 0.4s ease;
}

.featured-post-title a {
  color: inherit;
  text-decoration: none;
  background: linear-gradient(135deg, var(--Saniklear-white), var(--Saniklear-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.4s ease;
}

.featured-post-container:hover .featured-post-title a {
  -webkit-text-fill-color: unset;
  color: var(--Saniklear-yellow);
}

.featured-post-author {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 18px;
  transition: color 0.3s ease;
}

.featured-post-author a {
  color: rgba(254, 224, 35, 0.95);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
}

.featured-post-author a:hover {
  color: var(--Saniklear-green);
}

.featured-post-excerpt {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 28px;
  transition: color 0.3s ease;
}

.featured-post-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  background: var(--Saniklear-blue);
  color: var(--Saniklear-white);
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(1, 36, 74, 0.3);
  width: fit-content;
  z-index: 1;
}

.featured-post-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #2983fd;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 0.9;
  z-index: 0;
  pointer-events: none;
}

.featured-post-btn:hover::before {
  transform: scaleX(1);
}

.featured-post-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(1, 36, 74, 0.4);
}

.featured-post-btn i {
  font-size: 1rem;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 1;
}

.featured-post-btn span {
  position: relative;
  z-index: 1;
}

.featured-post-btn:hover i {
  transform: translateX(6px);
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .featured-post-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px;
  }

  .featured-post-image {
    min-height: 300px;
  }

  .featured-post-title {
    font-size: 1.5rem;
  }

  .featured-post-preview::before {
    width: 120px;
    height: 120px;
    border-width: 2px;
  }

  .featured-post-preview::after {
    width: 120px;
    height: 120px;
    border-width: 2px;
  }

  .featured-post-date {
    position: static;
    margin-top: 10px;
    align-self: flex-start;
  }
}

@media (max-width: 575.98px) {
  .featured-post-preview {
    padding-top: 40px;
    padding-bottom: 40px;
    margin-bottom: 30px;
  }

  .featured-post-content {
    gap: 20px;
    padding: 20px;
  }

  .featured-post-image {
    min-height: 250px;
  }

  .featured-post-title {
    font-size: 1.2rem;
  }

  .featured-post-excerpt {
    font-size: 0.95rem;
  }

  .featured-post-badge {
    padding: 6px 14px;
    font-size: 0.7rem;
  }

  .featured-post-preview::before,
  .featured-post-preview::after {
    width: 80px;
    height: 80px;
    border-width: 2px;
  }
}

/* === Section background: deep, clean, slightly futuristic === */
.blog-grid {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  background: radial-gradient(circle at top,
      #06427d 0%,
      var(--Saniklear-blue) 45%,
      var(--Saniklear-blue-deep) 100%);
  padding-top: 70px;
  padding-bottom: 70px;
  padding-left: 40px;
  padding-right: 40px;
  /* rounded corners on all edges */
  border-radius: 32px;
  margin-top: 70px;
  margin-bottom: 70px;
  margin-left: 40px;
  margin-right: 40px;
  max-width: calc(100% - 80px);
}

.blog-grid::before,
.blog-grid::after {
  content: "";
  position: absolute;
  border-radius: 32px;
  pointer-events: none;
  z-index: 0;
}

.blog-grid::before {
  top: 0;
  left: 0;
  width: 120px;
  height: 120px;
  border-top: 2px solid rgba(254, 224, 35, 0.9);
  border-left: 2px solid rgba(76, 175, 80, 0.8);
}

.blog-grid::after {
  right: 0;
  bottom: 0;
  width: 120px;
  height: 120px;
  border-bottom: 2px solid rgba(254, 224, 35, 0.9);
  border-right: 2px solid rgba(76, 175, 80, 0.8);
}

.blog-grid .container,
.blog-grid .heading,
.blog-grid .row {
  position: relative;
  z-index: 1;
}

/* === Heading styling inside blog-grid only === */
.blog-grid .heading__subtitle {
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.blog-grid .heading__title {
  color: var(--Saniklear-white);
  font-size: 2rem;
  font-weight: 700;
}

.blog-grid .heading::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--Saniklear-yellow), var(--Saniklear-green));
  opacity: 0.9;
}

/* === Core blog cards === */
.blog-grid .post-item {
  background: linear-gradient(145deg,
      rgba(1, 36, 74, 0.96),
      rgba(0, 20, 46, 0.98));
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  position: relative;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.blog-grid .post-item::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--Saniklear-yellow), var(--Saniklear-green));
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateY(6px);
}

.blog-grid .post-item:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(254, 224, 35, 0.35);
  border-color: rgba(254, 224, 35, 0.4);
  background: linear-gradient(145deg,
      rgba(1, 36, 74, 1),
      rgba(0, 31, 72, 1));
}

.blog-grid .post-item:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* === Image area === */
.blog-grid .post__img {
  position: relative;
  overflow: hidden;
}

.blog-grid .post__img img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.02);
  transition: transform 0.4s ease;
}

.blog-grid .post-item:hover .post__img img {
  transform: scale(1.07);
}

.blog-grid .post__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.25),
      transparent 40%);
  pointer-events: none;
}

/* === Card body === */
.blog-grid .post__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Meta row */
.blog-grid .post__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.blog-grid .post__meta-cat a {
  display: inline-block;
  padding: 4px 10px;
  margin-right: 4px;
  margin-bottom: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
  font-weight: 600;
}

.blog-grid .post__meta-cat.has-category-highlight a:first-child {
  background: rgba(254, 224, 35, 0.18);
  color: var(--Saniklear-yellow);
}

.blog-grid .post__meta-date {
  color: #062a59;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  background: #2983fd;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

/* Title + author */
.blog-grid .post__title {
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 6px;
  color: var(--Saniklear-white);
  font-weight: 600;
}

.blog-grid .post__title a {
  color: inherit;
  text-decoration: none;
}

.blog-grid .post__title a:hover {
  color: var(--Saniklear-yellow);
}

.blog-grid .post__meta-author {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
}

.blog-grid .post__meta-author a {
  color: rgba(254, 224, 35, 0.9);
}

.blog-grid .post__meta-author a:hover {
  color: var(--Saniklear-green);
}

/* Description text */
.blog-grid .post__desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 16px;
}

/* Keep Read More buttons aligned across cards */
.blog-grid .post__body .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* === "Read more" button – independent hover animation === */
.blog-grid .post__body .btn__link {
  margin-top: auto;
  padding-left: 0;
  padding-right: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
  border-radius: 999px;
}

.blog-grid .post__body .btn__link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--Saniklear-yellow), var(--Saniklear-green));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0;
}

.blog-grid .post__body .btn__link span,
.blog-grid .post__body .btn__link i {
  position: relative;
  z-index: 1;
}

.blog-grid .post__body .btn__link span {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.blog-grid .post__body .btn__link i {
  font-size: 0.9rem;
  color: var(--Saniklear-yellow);
  transition: transform 0.25s ease, color 0.25s ease;
}

.blog-grid .post__body .btn__link:hover::before {
  transform: scaleX(1);
  opacity: 1;
}

.blog-grid .post__body .btn__link:hover span {
  color: var(--Saniklear-blue);
}

.blog-grid .post__body .btn__link:hover i {
  transform: translateX(4px);
  color: var(--Saniklear-blue);
}

@media (max-width: 991.98px) {
  .blog-grid {
    padding-top: 55px;
    padding-bottom: 55px;
    margin-top: 50px;
    margin-bottom: 50px;
  }

  .blog-grid .post__body {
    padding: 16px 16px 18px;
  }
}

@media (max-width: 575.98px) {
  .blog-grid .heading__title {
    font-size: 1.6rem;
  }

  .blog-grid .post__title {
    font-size: 1rem;
  }
}

/* Blog pagination smooth transitions */
#blog-posts-row .col-sm-12 {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#blog-posts-row .col-sm-12.fade-out {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

#blog-posts-row .col-sm-12.fade-in {
  animation: slideInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* spacing between posts and pagination */
.blog-grid .pagination-area {
  margin-top: 36px;
}

@media (max-width: 575.98px) {
  .blog-grid .pagination-area {
    margin-top: 20px;
  }
}