/**
 * Category Guides CSS
 * Source: Final HTML/Guide Section/Guide Buying Product section/alagheza_buying_guides_tv_section_v4_backend_schema (1).html
 * Template: category-alagheza_guide.php — /{category}/guides/
 */

/* ===== CSS Variables ===== */
:root {
  --navy: #071b46;
  --blue: #1769ff;
  --blue2: #0B2E83;
  --soft: #f6f9ff;
  --line: #e8eef8;
  --text: #0a1f44;
  --muted: #64748b;
  --green: #16a34a;
  --orange: #f97316;
  --purple: #7c3aed;
  --red: #ef4444;
  --shadow: 0 12px 34px rgba(11, 31, 68, .08);
  --radius: 22px;
}

* { box-sizing: border-box; }

body.category-guides {
  margin: 0;
  font-family: 'Tajawal', Arial, sans-serif;
  background: #fff;
  color: var(--text);
  line-height: 1.75;
}

body.category-guides .page,
body.category-guides #al-page {
  max-width: none;
  margin: 0;
  padding: 0;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.category-guides .container { width: min(1440px, 94%); margin: auto; }
.category-guides .mini { font-size: 13px; color: var(--muted); }

/* ===== Section 1: Hero ===== */
.category-guides .hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 15% 20%, #e9f4ff 0, #fff 43%), linear-gradient(180deg, #f8fbff 0, #fff 100%);
  border-bottom: 1px solid var(--line);
}

.category-guides .hero-wrap {
  min-height: 315px;
  display: grid;
  grid-template-columns: 410px 1fr;
  gap: 42px;
  align-items: center;
  padding: 22px 0 28px;
}

.category-guides .hero h1 {
  text-align: center;
  margin: 0;
  font-size: 46px;
  line-height: 1.12;
  color: #071b46;
  font-weight: 900;
}

.category-guides .hero p {
  text-align: center;
  max-width: 800px;
  margin: 16px auto 0;
  color: #18345f;
  font-size: 19px;
  font-weight: 700;
}

.category-guides .hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.category-guides .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 13px;
  padding: 11px 17px;
  font-weight: 900;
  color: var(--navy);
  box-shadow: 0 5px 16px rgba(11, 31, 68, .05);
}

.category-guides .btn.primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* TV Art */
.category-guides .tv-art {
  height: 255px;
  position: relative;
}

