/* ========================================================================= */
/* --- 1. GLOBAL RESET AND TYPOGRAPHY --- */
/* ========================================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    /* Smooth scroll for anchor links */
    scroll-behavior: smooth; 
}

:root {
    --primary-color: #005646; /* Deeper Emerald */
    --secondary-color: #f4f7f6; /* Soft Light Gray */
    --text-color: #333333;
    --light-text-color: #666666;
    --white: #ffffff;
    --shadow-subtle: 0 4px 12px rgba(0, 0, 0, 0.08);
    --border-radius-lg: 12px;
    --border-radius-sm: 8px;
}

body {
    font-family: "Noto Kufi Arabic", Arial, sans-serif;
    direction: rtl;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%; 
    overflow-x: hidden;
    font-weight: 500; /* Slightly lighter weight for better readability */
    line-height: 1.7; /* Increased line-height */
    background-color: var(--secondary-color);
    color: var(--text-color);
}

.section-title {
    font-family: "Noto Kufi Arabic", Arial, sans-serif;
    font-weight: 800; /* Bolder title */
    text-align: center;
    font-size: 38px;
    color: var(--primary-color);
    margin: 60px 0 30px;
    position: relative;
    padding-bottom: 10px;
}
/* Title underline effect */
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.h1-text, .h1-text1 {
    font-family: "Noto Kufi Arabic", Arial, sans-serif;
    font-size: 2.2rem;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--white); 
    font-weight: 700;
    padding: 15px 0;
    margin: 40px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.h1-text1 {
    color: var(--white); 
}

iframe {
    width: 100%;
    height: 100vh;
    border: none;
    background-color: transparent;
}

/* ========================================================================= */
/* --- 2. HEADER AND NAVIGATION (STICKY NAVIGATION) --- */
/* ========================================================================= */

/* =============== BASE =============== */
:root{
  --brand:#005646;
  --brand2:#0b7a63;
  --bg:#0f2f29;
  --text:#eaf6f2;
  --muted:#cfe5de;
  --card:#123932;
  --glass: rgba(18,57,50,.55);
}

*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--text);font-family:"Tajawal",system-ui}
a{text-decoration:none;color:inherit}

/* =============== HEADER =============== */
/* HEADER STYLE UPDATE */
/* =========================
   Balanced Header (Logo Left, Text Right)
   ========================= */
:root{
  --mint:#FAFAFA;
  --ink:#0D1B1A;
  --brand:#005646;
}

/* container */
.header{
  position: relative; top: 0; z-index: 100;
  display: flex; align-items: center;
  gap: 30px;
  padding: 18px 40px;
  background: var(--mint);
  border-bottom: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  backdrop-filter: saturate(120%) blur(3px);
  overflow: hidden;
}

/* remove underline animation stripe at bottom */
.header::after { display: none; }

/* logo — now larger and more prominent */
.header .logo img{
  height: 110px; /* increased size */
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.25));
  transition: transform .3s ease, filter .3s ease;
}
.header .logo img:hover{
  transform: scale(1.05);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.25));
}

/* text — aligned to the right side */
.header .company{
  margin-left: auto;
  text-align: right;
  direction: rtl;
  color: #005646;
  line-height: 1.2;
  font-family: "Tajawal","Tahoma","Arial",sans-serif;
}
.header .company h3{
  margin: 0;
  font-weight: 800;
  font-size: 25px; /* slightly smaller than logo height */
  letter-spacing: .3px;
  opacity: 0;
  transform: translateX(15px);
  animation: fade-in-right .5s ease .1s forwards;
}
@keyframes fade-in-right{
  to{ opacity:1; transform:none }
}

/* responsive adjustments */
@media (max-width: 768px){
  .header{
    padding: 12px 20px;
    gap: 18px;
  }
  .header .logo img{ height: 80px; }
  .header .company h3{ font-size: 22px; }
}


