/* ── FILTER TABS ── */
.pf-section {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 80px 20px;
}
.blog-main-title {
  font-size: clamp(24px, 5vw, 56px);
  font-weight: 800;
  color: #0a1f44;
  margin-bottom: 25px;
}

.pf-filters {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.pf-filter-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1.5px solid #ddd;
  background: transparent;
  color: #555;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
}

.pf-filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.pf-filter-btn.active {
  background: #0d1a00;
  border-color: #0d1a00;
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(128, 255, 1, 0.3);
}

/* ── GRID ── */
.pf-grid {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* ── FEATURED BLOG ── */
.pf-featured-blog {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
}

.pf-featured-img {
  width: 100%;
}

.pf-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pf-featured-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-right: 20px;
}

.pf-featured-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.pf-tag.featured {
  background: #e6fee6;
  color: #2e662e;
  border-radius: 99px;
  padding: 6px 14px;
}

.pf-tag.webdev {
  background: #dbebff;
  color: #2151a1;
  border-radius: 99px;
  padding: 6px 14px;
}

.pf-featured-title {
  font-size: clamp(24px, 3.5vw, 48px);
  font-weight: 800;
  color: #0a1f44;
  line-height: 1.2;
  margin-bottom: 20px;
}

.pf-featured-excerpt {
  font-size: 16px;
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 25px;
}

.pf-featured-meta {
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: #718096;
  margin-bottom: 30px;
}

.pf-featured-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pf-featured-btn {
  background: #0a1f44;
  color: #88adee;
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}

.pf-featured-btn:hover {
  background: #1a365d;
}

.section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: #0a1f44;
  margin: 0;
}

/* Row 2: three equal cards */
.pf-row2 {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* ── CARD BASE ── */
.pf-card {
  position: relative;
  border-radius: 0px; /* Subtle rounding as per expected image */
  overflow: hidden;
  cursor: pointer;
  display: block;
  background: var(--bg2);
  transition:
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.4s ease;
}

.pf-card:hover {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* (Removed .pf-card-wide relative styling) */

/* Tall cards (row 2) */
.pf-row2 .pf-card {
  /* aspect-ratio: 1 / 1.25; */
  max-height: 450px;
}

/* ── IMAGE ── */
.pf-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.2, 1, 0.2, 1);
}

.pf-card:hover img {
  transform: scale(1.1);
}

.pf-card {
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.pf-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ── OVERLAY ── */
.pf-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6, 19, 41, 0.95) 0%,
    rgba(6, 19, 41, 0.4) 40%,
    rgba(6, 19, 41, 0.1) 70%,
    transparent 100%
  );
  transition: all 0.4s ease;
}

.pf-card:hover .pf-card-overlay {
  background: linear-gradient(
    to top,
    rgba(6, 19, 41, 1) 0%,
    rgba(6, 19, 41, 0.5) 50%,
    rgba(6, 19, 41, 0.2) 80%,
    transparent 100%
  );
}

/* ── CARD INFO ── */
.pf-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 20px; /* Increased breathing room */
  z-index: 5;
}

/* Tag pill */
.pf-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 8px;
  border-radius: 44px;
  background: rgba(100, 147, 232, 0.2);
  color: #fff;
  border: none;
  margin-bottom: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Blue tags for Row 1 */
.pf-card-wide .pf-tag {
  background: #88adee;
}

/* Green tags for Row 2 */
.pf-row2 .pf-tag {
  background: transparent;
  padding: 0;
  margin-bottom: 8px;
  color: var(--nav-btn);
}

/* Title */
.pf-title {
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0;
}

