/* === Reset & Base === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "IBM Plex Sans Arabic", Arial, sans-serif;
  background: #f0f4f8;
  color: #1a202c;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* === Navigation === */
nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

nav .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: #0f4c81;
  margin-left: 20px;
  text-decoration: none;
}

nav .brand img {
  height: 38px;
  width: auto;
}

nav a {
  text-decoration: none;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

nav a:hover,
nav a.active {
  background: #eef4fb;
  color: #0f4c81;
}

/* === Layout === */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

/* === Hero Section === */
.hero {
  text-align: center;
  padding: 60px 20px 40px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 36px;
  font-weight: 800;
  color: #0f4c81;
  margin-bottom: 16px;
  line-height: 1.4;
}

.hero p {
  font-size: 17px;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

.insurance-hero {
  background: #fff;
  border: 1px solid #e8eff7;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(15, 76, 129, 0.08);
}

.hero-main-image {
  width: min(320px, 100%);
  margin: 0 auto 26px;
  display: block;
}

.primary-action {
  display: inline-block;
  margin-top: 24px;
  padding: 16px 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0088eb, #1db97d);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(0, 136, 235, 0.22);
}

.primary-action:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 136, 235, 0.3);
}

/* === Typography === */
h1 {
  font-size: 32px;
  font-weight: 800;
  color: #0f4c81;
  margin-bottom: 12px;
}

h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1e3a5f;
  margin-top: 48px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #d4e5f7;
}

h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0f4c81;
  margin-bottom: 8px;
}

p {
  font-size: 15px;
  color: #475569;
  margin-bottom: 12px;
}

a {
  color: #0f4c81;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #1a6fc4;
}

/* === Cards === */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 8px;
}

.card {
  background: #fff;
  padding: 28px 24px;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(15, 76, 129, 0.06);
  border: 1px solid #e8eff7;
  margin-top: 16px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(15, 76, 129, 0.1);
}

.card h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2196f3;
  margin-left: 10px;
  vertical-align: middle;
}

/* === Lists === */
ul {
  padding-right: 20px;
  margin-top: 8px;
}

li {
  font-size: 15px;
  color: #475569;
  margin-bottom: 10px;
  line-height: 1.8;
}

li::marker {
  color: #2196f3;
}

/* === Internal Links === */
.internal-links {
  margin-top: 40px;
  padding: 20px 24px;
  background: #eef4fb;
  border-radius: 12px;
  text-align: center;
}

.internal-links a {
  font-weight: 600;
  margin: 0 8px;
}

/* === Blog Styles === */
.blog-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  cursor: pointer;
  border-right: 4px solid transparent;
  padding: 24px 22px 20px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.blog-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #0f4c81, #2196f3);
  transition: width 0.3s ease;
}

.blog-card:hover {
  border-right-color: #0f4c81;
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(15, 76, 129, 0.12);
}

.blog-card:hover::after {
  width: 100%;
}

.blog-card h3 {
  color: #1e3a5f;
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.6;
  transition: color 0.2s ease;
}

.blog-card:hover h3 {
  color: #0f4c81;
}

.blog-card h3::before {
  display: none;
}

.blog-card p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
  flex-grow: 1;
}

.blog-card-date {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-card-date::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2196f3;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: #0f4c81;
  padding: 6px 0;
  transition: all 0.2s ease;
}

.blog-card:hover .read-more {
  color: #2196f3;
  gap: 8px;
}

/* === Article Styles === */
.blog-article h1 {
  font-size: 30px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.blog-article h2 {
  margin-top: 36px;
}

.blog-article h3 {
  margin-top: 8px;
}

.blog-article p {
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 16px;
}

.blog-article li {
  font-size: 16px;
  line-height: 1.9;
}

.article-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 16px;
  font-weight: 500;
}

.article-nav {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.article-nav a {
  font-weight: 600;
  font-size: 15px;
}

/* === Disclaimer Box === */
.disclaimer-box {
  background: #fef9ee;
  border: 1px solid #f0dca0;
  border-right: 4px solid #d4a017;
}

.disclaimer-box p {
  color: #6b5a1e;
  font-size: 14px;
}

/* === Footer === */
footer {
  margin-top: 80px;
  padding: 40px 24px;
  background: linear-gradient(135deg, #0f4c81, #1a365d);
  color: #cbd5e1;
  text-align: center;
  font-size: 13px;
  line-height: 1.9;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

footer p {
  color: #cbd5e1;
  margin-bottom: 6px;
}

footer strong {
  color: #fff;
  font-size: 15px;
}

/* === Responsive === */
@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .blog-list {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero p {
    font-size: 15px;
  }

  h1 {
    font-size: 26px;
  }
  h2 {
    font-size: 19px;
  }

  nav {
    flex-wrap: wrap;
    gap: 4px;
    padding: 12px 16px;
  }

  nav .brand {
    width: 100%;
    text-align: center;
    margin-left: 0;
    margin-bottom: 6px;
  }

  nav a {
    font-size: 13px;
    padding: 5px 10px;
  }

  .container {
    padding: 24px 16px 40px;
  }
}