/* =============== NAVBAR =============== */
.nav-container{position:sticky;top:0;z-index:50;background:rgba(0,0,0,.25);backdrop-filter:blur(8px);border-bottom:1px solid rgba(255,255,255,.06)}
.nav-menu{direction:rtl;display:flex;gap:8px;justify-content:center;align-items:center;flex-wrap:wrap;padding:10px 20px;font-weight:700}
.nav-menu a,.dropbtn{padding:12px 16px;border-radius:12px;color:#eaf6f2;position:relative}
.nav-menu a:hover,.dropbtn:hover,.nav-menu .active-link{background:rgba(255,255,255,.08)}
.nav-menu a::after,.dropbtn::after{
  content:"";position:absolute;inset-inline:12px;bottom:6px;height:2px;background:linear-gradient(90deg,transparent,var(--brand),transparent);
  transform:scaleX(0);transform-origin:left;transition:transform .25s ease;
}
.nav-menu a:hover::after,.dropbtn:hover::after,.active-link::after{transform:scaleX(1)}
/* =============================
   Navbar Link Size Normalization
   ============================= */
.nav-menu a,
.nav-menu .dropbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  padding: 16px 22px;             /* same padding for all */
  line-height: 1;
  font-size: 1.05rem;             /* uniform text size */
  font-family: "Tajawal", "Noto Kufi Arabic", Tahoma, Arial, sans-serif;
  font-weight: 700;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

/* ensure dropdown buttons behave like normal links */
.dropbtn {
  font-size: 1.05rem !important;
  padding: 16px 22px !important;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
}

/* make sure the dropdown caret icon doesn't shrink text */
.dropbtn i {
  font-size: 0.8rem;
  margin-right: 6px;
}

/* fix hover effect so they all behave the same */
.nav-menu a:hover,
.dropbtn:hover {
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #fff;
  transition: background 0.25s ease;
}

/* equal alignment fix */
.dropdown {
  display: flex;
  align-items: center;
}

.dropbtn{border:none;background:transparent;cursor:pointer}
.dropbtn .fa{transition:transform .2s ease;font-size:.9rem}
.dropdown:hover .fa{transform:rotate(180deg)}
.dropdown{position:relative}
.dropdown-content{
  display:none;position:absolute;top:100%;inset-inline-end:0;min-width:260px;background:#11332d;border:1px solid rgba(255,255,255,.08);
  border-radius:12px;box-shadow:0 18px 36px rgba(0,0,0,.35);padding:8px 0;z-index:60
}

.dropdown:focus-within .dropdown-content,.dropdown:hover .dropdown-content{display:block}
.dropdown-content a{display:block;padding:12px 16px;color:#e9f8f3}
.dropdown-content a:hover{background:rgba(255,255,255,.06)}

/* =============== HERO / BG =============== */
.bg{
  position:relative;overflow:hidden;min-height:86vh;padding: clamp(20px,3vw,40px);
  display:grid;grid-template-columns:1.1fr .9fr;gap:28px;
}

.soft-overlay{
  position:absolute;inset:0;pointer-events:none;z-index:0;
  background:
    radial-gradient(1200px 1200px at 85% 55%, rgba(0,130,100,.28), transparent 60%),
    linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.25)); /* <-- soft opacity layer */
}
/* ====== Premium Banking Ring (Faster Animation) ====== */
.ring {
  position: absolute;
  right: -12vw;
  top: 6vh;
  width: min(72vw, 980px);
  aspect-ratio: 1/1;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;

  --c1: rgba(0,156,120,.34);
  --c2: rgba(0, 86, 70 , .55);
  --w : rgba(255,255,255,.14);

  background:
    radial-gradient(closest-side, var(--c1) 0 60%, transparent 66%),
    url("data:image/svg+xml;utf8,\
      <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'>\
        <defs>\
          <linearGradient id='g' x1='0' y1='0' x2='1' y2='1'>\
            <stop offset='0' stop-color='%23005646' stop-opacity='.22'/>\
            <stop offset='1' stop-color='%2300a685' stop-opacity='.14'/>\
          </linearGradient>\
        </defs>\
        <path d='M60 8c18 10 36 10 36 10v30c0 26-22 46-36 54C46 94 24 74 24 48V18s18 0 36-10z' fill='url(%23g)'/>\
        <rect x='44' y='46' width='32' height='22' rx='4' ry='4' fill='%23ffffff' fill-opacity='.18'/>\
        <path d='M60 40c6 0 10 4 10 10v6H50v-6c0-6 4-10 10-10z' fill='%23ffffff' fill-opacity='.12'/>\
        <circle cx='60' cy='58' r='4' fill='%23ffffff' fill-opacity='.35'/>\
      </svg>"
    ) center/24% no-repeat;

  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 16px), #000 0);
          mask: radial-gradient(farthest-side, transparent calc(100% - 16px), #000 0);

  box-shadow:
    inset 0 0 0 1px var(--w),
    0 0 70px 12px rgba(0,150,120,.18);

  animation: ring-float 4.5s ease-in-out infinite; /* faster floating */
}

