/* ============================================
   SECTIONS.CSS — TrueValueTax
   Problems + Videos + Blog + Newsletter
   ============================================ */

/* ========== PROBLEMS SECTION ========== */
.prob-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.prob-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.prob-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(204, 0, 0, 0.05),
    transparent
  );
  opacity: 0;
  transition: opacity 0.4s;
}

.prob-card:hover {
  border-color: var(--red);
  transform: translateY(-8px);
  box-shadow:
    0 20px 50px rgba(0,0,0,0.4),
    0 0 0 1px var(--red);
}
.prob-card:hover::before { opacity: 1; }

.prob-icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: block;
}

.prob-title {
  font-family: var(--font-cond);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.prob-text {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 16px;
}

.prob-stat {
  display: inline-block;
  background: rgba(204, 0, 0, 0.12);
  border: 1px solid rgba(204, 0, 0, 0.3);
  padding: 5px 14px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ========== VIDEOS SECTION ========== */
.vid-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  margin-bottom: 36px;
}

/* Featured Video */
.vid-featured {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t-normal);
}
.vid-featured:hover {
  border-color: var(--red);
  box-shadow: 0 0 40px rgba(204,0,0,0.12);
}

.vid-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--navy2);
}
.vid-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.vid-live-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: var(--red);
  color: var(--white);
  padding: 5px 14px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  pointer-events: none;
}

.vid-info {
  padding: 22px 24px;
}

.vid-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.vid-tag-sm {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 3px 10px;
  border-radius: 3px;
}

.vid-date-sm {
  font-size: 12px;
  color: var(--gray);
}

.vid-title-lg {
  font-family: var(--font-cond);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--white);
}

/* Video Side List */
.vid-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vid-mini {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  transition: all var(--t-normal);
  cursor: pointer;
}
.vid-mini:hover {
  border-color: var(--red);
  transform: translateX(5px);
}

.vid-mini-thumb {
  width: 110px;
  flex-shrink: 0;
  background: var(--navy2);
  position: relative;
  overflow: hidden;
}
.vid-mini-thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
}

.vid-mini-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vid-mini-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

.vid-mini-title {
  font-family: var(--font-cond);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--white);
}

.vid-cta {
  text-align: center;
  margin-top: 8px;
}

/* ========== BLOG SECTION ========== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.blog-card::after {
  content: '→';
  position: absolute;
  bottom: 26px;
  right: 26px;
  font-size: 20px;
  color: var(--border2);
  transition: all var(--t-normal);
}

.blog-card:hover {
  border-color: var(--red);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.blog-card:hover::after {
  color: var(--red);
  transform: translateX(4px);
}

.bc-date {
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.bc-tag {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy);
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.bc-tag.red {
  background: var(--red);
  color: var(--white);
}

.bc-title {
  font-family: var(--font-cond);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 12px;
}

.bc-text {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.72;
}

/* ========== NEWSLETTER ========== */
.nl-section {
  background: linear-gradient(
    135deg,
    #0D0020 0%,
    #200010 50%,
    #0D0020 100%
  );
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.nl-wrap {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}

.nl-icon {
  font-size: 52px;
  display: block;
  margin-bottom: 20px;
}

.nl-title {
  font-family: var(--font-head);
  font-size: clamp(42px, 5vw, 58px);
  letter-spacing: 3px;
  margin-bottom: 14px;
  line-height: 1;
}
.nl-title span { color: var(--yellow); }

.nl-sub {
  font-size: 16px;
  color: var(--lgray);
  margin-bottom: 36px;
  line-height: 1.75;
}

.nl-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 16px;
}

.nl-input {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: var(--r-sm);
  padding: 16px 20px;
  color: var(--white);
  font-size: 15px;
  font-family: var(--font-body);
  transition: all var(--t-fast);
}
.nl-input:focus {
  outline: none;
  border-color: var(--yellow);
  background: rgba(255,215,0,0.05);
}
.nl-input::placeholder {
  color: rgba(255,255,255,0.3);
}

.nl-btn {
  white-space: nowrap;
  font-family: var(--font-head) !important;
  font-size: 20px !important;
  letter-spacing: 3px !important;
  padding: 16px 28px !important;
}

.nl-fine {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 960px) {
  .prob-grid {
    grid-template-columns: 1fr 1fr;
  }
  .vid-grid {
    grid-template-columns: 1fr;
  }
  .vid-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .nl-form {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .prob-grid  { grid-template-columns: 1fr; }
  .vid-side   { grid-template-columns: 1fr; }
}