body {
  font-family: "Tajawal", sans-serif;
  margin: 0;
  background: #1a1a1a;
  color: #f0f0f0;
  line-height: 1.8;
  overflow-x: hidden;
}
body.loading {
  overflow: hidden; 
}
* {
  scrollbar-width: auto;
  scrollbar-color: #138bac #00e5ff11;
}
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  color: #00c8ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  z-index: 9999;
  transition: opacity 0.6s ease;
}
.preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #333;
  border-top: 4px solid #00c8ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.article-header {
  background: #1a1a1a;
  padding: 1rem 2rem;
  border-bottom: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: space-between; 
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.article-header .logo {
  display: flex;
  align-items: center;
  color: #00c8ff;
  text-decoration: none;
  font-size: 1.8rem;
  font-family: "Reem Kufi", sans-serif;
}

.logo-icon {
  width: 40px;
  height: 40px;
  margin-left: 10px;
}

.header-nav {
  margin-left: 20px;
}

.home-btn {
  padding: 0.6rem 1.2rem;
  background: linear-gradient(45deg, #00c8ff, #007a99);
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  transition: 0.3s;
}

.home-btn:hover {
  background: linear-gradient(45deg, #007a99, #00c8ff);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 200, 255, 0.5);
}

.article-container {
  max-width: 850px;
  margin: auto;
  padding: 3rem 1rem;
}

.article-title {
  font-family: "Actor", sans-serif;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.article-meta {
  color: #aaa;
  margin-bottom: 1.5rem;
}

.article-cover {
  width: 100%;
  max-width: 900px; 
  aspect-ratio: 16 / 9; 
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0, 200, 255, 0.3);
  display: block;
}

.article-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: #ddd;
}

.article-content img.article-img {
  width: 100%;
  max-width: 800px; 
  aspect-ratio: 2 / 1; 
  object-fit: cover;
  border-radius: 10px;
  margin: 20px auto;
  display: block;
}

.back-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.7rem 1.3rem;
  background: linear-gradient(45deg, #00c8ff, #007a99);
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-family: "Actor", sans-serif;
  font-weight: bold;
  transition: 0.3s;
  box-shadow: 0 4px 12px rgba(0, 200, 255, 0.4);
}
.back-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 200, 255, 0.6);
}


.article-footer {
  background: #111;
  color: #888;
  text-align: center;
  padding: 1rem;
  margin-top: 3rem;
  font-size: 0.9rem;
}
.article-header {
  position: sticky; 
  top: 0; 
  z-index: 1000; 
}

.scroll-top-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, #00c8ff, #007a99);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 200, 255, 0.4);
  opacity: 0;
  pointer-events: none;
}

.scroll-top-btn.show {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 200, 255, 0.6);
}

.scroll-top-btn.click-anim {
  transform: scale(0.9);
}