/* Rotating orbit */
.ring::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255,255,255,.22) 0 8deg, transparent 8deg 22deg);
  -webkit-mask: radial-gradient(farthest-side, transparent 96%, #000 0);
          mask: radial-gradient(farthest-side, transparent 96%, #000 0);
  filter: blur(.2px);
  animation: ring-spin 12s linear infinite; /* was 26s */
}

/* Gauge ticks + outer glow */
.ring::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from -6deg, rgba(255,255,255,.10) 0 2deg, transparent 2deg 8deg),
    radial-gradient(closest-side, rgba(0,180,140,.16), transparent 70%);
  -webkit-mask: radial-gradient(farthest-side, transparent 93%, #000 0);
          mask: radial-gradient(farthest-side, transparent 93%, #000 0);
  animation: ring-breathe 3.5s ease-in-out infinite; /* faster breathing */
}

/* Animations */
@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

@keyframes ring-float {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50%      { transform: translate3d(-10px, 8px, 0) scale(1.03); }
}

@keyframes ring-breathe {
  0%, 100% { opacity: .45; transform: scale(1); }
  50%      { opacity: .8; transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .ring, .ring::before, .ring::after { animation: none !important; }
}


.hero-copy{z-index:2;align-self:center}
.title{margin:0 0 10px 0;font-size:clamp(26px,4.6vw,52px);line-height:1.15;font-weight:800}
.lead{color:var(--text);font-size:clamp(14px,1.5vw,18px);line-height:1.9;margin:10px 0 20px}
.cta{display:flex;gap:12px;flex-wrap:wrap}
.btn{padding:12px 18px;border-radius:14px;font-weight:800;border:1px solid transparent;cursor:pointer;transition:transform .15s,box-shadow .2s,background .2s}
.btn.primary{background:linear-gradient(135deg,var(--brand),var(--brand2));color:white;box-shadow:0 10px 30px rgba(0,100,80,.35)}
.btn.ghost{background:rgba(255,255,255,.06);color:#fff;border-color:rgba(255,255,255,.12)}
.btn:hover{transform:translateY(-2px)}

/* Hero section background with green opacity overlay */
.hero-art {
  position: relative;
  width: 100%;
  min-height: 65vh;
  border-radius: 12px;
  overflow: hidden;
  background: 
    linear-gradient(rgba(0, 86, 70, 0.65), rgba(0, 86, 70, 0.65)), 
    url("images/car1.png") center center / cover no-repeat;
  background-attachment: fixed; /* adds subtle depth effect */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
  transition: all 0.4s ease;
}

/* Slight hover animation */
.hero-art:hover {
  transform: scale(1.01);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

/* Hide the original <img> so only background shows */
.hero-art img.car {
  opacity: 0;
  visibility: hidden;
  position: absolute;
}

/* Optional subtle green glow around the section */
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 60%, rgba(0, 150, 120, 0.25), transparent 70%);
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

.hero-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  background: linear-gradient(135deg, #002e26, #004d3d);
  padding: 60px 80px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(0, 86, 70, 0.4), transparent 70%),
              linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25));
  opacity: 0.85; /* soft opacity overlay */
  pointer-events: none;
}

