html {
   scroll-behavior: smooth;
}

 @font-face {  font-family: "Proxima-Nova-Bold";
 src: url('../fonts/Proxima-Nova-Bold.otf');
     
 }
 
 @font-face {  font-family: "Proxima-Nova-SBold";
 src: url('../fonts/proximanova-semibold.otf');
     
 }
 
 @font-face {  font-family: "Proxima-Nova";      src: url('../fonts/proxima_nova_reg.ttf');}

.logo img {
	width:100%;padding: 12px 0px;
	height:130px;
}



.user-login-form{
    text-align:right;
}






#block-views-block-inner-image-block-1 img{ 
    width:100%; height:auto; margin-top:-27%;}
/* ====== Header Styles ====== */
.header {
  background: #0b4a6f;    /* الأزرق الغامق */
  color: #fff;
  padding: 1rem 0;
}

/* اجبر العناصر تكون عمودية */
.header .header-top .row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* العنوان */
#site-title {
  margin: 0 0 1rem 0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

#site-title a {
  color: #fff;             /* أبيض */
  text-decoration: none;
  font-family: inherit;    /* نفس خط القائمة */
}

#site-title a:hover {
  color: #ffd700;          /* ذهبي عند الهوفر */
}

/* القائمة */
.header .main-menu {
  margin: 0;
  padding: 0;
  width: 100%;
}

.header .main-menu .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;             /* مسافة بين العناصر */
  flex-wrap: wrap;         /* يخليها تنزل تحت بعض عند صغر الشاشة */
  justify-content: center;
}

/* عناصر وروابط القائمة */
.header .main-menu .menu-item {
    display: inline-block;
    padding: 2px 10px;
    border: 2px solid #2f6281;
    border-radius: 7px;
}

.header .main-menu .menu-item a {
  color: #fff;             /* أبيض */
  text-decoration: none;
  font-weight: 600;
  font-family: inherit;    /* نفس خط العنوان */
  transition: color .3s ease;
  font-size:22px;
}

.header .main-menu .menu-item a:hover,
.header .main-menu .menu-item a:focus {
  color: #ffd700;          /* ذهبي عند الهوفر */
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    padding: .75rem 0;
  }
  #site-title {
    font-size: 34px;
    margin-bottom: .75rem;
  }
  .header .main-menu .menu {
    gap: 1rem;
  }
  
  .header .main-menu .menu-item{
      margin:5px;
  }
  
  .header .main-menu .menu-item a{
      
      font-size:13px;
  }
}


/* ====== Header Fixes ====== */
#site-title a {
  color: #fff !important;             /* أبيض */
  text-decoration: none !important;
  font-weight: 700 !important;
  font-family: inherit !important;    /* نفس خط الموقع */
}

.header .main-menu .menu-item a {
  color: #fff !important;             /* أبيض */
  text-decoration: none !important;
  font-weight: 600 !important;
  font-family: inherit !important;
}

.header .main-menu .menu-item a:hover,
.header .main-menu .menu-item a:focus {
  color: #ffd700 !important;          /* ذهبي عند الهوفر */
}

/* تأكد أن القائمة تبقى ظاهرة حتى على الموبايل */
.header .main-menu .menu {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

body, #site-title a, .header .main-menu .menu-item a {
  font-family: "Tahoma", Arial, sans-serif !important;
}

.node h2.title a, h1.page-title{
    text-align:center;
    font-size:28px;
}


#content-wrap{
    text-align:right;
}


/* الحاوية للصور */
.page-args-node-191 article > div > div, .page-node-gallery article > div > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem; /* مسافة بين الصور */
}

/* الصور */
.page-args-node-191 img ,.page-node-gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;               /* حواف ناعمة */
  box-shadow: 0 2px 6px rgba(0,0,0,0.15); /* ظل خفيف */
  transition: transform 0.3s ease;
  object-fit: cover;
}

/* تأثير عند الهوفر */
.page-args-node-191 img:hover , .page-node-gallery img:hover{
  transform: scale(1.05);
}

/* موبايل - تأكد من ملائمة الصور */
@media (max-width: 576px) {
  .page-args-node-191 article > div > div  , .page-node-gallery article > div > div  {
    grid-template-columns: 1fr; /* صورة وحدة بالصف */
    gap: 0.75rem;
  }
}

.feed-icon{display:none;}


/* ===== News Section ===== */
.news {
  padding: 2rem 0;
  background: #f9f9f9;
}

.news h2 {
  text-align: center;
  color: #0b4a6f;
  margin-bottom: 1.5rem;
  font-weight: bold;
}

/* شبكة الأخبار */
.news .js-view-dom-id-88791e4a8df313df17cad2ae062c0e01d7f1c871d1f10794a0e8f587c11a3acf {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}/* ===== News Section ===== */
.news {
  padding: 2rem 0;
  background: #f9f9f9;
}

.news h2 {
  text-align: center;
  color: #0b4a6f;
  margin-bottom: 1.5rem;
  font-weight: bold;
}

