body {
  background: linear-gradient(135deg, rgba(197, 145, 0, 0.3) 0%, rgba(255, 224, 138, 0.4) 50%, rgba(197, 145, 0, 0.3) 100%), url('../images/night.jpg') center/cover fixed no-repeat;
  background-size: 100% 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: 'Cairo', Arial, sans-serif;
  color: #333;
  line-height: 1.7;
  align-items: center;
  overflow-x: hidden;
  animation: fadeInPage 1.5s ease-in-out;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Removed duplicate body background rules for narrow screens (same as base) */

/* iPhone/iOS specific fixes - only for iOS devices */
@supports (-webkit-touch-callout: none) {
  body {
    background-attachment: scroll;
    background-size: cover;
    -webkit-background-size: cover;
  }
}

@media (max-width: 600px) {
  .hero-titles {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}




/* Sections */
.section-box {
  background: linear-gradient(135deg, rgba(197, 145, 0, 0.9) 0%, rgba(255, 224, 138, 0.95) 50%, rgba(197, 145, 0, 0.9) 100%);
  padding: 20px;
  margin: 15px 0;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(197, 145, 0, 0.3);
  border: 1px solid rgba(197, 145, 0, 0.5);
  animation: fadeIn 0.8s ease-out;
  color: #333;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}
.section-box h2, .section-box h3 {
  color: #333;
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.6em;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
  font-weight: bold;
}



/* Big screen text sizes */
@media (min-width: 1024px) {
  .section-box h2, .section-box h3 {
      font-size: 1.8em;
      margin-bottom: 25px;
  }
  
}
@media (max-width: 768px) {

  
  .section-box h2, .section-box h3 {
      font-size: 1.8em;
      margin-bottom: 20px;
  }
  

}



.main-logo {
  position: relative;
  display: block; /* منع فراغ السطر أسفل وأعلى العنصر */
  line-height: 0; /* إزالة فراغ السطر العمودي حول الشكل */
  overflow: hidden; /* قص أي توهج يتجاوز الحدود عمودياً */
}

/* Subtle golden sun glow behind the logo */
.main-logo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 224, 138, 0.22) 0%, rgba(197, 145, 0, 0.18) 35%, rgba(197, 145, 0, 0) 70%);
  filter: blur(2px); /* تقليل إضافي للتوهج */
  opacity: 0.06;
  z-index: 0;
  pointer-events: none;
  transform: scaleY(0.6); /* ضغط أكبر عمودياً لتقليل الارتفاع */
  transform-origin: center;
  animation: none; /* إيقاف أي نبض، سيتم استبداله بتمرير اللمعان */
}

/* Border glow emanating from the logo edges */
.main-logo::after {
  content: '';
  position: absolute;
  inset: 0; /* align glow to exact logo bounds */
  border-radius: 18px; /* match rounded rectangle */
  box-shadow: 0 0 8px rgba(197, 145, 0, 0.18), 0 0 18px rgba(255, 224, 138, 0.12);
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
  will-change: transform, opacity;
  animation: none; /* إيقاف وميض الحدود */
  transform: scaleY(0.6); /* ضغط أكبر عمودياً */
  transform-origin: center;
}

@keyframes borderGlow {
  0%   { opacity: 0.24; transform: scale(0.985); }
  50%  { opacity: 0.42; transform: scale(1.005); }
  100% { opacity: 0.24; transform: scale(0.985); }
}

@keyframes sunPulse {
  0% { opacity: 0.22; transform: scale(0.98); }
  100% { opacity: 0.32; transform: scale(1.03); }
}
/* Home logo badge redesign (circular golden medallion) */
.main-logo .logo-bg {
  /* Match menu golden gradient (deeper gold) */
  --gold1: #b67e00;
  --gold2: #ffd87a;
  --gold3: #b67e00;
  position: relative;
  display: inline-block;
  padding: 0; /* إزالة الحشوة ليطابق الشكل حجم الصورة */
  border: 0; /* إلغاء الحد حتى لا يزيد الحجم عن الصورة */
  line-height: 0; /* إزالة أي مساحة عمودية داخل الحاوية */
  background: linear-gradient(135deg, var(--gold1) 0%, var(--gold2) 50%, var(--gold3) 100%);
  border-radius: 14px; /* حواف ناعمة مخففة */
  box-shadow: 0 3px 6px rgba(0,0,0,0.10), inset 0 1px 2px rgba(255,255,255,0.10), inset 0 -3px 6px rgba(0,0,0,0.10);
  overflow: hidden;
  z-index: 1;
  /* تقليل الارتفاع الظاهر من الأعلى والأسفل بقصّ بسيط */
  clip-path: inset(15% 0 15% 0 round 14px);
}

.main-logo .logo-bg::before {
  content: '';
  position: absolute;
  inset: 0; /* محاذاة التأثير تماماً مع حواف الصورة بدون فراغ علوي/سفلي */
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
  border: 1px solid rgba(255, 224, 138, 0.25);
  opacity: 0.6; /* تخفيف لمعان الحدود الداخلية */
  transform: scaleY(0.85); /* ضغط أكبر عمودياً */
  transform-origin: center;
  pointer-events: none;
}

.main-logo .logo-animate {
  max-width: 340px; /* تكبير الشعار ليتطابق حجم الصورة مع الشكل */
  width: 100%;
  height: auto; /* الحفاظ على نسبة الأبعاد لمنع فراغ رأسي */
  display: block;
  margin: 0 auto;
  image-rendering: auto;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.25));
  transition: transform 0.25s ease;
}

.main-logo .logo-animate:hover {
  transform: scale(1.03);
}