.hero-art {
  flex: 1;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.hero-art .car {
  width: 100%;
  max-width: 600px;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-art .car:hover {
  transform: scale(1.03);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.hero-text {
  flex: 1;
  color: #e9f7f2;
  font-size: 1.2rem;
  line-height: 2;
  text-align: right;
  position: relative;
  z-index: 2;
}

/* Soft scroll-reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }
  .hero-text {
    font-size: 1rem;
  }
  .hero-art .car {
    max-width: 90%;
  }
}


/* =============== CARDS =============== */
.card-container{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;width:min(1180px,95%);margin-inline:auto;margin-top:24px}
.vertical-card{
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.10);border-radius:18px;padding:22px 18px;backdrop-filter: blur(8px);
  box-shadow:0 14px 36px rgba(0,0,0,.25);transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.vertical-card:hover{
  transform:translateY(-6px);
  border-color:rgba(0,200,160,.35);
  box-shadow:0 18px 42px rgba(0,0,0,.35), 0 0 0 1px rgba(0,200,160,.12) inset;
}
.main-title1{margin:0 0 10px;text-align:center;font-size:1.35rem;color:#e9f8f3;font-weight:800;position:relative}
.main-title1::after{content:"";display:block;width:64px;height:3px;margin:10px auto 0;background:var(--brand);border-radius:2px}
.vertical-card p{color:#e6f3ef;line-height:1.9;margin:0}

/* =============== REVEAL =============== */
.reveal{opacity:0;transform:translateY(16px);transition:opacity .6s ease, transform .6s ease}
.reveal.show{opacity:1;transform:translateY(0)}

/* =============== RESPONSIVE =============== */
@media (max-width: 1060px){
  .bg{grid-template-columns:1fr;gap:10px}
  .hero-art{order:2}
  .card-container{grid-template-columns:1fr;gap:16px}
  .ring{right:-18vw;top:6vh;width:80vw}
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce){
  .btn,.car,.reveal,.ring{animation:none;transition:none}
}




/* ===== News Section Container ===== */
/* ===== NEWS SECTION BACKGROUND (Green Transparent Gradient) ===== */
/* ===== NEWS SECTION (Minimalist) ===== */
.main {
  /* background-color: #B0BEC5;  */
  max-width: 1200px;
  margin: 100px auto 0;
  padding: 60px 40px 80px;
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  text-align: center;
}

/* ===== TITLE (Centered and White) ===== */
.section-title1 {
  text-align: center;
  font-weight: 900;
  font-size: 2.2rem;
  margin: 0 0 50px;
  color: #ffffff; 
  letter-spacing: 0.5px;
  position: relative;
}

.section-title1::after {
  content: "";
  display: block;
  height: 4px;
  width: 120px;
  margin: 10px auto 0;
  background: #ffffff;
  border-radius: 2px;
}

/* ===== GRID LAYOUT ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
}

/* ===== CARD ===== */
.card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 420px;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

/* ===== CARD IMAGE ===== */
.card_image {
  height: 45%;
  overflow: hidden;
}
.card_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.card:hover .card_image img {
  transform: scale(1.06);
}

/* ===== CARD CONTENT ===== */
.card_content {
  height: 55%;
  padding: 18px;
  text-align: right;
  direction: rtl;
  display: flex;
  flex-direction: column;
}

/* CARD TITLE */
.card_title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #005646;
  margin: 0 0 8px;
}

/* CARD TEXT (scrollable area) */
.card_text {
  flex: 1;
  overflow-y: auto;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
  padding-inline-end: 5px;
}
.card_text hr {
  border: none;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
  margin: 10px 0;
}

/* SCROLLBAR */
.card_text::-webkit-scrollbar {
  width: 6px;
}
.card_text::-webkit-scrollbar-thumb {
  background: rgba(0, 86, 70, 0.5);
  border-radius: 6px;
}
.card_text::-webkit-scrollbar-track {
  background: #f3f3f3;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .main {
    padding: 40px 20px;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .card {
    height: 380px;
  }
}


/* ========== Modern Executive Board (no HTML changes) ========== */
:root{
  --ink:#0F172A;            /* main text */
  --muted:#55627A;          /* secondary */
  --bg-1:#0f2f29;           /* page bg base */
  --bg-2:#0b2320;           /* page bg dark */
  --brand:#0ea47a;          /* accent mint */
  --brand2:#005646;         /* deep green */
  --card:#ffffff;           /* surface */
}

/* page background so the card pops */
body{
  background:
    radial-gradient(60rem 26rem at 80% -10%, rgba(14,164,122,.25), transparent 70%),
    linear-gradient(180deg, #0f2f29, #0b2320);
}

/* container (gradient stroke + glass) */
.board{
  direction: rtl;
  max-width: 1080px;
  margin: 96px auto;
  padding: 44px 36px;
  border-radius: 20px;
  position: relative;
  color: var(--ink);

  /* gradient border trick */
  background:
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.86)) padding-box,
    linear-gradient(135deg, rgba(14,164,122,.45), rgba(0,86,70,.45)) border-box;
  border: 1px solid transparent;
  box-shadow:
    0 24px 60px rgba(0,0,0,.20),
    0 2px 0 rgba(255,255,255,.8) inset;
  backdrop-filter: blur(4px) saturate(115%);
  -webkit-backdrop-filter: blur(4px) saturate(115%);

  overflow: hidden;
  animation: board-in .6s ease both;
}

/* subtle ambient glow behind card */
.board::before{
  content:"";
  position:absolute; inset:-35% -20% auto auto;
  width:780px; height:780px; border-radius:50%;
  background: radial-gradient(closest-side, rgba(14,164,122,.18), transparent 70%);
  filter: blur(8px);
  pointer-events:none;
}

/* entrance */
@keyframes board-in{
  from{ transform: translateY(12px); opacity:0; }
  to{ transform:none; opacity:1; }
}

/* title — gradient ink */
.board-text{
  margin:0 0 14px;
  font: 800 34px/1.25 "Tajawal","Noto Kufi Arabic",system-ui,sans-serif;
  letter-spacing: .1px;
  background: linear-gradient(90deg, var(--brand2), var(--brand));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
  text-align:right;
}

/* lead paragraph */
.p1-text{
  margin: 0 0 28px;
  color: black;
  font: 500 17px/2 "Tajawal","Noto Kufi Arabic",system-ui,sans-serif;
  text-align: justify;
  position: relative;
  padding-top: 14px;
}
.p1-text::before{
  content:"";
  position:absolute; right:0; top:0;
  width:110px; height:4px; border-radius:3px;
  background: linear-gradient(90deg, var(--brand2), var(--brand));
}

/* subtitle as a soft pill */
.board-text2{
  display:inline-block;
  margin: 8px 0 14px;
  padding: 8px 14px;
  border-radius: 12px;
  font: 800 20px/1.4 "Tajawal","Noto Kufi Arabic",system-ui,sans-serif;
  color: var(--brand2);
  background: linear-gradient(180deg, rgba(14,164,122,.12), rgba(14,164,122,.06));
  border: 1px solid rgba(14,164,122,.22);
}

/* tasks panel — modern policy block */
.p2-text{
  margin: 0;
  padding: 20px 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #fbfbfb);
  border: 1px solid rgba(15,23,42,.06);
  color: #253242;
  font: 500 16px/2.05 "Tajawal","Noto Kufi Arabic",system-ui,sans-serif;
  text-align: justify;

  /* right rail & faint separators to mimic structured list */
  position: relative;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
}

/* right accent rail */
.p2-text::before{
  content:"";
  position:absolute; right:10px; top:12px; bottom:12px; width:3px;
  border-radius:3px;
  background: linear-gradient(180deg, var(--brand2), var(--brand));
  opacity:.9;
}

/* faint horizontal separators (visual rhythm) */
.p2-text::after{
  content:"";
  position:absolute; inset:20px 22px 20px 22px;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0 38px,
      rgba(15,23,42,.06) 38px 39px
    );
  pointer-events:none;
  mix-blend-mode: multiply;
  opacity:.6;
  border-radius: 10px;
}

/* responsive */
@media (max-width: 860px){
  .board{ padding: 32px 20px; border-radius:16px; }
  .board-text{ font-size: 28px; }
  .p1-text{ font-size: 16px; }
  .board-text2{ font-size: 18px; }
  .p2-text{ font-size: 15px; }
}



/* ================== Martyrs Carousel — Final Modern Version ================== */

/* ================== Martyrs Carousel — White Background Version ================== */

/* ================== Martyrs Carousel — Wider Card Version ================== */

/* Section wrapper */
.carousel-container {
  direction: rtl;
  max-width: 1050px; /* ✅ widened from 760px */
  margin: 90px auto;
  padding: 28px 30px 36px;
  position: relative;
  text-align: center;
  border-radius: 18px;

  /* white background */
  background: #ffffff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

/* subtle green animation behind */
.carousel-container::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -120px;
  left: -140px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 86, 70, 0.15), transparent 70%);
  animation: glowmove 25s ease-in-out infinite alternate;
  opacity: 0.25;
}
@keyframes glowmove {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 20px) scale(1.05); }
  100% { transform: translate(-20px, -15px) scale(1); }
}

