/* HalalNews™ Global Network: burgundy, gold and white */
:root {
  --burgundy: #6E1530;
  --burgundy-dark: #4A0E20;
  --gold: #B8892E;
  --gold-light: #E0B656;
  --gold-text: #8A6420;
  --ink: #2A1A1F;
  --muted: #5E4D53;
  --paper: #FFFFFF;
  --cream: #FAF6EF;
  --line: #E8DDD0;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(74, 14, 32, 0.08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: var(--burgundy); }
a:hover { color: var(--burgundy-dark); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); color: var(--burgundy); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-alt { background: var(--cream); }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 8px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 3px solid var(--gold);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--burgundy); }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--burgundy); color: var(--gold-light);
  display: grid; place-items: center; font-weight: 700; font-size: 0.95rem;
  border: 2px solid var(--gold-light);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.1rem; }
.brand-text small { color: var(--gold-text); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }

.site-nav { display: flex; gap: 4px; }
.site-nav a {
  text-decoration: none; color: var(--ink);
  padding: 10px 14px; border-radius: 8px; font-size: 0.95rem;
  min-height: 44px; display: flex; align-items: center;
}
.site-nav a:hover { background: var(--cream); color: var(--burgundy); }
.site-nav a.is-active { color: var(--burgundy); font-weight: 700; box-shadow: inset 0 -3px 0 var(--gold); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--burgundy); border-radius: 2px; }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); flex-direction: column; padding: 8px 20px 16px;
    border-bottom: 3px solid var(--gold); box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a.is-active { box-shadow: none; }
}

