:root{
  --primary: #06389B;
  --primary-dark: #052f82;
  --primary-light: #edf3ff;

  --text-dark: #06389B;
  --text-soft: #999999;
  --text-light: #b5b5b5;

  --bg-page: #ffffff;
  --bg-light: #f7f7f7;
  --bg-section: #fafafa;

  --border: #e5e5e5;
  --border-soft: #eeeeee;

  --footer-bg: #1f1f1f;
  --footer-text: #cccccc;

  --white: #ffffff;

  --shadow-sm: 0 4px 12px rgba(0,0,0,.04);
  --shadow-md: 0 10px 24px rgba(0,0,0,.06);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;

  --container-max: 1200px;
}

/* Base */
*,
*::before,
*::after{
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

body{
  margin: 0;
  padding: 0;
  font-family: Arial, "Segoe UI", Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background: var(--bg-page);
  color: var(--text-soft);
  overflow-x: hidden;
}

body[dir="rtl"]{
  text-align: right;
}

img{
  max-width: 100%;
  height: auto;
  display: block;
}

a{
  color: var(--primary);
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}

a:hover{
  color: var(--primary-dark);
}

p{
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-soft);
}

h1, h2, h3, h4, h5, h6{
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 0;
}

.text-secondary{
  color: var(--text-soft) !important;
}

.text-muted{
  color: var(--text-light) !important;
}

.bg-light{
  background: var(--bg-light) !important;
}

.container{
  max-width: var(--container-max);
}

/* Helpers */
.small-label{
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .7rem;
}

.section-head{
  margin-bottom: 2rem;
}

.section-head h2{
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin-bottom: .25rem;
  color: var(--primary);
}

/* Navbar */
.navbar{
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  padding-top: .55rem;
  padding-bottom: .55rem;
}

.navbar-brand{
  color: var(--primary) !important;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: .01em;
}

.navbar .nav-link{
  color: var(--text-soft) !important;
  font-weight: 400;
  padding-left: .95rem !important;
  padding-right: .95rem !important;
}

.navbar .nav-link:hover{
  color: var(--primary-dark) !important;
}

.navbar .nav-link.active{
  color: #ffffff !important;
  background: var(--primary);
}

.navbar-toggler{
  border: 1px solid var(--border);
  box-shadow: none !important;
}

/* Buttons */
.btn{
  border-radius: 4px;
  font-weight: 600;
  transition: all .2s ease;
}

.btn-success{
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.btn-success:hover,
.btn-success:focus{
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  color: #fff !important;
}

.btn-outline-dark{
  border-color: #cfd5d8 !important;
  color: var(--primary) !important;
  background: transparent !important;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus{
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}

.btn-lg{
  padding: .8rem 1.3rem;
}

/* Badge */
.badge.bg-success-subtle{
  background: var(--primary-light) !important;
  color: var(--primary-dark) !important;
  border: 1px solid #d6e3ff;
  font-weight: 700;
}

/* Hero / Banner Slider */
.hero-section{
  width: 100%;
  position: relative;
  margin: 0;
  padding: 0;
  background: #fff;
  overflow: hidden;
}

.hero-slider,
.banner-slider{
  width: 100%;
}

.hero-slider .carousel-inner,
.hero-slider .carousel-item,
.banner-slider .carousel-inner,
.banner-slider .carousel-item{
  width: 100%;
}

.hero-image,
.banner-slider .carousel-item img,
.modern-slider img{
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  background: #e9edef;
}

/* إذا كان هناك overlay قديم في الكود */
.hero-overlay{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.30);
  display: flex;
  align-items: center;
}

.hero-overlay h1{
  color: #ffffff;
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-overlay p{
  color: #dddddd;
  font-size: 18px;
  max-width: 600px;
  margin-bottom: 20px;
}

.carousel-item{
  position: relative;
}

/* كلاسيك أكثر للسلايدر */
.modern-slider,
.banner-slider{
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
}

.modern-slider .carousel-inner,
.modern-slider .carousel-item{
  border-radius: 0;
}

.modern-slider .carousel-caption{
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.2rem;
  text-align: left;
  background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0));
}

body[dir="rtl"] .modern-slider .carousel-caption{
  text-align: right;
}