/* Title */
.section-title {
  font: 900 28px "Tajawal", "Noto Kufi Arabic", sans-serif;
  color: #003c31;
  margin: 0 0 20px;
}
.section-title::after {
  content: "";
  display: block;
  width: 90px;
  height: 3px;
  border-radius: 2px;
  margin: 10px auto 0;
  background: linear-gradient(90deg, #0ea47a, #005646);
}

/* Image frame */
.Martyrs-container {
  position: relative;
  width: 100%;
  max-width: 850px; /* ✅ makes the inner slider wider */
  margin: 0 auto;
  aspect-ratio: 4 / 2.7; /* wider proportion */
  border-radius: 14px;
  overflow: hidden;
}

/* Slides */
.mySlides {
  position: absolute;
  inset: 0;
  display: none;
  animation: fadeIn 2s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}
.mySlides img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 1s ease, transform 2s ease;
}

/* Dots */
.dot1 {
  width: 10px;
  height: 10px;
  margin: 0 4px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 86, 70, 0.25);
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}
.dot1:hover {
  transform: scale(1.2);
  background: rgba(0, 86, 70, 0.6);
}
.dot1.active {
  background: #0ea47a;
  transform: scale(1.25);
}

/* Dot container */
.carousel-container > div:last-of-type {
  margin-top: 16px;
}

