@import url("https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=M+PLUS+Rounded+1c&family=Tajawal:wght@300;400;500;700&display=swap");
:root {
  --white: #ffffff;
  --grey: #eef2f7;
  --lightgrey: #f1f1f1;
  --black: #212529;
  --secondary-dark: #0044aa;
  --secondary: #0569ff;
  --secondary-light: #2a7fff;
  /*border*/
  --radius-1: 2em;
}
html {
  scroll-behavior: smooth;
}
body {
  font-size: 18px;
  background-color: var(--grey);
  font-family: "Tajawal", sans-serif;
  font-weight: 500;
  color: var(--black);
  margin: 0;
}
::-webkit-scrollbar {
  background-color: var(--grey);
  width: 10px;
}
::-webkit-scrollbar-thumb {
  background-color: var(--secondary);
  margin: 5px;
  border-radius: 10px;
}
#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 50px;
  background: var(--secondary-dark);
  background: var(--black);

  color: var(--white);
}
.hero-section {
    background: linear-gradient(135deg, #f8f9fa, #eef2f7);
}

.art-section {
  height: calc(100vh - 190px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--secondary-dark);
}
#header a:hover {
  background-color: transparent !important;
}
#footer {
  background-color: var(--black);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
#footer,
#header a,
#footer a {
  color: var(--white);
}
#footer ul {
  padding: 0;
}
.hover-white:hover {
  transition: 0.3s;
}
#footer {
  border-top: 4px solid #0d6efd; /* خط أزرق نحيف يعطي فخامة */
}
* {
  box-sizing: border-box;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--dark);
  margin: 0;
}
h1 {
  color: unset;
}
ul {
  margin-bottom: 0;
  padding-left: 0;
}
#header nav li,
#footer nav li {
  list-style: none;
}
nav a {
  display: inline-block;
  color: var(--black);
  border-radius: 15px;
  text-decoration: none;
  padding: 5px 10px;
}
a:hover,
a:active {
  background-color: var(--white) !important;
  color: var(--secondary-light) !important;
  transition: 0.3s;
}
.topic-header {
  background-color: var(--secondary-dark);
  color: var(--white);
  padding: 50px 25px;
  height: 150px;
}
dt {
  font-weight: 600;
}
dd {
  margin-bottom: 20px;
}
.container {
  margin: 0 auto;
}
.row {
  display: flex;
  justify-content: space-around;
}
nav.sticky {
  position: sticky;
  right: 0;
  top: 0;
}
.side-nav {
  background: var(--white);
  width: 300px;
  padding: 15px;
  font-size: 16px;
}
.side-nav ul {
  padding: 0;
}
.side-nav ul li {
  list-style-type: none;
  margin-top: 10px;
}
.side-nav ul li a {
  text-decoration: none;
  padding: 5px 20px;
  width: 100%;
  display: block;
}
.side-nav ul li a.active {
  background-color: var(--secondary);
  color: var(--white);
}
:target {
  transition: 0.3s;
  background-color: var(--lightgrey);
  padding: 20px;
}
.col {
  /* background-color: var(--white); */
  margin: 50px;
}
.content {
  padding: 20px;
}

/* custom styles start */
.d-none {
  display: none;
}
.fs-6 {
  font-size: 1rem;
}
.link {
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 10px;
}
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  padding: 15px 10px;
  color: var(--white);
  background-color: var(--secondary);
  cursor: pointer;
  border-radius: 5px;
  opacity: 0.8;
  transition: 0.3s;
}
.to-top:hover {
  opacity: 1;
}
.pointer {
  cursor: pointer;
}
/* custom styles end */
/* on mobile starts */
@media only screen and (max-width: 768px) {
  .col:has(.side-nav) {
    display: none;
  }
  .to-top {
    right: 10px;
  }
}
/* on mobile ends */

.card,
.card-body {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

/* تأثير عند مرور الماوس على الكرت */
.custom-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.custom-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

/* تنسيق الـ Badge الجديد */
.rounded-bottom-end {
  border-bottom-right-radius: 15px !important;
}

/* تحسين شكل الصور داخل الكروت */
.card img {
  transition: transform 0.3s ease;
}

.custom-card:hover img {
  transform: scale(1.1);
}

.border-dashed {
  border: 2px dashed #dee2e6 !important;
  background: transparent;
}
.drop-shadow {
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}