.modern-slider .carousel-caption h5{
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .25rem;
}

.modern-slider .carousel-caption p{
  color: rgba(255,255,255,.92);
  margin-bottom: 0;
  font-size: .92rem;
}

.modern-slider .carousel-control-prev,
.modern-slider .carousel-control-next,
.banner-slider .carousel-control-prev,
.banner-slider .carousel-control-next{
  width: 48px;
  opacity: .75;
}

.modern-slider .carousel-control-prev:hover,
.modern-slider .carousel-control-next:hover,
.banner-slider .carousel-control-prev:hover,
.banner-slider .carousel-control-next:hover{
  opacity: 1;
}

/* Welcome / content blocks */
.info-card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 2rem;
  box-shadow: none;
}

.stat-box{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 1.4rem 1rem;
  text-align: center;
  height: 100%;
  box-shadow: none;
}

.stat-box h3{
  margin-bottom: .25rem;
  color: var(--primary);
  font-size: 1.7rem;
  font-weight: 700;
}

.stat-box span{
  font-size: .95rem;
  color: var(--text-soft);
  font-weight: 400;
}

/* Feature cards */
.feature-card{
  border-radius: 0 !important;
  overflow: hidden;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
  border: 1px solid var(--border-soft);
}

.feature-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm) !important;
}

.feature-card .card-img-top{
  height: 220px;
  object-fit: cover;
  background: #e8ecee;
}

.feature-card .card-body{
  padding: 1.2rem;
}

.feature-card .badge{
  background: var(--primary-light) !important;
  color: var(--primary-dark) !important;
  border: 1px solid #d6e3ff;
  font-weight: 700;
}

.feature-card .card-title{
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .6rem;
}

.feature-card .card-text{
  color: var(--text-soft);
  font-size: .95rem;
}