/* Responsive */
@media (max-width: 900px) {
  .carousel-container {
    max-width: 90%;
    padding: 20px;
  }
  .Martyrs-container {
    max-width: 100%;
    aspect-ratio: 4 / 3;
  }
  .section-title {
    font-size: 24px;
  }
}



/*  */
/*  */
/*  */
/* Statistics Slideshow - Better Dot styling */
/* ============= STATISTICS SLIDER (professional) ============= */
:root{
  --brand:#005646;
  --brand-2:#0ea47a;
  --ink:#0D1B1A;
}

/* Title */
.section-title1{
  font: 900 28px "Tajawal","Noto Kufi Arabic",sans-serif;
  color:#fff;                /* white on your dark page bg */
  text-align:center;
  letter-spacing:.3px;
  margin:80px 0 18px;
  position:relative;
}
.section-title1::after{
  content:"";
  display:block;
  width:110px;height:3px;border-radius:2px;
  margin:10px auto 0;
  background:linear-gradient(90deg,var(--brand-2),var(--brand));
}

/* White stats card */
.slideshow-container1{
  position:relative;
  max-width:1100px;
  margin:0 auto;
  padding:26px;
  border-radius:20px;
  background:#fff;                      /* white card */
  box-shadow:0 10px 28px rgba(0,0,0,.16);
  overflow:hidden;
}

