@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

body {
  font-family: "Poppins", sans-serif;
  background-color: #f5f5f5; /* Soft White */
  color: #000;
  line-height: 1.6;
  overflow-x: hidden;
  /* padding-top: 8px; keep hero clear of fixed navbar */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Featured Posts Section */
.featured-posts {
  padding: 40px 100px 50px 100px;
  background: whitesmoke;
  position: relative;
  overflow: hidden;
}

.featured-posts::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="featured-pattern" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="2" fill="%23667eea" opacity="0.08"/><circle cx="7" cy="7" r="1" fill="%23667eea" opacity="0.05"/><circle cx="23" cy="23" r="1" fill="%23667eea" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23featured-pattern)"/></svg>');
  animation: patternMove 25s linear infinite;
}

@keyframes patternMove {
  0% {
    transform: translateX(0) translateY(0);
  }
  100% {
    transform: translateX(-30px) translateY(-30px);
  }
}

/* Featured Posts Grid */
.featured-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 40px;
  margin-top: 60px;
  position: relative;
  z-index: 2;
}

/* .featured-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
    position: relative;
    z-index: 2;
} */

.featured-post {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.featured-post:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.featured-post::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1) 0%,
    rgba(118, 75, 162, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.featured-post:hover::before {
  opacity: 1;
}

/* Featured Badge */
.featured-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(45deg, #ff6f61, #ff8e53);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 5px 15px rgba(255, 111, 97, 0.3);
  z-index: 3;
  animation: pulse 2s infinite;
}

/* Post Image */
.featured-post .post-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.featured-post .post-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  height: 200px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 60%,
    rgba(0, 0, 0, 0.7) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.featured-post:hover .post-image::before {
  opacity: 1;
}

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

.featured-post:hover .post-image img {
  transform: scale(1.1);
}

/* Post Content */
.featured-post .post-content {
  padding: 30px;
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.featured-post .post-content h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: black;
  margin-bottom: 15px;
  line-height: 1.3;
  transition: color 0.3s ease;
}
/* 
.featured-post:hover .post-content h3 {
    color: var(--primary);
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
} */

/* .featured-post .post-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1.05rem;
    flex: 1;
} */

/* Read More Button */
.featured-post .btn-text {
  display: inline-flex;
  align-items: center;
  width: 40%;

  color: black;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  font-size: 1.05rem;
}

.featured-post .btn-text::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(45deg, gray);
  transition: width 0.3s ease;
}

.featured-post .btn-text:hover {
  color: #d4af37;
}

.featured-post .btn-text:hover::after {
  width: 100%;
}

.featured-post .btn-text i {
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.featured-post .btn-text:hover i {
  transform: translateX(8px);
}

/* Post Meta (Optional) */
.featured-post .post-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.featured-post .post-date,
.featured-post .post-category {
  display: flex;
  align-items: center;
  gap: 6px;
}

.featured-post .post-date i,
.featured-post .post-category i {
  color: var(--accent);
  font-size: 1rem;
}

/* Hover effect for the entire card */
.featured-post::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.05) 0%,
    rgba(118, 75, 162, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.featured-post:hover::after {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .featured-posts-grid {
    grid-template-rows: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
  }

  .featured-post .post-image {
    height: 550px;
  }
}

@media (max-width: 992px) {
  .featured-posts {
    padding: 80px 0;
  }

  .featured-posts-grid {
    grid-template-rows: 2fr;
    max-width: 500px;
    margin: 50px auto 0;
  }

  .featured-post {
    flex-direction: column;
    height: auto;
  }

  .featured-post .post-image {
    flex: 1;
    height: auto;
    min-height: 250px;
  }

  .featured-post .post-content {
    flex: 1;
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .featured-posts {
    padding: 60px 0;
  }

  .featured-post {
    flex-direction: column;
  }

  .featured-post .post-image {
    height: 220px;
  }

  .featured-post .post-content h3 {
    font-size: 1.4rem;
  }

  .featured-post .post-content p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .featured-posts-grid {
    gap: 25px;
  }

  .featured-post .post-image {
    height: 200px;
  }

  .featured-post .post-content {
    padding: 20px;
  }

  .featured-post .post-content h3 {
    font-size: 1.3rem;
  }

  .featured-badge {
    top: 15px;
    right: 15px;
    font-size: 0.7rem;
    padding: 6px 12px;
  }
}

@media (max-width: 487px) {
  /* Put your mobile-specific styles here */

  .featured-posts-grid {
    grid-template-columns: 1fr; /* 1 column on very small mobile */
    gap: 20px;
  }

  .featured-post .post-image {
    height: 200px;
  }

  .featured-post .post-content {
    padding: 20px;
  }

  .featured-post .post-content h3 {
    font-size: 1.2rem;
  }

  .featured-post .btn-text {
    font-size: 0.9rem;
    width: 60%;
  }

  .featured-badge {
    top: 10px;
    right: 10px;
    font-size: 0.7rem;
    padding: 4px 10px;
  }
}



/* @media (max-width: 478px) {
  .featured-posts {
    padding: 35px 15px;
  }

  .featured-posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .featured-post .post-image {
    height: 160px;
  }

  .featured-post .post-content {
    padding: 15px;
  }

  .featured-post .post-content h3 {
    font-size: 1.1rem;
  }

  .featured-post .btn-text {
    font-size: 0.85rem;
    width: 80%;
  }

  .featured-badge {
    top: 8px;
    right: 8px;
    font-size: 0.6rem;
    padding: 3px 8px;
  }
}

 */



/* Animation for featured posts */
@keyframes fadeInUpFeatured {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.featured-post {
  animation: fadeInUpFeatured 0.8s ease forwards;
  opacity: 0;
}

.featured-post:nth-child(1) {
  animation-delay: 0.2s;
}
.featured-post:nth-child(2) {
  animation-delay: 0.4s;
}

/* Special hover effect for featured posts */
.featured-post:hover {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(102, 126, 234, 0.1);
}

/* Gradient border effect on hover */
.featured-post::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
  border-radius: 22px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.featured-post:hover::after {
  opacity: 0.3;
}
/* Recent Posts Section */
.recent-posts,
#recent-posts {
  padding: 0 100px 10px 100px;
  background: whitesmoke;
  position: relative;
  overflow: hidden;
}

.recent-posts::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="recent-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23667eea" opacity="0.1"/><circle cx="5" cy="5" r="0.5" fill="%23667eea" opacity="0.05"/><circle cx="15" cy="15" r="0.5" fill="%23667eea" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23recent-pattern)"/></svg>');
  animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
  0% {
    transform: translateX(0) translateY(0);
  }
  100% {
    transform: translateX(-20px) translateY(-20px);
  }
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  color: black;
  margin-bottom: 1rem;
  /* background: linear-gradient(45deg, var(--secondary), var(--primary)); */
  -webkit-background-clip: text;
  /* -webkit-text-fill-color: transparent; */
  background-clip: text;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: #d4af37;
  margin: 1rem auto;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  gap: 1rem;
}