/* Hero */
.hero {
  background: var(--burgundy);
  color: #fff;
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 380px; height: 380px; border-radius: 50%;
  border: 40px solid rgba(224, 182, 86, 0.12);
}
.hero .eyebrow { color: var(--gold-light); }
.hero h1 { color: #fff; max-width: 760px; }
.hero p.lead { font-size: 1.1rem; max-width: 640px; color: #F3E7E9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-family: inherit; font-size: 0.95rem; font-weight: 700;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
}
.btn-gold { background: var(--gold-light); color: var(--burgundy-dark); }
.btn-gold:hover { background: #EBC56E; color: var(--burgundy-dark); }
.btn-outline { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-primary { background: var(--burgundy); color: #fff; }
.btn-primary:hover { background: var(--burgundy-dark); color: #fff; }
.btn-ghost { border-color: var(--burgundy); color: var(--burgundy); background: transparent; }
.btn-ghost:hover { background: var(--cream); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 0.85rem; }
.btn-danger { background: #9B1C1C; color: #fff; }

/* Featured webinar */
.featured {
  margin-top: -40px; position: relative; z-index: 2;
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  border-top: 6px solid var(--gold);
  padding: 32px;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px;
}
@media (max-width: 860px) { .featured { grid-template-columns: 1fr; padding: 24px; } }

.meta-row { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 12px 0 16px; font-weight: 700; color: var(--burgundy); }

.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 16px 0 20px; }
.countdown div {
  background: var(--burgundy); color: #fff; border-radius: 10px;
  padding: 12px 4px; text-align: center;
}
.countdown strong { display: block; font-size: 1.6rem; color: var(--gold-light); line-height: 1.1; }
.countdown span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }

.times { background: var(--cream); border-radius: 10px; padding: 16px 18px; }
.times h3 { color: var(--burgundy); font-size: 0.95rem; }
.times ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; font-size: 0.88rem; }
.times li { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed var(--line); padding: 3px 0; }
.times li b { color: var(--burgundy); }

/* Speakers */
.speakers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 16px; }
.speaker {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
}
.speaker-head { display: flex; align-items: center; gap: 14px; }
.speaker img, .speaker .avatar {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--gold-light); flex: 0 0 84px;
}
.speaker .avatar { background: var(--burgundy); color: var(--gold-light); display: grid; place-items: center; font-weight: 700; font-size: 1.4rem; }
.speaker h3 { margin: 0; color: var(--burgundy); }
.speaker .role { font-size: 0.85rem; color: var(--muted); margin: 2px 0 0; }
.speaker .topic { font-style: italic; color: var(--gold-text); font-weight: 700; margin: 0; }
.speaker .bio { font-size: 0.9rem; margin: 0; }

/* Cards grid */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line);
  overflow: hidden; display: flex; flex-direction: column;
}
.card-top { background: var(--burgundy); color: #fff; padding: 18px 20px; }
.card-top .num { color: var(--gold-light); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.card-top h3 { color: #fff; margin: 6px 0 0; }
.card-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body .date { font-weight: 700; color: var(--burgundy); }
.card-body .who { font-size: 0.9rem; color: var(--muted); }
.card-actions { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }

.video { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.pillar { background: var(--paper); border-radius: var(--radius); padding: 20px; border-top: 4px solid var(--gold); }
.pillar h3 { color: var(--burgundy); }
.pillar p { font-size: 0.92rem; margin: 0; }

.values { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.values span { background: var(--burgundy); color: #fff; padding: 8px 16px; border-radius: 999px; font-size: 0.88rem; }

/* CTA band */
.cta {
  background: var(--burgundy-dark); color: #fff; border-radius: var(--radius);
  padding: 32px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
}
.cta h2 { color: #fff; margin: 0; }
.cta p { margin: 6px 0 0; color: #F3E7E9; }

/* Forms */
.form { display: grid; gap: 16px; max-width: 640px; }
.form label { font-weight: 700; font-size: 0.9rem; display: block; margin-bottom: 6px; color: var(--burgundy); }
.form input, .form textarea, .form select {
  width: 100%; font-family: inherit; font-size: 1rem; padding: 12px 14px;
  border: 1px solid #CDBFB4; border-radius: 10px; background: #fff; color: var(--ink);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 3px solid var(--gold-light); border-color: var(--gold); }
.form textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }

.notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; }
.notice-ok { background: #EAF5EC; color: #1E5B2A; border: 1px solid #B8DDBF; }
.notice-err { background: #FBECEC; color: #8A1C1C; border: 1px solid #EBC0C0; }

.page-head { background: var(--burgundy); color: #fff; padding: 44px 0; }
.page-head h1 { color: #fff; margin: 0; }
.page-head p { color: #F3E7E9; margin: 8px 0 0; }

.empty { color: var(--muted); font-style: italic; }

/* Footer */
.site-footer { background: var(--burgundy-dark); color: #F3E7E9; margin-top: 56px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-top: 32px; padding-bottom: 20px; }
.footer-inner p { margin: 4px 0 0; color: var(--gold-light); font-size: 0.9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: #fff; text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.footer-links a:hover { color: var(--gold-light); }
.footer-base { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 14px; padding-bottom: 20px; }

/* Admin */
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { color: var(--burgundy); }
.table-scroll { overflow-x: auto; }
.speaker-fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: grid; gap: 12px; }
.speaker-fieldset legend { font-weight: 700; color: var(--burgundy); padding: 0 6px; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.times li b { white-space: nowrap; }
@media (max-width: 520px) { .times ul { grid-template-columns: 1fr; } }

/* Logo in header */
.header-inner { min-height: 84px; }
.brand-logo { height: 64px; width: auto; }
@media (max-width: 760px) { .brand-logo { height: 52px; } }

/* Accessibility and SEO helpers */
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--burgundy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.card-top h3 a { color: #fff; text-decoration: none; }
.card-top h3 a:hover { text-decoration: underline; }
.card-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-thumb .play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(110, 21, 48, 0.9); border: 3px solid var(--gold-light); }
.card-thumb .play::after { content: ""; position: absolute; left: 25px; top: 18px; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.crumbs { font-size: 0.85rem; margin-bottom: 10px; color: #F3E7E9; }
.crumbs a { color: var(--gold-light); }
@media print { .site-header, .site-footer, .inline-actions, form { display: none !important; } }