/* ── THE LINE (hover grow) ── */
.pf-line {
  display: block;
  height: 3px;
  width: 50px;
  background: var(--primary);
  border-radius: 2px;
  margin-top: 10px;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.pf-card:hover .pf-line {
  width: 90px;
}

/* Ensure line appears on all cards */
.pf-card .pf-line {
  display: block;
  width: 40px;
  height: 3.5px;
  background: var(--primary);
  margin-top: 15px;
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pf-card:hover .pf-line {
  width: 120px;
}

/* ── ARROW ICON (appears on hover) ── */
.pf-arrow {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.7) rotate(-45deg);
  transition:
    opacity 0.3s ease,
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pf-arrow svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pf-card:hover .pf-arrow {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .pf-row2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .pf-grid {
    gap: 30px;
  }
  .pf-featured-blog {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .pf-featured-content {
    padding-right: 0;
  }
  .pf-row2 {
    display: flex;
    flex-direction: column;
    gap: 25px;
  }

  .pf-row2 .pf-card {
    aspect-ratio: 1 / 1; /* Square cards on mobile for uniform height */
    width: 100%;
  }
}

@media (max-width: 480px) {
  .pf-row2 .pf-tag {
    background: #88adee;
    padding: 6px;
    color: var(--text);
  }
  .pf-card-info {
    padding: 30px 15px;
  }
  .pf-tag {
    font-size: 8px;
    padding: 6px;
    margin-bottom: 8px;
  }
  .pf-filters {
    gap: 6px;
    margin-bottom: 30px;
  }
  .pf-title {
    font-size: 24px;
  }
  .pf-filter-btn {
    font-size: 8px;
    padding: 4px 8px;
  }
  .pf-row2 .pf-card {
    aspect-ratio: 1 / 1; /* Square cards on mobile for uniform height */
    width: 100%;
    max-height: 300px;
  }
  .pf-section {
    padding: 40px 15px;
  }
  .pf-featured-btn {
    padding: 10px 18px;
    font-size: 12px;
  }
  .pf-featured-excerpt {
    font-size: 14px;
    margin-bottom: 20px;
  }
  .pf-featured-tags {
    margin-bottom: 10px;
  }
}

/* ── SECTION ── */
.testimonial2-section {
  padding: 80px 20px;
  background: #fff;
  max-width: var(--container-max);
  margin: 0 auto;
}

.testimonial2-header {
  text-align: center;
  margin-bottom: 52px;
}

.testimonial2-header h2 {
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 800;
  color: #0a1f44;
  line-height: 1.15;
  margin-bottom: 14px;
}

.testimonial2-header h2 span {
  color: var(--primary);
}

.testimonial2-header p {
  font-size: 16px;
  color: #0a1f44;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── SLIDER WRAPPER ── */
.testimonial2-slider-wrap {
  position: relative;
  /* padding: 0 16px; */
}

/* ── CARD ── */
.testimonial2-card {
  background: #f2ffe6;
  border: 1px solid var(--primary);
  border-radius: 18px;
  padding: 20px;
  margin: 12px 10px 18px;
  display: flex !important;
  flex-direction: column;
  gap: 16px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  min-height: 300px;
}

.testimonial2-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(102, 204, 1, 0.18);
}

/* Stars + Quote Icon Row */
.testimonial2-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.testimonial2-stars {
  display: flex;
  gap: 3px;
}

.testimonial2-stars svg {
  width: 18px;
  height: 18px;
  fill: var(--nav-btn);
}

.testimonial2-quote-icon {
  /* font-size: 42px; */
  line-height: 1;
  color: var(--nav-btn);
  font-family: Georgia, serif;
  font-weight: 700;
  /* opacity: 0.8; */
}

/* Review text */
.testimonial2-text {
  font-size: 14px;
  color: #374151;
  line-height: 1.4;
  flex: 1;
}

/* Tag */
.testimonial2-tag {
  display: inline-block;
  background: transparent;
  border: 1.5px solid var(--primary);
  color: #4d9901;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 30px;
  width: fit-content;
}

/* Author */
.testimonial2-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  border-top: 0.8px solid #88adee;
}

.testimonial2-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  background: #d4edac;
  flex-shrink: 0;
}

.testimonial2-author-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: #0a1f44;
}