/* Responsive sizing for the logo image */
@media (max-width: 600px) {
  .main-logo::after { opacity: 0.22; box-shadow: 0 0 18px rgba(197,145,0,0.34), 0 0 42px rgba(255,224,138,0.2); }
  .main-logo::before { opacity: 0.16; filter: blur(8px); }
  .main-logo .logo-animate { width: 60vw; max-width: 240px; max-height: 20vh; }
  .main-logo .logo-bg { padding: 0; border-radius: 12px; clip-path: inset(10% 0 10% 0 round 12px); }
  .main-logo .logo-bg::after { opacity: 0.6; filter: blur(5px); animation: goldenShineSweep 8s cubic-bezier(0.45, 0.05, 0.2, 1) infinite; width: 80%; left: -160%; height: 150%; top: -25%; }
}
@media (max-width: 400px) {
  .main-logo::after { opacity: 0.18; box-shadow: 0 0 16px rgba(197,145,0,0.3), 0 0 34px rgba(255,224,138,0.16); }
  .main-logo::before { opacity: 0.14; filter: blur(7px); }
  .main-logo .logo-animate { width: 66vw; max-width: 190px; max-height: 18vh; }
  .main-logo .logo-bg { padding: 0; border-radius: 10px; clip-path: inset(8% 0 8% 0 round 10px); }
  .main-logo .logo-bg::after { opacity: 0.55; filter: blur(5px); animation: goldenShineSweep 9s cubic-bezier(0.45, 0.05, 0.2, 1) infinite; width: 85%; left: -170%; height: 160%; top: -30%; }
}

/* Golden light pass over the logo */
.main-logo .logo-bg::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -150%;
  width: 75%;
  height: 140%;
  background: linear-gradient(120deg, rgba(255,215,0,0) 0%, rgba(255,215,0,0.40) 35%, rgba(255, 240, 170, 0.75) 50%, rgba(255,215,0,0.40) 65%, rgba(255,215,0,0) 100%);
  filter: blur(5px);
  opacity: 0.65;
  will-change: transform, left;
  animation: goldenShineSweep 6.5s cubic-bezier(0.45, 0.05, 0.2, 1) infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}

@keyframes logoShimmer {
  0%   { left: -120%; opacity: 0.0; }
  20%  { opacity: 0.35; }
  50%  { left: 130%; opacity: 0.25; }
  70%  { opacity: 0.0; }
  100% { left: 130%; opacity: 0.0; }
}

@media (prefers-reduced-motion: reduce) {
  .main-logo .logo-bg::after { animation: none; opacity: 0.25; }
}
/* Removed legacy logo size constraints to allow larger logos on small screens */
.logo-bg::after {
    content: '';
    position: absolute;
    top: -10%;
    left: -120%;
    width: 60%;
    height: 120%;
    background: linear-gradient(120deg, rgba(255,215,0,0) 0%, rgba(255,215,0,0.25) 35%, rgba(255, 240, 170, 0.55) 50%, rgba(255,215,0,0.25) 65%, rgba(255,215,0,0) 100%);
    mix-blend-mode: screen;
    pointer-events: none;
    filter: blur(6px);
    opacity: 0.45;
    animation: goldenShineSweep 3.8s ease-in-out infinite; /* تمرير لمعان ذهبي أنيق */
    z-index: 2;
}
.logo-bg {
    display: inline-block;
    background: radial-gradient(circle at 50% 50%, rgba(255, 224, 138, 0.25), rgba(197, 145, 0, 0.15) 40%, rgba(197, 145, 0, 0.35) 70%), linear-gradient(135deg, #c59100 0%, #ffe08a 50%, #c59100 100%);
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(197, 145, 0, 0.35);
    padding: 15px;
    border: 3px solid #b8860b;
    position: relative;
    overflow: hidden;
    animation: logoBgPulse 4s ease-in-out infinite, goldHeartbeat 2.8s ease-in-out infinite;
}
.logo-bg::before {
    content: '';
    position: absolute;
    inset: -15%;
    background: conic-gradient(from 0deg, rgba(255, 224, 138, 0.15), transparent 25%, rgba(255, 224, 138, 0.15) 50%, transparent 75%, rgba(255, 224, 138, 0.15));
    border-radius: 50%;
    pointer-events: none;
    animation: goldSunRays 12s linear infinite;
    filter: blur(0.6px);
}
/* Removed legacy media queries that shrank the logo on small screens */

/* Strong mobile overrides to ensure larger logo image */
@media (max-width: 600px) {
  .hero-titles .main-logo .logo-bg { padding: 0; border-radius: 12px; }
  .hero-titles .main-logo .logo-animate {
    width: 60vw;
    max-width: 240px;
    max-height: 20vh;
  }
}
@media (max-width: 400px) {
  .hero-titles .main-logo .logo-bg { padding: 0; border-radius: 10px; }
  .hero-titles .main-logo .logo-animate {
    width: 66vw;
    max-width: 190px;
    max-height: 18vh;
  }
}


@keyframes logoShineSweep {
    0% { left: -60%; opacity: 0.0; }
    20% { left: -20%; opacity: 0.25; }
    50% { left: 110%; opacity: 0.0; }
    100% { left: 110%; opacity: 0.0; }
}

@keyframes sparkleTwinkle {
    0% { transform: rotate(0deg) scale(1); opacity: 0.5; }
    25% { transform: rotate(8deg) scale(1.02); opacity: 0.8; }
    50% { transform: rotate(0deg) scale(1.03); opacity: 0.65; }
    75% { transform: rotate(-6deg) scale(1.01); opacity: 0.85; }
    100% { transform: rotate(0deg) scale(1); opacity: 0.6; }
}

/* Reintroduce golden glow animation for the logo */
@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 6px 28px rgba(0,0,0,0.18)) drop-shadow(0 0 0px #c59100) drop-shadow(0 0 0px #ffd700);
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 6px 28px rgba(0,0,0,0.18)) drop-shadow(0 0 28px #c59100) drop-shadow(0 0 40px #ffd700) drop-shadow(0 0 55px #ffed4e);
        transform: scale(1.02);
    }
    100% {
        filter: drop-shadow(0 6px 28px rgba(0,0,0,0.18)) drop-shadow(0 0 0px #c59100) drop-shadow(0 0 0px #ffd700);
        transform: scale(1);
    }
}

