*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: "GoldenLot";
  src: url("/static/fonts/GoldenLot.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

:root {
  --primary: #966c2d;
  --secondary: #182911;
  --accent: #e74c3c;
  --dark: #2c3e50;
  --light: #ecf0f1;
  --white: #fff0dc;
  --font-family: "GoldenLot", sans-serif;
  --font-alt: "Roboto", sans-serif;
  --transition-speed: 0.4s;
  --clr-sections-bg: #e0c9a6; /* بني أغمق قليلًا */
  --clr-card-bg: #fff0dc; /* لون البطاقات */
  --clr-text-dark: #213d14;
  --trans: 0.3s;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--dark);
  background: rgb(161, 161, 120) !important;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  overflow-x: hidden;
  display: flex;
  padding: 0;
  min-height: 100vh;
  flex-direction: column;
  background-color: var(--white);
}

main {
  flex-grow: 1;
}

.container {
  width: 90%;
  max-width: 1265px;
  margin: 0 auto;
}

.text-center {
  text-align: center !important;
}
.mt-1 {
  margin-top: 1rem;
}
.mt-2 {
  margin-top: 2rem;
}
.mb-1 {
  margin-bottom: 1rem;
}
.mb-2 {
  margin-bottom: 2rem;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, #c5ab8f, #e9d3bb);
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  gap: 10px;
  font-size: 1.5rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  width: 100%;
}

.logo-img {
  width: 14rem;
  height: auto;
}

.navbar nav {
  display: flex;
  align-items: center;
}

.navbar nav a {
  margin-left: 1.5rem;
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-speed);
}

.navbar nav a:hover {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: url('{{ url_for("static", filename="img/hero-bg.jpg") }}')
    no-repeat center center/cover;
  text-align: center;
  position: relative;
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(44, 62, 80, 0.6);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: fadeInDown var(--transition-speed) ease-out;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  animation: fadeInUp var(--transition-speed) ease-out;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: none;
  background: var(--primary);
  color: var(--white);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background var(--transition-speed),
    transform var(--transition-speed);
  box-sizing: border-box;
  border-radius: 10px;
  margin: 10px;
  margin-left: 3px;
}

.btn-sm-square {
  font-size: 20px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  background: #9f5b04;
  transform: scale(1.03);
}

.btn-primary:active {
  color: #ffffff;
  background-color: #beab8e;
}

.btn-primary:hover {
  color: #ffffff;
  background-color: #beab8e;
  border-color: #beab8e;
}

.card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform var(--transition-speed);
  width: 100%;
  height: 100%;
  margin-bottom: 10px;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 250px;
  display: block;
  object-fit: fill;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.card-text {
  color: var(--dark);
}

.swiper-container {
  width: 100%;
  padding-top: 6rem;
  padding-bottom: 6.5rem;
}

.swiper-slide {
  background-position: center;
  background-size: cover;
  width: 300px;
  height: auto;
}

.swiper-button-next,
.swiper-button-prev {
  color: #007bff;
}

.move {
  width: 60px;
  height: 60px;
  background-color: #7b6302;
  border: 5px solid #7b6302;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.move:hover {
  background-color: #f0a500;
  border: 5px solid #f0a500;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  transform: scale(1.1);
}

.bg-dark {
  text-align: right;
  padding-top: 50px;
  padding-bottom: 20px;
}

.btn-social {
  width: 20px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border-radius: 50%;
  transition: 0.3s;
}

.btn-social:hover {
  background: #beab8e;
  color: white;
  border-color: #beab8e;
}

.list-unstyled a {
  font-size: 16px;
  text-decoration: none;
  transition: 0.3s;
}

.list-unstyled a:hover {
  color: #beab8e;
}

.input-group input {
  border-radius: 5px 0 0 5px;
  padding: 10px;
}

.input-group button {
  border-radius: 0 5px 5px 0;
  padding: 10px;
}

footer {
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #333;
  color: white;
  text-align: center;
  padding: 10px 0;
  font-family: "Cairo", sans-serif;
}

.footer p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #3b4d3b;
}

.footer a {
  color: #3b4d3b;
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #7d977d;
}