.testimonial2-author-info span {
  font-size: 12px;
  color: #88adee;
  font-weight: 400;
}

/* ── SLICK ARROWS ── */
.testimonial2-prev,
.testimonial2-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #66cc01;
  background: #fff;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition:
    background 0.25s,
    color 0.25s;
  box-shadow: 0 4px 14px rgba(102, 204, 1, 0.18);
}

.testimonial2-prev {
  left: -16px;
}
.testimonial2-next {
  right: -16px;
}

.testimonial2-prev:hover,
.testimonial2-next:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.testimonial2-prev:hover svg,
.testimonial2-next:hover svg {
  stroke: #fff;
}

.testimonial2-prev svg,
.testimonial2-next svg {
  width: 18px;
  height: 18px;
  stroke: #66cc01;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.25s;
}

/* ── SLICK DOTS ── */
.testimonial2-slider .slick-dots {
  bottom: -32px;
}

.testimonial2-slider .slick-dots li button:before {
  font-size: 10px;
  color: #c8f080;
  opacity: 1;
}

.testimonial2-slider .slick-dots li.slick-active button:before {
  color: #66cc01;
}

/* hide default slick arrows */
.testimonial2-slider .slick-prev,
.testimonial2-slider .slick-next {
  display: none !important;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .testimonial2-section {
    padding: 40px 15px;
  }
  .testimonial2-header p {
    font-size: 14px;
    line-height: 1.3;
  }
  .testimonial2-header {
    margin-bottom: 20px;
  }
  .testimonial2-card {
    padding: 18px;
    margin: 10px 8px 16px;
    min-height: 260px;
  }

  .testimonial2-prev,
  .testimonial2-next {
    width: 40px;
    height: 40px;
    top: 48%;
  }

  .testimonial2-prev {
    left: -10px;
  }
  .testimonial2-next {
    right: -10px;
  }

  .testimonial2-text {
    font-size: 13px;
  }

  .testimonial2-author-info h4 {
    font-size: 13px;
  }

  .testimonial2-author-info span {
    font-size: 11px;
  }
}

.newsletter-section {
  text-align: center;
  padding: 80px 24px;
  padding-top: 0;
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
}

.envelope-icon {
  font-size: 52px;
  display: block;
  margin-bottom: 10px;
}

.newsletter-section h2 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  color: #0a1f44;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.subtitle {
  font-size: 15px;
  color: #6b7280;
  font-weight: 400;
  line-height: 1.65;
  margin-bottom: 30px;
}

.form-row {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.email-input {
  flex: 1 1 300px;
  max-width: 440px;
  padding: 14px 20px;
  border: 1.5px solid #6b7280 !important;
  border-radius: 12px !important;
  font-size: 0.95rem;
  color: #111827;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  background: #fff;
}

.email-input::placeholder {
  color: #9ca3af;
}

.email-input:focus {
  border-color: #4a6528;
  box-shadow: 0 0 0 3px rgba(74, 101, 40, 0.12);
}

.subscribe-btn {
  padding: 14px 28px;
  background: #1a3300;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
  white-space: nowrap;
}

.subscribe-btn:hover {
  background: #2f3f19;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(61, 82, 32, 0.3);
}

.subscribe-btn:active {
  transform: translateY(0);
}

.reassurance {
  margin-top: 16px;
  font-size: 0.82rem;
  color: #9ca3af;
}
@media (max-width: 900px) {
  .form-row {
    display: flex;
    gap: 20px;
    flex-direction: row;
    justify-content: center;
    flex-wrap: nowrap !important;
  }
}

@media (max-width: 768px) {
  .newsletter-section {
    padding: 40px 15px;
    padding-top: 0;
  }
  .subtitle {
    font-size: 14px;
  }
  .subscribe-btn {
    padding: 12px 24px;
    font-size: 0.75rem;
    font-weight: 400;
  }
}