.decoration-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.decoration-dot {
  width: 8px;
  height: 8px;
  background: #d4af37;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 3rem;
  position: relative;
  z-index: 2;
}

.blog-post {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  position: relative;
}

.blog-post:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.blog-post::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1) 0%,
    rgba(118, 75, 162, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.blog-post:hover::before {
  opacity: 1;
}

.post-image {
  position: relative;
  height: 230px;
  overflow: hidden;
}

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

.blog-post:hover .post-image img {
  transform: scale(1.1);
}

.post-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-post:hover .post-image::after {
  opacity: 1;
}

.post-content {
  padding: 25px;
  position: relative;
  z-index: 2;
}

.post-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: black;
  margin-bottom: 15px;
  line-height: 1.4;
  transition: color 0.3s ease;
}

/* .blog-post:hover .post-content h3 {
    color: var(--primary);
} */

.post-content p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 1rem;
}

.btn-text {
  display: inline-flex;
  align-items: center;
  color: #d4af37;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.btn-text::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.btn-text:hover {
  color: black;
}

.btn-text:hover::after {
  width: 100%;
}

.btn-text i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.btn-text:hover i {
  transform: translateX(5px);
}

/* Post Meta (Optional - if you want to add date/category) */
.post-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.post-date,
.post-category {
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-date i,
.post-category i {
  color: var(--accent);
  font-size: 0.9rem;
}

/* Subscribe Section */
.subscribe-section,
#subscribe {
  padding: 10px 100px;
  margin-top: 0;
  background: whitesmoke;
  color: #f5f5f5;
  position: relative;
  overflow: hidden;
}

.subscribe-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="subscribe-pattern" width="25" height="25" patternUnits="userSpaceOnUse"><circle cx="12.5" cy="12.5" r="1" fill="white" opacity="0.1"/><circle cx="6" cy="6" r="0.5" fill="white" opacity="0.05"/><circle cx="19" cy="19" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23subscribe-pattern)"/></svg>');
  animation: patternMove 25s linear infinite;
}

.subscribe-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.subscribe-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: black;
}

.subscribe-content p {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  line-height: 1.6;
  color: black;
}

.subscribe-form {
  display: flex;
  gap: 15px;
  max-width: 700px;
  margin: 0 auto;
}

.subscribe-form input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  border: 0.2rem solid #d4af37;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.subscribe-form input:focus {
  outline: none;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.subscribe-form input::placeholder {
  color: var(--text-light);
}

.subscribe-form .btn {
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.subscribe-form .btn-accent {
  background: linear-gradient(45deg, #d4af37);
  color: var(--white);
}

.subscribe-form .btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 111, 97, 0.4);
}

/* Responsive Design */
@media (max-width: 992px) {
  .section-title {
    font-size: 2.5rem;
  }

  .posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
  }

  .subscribe-content h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .recent-posts {
    padding: 80px 0;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .section-subtitle {
    font-size: 1.1rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .post-image {
    height: 200px;
  }

  .subscribe-section {
    padding: 60px 0;
  }

  .subscribe-content h2 {
    font-size: 2rem;
  }

  .subscribe-form {
    flex-direction: column;
  }

  .subscribe-form input,
  .subscribe-form .btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .recent-posts {
    padding: 60px 0;
    margin-bottom: 1.5ewm;
  }

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

  .section-subtitle {
    font-size: 1rem;
  }

  .post-content {
    padding: 20px;
  }

  .post-content h3 {
    font-size: 1.2rem;
  }

  .subscribe-content h2 {
    font-size: 1.8rem;
  }

  .subscribe-content p {
    font-size: 1rem;
  }
}

/* Animation for section elements */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply animations to blog posts for staggered effect */
.blog-post {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.blog-post:nth-child(1) {
  animation-delay: 0.1s;
}
.blog-post:nth-child(2) {
  animation-delay: 0.2s;
}
.blog-post:nth-child(3) {
  animation-delay: 0.3s;
}
.blog-post:nth-child(4) {
  animation-delay: 0.4s;
}
.blog-post:nth-child(5) {
  animation-delay: 0.5s;
}
.blog-post:nth-child(6) {
  animation-delay: 0.6s;
}

/* Hover effect for blog posts */
.blog-post:hover {
  transform: translateY(-10px) scale(1.02);
}

/* .title-line {
  font-size: 3.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-family: "Poppins";
}
 */