@keyframes logoBgPulse {
    0% { box-shadow: 0 8px 25px rgba(197,145,0,0.25); transform: scale(1); }
    50% { box-shadow: 0 10px 30px rgba(197,145,0,0.4); transform: scale(1.02); }
    100% { box-shadow: 0 8px 25px rgba(197,145,0,0.25); transform: scale(1); }
}
@keyframes goldHeartbeat {
    0% { transform: scale(1); box-shadow: 0 8px 24px rgba(255, 215, 0, 0.25), inset 0 0 10px rgba(255, 224, 138, 0.15); }
    50% { transform: scale(1.035); box-shadow: 0 10px 34px rgba(255, 215, 0, 0.35), inset 0 0 16px rgba(255, 224, 138, 0.25); }
    100% { transform: scale(1); box-shadow: 0 8px 24px rgba(255, 215, 0, 0.25), inset 0 0 10px rgba(255, 224, 138, 0.15); }
}
@keyframes goldSunRays {
    0% { transform: rotate(0deg); opacity: 0.45; }
    50% { opacity: 0.6; }
    100% { transform: rotate(360deg); opacity: 0.45; }
}
@keyframes logoShimmer {
    0%, 100% {
        box-shadow:
            0 8px 40px rgba(0, 0, 0, 0.6),
            0 0 30px rgba(197, 145, 0, 0.3),
            0 0 60px rgba(255, 224, 138, 0.2),
            0 0 90px rgba(255, 215, 0, 0.1),
            inset 0 0 15px rgba(197, 145, 0, 0.1);
    }
    50% {
        box-shadow:
            0 8px 40px rgba(0, 0, 0, 0.6),
            0 0 50px rgba(197, 145, 0, 0.4),
            0 0 90px rgba(255, 224, 138, 0.3),
            0 0 120px rgba(255, 215, 0, 0.2),
            inset 0 0 20px rgba(197, 145, 0, 0.2);
    }
}

/* Golden shine sweep animation */
@keyframes goldenShineSweep {
  0%   { left: -150%; opacity: 0.0; }
  15%  { opacity: 0.55; }
  45%  { left: 120%; opacity: 0.50; }
  60%  { left: 150%; opacity: 0.0; }
  100% { left: 150%; opacity: 0.0; }
}
@keyframes logoRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}





/* النصوص داخل البانوراما - رسمي */
  .hero-titles {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  text-align: center !important;
  color: #fff !important;
  z-index: 2 !important;
  /* Optimize for immediate rendering */
  will-change: transform;
  transform: translate(-50%, -50%) translateZ(0);
}
.hero-titles h1 {
  color: #DAA520 !important;
  font-size: 3vw !important;
  text-wrap: balance;
  text-shadow:
      2px 2px 6px rgba(0, 0, 0, 0.7),
      0 0 25px rgba(197, 145, 0, 0.7),
      0 0 50px rgba(255, 224, 138, 0.5),
      0 0 75px rgba(255, 215, 0, 0.3) !important;
  margin: 0 !important;
  animation: titleGlow 3s ease-in-out infinite alternate !important;
  /* Optimize for immediate rendering */
  will-change: text-shadow;
  transform: translateZ(0);
}
@keyframes titleGlow {
  0% {
      text-shadow:
          2px 2px 6px rgba(0, 0, 0, 0.7),
          0 0 25px rgba(197, 145, 0, 0.7),
          0 0 50px rgba(255, 224, 138, 0.5),
          0 0 75px rgba(255, 215, 0, 0.3);
  }
  100% {
      text-shadow:
          2px 2px 6px rgba(0, 0, 0, 0.7),
          0 0 35px rgba(197, 145, 0, 0.9),
          0 0 70px rgba(255, 224, 138, 0.7),
          0 0 100px rgba(255, 215, 0, 0.5);
  }
}
.hero-titles h2{
  color: #DAA520 !important;
  font-size: 1.5vw !important;
  text-wrap: balance;
  text-shadow:
      2px 2px 6px rgba(0, 0, 0, 0.7),
      0 0 20px rgba(197, 145, 0, 0.6),
      0 0 40px rgba(255, 224, 138, 0.4),
      0 0 60px rgba(255, 215, 0, 0.2) !important;
  margin: 10px 0 !important;
  animation: subtitleGlow 4s ease-in-out infinite alternate !important;
}
@keyframes subtitleGlow {
  0% {
      text-shadow:
          2px 2px 6px rgba(0, 0, 0, 0.7),
          0 0 20px rgba(197, 145, 0, 0.6),
          0 0 40px rgba(255, 224, 138, 0.4),
          0 0 60px rgba(255, 215, 0, 0.2);
  }
  100% {
      text-shadow:
          2px 2px 6px rgba(0, 0, 0, 0.7),
          0 0 30px rgba(197, 145, 0, 0.8),
          0 0 55px rgba(255, 224, 138, 0.6),
          0 0 80px rgba(255, 215, 0, 0.4);
  }
}
@media (max-width: 768px) {
  .logo-animate::before { animation-duration: 8.5s; opacity: 0.6; }
  .main-logo { margin: 40px auto 12px auto !important; text-align: center !important; }
  .hero-titles {
      padding: 0 15px;
      top: 45%;
      z-index: 10;
      max-width: 92vw;
  }

  .hero-titles h1 {
      font-size: clamp(24px, 7.5vw, 40px) !important;
      line-height: 1.15 !important;
      margin-bottom: 6px !important;
      text-wrap: balance;
  }
  .hero-titles h2 {
      font-size: clamp(16px, 4.8vw, 24px) !important;
      line-height: 1.2 !important;
      text-wrap: balance;
  }
}

@media (max-width: 480px) {

  
  .hero-titles {
      padding: 0 10px;
      top: 40%;
      z-index: 10;
      max-width: 92vw;
      overflow-x: hidden; /* منع أي تسرب عرض أفقي من العناوين */
  }
  
  .hero-titles h1 { font-size: clamp(22px, 8.5vw, 38px) !important; line-height: 1.15; margin-bottom: 6px; text-wrap: balance; }
  .hero-titles h2 { font-size: clamp(14px, 5.5vw, 24px) !important; line-height: 1.2; text-wrap: balance; }
}

@media (max-width: 320px) {

  .hero-titles {
      padding: 0 8px ;
      top: 35% ;
      z-index: 10 ;
  }
  
  .hero-titles h1 {
      font-size: 1.3em ;
      line-height: 1.1 ;
      margin-bottom: 6px ;
      text-shadow:
          2px 2px 6px rgba(0, 0, 0, 0.7),
          0 0 10px rgba(197, 145, 0, 0.4),
          0 0 20px rgba(255, 224, 138, 0.2) ;
  }
  .hero-titles h2 {
      font-size: 0.9em ;
      line-height: 1.2 ;
      text-shadow:
          2px 2px 6px rgba(0, 0, 0, 0.7),
          0 0 8px rgba(197, 145, 0, 0.3),
          0 0 15px rgba(255, 224, 138, 0.1) ;
  }
}







