/* الخط العام */ 
body {
    font-family: 'Cairo', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    overflow-x: hidden;
}

/* الشريط العلوي */
.navbar {
    background-color: #066058;
}

.navbar-brand span {
    color: #fff;
    font-weight: bold;
}

.navbar-nav .nav-link {
    color: #fff;
    margin-left: 15px;
    transition: color 0.3s, background-color 0.3s;
    border-radius: 5px;
    padding: 10px 15px;
}

.navbar-nav .nav-link:hover {
    color: #D6A329;
}


/* زر القائمة في الجوال */
.custom-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,\
%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E\
%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' \
stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* الأزرار المخصصة */
.btn-custom {
    background-color: #D6A329;
    color: #fff;
}

.btn-custom:hover {
    background-color: #b58823;
    color: #fff;
}

/* (بقية تنسيقاتك الأصلية من styles.css كما كانت دون تغيير) */


/* باقي التنسيقات كما كانت... */

/* سلايدر Swiper */
.swiper-container {
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.swiper-slide {
    width: 100%;
    height: 100%;
}

.slide-content {
    position: relative;
    width: 100%;
    height: 100vh;
    background-position: center;
    background-size: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Darker green overlay */
    background-color: rgba(6, 96, 88, 0.7);
}

.slide-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    width: 100%;
    padding: 0 15px;
    text-align: center;
}

.slide-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.slide-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* تخصيص أسهم ونقاط Swiper */
.swiper-button-next,
.swiper-button-prev {
    color: #D6A329;
}

.swiper-pagination-bullet {
    background-color: #D6A329;
}



/* الأقسام العلمية */
.department-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.department-card:hover {
    transform: translateY(-10px);
}

