/* ============================================================
   tayarri-hero.css  —  v1.0.1
   Place at: wp-content/themes/tayarri-child/tayarri-hero.css
   ============================================================ */

/* ── Variables ────────────────────────────────────────────── */
:root {
  --tyr-blue:         #1a56db;
  --tyr-blue-dark:    #1341b0;
  --tyr-blue-light:   #e8f0fe;
  --tyr-text-dark:    #1a202c;
  --tyr-text-light:   #718096;
  --tyr-border:       #e2e8f0;
  --tyr-white:        #ffffff;
  --tyr-film-dark:    #111827;
  --tyr-film-strip:   #1f2937;
  --tyr-film-border:  #374151;
  --tyr-radius:       11px;
  --tyr-shadow:       0 2px 10px rgba(26,86,219,0.09);
  --tyr-shadow-hover: 0 8px 28px rgba(26,86,219,0.20);
}

/* ── Outer container ──────────────────────────────────────── */
.tyr-outer {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 16px;
  font-family: 'Hind Siliguri', sans-serif;
}

/* ── Section header ───────────────────────────────────────── */
.tyr-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 11px;
  border-bottom: 2.5px solid var(--tyr-blue-light);
}
.tyr-section-title {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: var(--tyr-text-dark) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  display: flex;
  align-items: center;
  gap: 9px;
  line-height: 1.3 !important;
}
.tyr-section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--tyr-blue);
  border-radius: 2px;
  flex-shrink: 0;
}
.tyr-view-all {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--tyr-blue) !important;
  text-decoration: none !important;
  border: 1.5px solid var(--tyr-blue);
  padding: 4px 13px;
  border-radius: 20px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.tyr-view-all:hover {
  background: var(--tyr-blue) !important;
  color: var(--tyr-white) !important;
}

/* ── Hero row: film left + grid right ─────────────────────── */
.tyr-hero-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .tyr-hero-row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   FILM REEL
═══════════════════════════════════════════════════════════ */
.tyr-film-col {
  display: flex;
  flex-direction: column;
}

.tyr-film-reel {
  background: var(--tyr-film-dark);
  border-radius: var(--tyr-radius) var(--tyr-radius) 0 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.30);
}

/* Sprocket strips (top & bottom) */
.tyr-sprocket {
  background: var(--tyr-film-strip);
  height: 22px;
  display: flex;
  align-items: center;
  padding: 0 6px;
  gap: 7px;
}
.tyr-sprocket-hole {
  width: 12px;
  height: 10px;
  background: var(--tyr-film-dark);
  border-radius: 3px;
  border: 1.5px solid var(--tyr-film-border);
  flex-shrink: 0;
}

/* Side rails */
.tyr-film-inner {
  display: flex;
  flex-direction: row;
}
.tyr-film-rail {
  width: 18px;
  background: var(--tyr-film-strip);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  padding: 8px 0;
  flex-shrink: 0;
  gap: 10px;
}
.tyr-film-rail-hole {
  width: 10px;
  height: 14px;
  background: var(--tyr-film-dark);
  border-radius: 3px;
  border: 1.5px solid var(--tyr-film-border);
}

/* Video / embed area */
.tyr-film-video {
  flex: 1;
  position: relative;
  aspect-ratio: 4 / 3;
  background: #000;
  overflow: hidden;
}
.tyr-film-video video,
.tyr-film-video iframe,
.tyr-film-video audio {
  width: 100% !important;
  height: 100% !important;
  display: block;
  border: none;
  object-fit: cover;
}

/* Placeholder (shown when no URL given) */
.tyr-film-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #1e3a5f 0%, #1a56db 60%, #0f2d5c 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
}
.tyr-film-placeholder .ep-label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: rgba(255,255,255,0.75);
}
.tyr-film-placeholder .play-btn {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.tyr-film-placeholder .play-btn:hover {
  background: rgba(255,255,255,0.28);
  transform: scale(1.08);
}
.tyr-film-placeholder .play-btn svg { margin-left: 3px; }
.tyr-film-placeholder .urdu-title {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.9;
  direction: rtl;
}
.tyr-film-placeholder .duration-badge {
  background: rgba(0,0,0,0.38);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.2);
}