.link-boxes {
    display: flex;
  flex-wrap: wrap;
  gap: 20px;
    justify-content: center;
  margin-top: 30px;
}

.link-boxes {
  display: flex;
  flex-wrap: wrap; /* تمكين الالتفاف عند الحاجة */
  gap: 20px;
  justify-content: center;
  margin: 0 auto; /* ضمان التوسيط الكامل */
  max-width: 100%; /* تجنب تجاوز الحدود */
  padding: 0;
}

.section-box .link-box {
  background: linear-gradient(135deg, #c59100 0%, #ffe08a 50%, #c59100 100%);
  color: #333;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(197, 145, 0, 0.3);
  border: 1px solid rgba(197, 145, 0, 0.5);
  flex: 1 1 calc(33.33% - 20px); /* 3 صناديق في الصف */
  max-width: calc(33.33% - 20px); /* تجنب تجاوز الحدود */
  min-width: 250px; /* العرض الأدنى */
    text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-box .link-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(197, 145, 0, 0.4);
  background: linear-gradient(135deg, #d4a017 0%, #ffe08a 50%, #d4a017 100%);
}

.section-box .link-box h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #333;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.section-box .link-box p {
  font-size: 1em;
  line-height: 1.5;
  margin-bottom: 15px;
  color: #333;
}

/* Featured heritage cards */
#featured-sites { overflow-x: hidden; }
.section-box#featured-sites { overflow: hidden; }
.section-box#featured-sites .link-boxes,
.section-box#featured-sites .link-box,
.section-box#featured-sites .featured-card { box-sizing: border-box; overflow: hidden; }
.section-box#featured-sites .link-boxes { width: 100%; margin: 0 auto; }
.featured-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.featured-card h3 {
  margin: 8px 0 6px 0;
}

.featured-card p {
  font-size: 0.95em;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .featured-card img { height: 150px; }
}

@media (max-width: 480px) {
  .featured-card img { height: 130px; }
}

.section-box .link-box a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 5px;
  display: inline-block;
  transition: background-color 0.3s ease;
  border: 1px solid rgba(197, 145, 0, 0.3);
}

.section-box .link-box a:hover {
  background: #333;
  color: #DAA520;
}

/* Responsive Design */
@media (max-width: 768px) {
  .link-boxes {
      flex-direction: column; /* ترتيب الصناديق عمودياً */
      align-items: center;
      width: 100%; /* التأكد من ملء العرض */
      padding: 0;
      margin: 0 auto; /* توسيط الحاوية */
  }

  .link-box {
      flex: 1 1 90%; /* عرض مناسب للشاشات المتوسطة */
      max-width: 90%;
      margin: 10px auto; /* إضافة مسافات بين الصناديق */
  }
}

@media (max-width: 480px) {
  .link-box h3 {
      font-size: 1em; /* تقليل حجم العناوين */
  }

  .link-box p {
      font-size: 1em; /* تقليل حجم النصوص */
  }

  .link-box {
      flex: 1 1 95%; /* عرض مناسب للهواتف الصغيرة */
      max-width: 95%;
      margin: 10px auto;
  }
}



.partners-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center; /* توسيط العناصر */
  overflow-x: hidden; /* منع أي اهتزاز أفقي من منطقة الشركاء */
}

.partner-logo {
  flex: 1 1 calc(25% - 20px); /* 4 شعارات في الصف الواحد */
  max-width: calc(25% - 20px);
  text-align: center;
  transition: transform 0.3s ease;
  opacity: 0;
  animation: partnerReveal 0.6s ease-out forwards;
  position: relative;
}

.partner-logo img {
  width: 80%; /* تصغير الصور */
  max-width: 150px; /* تحديد الحجم الأقصى للصور */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  margin-bottom: 10px;
  will-change: transform;
  animation: partnerFloat 7s ease-in-out infinite, partnerGlow 6s ease-in-out infinite;
}

.partners-container .partner-logo p {
  font-size: 1em;
  color: #333;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.partner-logo:hover {
  transform: scale(1.1); /* تكبير عند التمرير */
}

/* Shine sweep overlay for higher visibility */
.partner-logo::after {
content: '';
position: absolute;
inset: 0;
border-radius: inherit;
background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.35) 45%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0.35) 55%, transparent 100%);
transform: translateX(-150%);
opacity: 0;
pointer-events: none;
mix-blend-mode: screen;
animation: partnerSweep 9s ease-in-out infinite;
}

/* Staggered reveal for logos */
.partners-container .partner-logo:nth-child(1) { animation-delay: 0.0s; }
.partners-container .partner-logo:nth-child(2) { animation-delay: 0.08s; }
.partners-container .partner-logo:nth-child(3) { animation-delay: 0.16s; }
.partners-container .partner-logo:nth-child(4) { animation-delay: 0.24s; }
.partners-container .partner-logo:nth-child(5) { animation-delay: 0.32s; }
.partners-container .partner-logo:nth-child(6) { animation-delay: 0.40s; }

/* Stagger shine sweep too */
.partners-container .partner-logo:nth-child(1)::after { animation-delay: 0.4s; }
.partners-container .partner-logo:nth-child(2)::after { animation-delay: 0.6s; }
.partners-container .partner-logo:nth-child(3)::after { animation-delay: 0.8s; }
.partners-container .partner-logo:nth-child(4)::after { animation-delay: 1.0s; }
.partners-container .partner-logo:nth-child(5)::after { animation-delay: 1.2s; }
.partners-container .partner-logo:nth-child(6)::after { animation-delay: 1.4s; }

