/* =============================================================
   base.css – Global styles with elegant design
   ============================================================= */

/* ---------------- RESET & TYPOGRAPHY ---------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


body {
  /* font-family: "Times New Roman", Times, serif; */
  line-height: 1.6;
  color: #1f2937;
  background: linear-gradient(135deg, #fef7ed 0%, #fff7ed 100%);
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
    
      
        /* font-size: 16px;
        background: linear-gradient(135deg, #fef7ed 0%, #fff7ed 100%);
        margin: 0;
        padding: 0 16px;
        box-sizing: border-box; */
}

html {
  scroll-behavior: smooth;
}

/* ---------------- CONTAINERS ---------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================= */
/* MOTTO BAR */
#motto-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 30px;
  z-index: 1001;
   background: white;
  color: #b45309;
  font-family: Georgia, serif;
  font-size: 0.875rem;
  font-style: italic;
  padding-right: 104px; /* Space for logo on right */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* #motto-bar.transparent {
  background-color: transparent;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
} */

/* ============================= */
/* HEADER */
.header {
  position: fixed;
  top: 30px; /* Just below the motto bar */
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 999;
  background-color: #fff;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
}

.header.transparent {
  background-color: transparent;
  box-shadow: none;
  color: #fff;
}


/* ============================= */
/* LOGO - Positioned on RIGHT side */
/* .logo-img {
  position: fixed;
  top: 0;
  right: 20px; 
  width: auto;
  height: 40px;
  object-fit: contain;
  z-index: 1100;
} */
.logo-img {
  position: fixed;
  top: 0px; /* Places it in the middle of the 30px motto bar and 90px header */
  right: 20px; /* Changed from left to right */
  height: 120px; /* Adjust height as needed */
  object-fit: contain;
  z-index: 1102; /* Must be above motto bar (1001) and header (999) */
  pointer-events: none;
}

/* === HAMBURGER  ☰ → X  ===================================== */
.hamburger-btn{width:28px;height:24px;position:relative;border:0;background:none;
               cursor:pointer;z-index:1600;display:none}
.hamburger-btn span{position:absolute;left:0;width:100%;height:3px;
                    background:#b45309;border-radius:3px;
                    transition:transform .45s,top .45s,opacity .25s}
.hamburger-btn span:nth-child(1){top:0}
.hamburger-btn span:nth-child(2){top:10px}
.hamburger-btn span:nth-child(3){top:20px}
.hamburger-btn.active span:nth-child(1){top:10px;transform:rotate(45deg)}
.hamburger-btn.active span:nth-child(2){opacity:0}
.hamburger-btn.active span:nth-child(3){top:10px;transform:rotate(-45deg)}


/* ============================= */
/* NAVBAR (inside header) */
.navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 104px 1rem 2rem; /* Right padding for logo, left padding reduced */
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  width: 100%;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.nav-link {
  color: #b45309;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 25px;
  background: rgba(180, 83, 9, 0.05);
  position: relative;
  overflow: hidden;
}

.header.transparent .nav-link {
  color: white;
  /* text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  background: rgba(255, 255, 255, 0.1); */
  backdrop-filter: blur(10px);
}

/* Navigation Enhancement Effects */
.nav-link::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.5s;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #b45309, #d97706);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

.nav-link:hover {
  color: white;
  background: linear-gradient(135deg, #b45309, #d97706);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(180, 83, 9, 0.3);
}

/* Parent container */
.dropdown {
  position: relative;
}

/* Dropdown menu */
.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 250px;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  z-index: 1002;
  padding: 1rem 0;

  /* IMPORTANT PART (smooth dropdown, no flicker) */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.3s ease;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Dropdown links */
.dropdown-content a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #b45309;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

/* Hover shine effect */
.dropdown-content a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(180, 83, 9, 0.1), transparent);
  transition: left 0.4s;
}

.dropdown-content a:hover::before {
  left: 100%;
}

/* Hover background + slide */
.dropdown-content a:hover {
  background: linear-gradient(90deg, #fef7ed, #fff7ed);
  border-left: 3px solid #b45309;
  transform: translateX(5px);
}


.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #b45309;
}

