/* ===========================
   common.css — Global Base
   =========================== */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue: #1a56db;
  --blue-dark: #1140a6;
  --gold: #c9a227;
  --gold-dark: #a07b0e;
  --green: #0d9f6e;
  --green-dark: #077a53;
  --dark: #0d1117;
  --text: #1a1f2e;
  --text-muted: #6b7280;
  --bg: #f5f7fa;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(0,0,0,0.10);
  --shadow-hover: 0 20px 50px rgba(0,0,0,0.18);
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: white;
  
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

/* Standalone Page specific layout adjustments */
.standalone-page {
  padding-top: 40px !important;
  padding-bottom: 80px !important;
  min-height: 60vh;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===========================
   NAVBAR - PROFESSIONAL CORPORATE
   =========================== */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease-in-out;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0));
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#navbar.scrolled {
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #f3f4f6;
}

#navbar.scrolled .logo,
#navbar.scrolled .nav-links a {
  color: var(--text);
}

#navbar.scrolled .logo span {
  color: var(--gold);
}

#navbar.scrolled .nav-links a:hover {
  color: var(--blue);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.3s ease;
}

#navbar.scrolled .nav-inner {
  padding: 12px 40px;
}


/* ---- NAVBAR Logo with image ---- */
.logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo a img {
  height: 50px;
  width: 50px;
  
  object-fit: cover;
}

.logo a span {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
  padding: 6px 0;
  position: relative;
  text-decoration: none;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 2px;
  background: #f8c640;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}

#navbar.scrolled .nav-links a {
  color: #374151; /* Elegant dark gray */
}

#navbar.scrolled .nav-links a:hover,
#navbar.scrolled .nav-links a.active {
  color: var(--blue);
}

#navbar.scrolled .nav-links a::after {
  background: var(--blue);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1100;
  position: relative;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

#navbar.scrolled .hamburger span {
  background: var(--text);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   FOOTER
   =========================== */

footer {
  background: var(--dark);
  color: #9ca3af;
  padding: 60px 0 0;
  margin-top: 0;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px 50px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  max-width: 280px;
  color: #6b7280;
}

.footer-logo-container {
  margin-bottom: 12px;
}

.footer-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-logo-img {
  height: 36px;
  width: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.footer-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: white;
}

.footer-iframe {
  border: 0;
  border-radius: 12px;
  display: block;
}

.map-iframe {
  border: 0;
  display: block;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #9ca3af;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links h4 {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: white;
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 14px;
  color: #6b7280;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  text-align: center;
  padding: 20px 40px;
  font-size: 13px;
  color: #4b5563;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {

  .hamburger {
    display: flex;
    position: relative;
    z-index: 1200; /* always on top */
  }

  .nav-inner {
    padding: 16px 20px;
  }

  /* ---- TOP DROPDOWN MENU ---- */
  .nav-links {
    /* Positioned just below the navbar, slides down from top */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    /* Clean white background — no dark confusion */
    background: #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);

    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding-top: 68px; /* height of navbar bar */
    padding-bottom: 12px;

    /* Hidden: clipped above viewport */
    transform: translateY(-100%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);

    /* Keep links tappable only when open */
    visibility: hidden;

    z-index: 1100;
    overflow: hidden;
  }

  .nav-links.open {
    transform: translateY(0);
    visibility: visible;
  }

  /* Individual list items — stagger in from above */
  .nav-links li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav-links li:first-child {
    border-top: 1px solid #f0f0f0;
  }

  /* JS adds .revealed to trigger each item */
  .nav-links li.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links a {
    display: block;
    padding: 16px 28px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text); /* dark text on white — readable */
    border-bottom: none;
    letter-spacing: 0.01em;
    transition: color 0.2s ease, background 0.2s ease, padding-left 0.2s ease;
  }

  .nav-links a:hover {
    color: var(--blue);
    background: #f0f5ff;
    padding-left: 38px;
    border-bottom: none;
  }

  .nav-links a.active {
    color: var(--blue);
    font-weight: 600;
    border-bottom: none;
    background: #f0f5ff;
  }

  /* Lock body scroll when menu open */
  body.menu-open {
    overflow: hidden;
  }

  /* Hamburger icon turns dark when menu is open (white bg behind it) */
  .hamburger.open span {
    background: var(--text);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
/* ============================================================
   ABOUT DROPDOWN — Desktop hover + Mobile tap
   ============================================================ */

/* The parent <li> */
.has-dropdown {
  position: relative;
}

/* The trigger button mimics a nav link visually */
.dropdown-trigger {
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.3px;
  cursor: pointer;
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
  white-space: nowrap;
  position: relative;
}

.dropdown-trigger::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 2px;
  background: #f8c640;
  transition: width 0.3s ease;
}