@keyframes partnerReveal {
from { opacity: 0; transform: translateY(18px) scale(0.96); }
to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes partnerFloat {
0%   { transform: translateY(0) scale(1); }
50%  { transform: translateY(-10px) scale(1.02); }
100% { transform: translateY(0) scale(1); }
}

@keyframes partnerGlow {
0% {
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  filter: brightness(1) saturate(1);
}
50% {
  box-shadow: 0 8px 18px rgba(218,165,32,0.45), 0 0 18px rgba(197,145,0,0.35);
  filter: brightness(1.06) saturate(1.08);
}
100% {
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  filter: brightness(1) saturate(1);
}
}

@keyframes partnerSweep {
0%   { transform: translateX(-150%); opacity: 0; }
40%  { opacity: 0; }
50%  { transform: translateX(-10%); opacity: 0.75; }
60%  { transform: translateX(110%); opacity: 0.4; }
100% { transform: translateX(150%); opacity: 0; }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
.partner-logo { animation: none; opacity: 1; }
.partner-logo img { animation: none; }
.partner-logo::after { animation: none; }
}

/* Mobile tuning */
@media (max-width: 480px) {
.partner-logo img { animation-duration: 7.5s, 6.5s; }
.partner-logo::after { animation-duration: 9s; }
}

/* Mobile performance tune for partners (transform-only animations) */
@media (max-width: 768px) {
.partners-container .partner-logo img {
  animation: partnerFloat 6s ease-in-out infinite; /* keep light transform-only */
}
.partners-container .partner-logo::after {
  animation-duration: 12s; /* slower sweep */
  opacity: 0.25; /* lighter overlay */
}
}

/* استجابة للأجهزة الصغيرة */
@media (max-width: 768px) {
  .partner-logo {
      flex: 1 1 calc(50% - 20px); /* عمودين في الأجهزة المتوسطة */
      max-width: calc(50% - 20px);
  }

  .partner-logo img {
      width: 70%; /* تقليل حجم الصور */
      max-width: 120px; /* تحديد الحجم الأقصى للصور */
  }
}

@media (max-width: 480px) {
  .partner-logo {
      flex: 1 1 calc(100% - 10px); /* عنصر واحد في الصف */
      max-width: calc(100% - 10px);
  }

  .partners-section h3 {
      font-size: 1.5em; /* تصغير العنوان للهواتف الصغيرة */
  }

  .partner-logo img {
      width: 60%; /* تقليل حجم الصور */
      max-width: 100px; /* تحديد الحجم الأقصى للصور */
  }

  .partner-logo p {
      font-size: 1em; /* تصغير النصوص التوضيحية */
  }
}





/* Fast Links Grid */
.fast-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.fast-link-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: linear-gradient(135deg, #c59100 0%, #ffe08a 50%, #c59100 100%);
  border-radius: 15px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(197, 145, 0, 0.2);
  border: 2px solid #b8860b;
  font-weight: bold;
}

.fast-link-item i {
  font-size: 1.5em;
  color: #333;
  transition: transform 0.3s ease;
}

.fast-link-item span {
  font-size: 1.1em;
  font-weight: bold;
}

.fast-link-item:hover {
  transform: translateY(-5px);
  background: #333;
  color: #DAA520;
  box-shadow: 0 10px 25px rgba(197, 145, 0, 0.4);
}

.fast-link-item:hover i {
  color: #DAA520;
  transform: scale(1.2);
}



/* Responsive Design for Committees */
@media (max-width: 768px) {

  .fast-links-grid {
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 15px;
  }

  .fast-link-item {
      padding: 15px;
      flex-direction: column;
      text-align: center;
      gap: 10px;
  }

  .fast-link-item i {
      font-size: 1.3em;
  }

  .fast-link-item span {
      font-size: 0.9em;
  }
}

@media (max-width: 480px) {
 

  .fast-links-grid {
      grid-template-columns: 1fr;
  }
}







/* Heritage Status Table Styles */
.heritage-status-table {
    margin: 30px 0;
    overflow-x: auto;
}

.heritage-status-table table {
    width: 100%;
    border-collapse: collapse;
    background: linear-gradient(135deg, #c59100 0%, #ffe08a 50%, #c59100 100%);
    box-shadow: 0 5px 15px rgba(197, 145, 0, 0.3);
    border: 1px solid rgba(197, 145, 0, 0.5);
    border-radius: 16px;
    overflow: hidden;
}

.heritage-status-table th {
    background: linear-gradient(90deg, #c59100 0%, #ffe08a 100%);
    color: #000000;
    font-weight: bold;
    padding: 16px 12px;
    text-align: center;
    border-bottom: 2px solid #c59100;
    font-size: 1.1em;
}

.heritage-status-table td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid rgba(197, 145, 0, 0.3);
    background: linear-gradient(90deg, #c59100 0%, #ffe08a 100%);
    font-size: 1em;
}

.heritage-status-table tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .heritage-status-table th,
    .heritage-status-table td {
        padding: 8px 6px;
        font-size: 0.9em;
    }
}



/* Override h3 alignment to be centered for all languages */
.meroe-text h3 {
    text-align: center ;
} 

/* Beautiful Info Cards Section */
.info-cards-section {
    padding: 40px 20px;
    background: transparent;
    position: relative;
}

.cards-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.info-card {
    background: linear-gradient(135deg, #c59100 0%, #ffe08a 50%, #c59100 100%);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(197, 145, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(197, 145, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    /* reveal base state */
    opacity: 0;
    transform: translateY(18px) scale(0.98);
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.info-card:hover::before {
    left: 100%;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(197, 145, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(197, 145, 0, 0.5);
    background: linear-gradient(135deg, #ffe08a 0%, #c59100 50%, #ffe08a 100%);
}

/* When visible in viewport (pop-out like committees) */
.info-card.is-visible {
  animation: infoCardReveal 650ms ease-out forwards;
}

@keyframes infoCardReveal {
  0%   { opacity: 0; transform: translateY(18px) scale(0.98); }
  60%  { opacity: 1; transform: translateY(-2px) scale(1.005); box-shadow: 0 12px 30px rgba(197,145,0,0.35); }
  100% { opacity: 1; transform: translateY(0) scale(1); box-shadow: 0 8px 25px rgba(197,145,0,0.3); }
}

/* Pop-out for featured cards and partner logos */
.featured-card,
.partners-container .partner-logo {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
}

.featured-card.is-visible,
.partners-container .partner-logo.is-visible {
  animation: infoCardReveal 650ms ease-out forwards;
}

/* Partner images animation (enable on all sizes by default) */
.partners-container .partner-logo img {
  animation: partnerFloat 7s ease-in-out infinite;
}

/* Staggered delays */
#featured-sites .link-boxes .featured-card:nth-child(1) { animation-delay: .05s; }
#featured-sites .link-boxes .featured-card:nth-child(2) { animation-delay: .10s; }
#featured-sites .link-boxes .featured-card:nth-child(3) { animation-delay: .15s; }

.partners-container .partner-logo:nth-child(1) { animation-delay: .05s; }
.partners-container .partner-logo:nth-child(2) { animation-delay: .10s; }
.partners-container .partner-logo:nth-child(3) { animation-delay: .15s; }
.partners-container .partner-logo:nth-child(4) { animation-delay: .20s; }

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fff8dc 0%, #fff 50%, #fff8dc 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.card-icon i {
    font-size: 24px;
    color: #c59100;
}

.info-card:hover .card-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg, #fff 0%, #fff8dc 50%, #fff 100%);
    border-color: rgba(255, 255, 255, 0.5);
}

.card-content h3 {
    font-size: 1.5em;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
    text-align: center;
}

.card-content p {
    font-size: 1.2em;
    line-height: 1.6;
    color: #333;
    text-align: center;
    margin-bottom: 15px;
}



/* Shine Effect */
.card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.info-card:hover .card-shine {
    left: 100%;
}

/* Specific Card Styles */
.sudan-card {
    border-left: 4px solid #c59100;
}

.icomos-global-card {
    border-left: 4px solid #ffe08a;
}

.icomos-sudan-card {
    border-left: 4px solid #a37800;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cards-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .card-icon i {
        font-size: 20px;
    }
    
    .card-content h3 {
        font-size: 1.3em;
    }
    
    .card-content p {
        font-size: 1.1em;
    }
    

}

@media (max-width: 480px) {
    .info-cards-section {
        padding: 30px 15px;
    }
    
    .info-card {
        padding: 18px;
    }
    
    .card-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 12px;
    }
    
    .card-icon i {
        font-size: 18px;
    }
    
    .card-content h3 {
        font-size: 1.2em;
    }
    
    .card-content p {
        font-size: 1em;
    }
    

}

/* video styles for the map (reintroduced) */
.hero-video-container {
  text-align: center;
  padding: 20px;
  margin: 20px auto;
  max-width: 900px;

}

.hero-video {
  width: 100%;
  height: auto;
  max-height: 80vh;

}

@keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}



/* Google Arts & Culture Section */
.google-arts-section {
  margin: 30px 0;
  padding: 25px;
  background: linear-gradient(135deg, #c59100 0%, #ffe08a 50%, #c59100 100%);
  border-radius: 15px;
  border: 2px solid rgba(197, 145, 0, 0.3);
  box-shadow: 0 4px 15px rgba(197, 145, 0, 0.2);
}

/* Lite YouTube placeholder */
.lite-yt {
  position: relative;
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.lite-yt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lite-yt-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 68 48"><path d="M66.52 7.74a8 8 0 0 0-5.65-5.66C55.79.67 34 .67 34 .67s-21.79 0-26.87 1.41A8 8 0 0 0 1.48 7.74 83 83 0 0 0 0 24a83 83 0 0 0 1.48 16.26 8 8 0 0 0 5.65 5.66C12.21 47.33 34 47.33 34 47.33s21.79 0 26.87-1.41a8 8 0 0 0 5.65-5.66A83 83 0 0 0 68 24a83 83 0 0 0-1.48-16.26z" fill="%23000" fill-opacity="0.6"/><path d="M45 24 27 14v20z" fill="%23fff"/></svg>') no-repeat center/contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
}

/* Defer heavy sections offscreen */
.section-box:not(:first-of-type) {
  content-visibility: auto;
  contain-intrinsic-size: 800px 600px;
}

/* Animate on scroll (migrated minimal) */
.animate-on-scroll { opacity: 0; transform: translateY(10px); transition: all .6s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* Heritage status section - golden theme like menu */
#heritage-status.section-box {
  background: linear-gradient(135deg, #c59100 0%, #ffe08a 50%, #c59100 100%);
  border: 2px solid rgba(197, 145, 0, 0.5);
  box-shadow: 0 5px 15px rgba(197, 145, 0, 0.3);
  border-radius: 12px;
  padding: 28px 18px;
}
/* Collapsible behavior */
#heritage-status.collapsed { display: none; }

/* Toggle button styling */
.heritage-toggle-container { text-align: center; margin: 20px 0 12px 0; position: relative; z-index: 10; isolation: isolate; }
.toggle-section-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px; /* bigger button */
  font-size: 1.1em;
  font-weight: 800;
  border: 3px solid #c59100;
  border-radius: 12px;
  background: linear-gradient(135deg, #b67e00 0%, #ffd87a 50%, #b67e00 100%);
  color: #333;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(197,145,0,.32);
  min-height: 48px;
}
.toggle-section-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(197,145,0,.38); }
.toggle-section-btn:active { transform: translateY(0); }
.toggle-section-btn[aria-expanded="true"]::after { content: "▲"; font-size: .9em; }
.toggle-section-btn[aria-expanded="false"]::after { content: "▼"; font-size: .9em; }

/* Intro text under the button */
.heritage-intro {
  margin: 8px auto 4px auto;
  max-width: 72ch;
  color: #333;
  font-size: 1em;
  line-height: 1.7;
}
/* The intro now appears above the button; no card inside the section */
/* Make the heritage section more compact on large screens */
@media (min-width: 1024px) {
  #heritage-status.section-box { max-width: 72ch; }
}
#heritage-status h2,
#heritage-status h3,
#heritage-status .text-content h3,
#heritage-status .text-content h2 {
  color: #000000;
  text-shadow: none;
}
#heritage-status p,
#heritage-status .text-content p {
  color: #333;
}
#heritage-status .text-content {
  width: min(100%, 64ch);
  margin: 8px auto 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