.header.transparent .hamburger {
  color: white;
}

.nav-link,
.nav-link:focus,
.nav-link:active,
.nav-link:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Ensure hero slider can position elements inside it */
.hero-slider {
    position: relative;
}

.hero-announcement-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;

    z-index: 100;

    /* Fixed colors */
    background: #b45309;      /* solid orange */
    color: #ffffff;           /* white text */

    padding: 10px 22px;
    border-radius: 25px;
    cursor: pointer;

    font-size: 18px;
    font-weight: 600;

    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Remove ALL hover effects */
.hero-announcement-btn:hover {
    background: #b45309 !important;  
    color: #ffffff !important;
    transform: none !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
}

/* Overlay */
.announcement-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

/* Popup Box */
.announcement-box {
    background: #fff7ed;
    padding: 30px;
    width: 90%;
    max-width: 600px;

    border-radius: 15px;
    border: 4px solid #b45309;   /* 4 sides border */

    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    position: relative;
}

/* Close Button */
.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 32px;
    cursor: pointer;
    color: #b45309;
}

/* Inner content */
.announcement-content h2 {
    color: #b45309;
    text-align: center;
    margin-bottom: 20px;
}

.announcement-inner-box {
    padding: 20px;
    border: 3px solid #d97706;
    border-radius: 12px;
    background: #ffffff;
}


/* ---------------- CONTENT SECTIONS ---------------- */
.content-section {
  /* space for motto bar + header is already handled elsewhere,
     so we just use normal vertical rhythm here */
    padding: 2rem 0;          /* ↓ was 140px 0 100px 0 */
 /*  min-height: 100vh; */
}

/* Content sections for non-home pages */
.page-content {
  padding: 4rem 0;          /* tidy, consistent spacing */
  /* min-height: 100vh; */
}

.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-hero {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem 0;
  /* background: linear-gradient(135deg, #fef7ed, #fff7ed); */
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #b45309;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-hero p {
  font-size: 1.2rem;
  color: #92400e;
  max-width: 600px;
  margin: 0 auto;
}
/* --- Orange hero variant --- */
.page-hero.bg-primary {                     /* reuse the gradient you already defined */
  background: linear-gradient(135deg, #b45309, #d97706);
  color:#fff;                               /* everything inside turns white */
}

.page-hero.bg-primary h1,
.page-hero.bg-primary p {
  color:#fff;                               /* override the brown heading you set earlier */
}


/* ---------------- ELEGANT CARDS ---------------- */
.elegant-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(180, 83, 9, 0.1);
  transition: all 0.3s ease;
}

.elegant-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.elegant-card h2 {
  color: #b45309;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
}

.elegant-card h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #b45309, #d97706);
  border-radius: 2px;
}

.elegant-card h3 {
  color: #92400e;
  font-size: 1.5rem;
  margin: 2rem 0 1rem 0;
  padding-left: 1rem;
  border-left: 4px solid #b45309;
}

.elegant-card p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 1.5rem;
  text-align: justify;
}

/* ---------------- BUTTON STYLING ---------------- */
/* ---------------- BUTTON STYLING ---------------- */
.btn,
.view-more-btn,
.click-btn,
.cta-button,
.btn-primary {                               /* ← NEW: style Read More / View More */
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;

  /* same warm gradient used on relic boxes, etc. */
  background: linear-gradient(135deg, #b45309, #d97706);

  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;

  /* deeper shadow borrowed from .relic-box hover state */
  box-shadow: 0 12px 30px -6px rgba(180, 83, 9, 0.35);

  /* smooth upward lift */
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;             /* required for flare effect */
}

/* --- subtle white flare on click / hover --- */
.btn::before,
.view-more-btn::before,
.click-btn::before,
.cta-button::before,
.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.45s ease, height 0.45s ease;
}

/* hover / active states */
.btn:hover,
.view-more-btn:hover,
.click-btn:hover,
.cta-button:hover,
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -6px rgba(180, 83, 9, 0.45);
}

.btn:hover::before,
.view-more-btn:hover::before,
.click-btn:hover::before,
.cta-button:hover::before,
.btn-primary:hover::before {
  width: 280%;
  height: 280%;
}