.dropdown-trigger:hover::after,
.has-dropdown:hover .dropdown-trigger::after {
  width: 100%;
}

.dropdown-trigger:hover,
.has-dropdown:hover .dropdown-trigger {
  color: #ffffff;
}

/* When navbar is scrolled — dark trigger */
#navbar.scrolled .dropdown-trigger {
  color: #374151;
}

#navbar.scrolled .dropdown-trigger:hover,
#navbar.scrolled .has-dropdown:hover .dropdown-trigger {
  color: var(--blue);
}

#navbar.scrolled .dropdown-trigger::after {
  background: var(--blue);
}

/* The rotating arrow */
.drop-arrow {
  font-size: 11px;
  display: inline-block;
  transition: transform 0.25s ease;
  line-height: 1;
}
.has-dropdown {
  position: relative;
  padding-bottom: 14px; /* invisible area to move mouse */
}
/* Arrow rotates when panel is open */
.has-dropdown:hover .drop-arrow,
.has-dropdown.mobile-open .drop-arrow {
  transform: rotate(180deg);
}

/* ── The dropdown panel ── */
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  list-style: none;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 24px 60px rgba(0,0,0,0.15);
  padding: 8px;
  min-width: 275px;
  z-index: 9999;

  /* Hidden state */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

/* Show on hover (desktop) */
.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  
}

/* Small caret pointer at the top-right */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -7px;
  right: 22px;
  width: 13px;
  height: 13px;
  background: white;
  border-left: 1px solid rgba(0,0,0,0.07);
  border-top: 1px solid rgba(0,0,0,0.07);
  transform: rotate(45deg);
  border-radius: 2px 0 0 0;
}

/* Each menu row */
.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 13px;
  border-radius: 11px;
  color: #1a1f2e;
  font-size: 13px;
  border-bottom: none !important;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.nav-close {
  display: none;
}

@media (max-width: 768px) {
  .nav-close {
    display: flex;
  }
}
.dropdown-menu li a:hover {
  background: #f0f5ff;
  color: #1a56db;
}

/* Icon box */
.dm-icon {
  font-size: 20px;
  width: 40px;
  height: 40px;
  background: #f5f7fa;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.dropdown-menu li a:hover .dm-icon {
  background: #dce8ff;
}

/* Text stack */
.dm-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dm-text strong {
  font-size: 13px;
  font-weight: 700;
  color: #0d1117;
  display: block;
  line-height: 1.3;
}

.dm-text small {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 400;
}

/* ============================================================
   MOBILE  (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {

  /* The trigger becomes a full-width row in the drawer */
  .dropdown-trigger {
    color: var(--text);
    font-size: 15px;
    padding: 16px 28px;
    width: 100%;
    justify-content: space-between;
    border-bottom: none;
    border-radius: 0;
  }

  .dropdown-trigger:hover {
    color: var(--blue);
    background: #f0f5ff;
    padding-left: 38px;
    border-bottom: none;
  }

  /* Arrow always visible on mobile */
  .drop-arrow {
    font-size: 13px;
  }

  /* Panel sits inline (not floating) inside the drawer */
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    min-width: 100%;
    background: #f8f9ff;

    /* Collapsed by default — JS toggles this */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  /* JS adds .mobile-open to the <li> to expand */
  .has-dropdown.mobile-open .dropdown-menu {
    max-height: 400px;
  }

  /* Hide the floating caret on mobile */
  .dropdown-menu::before {
    display: none;
  }

  .dropdown-menu li {
    border-bottom: 1px solid #eaecf5;
  }

  .dropdown-menu li:last-child {
    border-bottom: none;
  }

  .dropdown-menu li a {
    padding: 13px 28px 13px 40px;
    border-radius: 0;
    font-size: 14px;
  }
}
/* ===========================
   TICKETING SECTION
   =========================== */

.ticketing-section {
  background: #f5f7fa;
  padding: 80px 40px;
  overflow: hidden;
}

.ticketing-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 60px;
  align-items: center;
}

.ticketing-text .section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.ticketing-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: #0d1117;
  line-height: 1.2;
  margin-bottom: 16px;
}

.ticketing-text h2 .bn-sub {
  display: block;
  font-size: 0.62em;
  color: #6b7280;
  font-style: italic;
  font-weight: 400;
  margin-top: 6px;
}

