/* CSS for Education */

@font-face {
  font-family: "URW DIN Arabic";
  src: url("../fonts/alfont_com_AlFont_com_URW-DIN-Arabic.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* Page Transition */
.page-enter-active,
.page-leave-active {
  transition: opacity 0.3s ease;
}

.page-enter-from,
.page-leave-to {
  opacity: 0;
}

/* Ensure the body takes full viewport height */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html {
  font-size: 95% !important;
}

/* Hide Scrollbar */
/* Firefox */
* {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* Webkit browsers (Chrome, Safari, Edge) */
*::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
  width: 0;
  height: 0;
}

/* Custom Scrollbar Utility - Hidden */
.custom-scrollbar {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.custom-scrollbar::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
  width: 0;
  height: 0;
}

/* Main content wrapper */
#page-wrapper {
  min-height: 100vh;
  position: relative;
}


/* Font Import */
/* Font Import commented out as requested */


/* Navigation Links */
/* Main Navigation Links */
nav ul li a {
  color: #E5E7EB;
  /* gray-200 */
  transition: color 0.2s ease-in-out;
}

nav ul li a:hover,
nav ul li a:focus,
nav ul li a.active {
  color: #FFFFFF;
  /* white */
}

/* Active state for current page */
nav ul li a[href*="website-gallery.html"] {
  color: #FFFFFF;
  font-weight: 500;
}

/* Mobile menu links */
#mobileMenu a {
  color: #E5E7EB;
  /* gray-200 */
}

#mobileMenu a:hover,
#mobileMenu a:focus,
#mobileMenu a.active {
  color: #FFFFFF;
}

/* Navigation Icon Styles */
.nav-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.nav-icon:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

/* Body and Main Styles */
body {
  margin: 0;
  padding: 0;
  font-family: "URW DIN Arabic", "Tajawal", "Cairo", "Segoe UI", "Roboto", "Noto Sans Arabic", -apple-system, BlinkMacSystemFont, sans-serif;
}

main {
  margin: 0;
  padding: 0;
}

/* Navbar transition */
nav {
  transition: transform 0.3s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-icon {
    width: 2rem;
    height: 2rem;
  }
}

/* Mobile menu smooth scrolling - Scrollbar Hidden */
#mobileMenu {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

#mobileMenu::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
  width: 0;
  height: 0;
}

/* Ensure video is responsive */
main video:not(.object-cover) {
  max-width: 100vw;
  max-height: 250px !important;
}

/* Carousel container spacing */
.carousel-container {
  margin-bottom: 3rem;
  /* Add space between pagination and footer */
}

/* Prevent horizontal scroll on small screens */
@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }
}
/* MOBILE_MENU_FIX */
#mobileHeaderDropdown {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
#mobileMoreDropdown {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
header {
    overflow: visible !important;
}

/* Modal Close Button - لون أحمر عام لكل أزرار إغلاق المودالات */
.modal-close-btn {
    color: #ef4444 !important;
    transition: color 0.2s ease;
}
.modal-close-btn:hover {
    color: #dc2626 !important;
}
.modal-close-btn svg {
    stroke: currentColor;
}

/* Modal close buttons - red (overrides Tailwind) */
.modal-close-btn, #closeModalBtn, #closeMapModal { color: #ef4444 !important; }
.modal-close-btn:hover, #closeModalBtn:hover, #closeMapModal:hover { color: #dc2626 !important; }
.modal-close-btn svg, #closeMapModal svg { stroke: #ef4444 !important; }
.modal-close-btn:hover svg, #closeMapModal:hover svg { stroke: #dc2626 !important; }

body.visitors-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

main[role="main"] {
    margin-top: 1rem;
}

body.visitors-shell main[role="main"] {
    flex: 1 0 auto;
    width: 100%;
}

body.visitors-shell footer.visitors-site-footer {
    margin-top: auto;
    flex-shrink: 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Fixed overlays: ensure Tailwind .hidden wins over section-level display rules */
.home-image-preview.hidden,
#mapModal.hidden,
#successModal.hidden,
#contactModal.hidden,
#home-ad-modal.hidden,
#certificatePdfModal.hidden {
    display: none !important;
}

/* Contact modal — overlay starts below fixed header */
#contactModal:not(.hidden) {
    top: var(--visitors-header-height, 3.75rem);
    height: calc(100dvh - var(--visitors-header-height, 3.75rem));
}

