:root {
  --primary-color: #271a14;
  --secondary-color: #f9f6f5;
  --accent-color: #ffa835;
  --light-color: #fff;
  --dark-color: #333;
  --whatsapp-color: #25D366;
  --cream-color: #f5f5dc; /* اللون الكريمي الجديد */
}

/* هيدر الصورة الجديد */
.image-header {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.header-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('header-image.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  /* تحسينات الصورة */
  filter: brightness(1.05) contrast(1.05) saturate(1.1);
  animation: zoomEffect 20s infinite alternate;
}

@keyframes zoomEffect {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
              rgba(39, 26, 20, 0.8) 0%, 
              rgba(39, 26, 20, 0.4) 100%);
  z-index: 2;
}

body {
  font-family: 'Cairo', sans-serif;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  scroll-behavior: smooth;
}

/* الهيدر بالفيديو - نسخة محسنة */
.video-header {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.video-header video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
  /* تحسينات الألوان */
  filter: brightness(1.1) contrast(1.1) saturate(1.2);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
              rgba(39, 26, 20, 0.7) 0%, 
              rgba(39, 26, 20, 0.3) 100%);
  z-index: 2;
  mix-blend-mode: multiply;
}

.header-content {
  position: relative;
  z-index: 3;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
  color: var(--light-color);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  padding: 0 20px;
}

.header-content h1 {
  font-size: 4rem;
  font-weight: 900;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  animation: fadeInDown 1s ease-out;
}

.header-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* الأزرار */
.btn-tour {
  background-color: var(--accent-color);
  color: var(--primary-color);
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 6px 15px #ffa83566;
  position: relative;
  overflow: hidden;
}

.btn-tour:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(255, 168, 53, 0.6);
}

.btn-tour:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.btn-tour:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

/* القوائم - التعديلات الرئيسية هنا */
.navbar {
  background-color: hsla(60, 57%, 91%, 0.902);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s ease;
  padding: 15px 0;
}

.navbar.scrolled {
  background-color: #f1d998;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

.nav-link {
  color: var(--primary-color);
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  margin: 0 0.3rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:before {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  right: 0;
  background-color: var(--accent-color);
  transition: all 0.3s ease;
}

.nav-link:hover:before,
.nav-link.active:before {
  width: 100%;
  right: auto;
  left: 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-color);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: hwb(60 6% 79% / 0.902);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2839, 26, 20, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* باقي الأقسام تبقى كما هي */
section {
  padding: 6rem 0;
  position: relative;
}

.section-title {
  position: relative;
  margin-bottom: 4rem;
  text-align: center;
  color: var(--primary-color);
  font-weight: 800;
  font-size: 2.5rem;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
  border-radius: 2px;
}

/* قسم عن الشركة الجديد */
.about-section {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  position: relative;
  overflow: hidden;
}

.about-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://images.unsplash.com/photo-1527631746610-bca00a040d60?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80'); /* صورة خلفية عصرية */
  background-size: cover;
  background-position: center;
  opacity: 0.1; /* شفافية بسيطة للخلفية */
  z-index: 0;
}

.about-section .container {
  position: relative;
  z-index: 1;
}

.about-section h2.section-title {
  color: var(--primary-color);
}

.about-content {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
}

.about-content:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.about-content h3 {
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--dark-color);
}

