 /* ===== Hero ===== */
  .app-hero{
    margin: 18px auto 28px; border-radius: 18px; overflow: hidden; position: relative;
    background: #0f172a url('../img/home/blog12.png') center/cover no-repeat;
    min-height: 60vh; display: grid; place-items: center; box-shadow: 0 18px 44px rgba(0,0,0,.18); isolation:isolate;
  }
  .app-hero::before{
    content:""; position:absolute; inset:0;
    background:
      radial-gradient(90% 70% at 20% 0%, rgba(34,197,94,.22), transparent 55%),
      linear-gradient(180deg, rgba(15,23,42,.35) 0%, rgba(15,23,42,.75) 100%);
    z-index:0;
  }
  .app-hero__inner{ position: relative; z-index: 1; color:#fff; text-align:center; padding: clamp(1rem,2.4vw,2rem); max-width: 900px; }
  .app-hero__title{
    font-weight: 900; font-size: clamp(1.6rem, 1.6vw + 1.2rem, 2.2rem); text-shadow: 0 6px 22px rgba(0,0,0,.35); margin-bottom:.65rem;
    opacity:0; transform: translateY(-14px); animation: fadeDown .8s ease forwards .05s;
  }
  .app-hero__lead{
    font-size: clamp(1rem, .6vw + .95rem, 1.15rem); opacity:.95;
    opacity:0; transform: translateY(14px); animation: fadeUp .8s ease forwards .15s;
  }
  @keyframes fadeUp { to { opacity:1; transform: translateY(0); } }
  @keyframes fadeDown { to { opacity:1; transform: translateY(0); } }

/* ===== Blog Cards Redesigned ===== */
.page-blog .blog-card-link {
  color: inherit;
  text-decoration: none;
}

.page-blog .blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
  transition: all .25s ease;
  position: relative;
}

.page-blog .blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,.10);
  border-color: rgba(0,0,0,.12);
}

.page-blog .blog-thumb-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.page-blog .blog-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease, filter .5s ease;
}

.page-blog .blog-card:hover .blog-thumb {
  transform: scale(1.05);
  filter: brightness(0.85);
}

.page-blog .blog-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-blog .blog-meta {
  font-size: .85rem;
  color: #64748b;
}

.page-blog .blog-title {
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: .4rem;
}

.page-blog .blog-excerpt {
  flex-grow: 1;
  font-size: .92rem;
  color: #475569;
}

.page-blog .blog-card .btn {
  align-self: flex-start;
  border-radius: 8px;
  font-weight: 600;
  transition: all .25s ease;
}

.page-blog .blog-card .btn:hover {
  background-color: #16a34a;
  color: #fff;
}




/* ===== HERO caption contrast fix ===== */
.hero-spot{ position:relative; overflow:hidden;
  display:flex; flex-direction:column; justify-content:center; align-items:center;
  text-align:center; padding: clamp(1.2rem, 2.4vw, 2.4rem);
  min-height: 220px;
}

/* قوّي وضوح العنوان والتاريخ */
.hero-spot__title{
  margin:0;
  font-weight:900;
  font-size:clamp(1.6rem, 1.2rem + 2vw, 2.4rem);
  line-height:1.2;
  text-shadow:0 4px 16px rgba(0,0,0,.45);

}

.hero-spot__desc{
  margin:6px 0 0;
  opacity:.95;
  text-shadow:0 2px 10px rgba(0,0,0,.4);
}



/* ===== Custom Pagination for Blog ===== */
.pagination {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 0;
}

.pagination .page-item {
  display: inline-block;
}

.pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: #16a34a;
  border: 1px solid rgba(22,163,74,0.4);
  font-weight: 600;
  transition: all 0.25s ease;
  text-decoration: none;
}

.pagination .page-link:hover {
  background: #16a34a;
  color: #fff;
  box-shadow: 0 4px 10px rgba(22,163,74,0.25);
}

.pagination .page-item.active .page-link {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}

.pagination .page-item.disabled .page-link {
  opacity: 0.5;
  pointer-events: none;
}




/* ===== Blog Single (Show Page) ===== */
.blog-single {
  background: #f9fafb;
}

.blog-hero {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  border-bottom: 4px solid #16a34a;
}

.blog-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65);
  transition: transform .6s ease;
}

.blog-hero:hover .blog-hero__img {
  transform: scale(1.05);
}

.blog-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.65) 100%);
}

.blog-hero__content {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  color: #fff;
  text-align: left;
  z-index: 2;
}

.blog-hero__title {
  font-weight: 800;
  font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem);
  margin-bottom: .4rem;
  text-shadow: 0 4px 10px rgba(0,0,0,.3);
}

.blog-hero__meta {
  font-size: .95rem;
  color: rgba(255,255,255,.9);
  text-shadow: 0 2px 6px rgba(0,0,0,.25);
}

/* ===== Article Body ===== */
.blog-content-container {
  max-width: 900px;
}

.blog-article {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
  padding: clamp(1.5rem, 2vw, 2.5rem);
}

.blog-article h1, .blog-article h2, .blog-article h3 {
  font-weight: 700;
  color: #0f172a;
  margin-top: 1.8rem;
  margin-bottom: .8rem;
}