.ticketing-text p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.8;
  margin-bottom: 24px;
}

.btn-ticket-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--blue);
  color: white;
  font-weight: 700;
  font-size: 14px;
  border-radius: 50px;
  transition: 0.3s ease;
  text-decoration: none;
}

.btn-ticket-cta:hover {
  background: var(--blue-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(26,86,219,0.3);
}

/* Flag rolling tracks */
.ticketing-track-wrap {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.flag-track {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.flag-row {
  display: flex;
  gap: 14px;
  animation: flagScrollLeft 28s linear infinite;
  width: max-content;
}

.flag-row.reverse {
  animation: flagScrollRight 32s linear infinite;
}

@keyframes flagScrollLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes flagScrollRight {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Pause on hover */
.ticketing-track-wrap:hover .flag-row { animation-play-state: paused; }

.flag-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px 20px;
  min-width: 110px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}

.flag-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.flag-item span:last-child {
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  text-align: center;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.ticket-contact-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0c1628;
  color: rgba(255,255,255,0.7);
  border-radius: 12px;
  padding: 14px 22px;
  font-size: 13px;
  font-weight: 500;
  flex-wrap: wrap;
  margin-top: 20px;
}

.ticket-contact-bar a {
  color: #c9a227;
  font-weight: 700;
  transition: color 0.2s;
  text-decoration: none;
}
/* Flag Item Styling */
.flag-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  white-space: nowrap;
  min-width: 160px;
  justify-content: center;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.3);
}

/* Flag Image Styling */
.flag-img {
  width: 32px;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  display: block;
}

/* Text Styling */
.flag-item span {
  font-weight: 600;
  color: #333;
  font-size: 14px;
  line-height: 1.2;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .flag-item {
    padding: 8px 15px;
    min-width: 140px;
  }
  .flag-img {
    width: 24px;
  }
  .flag-item span {
    font-size: 12px;
  }
}
.ticket-contact-bar a:hover { color: #f0c040; }

/* ===========================
   CERTIFICATION SECTION
   =========================== */

.cert-section {
  padding: 80px 20px;
  background: #f5f7fa;
}

  .cert-container h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: #0d1117;
  line-height: 1.2;
  margin-bottom: 16px;
}

  .cert-container h2 .bn-sub {
  display: block;
  font-size: 0.62em;
  color: #6b7280;
  font-style: italic;
  font-weight: 400;
  margin-top: 6px;
}

.cert-container {
  max-width: 1100px;
  margin: auto;
}

.cert-header {
  text-align: center;
  margin-bottom: 60px;
}

.cert-badge-main {
  display: inline-block;
  padding: 14px 30px;
  border: 2px solid #1f2937;
  border-radius: 8px;
  margin-bottom: 16px;
}

.cert-badge-num {
  display: block;
  font-size: 34px;
  font-weight: 700;
  color: #111827;
}

.cert-badge-label {
  font-size: 13px;
  color: #555;
}

.cert-header p {
  max-width: 600px;
  margin: auto;
  color: #666;
  line-height: 1.6;
  font-size: 15px;
}

.cert-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.cert-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 32px 26px;
  text-align: center;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.cert-card.featured {
  transform: scale(1.05);
  border-color: #cbd5e1;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.cert-logo-wrap {
  height: 60px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-logo-wrap img {
  max-height: 50px;
  max-width: 100%;
  object-fit: contain;
}

.cert-divider {
  width: 40px;
  height: 2px;
  background: #e5e7eb;
  margin: 14px auto;
}

.cert-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #111;
}

.cert-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 18px;
}

.cert-tag {
  font-size: 11px;
  padding: 5px 14px;
  border: 1px solid #ddd;
  border-radius: 20px;
  color: #555;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 1024px) {
  .cert-cards { grid-template-columns: 1fr 1fr; }
  .cert-card.featured { transform: none; }
  .ticketing-inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .nav-inner { padding: 16px 20px; }
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding-top: 80px;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { color: var(--text); padding: 15px 20px; display: block; }
  .package-section { padding: 70px 20px; }
  .section-intro { flex-direction: column; align-items: flex-start; }
  .hajj-grid { grid-template-columns: 1fr; }
  .pkg-card.horizontal { flex-direction: column; }
  .pkg-img-wrap.small { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .cert-section { padding: 60px 20px; }
  .cert-cards { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .ticketing-section { padding: 60px 20px; }
}
