/*
Theme Name: PinAd Fast
Theme URI: https://example.com/pinad-fast
Author: Mubashrah
Author URI: https://example.com
Description: High-end, Modern Editorial Magazine & Pinterest Theme built with slide-out drawer navigation, fluid responsiveness, and high-CPM engagement.
Version: 2.3.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pinad-fast
*/

/* --------------------------------------------------
   1. GLOBAL RESETS & ROOT VARIABLES
-------------------------------------------------- */
:root {
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --color-primary: #e60023;
  --color-primary-dark: #b8001b;
  --color-accent: #f59e0b;
  --color-dark: #0f172a;
  --color-body: #334155;
  --color-muted: #64748b;
  --color-border: #f1f5f9;
  --bg-page: #fafafa;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12);
  --radius-card: 16px;
}

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

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  background-color: var(--bg-page);
  color: var(--color-body);
  font-family: var(--font-sans);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------
   2. MEDIA & IMAGE FIXES
-------------------------------------------------- */
img, picture, video {
  display: block;
  max-width: 100% !important;
  height: auto !important;
}

figure, .wp-block-image {
  max-width: 100% !important;
  margin: 0 auto !important;
}

/* --------------------------------------------------
   3. SIDE DRAWER & BACKDROP OVERLAY
-------------------------------------------------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.drawer-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.side-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 310px;
  max-width: 85%;
  background: #ffffff;
  z-index: 99999;
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.2);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.side-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  padding: 24px 20px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-logo {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 900;
  color: var(--color-dark);
  display: block;
}

.drawer-sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-muted);
}

.drawer-close-btn {
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 800;
  color: var(--color-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.drawer-close-btn:hover {
  background: var(--color-primary);
  color: #ffffff;
}

.drawer-body {
  padding: 20px;
  overflow-y: auto;
  flex-grow: 1;
}

.drawer-menu-list {
  list-style: none !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-menu-list li {
  margin: 0;
}

.drawer-menu-list a {
  display: block;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-dark);
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.drawer-menu-list a:hover,
.drawer-menu-list .current-menu-item > a {
  background: #fef2f2;
  color: var(--color-primary);
  padding-left: 20px;
}

/* --------------------------------------------------
   4. STICKY HEADER & HAMBURGER
-------------------------------------------------- */
.site-header {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hamburger-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 36px;
}

.hamburger-btn .bar {
  display: block;
  width: 22px;
  height: 2.5px;
  background-color: var(--color-dark);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.hamburger-btn:hover .bar {
  background-color: var(--color-primary);
}

.header-brand-wrap {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.brand-logo {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--color-dark);
  text-decoration: none;
  line-height: 1.1;
  display: block;
}

.brand-sub {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: 2px;
}

.header-action {
  display: flex;
  align-items: center;
}

.search-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--color-dark);
  text-decoration: none;
  transition: all 0.2s ease;
}

.search-trigger:hover {
  background: var(--color-primary);
  color: #fff;
}

/* --------------------------------------------------
   5. HOMEPAGE CATEGORY PILLS & MASONRY GRID
-------------------------------------------------- */
.category-strip {
  width: 100%;
  padding: 24px 0 12px;
}

.category-strip-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-strip-inner::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  white-space: nowrap;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: var(--color-dark);
  text-decoration: none;
  padding: 9px 20px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.cat-pill:hover,
.cat-pill.active {
  background: var(--color-dark);
  color: #ffffff;
  border-color: var(--color-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.homepage-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 24px 80px;
}

.pins-masonry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 16px;
}

.pin-feed-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(226, 232, 240, 0.6);
  position: relative;
}

.pin-feed-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(203, 213, 225, 0.8);
}

.pin-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pin-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #e2e8f0;
}

.pin-feed-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.pin-placeholder-img {
  width: 100%;
  height: 100%;
  background: #cbd5e1;
}

.pin-feed-card:hover .pin-feed-img {
  transform: scale(1.06);
}

.pin-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.5) 0%, rgba(0, 0, 0, 0) 40%);
  opacity: 0.6;
}

.pin-view-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  color: var(--color-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
}

.pin-feed-card:hover .pin-view-badge {
  background: var(--color-primary);
  color: #ffffff;
}