@media (max-width: 768px) {
  #heritage-status .text-content { padding: 0; }
}
#heritage-status .heritage-status-table table {
  background: #c59100;
  border: 1px solid rgba(197,145,0,0.4);
}
#heritage-status .heritage-status-table th {
  background: linear-gradient(90deg, #c59100 0%, #ffe08a 100%);
}

/* Neutralize inner backgrounds/borders for symmetry in heritage section */
#heritage-status .meroe-content, /* legacy structure */
#heritage-status { /* current simplified structure */
  max-width: 1100px;
  margin: 0 auto;
}
#heritage-status .meroe-image,
#heritage-status .meroe-text {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* Professional report styling for Cultural Heritage section */
#icomos-resources.section-box {
 
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  padding: 28px 18px;
}
#icomos-resources .meroe-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 22px;
  align-items: start;
}
#icomos-resources .meroe-image,
#icomos-resources .meroe-text {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}
#icomos-resources .meroe-image img {
  border-radius: 10px;
}
#icomos-resources .meroe-text h2 {
  color: #000000;
  font-size: 1.6em;
  font-weight: 700;
  margin: 4px 0 10px 0;
  text-align: center;
}
#icomos-resources .meroe-text h3 {
  color: #000000;
  font-size: 1.1em;
  margin: 0 0 14px 0;
  text-align: center;
}
#icomos-resources .meroe-text .text-content {
  max-width: 68ch;
  margin: 0 auto;
}
#icomos-resources .meroe-text .text-content p {
  text-align: center;
  line-height: 1.9;
}
html[lang="ar"] #icomos-resources .meroe-text .text-content p {
  text-align: center;
}
@media (max-width: 900px) {
  #icomos-resources .meroe-content {
    grid-template-columns: 1fr;
  }
}



