@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap");

:root {
  --primary: #1e3a8a; /* أزرق غامق */
  --secondary: #f97316; /* برتقالي */
  --neutral: #f3f4f6; /* رمادي فاتح */
  --danger: #dc2626; /* عاجل */
  --text: #111827; /* رمادي داكن */
}

* {
  box-sizing: border-box;
  text-decoration: none;
}

body {
  margin: 0;
  font-family: "Cairo", sans-serif;
  color: var(--text);
  background: #fff;
  text-decoration: none;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffffaa;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #e5e7eb;
}
.header .wrap {
  max-width: 1200px;
  margin: auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 20px;
  color: var(--primary);
  font-weight: 600;
}
.login {
  text-decoration: none;
  background-color: #1e3a8a;
  padding: 10px;
  color: white;
  border-radius: 20px;
  color: white;
  font-weight: 700;
  font-size: 18px;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  padding: 0;
  margin: 0;
}
.nav a {
  color: #111;
  text-decoration: none;
  font-weight: 600;
}
.nav a:hover {
  color: var(--primary);
}
.menu-toggle {
  display: none;
  border: 1px solid #e5e7eb;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff;
}

/* Ticker */
.ticker {
  background: var(--danger);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  font-size: 14px;
}
.ticker .inner {
  display: inline-block;
  padding: 8px 16px;
  animation: ticker 18s linear infinite;
}
@keyframes ticker {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Hero */
.hero {
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  inset: 0;
  background: #ececec;
  z-index: -1;
  min-height: clac(100vh - 86px);
}
.hero .content {
  display: flex;
  color: black;
  padding: 0 16px;
  justify-content: center;
  align-items: center;
  gap: 50px;
}
.hero .text {
  align-items: center;
  text-align: center;
  width: 400px;
}
.hero h1 {
  font-size: 42px;
  margin: 0 0 12px;
}
.hero p {
  font-size: 18px;
  opacity: 0.95;
  margin: 0 0 20px;
}
@media (max-width: 768px) {
  .hero .image {
    display: none;
  }
  .hero .text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}
.hero .image img {
  width: 400px;
  max-width: 100%;
  border-radius: 20px;
  padding-top: 50px;
}
.cta {
  display: inline-block;
  background: var(--secondary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}
.cta:hover {
  filter: brightness(0.95);
}

/* Home sections */
.container {
  max-width: 1100px;
  margin: 28px auto;
  padding: 0 16px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.card h3 {
  margin: 12px;
  font-size: 18px;
}
.card p {
  margin: 0 12px 12px;
  color: var(--muted);
  font-size: 14px;
}
.card a {
  margin: 12px;
  align-self: flex-start;
}
.story-page {
  max-width: 900px;
  margin: 30px auto;
  padding: 0 16px;
}
.story-page .meta {
  color: var(--muted);
  font-size: 14px;
}
.story-page img.feature {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 12px 0;
}
.comments .comment {
  background: var(--card);
  padding: 12px;
  border-radius: 10px;
  margin: 10px 0;
}
.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
.btn {
  background: var(--primary);
  color: #fff;
  border: 0;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
}
.btn.secondary {
  background: var(--secondary);
}
footer {
  margin-top: 30px;
  background: #f3f4f6;
  padding: 24px;
  text-align: center;
}

.news-grid img {
  max-width: 100% !important;
}
@media (max-width: 768px) {
  .container {
    text-align: center;
  }
  .container .card a {
    align-self: center;
    width: 100%;
  }
}
/* Footer */
footer {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 28px 16px;
  margin-top: 40px;
}
.footer-copy {
  opacity: 0.85;
  font-size: 14px;
}
.social-icons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 12px 0 6px;
}
.social-icons a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
}
.social-icons .facebook {
  background: #1877f2;
}
.social-icons .twitter {
  background: #111;
} /* X */
.social-icons .youtube {
  background: #cc0000;
}
.social-icons .instagram {
  background: red;
}
.social-icons .tiktok {
  background: black;
}

/* Responsive */
@media (max-width: 900px) {
  .hero h1 {
    font-size: 34px;
  }
}
@media (max-width: 640px) {
  .nav ul {
    display: none;
  }
  .menu-toggle {
    display: inline-block;
  }
  .hero {
    height: 80vh;
  }
  .hero h1 {
    font-size: 28px;
  }
}
@media (max-width: 678px) {
  .nav ul {
    color: red;
  }
}
