/*
Theme Name: Women Square News
Theme URI: https://womensquare.in/
Author: Women Square
Description: Ek halka, fast news/magazine theme jisme editable breaking news ticker, custom logo aur editable footer widget areas hain. Homepage par category-wise grid layout ke saath.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wsqnews
*/

/* =========================================================
   0. RESET / BASE
   ========================================================= */
* { box-sizing: border-box; }

:root{
  --wsq-primary: #d90429;
  --wsq-dark: #101418;
  --wsq-text: #1c1c1c;
  --wsq-muted: #6b7280;
  --wsq-border: #e5e7eb;
  --wsq-bg: #f7f7f8;
  --wsq-white: #ffffff;
  --wsq-radius: 8px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--wsq-bg);
  color: var(--wsq-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--wsq-primary); }
ul { list-style: none; margin: 0; padding: 0; }

.wsq-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.screen-reader-text {
  position: absolute !important;
  clip: rect(1px,1px,1px,1px);
  overflow: hidden;
  height: 1px; width: 1px;
}

/* =========================================================
   1. TOP BAR / BREAKING NEWS TICKER
   ========================================================= */
.wsq-topbar {
  background: var(--wsq-dark);
  color: #fff;
  font-size: 13px;
}
.wsq-topbar .wsq-container {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 38px;
}
.wsq-breaking-label {
  background: var(--wsq-primary);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .5px;
  padding: 4px 10px;
  border-radius: 3px;
  flex-shrink: 0;
}
.wsq-ticker-wrap {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.wsq-ticker-track {
  display: inline-block;
  padding-left: 100%;
  animation: wsq-scroll 22s linear infinite;
}
.wsq-ticker-track span {
  margin-right: 60px;
  color: #e5e7eb;
}
@keyframes wsq-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
.wsq-topbar .wsq-date {
  flex-shrink: 0;
  color: #9ca3af;
}
.wsq-topbar-social {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.wsq-topbar-social a {
  color: #d1d5db;
  font-size: 12px;
  font-weight: 600;
}
.wsq-topbar-social a:hover { color: #fff; }
.wsq-header-widget {
  flex-shrink: 0;
  font-size: 13px;
  color: #d1d5db;
}

/* =========================================================
   2. HEADER / LOGO / NAV
   ========================================================= */
.wsq-header {
  background: var(--wsq-white);
  border-bottom: 3px solid var(--wsq-dark);
}
.wsq-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  flex-wrap: wrap;
  gap: 14px;
}
.wsq-logo img { max-height: 60px; width: auto; }
.wsq-logo-text {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.5px;
}
.wsq-logo-text span { color: var(--wsq-primary); }

.wsq-nav-toggle {
  display: none;
  background: var(--wsq-dark);
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: var(--wsq-radius);
  cursor: pointer;
  font-size: 15px;
}

.wsq-primary-nav ul {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.wsq-primary-nav a {
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: var(--wsq-text);
  padding: 6px 0;
  border-bottom: 3px solid transparent;
}
.wsq-primary-nav a:hover,
.wsq-primary-nav .current-menu-item a {
  color: var(--wsq-primary);
  border-color: var(--wsq-primary);
}

/* =========================================================
   3. HERO / FEATURED GRID (front page)
   ========================================================= */
.wsq-hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  margin: 26px 0;
}
.wsq-hero-main {
  position: relative;
  border-radius: var(--wsq-radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #ddd;
}
.wsq-hero-main img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.wsq-hero-main .wsq-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px 20px 18px;
  background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,0));
}
.wsq-hero-main .wsq-overlay h2 {
  color: #fff;
  font-size: 26px;
  margin: 0;
  line-height: 1.25;
}
.wsq-hero-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.wsq-hero-side-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  background: var(--wsq-white);
  border-radius: var(--wsq-radius);
  overflow: hidden;
  border: 1px solid var(--wsq-border);
}
.wsq-hero-side-item .thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #ddd;
}
.wsq-hero-side-item .thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.wsq-hero-side-item .info { padding: 8px 10px 8px 0; }
.wsq-hero-side-item h3 {
  font-size: 14px;
  margin: 0 0 6px;
  line-height: 1.35;
}
.wsq-meta {
  font-size: 11px;
  color: var(--wsq-muted);
}

/* =========================================================
   4. SECTION HEADINGS
   ========================================================= */
.wsq-section { margin: 34px 0; }
.wsq-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--wsq-dark);
  margin-bottom: 18px;
  padding-bottom: 8px;
}
.wsq-section-head h2 {
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin: 0;
  padding: 0 12px 8px 0;
  border-bottom: 3px solid var(--wsq-primary);
  margin-bottom: -10px;
}
.wsq-section-head a {
  font-size: 13px;
  font-weight: 700;
  color: var(--wsq-primary);
}

/* =========================================================
   5. CATEGORY GRID CARDS
   ========================================================= */