.about-content p.lead {
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.about-content strong {
  color: var(--accent-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.stat-item {
  display: flex;
  align-items: center;
  background-color: var(--light-color);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-left: 1.5rem;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 0.2rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--dark-color);
}

.about-libya-section {
  background-color: rgba(var(--primary-color-rgb, 39, 26, 20), 0.9);
  color: var(--light-color);
  padding: 2.5rem;
  border-radius: 15px;
  margin-top: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-libya-section h3 {
  color: var(--accent-color);
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.about-libya-section p {
  font-size: 1.05rem;
  line-height: 1.7;
}

.about-libya-section strong {
  color: var(--accent-color);
}


/* قسم الخدمات */
.services-section {
  background-color: var(--cream-color); /* استخدام اللون الكريمي */
}

.service-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  margin-bottom: 2rem;
  background-color: var(--light-color);
  text-align: center;
  padding: 2rem;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
}

.service-card:hover .service-icon {
  color: var(--primary-color);
  transform: scale(1.1);
}

.service-title {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.service-text {
  color: var(--dark-color);
  font-size: 0.95rem;
}

/* قسم المعالم الأثرية */
.landmarks-section {
  background-color: var(--secondary-color);
}

.landmark-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
  margin-bottom: 2rem;
  background-color: var(--light-color);
}

.landmark-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.landmark-img {
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.landmark-card:hover .landmark-img {
  transform: scale(1.1);
}

.landmark-title {
  color: var(--primary-color);
  font-weight: 800;
  font-size: 1.4rem;
}


/* قسم الرحلات */
.tours-section {
  background-color: var(--primary-color);
  color: var(--light-color);
}

.tour-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
  margin-bottom: 2rem;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(0);
}

.tour-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.tour-img {
  height: 280px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tour-card:hover .tour-img {
  transform: scale(1.1);
}

.tour-title {
  color: var(--primary-color);
  font-weight: 800;
  font-size: 1.4rem;
}

.tour-price {
  color: var(--accent-color);
  font-weight: 800;
  font-size: 1.4rem;
}

.tour-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--accent-color);
  color: var(--primary-color);
  font-weight: 700;
  padding: 5px 15px;
  border-radius: 50px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* قسم معرض الصور */
.gallery-section {
  background-color: var(--light-color);
}

.gallery-item {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  position: relative;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(39, 26, 20, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  color: var(--light-color);
  font-size: 3rem;
}

/* الفوتر */
footer {
  background: linear-gradient(135deg, var(--primary-color) 0%, #000 100%);
  color: var(--light-color);
  padding: 4rem 0 2rem;
  position: relative;
}

footer:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
}

.footer-links h5 {
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  font-weight: 800;
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h5:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-links a {
  color: var(--light-color);
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
  margin-bottom: 0.8rem;
  position: relative;
  padding-right: 15px;
}

.footer-links a:before {
  content: '→';
  position: absolute;
  right: 0;
  opacity: 0;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-right: 25px;
}

.footer-links a:hover:before {
  opacity: 1;
  right: 5px;
}

.social-icons a {
  display: inline-flex;
  width: 45px;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--light-color);
  border-radius: 50%;
  text-align: center;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.social-icons a:hover {
  background-color: var(--accent-color);
  transform: translateY(-5px) rotate(5deg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: var(--primary-color);
}

/* تأثيرات التمرير */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* زر الواتساب */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background-color: var(--whatsapp-color);
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 2rem;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
  color: white;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* التكيف مع الشاشات الصغيرة */
@media (max-width: 992px) {
  .header-content h1 {
    font-size: 3rem;
  }

  .header-content p {
    font-size: 1.2rem;
  }

  section {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-content {
    padding: 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
  }

  .stat-item {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  .stat-icon {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .header-content h1 {
    font-size: 2.2rem;
  }

  .header-content p {
    font-size: 1rem;
  }

  section {
    padding: 3rem 0;
  }

  .whatsapp-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    bottom: 20px;
    left: 20px;
  }

  .about-libya-section {
    padding: 1.5rem;
  }
}


/* تعديلات قسم الرحلات لتصبح متساوية */
.tours-section .row {
  display: flex;
  flex-wrap: wrap;
}

.tours-section .col-md-6.col-lg-3 {
  display: flex;
}

.tour-card {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tour-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tour-card .card-text {
  flex: 1;
  margin-bottom: 1rem;
}

.tour-card .btn {
  margin-top: auto;
}

.tour-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

/* تأثيرات إضافية للفيديو */
.video-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 168, 53, 0.1);
  z-index: 2;
  pointer-events: none;
}

/* تحسينات للعرض على الجوال */
@media (max-width: 768px) {
  .video-header video {
    filter: brightness(1.05) contrast(1.05) saturate(1.1);
  }
  
  .overlay {
    background: linear-gradient(135deg, 
                rgba(39, 26, 20, 0.8) 0%, 
                rgba(39, 26, 20, 0.5) 100%);
  }
}

/* تأثيرات إضافية للصورة */
.header-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 168, 53, 0.1);
  mix-blend-mode: overlay;
  z-index: 1;
}

/* لتحسين الأداء على الجوال */
@media (max-width: 768px) {
  .header-image {
    animation: none;
    background-attachment: scroll;
  }
  
  .header-content h1 {
    font-size: 2.5rem;
  }
  
  .header-content p {
    font-size: 1.2rem;
  }
}


/* أنماط معرض الصور */
.gallery-header {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
              url('../images/gallery-header.jpg') center/cover no-repeat;
  height: 60vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
}

.gallery-header h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  animation: fadeInDown 1s ease;
}

.gallery-header p {
  font-size: 1.5rem;
  opacity: 0.9;
  animation: fadeInUp 1s ease;
}

.gallery-filter {
  text-align: center;
  margin: 3rem 0;
}

.filter-btn {
  background: none;
  border: 2px solid var(--accent-color);
  color: var(--primary-color);
  padding: 0.5rem 1.5rem;
  margin: 0 0.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent-color);
  color: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  height: 250px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(39, 26, 20, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
  text-align: center;
  color: white;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

.gallery-overlay p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.view-btn {
  color: white;
  background: var(--accent-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.view-btn:hover {
  background: white;
  color: var(--accent-color);
  transform: scale(1.1);
}

.load-more {
  padding: 0.75rem 2.5rem;
  font-size: 1.1rem;
}

/* تأثيرات Lightbox */
.lightbox .lb-image {
  border-radius: 5px;
}

.lb-data .lb-caption {
  font-size: 1.1rem;
  line-height: 1.6;
  font-family: 'Cairo', sans-serif;
}

/* التكيف مع الشاشات الصغيرة */
@media (max-width: 768px) {
  .gallery-header {
    height: 50vh;
  }
  
  .gallery-header h1 {
    font-size: 2.5rem;
  }
  
  .gallery-header p {
    font-size: 1.2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .filter-btn {
    padding: 0.4rem 1rem;
    margin: 0 0.3rem 0.5rem;
    font-size: 0.9rem;
  }
}

/* أنماط Lightbox المخصصة */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: zoomIn 0.3s;
}

@keyframes zoomIn {
  from { transform: translate(-50%, -50%) scale(0.9); }
  to { transform: translate(-50%, -50%) scale(1); }
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close-btn:hover {
  color: var(--accent-color);
}

.caption-container {
  text-align: center;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 10px;
  position: fixed;
  bottom: 0;
  width: 100%;
}

#caption {
  color: #fff;
  font-size: 1.2rem;
  margin: 0;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 24px;
  transition: 0.3s;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.5);
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev {
  left: 0;
  border-radius: 0 3px 3px 0;
}

.prev:hover, .next:hover {
  background-color: var(--accent-color);
}

.img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(39, 26, 20, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .img-overlay {
  opacity: 1;
}

.img-overlay i {
  color: white;
  font-size: 2rem;
}


/* أنماط زر "المزيد من الصور" */
.load-more-container {
    margin: 3rem auto;
    padding: 1rem;
}

.load-more-btn {
    position: relative;
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 15px rgba(255, 168, 53, 0.4);
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
}

.load-more-btn:hover {
    background: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 168, 53, 0.6);
}

.load-more-btn:active {
    transform: translateY(1px);
}

.btn-icon {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.load-more-btn:hover .btn-icon {
    transform: translateY(3px);
}

.loading-anim {
    position: absolute;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: var(--accent-color);
    border-radius: 50px;
}

.loading-anim .dot {
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    display: inline-block;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-anim .dot:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-anim .dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% { 
        transform: scale(0);
    }
    40% { 
        transform: scale(1);
    }
}

/* حالة التحميل */
.load-more-btn.loading .btn-text,
.load-more-btn.loading .btn-icon {
    visibility: hidden;
}

.load-more-btn.loading .loading-anim {
    display: flex;
}

/* تأثير النبض عند التحميل */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 168, 53, 0.7);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(255, 168, 53, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 168, 53, 0);
    }
}

.load-more-btn.loading {
    animation: pulse 2s infinite;
}