:root {
  --palestine-red: #ce1126;
  --palestine-green: #007a33;
  --palestine-black: #000000;
  --palestine-white: #ffffff;
  --primary: var(--palestine-red);
  --secondary: var(--palestine-green);
  --dark: var(--palestine-black);
  --light: #f8fafc;
  --accent: var(--palestine-red);
  --surface: rgba(255, 255, 255, 0.74);
  --surface-solid: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(0, 0, 0, 0.1);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
  --soft-shadow: 0 12px 34px rgba(206, 17, 38, 0.16);
}

[data-theme="dark"] {
  --light: #08111f;
  --surface: rgba(15, 23, 42, 0.68);
  --surface-solid: #111c2f;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --line: rgba(226, 232, 240, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
   margin: 0;
   min-height: 100vh;
   font-family: Tahoma, Arial, sans-serif;
   background:
     radial-gradient(circle at 8% 10%, rgba(206, 17, 38, 0.18), transparent 28%),
     radial-gradient(circle at 88% 18%, rgba(0, 122, 51, 0.14), transparent 24%),
     linear-gradient(180deg, var(--light) 0%, #eef7fb 100%);
   color: var(--text);
   line-height: 1.85;
}

[data-theme="dark"] body,
body[data-theme="dark"] {
   background:
     radial-gradient(circle at 8% 10%, rgba(206, 17, 38, 0.18), transparent 28%),
     radial-gradient(circle at 88% 18%, rgba(0, 122, 51, 0.12), transparent 24%),
     linear-gradient(180deg, #08111f 0%, #000000 100%);
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(16px, 5vw, 72px);
  background: rgba(248, 250, 252, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

body[data-theme="dark"] .site-header {
  background: rgba(8, 17, 31, 0.76);
}

.brand {
   display: inline-flex;
   align-items: center;
   gap: 12px;
   max-width: 420px;
   color: var(--text);
   font-weight: 800;
   text-decoration: none;
}

.brand img {
   display: block;
   width: 46px;
   height: 46px;
   object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  border-radius: 99px;
  transition: width 0.25s ease;
}

.site-nav a:hover {
  color: var(--primary);
}

.site-nav a:hover::after {
  width: 100%;
}

.site-nav .admin-button {
  padding: 10px 16px;
  color: white;
  background: var(--dark);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.site-nav .admin-button::after {
  display: none;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  border-radius: 999px;
}

.hero {
   position: relative;
   display: grid;
   grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
   gap: clamp(28px, 5vw, 72px);
   min-height: calc(100vh - 74px);
   align-items: center;
   overflow: hidden;
   padding: clamp(56px, 8vw, 104px) clamp(18px, 7vw, 112px);
   color: white;
   background:
     linear-gradient(135deg, rgba(0, 0, 0, 0.94), rgba(206, 17, 38, 0.76)),
     radial-gradient(circle at 78% 30%, rgba(0, 122, 51, 0.46), transparent 30%),
     var(--dark);
}

.hero::before {
   position: absolute;
   inset: 0;
   content: "";
   background-image:
     linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
     linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
   background-size: 42px 42px;
   mask-image: linear-gradient(to bottom, black, transparent 85%);
}

body[data-theme="dark"] body,
body[data-theme="dark"] {
   background:
     radial-gradient(circle at 8% 10%, rgba(206, 17, 38, 0.18), transparent 28%),
     radial-gradient(circle at 88% 18%, rgba(0, 122, 51, 0.12), transparent 24%),
     linear-gradient(180deg, #08111f 0%, #000000 100%);
}

.hero-content,
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-content {
  grid-column: 1;
  max-width: 760px;
  text-align: right;
}

.hero-visual {
  grid-column: 2;
  min-height: 430px;
}

.eyebrow,
.section-heading span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.14;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 22px);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  margin-top: 32px;
  padding: 16px 30px;
  color: #04111d;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  border-radius: 18px;
  box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.42), 0 22px 44px rgba(34, 197, 94, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: ctaGlow 2.7s ease-in-out infinite;
}

.cta:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 0 38px rgba(56, 189, 248, 0.44), 0 28px 60px rgba(34, 197, 94, 0.3);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-meta span {
  padding: 8px 12px;
  color: rgba(255,255,255,.86);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.visual-card {
   position: absolute;
   background: rgba(255, 255, 255, 0.16);
   border: 1px solid rgba(255, 255, 255, 0.22);
   border-radius: 28px;
   box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
   backdrop-filter: blur(20px);
}

.visual-card.main {
   top: 52px;
   right: 10px;
   width: min(100%, 420px);
   padding: 34px;
   background: linear-gradient(135deg, rgba(206, 17, 38, 0.22), rgba(0, 122, 51, 0.18)), rgba(255, 255, 255, 0.16);
}

.visual-card.main strong {
  display: block;
  margin-bottom: 10px;
  font-size: 28px;
}

.visual-card.main p {
  margin: 0;
  color: rgba(255,255,255,.76);
}

.visual-card.small {
  display: grid;
  place-items: center;
  width: 150px;
  height: 96px;
  font-weight: 900;
}

.visual-card.one {
  top: 275px;
  left: 42px;
}

.visual-card.two {
  right: 120px;
  bottom: 20px;
}

.pulse-dot {
   display: block;
   width: 14px;
   height: 14px;
   margin-bottom: 22px;
   background: var(--secondary);
   border-radius: 50%;
   box-shadow: 0 0 0 12px rgba(0, 122, 51, 0.16);
   animation: pulse 1.8s ease-in-out infinite;
}

.route-line {
  position: absolute;
  inset: 95px 90px 80px 70px;
  border: 2px dashed rgba(255,255,255,.28);
  border-radius: 42px;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(44px, 7vw, 86px) 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-heading h2,
.contact h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.28;
  letter-spacing: 0;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(280px, 1.14fr);
  gap: 34px;
  align-items: center;
}

.intro-section p,
.feature-card p,
.news-card p,
.contact p {
  color: var(--muted);
  font-size: 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 0;
}

.feature-card,
.stat-card,
.news-card,
.intro-section,
.contact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.feature-card {
  padding: 26px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.feature-card:hover,
.news-card:hover,
.stat-card:hover {
  border-color: rgba(14, 165, 233, 0.34);
  box-shadow: 0 28px 80px rgba(14, 165, 233, 0.16);
  transform: translateY(-5px);
}

.feature-card .icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-bottom: 18px;
  color: white;
  font-size: 24px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 18px;
}

.feature-card h3,
.news-card h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 22px;
}

.feature-card p,
.news-card p {
  margin: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-card {
  padding: 24px;
  transition: transform .22s ease, box-shadow .22s ease;
}

.stat-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 18px;
}

.stat-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.users-icon,
.news-icon {
  color: var(--primary);
  background: rgba(14, 165, 233, 0.12);
}

.check-icon {
  color: var(--secondary);
  background: rgba(34, 197, 94, 0.12);
}

.clock-icon {
  color: var(--accent);
  background: rgba(56, 189, 248, 0.12);
}

.stat-card strong {
  display: block;
  color: var(--text);
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1;
}

.stat-card span:last-child {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 800;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-card {
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}

.news-image {
   display: grid;
   min-height: 170px;
   place-items: center;
   background:
     linear-gradient(135deg, rgba(206, 17, 38, .86), rgba(0, 122, 51, .78)),
     var(--primary);
}

.news-image span {
   color: white;
   font-size: 32px;
   font-weight: 900;
}

.news-image-thumb {
   width: 100%;
   height: 170px;
   object-fit: cover;
}

.news-body {
  padding: 24px;
}

.news-body time {
  display: block;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-item {
  position: relative;
  min-height: 220px;
  margin: 0;
  overflow: hidden;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-item figcaption {
  position: absolute;
  inset-inline: 14px;
  bottom: 14px;
  padding: 10px 14px;
  color: white;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.contact {
    display: grid;
    margin-bottom: 70px;
    padding: clamp(32px, 5vw, 54px);
    overflow: hidden;
    background:
      linear-gradient(135deg, rgba(206, 17, 38, 0.18), rgba(0, 122, 51, 0.14)),
      var(--surface);
}

.channels-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.channel-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--surface-solid);
    border: 1px solid var(--line);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    flex: 1 1 200px;
    max-width: 100%;
}

.channel-card:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(206, 17, 38, 0.2);
}

.channel-card h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 700;
    color: inherit;
}

.channel-card p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    color: inherit;
}

.channel-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    background: rgba(206, 17, 38, 0.1);
    border-radius: 10px;
}

.channel-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.channels-grid {
   display: flex;
   flex-wrap: wrap;
   gap: 12px;
   margin-top: 20px;
}

.channel-link {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   padding: 10px 18px;
   color: var(--text);
   background: var(--surface-solid);
   border: 1px solid var(--line);
   border-radius: 999px;
   text-decoration: none;
   font-weight: 600;
   transition: all 0.2s ease;
}

.channel-link:hover {
   background: var(--primary);
   color: white;
   transform: translateY(-2px);
}

.theme-toggle,
.scroll-top {
  position: fixed;
  left: 18px;
  z-index: 60;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: white;
  background: var(--dark);
  border: 0;
  border-radius: 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}

.theme-toggle {
  bottom: 76px;
}

.scroll-top {
  bottom: 20px;
  opacity: 0;
  pointer-events: none;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.theme-toggle:hover,
.scroll-top:hover {
  transform: translateY(-2px);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
   50% {
     box-shadow: 0 0 0 18px rgba(0, 122, 51, 0);
   }
}

@keyframes ctaGlow {
   50% {
     box-shadow: 0 0 34px rgba(206, 17, 38, 0.36), 0 22px 44px rgba(0, 122, 51, 0.24);
   }
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-content,
  .hero-visual {
    grid-column: auto;
  }

  .hero-visual {
    min-height: 360px;
  }

  .feature-grid,
  .stats,
  .news-grid,
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .intro-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: center;
  }

  .brand {
    max-width: calc(100% - 64px);
    font-size: 14px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    background: var(--surface-solid);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 10px 12px;
  }

  .site-nav .admin-button {
    text-align: center;
  }

  .hero {
    padding-top: 54px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-visual {
    min-height: 300px;
  }

  .visual-card.main {
    right: 0;
    width: 100%;
  }

  .visual-card.small {
    width: 122px;
    height: 76px;
  }

  .visual-card.one {
    left: 8px;
  }

  .visual-card.two {
    right: 34px;
  }

  .feature-grid,
  .stats,
  .news-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .section {
    width: min(100% - 28px, 1180px);
  }
}