.footer .btn-social {
  border: none;
  background-color: #eae7dc;
  color: #3b4d3b;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.3rem;
  border-radius: 50%;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.footer .btn-social:hover {
  background-color: #3b4d3b;
  color: #ffffff;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* التأثير الأساسي على روابط الـ navbar */
.qq {
  position: relative;
  display: inline-block;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.qq::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 0%;
  height: 2px;
  background-color: #966c2d;
  transition: width 0.4s ease-in-out;
}

.qq:hover {
  color: #966c2d;
}

.qq:hover::after {
  width: 100%;
}

/* تأثير hover على روابط التنقل */
.navbar-nav .nav-link.qq {
  transition: all 0.3s ease-in-out;
}

.navbar-nav .nav-link.qq:hover,
.navbar-nav .nav-link.qq:focus {
  color: #c19b66; /* لون عند التمرير */
  text-decoration: none;
  transform: translateY(-2px); /* حركة خفيفة لأعلى */
}

/* عند الرابط النشط */
.navbar-nav .nav-link.active {
  color: #7e5823 !important;
  font-weight: bold;
  font-size: 1.05rem;
}

.navbar .dropdown-toggle::after {
  display: none !important;
}
/* تحسين القوائم المنسدلة */
.dropdown-menu {
  transition: all 0.4s ease;
  border-radius: 0 0 10px 10px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  background-color: #fffaf2;
  min-width: 200px;
}

.dropdown-menu a {
  color: #000;
  padding: 10px 20px;
  transition: background-color 0.3s ease, padding-left 0.3s ease;
}

.dropdown-menu a:hover {
  background-color: #f3e7d1;
  padding-left: 25px;
  color: #966c2d;
}

/* زر الموبايل */
.navbar-toggler {
  border: none;
  outline: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  opacity: 0.9;
  z-index: -1;
}

/* الأزرار الخاصة بتسجيل الدخول وإنشاء حساب */
.qq-login,
.qq-signup {
  background-color: transparent;
  color: #333; /* يمكنك تغيير هذا اللون حسب الحاجة */
  border: 2px solid #333; /* لتحديد الحواف */
  transition: background-color 0.3s, color 0.3s;
}

.qq-login:hover,
.qq-signup:hover {
  background-color: #966c2d;
  color: #fff;
}
footer {
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #333;
  color: white;
  text-align: center;
  padding: 10px 0; /* تقليل الطول */
}

/* حاوية الأزرار */
.buttons-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 10px; /* تصغير المسافة بين الأزرار */
}

@media (min-width: 1024px) {
  .buttons-container {
    margin-left: -70px;
  }
}

/* تصغير الأزرار */
.buttons-container a {
  font-size: 0.9rem; /* تصغير حجم الخط */
  width: 9rem; /* تصغير العرض */
  height: 3rem; /* تصغير الارتفاع */
  padding: 5px 10px; /* تقليل التباعد الداخلي */
  text-align: center;
}

.footer-link {
  color: #f8f9fa;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.footer-link:hover {
  color: #ffc107;
  transform: translateX(-5px);
}

.footer-link i {
  font-size: 16px;
}

/* تحسين navbar في الأجهزة الصغيرة */
@media (max-width: 768px) {
  .navbar {
    padding: 0.5rem 1rem; /* تقليل المسافة */
  }

  .navbar nav {
    flex-direction: column;
    background-color: var(--white);
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    display: none;
  }

  .navbar nav.active {
    display: flex;
  }

  .navbar .nav-toggle {
    display: block;
    font-size: 2rem;
  }

  .navbar nav a {
    margin: 1rem 0;
  }

  /* تقليل عرض البطاقات */
  .card {
    width: 100%;
    margin-bottom: 1rem;
  }

  /* تصغير المسافات في hero */
  .hero {
    min-height: 60vh;
    padding: 2rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  /* تعديل الأزرار */
  .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }

  /* تعديل تنسيق الأزرار في الـ footer */
  .footer .btn-social {
    width: 80px;
    height: 35px;
    font-size: 18px;
  }

  .buttons-container a {
    font-size: 0.8rem;
    width: 7rem;
    height: 2.5rem;
  }

  .footer-link {
    font-size: 14px;
  }
}

/* تحسين بعض الحاويات و النصوص على الأجهزة الصغيرة */
@media (max-width: 600px) {
  .container {
    width: 101%;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .card-body {
    padding: 1rem;
  }

  .footer p {
    font-size: 0.9rem;
  }

  .footer-link i {
    font-size: 14px;
  }

  .header-banner {
    height: 6rem !important;
  }

  .txt {
    text-align: start !important;
    padding-bottom: 100px;
    padding-top: 100px;
  }
  .p {
    width: 81% !important;
  }
  .ad {
    display: flex;
    flex-wrap: wrap;
    width: 300px;
    justify-content: center;
    align-items: center;
    margin: auto;
  }

  .pr {
    width: 370px;
  }

  .ic {
    width: 100px;
  }
  .kr {
    font-size: 2rem;
  }
}

@media (max-width: 767px) and (min-width: 554) {
  .pr {
    width: 30%;
  }
}
/* تحسين ترتيب النصوص في footer */
@media (max-width: 768px), (min-width: 481px) {
  .footer p {
    font-size: 0.9rem;
  }

  .footer .btn-social {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
}

@media (max-width: 768px) and (min-width: 481px) {
  .header-banner {
    height: 10rem !important;
  }
}
/* Responsive Layout Fixes */
.landing {
  min-height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("/static/img/landing-bg.jpg") center/cover no-repeat;
  color: #fff;
}

.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.b {
  color: white;
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 1rem;
  display: block;
}

.b:hover {
  color: #ddb84b;
}
.scrolling-wrapper {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  padding-bottom: 1rem;
}
.scrolling-wrapper .card {
  scroll-snap-align: start;
  min-width: 250px;
  flex-shrink: 0;
}
.scroll-btn {
  background: #fff;
  border: none;
  font-size: 2rem;
  padding: 0 10px;
  cursor: pointer;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .scroll-btn {
    font-size: 1.5rem;
    padding: 0 5px;
  }

  .landing h2 {
    font-size: 1.5rem;
  }

  .landing p {
    font-size: 1rem;
  }

  .card-title {
    font-size: 1rem;
  }

  .btn {
    font-size: 0.9rem;
  }
}

footer {
  font-size: 1rem;
}

footer .btn-social {
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 1rem;
}

footer .btn-social i {
  font-size: 1rem;
  line-height: 40px;
}

.footer-link {
  font-size: 1rem;
}

footer h5,
footer p {
  font-size: 1rem;
}

/* شاشات متوسطة */
@media (max-width: 768px) {
  footer {
    font-size: 0.9rem;
  }

  .footer-link,
  footer h5,
  footer p {
    font-size: 0.9rem;
  }

  footer .btn-social {
    width: 36px;
    height: 36px;
  }

  footer .btn-social i {
    font-size: 0.9rem;
    line-height: 36px;
  }
}

/* شاشات صغيرة */
@media (max-width: 576px) {
  footer {
    font-size: 0.8rem;
  }

  .footer-link,
  footer h5,
  footer p {
    font-size: 0.8rem;
  }

  footer .btn-social {
    width: 32px;
    height: 32px;
  }

  footer .btn-social i {
    font-size: 0.8rem;
    line-height: 32px;
  }
}

/* أصغر شاشات */
@media (max-width: 400px) {
  footer {
    font-size: 0.7rem;
  }

  .footer-link,
  footer h5,
  footer p {
    font-size: 0.7rem;
  }

  footer .btn-social {
    width: 28px;
    height: 28px;
  }

  footer .btn-social i {
    font-size: 0.7rem;
    line-height: 28px;
  }

  .lnk {
    display: flex;
  }

  .footer-links li {
    width: 150px;
  }
  .text-primary {
    font-size: 18px;
  }
}

.custom-footer {
  background-color: #351f00;
  color: #f0f0f0;
  padding: 3rem 1rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.footer-section {
  flex: 1 1 250px;
  min-width: 250px;
}

.footer-title {
  color: #ffc107;
  margin-bottom: 1rem;
  font-weight: bold;
  font-size: large;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #f0f0f0;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #ffc107;
}

.footer-social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn-social {
  width: 40px;
  height: 40px;
  border: 1px solid #f0f0f0;
  border-radius: 50%;
  color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-social:hover {
  background-color: #ffc107;
  color: #351f00;
}

.footer-copy {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
}
.shadow-smm {
  box-shadow: inset 0px 0px 10rem 10px rgb(220 179 124) !important;
}

.a {
  margin-left: 40px;
}

.roww {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(var(--bs-gutter-y) * -1);
  margin-right: calc(var(--bs-gutter-x) / -2);
  margin-left: calc(var(--bs-gutter-x) / -2);
}

.col-md-66 {
  flex: 0 0 auto;
  width: 45%;
  margin-bottom: 1.5rem !important;
  margin: auto;
  margin-bottom: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.col-md-666 {
  flex: 0 0 auto;
  margin-bottom: 1.5rem !important;
  margin: auto;
  margin-bottom: auto;
}

.col-md-66:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.col-md-44 {
  flex: 0 0 auto;
  width: 30%;
  margin-bottom: 1.5rem !important;
  margin: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.articles-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.article-card {
  flex: 1 1 calc(33.333% - 20px); /* 3 بطاقات في الصف */
  max-width: calc(33.333% - 20px);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
}

/* الشاشات المتوسطة */
@media (max-width: 992px) {
  .article-card {
    flex: 1 1 calc(50% - 20px); /* بطاقتين في الصف */
    max-width: calc(50% - 20px);
  }
}

/* الشاشات الصغيرة */
@media (max-width: 476px) {
  .article-card {
    flex: 1 1 100%; /* بطاقة واحدة في الصف */
    max-width: 100%;
  }

  .card-img-top {
    height: 160px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .card-text {
    font-size: 0.9rem;
  }
}

.category-card {
  background-color: #f9f1e7;
  padding: 15px 25px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  font-weight: bold;
  transition: 0.3s ease;
  min-width: 200px;
  text-align: center;
}

.category-card:hover {
  background-color: #e0c9a6;

  color: white;
}

.jus-center {
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
  width: 200px;
  margin: auto;
}

.marg-bot {
  margin-bottom: 20px;
}

.mar-top {
  margin-top: 50px;
}
.les-list-style {
  padding: 20px;
  margin-bottom: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    background-color 0.3s ease;
  cursor: pointer;
  user-select: none; /* تمنع تحديد النص */
}

.les-list-style:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.les-list-style:focus,
.les-list-style:focus-visible,
.les-list-style:active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

.bg-les-list-bakcolor {
  background-color: #6e4c1e !important; /* بني */
  color: white !important;
}

iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  border-radius: 16px !important;
}

:root {
  --clr-bg-light: #fff0dc;
  --clr-text-dark: #213d14;
  --clr-accent: #beab8e;
  --clr-highlight: #750a10;
  --ff-base: "Heebo", sans-serif;
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-direction: row-reverse; /* نصّ على اليسار، أيقونة على اليمين */
  width: 100%;
  height: 100%; /* يستغل كامل ارتفاع الهيدر */
  margin-top: 100px;
}

/* الأيقونة (العمود الأيمن) */
.hero-icon {
  flex: 1 1 50%; /* يحتل نصف المساحة تقريباً */
  max-width: 50%;
  margin-right: 200px;
}
.hero-icon img {
  width: 130%; /* يعرض الصورة بعرض الحاوية بالكامل */
  max-width: none;
  height: auto;
  object-fit: contain;
}

/* صندوق النص (العمود الأيسر) */
.text-box {
  flex: 1 1 50%; /* يحتل نصف المساحة تقريباً */
  max-width: 50%;
  color: #213d14; /* نص أسود غامق */
  text-align: left;
}
.text-box h1 {
  font-size: clamp(3rem, 8vw, 4.3rem); /* عنوان أكبر */
  margin-bottom: 1rem;
}
.text-box p {
  font-size: clamp(1rem, 3vw, 1.5rem); /* فقرة أكبر */
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* تصغير للهواتف */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  .hero-icon,
  .text-box {
    flex: none;
    max-width: 100%;
  }
  .hero-icon img {
    width: 80%;
    margin: 0 auto;
  }
  .text-box h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  .text-box p {
    font-size: clamp(1rem, 4vw, 1.25rem);
  }
}

@media (max-width: 420px) {
  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  .hero-icon,
  .text-box {
    flex: none;
    max-width: 100%;
  }
  .hero-icon img {
    width: 80%;
    margin: 0 auto;
  }
  .text-box h1 {
    font-size: clamp(1.5rem, 8vw, 3rem);
  }
  .text-box p {
    font-size: clamp(0.5rem, 4vw, 1.25rem);
  }
}

.hero-subtitle {
  font-family: var(--ff-hero);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin: 0;
}

.brown {
  color: #a58538;
}

.brownx {
  color: #7c5e18;
}

/* إضافة هامش علوي قبل قسم الأقسام */
.sections-overview {
  background-color: var(--clr-sections-bg);
  padding-top: 2rem; /* تبقي padding عمودي إذا احتجت */
}

/* تكبير المسافات بين الأعمدة والصفوف */
.sections-overview .row {
  /* row-gap للتحكم بالمسافات الرأسية */
  row-gap: 3rem; /* يوسّع المسافة بين الصفوف */
  /* column-gap للتحكم بالمسافات الأفقية */
  column-gap: 2rem; /* يوسّع المسافة بين الأعمدة */
  justify-content: center;
}

/* اختيارياً: زيادة البادينغ داخل البطاقات */
.section-card {
  padding: 2.5rem 1.5rem; /* بدل 2rem 1rem */
}

.sections-overview {
  background-color: var(--clr-sections-bg);
}

.section-card {
  background: var(--clr-card-bg);
  border-radius: 12px;
  padding: 2rem 1rem;
  text-align: center;
  transition: transform var(--trans), box-shadow var(--trans);
}

.section-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.section-card .icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
}

.section-card .icon-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.section-card h5 {
  font-family: var(--ff-sans);
  font-size: 1.1rem;
  color: var(--clr-text-dark);
  margin: 0;
}

/* Responsive grid spacing */
@media (max-width: 576px) {
  .section-card {
    padding: 1.5rem 0.5rem;
  }
  .section-card .icon-wrapper {
    width: 60px;
    height: 60px;
    margin-bottom: 0.75rem;
  }
  .section-card h5 {
    font-size: 1rem;
  }
}
/* Objectives Section: solid brown background */
.objectives-section {
  background-color: #fffcf4;
  padding: 4rem 0; /* Padding عمودي */
  color: #213d14; /* نص داكن */
}

/* حافظ على تنسيق العنوان */
.objectives-section .section-title {
  font-family: "Heebo", sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 2rem;
}

/* بطاقات الأهداف شفافة قليلاً على الخلفية البنية */
.objective-card {
  background: rgba(255, 240, 220, 0.85); /* أبيض فاتح شفاف قليلاً */
  border-radius: 12px;
  padding: 2rem 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.objective-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* أيقونات الأهداف */
.obj-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* نص الأهداف */
.objective-card p {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
  text-align: center;
}

/* مسافات الشبكة */
.objectives-section .row {
  row-gap: 2rem;
  column-gap: 1.5rem;
}

/* استجابة الشاشات الصغيرة */
@media (max-width: 576px) {
  .objectives-section {
    padding: 2rem 0;
  }
  .objective-card {
    padding: 1.5rem 1rem;
  }
  .obj-icon {
    font-size: 2rem;
  }
}
/* 1. زيادة ارتفاع الشريط ومساحة الحشوة */
.navbar {
  padding: 1.25rem 2rem; /* بدل p-0 في الكود لديك */
  min-height: 100px; /* ارتفاع أدنى للناف */
}

/* 2. تكبير الشعار */
.navbar .navbar-brand img {
  height: 100px; /* بدل 80px */
}

/* 3. تكبير مسافات وقرب روابط التنقل */
.navbar-nav .nav-link {
  font-size: 1.01rem; /* تكبير حجم الخط */
  padding: 0.75rem 1.25rem; /* مسافة داخلية أكبر */
}

/* 4. تكبير أزرار الدخول/الحساب */
.buttons-container .btn {
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  margin-left: 0.5rem;
}

/* 5. ظل عامّ أوسع إن أردت */
.nav-shadow {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* 6. استجابة الشاشات الصغيرة */
@media (max-width: 576px) {
  .navbar {
    padding: 0.75rem 1rem;
  }
  .navbar .navbar-brand img {
    height: 80px;
  }
  .navbar-nav .nav-link {
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
  }
  .buttons-container .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
}

/* --------- ألوان الخلفيتين --------- */
.bg-alt1 {
  background-color: #f9ede3; /* بني فاتح جداً */
}
.bg-alt2 {
  background-color: #e9dcc7; /* أخضر باهت متناسق */
}

/* --------- عناوين الأقسام --------- */
.latest-section .section-title,
.lessons-section .section-title {
  font-family: "Heebo", sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--clr-text-dark);
}

/* --------- شبكة البطاقات --------- */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* --------- الروابط تغطي البطاقة --------- */
.card-link {
  text-decoration: none;
  display: block;
  height: 100%;
}

/* --------- البطاقة المصغّرة --------- */
.small-card {
  max-width: 280px; /* تضييق البطاقة قليلاً */
  margin: 0 auto; /* تمركز البطاقة */
}

/* --------- التصميم العام للبطاقة --------- */
.custom-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}
.custom-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* --------- صورة البطاقة --------- */
.custom-card .card-img {
  width: 100%;
  padding-top: 56.25%; /* نسبة 16:9 */
  background-size: cover;
  background-position: center;
}

/* --------- محتوى البطاقة --------- */
.custom-card .card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.custom-card .card-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--clr-text-dark);
}
.custom-card .card-text {
  flex-grow: 1;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
}

/* --------- استجابات ======== */
@media (max-width: 576px) {
  .grid-cards {
    gap: 1rem;
  }
  .small-card {
    max-width: 100%;
  }
}
/* ======= Footer Styles ======= */
/* ===== Footer عصري بلون بني ===== */
.site-footer {
  background-color: #4f473f; /* بني داكن */
  color: #f3e0cf; /* وردي فاتح / كريمي */
  font-family: "Heebo", sans-serif;
}

/* الروابط */
.site-footer a {
  color: #f3e0cf;
  text-decoration: none;
  font-size: 1.15rem;
  transition: color 0.3s;
}
.site-footer a:hover {
  color: #d1a15b; /* ذهبية فاتحة */
}

/* الجزء العلوي */
.footer-top {
  padding: 3rem 0;
}
.grid-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

/* أعمدة التذييل */
.footer-col {
  display: flex;
  flex-direction: column;
}
.footer-col__title {
  font-size: 1.9rem;
  margin-bottom: 1rem;
  position: relative;
  color: #efe8dd;
}
.footer-col__title::after {
  content: "";
  display: block;
  width: 50px;
  height: 4px;
  background: #d1a15b;
  margin-top: 0.5rem;
}

/* قائمة الروابط */
.footer-col__list {
  list-style: none;
  padding: 0;
}
.footer-col__list li {
  margin-bottom: 0.8rem;
}

/* أيقونات التواصل مع Padding أكبر */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 0.8rem;
}
.social-icons a {
  font-size: 1.6rem;
  padding: 0.8rem;
  border-radius: 50%;
  background: #3e2f23; /* بني أغمق */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s;
}
.social-icons a:hover {
  background: #d1a15b;
  color: #4b3b2b;
  transform: scale(1.1);
}

/* الجزء السفلي */
.footer-bottom {
  background: #796d62; /* بني أغمق قليلاً */
  padding: 1.2rem 0;
  font-size: 0.9rem;
}
.footer-bottom a {
  color: #d1a15b;
  text-decoration: underline;
}

/* Responsive tweaks */
@media (max-width: 576px) {
  .grid-columns {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-col.text-end,
  .footer-col.text-center {
    text-align: center !important;
  }
}

/* ===== Header Styles (unchanged) ===== */
.section-header {
  max-width: 600px;
  margin: 0 auto 2rem;
}
.section-main-title {
  font-family: "Heebo", sans-serif;
  font-size: clamp(2rem, 5vw, 2.5rem);
  color: #7c5e18;
  position: relative;
  display: inline-block;
}

/* ===== Sections Overview Background ===== */
.sections-overview {
  padding-top: 2rem;
  background-color: #fff0dc; /* خلفية عامة فاتحة */
}

/* ===== Cards Wrapper ===== */
.cards-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* توسيط أفقياً */
  column-gap: 1.5rem; /* مسافة أفقية بين الأعمدة */
  row-gap: 2rem; /* مسافة رأسية بين الصفوف */
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== Section Card ===== */
.section-card {
  position: relative;
  background-color: #d7bfa2;
  border-radius: 15px;
  overflow: hidden;
  text-decoration: none;
  color: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  transition: transform 0.7s ease, box-shadow 0.6s ease;
  flex: 1 1 250px; /* bMinimum width 250px, grows */
  max-width: 300px; /* Doesn't exceed 300px */
}
.section-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Icon */
.section-card .icon-wrapper {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}
.section-card .icon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Title */
.section-card .section-title {
  font-family: Almarai, sans-serif;
  font-size: 1.1rem;
  font-weight: bold;
  color: #593712;
  margin-bottom: 0.75rem;
  text-align: center;
}

/* Description Overlay */
.section-card .description-overlay {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.7s ease, opacity 0.7s ease;
  font-size: 1.1rem;
  line-height: 1.4;
  text-align: center;
  direction: rtl;
}
.section-card:hover .description-overlay {
  max-height: 200px;
  opacity: 1;
  margin-top: 0.5rem;
}

/* ===== Responsive Breakpoints ===== */
/* Mobile */
@media (max-width: 575px) {
  .section-card {
    flex: 1 1 90%;
    max-width: 320px;
    padding: 1rem;
  }
  .section-card .icon-wrapper {
    width: 50px;
    height: 50px;
  }
  .section-card .section-title {
    font-size: 1rem;
  }
}

/* Small Tablets */
@media (min-width: 576px) and (max-width: 767px) {
  .section-card {
    flex: 1 1 calc(50% - 1.5rem);
    max-width: calc(50% - 1.5rem);
  }
}

/* Large Tablets & Desktops */
@media (min-width: 768px) {
  .section-card {
    flex: 1 1 calc(33.333% - 1.5rem);
    max-width: calc(33.333% - 1.5rem);
  }
}

/* ===== Objectives Section Flex Layout ===== */
.objectives-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.objectives-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* يوسّط البطاقات أفقياً */
  gap: 2rem; /* مسافة ثابتة بين البطاقات */
}

/* كل بطاقة */
.objective-card {
  background: rgba(255, 240, 220, 0.9); /* بنّي فاتح شفاف */
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  flex: 1 1 calc(33.333% - 2rem); /* ثلاثة في الصف مع الثغرات */
  max-width: calc(33.333% - 2rem);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.objective-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* الأيقونة */
.obj-icon {
  font-size: 2.5rem;
  color: #966c2d;
  margin-bottom: 1rem;
}

/* الفقرة */
.objective-card p {
  font-size: 1.1rem;
  color: #213d14;
  line-height: 1.6;
  margin: 0;
}

/* استجابة الأجهزة المتوسطة */
@media (max-width: 992px) {
  .objective-card {
    flex: 1 1 calc(50% - 2rem);
    max-width: calc(50% - 2rem);
  }
}

/* استجابة الأجهزة الصغيرة */
@media (max-width: 576px) {
  .objective-card {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 1.5rem 1rem;
  }
  .obj-icon {
    font-size: 2rem;
  }
  .objective-card p {
    font-size: 1rem;
  }
}
/* نجعل الرابط يغطي كامل الخانة */
.grid-cards .card-link {
  display: block;
  width: 100%;
}

/* نلغي تقييد عرض small-card داخل grid-cards */
.grid-cards .small-card {
  margin: 0; /* إزالة أي هامش جانبي مركِّز */
  max-width: none; /* لا حد أقصى للعرض */
  width: 100%; /* امتداد كامل لعرض الخانة */
}
@media (max-width: 576px) {
  .social-icons {
    display: flex;
    flex-wrap: wrap; /* يسمح بالانتقال للسطر التالي */
    justify-content: center;
    gap: 0.75rem; /* مسافة منتظمة بين الأيقونات */
  }
  .social-icons a {
    flex: 0 0 calc(33.333% - 0.75rem); /* 3 أعمدة في الصف */
    max-width: calc(21.333% - 0.75rem);
    text-align: center;
  }
}

/* ===== Hadith Section ===== */
.hadith-section {
  position: relative;
  background-color: #bb9542;

  color: #213d14;
}
.hadith-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75); /* طبقة تفتيح */
}
.hadith-section .container {
  position: relative;
  z-index: 1;
}
.hadith-label {
  font-family: "Heebo", sans-serif;
  font-size: 2rem;
  color: #593712;
  margin-bottom: 0.5rem;
}
.hadith-text {
  font-family: "Heebo", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.4;
  color: #7c5e18;
  margin: 0 auto 1rem;
  max-width: 800px;
}
.hadith-source {
  font-size: 0.9rem;
  color: #182911;
  font-style: italic;
}

/* استجابة الهواتف */
@media (max-width: 576px) {
  .hadith-text {
    font-size: clamp(1.2rem, 5vw, 2rem);
  }
}
