:root {
  --navy: #0B1B3A;
  --navy-light: #132A56;
  --cyan: #22D3EE;
  --violet: #8B5CF6;
  --pink: #EC4899;
  --amber: #F59E0B;
  --amber-hover: #D97706;
  --text-dark: #1F2433;
  --text-muted: #4B5563;
  --bg-light: #F7F7F2;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --green: #059669;
  --green-bg: #ECFDF5;
  --red: #DC2626;
  --red-bg: #FEF2F2;
  --radius: 14px;
  --shadow: 0 10px 30px -10px rgba(11, 27, 58, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Cairo', sans-serif;
  color: var(--navy);
  line-height: 1.3;
}

a {
  color: var(--navy-light);
  text-decoration: none;
  transition: all 0.2s ease;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Disclosure Bar */
.top-disclosure {
  background: #071226;
  color: #CBD5E1;
  font-size: 0.82rem;
  text-align: center;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-disclosure a {
  color: var(--cyan);
  text-decoration: underline;
}

/* Navbar */
.navbar {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
  flex-wrap: wrap;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.brand-link img {
  height: 44px;
  width: 44px;
  border-radius: 10px;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.3px;
  color: var(--white);
}
.brand-tagline {
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  flex-wrap: wrap;
}
.nav-links a {
  color: #E2E8F0;
  font-weight: 500;
  font-size: 0.94rem;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--cyan);
}
.btn-nav {
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: var(--navy) !important;
  font-weight: 600 !important;
  padding: 8px 16px;
  border-radius: 999px;
}

/* Hero Section */
.hero {
  background: radial-gradient(circle at top right, #1E3A8A 0%, var(--navy) 65%);
  color: var(--white);
  padding: 64px 0 72px;
  border-bottom: 4px solid var(--cyan);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(34, 211, 238, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.4);
  color: var(--cyan);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.hero h1 {
  color: var(--white);
  font-size: 2.75rem;
  margin-bottom: 16px;
}
.hero h1 span {
  background: linear-gradient(90deg, var(--cyan), #A78BFA, var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  color: #CBD5E1;
  font-size: 1.12rem;
  margin-bottom: 26px;
  max-width: 620px;
}
.hero-ar {
  background: rgba(255,255,255,0.06);
  border-right: 4px solid var(--amber);
  padding: 12px 16px;
  border-radius: 8px;
  direction: rtl;
  font-family: 'Cairo', 'IBM Plex Sans Arabic', sans-serif;
  font-size: 0.98rem;
  color: #F1F5F9;
  margin-bottom: 26px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--amber);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--amber-hover);
  color: var(--white);
}
.btn-outline {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.16);
}
.hero-logo-card {
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.hero-logo-card img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.trust-pills {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.trust-pill {
  font-size: 0.78rem;
  background: rgba(255,255,255,0.08);
  color: #E2E8F0;
  padding: 4px 11px;
  border-radius: 999px;
}

/* Sections */
.section {
  padding: 64px 0;
}
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 42px;
}
.section-header h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}
.section-header p {
  color: var(--text-muted);
}

/* 3 Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--navy);
}
.pillar-card.ai { border-top-color: var(--violet); }
.pillar-card.edu { border-top-color: var(--cyan); }
.pillar-card.travel { border-top-color: var(--amber); }

.pillar-icon {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.pillar-card.ai .pillar-icon { background: #F3E8FF; color: #6D28D9; }
.pillar-card.edu .pillar-icon { background: #CFFAFE; color: #0E7490; }
.pillar-card.travel .pillar-icon { background: #FEF3C7; color: #B45309; }

.pillar-card h3 {
  font-size: 1.32rem;
  margin-bottom: 10px;
}
.pillar-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.pillar-list {
  list-style: none;
  font-size: 0.9rem;
}
.pillar-list li {
  padding: 5px 0;
  border-top: 1px dashed var(--border);
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.article-card:hover {
  transform: translateY(-4px);
}
.article-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  width: fit-content;
}
.tag-ai { background: #F3E8FF; color: #6D28D9; }
.tag-edu { background: #CFFAFE; color: #0E7490; }
.tag-travel { background: #FEF3C7; color: #B45309; }

.article-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.article-card h3 a {
  color: var(--navy);
}
.article-card h3 a:hover {
  color: var(--violet);
}
.article-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 18px;
}
.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--text-muted);
}
.read-more {
  font-weight: 600;
  color: var(--navy);
}

/* Article Page Layout */
.article-header {
  background: var(--navy);
  color: var(--white);
  padding: 48px 0;
  border-bottom: 3px solid var(--cyan);
}
.article-header .container {
  max-width: 880px;
}
.article-header h1 {
  color: var(--white);
  font-size: 2.2rem;
  margin: 12px 0 14px;
}
.article-header .meta {
  color: #94A3B8;
  font-size: 0.9rem;
}
.article-body {
  max-width: 880px;
  margin: 36px auto 64px;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.article-body h2 {
  font-size: 1.55rem;
  margin: 30px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #F1F5F9;
}
.article-body h3 {
  font-size: 1.22rem;
  margin: 22px 0 10px;
}
.article-body p {
  margin-bottom: 16px;
}
.article-body ul, .article-body ol {
  margin: 0 0 18px 22px;
}
.article-body li {
  margin-bottom: 6px;
}

.disclosure-box {
  background: #F8FAFC;
  border-left: 4px solid var(--cyan);
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.halal-box {
  background: #ECFDF5;
  border-left: 4px solid var(--green);
  padding: 16px 18px;
  border-radius: 8px;
  font-size: 0.92rem;
  color: #065F46;
  margin: 22px 0;
}

/* Comparison Table */
.table-wrap {
  overflow-x: auto;
  margin: 22px 0;
}
table.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
table.comp-table th {
  background: var(--navy);
  color: var(--white);
  text-align: left;
  padding: 12px 14px;
}
table.comp-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.comp-table tr:nth-child(even) td {
  background: #F8FAFC;
}

/* Pros & Cons Grid */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 22px 0;
}
.pros-box {
  background: var(--green-bg);
  border: 1px solid #A7F3D0;
  border-radius: 12px;
  padding: 20px;
}
.pros-box h4 {
  color: var(--green);
  margin-bottom: 10px;
}
.cons-box {
  background: var(--red-bg);
  border: 1px solid #FECACA;
  border-radius: 12px;
  padding: 20px;
}
.cons-box h4 {
  color: var(--red);
  margin-bottom: 10px;
}

/* CTA Affiliate Box */
.cta-box {
  background: linear-gradient(135deg, var(--navy) 0%, #1E3A8A 100%);
  color: var(--white);
  padding: 24px 28px;
  border-radius: 14px;
  margin: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cta-box h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.cta-box p {
  color: #CBD5E1;
  font-size: 0.9rem;
  margin: 0;
}

/* Newsletter */
.newsletter {
  background: var(--navy);
  color: var(--white);
  border-radius: 20px;
  padding: 44px;
  text-align: center;
  margin: 20px 0 60px;
}
.newsletter h2 {
  color: var(--white);
  margin-bottom: 10px;
}
.newsletter p {
  color: #CBD5E1;
  max-width: 600px;
  margin: 0 auto 22px;
}
.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 10px;
  flex-wrap: wrap;
}
.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.95rem;
}

/* Footer */
.footer {
  background: #071226;
  color: #94A3B8;
  padding: 52px 0 32px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 36px;
}
.footer h4 {
  color: var(--white);
  margin-bottom: 14px;
  font-size: 1rem;
}
.footer ul {
  list-style: none;
}
.footer ul li {
  margin-bottom: 8px;
}
.footer a {
  color: #94A3B8;
}
.footer a:hover {
  color: var(--cyan);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .hero-grid, .pillars-grid, .articles-grid, .pros-cons, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2.1rem;
  }
  .article-body {
    padding: 24px 18px;
  }
}