.pin-card-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pin-meta-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.pin-card-title {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 12px;
  flex-grow: 1;
  transition: color 0.2s ease;
}

.pin-feed-card:hover .pin-card-title {
  color: var(--color-primary);
}

.pin-date {
  font-size: 12px;
  color: var(--color-muted);
  font-weight: 500;
}

@media (min-width: 1024px) {
  .pin-feed-card.is-lead-story {
    grid-column: span 2;
  }
  .pin-feed-card.is-lead-story .pin-thumb-wrapper {
    aspect-ratio: 16 / 11;
  }
  .pin-feed-card.is-lead-story .pin-card-title {
    font-size: 26px;
    line-height: 1.25;
  }
}

/* --------------------------------------------------
   6. SINGLE POST EDITORIAL LAYOUT
-------------------------------------------------- */
.article-wrapper {
  max-width: 780px;
  margin: 0 auto;
  padding: 30px 24px 80px;
}

.article-header {
  text-align: center;
  margin-bottom: 30px;
}

.badge-cat a {
  display: inline-block;
  background: #fef2f2;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 30px;
  text-decoration: none;
  margin-bottom: 14px;
}

.entry-title {
  font-family: var(--font-serif);
  font-size: 38px;
  line-height: 1.2;
  font-weight: 900;
  color: var(--color-dark);
  margin-bottom: 14px;
}

.entry-submeta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--color-muted);
}

.entry-submeta strong {
  color: var(--color-dark);
}

.meta-dot {
  color: #cbd5e1;
}

.magazine-content {
  font-size: 19px;
  line-height: 1.85;
  color: #334155;
}

.magazine-content p {
  margin-bottom: 24px;
}

.magazine-content h2, 
.magazine-content h3 {
  font-family: var(--font-serif);
  color: var(--color-dark);
  margin: 40px 0 18px;
  line-height: 1.3;
}

.magazine-content h2 {
  font-size: 28px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 8px;
}

.magazine-content h3 {
  font-size: 22px;
}

.magazine-content ol, 
.magazine-content ul {
  margin: 24px 0 28px 0;
  padding-left: 32px;
}

.magazine-content li {
  margin-bottom: 14px;
  line-height: 1.75;
}

/* --------------------------------------------------
   7. IN-CONTENT FLOATING CONTROLS & BOLD RED ARROWS
-------------------------------------------------- */
.pin-hover-wrapper {
  position: relative;
  display: block;
  margin: 32px 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.pin-hover-wrapper img {
  width: 100%;
  border-radius: 14px;
  display: block;
}

/* Pinterest Save Button: Now with Consistent Ringing SVG Icon */
.image-pin-it-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--color-primary);
  color: #ffffff !important;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 4px 15px rgba(230, 0, 35, 0.4);
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 1;
  z-index: 10;
  animation: consistentSaveBtnPulse 2.4s infinite ease-in-out;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

/* Bell Ringing / Wobble Animation on the Pin SVG */
.image-pin-it-btn svg {
  display: inline-block;
  transform-origin: top center;
  animation: pinRingingBell 2.4s infinite ease-in-out;
}

.image-pin-it-btn:hover {
  background: var(--color-primary-dark);
  animation-play-state: paused;
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(230, 0, 35, 0.6);
}

.image-pin-it-btn:hover svg {
  animation-play-state: paused;
}

.img-slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #e60023;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  box-shadow: 0 6px 20px rgba(230, 0, 35, 0.45), 0 2px 6px rgba(0, 0, 0, 0.2);
  border: 2px solid #ffffff;
  z-index: 15;
  transition: background-color 0.2s ease;
  opacity: 0.95;
}

.img-slide-arrow.arrow-left {
  left: 16px;
}

.img-slide-arrow.arrow-right {
  right: 16px;
  animation: consistentRightArrowPulse 2s infinite ease-in-out;
}

.img-slide-arrow:hover {
  background: #b91c1c;
  opacity: 1;
  box-shadow: 0 8px 25px rgba(230, 0, 35, 0.6);
}

/* --------------------------------------------------
   8. SLIDE AUTOPLAY & PAGINATION
-------------------------------------------------- */
.slide-ctrl-wrapper.top-controls {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
}

.auto-next-card {
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.08);
}