/* Caption below reel */
.tyr-film-caption {
  background: var(--tyr-white);
  border: 1px solid var(--tyr-border);
  border-top: none;
  border-radius: 0 0 var(--tyr-radius) var(--tyr-radius);
  padding: 10px 14px 13px;
  box-shadow: var(--tyr-shadow);
}
.tyr-film-caption .pod-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--tyr-blue);
  background: var(--tyr-blue-light);
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.tyr-film-caption .pod-title {
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--tyr-text-dark);
  direction: rtl;
  font-family: 'Noto Nastaliq Urdu', serif;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tyr-film-caption .pod-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 7px;
  font-size: 0.7rem;
  color: var(--tyr-text-light);
  font-family: 'Hind Siliguri', sans-serif;
}
.tyr-film-caption .pod-meta span {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ═══════════════════════════════════════════════════════════
   POST GRID
═══════════════════════════════════════════════════════════ */
.tyr-grid-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tyr-post-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1100px) { .tyr-post-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px)  { .tyr-post-grid { grid-template-columns: 1fr; } }

/* Card */
.tyr-post-card {
  background: var(--tyr-white);
  border-radius: var(--tyr-radius);
  overflow: hidden;
  box-shadow: var(--tyr-shadow);
  border: 1px solid var(--tyr-border);
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit !important;
  transition: transform .22s ease, box-shadow .22s ease;
}
.tyr-post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tyr-shadow-hover);
  text-decoration: none !important;
}

/* Thumbnail */
.tyr-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--tyr-blue-light);
  flex-shrink: 0;
}
.tyr-card-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  transition: transform .38s ease;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  max-width: 100% !important;
}
.tyr-post-card:hover .tyr-card-thumb img { transform: scale(1.06); }

/* Badge */
.tyr-card-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--tyr-blue);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 2px 7px;
  border-radius: 3px;
  pointer-events: none;
  line-height: 1.4;
}

/* Body */
.tyr-card-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Date */
.tyr-card-date {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  color: var(--tyr-blue);
  font-weight: 500;
  margin-bottom: 6px;
  line-height: 1;
}

/* Title */
.tyr-card-title {
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  color: var(--tyr-text-dark) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  transition: color .2s;
  font-family: 'Hind Siliguri', sans-serif !important;
}
.tyr-post-card:hover .tyr-card-title { color: var(--tyr-blue) !important; }

/* Read more */
.tyr-card-read-more {
  margin-top: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--tyr-blue);
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.tyr-card-read-more svg { transition: transform .2s; }
.tyr-post-card:hover .tyr-card-read-more svg { transform: translateX(3px); }

/* Footer accent */
.tyr-card-footer-line {
  height: 3px;
  background: linear-gradient(90deg, var(--tyr-blue) 0%, var(--tyr-blue-light) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
  flex-shrink: 0;
}
.tyr-post-card:hover .tyr-card-footer-line { transform: scaleX(1); }

/* ═══════════════════════════════════════════════════════════
   SUBJECT ACCORDION BUTTONS
   These sit below the post grid — exact same width
═══════════════════════════════════════════════════════════ */
.tyr-subjects-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}
@media (max-width: 768px) { .tyr-subjects-row { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .tyr-subjects-row { grid-template-columns: 1fr; } }

.tyr-subject-btn {
  background: var(--tyr-blue);
  color: #fff !important;
  border: none;
  border-radius: 6px;
  padding: 11px 14px;
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .2s;
  width: 100%;
  text-decoration: none !important;
  line-height: 1.3;
}
.tyr-subject-btn:hover {
  background: var(--tyr-blue-dark) !important;
  color: #fff !important;
  text-decoration: none !important;
}
.tyr-subject-btn .chevron {
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ─── Fade-up entrance animation ─────────────────────────── */
@keyframes tyr-fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tyr-film-reel   { animation: tyr-fadeUp .35s ease both; }
.tyr-post-card   { animation: tyr-fadeUp .4s ease both; }
.tyr-post-card:nth-child(1) { animation-delay: .05s; }
.tyr-post-card:nth-child(2) { animation-delay: .12s; }
.tyr-post-card:nth-child(3) { animation-delay: .19s; }
.tyr-post-card:nth-child(4) { animation-delay: .26s; }