.btn:hover::before, .view-more-btn:hover::before, .click-btn:hover::before, .cta-button:hover::before {
  width: 300%;
  height: 300%;
}

.btn:hover, .view-more-btn:hover, .click-btn:hover, .cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(180, 83, 9, 0.4);
  background: linear-gradient(135deg, #d97706, #b45309);
}

/* ---------------- ELEGANT TABLES ---------------- */
.elegant-table-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 2rem;
}

.elegant-table {
  width: 100%;
  border-collapse: collapse;
}

.elegant-table thead {
  background: linear-gradient(135deg, #b45309, #d97706);
}

.elegant-table th {
  padding: 1.5rem;
  text-align: left;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.elegant-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(180, 83, 9, 0.1);
  color: #374151;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.elegant-table tbody tr:hover {
  background: linear-gradient(90deg, #fef7ed, #fff7ed);
  transform: scale(1.01);
}

.elegant-table tbody tr:last-child td {
  border-bottom: none;
}

/* ---------------- ANIMATIONS ---------------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- SCROLL-TRIGGERED TRANSPARENCY ---------------- */
/* Add these classes via JavaScript when hero slider is visible */
.hero-visible #motto-bar {
  background-color: transparent;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.hero-visible .header {
  background-color: transparent;
  box-shadow: none;
}

.hero-visible .header .nav-link {
  color: white;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

/* ---------------- ADDITIONAL UTILITY CLASSES ---------------- */
/* Universal page wrapper for consistent layout */
.page-wrapper {
  padding-top: 90px; /* Space for fixed header + motto bar */
  min-height: auto;
}

/* Alternative page wrapper for pages with hero sections */
.page-wrapper-hero {
  padding-top: 0; /* Hero sections handle their own spacing */
  min-height: 100vh;
}

/* Navigation container for consistent alignment */
.nav-container {
  position: relative;
  z-index: 998;
}

/* Ensure navigation is always properly aligned */
.nav-align {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 0rem;
}

.mt-4 {
  margin-top: 2rem;
}

.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.justify-content-center {
  justify-content: center;
}

.justify-content-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 1rem;
}

.gap-4 {
  gap: 2rem;
}

.w-100 {
  width: 100%;
}

.h-100 {
  height: 100%;
}

.position-relative {
  position: relative;
}

.position-absolute {
  position: absolute;
}

.z-index-high {
  z-index: 1000;
}

.border-radius-lg {
  border-radius: 20px;
}

.shadow-lg {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.transition-all {
  transition: all 0.3s ease;
}

.overflow-hidden {
  overflow: hidden;
}

.font-weight-bold {
  font-weight: 700;
}

.font-size-lg {
  font-size: 1.2rem;
}

.color-primary {
  color: #b45309;
}

.color-secondary {
  color: #92400e;
}

.bg-primary {
  background: linear-gradient(135deg, #b45309, #d97706);
}

.bg-light {
  background: #fef7ed;
}

.bg-white {
  background: white;
}

.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.backdrop-blur {
  backdrop-filter: blur(10px);
}

.cursor-pointer {
  cursor: pointer;
}

.user-select-none {
  user-select: none;
}

.pointer-events-none {
  pointer-events: none;
}

.opacity-0 {
  opacity: 0;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-100 {
  opacity: 1;
}

.visibility-hidden {
  visibility: hidden;
}

.visibility-visible {
  visibility: visible;
}

.scale-105 {
  transform: scale(1.05);
}

.translate-y-2 {
  transform: translateY(-2px);
}

.translate-y-5 {
  transform: translateY(-5px);
}

.rotate-180 {
  transform: rotate(180deg);
}

.filter-blur {
  filter: blur(4px);
}

.grayscale {
  filter: grayscale(100%);
}

.brightness-110 {
  filter: brightness(1.1);
}

.contrast-120 {
  filter: contrast(1.2);
}

.saturate-150 {
  filter: saturate(1.5);
}

.hue-rotate-90 {
  filter: hue-rotate(90deg);
}

.invert {
  filter: invert(1);
}

.sepia {
  filter: sepia(1);
}

.drop-shadow {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.blur-sm {
  filter: blur(4px);
}

.blur-md {
  filter: blur(8px);
}

.blur-lg {
  filter: blur(16px);
}

.blur-xl {
  filter: blur(24px);
}

.blur-2xl {
  filter: blur(40px);
}

.blur-3xl {
  filter: blur(64px);
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

.backdrop-blur-md {
  backdrop-filter: blur(8px);
}

.backdrop-blur-lg {
  backdrop-filter: blur(16px);
}

.backdrop-blur-xl {
  backdrop-filter: blur(24px);
}

.backdrop-blur-2xl {
  backdrop-filter: blur(40px);
}

.backdrop-blur-3xl {
  backdrop-filter: blur(64px);
}

.backdrop-brightness-50 {
  backdrop-filter: brightness(0.5);
}

.backdrop-brightness-75 {
  backdrop-filter: brightness(0.75);
}

.backdrop-brightness-100 {
  backdrop-filter: brightness(1);
}

.backdrop-brightness-125 {
  backdrop-filter: brightness(1.25);
}

.backdrop-brightness-150 {
  backdrop-filter: brightness(1.5);
}

.backdrop-brightness-200 {
  backdrop-filter: brightness(2);
}

.backdrop-contrast-50 {
  backdrop-filter: contrast(0.5);
}

.backdrop-contrast-75 {
  backdrop-filter: contrast(0.75);
}

.backdrop-contrast-100 {
  backdrop-filter: contrast(1);
}

.backdrop-contrast-125 {
  backdrop-filter: contrast(1.25);
}

.backdrop-contrast-150 {
  backdrop-filter: contrast(1.5);
}

.backdrop-contrast-200 {
  backdrop-filter: contrast(2);
}

.backdrop-grayscale-0 {
  backdrop-filter: grayscale(0);
}

.backdrop-grayscale {
  backdrop-filter: grayscale(100%);
}

.backdrop-hue-rotate-15 {
  backdrop-filter: hue-rotate(15deg);
}

.backdrop-hue-rotate-30 {
  backdrop-filter: hue-rotate(30deg);
}

.backdrop-hue-rotate-60 {
  backdrop-filter: hue-rotate(60deg);
}

.backdrop-hue-rotate-90 {
  backdrop-filter: hue-rotate(90deg);
}

.backdrop-hue-rotate-180 {
  backdrop-filter: hue-rotate(180deg);
}

.backdrop-invert-0 {
  backdrop-filter: invert(0);
}

.backdrop-invert {
  backdrop-filter: invert(100%);
}

.backdrop-opacity-0 {
  backdrop-filter: opacity(0);
}

.backdrop-opacity-5 {
  backdrop-filter: opacity(0.05);
}

.backdrop-opacity-10 {
  backdrop-filter: opacity(0.1);
}

.backdrop-opacity-20 {
  backdrop-filter: opacity(0.2);
}

.backdrop-opacity-25 {
  backdrop-filter: opacity(0.25);
}

.backdrop-opacity-30 {
  backdrop-filter: opacity(0.3);
}

.backdrop-opacity-40 {
  backdrop-filter: opacity(0.4);
}

.backdrop-opacity-50 {
  backdrop-filter: opacity(0.5);
}

.backdrop-opacity-60 {
  backdrop-filter: opacity(0.6);
}

.backdrop-opacity-70 {
  backdrop-filter: opacity(0.7);
}

.backdrop-opacity-75 {
  backdrop-filter: opacity(0.75);
}

.backdrop-opacity-80 {
  backdrop-filter: opacity(0.8);
}

.backdrop-opacity-90 {
  backdrop-filter: opacity(0.9);
}

.backdrop-opacity-95 {
  backdrop-filter: opacity(0.95);
}

.backdrop-opacity-100 {
  backdrop-filter: opacity(1);
}

.backdrop-saturate-0 {
  backdrop-filter: saturate(0);
}

.backdrop-saturate-50 {
  backdrop-filter: saturate(0.5);
}

.backdrop-saturate-100 {
  backdrop-filter: saturate(1);
}

.backdrop-saturate-150 {
  backdrop-filter: saturate(1.5);
}

.backdrop-saturate-200 {
  backdrop-filter: saturate(2);
}

.backdrop-sepia-0 {
  backdrop-filter: sepia(0);
}

.backdrop-sepia {
  backdrop-filter: sepia(100%);
}

/* ---- GLOBAL TIGHTENING ---- */
.content-section        { padding: 1.5rem 0; }   /* was 3rem */
.content-card           { margin: 2rem auto; } /* was 4rem */
.relic-section          { padding: 2rem 0; }   /* was 1.5rem top + 4rem bottom via .relic-container */
.relic-container        { margin: 0 auto 2rem; } /* was 4rem */

/* === MOBILE DRAWER  (≤768 px)  ======================= */
@media (max-width:768px){

  .hamburger-btn{display:block}         /* show ☰ on phones/tablets   */
  .nav-menu{position:fixed;top:0;right:-100%;width:75%;max-width:320px;height:100vh;
            background:#fff;box-shadow:-2px 0 15px rgba(0,0,0,.2);
            flex-direction:column;gap:1.25rem;padding:120px 1.5rem 2rem;
            transition:right .45s ease;z-index:1500}
  .nav-menu.open{right:0}               /* slide‑in */

  /* sub‑menus flow inside drawer */
  .nav-menu .dropdown-content{
    position:static!important;display:none;margin:.25rem 0 0 1rem;
    background:transparent;box-shadow:none;opacity:1;visibility:visible;padding:0}
  .nav-menu.open .dropdown-content a{display:block;padding:.5rem 0}

  /* white ➜ dark when header becomes glassy at top of hero */
  .header.transparent .nav-menu{background:rgba(0,0,0,.9)}
  .header.transparent .nav-menu .nav-link{color:#fff}
}


/* ---------------- RESPONSIVE DESIGN ---------------- */
/* ------------------- 1024px ------------------- */
@media (max-width: 1024px) {

  .navbar {
    padding: 1rem 84px 1rem 1rem;
  }

  .nav-menu {
    gap: 1rem;
  }

  .logo-img {
    height: 70px !important;
  }

  #motto-bar {
    padding-right: 90px;
  }
}

/* ------------------- 768px (MAIN FIXED VERSION) ------------------- */

/* 1) Desktop reset — ensure nav-menu does NOT block the page on desktop */
@media (min-width: 769px) {
  .nav-menu {
    position: static !important;
    height: auto !important;
    display: flex !important;
    flex-direction: row !important;
    width: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    right: auto !important;
    top: auto !important;
    pointer-events: auto !important;
    z-index: auto !important;
  }

  /* Ensure off-canvas rules do not remain active for desktop */
  .nav-menu.open {
    right: auto !important;
  }
}

/* 2) Mobile drawer: keep it off-screen AND non-interactive until opened */
@media (max-width: 768px) {
  header {
    position: static;   /* header scrolls with page */
  }

    .welcome-text
    .content-text
    .relic-content-text {
      /* font-family: "Times New Roman", serif; */
        font-size: 16px;
        line-height: 1.6;
        color: black;
        /* #1f2937 */
        background: linear-gradient(135deg, #fef7ed 0%, #fff7ed 100%);
        min-height: auto;
        margin: 0;
        padding: 0 16px;
        box-sizing: border-box;
    }

  .page-wrapper {
    padding-top: 65px;     /* no manual offset needed */
    min-height: auto;
  }
  .nav-menu {
    /* keep off-canvas hidden and non-blocking when closed */
    position: fixed !important;
    top: 0;
    right: -110% ;              /* push fully out */
    width: 78%;
    max-width: 320px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 20px rgba(0,0,0,0.2);
    display: flex !important;
    flex-direction: column;
    padding: 100px 16px 24px;
    gap: 8px;
    transition: right .45s cubic-bezier(.4,0,.2,1);
    z-index: 1200;              /* < dropdown z-index below */
    pointer-events: none;       /* <-- IMPORTANT: don't capture clicks while closed */
    touch-action: none;
  }

  /* When opened, enable pointer events so items are clickable */
  .nav-menu.open {
    right: 0 !important;
    pointer-events: auto !important;
    touch-action: auto;
  }
}

/* 3) Make dropdown content topmost and clickable */
.dropdown-content {
  z-index: 2100 !important;      /* above nav-menu which is 1200 */
  pointer-events: auto !important;
}

/* 4) Ensure visible dropdown has pointer events and is visible */
.dropdown:hover > .dropdown-content,
.dropdown.open > .dropdown-content {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* 5) Safety: if any overlay/wrapper exists, make sure it doesn't cover dropdown */
.nav-menu-wrapper,
.nav-overlay {
  z-index: 1100; /* keep these below dropdown-content */
  pointer-events: none;
}
@media (max-width: 768px) {

  /* HERO SLIDER FIX */
  .hero-slider {
    height: 420px !important;
  }

  .hero-slider .slide {
    animation: mobile-ken 18s ease-in-out infinite;
    background-position: center center;
    background-size: cover;
  }

  @keyframes mobile-ken {
    0%   { transform: scale(1) translate(0,0); }
    50%  { transform: scale(1.08) translate(-2%, -2%); }
    100% { transform: scale(1) translate(0,0); }
  }

  .slide-indicators {
    bottom: 14px;
    gap: 8px;
  }

  .slide-indicators .indicator {
    width: 9px;
    height: 9px;
  }

  /* HEADER + LOGO */
  .header {
    height: 64px;
    top: 30px;
    padding: 0 16px;
  }

  .logo-img {
    height: 64px !important;
    top: 4px;
    right: 16px !important;
  }

  /* CLEAN MOBILE MENU (BEST SYSTEM) */
  .nav-menu {
    position: fixed !important;
    top: 0;
    right: -100%;
    width: 78%;
    max-width: 320px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 20px rgba(0,0,0,0.2);
    display: flex !important;
    flex-direction: column;
    padding: 100px 16px 24px;
    gap: 8px;
    transition: right .45s cubic-bezier(.4,0,.2,1);
    z-index: 1500;
    overflow-y:scroll;
  }

  .nav-menu.open {
    right: 0 !important;
  }

  .nav-menu a {
    padding: 0.75rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
  }

  /* Dropdown stays open until mouse leaves */
  .dropdown:hover > .dropdown-content {
    display: block !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .dropdown-content {
    position: relative;
    display: none;
    background: #fff;
    box-shadow: none;
    border-radius: 0;
    padding-left: 1rem;
  }

  /* SECTION & CARD TWEAKS */
  .content-section,
  .welcome-section,
  .relic-section,
  .news-section,
  .gallery-section {
    padding: 1rem 0;
  }

  .content-card,
  .relic-container {
    margin: 1.25rem 0;
  }

  .content-body,
  .welcome-card,
  .relic-box {
    padding: 1.25rem;
  }

  .gallery-track {
    gap: 1rem;
  }

  .relic-title,
  .gallery-title,
  .news-title {
    margin-bottom: 2rem;
  }

  .gallery-track {
    gap: 0.75rem;
  }
}

/* ------------------- 480px ------------------- */
@media (max-width: 480px) {

  .container,
  .page-container {
    padding: 0 1rem;
  }

  .content-section,
  .page-content {
    padding: 10px 0 10px 0;
  }

  .header.transparent {
    background: transparent !important;
    box-shadow: none !important;
  }

  .header.transparent .nav-menu-wrapper {
    background: rgba(0,0,0,.75) !important;
  }

  .logo-img {
    /* padding-top: 1px; */
    height: 90px !important;
    right: 5px !important;
  }

  #motto-bar {
    padding-right: 60px;
    font-size: 0.7rem;
    background-color: #fff !important;
    color: #000 !important;
  }

  .navbar {
    padding: 1rem 60px 1rem 0.5rem;
  }

  .page-hero {
    padding: 2rem 0;
  }

  .page-hero h1 {
    font-size: 1.5rem;
  }

  .elegant-card {
    padding: 1rem;
  }

  .content-card,
  .relic-container {
    margin: 0.75rem 0;
  }

  .content-body,
  .welcome-card,
  .relic-box {
    padding: 1rem;
  }

  .content-card,
  .relic-box {
    border-radius: 0.75rem;
  }
}