.category-guides .big-tv {
  position: absolute;
  left: 42px;
  top: 34px;
  width: 320px;
  height: 178px;
  border-radius: 18px;
  background: linear-gradient(135deg, #071b46 0, #1769ff 40%, #13c2ff 100%);
  border: 12px solid #0f172a;
  box-shadow: 0 24px 38px rgba(10, 31, 68, .20);
}

.category-guides .big-tv:before {
  content: "4K";
  position: absolute;
  right: 20px;
  top: 16px;
  color: #fff;
  font-weight: 900;
  font-size: 46px;
}

.category-guides .big-tv:after {
  content: "";
  position: absolute;
  bottom: -38px;
  right: 50%;
  width: 128px;
  height: 8px;
  background: #0f172a;
  transform: translateX(50%);
  box-shadow: 0 -18px 0 -4px #0f172a;
}

.category-guides .remote {
  position: absolute;
  left: 15px;
  top: 130px;
  width: 36px;
  height: 118px;
  border-radius: 18px;
  background: #111827;
  box-shadow: 0 18px 24px rgba(10, 31, 68, .18);
}

.category-guides .remote:before {
  content: "";
  position: absolute;
  top: 18px;
  right: 11px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 26px 0 #64748b, 0 52px 0 #64748b;
}

.category-guides .sound {
  position: absolute;
  right: 28px;
  bottom: 24px;
  width: 210px;
  height: 34px;
  border-radius: 17px;
  background: #111827;
}

.category-guides .sound:after {
  content: "";
  position: absolute;
  inset: 12px 24px;
  border-radius: 20px;
  background: repeating-linear-gradient(90deg, #64748b 0 5px, transparent 5px 13px);
}

/* Features strip */
.category-guides .features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.category-guides .feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 8px 22px rgba(10, 31, 68, .04);
}

.category-guides .feature .ic {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
}

.category-guides .feature b { display: block; font-size: 17px; color: #092653; }
.category-guides .feature span { display: block; color: #62748d; font-weight: 700; font-size: 14px; }

.category-guides .green { background: #eafaf1; color: #16a34a; }
.category-guides .purple { background: #f2ecff; color: #7c3aed; }
.category-guides .blue { background: #eaf3ff; color: #1769ff; }
.category-guides .orange { background: #fff1e7; color: #f97316; }

/* ===== Section 2: Section/Box layout ===== */
.category-guides .section { padding: 28px 0; }
.category-guides .box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 8px 26px rgba(10, 31, 68, .04);
}

.category-guides .section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.category-guides .section-head.center { justify-content: center; text-align: center; }

.category-guides .section-head h2 {
  margin: 0;
  font-size: 28px;
  color: #092653;
  font-weight: 900;
}

.category-guides .section-head p { margin: 5px 0 0; color: #64748b; font-weight: 700; }
.category-guides .view-all { color: var(--blue); font-weight: 900; }

/* ===== Section 3: Quick Grid ===== */
.category-guides .quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.category-guides .quick-card {
  background: linear-gradient(135deg, #f8fbff, #fff);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  min-height: 140px;
  position: relative;
  overflow: hidden;
  transition: .2s;
  display: block;
}

.category-guides .quick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.category-guides .quick-card b { display: block; font-size: 17px; color: #092653; margin-bottom: 5px; }
.category-guides .quick-card span {
  display: block;
  color: #64748b;
  font-weight: 700;
  font-size: 13px;
  max-width: 72%;
}

.category-guides .quick-card em {
  position: absolute;
  left: 13px;
  bottom: 10px;
  font-size: 44px;
  font-style: normal;
}

/* Featured tag on quick cards */
.category-guides .quick-card i.quick-tag {
  position: absolute; top: 10px; right: 10px;
  font-style: normal; background: var(--green); color: #fff;
  font-size: 11px; font-weight: 900; padding: 3px 9px; border-radius: 999px;
}

/* Load More button (featured guides section) */
.category-guides .quick-load-more {
  display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px;
  margin-top: 16px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--blue); font-family: inherit; font-size: 14px; font-weight: 900;
  cursor: pointer; transition: .18s;
}
.category-guides .quick-load-more:hover { border-color: #c8d8f2; background: #f8fbff; }
.category-guides .quick-load-more:disabled { cursor: wait; opacity: .7; }
.category-guides .quick-load-more.loading::after {
  content: ""; width: 12px; height: 12px; border: 2px solid currentColor; border-top-color: transparent;
  border-radius: 50%; animation: al-quick-spin .7s linear infinite;
}
@keyframes al-quick-spin { to { transform: rotate(360deg); } }

/* ===== Section 4: Guide Grid ===== */
.category-guides .guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.category-guides .guide-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  gap: 14px;
  align-items: center;
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(10, 31, 68, .035);
  transition: .2s;
  text-decoration: none;
}

.category-guides .guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d8e7ff; }

.category-guides .guide-card h3 { margin: 0 0 7px; font-size: 16px; line-height: 1.45; font-weight: 900; color: #092653; }

.category-guides .guide-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 9px;
  color: #5f7088;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.45;
}

.category-guides .read { color: var(--blue); font-weight: 900; font-size: 14px; }

.category-guides .guide-card .thumb {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 43px;
  line-height: 1;
}

.category-guides .tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #eef5ff;
  color: #1769ff;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 7px;
}

/* ===== Section 5: Layout + Steps + Price Center ===== */
.category-guides .layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr !important;
  gap: 20px;
}

.category-guides .steps { display: grid; gap: 12px; }

.category-guides .step {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  background: #f8fbff;
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 14px;
}

.category-guides .num {
  min-width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #eaf3ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.category-guides .side-card {
  background: linear-gradient(135deg, #071b46, #1769ff);
  color: #fff;
  border-radius: 18px;
  padding: 24px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-guides .side-card h3 { font-size: 26px; margin: 0 0 8px; }
.category-guides .side-card p { color: #dbeafe; font-weight: 700; }
.category-guides .side-card .btn { background: #fff; color: #071b46; border: 0; width: max-content; }

/* Price center */
.category-guides .price-center {
  background: linear-gradient(135deg, #071b46 0%, #1769ff 68%, #13c2ff 100%);
  color: #fff;
  border-radius: 18px;
  padding: 24px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.category-guides .price-center:before {
  content: "";
  position: absolute;
  inset: -50px auto auto -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}

.category-guides .price-center h3 { font-size: 25px; margin: 0 0 8px; }
.category-guides .price-center p { color: #eaf4ff; font-weight: 800; line-height: 1.7; }

.category-guides .price-points { display: grid; gap: 8px; margin: 12px 0 16px; }

.category-guides .price-points span {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  padding: 9px 11px;
  font-weight: 900;
}

.category-guides .price-center .btn { background: #fff; color: #071b46; border: 0; width: max-content; }

.category-guides .price-badge {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 7px;
  background: #10b981;
  color: #fff;
  border-radius: 999px;
  padding: 7px 11px;
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 10px;
}

/* ===== Section 6: Comparison ===== */
.category-guides .comparison {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.category-guides .compare-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: #fff;
  display: block;
}

.category-guides .compare-card h3 { margin: 0 0 8px; color: #092653; }
.category-guides .compare-card p { margin: 0; color: #64748b; font-weight: 700; }
.category-guides .compare-card .btn { margin-top: 14px; padding: 8px 13px; font-size: 13px; display: inline-flex; }

/* ===== Section 7: FAQ ===== */
.category-guides .faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 18px;
  margin-bottom: 10px;
  background: #fff;
}

.category-guides .faq summary { cursor: pointer; font-weight: 900; color: #092653; }
.category-guides .faq p { margin: 10px 0 0; color: #5f7088; font-weight: 600; }

/* ===== Section 8: CTA ===== */
.category-guides .cta {
  border-radius: 24px;
  background: linear-gradient(135deg, #071b46, #1769ff);
  color: #fff;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  overflow: hidden;
}

.category-guides .cta h2 { margin: 0; font-size: 30px; }
.category-guides .cta p { margin: 8px 0 0; color: #dbeafe; font-weight: 700; }
.category-guides .cta .btn { background: #fff; color: #071b46; border: none; }

/* ===== Section 9: Breadcrumb ===== */
.category-guides .breadcrumb {
  text-align: center;
  color: #52709b;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 10px;
}

/* ===== Responsive: max 1100px ===== */
@media (max-width: 1100px) {
  .category-guides .hero-wrap { grid-template-columns: 1fr; }
  .category-guides .tv-art { display: none; }
  .category-guides .features,
  .category-guides .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .category-guides .guide-grid,
  .category-guides .comparison { grid-template-columns: repeat(2, 1fr); }
  .category-guides .layout { grid-template-columns: 1fr !important; }
  .category-guides .hero h1 { font-size: 38px; }
}

/* ===== Responsive: max 768px ===== */
@media (max-width: 768px) {
  .category-guides .container { width: min(100% - 24px, 520px); }

  .category-guides .hero-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 16px 0 18px !important;
  }

  .category-guides .tv-art {
    display: block !important;
    width: 420px !important;
    max-width: 100% !important;
    height: 160px !important;
    margin: 0 auto 4px !important;
    transform: scale(.64) !important;
    transform-origin: top center !important;
    overflow: visible !important;
  }

  .category-guides .hero h1 { font-size: 27px !important; }
  .category-guides .hero p { font-size: 13px !important; line-height: 1.6 !important; margin-top: 8px !important; }

  .category-guides .features {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .category-guides .feature {
    padding: 9px 8px !important;
    border-radius: 12px !important;
    gap: 7px !important;
  }

  .category-guides .feature .ic {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    font-size: 15px !important;
  }

  .category-guides .feature b { font-size: 12px !important; line-height: 1.2 !important; white-space: nowrap !important; }
  .category-guides .feature span { font-size: 10.5px !important; line-height: 1.25 !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }

  .category-guides .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }

  .category-guides .quick-card { min-height: 124px !important; padding: 12px !important; }
  .category-guides .quick-card b { font-size: 14px !important; }
  .category-guides .quick-card span { font-size: 11px !important; line-height: 1.35 !important; }
  .category-guides .quick-card em { font-size: 34px !important; }

  .category-guides .guide-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 10px !important;
    padding: 2px 2px 10px !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .category-guides .guide-grid::-webkit-scrollbar { height: 0 !important; display: none !important; }

  .category-guides .guide-card {
    flex: 0 0 238px !important;
    width: 238px !important;
    min-height: 108px !important;
    grid-template-columns: minmax(0, 1fr) 58px !important;
    gap: 8px !important;
    padding: 12px !important;
    border-radius: 13px !important;
    scroll-snap-align: start !important;
  }

  .category-guides .guide-card h3 { font-size: 13.5px !important; line-height: 1.35 !important; margin: 0 0 5px !important; }
  .category-guides .guide-card p { font-size: 10.5px !important; line-height: 1.35 !important; margin: 0 0 5px !important; }
  .category-guides .guide-card .thumb { width: 58px !important; height: 58px !important; font-size: 32px !important; border-radius: 14px !important; }
  .category-guides .read { font-size: 11px !important; }

  .category-guides .comparison { grid-template-columns: 1fr; }

  .category-guides .cta { display: block; text-align: center; padding: 18px; border-radius: 17px; }
  .category-guides .cta h2 { font-size: 21px; }
  .category-guides .cta .btn { margin-top: 12px; }

  .category-guides .section { padding: 18px 0; }
  .category-guides .box { padding: 14px; border-radius: 15px; }
  .category-guides .section-head { margin-bottom: 13px; }
  .category-guides .section-head h2 { font-size: 20px; }

  .category-guides .hero-actions { gap: 8px; }
  .category-guides .btn { padding: 9px 13px; font-size: 13px; border-radius: 10px; }
}

@media (max-width: 560px) {
  .category-guides .features { grid-template-columns: 1fr 1fr !important; }
  .category-guides .quick-grid { grid-template-columns: 1fr 1fr !important; }
}

@media (min-width: 1101px) {
  .category-guides .hero-wrap { grid-template-columns: 410px 1fr; }
}