.auto-next-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  font-size: 14px;
  color: #7c2d12;
}

.auto-next-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.auto-pulse-dot {
  width: 9px;
  height: 9px;
  background: #ea580c;
  border-radius: 50%;
  animation: pulseDot 1.2s infinite ease-in-out;
}

.auto-pulse-dot.is-idle {
  background: #94a3b8;
  animation: none;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.auto-toggle-btn {
  background: #ea580c;
  border: none;
  color: #fff;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.auto-toggle-btn:hover {
  background: #c2410c;
}

.auto-toggle-btn.is-active {
  background: #ffffff;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.auto-progress-track {
  width: 100%;
  height: 4px;
  background: #ffedd5;
}

.auto-progress-bar {
  width: 0%;
  height: 100%;
  background: #ea580c;
}

.listicle-slide-action-box {
  display: flex;
  gap: 12px;
  margin: 20px 0 35px;
}

.compact-top-nav {
  margin: 12px 0 0 0 !important;
}

.compact-top-nav .slide-nav-btn {
  padding: 11px 18px !important;
  font-size: 14px !important;
}

.slide-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 800;
  border-radius: 40px;
  text-decoration: none !important;
  flex: 1;
  text-align: center;
  transition: all 0.25s ease;
}

.slide-prev-btn {
  background: #ffffff;
  color: var(--color-dark) !important;
  border: 2px solid #e2e8f0;
}

.slide-prev-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Next Idea Button: Consistent Gentle Pulse */
.slide-next-btn {
  background: var(--color-dark);
  color: #ffffff !important;
  border: 2px solid transparent;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
  animation: consistentNextBtnPulse 2.2s infinite ease-in-out;
}

.slide-next-btn:hover {
  background: var(--color-primary);
  animation-play-state: paused;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 28px rgba(230, 0, 35, 0.35);
}

.listicle-pagination-wrap {
  text-align: center;
  margin: 30px 0 15px;
  padding: 20px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #f1f5f9;
}

.listicle-page-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-muted);
  margin-bottom: 12px;
}

.listicle-nav-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.listicle-nav-pills a,
.listicle-nav-pills > .slide-num {
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  border: 1px solid #e2e8f0;
  color: var(--color-dark);
  background: #ffffff;
  transition: all 0.2s ease;
}

.listicle-nav-pills a:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.listicle-nav-pills > .slide-num:not(a) {
  background: var(--color-dark);
  color: #ffffff;
  border-color: var(--color-dark);
}

/* --------------------------------------------------
   9. EDITORIAL IN-CONTENT SUGGESTION CARD
-------------------------------------------------- */
.editorial-suggest-card {
  margin: 40px 0;
  background: #ffffff;
  border: 1px solid #fecdd3;
  border-left: 6px solid var(--color-primary);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.editorial-suggest-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #fda4af;
}

.suggest-inner-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  text-decoration: none !important;
  color: inherit;
  gap: 16px;
}

.suggest-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.suggest-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.suggest-headline {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.editorial-suggest-card:hover .suggest-headline {
  color: var(--color-primary);
}

.suggest-cta-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-muted);
}

.suggest-arrow-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fef2f2;
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 700;
  transition: all 0.25s ease;
}

.editorial-suggest-card:hover .suggest-arrow-circle {
  background: var(--color-primary);
  color: #fff;
  transform: translateX(4px);
}

/* --------------------------------------------------
   10. RINGING & PULSING ANIMATIONS
-------------------------------------------------- */

/* Ringing Bell Wobble on Pin Icon */
@keyframes pinRingingBell {
  0% { transform: rotate(0deg); }
  5% { transform: rotate(20deg); }
  10% { transform: rotate(-18deg); }
  15% { transform: rotate(14deg); }
  20% { transform: rotate(-10deg); }
  25% { transform: rotate(6deg); }
  30% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); } /* Rest period before ringing again */
}

/* One-time Left Arrow Slide */
@keyframes arrowSlideInLeft {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateX(-25px) scale(0.7);
  }
  70% {
    opacity: 1;
    transform: translateY(-50%) translateX(4px) scale(1.1);
  }
  100% {
    opacity: 0.95;
    transform: translateY(-50%) translateX(0) scale(1);
  }
}