/* Subtle animated data-grid behind the slides */
.slideshow-container1::before{
  content:"";
  position:absolute; inset:0;
  background:
    repeating-linear-gradient(
      0deg, rgba(0,86,70,.06) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(
      90deg, rgba(0,86,70,.045) 0 1px, transparent 1px 24px);
  transform:translateZ(0);
  animation:grid-pan 28s linear infinite;
  pointer-events:none;
}
@keyframes grid-pan{
  0%   {transform:translate(0,0)}
  100% {transform:translate(-120px,-80px)}
}

/* Fixed aspect so all charts feel consistent */
.slideshow-container1 .viewport{
  position:relative;
  width:100%;
  aspect-ratio:16/9;        /* 16:9 dashboard look */
  border-radius:14px;
  overflow:hidden;
  background:#f6f8f9;
}

/* Slides */
.slideshow-container1 .mySlides{
  position:absolute; inset:0;
  display:none;
  animation:stats-fade 900ms ease-in-out;
}
@keyframes stats-fade{
  from{opacity:.2; transform:scale(1.01)}
  to  {opacity:1;  transform:scale(1)}
}
.slideshow-container1 .mySlides img{
  width:100%; height:100%;
  object-fit:contain;        /* keep full chart visible */
  transition:transform .8s ease, filter .6s ease;
}
.slideshow-container1 .mySlides:hover img{
  transform:scale(1.02);
  filter:contrast(1.02);
}

/* Dots (pager) */
.stats-dots{
  text-align:center;
  margin-top:14px;
}
.dot{
  width:11px;height:11px;border-radius:50%;
  border:none; outline:none;
  margin:0 5px;
  background:rgba(0,86,70,.25);
  cursor:pointer;
  transition:transform .25s ease, background .25s ease, box-shadow .25s ease;
}
.dot:hover{ transform:scale(1.15); background:rgba(0,86,70,.55) }
.dot.active{
  background:var(--brand-2);
  box-shadow:0 0 0 4px rgba(14,164,122,.18);
  transform:scale(1.2);
}

/* Responsive */
@media (max-width: 900px){
  .section-title1{font-size:24px;margin-top:60px}
  .slideshow-container1{padding:18px;border-radius:16px}
}


/* ========================================================================= */
/* --- 5. MEDIA QUERIES (MOBILE AND TABLET OPTIMIZATION) --- */
/* ========================================================================= */

/* Tablet Optimization (Max Width 1023px) */
@media (max-width: 1023px) {
    /* Header/Nav */
    .header { flex-direction: column; padding: 15px 20px; }
    .logo { justify-content: center; margin-bottom: 10px; }
    .Company h3 { font-size: 1.5rem; }
    .logo img { height: 70px; }
    .search-bar { margin: 10px 0; width: 80%; max-width: 400px; }
    .search-bar input { width: 100%; }
    .nav-menu { justify-content: space-around; padding: 0 10px; }
    .nav-menu a, .dropbtn { padding: 12px 10px; font-size: 0.95rem; }

    /* BG Section */
    .bg { min-height: 60vh; padding-top: 100px; padding-bottom: 250px; }
    .text-overlay { font-size: 22px; top: 15%; }
    .card-container { bottom: -120px; gap: 20px; max-width: 95%; }
    .horizontal-card, .vertical-card { min-width: 45%; }
    .vertical-cards { gap: 20px; }
    .main { margin-top: 150px auto 0; }
    
    /* General */
    .section-title { font-size: 32px; margin: 40px 0 20px; }
    .h1-text, .h1-text1 { font-size: 1.8rem; margin: 30px 0; }
    .p1-text, .p2-text { font-size: 1rem; }
    .board { padding: 50px 20px; }
    
    /* Statistics Slideshow */
    .slideshow-container { max-width: 80%; }
}

/* Mobile Optimization (Max Width 767px) */
@media (max-width: 767px) {
    /* Header/Nav */
    .header { padding: 10px; }
    .logo { flex-direction: column; margin-bottom: 15px; }
    .logo img { height: 60px; margin: 0 0 5px 0; }
    .Company h3 { font-size: 1.3rem; }
    .search-bar { width: 95%; max-width: none; margin: 0; }
    .nav-menu { flex-direction: column; padding: 0 5px; }
    .nav-menu a, .dropdown { width: 100%; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
    .dropbtn { width: 100%; justify-content: center; }
    .dropdown-content { min-width: 100%; left: 0; right: 0; border-radius: 0; }

    /* BG Section */
    .bg {
        min-height: 500px;
        padding-top: 50px;
        padding-bottom: 30px;
    }
    .text-overlay {
        position: relative; 
        top: auto; 
        left: auto;
        transform: none;
        margin: 0 auto;
        width: 95%;
        font-size: 18px;
        text-align: justify;
    }
    .text-overlay br { display: none; }
    .card-container {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 30px; 
        flex-direction: column;
        gap: 15px;
        width: 95%;
    }
    .vertical-cards {
        flex-direction: column;
        gap: 15px;
    }
    .horizontal-card, .vertical-card {
        width: 100%;
        min-width: 0;
        padding: 20px;
    }
    .horizontal-card h3, .vertical-card h3 { font-size: 1.3rem; }

    /* General */
    .section-title { font-size: 26px; }
    .h1-text, .h1-text1 { font-size: 1.4rem; }
    .board-text, .board-text2 { font-size: 1.2rem; }
    .main { margin-top: 50px auto 0; }
    .cards { grid-template-columns: 1fr; }

    /* Statistics Slideshow */
    .slideshow-container { max-width: 95%; }
    .slider-item img { width: 120px; height: 120px; }
    .slider-item p { font-size: 1.2em; }
    .slider-btn { padding: 10px 5px; font-size: 16px; }
}



/* ===================== Responsive Overrides & Mobile Non-Sticky ===================== */

/* Fluid typography & spacings */
:root{
  --page-max: 1200px;
}
.section-title,
.section-title1 { font-size: clamp(1.4rem, 2.2vw + 1rem, 2.4rem); }
.h1-text,
.h1-text1      { font-size: clamp(1.2rem, 1.6vw + 1rem, 2rem); padding: clamp(10px, 1.2vw, 16px) 0; margin: clamp(24px, 4vw, 40px) 0; }

/* Fluid containers */
.main,
.board,
.carousel-container,
.slideshow-container1 { 
  max-width: min(var(--page-max), 92vw);
  margin-inline: auto;
}

/* News grid: stay nice on any width */
.cards{
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(14px, 2.2vw, 30px);
}

/* Card heights scale a bit on small screens */
.card{ height: clamp(340px, 48vw, 420px); }

/* Hero paddings scale */
.hero-section{ padding: clamp(24px, 6vw, 60px) clamp(16px, 6vw, 80px); gap: clamp(20px, 4vw, 40px); }
.hero-art .car{ max-width: min(600px, 100%); }

/* ----- Make header/nav NOT sticky on tablets & phones ----- */
@media (max-width: 1023px){
  /* Header */
  .header{
    position: static !important;   /* ensure no stickiness */
    box-shadow: none;              /* lighter look on mobile */
  }

  /* Nav container was sticky; unstick on mobile/tablet */
  .nav-container{
    position: static !important;
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
  }

  /* Friendlier nav spacing on small screens */
  .nav-menu{
    padding: 6px 10px;
    gap: 6px;
  }
  .nav-menu a,
  .nav-menu .dropbtn{
    padding: 12px 14px;
    font-size: 1rem;
  }
}