.department-icon {
    font-size: 2rem;
    color: #fff;
    background-color: #066058;
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* الحركات المبسطة */
[data-aos="fade-up"] {
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

/* من نحن */
.about-feature .icon {
    color: #066058;
}

.about-feature h5 {
    font-weight: bold;
    margin-top: 10px;
}

/* الإحصاءات */
.stat-card {
    padding: 30px;
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-card i {
    color: #066058;
    margin-bottom: 15px;
    font-size: 2.5rem;
}

.stat-card h3 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.stat-card p {
    margin: 0;
}

/* المواعيد المهمة */
#dates {
    background-color: #D6A329;
}

#dates h2 {
    color: #fff;
}

.dates-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.date-item {
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    width: 150px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.date-item:hover {
    transform: translateY(-10px);
}

.date-item h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #066058;
}

.date-item p {
    margin: 0;
    font-size: 0.9rem;
}

.date-item .date-icon {
    color: #D6A329;
    margin-bottom: 10px;
}

/* الخدمات الإلكترونية */
.service-card-small {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-card-small:hover {
    transform: translateY(-10px);
}

.service-card-small .service-icon {
    font-size: 2rem;
    color: #066058;
    margin-bottom: 10px;
}

.service-card-small h4 {
    margin-bottom: 10px;
    font-size: 1rem;
}

/* معرض الصور */
.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-item::after {
    content: '\f065';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: all 0.3s ease;
}

.gallery-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.gallery-item:hover {
    transform: scale(1.05);
    cursor: pointer;
}

/* اتصل بنا */
.contact-info {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.contact-info h4 {
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info .social-links a {
    color: #066058;
    margin-right: 15px;
    font-size: 1.5rem;
}

.contact-info .social-links a:hover {
    color: #D6A329;
}

/* خريطة الموقع */
.map-container {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

/* التذييل */
footer a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}
footer a:hover {
  color: var(--ceh-gold);
}
footer h4 {
  margin-bottom: 1rem;
}
.footer .social-links a {
  margin-right: 1rem;
}
@media (max-width: 576px) {
  footer .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}


/* تحسين العرض على الأجهزة المحمولة */
@media (max-width: 767px) {
    .slide-text h1 {
        font-size: 2rem;
    }
    .slide-text p {
        font-size: 1rem;
    }
    .navbar-brand span {
        font-size: 1rem;
    }
    .navbar-brand img {
        width: 40px;
    }
    #about .about-feature {
        margin-bottom: 20px;
    }
    .dates-grid {
        flex-direction: column;
        align-items: center;
    }
    .date-item {
        width: 100%;
        max-width: 300px;
    }
}

:root{
  --ceh-green:#066058;
  --ceh-dark:#004C45;
  --ceh-gold:#D6A329;
  --ceh-gold-dark:#b58823;
}

/* خلفية تدريجية للهيدر */
.main-nav{
  background:linear-gradient(90deg,var(--ceh-green) 0%,#05584f 50%,var(--ceh-dark) 100%);
  transition:padding .2s;
}

/* تقلص عند التمرير */
.nav-animated.navbar-shrink .main-nav{padding:.25rem 0;}
.nav-animated.navbar-shrink .nav-logo{width:34px!important;}
.nav-animated.navbar-shrink .navbar-brand span{font-size:1rem;}

/* روابط سطح المكتب */
.nav-main .nav-link{
  color:#fff;
  display:flex;align-items:center;gap:.35rem;
  padding:10px 14px;border-radius:6px;
  transition:color .15s,background .15s;
  white-space:nowrap;
}
.nav-main .nav-link:hover{color:var(--ceh-gold);}


/* قائمة الخدمات المنسدلة */
.dropdown-menu-dark{background:var(--ceh-dark);border:0;}
.dropdown-menu-dark .dropdown-item{text-align:right;color:#fff;}
.dropdown-menu-dark .dropdown-item:hover{background:rgba(214,163,41,.15);color:var(--ceh-gold);}

/* Offcanvas */
.offcanvas.text-bg-dark{background:var(--ceh-green);}
.mobile-nav-list .list-group-item{border:0;border-bottom:1px solid rgba(255,255,255,.1);}
.offcanvas .nav-link{
  color:#fff;padding:.9rem 1rem;
  display:flex;align-items:center;gap:.5rem;
  transition:background .15s;
}
.offcanvas .nav-link:hover{background:rgba(255,255,255,.08);color:var(--ceh-gold);}
.offcanvas .nav-link.active{background:var(--ceh-gold);color:#fff!important;}

/* الخدمات في الموبايل */
.mobile-services-pane h6{color:#fff;}
.mobile-services-pane .btn-warning{background:var(--ceh-gold);border:none;}
.mobile-services-pane .btn-warning:hover{background:var(--ceh-gold-dark);}

/* زر الهامبرغر */
.custom-toggler .navbar-toggler-icon{
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
.custom-toggler{border-color:rgba(255,255,255,.4)!important;}

/* تركيز وصولي */
.nav-link:focus,
.dropdown-item:focus{outline:2px solid var(--ceh-gold);outline-offset:2px;}

/* منع تغطية المحتوى */
body{padding-top:63px;scroll-padding-top:100px;}







/* ألغِ أي هامش علوي لأول قسم في صفحات فرعية */
.subpage-hero,
.page-hero,
main > section:first-of-type,
main > div:first-of-type {
  margin-top: 0 !important;
}

/* تأكد أن الهيدر لا يهبط المحتوى */
.navbar { margin-bottom: 0 !important; }

/* تعطيل أي outline/box-shadow مزعج عند التركيز */
.nav-link:focus,
.nav-link:focus-visible,
.nav-link:focus-within {
  outline: none !important;
  box-shadow: none !important;
}

/* نمط مريح للرابط النشط (بدون مستطيل ذهبي مزعج)  */
.nav-main .nav-link.active {
  background: rgba(214,163,41,.18);   /* ظل ذهبي خفيف */
  color: var(--ceh-gold);
  font-weight: bold;
  border-radius: 6px;
  padding: 10px 14px;
}
@media (min-width:992px){
  .nav-main .nav-link.active {
    background: none;                 /* لو تفضّل بدون خلفية */
    color: var(--ceh-gold);
    position: relative;
  }
  .nav-main .nav-link.active::after {
    content:"";
    position:absolute;
    bottom:-6px;
    left:50%;
    width:22px;
    height:3px;
    background:var(--ceh-gold);
    transform:translateX(-50%);
    border-radius:2px;
  }
}

/* مؤشّر التمرير في أسفل الهيرو */
.scroll-down-indicator {
  position: absolute;
  bottom: 20px;               /* مسافة من أسفل الهيرو */
  left: 50%;
  transform: translateX(-50%);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  animation: bounce 2s infinite;
}

.scroll-down-indicator i {
  font-size: 2rem;
  color: #fff;                /* أبيض ليتباين مع خلفية السلايدر */
  opacity: 0.8;
  transition: opacity 0.3s;
}

.scroll-down-indicator:hover i {
  opacity: 1;
}

/* حركة ارتداد بسيطة */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* للتأكيد على ظهوره فوق السلايدر */
#hero {
  position: relative;
}

/* 1. رفع النص والزر داخل السلايدر */
#hero .slide-text {
  top: 35%;           /* بدل 50% اجعله 35% */
  transform: translate(3%, -40%);
}

/* 2. رفع أسهم التنقل (Prev / Next) */
.swiper-button-next,
.swiper-button-prev {
  top: 50%;           /* بدل 50% اجعلها 35% */
  bottom: auto;
}

/* 3. رفع نقاط الترقيم (pagination bullets) */
.swiper-pagination {
  bottom: 240px !important;  /* بدل القيمة الافتراضية (عادةً 20px) */
}

/* 4. رفع سهم “مرّر للأسفل” */
.scroll-down-indicator {
  bottom: 160px;       /* بدل 20px اجعلها 80px */
}

/* بطاقة البحث القادمة */
.search-coming-soon {
  border: none;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(6,96,88,0.1) 0%, rgba(214,163,41,0.1) 100%);
}

.search-coming-soon .card-body {
  padding: 2rem;
}

.search-coming-soon .form-control {
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  background-color: #f0f0f0;
  border: none;
}

.search-coming-soon .form-control:disabled {
  color: #999;
}

.search-coming-soon .btn-custom {
  border-radius: 50px;
  padding: 0.6rem 1.8rem;
}

.search-coming-soon .btn-custom:disabled {
  opacity: 0.6;
}

/* تلوين الأيقونة */
.search-coming-soon .fa-search {
  color: var(--ceh-green);
}

/* إبراز رئيس القسم */
.head-of-department {
  border: 3px solid var(--accent-color);
  background-color: rgba(214,163,41,0.1);
}
.head-of-department .info-card {
  box-shadow: 0 0 20px rgba(214,163,41,0.4);
}
.head-of-department .badge-head {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.2rem 0.6rem;
  background: var(--accent-color);
  color: #fff;
  font-size: 0.8rem;
  border-radius: 0.5rem;
}


/* شريط دعوة النسخة الإنجليزية */
.english-promo {
  background-color: #f8f9fa; /* خلفية فاتحة خفيفة */
}
.btn-outline-custom {
  color: var(--ceh-green);
  border: 1px solid var(--ceh-green);
}
.btn-outline-custom:hover {
  background-color: var(--ceh-green);
  color: #fff;
}