/* Partners */
.partner-box{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 1.2rem .9rem;
  text-align: center;
  height: 100%;
  box-shadow: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.partner-box:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.partner-box img{
  max-height: 68px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

.partner-box .small{
  color: var(--primary);
}

/* Contact */
.contact-list{
  padding: 0;
  margin: 0;
}

.contact-list li{
  margin-bottom: .9rem;
  color: var(--text-soft);
}

.contact-list strong{
  color: var(--primary);
}

.card{
  border-radius: 0;
  border: 1px solid var(--border);
}

.form-control,
.form-select{
  border-radius: 0;
  border: 1px solid #d6dcdf;
  min-height: 52px;
  box-shadow: none !important;
  color: var(--text-soft);
}

.form-control:focus,
.form-select:focus{
  border-color: var(--primary);
  box-shadow: 0 0 0 .15rem rgba(6,56,155,.10) !important;
}

textarea.form-control{
  min-height: 140px;
  resize: vertical;
  padding-top: .9rem;
}

/* Alerts */
.alert{
  border-radius: 0;
  border: 1px solid transparent;
}

.alert-success{
  background: #eef5ff;
  border-color: #d7e6ff;
  color: #204d9c;
}

.alert-danger{
  background: #f9eded;
  border-color: #efd8d8;
  color: #7c3d3d;
}

/* Footer */
.site-footer,
footer{
  background: var(--footer-bg);
  color: var(--footer-text);
  padding-top: 3rem;
  padding-bottom: 1.2rem;
}

.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
footer h2,
footer h3,
footer h4,
footer h5{
  color: #fff;
}

.site-footer a,
footer a{
  color: rgba(255,255,255,.92);
}

.site-footer a:hover,
footer a:hover{
  color: #ffffff;
}

.footer-title{
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-bottom{
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.8);
  font-size: .95rem;
}

/* Generic sections */
section{
  position: relative;
}

.py-5{
  padding-top: 3.5rem !important;
  padding-bottom: 3.5rem !important;
}

/* Tables */
.table{
  --bs-table-bg: transparent;
}

.table > :not(caption) > * > *{
  border-bottom-color: var(--border-soft);
}

/* Admin shared UI */
.admin-card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
}

.admin-sidebar{
  background: #fff;
  border-right: 1px solid var(--border);
}

body[dir="rtl"] .admin-sidebar{
  border-right: 0;
  border-left: 1px solid var(--border);
}

/* Classic banner section under slider if needed */
.welcome-classic{
  background: #fff;
}

.welcome-title{
  color: var(--primary);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 18px;
}

.welcome-text{
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 0;
}

.welcome-side-image{
  max-width: 260px;
  height: auto;
  display: inline-block;
}

/* Responsive */
@media (max-width: 991.98px){
  .hero-image,
  .banner-slider .carousel-item img,
  .modern-slider img{
    height: 360px;
  }

  .hero-overlay h1{
    font-size: 36px;
  }

  .hero-overlay p{
    font-size: 16px;
  }

  .info-card{
    padding: 1.5rem;
  }

  .welcome-title{
    font-size: 20px;
  }

  .welcome-text{
    font-size: 16px;
  }

  .welcome-side-image{
    margin-top: 20px;
    max-width: 200px;
  }
}

@media (max-width: 767.98px){
  .py-5{
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  .hero-image,
  .banner-slider .carousel-item img,
  .modern-slider img{
    height: 260px;
  }

  .modern-slider .carousel-caption{
    padding: .9rem 1rem 1rem;
  }

  .modern-slider .carousel-caption h5{
    font-size: .95rem;
  }

  .modern-slider .carousel-caption p{
    font-size: .85rem;
  }

  .feature-card .card-img-top{
    height: 200px;
  }

  .stat-box{
    padding: 1.2rem .9rem;
  }
}

@media (max-width: 575.98px){
  .hero-image,
  .banner-slider .carousel-item img,
  .modern-slider img{
    height: 220px;
  }

  .hero-overlay h1{
    font-size: 28px;
  }

  .hero-overlay p{
    font-size: 14px;
  }

  .btn-lg{
    width: 100%;
  }

  .navbar-brand{
    font-size: 1.15rem;
  }

  .welcome-title{
    font-size: 18px;
  }

  .welcome-text{
    font-size: 15px;
    line-height: 1.5;
  }
}

/* News ticker */
.news-ticker-section{
  background:#f3f6fb;
  border-top:1px solid #e6ebf2;
  border-bottom:1px solid #e6ebf2;
}

.news-ticker-wrap{
  display:flex;
  align-items:center;
  overflow:hidden;
  min-height:54px;
  background:#fff;
}

.news-ticker-label{
  flex:0 0 auto;
  background:#06389B;
  color:#fff;
  font-weight:700;
  padding:14px 18px;
  white-space:nowrap;
}

.news-ticker-box{
  position:relative;
  overflow:hidden;
  width:100%;
  padding:0 12px;
}

.news-ticker-track{
  display:flex;
  align-items:center;
  width:max-content;
  white-space:nowrap;
  will-change:transform;
}

.news-ticker-group{
  display:flex;
  align-items:center;
  flex-shrink:0;
}

.news-ticker-item{
  display:inline-flex;
  align-items:center;
  color:#06389B;
  font-weight:600;
  font-size:15px;
  white-space:nowrap;
  padding-inline-end:40px;
}

.news-ticker-item::before{
  content:"•";
  color:#06389B;
  margin:0 12px;
  font-size:18px;
  line-height:1;
}

.news-ticker-empty{
  color:#777;
  padding:14px 0;
  font-size:15px;
}

/* LTR */
html[dir="ltr"] .news-ticker-track,
body[dir="ltr"] .news-ticker-track{
  animation:tickerMoveLTR 25s linear infinite;
}

/* RTL */
html[dir="rtl"] .news-ticker-track,
body[dir="rtl"] .news-ticker-track{
  animation:tickerMoveRTL 25s linear infinite;
}

@keyframes tickerMoveLTR{
  0%   { transform:translateX(0); }
  100% { transform:translateX(-50%); }
}

@keyframes tickerMoveRTL{
  0%   { transform:translateX(0); }
  100% { transform:translateX(50%); }
}

.news-ticker-track:hover{
  animation-play-state:paused;
}

@media (max-width: 767.98px){
  .news-ticker-label{
    padding:12px 14px;
    font-size:14px;
  }

  .news-ticker-item{
    font-size:14px;
    padding-inline-end:28px;
  }
}

.site-logo{
  height:80px;
  width:auto;
}