.blog-article p {
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.2rem;
}

.blog-article ul {
  margin-left: 1.2rem;
  color: #374151;
}

.blog-article strong {
  color: #0f172a;
}

.blog-article img {
  max-width: 100%;
  border-radius: 10px;
  margin: 1.2rem 0;
}

.blog-article a {
  color: #16a34a;
  font-weight: 600;
  text-decoration: underline;
}

.blog-article a:hover {
  color: #15803d;
}

/* Responsive Fix */
@media (max-width: 768px) {
  .blog-hero {
    height: 280px;
  }
  .blog-hero__content {
    bottom: 20px;
  }
  .blog-hero__title {
    font-size: 1.5rem;
  }
}



/* ===== Blog Single: Article Center + Sidebar Right ===== */
.blog-wrapper {
  display: flex;
  justify-content: center; /* يخلي المحتوى بالنص */
  align-items: stretch; /* يخلي العمودين نفس الطول */
  gap: 2rem; /* المسافة بين المقال وSon Yazılar */
  max-width: 1200px;
  margin: 0 auto;
}

/* العمود الرئيسي للمقال */
.blog-wrapper .col-lg-8 {
  flex: 0 0 65%;
  max-width: 65%;
}

/* السايدبار (Son Yazılar) */
.blog-wrapper .col-lg-4 {
  flex: 0 0 28%;
  max-width: 28%;
}

/* المقال */
.blog-article {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  padding: clamp(1.6rem, 2vw, 2.5rem);
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.75;
  height: 100%;
}

/* السايدبار */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-sidebar .sidebar-widget {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 1.6rem 1.4rem;
  height: 100%;
}

/* العنوان Son Yazılar */
.blog-sidebar .widget-title {
  font-weight: 800;
  font-size: 1.25rem;
  color: #0f172a;
  border-left: 4px solid #16a34a;
  padding-left: 0.6rem;
  margin-bottom: 1.2rem;
}

/* الروابط */
.blog-sidebar .widget-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-sidebar .widget-list li {
  margin-bottom: 1rem;
  line-height: 1.7;
  transition: transform 0.2s ease;
}

.blog-sidebar .widget-list a {
  color: #334155;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease, transform 0.25s ease;
}

.blog-sidebar .widget-list a:hover {
  color: #16a34a;
  transform: translateX(4px);
}

/* متجاوب */
@media (max-width: 992px) {
  .blog-wrapper {
    flex-direction: column;
  }
  .blog-wrapper .col-lg-8,
  .blog-wrapper .col-lg-4 {
    max-width: 100%;
    flex: 0 0 100%;
  }
  .blog-sidebar {
    margin-top: 2rem;
  }
}








/* ===== Fix Layout: Article Center + Sidebar Right ===== */
.blog-wrapper {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* المقال */
.blog-main {
  flex: 0 0 68%;
  max-width: 68%;
}

.blog-article {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  padding: clamp(1.6rem, 2vw, 2.5rem);
  font-size: 1.05rem;
  line-height: 1.75;
  color: #334155;
  height: 100%;
}

/* السايدبار */
.blog-sidebar {
  flex: 0 0 28%;
  max-width: 28%;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  padding: 1.6rem;
  border: 1px solid rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.blog-sidebar .widget-title {
  font-weight: 800;
  font-size: 1.25rem;
  color: #0f172a;
  border-left: 4px solid #16a34a;
  padding-left: 0.6rem;
  margin-bottom: 1.2rem;
}

.blog-sidebar .widget-list li {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.blog-sidebar .widget-list a {
  color: #334155;
  text-decoration: none;
  transition: color 0.25s ease;
}

.blog-sidebar .widget-list a:hover {
  color: #16a34a;
}

/* Responsive */
@media (max-width: 992px) {
  .blog-wrapper {
    flex-direction: column;
  }
  .blog-main,
  .blog-sidebar {
    max-width: 100%;
    flex: 0 0 100%;
  }
  .blog-sidebar {
    margin-top: 2rem;
  }
}


/* Layout Fix: Center article + right sidebar + equal height */
.blog-wrapper {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-main {
  flex: 0 0 68%;
  max-width: 68%;
}

.blog-sidebar {
  flex: 0 0 28%;
  max-width: 28%;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  padding: 1.6rem;
  border: 1px solid rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

.widget-title {
  font-weight: 800;
  font-size: 1.25rem;
  color: #0f172a;
  border-left: 4px solid #16a34a;
  padding-left: .6rem;
  margin-bottom: 1.2rem;
}

.widget-list li {
  margin-bottom: 1rem;
  line-height: 1.7;
  transition: transform 0.2s ease;
}

.widget-list a {
  color: #334155;
  text-decoration: none;
  transition: color .25s ease, transform .25s ease;
}

.widget-list a:hover {
  color: #16a34a;
  transform: translateX(4px);
}

/* Responsive */
@media (max-width: 992px) {
  .blog-wrapper {
    flex-direction: column;
  }
  .blog-main, .blog-sidebar {
    max-width: 100%;
    flex: 0 0 100%;
  }
  .blog-sidebar {
    margin-top: 2rem;
  }
}