/* Consistent Infinite Pulse for Save Button */
@keyframes consistentSaveBtnPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(230, 0, 35, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(230, 0, 35, 0.65);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(230, 0, 35, 0.4);
  }
}

/* Consistent Infinite Pulse for Right Arrow */
@keyframes consistentRightArrowPulse {
  0% {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 6px 20px rgba(230, 0, 35, 0.45);
  }
  50% {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 28px rgba(230, 0, 35, 0.7);
  }
  100% {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 6px 20px rgba(230, 0, 35, 0.45);
  }
}

/* Consistent Infinite Pulse for Next Idea Action Button */
@keyframes consistentNextBtnPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
  }
  50% {
    transform: scale(1.025);
    box-shadow: 0 12px 28px rgba(230, 0, 35, 0.35);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
  }
}

.pin-hover-wrapper.in-view-animated .img-slide-arrow.arrow-left {
  animation: arrowSlideInLeft 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --------------------------------------------------
   11. LUXURY FOOTER WITH ACCENT QUICK LINKS
-------------------------------------------------- */
.site-footer {
  background: #090d16;
  color: #94a3b8;
  padding: 70px 24px 30px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1.2fr 1.6fr;
  gap: 45px;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #94a3b8;
  margin-bottom: 16px;
}

.footer-pill-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.footer-heading-styled {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.heading-accent-line {
  width: 48px;
  height: 3px;
  background-color: var(--color-accent);
  margin-bottom: 20px;
  border-radius: 2px;
}

.styled-footer-links {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.styled-footer-links li {
  margin-bottom: 12px;
}

.styled-footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.styled-footer-links .link-arrow {
  color: var(--color-accent);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.2s ease;
}

.styled-footer-links a:hover {
  color: var(--color-accent);
}

.styled-footer-links a:hover .link-arrow {
  transform: translateX(4px);
}

.footer-heading {
  font-size: 14px;
  font-weight: 800;
  color: #f8fafc;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.newsletter-form {
  display: flex;
  margin-top: 14px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.newsletter-input {
  width: 100%;
  min-width: 0;
  padding: 12px 16px;
  background: #141c2e;
  border: 1px solid #243048;
  border-radius: 8px 0 0 8px;
  color: #ffffff;
  font-size: 13px;
  outline: none;
}

.newsletter-btn {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 0 18px;
  border-radius: 0 8px 8px 0;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.newsletter-btn:hover {
  background: var(--color-primary-dark);
}

.footer-bottom {
  max-width: 1240px;
  margin: 50px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

/* --------------------------------------------------
   12. HOMEPAGE PAGINATION
-------------------------------------------------- */
.home-pagination {
  margin-top: 50px;
  display: flex;
  justify-content: center;
}

.home-pagination .nav-links {
  display: flex;
  gap: 8px;
}

.home-pagination a, 
.home-pagination span {
  padding: 10px 16px;
  border-radius: 30px;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  color: var(--color-dark);
  font-weight: 700;
  font-size: 13px;
  background: #fff;
  transition: all 0.2s ease;
}

.home-pagination .current {
  background: var(--color-dark);
  color: #fff;
  border-color: var(--color-dark);
}

/* --------------------------------------------------
   13. RESPONSIVE BREAKPOINTS
-------------------------------------------------- */
@media (max-width: 1024px) {
  .pins-masonry-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .pins-masonry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .img-slide-arrow {
    width: 46px;
    height: 46px;
    opacity: 1;
  }
  .img-slide-arrow svg {
    width: 22px;
    height: 22px;
  }
  .img-slide-arrow.arrow-left {
    left: 10px;
  }
  .img-slide-arrow.arrow-right {
    right: 10px;
  }
  .image-pin-it-btn {
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    font-size: 11px;
  }
  .entry-title {
    font-size: 28px;
  }
  .magazine-content {
    font-size: 17px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 540px) {
  .homepage-wrapper,
  .article-wrapper {
    padding-left: 14px;
    padding-right: 14px;
  }
  .pin-card-content {
    padding: 12px;
  }
  .pin-card-title {
    font-size: 15px;
  }
  .listicle-slide-action-box {
    flex-direction: column;
    gap: 10px;
  }
  .slide-nav-btn {
    width: 100%;
  }
}