* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  direction: rtl;
  color: #032e3f;
  background: #f5f8fa;
  line-height: 1.9;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(
      circle at 12% 18%,
      rgba(248, 181, 23, 0.14),
      transparent 34%
    ),
    radial-gradient(circle at 88% 10%, rgba(3, 46, 63, 0.08), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f5f8fa 54%, #e9f0f3 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(3, 46, 63, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(3, 46, 63, 0.08) 1px, transparent 1px);
  background-size: 58px 58px;
  pointer-events: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

figure {
  margin: 0;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(3, 46, 63, 0.09);
}

.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(3, 46, 63, 0.14));
}

.brand span {
  display: grid;
}

.brand strong {
  color: #032e3f;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.4;
}

.brand small {
  color: rgba(3, 46, 63, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  border: 1px solid rgba(3, 46, 63, 0.1);
  background: rgba(255, 255, 255, 0.66);
  border-radius: 999px;
}

.main-nav a {
  color: #032e3f;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
  transition: 0.22s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(248, 181, 23, 0.22);
}

.login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  color: #032e3f;
  background: #f8b517;
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 16px 30px rgba(248, 181, 23, 0.26);
}

.articles-hero {
  padding: 96px 0 64px;
  color: #ffffff;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(248, 181, 23, 0.18),
      transparent 28%
    ),
    linear-gradient(135deg, #032e3f 0%, #062637 58%, #02141f 100%);
  border-bottom-left-radius: 46px;
  border-bottom-right-radius: 46px;
  overflow: hidden;
  position: relative;
}

.articles-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: linear-gradient(
    120deg,
    transparent 0 34%,
    rgba(255, 255, 255, 0.28) 34% 35%,
    transparent 35% 100%
  );
  background-size: 180px 180px;
}

.articles-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  text-align: center;
}

.articles-hero span,
.section-heading span,
.featured-content span,
.article-card span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
}

.articles-hero span {
  margin: 0 auto 16px;
  padding: 7px 15px;
  color: #032e3f;
  background: #f8b517;
}

.articles-hero h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 64px);
  line-height: 1.35;
  letter-spacing: -1.5px;
  font-weight: 950;
}

.articles-hero p {
  max-width: 760px;
  margin: 22px auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 2.1;
}

.articles-featured {
  margin-top: -38px;
  position: relative;
  z-index: 2;
}

.featured-article {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
  padding: 26px;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(3, 46, 63, 0.09);
  box-shadow: 0 28px 70px rgba(3, 46, 63, 0.11);
  backdrop-filter: blur(18px);
}

.featured-article figure {
  overflow: hidden;
  border-radius: 28px;
  background: #032e3f;
}

.featured-article img {
  width: 100%;
  height: 390px;
  object-fit: cover;
  transition: 0.45s ease;
}

.featured-article:hover img {
  transform: scale(1.04);
}

.featured-content {
  padding: 12px;
}

.featured-content span {
  padding: 6px 13px;
  color: #032e3f;
  background: rgba(248, 181, 23, 0.22);
}

.featured-content h2 {
  margin: 16px 0 14px;
  color: #032e3f;
  font-size: clamp(28px, 1.9vw, 46px);
  line-height: 1.45;
  font-weight: 700;
  /*letter-spacing: -1px;*/
    text-align:justify;

}

.featured-content p {
  margin: 0;
  color: rgba(3, 46, 63, 0.68);
  font-size: 17px;
  line-height: 2.2;
  text-align: justify;
}

.articles-section {
  padding: 92px 0 96px;
}

.section-heading {
  display: grid;
  justify-items: center;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}

.section-heading span {
  padding: 6px 13px;
  color: #032e3f;
  background: rgba(248, 181, 23, 0.18);
}

.section-heading h2 {
  margin: 14px 0 0;
  color: #032e3f;
  font-size: clamp(28px, 2.8vw, 48px);
  line-height: 1.45;
  font-weight: 950;
  letter-spacing: -1px;
}

.section-heading p {
  margin: 14px 0 0;
  color: rgba(3, 46, 63, 0.64);
  font-size: 16px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-card {
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(3, 46, 63, 0.08);
  box-shadow: 0 18px 48px rgba(3, 46, 63, 0.06);
  transition: 0.25s ease;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 62px rgba(3, 46, 63, 0.12);
}

.article-card figure {
  overflow: hidden;
  background: #032e3f;
}

.article-card img {
  width: 100%;
  height: 235px;
  object-fit: cover;
  transition: 0.45s ease;
}

.article-card:hover img {
  transform: scale(1.05);
}

.article-card div {
  padding: 24px;
}

.article-card span {
  padding: 5px 11px;
  color: #032e3f;
  background: rgba(248, 181, 23, 0.2);
  font-size: 12px;
}

.article-card h3 {
  margin: 14px 0 10px;
  color: #032e3f;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 950;
    text-align:justify;

}

.article-card p {
  margin: 0;
  color: rgba(3, 46, 63, 0.65);
  font-size: 14px;
  line-height: 2;
  text-align: justify;
}

.site-footer {
  color: #ffffff;
  background: #032e3f;
  padding: 56px 0 28px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 32px;
}

.footer-inner img {
  width: 84px;
  margin-bottom: 12px;
}

.footer-inner h3,
.footer-inner h4 {
  margin: 0 0 12px;
  color: #f8b517;
}

.footer-inner p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 2;
}

.footer-inner a {
  display: block;
  width: fit-content;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.76);
}

.footer-inner a:hover {
  color: #f8b517;
}

@media (max-width: 1100px) {
  .articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-article {
    grid-template-columns: 1fr;
  }

  .featured-article img {
    height: 340px;
  }
}

@media (max-width: 920px) {
  .header-inner {
    min-height: auto;
    padding: 18px 0;
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    border-radius: 22px;
  }

  .main-nav a {
    white-space: nowrap;
  }

  .login-btn {
    display: none;
  }

  .articles-hero {
    padding: 72px 0 54px;
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 26px, 1180px);
  }

  .brand img {
    width: 54px;
    height: 54px;
  }

  .brand small {
    display: none;
  }

  .articles-hero h1 {
    font-size: 32px;
  }

  .articles-hero p {
    font-size: 15px;
  }

  .featured-article {
    padding: 16px;
    border-radius: 28px;
  }

  .featured-article figure {
    border-radius: 22px;
  }

  .featured-article img {
    height: 260px;
  }

  .featured-content h2 {
    font-size: 28px;
  }

  .featured-content p {
    font-size: 15px;
  }

  .articles-section {
    padding: 64px 0 72px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .article-card {
    border-radius: 26px;
  }

  .article-card img {
    height: 220px;
  }
}
