/* CatchDoms Restored — magazine-community layout, RTL-aware */
*,*::before,*::after{box-sizing:border-box}
:root{
  --color-text:#1f2937;
  --color-muted:#6b7280;
  --color-link:#1e40af;
  --color-accent:#f59e0b;
  --color-accent-dark:#d97706;
  --color-bg:#fff;
  --color-bg-alt:#f9fafb;
  --color-border:#e5e7eb;
  --max-width:1200px;
}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  color:var(--color-text);
  background:var(--color-bg-alt);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

/* HEADER */
.site-header{
  background:var(--color-bg);
  border-bottom:1px solid var(--color-border);
  padding:1rem 2rem;
  display:flex;align-items:center;gap:1rem;flex-wrap:wrap;
  max-width:var(--max-width);margin:0 auto;
}
.site-header .logo{max-height:48px;width:auto}
.site-header .site-title{margin:0;font-size:1.35rem;font-weight:700;flex:1}
.site-header .site-title a{color:#111827;text-decoration:none}

/* NAV */
.site-nav{
  background:var(--color-bg);
  border-bottom:1px solid var(--color-border);
  padding:0.65rem 2rem;
  display:flex;flex-wrap:wrap;gap:1.25rem;
  max-width:var(--max-width);margin:0 auto;
  font-size:0.875rem;font-weight:500;
}
.site-nav a{color:var(--color-muted);text-decoration:none;text-transform:uppercase;letter-spacing:0.5px;font-size:0.78rem}
.site-nav a:hover{color:var(--color-accent-dark)}

/* MAIN containers */
main{max-width:var(--max-width);margin:0 auto;padding:1.5rem 2rem}

/* HERO */
.hero{margin-bottom:2rem}
.hero-card{
  display:block;text-decoration:none;color:inherit;
  position:relative;border-radius:8px;overflow:hidden;
  background:linear-gradient(135deg,#f59e0b 0%,#d97706 100%);
  min-height:340px;
  box-shadow:0 4px 12px rgba(0,0,0,.06);
}
.hero-img{
  position:absolute;inset:0;
  background-size:cover;background-position:center;
  opacity:0.35;
}
.hero-content{
  position:relative;z-index:1;
  padding:3rem 2.5rem;color:#fff;
  max-width:60%;
}
.hero-title{margin:0 0 1rem;font-size:2rem;font-weight:700;line-height:1.2;text-shadow:0 1px 2px rgba(0,0,0,.2)}
.hero-excerpt{margin:0;font-size:1.05rem;opacity:0.95;line-height:1.5}

/* LAYOUT WITH SIDEBAR */
.layout-with-sidebar{display:grid;grid-template-columns:1fr 320px;gap:2.5rem}
@media (max-width:900px){.layout-with-sidebar{grid-template-columns:1fr}}

.main-content h2.section-heading{
  font-size:1.1rem;text-transform:uppercase;letter-spacing:1.5px;
  color:var(--color-muted);font-weight:600;
  border-bottom:2px solid var(--color-accent);
  padding-bottom:0.5rem;margin:0 0 1.5rem;
}

/* CARDS */
.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.25rem}
.card{
  display:block;background:var(--color-bg);
  border-radius:6px;overflow:hidden;text-decoration:none;color:var(--color-text);
  box-shadow:0 1px 3px rgba(0,0,0,.04);
  transition:box-shadow .15s,transform .15s;
}
.card:hover{box-shadow:0 6px 16px rgba(0,0,0,.1);transform:translateY(-3px)}
.card-img{width:100%;height:140px;object-fit:cover;background:var(--color-bg-alt);display:block}
.card-body{padding:1rem 1.1rem}
.card-title{margin:0 0 0.5rem;font-size:1rem;font-weight:600;line-height:1.35;color:#111827}
.card-excerpt{margin:0;font-size:0.85rem;color:var(--color-muted);line-height:1.5;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}

/* SIDEBAR */
.sidebar{display:flex;flex-direction:column;gap:1.25rem}
.widget{background:var(--color-bg);border-radius:6px;padding:1.25rem;box-shadow:0 1px 3px rgba(0,0,0,.04)}
.widget-title{
  margin:0 0 0.85rem;font-size:0.8rem;text-transform:uppercase;
  letter-spacing:1.5px;color:var(--color-muted);font-weight:600;
  border-bottom:2px solid var(--color-accent);padding-bottom:0.5rem;
}
.widget-list{list-style:none;padding:0;margin:0}
.widget-list li{padding:0.4rem 0;border-bottom:1px solid var(--color-border);font-size:0.92rem}
.widget-list li:last-child{border-bottom:none}
.widget-list a{color:var(--color-text);text-decoration:none;font-weight:500}
.widget-list a:hover{color:var(--color-accent-dark)}
.widget-cta{background:linear-gradient(135deg,#fef3c7 0%,#fde68a 100%)}
.widget-cta .widget-text{margin:0;font-size:0.88rem;color:#78350f}

/* SINGLE PAGE article */
article{background:var(--color-bg);border-radius:6px;padding:2rem 2.5rem;box-shadow:0 1px 3px rgba(0,0,0,.04);max-width:780px;margin:0 auto}
article h1{font-size:1.85rem;margin:0 0 1.5rem;color:#111827;line-height:1.3}
article h2{font-size:1.35rem;margin:2rem 0 1rem;color:#1f2937}
article h3{font-size:1.1rem;margin:1.5rem 0 0.75rem}
article p{margin:0 0 1.25rem;font-size:1.05rem;color:#374151}
article a{color:var(--color-link)}

.gallery{margin:1.5rem 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem}
.gallery img{width:100%;height:auto;border-radius:6px;border:1px solid var(--color-border)}

/* FOOTER */
.site-footer{
  background:#111827;color:#9ca3af;
  padding:2rem;margin-top:3rem;text-align:center;font-size:0.875rem;
}
.site-footer a{color:#d1d5db;text-decoration:none;margin:0 0.85rem}
.site-footer a:hover{color:#fff;text-decoration:underline}
.site-footer .copyright{margin-top:0.85rem;font-size:0.8rem;color:#6b7280}

.archive-list{list-style:none;padding:0}
.archive-list li{padding:0.75rem 0;border-bottom:1px solid var(--color-border)}

/* RESPONSIVE */
@media (max-width:640px){
  .site-header,.site-nav,main{padding-left:1rem;padding-right:1rem}
  .site-nav{gap:0.85rem}
  .hero-content{max-width:100%;padding:2rem 1.5rem}
  .hero-title{font-size:1.5rem}
  article{padding:1.5rem;margin:0 1rem}
}
