/* General setup */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #333;
  background: linear-gradient(to bottom, #fff9f2, #fff4e9);
  line-height: 1.6;
}

/* Header Styling */
.header {
  position: relative;
  text-align: center;
  padding: 2rem 0;
  font-family: 'Playfair Display', serif;
}

.header h1 {
  font-size: 2rem;
  color: #222;
  margin: 0;
}

/* Search Button */
.search-btn {
  position: absolute;
  right: 10%;
  bottom: -10px;
  background-color: #fff8ef;  /* soft beige circle */
  border: 1px solid #d8d2c4;
  color: #333;
  font-size: 1.2rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  transition: all 0.25s ease;
}

.search-btn:hover {
  transform: translateY(-2px) scale(1.05);
  background-color: #f8ead8;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* HERO SECTION */
.hero {
  background: linear-gradient(to bottom, #fff8ef 0%, #fff4e8 100%);
  padding: 4rem 10%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* LEFT COLUMN - IMAGE */
.hero-image {
  display: flex;
  justify-content: center;
}

.image-circle {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 4px solid #f3e5d8;
  padding: 6px;
  background: #fffdf8;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-pic {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* RIGHT COLUMN - TEXT */
.hero-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #1f1f1f;
  margin-bottom: 1rem;
}

.hero-text p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* EMAIL FORM */
.email-form {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e9e1d7;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  max-width: 440px;
  height: 58px;
  padding: 2px;
}

.email-form input {
  flex: 1;
  padding: 0 1.4rem;
  border: none;
  outline: none;
  font-size: 1rem;
  border-radius: 50px;
  background: transparent;
  color: #333;
  height: 100%;
}

.email-form input::placeholder {
  color: #999;
}

.email-form button {
  background: linear-gradient(180deg, #f6c8d0 0%, #e3a4b1 100%);
  border: 1px solid #d993a0;
  color: #fff;
  border-radius: 50px;
  padding: 0 1.8rem;
  font-size: 0.95rem;
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  cursor: pointer;
  height: 48px;
  margin-right: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(230, 166, 181, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.email-form button:hover {
  background: linear-gradient(180deg, #eab9c2 0%, #d6929e 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(230, 166, 181, 0.5);
}

/* BLOG SECTION */
.blog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  padding: 5rem 10%;
  background: linear-gradient(to bottom, #fffaf3 0%, #fff5ea 100%);
}

/* Card */
.post {
  background: #fffaf4;
  padding: 1.8rem 1.6rem;
  border-radius: 16px;
  border: 1px solid #f0e6d9;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px; /* keeps all cards equal height */
}

.post:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

/* Title */
.post h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.12rem;
  color: #1c1c1c;
  margin-bottom: 0.6rem;
  line-height: 1.45;
}

/* Excerpt */
.post p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 1.6rem;
  flex-grow: 1;
}

/* Footer: Read More + Author inline */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

/* Read More button */
.btn {
  background: #f9cfd6;
  color: #000;
  font-weight: 500;
  text-decoration: none;
  border-radius: 50px;
  padding: 0.45rem 1.2rem;
  font-size: 0.9rem;
  font-family: 'Playfair Display', serif;
  border: 1px solid #e5a9b4;
  transition: all 0.25s ease;
}

.btn:hover {
  background: #f4bfc9;
  border-color: #d996a2;
}

/* Author name */
.author {
  color: #4a4a4a;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'Playfair Display', serif;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin: 3rem 0 4rem 0;
  font-size: 0.95rem;
}

.pagination span {
  color: #333;
}

.pagination button {
  background: #f8d48b;
  border: 1px solid #e9c26b;
  border-radius: 50px;
  padding: 0.45rem 1.3rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.25s ease;
}

.pagination button:hover {
  background: #f5c96d;
  transform: translateY(-2px);
}

/* FOOTER */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  background: linear-gradient(to bottom, #fff9f0 0%, #fff5e8 100%);
  padding: 4rem 10%;
  border-top: 1px solid #f0e6d9;
  flex-wrap: wrap;
}

.footer-left h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: #1c1c1c;
  margin-bottom: 0.6rem;
}

.footer-left p {
  color: #4a4a4a;
  font-size: 0.95rem;
}

.footer-center {
  flex: 1;
  text-align: left;
  margin-top: 1rem;
}

.footer-center a {
  display: inline-block;
  color: #000;
  text-decoration: none;
  font-size: 0.95rem;
  font-family: 'Playfair Display', serif;
  border-bottom: 1px solid #000;
  transition: color 0.25s ease;
}

.footer-center a:hover {
  color: #d77d8a;
}

.footer-right {
  flex: 1.4;
  display: flex;
  justify-content: flex-end;
}

/* Newsletter Box */
.newsletter-box {
  position: relative;
  background: #f9edce;
  border-radius: 18px;
  padding: 3rem 2.5rem 2.5rem;
  box-shadow: 4px 4px 0 #efe1bb;
  border: 1px solid #f3e3be;
  max-width: 320px;
  font-family: 'Inter', sans-serif;
  margin: 2rem 0;
}

.newsletter-box::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

.paper-plane {
  position: absolute;
  top: -45px;
  left: -35px;
  transform: rotate(-12deg);
  z-index: 2;
  animation: float 4s ease-in-out infinite;
}

.paper-plane svg {
  width: 90px;
  height: 90px;
  filter: drop-shadow(2px 3px 2px rgba(0, 0, 0, 0.1));
}

.newsletter-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  color: #1c1c1c;
  text-align: center;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.newsletter-box p {
  font-size: 1rem;
  color: #444;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 1.8rem;
}

.newsletter-form {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50px;
  border: 1px solid #f0e0d7;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
  max-width: 350px;
  margin: 0 auto;
  overflow: hidden;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem 1.4rem;
  border: none;
  outline: none;
  font-size: 1rem;
  color: #444;
  border-radius: 50px 0 0 50px;
}

.newsletter-form input::placeholder {
  color: #999;
}

.newsletter-form button {
  background: linear-gradient(180deg, #f6c8d0 0%, #e3a4b1 100%);
  border: 1px solid #d993a0;
  border-radius: 50px;
  padding: 1rem 1.6rem;
  font-size: 1rem;
  color: #4a4a4a;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 2px 4px 10px rgba(230, 166, 181, 0.3);
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background: linear-gradient(180deg, #eab9c2 0%, #d6929e 100%);
  transform: translateY(-2px);
}

/* -------------------------------------- */
/* RESPONSIVE SECTIONS */
/* -------------------------------------- */

/* Tablet adjustments (≤1024px) */
@media (max-width: 1024px) {
  .hero { padding: 3rem 6%; }
  .hero-content { gap: 3rem; }
  .image-circle { width: 260px; height: 260px; }
  .footer { padding: 3rem 6%; }
}

/* Mobile adjustments (≤768px) */
@media (max-width: 768px) {
  .header {
    text-align: center;
    padding-top: 1.5rem;
    padding-right: 0px;
    padding-bottom: 1rem;
    padding-left: 0px;
  }

  .header h1 { font-size: 1.7rem; }

  .search-btn {
    position: relative;
    display: block;
    margin: 1rem auto 0;
    right: auto;
    bottom: auto;
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  .hero {
    padding: 3rem 6%;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-text h2 { font-size: 1.6rem; }
  .hero-text p { font-size: 0.95rem; line-height: 1.6; }

  .email-form {
    flex-direction: column;
    height: auto;
    padding: 14px;
    max-width: 380px;
    margin: 0 auto;
    border-radius: 30px;
    margin-top: 36px;
  }

  .email-form input {
    width: 88%;
    margin-bottom: 10px;
    border-radius: 40px;
    border: 1px solid #eee;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
  }

  .email-form button {
    width: 100%;
    height: 48px;
    border-radius: 40px;
    font-size: 1rem;
    font-family: 'Playfair Display', serif;
    margin: 0;
  }

  .blog {
    padding: 3rem 6%;
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .pagination {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
  }

  .pagination button {
    padding: 0.5rem 1.3rem;
    border-radius: 40px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 3rem 6%;
    gap: 2rem;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    width: 100%;
    text-align: left;
    font-family: 'Playfair Display', serif;
  }

  .newsletter-box {
    max-width: 88%;
    width: auto;
    margin-top: 2rem;
    /* padding: 2rem 1.5rem 2.5rem; */
    padding-top: 1.8rem;
    padding-right: 1.2rem;
    padding-bottom: 2.2rem;
    padding-left: 1.2rem;
    box-shadow: 3px 3px 0 #efe1bb;
  }

  .newsletter-form {
    flex-direction: row;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }

  .paper-plane {
    top: -30px;
    left: -20px;
  }

  .paper-plane svg {
    width: 70px;
    height: 70px;
  }

  .newsletter-form input {
    padding-right: 0px;
  }

  .newsletter-form button {
  padding: 0.7rem 1.5rem;
  margin-right: 3px;
}
}

/* For smaller phones (≤480px) */
@media (max-width: 480px) {
  .header h1 { font-size: 1.5rem; }
  .search-btn { width: 40px; height: 40px; }
  .email-form { max-width: 90%; }
  .newsletter-box { padding: 1.8rem 1.2rem 2.2rem; }
  .newsletter-box h3 { font-size: 1.3rem; }
  .newsletter-form { max-width: 100%; }
  .newsletter-form input { font-size: 0.95rem; }
  .newsletter-form button { font-size: 0.95rem; }
  .pagination { gap: 0.6rem; }
}

/* Float Animation */
@keyframes float {
  0%, 100% { transform: rotate(-12deg) translateY(0); }
  50% { transform: rotate(-12deg) translateY(-6px); }
}


/* BLOG PAGE LAYOUT */
.blog-layout {
  display: grid;
  grid-template-columns: 70% 30%;
  gap: 3rem;
  padding: 4rem 10%;
  background: linear-gradient(to bottom, #fffaf3, #fff5ea);
}

/* ARTICLE STYLING */
.article-container {
  background: #fffdf8;
  border: 1px solid #f0e6d9;
  border-radius: 14px;
  padding: 3rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
  font-family: 'Inter', sans-serif;
}

.article-container h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  color: #1c1c1c;
  margin-bottom: 1rem;
}

.article-container p {
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 1.4rem;
}

.article-container .meta {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* NEXT READS */
.next-reads {
  position: relative;
}

.next-reads h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  color: #1c1c1c;
}

.next-reads-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.next-card {
  background: #fff;
  border: 1px solid #f0e6d9;
  border-radius: 12px;
  padding: 1.2rem 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
  transition: all 0.25s ease;
}

.next-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.next-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: #1c1c1c;
  margin-bottom: 0.5rem;
}

.next-card p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.next-card a {
  font-size: 0.9rem;
  color: #d77d8a;
  text-decoration: none;
  font-weight: 500;
  font-family: 'Playfair Display', serif;
}

/* MOBILE */
@media (max-width: 768px) {
  .blog-layout {
    display: flex;
    flex-direction: column;
    align-items: center; /* centers the content horizontally */
    padding: 1rem 6%;
    gap: .1rem;
  }

  .article-container {
    width: 100%;
    max-width: 700px;
    padding-top: 0.5rem;
    padding-right: 1rem;
    padding-bottom: 2rem;
    padding-left: 1rem;
    margin: 0 auto;
    box-sizing: border-box; /* ensures padding doesn't overflow */
  }

  .article-container h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: #1c1c1c;
  margin-bottom: 1rem;
}

  /* Next Reads Section */
  .next-reads {
    width: 100%;
  }

  .next-reads h3 {
    text-align: center;
    margin-bottom: 1.4rem;
    font-size: 1.3rem;
  }

  .next-reads-list {
    display: flex;
    flex-direction: row;
    gap: 1.2rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 1rem 1.2rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* hide scrollbar */
  }

  .next-reads-list::-webkit-scrollbar {
    display: none;
  }

  .next-card {
    flex: 0 0 82%;
    min-width: 270px;
    background: #fffdf8;
    border-radius: 14px;
    border: 1px solid #f0e6d9;
    padding: 1.2rem 1.1rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    scroll-snap-align: start;
    transition: all 0.25s ease;
  }

  .next-card:hover {
    transform: translateY(-3px);
  }

  .next-card h4 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
    color: #1c1c1c;
  }

  .next-card p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.55;
    margin-bottom: 1rem;
  }

  .next-card a {
    font-size: 0.9rem;
    color: #d77d8a;
    font-weight: 500;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
  }

  /* Gradient fade on edges */
  .next-reads-list::before,
  .next-reads-list::after {
    content: "";
    position: sticky;
    top: 0;
    width: 24px;
    height: 100%;
    pointer-events: none;
    z-index: 3;
  }

  .next-reads-list::before {
    left: 0;
    background: linear-gradient(to right, #fffaf3 60%, transparent);
  }

  .next-reads-list::after {
    right: 0;
    background: linear-gradient(to left, #fffaf3 60%, transparent);
  }
}

/* -------------------------------------- */
/* 📱 EXTRA SMALL (≤480px) */
/* -------------------------------------- */
@media (max-width: 480px) {
  .next-card {
    flex: 0 0 85%;
    min-width: 240px;
  }
}