.wsq-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.wsq-card {
  background: var(--wsq-white);
  border-radius: var(--wsq-radius);
  overflow: hidden;
  border: 1px solid var(--wsq-border);
  display: flex;
  flex-direction: column;
}
.wsq-card .thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #ddd;
}
.wsq-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s ease;
}
.wsq-card:hover .thumb img { transform: scale(1.05); }
.wsq-card .info { padding: 12px 14px 16px; }
.wsq-card h3 {
  font-size: 15px;
  margin: 0 0 8px;
  line-height: 1.35;
}
.wsq-card-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.wsq-card-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
}
.wsq-card-row .thumb {
  aspect-ratio: 4/3;
  border-radius: var(--wsq-radius);
  overflow: hidden;
  background: #ddd;
}
.wsq-card-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.wsq-card-row h4 {
  font-size: 13.5px;
  margin: 0 0 6px;
  line-height: 1.35;
}

/* =========================================================
   6. AD SLOTS
   ========================================================= */
.wsq-ad-slot {
  text-align: center;
  background: var(--wsq-white);
  border: 1px dashed var(--wsq-border);
  padding: 16px;
  border-radius: var(--wsq-radius);
  color: var(--wsq-muted);
  font-size: 13px;
  margin: 26px 0;
}

/* =========================================================
   7. SINGLE POST / PAGE / ARCHIVE
   ========================================================= */
.wsq-content-wrap {
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: 30px;
  align-items: start;
  margin: 30px 0;
}
.wsq-single-thumb {
  border-radius: var(--wsq-radius);
  overflow: hidden;
  margin-bottom: 18px;
  aspect-ratio: 16/9;
  background: #ddd;
}
.wsq-single-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wsq-single-title { font-size: 30px; line-height: 1.3; margin: 0 0 10px; }
.wsq-entry-content { font-size: 16px; }
.wsq-entry-content p { margin: 0 0 16px; }
.wsq-entry-content h2, .wsq-entry-content h3 { margin-top: 28px; }
article.wsq-article {
  background: var(--wsq-white);
  border: 1px solid var(--wsq-border);
  border-radius: var(--wsq-radius);
  padding: 22px;
}
.wsq-archive-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  background: var(--wsq-white);
  border: 1px solid var(--wsq-border);
  border-radius: var(--wsq-radius);
  padding: 16px;
  margin-bottom: 18px;
}
.wsq-archive-item .thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: var(--wsq-radius);
  background: #ddd;
}
.wsq-archive-item .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   8. SIDEBAR / WIDGETS
   ========================================================= */
.wsq-widget {
  background: var(--wsq-white);
  border: 1px solid var(--wsq-border);
  border-radius: var(--wsq-radius);
  padding: 18px;
  margin-bottom: 22px;
}
.wsq-widget h2.widget-title,
.wsq-widget h2 {
  font-size: 15px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--wsq-primary);
  padding-bottom: 8px;
  margin: 0 0 14px;
}
.wsq-widget ul li { padding: 8px 0; border-bottom: 1px solid var(--wsq-border); font-size: 14px; }
.wsq-widget ul li:last-child { border-bottom: none; }

/* =========================================================
   9. FOOTER (fully editable via Widgets)
   ========================================================= */
.wsq-footer {
  background: var(--wsq-dark);
  color: #d1d5db;
  margin-top: 40px;
}
.wsq-footer-widgets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  padding: 40px 0 20px;
}
.wsq-footer-widgets .footer-widget-area { min-height: 20px; }
.wsq-footer-widgets h2,
.wsq-footer-widgets .widget-title {
  color: #fff;
  font-size: 15px;
  text-transform: uppercase;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--wsq-primary);
}
.wsq-footer-widgets img { border-radius: 4px; }
.wsq-footer-widgets a { color: #d1d5db; }
.wsq-footer-widgets a:hover { color: #fff; }
.wsq-footer-widgets ul li { padding: 5px 0; font-size: 13.5px; }

.wsq-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #9ca3af;
}
.wsq-footer-bottom nav ul {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.wsq-footer-social {
  display: flex;
  gap: 14px;
}
.wsq-footer-social a {
  font-size: 13px;
  font-weight: 600;
  color: #d1d5db;
}
.wsq-footer-social a:hover { color: var(--wsq-primary); }

/* =========================================================
   10. RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .wsq-hero { grid-template-columns: 1fr; }
  .wsq-grid { grid-template-columns: repeat(2, 1fr); }
  .wsq-content-wrap { grid-template-columns: 1fr; }
  .wsq-footer-widgets { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .wsq-primary-nav { display: none; width: 100%; }
  .wsq-primary-nav.wsq-nav-open { display: block; }
  .wsq-primary-nav ul { flex-direction: column; gap: 0; }
  .wsq-primary-nav a { display: block; padding: 10px 0; border-bottom: 1px solid var(--wsq-border); }
  .wsq-nav-toggle { display: inline-block; }
  .wsq-grid { grid-template-columns: 1fr 1fr; }
  .wsq-archive-item { grid-template-columns: 1fr; }
  .wsq-footer-widgets { grid-template-columns: 1fr; }
  .wsq-hero-side-item { grid-template-columns: 90px 1fr; }
}
