/* Pinkvilla News — Custom CSS (extends Tailwind) */

/* ── Fonts ─────────────────────────────────────── */
.logo    { font-family: 'Playfair Display', serif; }
.headline{ font-family: ui-sans-serif, system-ui, -apple-system, sans-serif; }

/* ── Header logo spacing ───────────────────────── */
.logo,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.5rem;
}
.custom-logo {
  display: block;
  max-height: 44px;
  width: auto;
}

/* ── Nav: remove any stray list markers on <li> ── */
nav > li { list-style: none; }

/* ── Nav underline animation ────────────────────── */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #e91e8c;
  transition: width .25s ease;
}
.nav-link:hover::after { width: 100%; }

/* ── Image hover scale ──────────────────────────── */
.card-img { transition: transform 0.4s ease; }
.card-img:hover { transform: scale(1.04); }

/* ── Homepage hero swiper ───────────────────────── */
.hero-swiper {
  position: relative;
  background: #111827;
}
.hero-swiper__media {
  height: 380px;
}
.hero-swiper .swiper-slide {
  height: auto;
}
.hero-swiper__pagination.swiper-pagination {
  bottom: 18px !important;
  left: auto !important;
  right: 18px;
  width: auto;
}
.hero-swiper__pagination .swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  background: rgba(255, 255, 255, 0.55);
  opacity: 1;
}
.hero-swiper__pagination .swiper-pagination-bullet-active {
  background: #ec4899;
}
.hero-swiper__nav {
  width: 42px !important;
  height: 42px !important;
  margin-top: 0 !important;
  top: 50% !important;
  transform: translateY(-50%);
  border-radius: 9999px;
  background: rgba(17, 24, 39, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff !important;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.hero-swiper__nav::after {
  font-size: 14px !important;
  font-weight: 700;
}
.hero-swiper__nav:hover {
  background: rgba(236, 72, 153, 0.88);
  border-color: rgba(236, 72, 153, 0.88);
}
.hero-swiper__nav--prev {
  left: 16px !important;
}
.hero-swiper__nav--next {
  right: 16px !important;
}

/* ── Contact Form 7 ─────────────────────────────── */
.contact-form-wrap label {
  display: block;
  margin-bottom: 0.45rem;
  color: #111827;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.contact-form-wrap p {
  margin-bottom: 1rem;
}
.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap input[type="tel"],
.contact-form-wrap input[type="url"],
.contact-form-wrap input[type="number"],
.contact-form-wrap select,
.contact-form-wrap textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.contact-form-wrap textarea {
  min-height: 160px;
  resize: vertical;
}
.contact-form-wrap input::placeholder,
.contact-form-wrap textarea::placeholder {
  color: #9ca3af;
}
.contact-form-wrap input:focus,
.contact-form-wrap select:focus,
.contact-form-wrap textarea:focus {
  border-color: #ec4899;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.12);
}
.contact-form-wrap .wpcf7-form-control-wrap {
  display: block;
}
.contact-form-wrap .wpcf7-not-valid-tip {
  margin-top: 0.45rem;
  color: #dc2626;
  font-size: 0.8125rem;
  font-weight: 500;
}
.contact-form-wrap .wpcf7-response-output {
  margin: 1rem 0 0 !important;
  padding: 0.85rem 1rem !important;
  border-radius: 2px;
  font-size: 0.9rem;
}
.contact-form-wrap .wpcf7-spinner {
  margin: 0.75rem 0 0 0.5rem;
}
.contact-form-wrap input[type="submit"] {
  appearance: none;
  border: 0;
  background: #e91e8c;
  color: #fff;
  padding: 0.9rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-form-wrap input[type="submit"]:hover {
  background: #db2777;
  transform: translateY(-1px);
}
.contact-form-wrap input[type="submit"]:focus-visible {
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.2);
}

/* ── Four-column news section ───────────────────── */
.four-col-news__col {
  min-width: 0;
}

@media (min-width: 1280px) {
  .four-col-news__col {
    padding-right: 1.5rem;
    border-right: 1px solid #e5e7eb;
  }
  .four-col-news__col:last-child {
    padding-right: 0;
    border-right: 0;
  }
}

/* ── Trending bar ───────────────────────────────── */
.trending-tag   { background: #e91e8c; font-size: 10px; letter-spacing: 1.5px; font-weight: 700; }
.trending-scroll{ display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.trending-scroll::-webkit-scrollbar { display: none; }
.trending-chip  { white-space: nowrap; border: 1px solid #e5e7eb; padding: 4px 12px; font-size: 12px; color: #374151; cursor: pointer; border-radius: 2px; flex-shrink: 0; }
.trending-chip:hover { border-color: #e91e8c; color: #e91e8c; }

/* ── Category label ─────────────────────────────── */
.cat-label { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: #9ca3af; text-transform: uppercase; }

/* ── Trending number badge ──────────────────────── */
.trending-num { position: absolute; top: 0; right: 0; background: #e91e8c; color: white; font-size: 11px; font-weight: 700; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }

/* ── Article row (list view) ────────────────────── */
.article-row { border-bottom: 1px solid #f0f0f0; }
.article-row:last-child { border-bottom: none; }

/* ── Pagination ─────────────────────────────────── */
.page-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid #e5e7eb; font-size: 13px; font-weight: 600; color: #374151; cursor: pointer; transition: all 0.2s; }
.page-btn:hover,
.page-btn.active { background: #e91e8c; color: #fff; border-color: #e91e8c; }

/* ── Archive filter tabs ────────────────────────── */
.filter-tab { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; padding: 6px 14px; border: 1px solid #e5e7eb; cursor: pointer; color: #6b7280; transition: all 0.2s; }
.filter-tab:hover,
.filter-tab.active { border-color: #e91e8c; color: #e91e8c; background: #fff5fa; }

/* ── View toggle (list/grid) ────────────────────── */
.view-btn { color: #9ca3af; }
.view-btn:hover { color: #e91e8c; }
.view-btn.view-active { background: #e91e8c; color: #fff; }

/* ── Social share floating sidebar ─────────────── */
.share-float {
  position: fixed;
  left: max(16px, calc(50vw - 660px));
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 30;
}
@media (max-width: 1200px) { .share-float { display: none; } }

.share-float a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: #fff;
  transition: transform 0.2s, opacity 0.2s;
}
.share-float a:hover { transform: scale(1.1); opacity: 0.9; }

/* ── Ad placeholders ────────────────────────────── */
.pinkvilla-ad { text-align: center; }
.pinkvilla-ad--header { min-height: 60px; }
.pinkvilla-ad--mid    { min-height: 250px; }
.pinkvilla-ad--end    { min-height: 250px; }

/* ── Author box ─────────────────────────────────── */
.author-box { border: 1px solid #f0f0f0; padding: 24px; display: flex; gap: 16px; align-items: flex-start; }
.author-box img { border-radius: 50%; flex-shrink: 0; }

/* ── Line clamp utilities ───────────────────────── */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Google News follow button ──────────────────── */
.gnews-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid #e5e7eb;
  padding: 8px 14px; font-size: 13px; font-weight: 600;
  color: #374151; transition: all 0.2s; cursor: pointer;
}
.gnews-btn:hover { border-color: #4285f4; color: #4285f4; }

/* ── WordPress native pagination (.page-numbers) ── */
.nav-links { display:flex; align-items:center; gap:4px; margin-top:2rem; padding-top:1.5rem; border-top:1px solid #e5e7eb; }
.page-numbers { width:36px; height:36px; display:flex; align-items:center; justify-content:center; border:1px solid #e5e7eb; font-size:13px; font-weight:600; color:#374151; text-decoration:none; transition:all 0.2s; }
.page-numbers:hover, .page-numbers.current { background:#e91e8c; color:#fff; border-color:#e91e8c; }
.page-numbers.dots { border:none; width:auto; }

/* ── Article prose styles ────────────────────────── */
.article-content h2 { font-family:ui-sans-serif,system-ui,-apple-system,sans-serif; font-size:1.6rem; font-weight:700; color:#111827; margin:2rem 0 1rem; }
.article-content h3 { font-family:ui-sans-serif,system-ui,-apple-system,sans-serif; font-size:1.3rem; font-weight:700; color:#111827; margin:1.5rem 0 0.75rem; }
.article-content p  { margin-bottom:1.25rem; line-height:1.8; color:#374151; }
.article-content a  { color:#e91e8c; text-decoration:underline; }
.article-content ul,.article-content ol { margin:1rem 0 1.25rem 1.5rem; }
.article-content ul { list-style:disc; }
.article-content ol { list-style:decimal; }
.article-content li { margin-bottom:0.4rem; color:#374151; }
.article-content blockquote { border-left:4px solid #e91e8c; padding-left:1.25rem; margin:1.5rem 0; font-style:italic; color:#6b7280; }
.article-content img { max-width:100%; height:auto; border-radius:2px; margin:1.5rem auto; display:block; }
.article-content table { width:100%; border-collapse:collapse; margin:1.5rem 0; font-size:0.875rem; }
.article-content th,.article-content td { border:1px solid #e5e7eb; padding:0.5rem 0.75rem; }
.article-content th { background:#f9fafb; font-weight:600; }
.article-content pre { background:#1f2937; color:#e5e7eb; padding:1.25rem; overflow-x:auto; border-radius:4px; font-size:0.875rem; margin:1.5rem 0; }
.article-content code { background:#f3f4f6; padding:2px 6px; border-radius:3px; font-size:0.875em; color:#e91e8c; }
.article-content pre code { background:transparent; color:inherit; padding:0; }

/* ── Section heading (pink dot + text + gray line) ─ */
.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.section-heading::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background: #e91e8c;
  border-radius: 50%;
  flex-shrink: 0;
}
.section-heading::after {
  content: '';
  display: block;
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}
.section-heading-text {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* ── Number badge (sidebar latest) ─────────────── */
.number-badge {
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: #e5e7eb;
  line-height: 1;
  flex-shrink: 0;
  min-width: 18px;
}

/* ── Latest item ────────────────────────────────── */
.latest-item { display: flex; }

/* ── Tag badge (hero overlay category) ─────────── */
.tag-badge {
  background: #e91e8c;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

/* ── Explore More button ────────────────────────── */
.explore-btn {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  cursor: pointer;
  background: none;
  border: none;
  display: inline-block;
}

/* ── Carousel category tag ──────────────────────── */
.carousel-cat-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #374151;
  text-transform: uppercase;
}

/* ── Sports carousel scrollbar hide ────────────── */
#sports-carousel::-webkit-scrollbar { display: none; }

/* ── Footer nav menu links ──────────────────────── */
.footer-link {
  color: #fff;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s;
  text-decoration: none;
}
.footer-link:hover { color: #f472b6; }

/* ── Mobile-first responsive tweaks ────────────── */
@media (max-width: 640px) {
  .hero-swiper__media { height: 300px; }
  .hero-swiper__nav {
    display: none !important;
  }
  .hero-swiper__pagination.swiper-pagination {
    right: 14px;
    bottom: 14px !important;
  }
  .archive-featured { flex-direction: column; }
  .archive-featured img { width: 100% !important; height: 200px !important; }
}

/* ── Mega Menu panel ────────────────────────────── */
/* The panel is centered below its <li> (left:50% + translateX(-50%)).
   Each child item becomes a column (flex-shrink-0 py-5 px-5).
   Grandchildren appear as plain text links inside each column. */

.nav-mega {
  /* Ensures the panel doesn't clip on narrow viewports */
  left: 50%;
  transform: translateX(-50%);
}

/* Column heading link */
.mega-col > a:first-child {
  display: block;
  padding-bottom: 6px;
  border-bottom: 1px solid #f3e8ff; /* very light pink rule under heading */
  margin-bottom: 8px;
}

/* ── Print styles ───────────────────────────────── */
@media print {
  header, footer, aside, .pinkvilla-ad, .share-float, #sticky-ad { display: none !important; }
  main { max-width: 100%; }
}