/* Card metadata icons — color from CSS (not SVG fill); change --card-meta-accent-color once */
:root {
    --card-meta-accent-color: #f8c716;
    --card-meta-icon-color: var(--card-meta-accent-color);
}

.card-meta-icon {
    display: inline-block;
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    background-color: var(--card-meta-icon-color, #f8c716) !important;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
}

.card-meta-icon--md {
    width: 1.125rem;
    height: 1.125rem;
}

.card-meta-icon--lg {
    width: 1.25rem;
    height: 1.25rem;
}

.card-meta-icon--person {
    -webkit-mask-image: url("../icons/colored-person.svg");
    mask-image: url("../icons/colored-person.svg");
}

.card-meta-icon--section {
    -webkit-mask-image: url("../icons/colored-section.svg");
    mask-image: url("../icons/colored-section.svg");
}

.card-meta-icon--globe {
    -webkit-mask-image: url("../icons/colored-globe.svg");
    mask-image: url("../icons/colored-globe.svg");
}

.card-meta-icon--location {
    -webkit-mask-image: url("../icons/colored-location1.svg");
    mask-image: url("../icons/colored-location1.svg");
}

.card-meta-icon--country-map {
    -webkit-mask-image: url("../icons/maps-location.svg");
    mask-image: url("../icons/maps-location.svg");
}

.card-meta-icon--date {
    -webkit-mask-image: url("../icons/Calendar-Date.svg");
    mask-image: url("../icons/Calendar-Date.svg");
    background-color: var(--card-meta-icon-color, #f8c716) !important;
}

.card-pilgrim-icon {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: var(--card-meta-icon-color, #f8c716);
}

/* Share triggers — brand teal */
.visitors-shell .visitors-share-trigger,
.visitors-shell .visitors-share-platform,
.visitors-shell .share-btn,
.visitors-shell .modal-share-container .share-btn,
.visitors-shell .share-container-manual .share-btn,
.visitors-shell #home-ad-modal-share-wrap [data-share-platform],
.visitors-shell .visitors-share-wrap [data-share-platform] {
    color: #ffffff !important;
    border-color: transparent !important;
    background-color: #36a4bf !important;
    box-shadow: 0 4px 10px -8px rgba(54, 164, 191, 0.35) !important;
}

.visitors-shell .visitors-share-trigger:hover,
.visitors-shell .visitors-share-trigger:focus-visible,
.visitors-shell .visitors-share-platform:hover,
.visitors-shell .visitors-share-platform:focus-visible,
.visitors-shell .share-btn:hover,
.visitors-shell .share-btn:focus-visible,
.visitors-shell .modal-share-container .share-btn:hover,
.visitors-shell .share-container-manual .share-btn:hover,
.visitors-shell #home-ad-modal-share-wrap [data-share-platform]:hover,
.visitors-shell #home-ad-modal-share-wrap [data-share-platform]:focus-visible,
.visitors-shell .visitors-share-wrap [data-share-platform]:hover,
.visitors-shell .visitors-share-wrap [data-share-platform]:focus-visible {
    background-color: #2a8da6 !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

.visitors-shell .share-btn svg path {
    fill: #ffffff !important;
}

/* Visitors share popup — opens upward above trigger */
.visitors-shell .visitors-share-popup,
.visitors-shell .home-ad-modal-socials-popup {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.visitors-shell .visitors-share-wrap.sharing,
.visitors-shell .visitors-share-inline.sharing,
.visitors-shell #home-ad-modal-share-wrap.sharing,
.visitors-shell .modal-share-container.sharing {
    overflow: visible;
    z-index: 40;
}

.visitors-shell .visitors-share-wrap.sharing .visitors-share-popup,
.visitors-shell .visitors-share-inline.sharing .visitors-share-popup,
.visitors-shell .visitors-share-wrap.sharing .home-ad-modal-socials-popup,
.visitors-shell #home-ad-modal-share-wrap.sharing .visitors-share-popup,
.visitors-shell #home-ad-modal-share-wrap.sharing .home-ad-modal-socials-popup,
.visitors-shell .modal-share-container.sharing .visitors-share-popup,
.visitors-shell .modal-share-container.sharing .home-ad-modal-socials-popup,
.visitors-shell .share-container-manual.sharing .visitors-share-popup {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.language-switcher__flag {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  border-radius: 0.25rem;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.28);
}