/* Fix heritage section text alignment for Arabic */
/* Removed redundant #heritage-text-direction rules; covered by generic Arabic text rules above */

.google-arts-section h3 {
  color: #000000;
  font-size: 1.4em;
  margin-bottom: 15px;
  text-align: center;
  font-weight: bold;
}

/* All section titles centered */
.section-title,
h2.section-title,
h3.section-title {
  text-align: center !important;
}

/* Arabic section titles - keep centered */
/* Arabic section titles centering is already ensured by generic section title rule */

.google-arts-section p {
  margin-bottom: 20px;
  line-height: 1.6;
  text-align: justify;
}

.google-arts-link {
  text-align: center;
}

.google-arts-button {
  display: inline-block;
  background: linear-gradient(135deg, #c59100 0%, #ffd700 50%, #c59100 100%);
  color: rgb(0, 0, 0);
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(197, 145, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.google-arts-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 145, 0, 0.4);
  background: linear-gradient(135deg, #ffd700 0%, #c59100 50%, #ffd700 100%);
  color: rgb(0, 0, 0);
  text-decoration: none;
}

.google-arts-button:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(197, 145, 0, 0.3);
}

/* News Bar (migrated) */
.news-section {
  background: linear-gradient(135deg, #c59100 0%, #ffe08a 50%, #c59100 100%);
  color: #333;
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
  font-size: 1.0em;
  text-align: center;
  box-shadow: 0 2px 8px rgba(197, 145, 0, 0.3);
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 2px solid #b8860b;
}
.news-ticker {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  height: 34px;
  display: flex;
  align-items: center;
  background: none;
}
#news-text {
  display: inline-block;
  font-weight: bold;
  color: #333;
  font-size: 0.9em;
  min-width: 200px;
  line-height: 34px;
  vertical-align: middle;
  will-change: transform;
  transition: transform 0.3s;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}
@media (max-width: 768px) {
  .news-section, .news-ticker { height: 32px; }
  .news-section { font-size: 1em; }
  #news-text { font-size: 1em; min-width: 110px; line-height: 32px; }
}
@media (max-width: 480px) {
  .news-section, .news-ticker { height: 30px; }
  .news-section { font-size: 1em; }
  #news-text { font-size: 1em; min-width: 100px; line-height: 30px; }
}

/* Language selector (migrated) */
.language-selector {
  position: fixed;
  top: 50px;
  right: 20px;
  z-index: 1003;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.language-dropdown { position: relative; display: inline-block; }
.language-toggle {
  padding: 6px 12px;
  font-size: 0.75em;
  font-weight: 700;
  border: 2px solid #c59100;
  border-radius: 8px;
  background: linear-gradient(135deg, #b67e00 0%, #ffd87a 50%, #b67e00 100%);
  color: #333;
  box-shadow: 0 3px 10px rgba(197, 145, 0, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 80px;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.language-toggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}
.language-toggle:hover::before { left: 100%; }
.language-toggle i { font-size: 0.8em; color: #333; }
.language-toggle:hover {
  background: linear-gradient(135deg, #ffd87a 0%, #b67e00 50%, #ffd87a 100%);
  color: #2c2c2c;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(197, 145, 0, 0.5);
}
.language-options {
  position: absolute;
  top: 100%;
  right: 0;
  background: linear-gradient(135deg, #b67e00 0%, #ffd87a 50%, #b67e00 100%);
  border: 2px solid #c59100;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(197, 145, 0, 0.4);
  padding: 6px 0;
  margin-top: 6px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  min-width: 100px;
  z-index: 1004;
  overflow: hidden;
}
.language-options.show { opacity: 1; visibility: visible; }
.lang-btn {
  padding: 8px 12px;
  font-size: 0.8em;
  font-weight: 700;
  border: 2px solid #c59100;
  background: linear-gradient(135deg, #b67e00 0%, #ffd87a 50%, #b67e00 100%);
  color: #333;
  cursor: pointer;
  outline: none;
  width: 100%;
  text-align: center;
  transition: all 0.3s ease;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(197, 145, 0, 0.3);
  position: relative;
  overflow: hidden;
}
.lang-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}
.lang-btn:hover {
  background: linear-gradient(135deg, #ffd87a 0%, #b67e00 50%, #ffd87a 100%);
  color: #2c2c2c;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(197, 145, 0, 0.5);
}
.lang-btn:hover::before { left: 100%; }
.lang-btn.active {
  background: linear-gradient(135deg, #c59100 0%, #ffe08a 50%, #c59100 100%);
  color: #2c2c2c;
  border-color: #ffe08a;
  box-shadow: 0 4px 12px rgba(197, 145, 0, 0.6);
  transform: translateY(-1px);
}
@media screen and (max-width: 768px) {
  .language-selector { top: 40px; right: 15px; }
  .language-toggle { padding: 3px 6px; font-size: 0.65em; min-width: 70px; }
  .language-toggle i { font-size: 0.7em; }
  .language-options { min-width: 80px; }
}
@media screen and (max-width: 480px) {
  .language-selector { top: 40px; right: 10px; }
  .language-toggle { padding: 2px 5px; font-size: 0.6em; min-width: 60px; }
  .language-toggle i { font-size: 0.65em; }
}




/* Layout for Meroe Content */
.meroe-content {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping for better responsiveness */
  gap: 30px;
  align-items: flex-start; /* Align items to the top */
  justify-content: space-between; /* Add space between elements */
  margin-bottom: 20px;
  width: 100%; /* Ensure full width utilization */
}

/* حاويات محسنة للشاشات الكبيرة - بالتصميم الذهبي الأصلي */
@media (min-width: 1024px) {
  .meroe-content {
      background: linear-gradient(135deg, #c59100 0%, #ffe08a 50%, #c59100 100%) ;
      border-radius: 15px ;
      padding: 40px ;
      box-shadow: 0 5px 15px rgba(197, 145, 0, 0.3) ;
      border: 1px solid rgba(197, 145, 0, 0.5) ;
      margin: 30px auto ;
      max-width: 1200px ;
      color: #333 ;
  }
  
  .meroe-text {
      background: linear-gradient(135deg, #c59100 0%, #ffe08a 50%, #c59100 100%) ;
      border-radius: 10px ;
      padding: 25px ;
      box-shadow: 0 5px 15px rgba(197, 145, 0, 0.3) ;
      border: 1px solid rgba(197, 145, 0, 0.5) ;
      color: #333 ;
  }
  
  .meroe-image {
      background: linear-gradient(135deg, #c59100 0%, #ffe08a 50%, #c59100 100%) ;
      border-radius: 10px ;
      padding: 15px ;
      box-shadow: 0 5px 15px rgba(197, 145, 0, 0.3) ;
      border: 1px solid rgba(197, 145, 0, 0.5) ;
  }
}

/* Image Container */
.meroe-image {
  flex: 1 1 35%; /* Take up 35% of the width */
  max-width: 300px;
  min-width: 250px;
  text-align: center;
}

.meroe-image img {
  width: 100%; /* Ensure image is fully responsive */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Text Content */
.meroe-text {
  flex: 1 1 60%; /* Take up 60% of the width */
  min-width: 300px;
}

/* removed unused .section-box .meroe-text rules (heritage section no longer uses them) */

/* Responsive Design */
@media (max-width: 768px) {
  .meroe-content {
      flex-direction: column; /* Stack items vertically on smaller screens */
      align-items: center; /* Center items */
      gap: 16px; /* Reduce spacing to avoid squeeze */
  }

  .meroe-image,
  .meroe-text {
      flex: 1 1 100%; /* Take up full width */
      max-width: 100%; /* Ensure full width */
      min-width: 0; /* Override desktop min-widths to prevent overflow */
  }

  .meroe-text h2 {
      font-size: 1.2em; /* Better size for mobile */
      text-align: center; /* Keep center alignment on mobile */
  }

  .meroe-text h3 {
      font-size: 1.1em; /* Better size for mobile */
      text-align: center;
  }

  .meroe-text p:not(.info-cards-section .info-card .card-content p) {
      font-size: 1em;
      line-height: 1.7;
  }
  
  .text-content {
      padding: 20px;
      margin: 15px 0;
  }
  
  .text-content h3 {
      font-size: 1.2em;
      margin: 25px 0 12px 0;
  }
  
  .text-content p {
      font-size: 1em;
      line-height: 1.7;
      margin-bottom: 15px;
  }
}

@media (max-width: 480px) {
  /* On very small screens, ensure media block doesn't enforce fixed widths */
  .meroe-image { max-width: 100%; min-width: 0; }
  .meroe-text  { max-width: 100%; min-width: 0; }
}

/* Ensure the heritage status heading is centered on small screens */
@media (max-width: 768px) {
  #heritage-status .meroe-text h2 {
    text-align: center ;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .meroe-text h2 {
      font-size: 0.9em; /* Very small for very small screens */
      text-align: center;
  }

  .meroe-text h3 {
      font-size: 0.9em; /* A little bigger subtitle for very small screens */
      text-align: center;
  }

  .meroe-text p:not(.info-cards-section .info-card .card-content p) {
      font-size: 1em;
  }
}

@media (max-width: 320px) {
  .meroe-text h2 {
      font-size: 0.8em; /* Extra small for tiny screens */
      text-align: center;
  }

  .meroe-text h3 {
      font-size: 0.8em; /* A little bigger subtitle for tiny screens */
      text-align: center;
  }
}









/* Footer (migrated) */
.footer {
  background: linear-gradient(135deg, #c59100 0%, #ffe08a 50%, #c59100 100%);
  color: #333;
  padding: 50px 20px;
  margin-top: 50px;
  text-align: center;
  border-top: 3px solid #b8860b;
  box-shadow: 0 -5px 15px rgba(197, 145, 0, 0.2);
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-section { flex: 1; min-width: 250px; text-align: center; }
.footer-section h3 {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: #333;
  font-weight: 700;
}
.footer-section p { font-size: 1em; line-height: 1.6; margin: 0; color: #333; }
.footer-title { font-size: 1.8em; color: #333; margin-bottom: 20px; letter-spacing: 2px; font-weight: 700; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 10px 0; color: #333; font-size: 1.1em; }
.footer-links i { margin-right: 10px; color: #b8860b; }
.copyright {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid rgba(184, 134, 11, 0.3);
  color: #333;
  font-size: 1em;
  text-align: center;
}
.creator-credit { font-size: 0.8em; margin-top: 5px; opacity: 0.8; text-align: center; }
.footer-bottom { margin-top: 30px; padding-top: 20px; border-top: 2px solid rgba(184, 134, 11, 0.3); color: #333; font-size: 1em; text-align: center; }
@media (max-width: 768px) {
  .footer-content { flex-direction: column; gap: 16px; }
  .footer-section { min-width: auto; padding: 0 8px; }
  .footer { padding: 20px 12px; }
  .footer-title { font-size: 1.3em; }
  .footer-section h3 { font-size: 1.15em; }
  .footer-section p { font-size: 0.95em; }
}
@media (max-width: 600px) {
  .footer { padding: 16px 10px; }
  .footer-content { gap: 12px; }
  .footer-section { padding: 0 6px; }
  .footer-links li { margin: 6px 0; font-size: 1em; }
  .copyright, .footer-bottom { font-size: 0.9em; }
}

/* Make white borders thinner on small screens */
@media (max-width: 600px) {
  .google-arts-button { border-width: 1px; }
  .card-icon { border-width: 1px; }
}