/* كل خبر كبطاقة */
.news .views-row {
  background: #fff;
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  margin-bottom: 1rem; /* fallback لو فيه مشكلة بالـ gutter */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news .views-row:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* العنوان */
.news .views-field-title a {
  font-size: 20px;
  font-weight: bold;
  color: #0b4a6f;
  text-decoration: none;
}

.news .views-field-title a:hover {
  color: #093852;
  text-decoration: underline;
}

/* التاريخ */
.news .views-field-created {
  margin: 0.5rem 0;
  color: #777;
  font-size: 0.9rem;
}

/* زر عرض المزيد */
.news .views-field-view-node a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #0b4a6f;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.news .views-field-view-node a:hover {
  background: #093852;
}

/* ===== Categories Section ===== */
.categories {
  padding: 2rem 0;
  background: #fff;
}

.categories h2 {
  text-align: center;
  color: #0b4a6f;
  margin-bottom: 1.5rem;
  font-weight: bold;
}

/* كل قسم */
.categories .views-row {
  padding: 0.75rem;
}

.categories .views-field-name a {
  display: block;
  background: #f4f4f9;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  color: #0b4a6f;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

/* تأثير hover */
.categories .views-field-name a:hover {
  background: #0b4a6f;
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Responsive تحسين للموبايل */
@media (max-width: 576px) {
  .categories .views-field-name a {
    font-size: 15px;
    padding: 1rem;
  }
}

/***/

/* ===== Static Hero Banner ===== */
.hero-banner {
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}

.hero-banner .banner-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: brightness(80%);
}

.hero-banner .hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
  background: rgba(11, 74, 111, 0.55);
  padding: 1.5rem 2rem;
  border-radius: 10px;
}

.hero-banner .hero-text h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero-banner .hero-text p {
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .hero-banner .banner-img {
    height: auto;
    object-fit: initial;
  }

  .hero-banner .hero-text {
    padding: 1rem;
  }

  .hero-banner .hero-text h2 {
    font-size: 1.25rem;
  }

  .hero-banner .hero-text p {
    font-size: 0.95rem;
  }
}

/* ===== Clan Portals Section ===== */
.portals {
  padding: 2.5rem 0;
  background: #f4f4f9;
}

.portals h2 {
  text-align: center;
  color: #0b4a6f;
  margin-bottom: 2rem;
  font-weight: bold;
}

/* شبكة البوابات */
.portals .menu {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1000px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 👈 3 بالأفق حسب العرض */
  gap: 1.2rem;
  justify-content: center;
}

/* كل بوابة */
.portals .menu-item {
  text-align: center;
}

.portals .menu-item a {
  display: block;
  background: #0b4a6f;
  color: #fff;
  text-decoration: none;
  padding: 1.3rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 19px;
  border: 1px solid #093852;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

/* Hover */
.portals .menu-item a:hover {
  background: #093852;
  transform: translateY(-4px);
}

/* موبايل */
@media (max-width: 768px) {
  .portals .menu {
    grid-template-columns: 1fr 1fr; /* عمودين في الموبايل */
    gap: 0.8rem;
  }
}

@media (max-width: 576px) {
  .portals .menu {
    grid-template-columns: 1fr; /* عمود واحد للموبايل الصغير */
  }
}


#site-logo{
    float:initial !important;
}

#site-logo img{
    width:250px;
}

.ticker {
  display: flex;
  align-items: center;
  height: 4.5rem;
  background: #2C5874; /* 🎨 background color from your image */
  color: #fff;
  overflow: hidden;
  font-family: "Noto Kufi Arabic", Tahoma, sans-serif;
  direction: rtl;
}

/* Label box */
.ticker__label {
  flex: 0 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.3rem;
  background: #f59e0b; /* golden accent */
  color: #000;
  white-space: nowrap;
}

/* Scrolling area */
.ticker__wrap {
  position: relative;
  overflow: hidden;
  flex: 1 1 auto;
  height: 100%;
}

.ticker__track {
  display: flex;
  align-items: center;
  gap: 3rem;
  white-space: nowrap;
  will-change: transform;
  animation: ticker-scroll-ltr 25s linear infinite;
}

.ticker__item {
  line-height: 4.5rem;
  font-size: 25px; /* 👈 your requested font size */
  font-weight: 500;
}

.ticker__separator {
  color: #fbbf24;
  font-weight: bold;
  font-size: 26px;
}

/* Pause on hover */
.ticker:hover .ticker__track {
  animation-play-state: paused;
}

/* Animation: left ➜ right */
@keyframes ticker-scroll-ltr {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* 📱 Responsive for mobiles */
@media (max-width: 768px) {
  .ticker {
    height: 3.5rem;
  }
  .ticker__item {
    font-size: 18px;
    line-height: 3.5rem;
  }
  .ticker__label {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
  
  .ticker__track {
  animation: ticker-scroll-ltr 25s linear infinite;
}
}