/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --color-bg: #faf7f2;
  --color-surface: #ffffff;
  --color-primary: #8b1a1a;
  --color-primary-dark: #6b1010;
  --color-accent: #c9a84c;
  --color-accent-light: #e8d9a0;
  --color-text: #2d2a26;
  --color-text-light: #6b6560;
  --color-border: #e0d6c8;
  --color-hero-overlay: rgba(40, 15, 10, 0.65);
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', Tahoma, sans-serif;
  --max-width: 1200px;
  --nav-height: 72px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-accent); }


.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px;  margin-bottom: 0;}

/* ===== HEADER / NAV ===== */
:root {
  --header-top-height: 116px;
  --menu-height: 64px;
  --header-total-height: calc(var(--header-top-height) + var(--menu-height));
}

header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: box-shadow .3s, background .3s;
}

.header-shell {
  background: #fff;
  border-bottom: 1px solid rgba(128, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

header.scrolled .header-shell {
  background: #fff;
  border-bottom: 1px solid rgba(128, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

header.header-hidden {
  transform: translateY(calc(-1 * var(--header-total-height)));
}

.brand-row {
  min-height: var(--header-top-height);
  display: flex;
  align-items: center;
  justify-content: left;
  padding-top: 12px;
  padding-bottom: 12px;
}

.menu-row {
  background: transparent;
  border-top: none;
  border-bottom: none;
  
}

nav {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--menu-height);
  position: relative;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: center;
  max-width: 1000px;
}

.nav-brand .brand-icon {
  width: 180px;
  height: 180px;
  border-radius: 0;
  overflow: hidden;
  flex-shrink: 0;
  margin-right: 1px; /* 👈 this creates right-side gap */
  background: transparent;
  border: none;
  box-shadow: none;
}

.nav-brand .brand-icon img {
  width: 200%;
  height: 200%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2vw, 2.2rem); /* increased */
  line-height: 1.15;
  font-weight: 700;
  color: #7a0c0c;
  text-wrap: balance;
   text-align: left;
  white-space: nowrap;   /* prevents wrapping */
}

.brand-tagline {
  font-size: clamp(1.5rem, 2vw, 1.3rem);
  letter-spacing: 0em;
  text-transform: uppercase;
  text-align: center;
  font-weight: 700;
  color: #6d4a32;
  line-height: 1.4;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  list-style: none;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  padding: 8px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links li {
  flex: 0 0 auto;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  border-radius: 6.5px;
  transition: all .2s ease;
  letter-spacing: 0.01em;
  border: none;
  background: #800000;
}

.nav-links a:hover,
.nav-links a.active {
  background: #b30000;
  color: #fff;
  transform: translateY(-1px);
}

.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 0.7em; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 251, 246, 0.98);
  border: 1px solid rgba(128, 0, 0, 0.12);
  border-radius: 14px;
  min-width: 260px;
  padding: 10px 0;
  box-shadow: 0 14px 36px rgba(0,0,0,0.14);
  backdrop-filter: blur(8px);
}

.dropdown-menu a {
  display: block;
  color: var(--color-text);
  padding: 11px 18px;
  font-size: 0.92rem;
  border-radius: 0;
  min-height: auto;
  background: transparent;
  border: 0;
}

.dropdown-menu a:hover {
  background: #fff1dd;
  color: #7a0c0c;
  transform: none;
}

.nav-dropdown:hover .dropdown-menu { display: block; }

.nav-toggle {
  display: none !important;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: absolute;
  right: 24px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 6px 0;
  transition: .3s;
}

/* ===== HERO ===== */
.hero {
	
  position: relative;
  min-height: 94vh;
          /* or fixed like 1200px */
  max-width: 1190px;   /* optional limit */
  margin: 0 auto;      /* ✅ centers the section */

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  
   display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-hero-overlay);
}



.hero-content {
  position: relative; z-index: 0; text-align: center;
  color: #fff; max-width: 800px; padding: 40px 24px;
   width: 100%;        /* full width of parent */
  height: 2vh;      /* full viewport height */
  
}

.hero-content h1 {
  font-family: var(--font-heading); font-size: 2.2rem;
  font-weight: 700; line-height: 1.2; margin-bottom: 5px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  
}
.hero-content .subtitle {
  font-size: 1.15rem; opacity: 0.9; margin-bottom: 32px;
  font-weight: 300; letter-spacing: 0.03em;
}
.hero-content .accent-line {
   width: 80px; height: 3px; background: var(--color-accent);
  margin: 0 auto 24px;
}

/* ===== PAGE HERO (smaller) ===== */
.page-hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;        /* optional fix */
  justify-content: center;    /* optional fix */
  max-width: 1100px;   /* optional limit */
  margin: 0 auto;      /* ✅ centers the section */
  background-size: cover;
  background-position: center; /* ✅ center the image */
  margin-top: 0;
}

.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: var(--color-hero-overlay);
}
.page-hero-content {
  position: relative; z-index: 1; text-align: center; color: #fff; padding: 40px 24px;
}
.page-hero-content h1 {
  font-family: var(--font-heading); font-size: 2.8rem;
  font-weight: 700; margin-bottom: 12px;
}
.page-hero-content p { font-size: 1.05rem; opacity: 0.85; max-width: 600px; margin: 0 auto; }
.page-hero-content .accent-line { width: 60px; height: 3px; background: var(--color-accent); margin: 0 auto 10px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block; padding: 14px 32px; border-radius: 6px;
  font-weight: 600; font-size: 1rem; letter-spacing: 0.04em;
  transition: all .3s; cursor: pointer; border: none;
}
.btn-primary { background: var(--color-accent); color: var(--color-text); }
.btn-primary:hover { background: #d4b45a; color: var(--color-text); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,168,76,0.3); }
.btn-outline { border: 2px solid var(--color-accent); color: var(--color-accent); background: transparent; }
.btn-outline:hover { background: var(--color-accent); color: var(--color-text); }

/* ===== SECTIONS ===== */
section { padding: 10px 0; }
section:nth-child(even) { background: var(--color-surface); }

.section-header { text-align: center; margin-bottom:20px; } 
.section-header h2 {
  font-family: var(--font-heading); font-size: 2.2rem;
  color: var(--color-primary); margin-bottom: 12px;
}
.section-header .accent-line { width: 200px; height: 3px; background: var(--color-accent); margin: 0 auto 10px; }
.section-header p { color: var(--color-text-light); max-width: 600px; margin: 0 auto; }

/* ===== CONTENT SECTIONS ===== */
.content-section { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.content-section h2 {
  font-family: var(--font-heading); font-size: 1.9rem;
  color: var(--color-primary); margin: 48px 0 20px; padding-bottom: 12px;
  border-bottom: 2px solid var(--color-accent-light);
}
.content-section h3 {
  font-family: var(--font-heading); font-size: 1.4rem;
  color: var(--color-primary-dark); margin: 32px 0 14px;
}
.content-section p { margin-bottom: 10px; text-align: justify; }
.content-section ul, .content-section ol { margin: 16px 0 24px 24px; }
.content-section li { margin-bottom: 8px; }

.content-section blockquote {
  border-left: 4px solid var(--color-accent);
  background: rgba(201,168,76,0.08); padding: 20px 24px;
  margin: 24px 0; border-radius: 0 8px 8px 0;
  font-style: italic; color: var(--color-text-light);
}

/* ===== CONTENT SECTIONS WITH IMAGES===== */
.content-section2 { max-width: 0px; margin: 0 auto; padding: 0 24px; }

/* Image styling */
.content-section2 img.left-img { width: 100px; height: 100px; float: left;
  margin: 0 16px 12px 0; /* space between image and text */
  object-fit: cover; /* keeps image nicely cropped */
  border-radius: 6px; /* optional for rounded corners */
}

/* Clear float after section if needed */
.content-section2::after {
  content: "";
  display: block;
  clear: both;
}
.content-section2 { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.content-section2 h2 {
  font-family: var(--font-heading); font-size: 1.9rem;
  color: var(--color-primary); margin: 20px 0 20px; padding-bottom: 12px;
  border-bottom: 2px solid var(--color-accent-light);
}
.content-section2 h3 {
  font-family: var(--font-heading); font-size: 1.4rem;
  color: var(--color-primary-dark); margin: 32px 0 14px;
}
.content-section2 p { margin-bottom: 18px; text-align: justify; }
.content-section2 ul, .content-section ol { margin: 16px 0 24px 24px; }
.content-section2 li { margin-bottom: 8px; }

.content-section blockquote {
  border-left: 4px solid var(--color-accent);
  background: rgba(201,168,76,0.08); padding: 20px 24px;
  margin: 24px 0; border-radius: 0 8px 8px 0;
  font-style: italic; color: var(--color-text-light);
}


/* ===== CARDS ===== */
.cards-grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.card {
  background: var(--color-surface); border-radius: 12px;
  border: 1px solid var(--color-border); overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.card-img { height: 220px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 24px; }
.card-body h3 { font-family: var(--font-heading); font-size: 1.2rem; color: var(--color-primary); margin-bottom: 10px; }
.card-body p { font-size: 0.92rem; color: var(--color-text-light); line-height: 1.6; }

/* Feature Cards (no image) */
.feature-card {
  background: var(--color-surface); border-radius: 12px;
  padding: 36px 28px; border: 1px solid var(--color-border);
  text-align: center; transition: all .3s;
}
.feature-card:hover { border-color: var(--color-accent); box-shadow: 0 8px 30px rgba(201,168,76,0.12); }
.feature-card .icon { font-size: 2.4rem; margin-bottom: 16px; }
.feature-card h3 { font-family: var(--font-heading); font-size: 1.15rem; color: var(--color-primary); margin-bottom: 10px; }
.feature-card p { font-size: 0.9rem; color: var(--color-text-light); }

/* Feature Cards (with image) */
.feature-card2 {
  background: var(--color-surface); border-radius: 5px;
  padding: 36px 28px; border: 1px solid var(--color-border);
  text-align: center; transition: all .3s;
}
.feature-card2:hover { border-color: var(--color-accent); box-shadow: 0 8px 30px rgba(201,168,76,0.12); }
.feature-card2 .icon { font-size: 2.4rem; margin-bottom: 16px; }
.feature-card2 h3 { font-family: var(--font-heading); font-size: 1.15rem; color: var(--color-primary); margin-bottom: 10px; }
.feature-card2 p { font-size: 0.9rem; color: var(--color-text-light); }


/* ===== TEAM ===== */
.team-grid { display: grid; gap: 15px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.team-card { text-align: center; padding: 32px 20px; }
.team-card .avatar {
  width: 100px; height: 100px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  margin: 0 auto 20px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-heading); font-size: 2rem; font-weight: 700;
}
.team-card h3 { font-family: var(--font-heading); font-size: 1.1rem; color: var(--color-primary); margin-bottom: 6px; }
.team-card .role { font-size: 0.85rem; color: var(--color-accent); font-weight: 600; margin-bottom: 12px; }
.team-card p { font-size: 0.88rem; color: var(--color-text-light); }

/* ===== GALLERY ===== */
.gallery-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 40px; }
.gallery-tab {
  padding: 10px 24px; border-radius: 30px; border: 2px solid var(--color-border);
  background: transparent; cursor: pointer; font-size: 0.9rem; font-weight: 500;
  font-family: var(--font-body); transition: all .2s;
}
.gallery-tab:hover, .gallery-tab.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

.gallery-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.gallery-item {
  border-radius: 10px; overflow: hidden; cursor: pointer;
  aspect-ratio: 4/3; position: relative;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .4s;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 50%, rgba(0,0,0,0.6));
  opacity: 0; transition: opacity .3s; display: flex; align-items: flex-end;
  padding: 16px; color: #fff; font-size: 0.9rem;
}
.gallery-item:hover .overlay { opacity: 1; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20050;
  background: rgba(0,0,0,0.94);
  align-items: center;
  justify-content: center;
  padding: 24px 72px;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: calc(100vw - 180px);
  max-height: calc(100vh - 80px);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.4);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 20051;
  color: #fff;
  font-size: 40px;
  background: rgba(0,0,0,0.35);
  border: none;
  cursor: pointer;
  width: 52px;
  height: 52px;
  border-radius: 50%;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20051;
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: none;
  font-size: 42px;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.28); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

@media (max-width: 768px) {
  .lightbox {
    padding: 16px 52px;
  }

  .lightbox img {
    max-width: calc(100vw - 110px);
    max-height: calc(100vh - 110px);
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 46px;
    height: 46px;
    font-size: 34px;
  }

  .lightbox-nav {
    width: 46px;
    height: 46px;
    font-size: 34px;
  }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ===== TEMPLES LIST ===== */
.temples-list { max-width: 860px; margin: 0 auto; }
.temples-category { margin-bottom: 36px; }
.temples-category h3 {
  font-family: var(--font-heading); font-size: 1.2rem;
  color: var(--color-primary); margin-bottom: 12px;
  padding-left: 16px; border-left: 4px solid var(--color-accent);
}
.temples-category ul { list-style: none; padding-left: 20px; }
.temples-category li {
  padding: 6px 0; font-size: 0.95rem; position: relative; padding-left: 20px;
}
.temples-category li::before {
  content: '◆'; position: absolute; left: 0; color: var(--color-accent); font-size: 0.6em; top: 12px;
}

/* ===== SCRIPTURES ===== */
.scripture-card {
  display: flex; gap: 20px; padding: 24px; background: var(--color-surface);
  border-radius: 10px; border: 1px solid var(--color-border); margin-bottom: 16px;
}
.scripture-card .date {
  min-width: 100px; font-family: var(--font-heading); font-size: 0.85rem;
  color: var(--color-accent); font-weight: 700; padding-top: 2px;
}
.scripture-card h4 { font-family: var(--font-heading); color: var(--color-primary); margin-bottom: 6px; }
.scripture-card p { font-size: 0.9rem; color: var(--color-text-light); }

/* ===== FOOTER ===== */
footer {
  background: #1a1410; color: #b8aea2; padding: 64px 0 0;
}
.footer-grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 48px; }
.footer-col h4 { font-family: var(--font-heading); color: var(--color-accent); font-size: 1.05rem; margin-bottom: 16px; }
.footer-col p { font-size: 0.9rem; line-height: 1.7; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #b8aea2; font-size: 0.9rem; }
.footer-col a:hover { color: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0;
  text-align: center; font-size: 0.85rem; color: #6b6560;
}

/* ===== CONTACT FORM ===== */
.contact-grid { display: grid; gap: 48px; grid-template-columns: 1fr 1fr; }
.contact-info-card {
  display: flex; gap: 16px; margin-bottom: 24px;
}
.contact-info-card .icon-box {
  width: 48px; height: 48px; border-radius: 10px; background: rgba(139,26,26,0.08);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-info-card h4 { font-family: var(--font-heading); font-size: 1rem; color: var(--color-primary); margin-bottom: 4px; }
.contact-info-card p { font-size: 0.9rem; color: var(--color-text-light); }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--color-border);
  border-radius: 8px; font-family: var(--font-body); font-size: 0.95rem;
  background: var(--color-surface); transition: border .2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--color-primary); }
.form-group textarea { resize: vertical; min-height: 140px; }

/* ===== ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity .7s, transform .7s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 16px 0; font-size: 0.85rem; color: var(--color-text-light);
}
.breadcrumb a { color: var(--color-primary); }
.breadcrumb span { margin: 0 8px; }

/* ===== TIMELINE ===== */
.timeline { position: relative; max-width: 860px; margin: 0 auto; padding: 20px 0; }
.timeline::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 3px; background: var(--color-accent-light); transform: translateX(-50%);
}
.timeline-item {
  position: relative; width: 50%; padding: 0 40px 48px;
}
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }
.timeline-item::before {
  content: ''; position: absolute; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--color-primary); border: 3px solid var(--color-accent);
  z-index: 1;
}
.timeline-item:nth-child(odd)::before { right: -8px; }
.timeline-item:nth-child(even)::before { left: -8px; }
.timeline-year {
  font-family: var(--font-heading); font-size: 1.3rem;
  color: var(--color-accent); font-weight: 700; margin-bottom: 6px;
}
.timeline-title {
  font-family: var(--font-heading); font-size: 1.05rem;
  color: var(--color-primary); margin-bottom: 6px;
}
.timeline-item p { font-size: 0.9rem; color: var(--color-text-light); line-height: 1.6; }

/* ===== PILLARS ===== */
.pillar-card {
  background: var(--color-surface); border-radius: 12px;
  padding: 32px 28px; border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-accent); transition: all .3s;
}
.pillar-card:hover { box-shadow: 0 8px 30px rgba(201,168,76,0.12); transform: translateY(-4px); }
.pillar-card .pillar-num {
  font-family: var(--font-heading); font-size: 2.2rem;
  color: var(--color-accent-light); font-weight: 700; margin-bottom: 8px; line-height: 1;
}
.pillar-card h3 {
  font-family: var(--font-heading); font-size: 1.15rem;
  color: var(--color-primary); margin-bottom: 12px;
}
.pillar-card p { font-size: 0.9rem; color: var(--color-text-light); line-height: 1.65; }
.pillar-card ul { list-style: none; margin-top: 12px; }
.pillar-card li {
  font-size: 0.9rem; color: var(--color-text-light); padding: 4px 0 4px 18px;
  position: relative;
}
.pillar-card li::before {
  content: ''; position: absolute; left: 0; top: 12px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent);
}

/* ===== STATS ===== */
.stats-row { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; margin: 40px 0; }
.stat-item { text-align: center; min-width: 160px; }
.stat-num {
  font-family: var(--font-heading); font-size: 2.4rem;
  color: var(--color-primary); font-weight: 700; line-height: 1;
}
.stat-label { font-size: 0.88rem; color: var(--color-text-light); margin-top: 6px; }

/* ===== PHOTO GRID (about) ===== */
.photo-grid {
  display: grid; gap: 16px; margin: 32px 0;
  grid-template-columns: repeat(3, 1fr);
}
.photo-grid.two-col { grid-template-columns: repeat(2, 1fr); }
.photo-grid-item {
  border-radius: 10px; overflow: hidden; aspect-ratio: 4/3;
}
.photo-grid-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid-item.tall { grid-row: span 2; aspect-ratio: auto; }

/* ===== ADVISORY / ACADEMIC CARDS ===== */
.advisory-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.advisory-card {
  background: var(--color-surface); border-radius: 12px;
  padding: 28px 24px; border: 1px solid var(--color-border);
  transition: all .3s;
}
.advisory-card:hover { border-color: var(--color-accent); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.advisory-card h3 {
  font-family: var(--font-heading); font-size: 1.05rem;
  color: var(--color-primary); margin-bottom: 4px;
}
.advisory-card .advisory-role {
  font-size: 0.82rem; color: var(--color-accent); font-weight: 600; margin-bottom: 14px;
}
.advisory-card ul { list-style: none; }
.advisory-card li {
  font-size: 0.88rem; color: var(--color-text-light); padding: 3px 0 3px 16px;
  position: relative; line-height: 1.5;
}
.advisory-card li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent-light);
}

/* ===== Institutional Leadership Structure/ ACADEMIC CARDS ===== */

.advisory-grid3 { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); }
.advisory-card3 {
  background: var(--color-surface); border-radius: 10px;
  padding: 15px 10px; border: 10px solid var(--color-border);
  transition: all .3s;
}
.advisory-card3 {
  height: 100%;
}
.advisory-card3:hover { border-color: var(--color-accent); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.advisory-card3 h3 {
  font-family: var(--font-heading); font-size: 1.05rem;
  color: var(--color-primary); margin-bottom: 4px;
}
.advisory-card3 .advisory-role {
  font-size: 0.82rem; color: var(--color-accent); font-weight: 600; margin-bottom: 8px;
}
.advisory-card3 ul { list-style: none; }
.advisory-card3 li {
  font-size: 0.88rem; color: var(--color-text-light); padding: 3px 0 3px 16px;
  position: relative; line-height: 1.5;
}
.advisory-card3 li::before {
  content: ''; position: absolute; left: 0; top: 5px;
  width: 6px; height: 3px; border-radius: 10%; background: var(--color-accent-light);
}

/* ===== AUDIENCE CHIPS 3x3 box===== */
.audience-grid2 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.audience-card {
  background: var(--color-surface); border-radius: 12px;
  padding: 24px 20px; border: 1px solid var(--color-border); text-align: center;
}
.audience-card h4 {
  font-family: var(--font-heading); font-size: 1rem;
  color: var(--color-primary); margin-bottom: 8px;
}
.audience-card p { font-size: 0.88rem; color: var(--color-text-light); }

/* ===== AUDIENCE CHIPS ===== */
.audience-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.audience-card {
  background: var(--color-surface); border-radius: 12px;
  padding: 24px 20px; border: 1px solid var(--color-border); text-align: center;
}
.audience-card h4 {
  font-family: var(--font-heading); font-size: 1rem;
  color: var(--color-primary); margin-bottom: 8px;
}
.audience-card p { font-size: 0.88rem; color: var(--color-text-light); }


/* ===== GOVERNANCE INFO ===== */
.governance-table {
  width: 100%; border-collapse: collapse; margin: 20px 0;
  font-size: 0.92rem;
}
.governance-table td {
  padding: 10px 16px; border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.governance-table td:first-child {
  font-weight: 600; color: var(--color-primary-dark); white-space: nowrap; width: 220px;
}

/* ===== RESPONSIVE (timeline) ===== */
@media (max-width: 768px) {
  .timeline::before { left: 20px; }
  .timeline-item { width: 100%; left: 0 !important; text-align: left !important; padding-left: 52px; padding-right: 0; }
  .timeline-item::before { left: 12px !important; right: auto !important; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .photo-grid-item.tall { grid-row: span 1; }
  .stats-row { gap: 20px; }
  .stat-num { font-size: 1.8rem; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .nav-links {
    display: none; position: fixed; top: var(--nav-height); left: 0; right: 0;
    background: var(--color-surface); flex-direction: column; padding: 30px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-flex !important; }
  .dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 16px; display: none; }
  .nav-dropdown.open .dropdown-menu { display: block; }

  .hero-content h1 { font-size: 2.2rem; }
  .page-hero-content h1 { font-size: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { min-height: 70vh; }
  .hero-content h1 { font-size: 1.8rem; }
  section { padding: 56px 0; }
  .section-header h2 { font-size: 1.7rem; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

/* ===== Advisory Council / ACADEMIC CARDS ===== */
.advisory-grid2 { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
 
.advisory-card {
  background: var(--color-surface); border-radius: 12px;
  padding: 28px 24px; border: 1px solid var(--color-border);
  transition: all .3s;
}
.advisory-card:hover { border-color: var(--color-accent); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.advisory-card h3 {
  font-family: var(--font-heading); font-size: 1.05rem;
  color: var(--color-primary); margin-bottom: 4px;
}
.advisory-card .advisory-role {
  font-size: 0.82rem; color: var(--color-accent); font-weight: 600; margin-bottom: 14px;
}
.advisory-card ul { list-style: none; }
.advisory-card li {
  font-size: 0.88rem; color: var(--color-text-light); padding: 3px 0 3px 16px;
  position: relative; line-height: 1.5;
}
.advisory-card li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent-light);
}

/* ===== CARDS ===== */
.cards-grid2 {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}
.card {
  background: var(--color-surface); border-radius: 12px;
  border: 1px solid var(--color-border); overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.card-img { height: 220px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 24px; }
.card-body h3 { font-family: var(--font-heading); font-size: 1.2rem; color: var(--color-primary); margin-bottom: 10px; }
.card-body p { font-size: 0.92rem; color: var(--color-text-light); line-height: 1.6; }




@media (max-width: 968px) {
  :root {
    --header-top-height: auto;
    --menu-height: 56px;
  }

  .brand-row {
    justify-content: flex-start;
    padding: 14px 24px;
  }

  .nav-brand {
    align-items: flex-start;
    gap: 14px;
  }

  .nav-brand .brand-icon {
  width: 140px;
  height: 140px;
  border-radius: 0;
  overflow: hidden;
  flex-shrink: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

  .brand-title {
    font-size: 1.50rem;
  }

  .brand-tagline {
    font-size: 1.5rem;
    letter-spacing: 0.04em;
  }

  nav {
    justify-content: flex-end;
  }

  .nav-toggle {
    display: inline-flex !important;
    position: static;
    margin-left: auto;
  }

  .nav-links {
    display: flex;
    position: fixed;
    top: calc(var(--header-total-height) - 10px);
    left: 16px;
    right: 16px;
    max-height: calc(100vh - var(--header-total-height) - 24px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    background: rgba(111, 11, 11, 0.98);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.18);
    z-index: 1201;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 0.98rem;
  font-weight: 600;
  color: #fff;
  border-radius: 6px;
  transition: all .2s ease;
  letter-spacing: 0.02em;
  border: none;
  background: #800000;
}

  .dropdown-menu {
    position: static;
    transform: none;
    min-width: 100%;
    margin-top: 8px;
    box-shadow: none;
    border-radius: 12px;
    background: rgba(255,255,255,0.94);
  }

  .nav-dropdown:hover .dropdown-menu {
    display: none;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block;
  }

  .hero-content {
    height: auto;
    min-height: 52vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}


/* ===== 2026 RESPONSIVE / INTERACTIVE ENHANCEMENTS ===== */
body.nav-open {
  overflow: hidden;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(33, 10, 10, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 1180;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.nav-toggle {
  background: linear-gradient(135deg, #7d0d0d, #9d2020);
  border: 0;
  border-radius: 14px;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(125, 13, 13, 0.25);
}

.nav-toggle span {
  width: 22px;
  height: 2.5px;
  margin: 2.5px 0;
  border-radius: 999px;
  background: #fff;
}

.nav-toggle:hover {
  transform: translateY(-1px);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links a:focus-visible,
.nav-toggle:focus-visible,
.back-to-top:focus-visible,
.toc-fab:focus-visible,
.toc-close:focus-visible,
.toc-link:focus-visible {
  outline: 3px solid rgba(201, 168, 76, 0.7);
  outline-offset: 3px;
}

.nav-links a.active {
  background: linear-gradient(135deg, #b30000, #cc5f00);
  box-shadow: 0 10px 20px rgba(128, 0, 0, 0.18);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 1300;
  pointer-events: none;
  background: linear-gradient(90deg, #c9a84c 0 var(--scroll-progress, 0%), transparent 0);
}

.back-to-top,
.toc-fab {
  position: fixed;
  right: 18px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #7d0d0d, #9d2020);
  box-shadow: 0 14px 32px rgba(125, 13, 13, 0.28);
  cursor: pointer;
  z-index: 1165;
}

.back-to-top {
  bottom: 18px;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.toc-fab {
  bottom: 82px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform .25s ease, opacity .25s ease, visibility .25s ease;
}

.toc-fab.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}

.toc-panel {
  position: fixed;
  right: 18px;
  bottom: 84px;
  width: min(360px, calc(100vw - 36px));
  max-height: min(70vh, 560px);
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 252, 246, 0.98);
  border: 1px solid rgba(128, 0, 0, 0.12);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
  transform: translateY(18px);
  opacity: 0;
  visibility: hidden;
  transition: transform .25s ease, opacity .25s ease, visibility .25s ease;
  z-index: 1170;
}

.toc-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.toc-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 12px;
  border-bottom: 1px solid rgba(128, 0, 0, 0.08);
}

.toc-panel-header h3 {
  margin: 0;
  color: #7a0c0c;
  font-family: var(--font-heading);
  font-size: 1.15rem;
}

.toc-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  font-size: 1.8rem;
  line-height: 1;
  color: #7a0c0c;
  background: rgba(128, 0, 0, 0.08);
  cursor: pointer;
}

.toc-links {
  padding: 10px 10px 14px;
  max-height: calc(min(70vh, 560px) - 72px);
  overflow: auto;
}

.toc-link {
  display: block;
  padding: 11px 14px;
  margin: 4px 0;
  border-radius: 14px;
  color: var(--color-text);
  font-weight: 600;
  line-height: 1.4;
}

.toc-link:hover,
.toc-link.active {
  color: #7a0c0c;
  background: rgba(201, 168, 76, 0.18);
}

.toc-link-sub {
  padding-left: 28px;
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.feature-card,
.card,
.content-section,
.content-section2,
.advisory-card {
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.feature-card:hover,
.content-section:hover,
.content-section2:hover,
.advisory-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
}

@media (max-width: 1024px) {
  .brand-title {
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  }

  .brand-tagline {
    font-size: clamp(0.7rem, 1.4vw, 0.95rem);
    letter-spacing: 0.03em;
  }
}

@media (max-width: 968px) {
  .menu-row nav {
    min-height: 64px;
    padding: 6px 24px 14px;
  }

  .nav-links {
    top: calc(100% + 6px);
    left: 18px;
    right: 18px;
    padding: 16px;
    gap: 10px;
    background: linear-gradient(180deg, rgba(114, 12, 12, 0.98), rgba(74, 7, 7, 0.98));
  }

  .nav-links a {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
  }

  .dropdown-menu {
    background: rgba(255,255,255,0.96);
  }

  .toc-fab {
    bottom: 84px;
  }
}

@media (max-width: 768px) {
  .brand-row {
    padding: 14px 18px 8px;
  }

  .nav-brand {
    gap: 12px;
  }

  .nav-brand .brand-icon {
    width: 64px;
    height: 64px;
  }

  .brand-title {
    font-size: 1rem;
    line-height: 1.2;
  }

  .brand-tagline {
    font-size: 0.62rem;
    line-height: 1.35;
  }

  .menu-row nav {
    padding: 2px 18px 12px;
  }

  .back-to-top {
    width: 48px;
    height: 48px;
    bottom: 14px;
    right: 14px;
  }

  .toc-fab {
    right: 14px;
    bottom: 72px;
    padding: 12px 16px;
    font-size: 0.88rem;
  }

  .toc-panel {
    right: 14px;
    bottom: 72px;
    width: min(340px, calc(100vw - 28px));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Keep interactive controls above watermark layer */
header { z-index: 10010; }
.nav-overlay { z-index: 10005; }
.scroll-progress { z-index: 10020; }
.back-to-top, .toc-fab { z-index: 10025; }
.toc-panel { z-index: 10030; }

/* ===== 2026-03 layout alignment refinement ===== */
:root {
  --content-width: 1130px;
  --content-padding: clamp(16px, 2.6vw, 24px);
}

.container,
.brand-row.container,
.menu-row nav,
.hero,
.page-hero,
footer .container {
  max-width: var(--content-width);
}

.container {
  padding-left: var(--content-padding);
  padding-right: var(--content-padding);
}

.header-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-row {
  width: 100%;
  justify-content: center;
  padding-top: 6px;
  padding-bottom: 8px;
}

.nav-brand {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: clamp(84px, 8vw, 104px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(px, 2vw, 5px);
}

.nav-brand .brand-icon {
  width: clamp(84px, 8vw, 120px);
  height: clamp(84px, 8vw, 120px);
  margin-right: 0;
  align-self: center;
}

.brand-text {
  min-width: 0;
  width: 110%;
  align-items: center;
  text-align: left;
}

.brand-title {
  width: 100%;
  font-size: clamp(1rem, 2.4vw, 4rem);
  line-height: 1.;
}

.brand-tagline {
  width: 100%;
  font-size: clamp(0.82rem, 1.46vw, 3rem);
  letter-spacing: 0.10em;
  line-height: 1.45;
   text-align: left;
}

.menu-row {
  width: 100%;
}

.menu-row nav {
  width: 100%;
  margin: 0 auto;
  padding-left: var(--content-padding);
  padding-right: var(--content-padding);
}

.nav-links {
  width: 100%;
  justify-content: center;
  gap: 8px;
}

section,
footer,
.hero,
.page-hero {
  width: 100%;
}

.hero,
.page-hero {
  border-radius: 0;
}

section > .container,
footer > .container {
  width: 100%;
}

.content-section,
.content-section2,
.section-header,
.team-grid,
.cards-grid,
.cards-grid2,
.gallery-grid,
.timeline,
.contact-grid,
.footer-grid {
  width: 100%;
}

@media (max-width: 1024px) {
  .nav-brand {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .brand-title {
    font-size: clamp(1.2rem, 2.8vw, 1.8rem);
  }

  .brand-tagline {
    font-size: clamp(0.72rem, 1.55vw, 0.92rem);
    letter-spacing: 0.05em;
  }
}

@media (max-width: 768px) {
  .brand-row {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .nav-brand {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
  }

  .nav-brand .brand-icon {
    width: 100px;
    height: 100px;
    margin-top: 2px;
  }

  .brand-text {
    align-items: flex-start;
    text-align: left;
    gap: 4px;
  }

  .brand-title {
    font-size: clamp(0.96rem, 4vw, 1.18rem);
    line-height: 1.2;
  }

  .brand-tagline {
    font-size: clamp(0.58rem, 2.25vw, 0.74rem);
    line-height: 1.35;
    letter-spacing: 0.02em;
    text-transform: none;
  }

  .menu-row nav {
    min-height: 58px;
    padding-top: 4px;
    padding-bottom: 10px;
  }

  .nav-toggle {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 480px) {
  :root {
    --content-padding: 14px;
  }

  .nav-brand {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 9px;
  }

  .nav-brand .brand-icon {
    width: 54px;
    height: 54px;
  }

  .brand-title {
    font-size: 0.9rem;
  }

  .brand-tagline {
    font-size: 0.54rem;
  }

  .nav-links {
    left: 14px;
    right: 14px;
  }
}


/* ===== SINGLE-LINE RESPONSIVE MENU ===== */
.menu-row .container {
  max-width: var(--max-width);
}

@media (max-width: 1200px) {
  .nav-links a {
    padding: 10px 16px;
    font-size: 0.95rem;
  }
}

@media (max-width: 992px) {
  :root {
    --header-top-height: 104px;
    --menu-height: 58px;
  }

  .brand-row {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .nav-brand .brand-icon {
    width: 74px;
    height: 74px;
  }

  .brand-title {
    font-size: clamp(1.1rem, 2.2vw, 1.9rem);
  }

  .brand-tagline {
    font-size: clamp(0.75rem, 1.5vw, 1rem);
    letter-spacing: 0.05em;
  }

  .nav-links a {
    min-height: 40px;
    padding: 9px 14px;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .nav-brand {
    gap: 12px;
    align-items: center;
  }

  .nav-brand .brand-icon {
    width: 60px;
    height: 60px;
  }

  .brand-title {
    font-size: clamp(1rem, 4vw, 1.35rem);
    line-height: 1.2;
  }

  .brand-tagline {
    font-size: 0.68rem;
    line-height: 1.35;
    letter-spacing: 0.03em;
  }

  nav {
    justify-content: flex-start;
  }

  .nav-links {
    gap: 5px;
    padding: 8px 0 10px;
  }

  .nav-links a {
    padding: 8px 12px;
    font-size: 0.86rem;
    border-radius: 999px;
  }
}

@media (max-width: 520px) {
  .brand-title {
    font-size: 0.95rem;
  }

  .brand-tagline {
    font-size: 0.6rem;
  }

  .nav-links a {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
}


/* ===== 2026-03 hero frame + clean single-line menu ===== */
.nav-toggle {
  display: none !important;
}

.menu-row nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.nav-links li {
  flex: 0 0 auto;
}

.hero-home {
  min-height: auto;
  padding: 24px var(--content-padding) 12px;
  background: transparent !important;
}

.hero-home::before {
  display: none;
}

.hero-media-frame {
  position: relative;
  width: min(100%, 1100px);
  aspect-ratio: 3 / 2;
  min-height: 320px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
  background: #1f1a17;
}

.hero-media {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31,20,13,0.12) 0%, rgba(31,20,13,0.28) 45%, rgba(31,20,13,0.52) 100%);
}

.hero-home .hero-content {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  width: 100%;
  height: auto;
  max-width: 100%;
  padding: clamp(20px, 3.2vw, 34px);
  text-align: center;
}

.hero-home .hero-content h1 {
  font-size: clamp(1.2rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .hero-home {
    padding-top: 18px;
  }

  .hero-media-frame {
    width: 100%;
    min-height: 240px;
    border-radius: 14px;
  }

  .hero-home .hero-content {
    padding: 18px 16px 20px;
  }

  .hero-home .hero-content h1 {
    font-size: clamp(1rem, 5vw, 1.5rem);
  }
}

@media (max-width: 480px) {
  .hero-media-frame {
    min-height: 210px;
  }

  .hero-home .hero-content h1 {
    margin-bottom: 12px;
  }

  .hero-home .btn {
    padding: 12px 22px;
    font-size: 0.92rem;
  }
}


@media (max-width: 968px) {
  .nav-toggle {
    position: relative;
    z-index: 1202;
  }

  .nav-overlay {
    z-index: 1190;
  }
}

/* ===== FINAL MOBILE FIXES ===== */
@media (max-width: 968px) {
  html, body {
    overflow-x: hidden;
  }

  :root {
    --menu-panel-top: calc(var(--header-top-height, 84px) + var(--menu-height, 58px) - 4px);
  }

  header.header-hidden {
    transform: translateY(calc(-1 * var(--header-total-height)));
  }

  .menu-row nav {
    justify-content: flex-end;
    min-height: 56px;
    padding-top: 6px;
    padding-bottom: 10px;
  }

  .nav-toggle {
    display: inline-flex !important;
    position: relative;
    right: auto;
    margin-left: auto;
    z-index: 10031;
    flex-shrink: 0;
  }

  .nav-links,
  .menu-row .nav-links,
  nav .nav-links {
    display: none !important;
    position: fixed;
    top: var(--menu-panel-top);
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100vh - var(--menu-panel-top) - 16px);
    overflow-y: auto;
    overflow-x: hidden;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    padding: 14px;
    margin: 0;
    list-style: none;
    white-space: normal;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(114, 12, 12, 0.98), rgba(74, 7, 7, 0.98));
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 10030;
  }

  .nav-links.open,
  .menu-row .nav-links.open,
  nav .nav-links.open {
    display: flex !important;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    width: 100%;
    min-height: 46px;
    justify-content: flex-start;
    white-space: normal;
    text-align: left;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
  }

  .nav-dropdown > a::after {
    margin-left: auto;
  }

  .dropdown-menu {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    display: none;
    min-width: 100%;
    margin-top: 6px;
    padding: 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: none;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    color: var(--color-text);
    background: transparent;
    min-height: 40px;
    padding: 10px 12px;
  }

  .nav-overlay {
    z-index: 10020;
  }

  .hero,
  .page-hero,
  .hero-home,
  .hero-content,
  .page-hero-content,
  section,
  .content-section,
  .content-section2 {
    max-width: 100%;
  }

  .cards-grid2,
  .cards-grid,
  .team-grid,
  .contact-grid,
  .footer-grid,
  .advisory-grid2,
  .audience-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .governance-table,
  .governance-table tbody,
  .governance-table tr,
  .governance-table td {
    display: block;
    width: 100%;
  }

  .governance-table td:first-child {
    width: 100%;
    white-space: normal;
    padding-bottom: 4px;
    border-bottom: 0;
  }
}

@media (max-width: 768px) {
  :root {
    --header-top-height: auto;
    --menu-height: 56px;
    --header-total-height: calc(var(--header-top-height) + var(--menu-height));
  }

  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand-row {
    padding-top: 10px;
    padding-bottom: 8px;
  }

  .nav-brand {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
  }

  .nav-brand .brand-icon {
    width: 56px;
    height: 56px;
  }

  .brand-text {
    width: 100%;
    gap: 2px;
  }

  .brand-title {
    font-size: clamp(0.95rem, 4vw, 1.12rem);
    line-height: 1.2;
  }

  .brand-tagline {
    font-size: clamp(0.56rem, 2.2vw, 0.7rem);
    line-height: 1.3;
    letter-spacing: 0.02em;
  }

  .hero-home {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-media-frame {
    min-height: 220px;
    border-radius: 14px;
  }

  .hero-home .hero-content h1,
  .hero-content h1,
  .page-hero-content h1 {
    font-size: clamp(1.1rem, 5.5vw, 1.55rem);
    line-height: 1.25;
  }

  .section-header h2,
  .content-section h2,
  .content-section2 h2 {
    font-size: clamp(1.3rem, 6vw, 1rem);
    line-height: 1.25;
  }

  .card,
  .feature-card,
  .content-section,
  .content-section2,
  .advisory-card {
    border-radius: 14px;
  }
}

@media (max-width: 480px) {
  .nav-links,
  .menu-row .nav-links,
  nav .nav-links {
    left: 10px;
    right: 10px;
    padding: 12px;
  }

  .nav-toggle {
    width: 46px;
    height: 46px;
  }

  .hero-media-frame {
    min-height: 200px;
  }

  .back-to-top {
    width: 46px;
    height: 46px;
  }

  .toc-fab {
    padding: 10px 14px;
    font-size: 0.82rem;
  }
}


/* ===== 2026-04 homepage polish overrides ===== */
:root {
  --content-padding: 24px;
  --section-gap: clamp(42px, 6vw, 76px);
}

body {
  background:
    radial-gradient(circle at top, rgba(201,168,76,0.09), transparent 30%),
    var(--color-bg);
}

section {
  padding: clamp(22px, 3vw, 34px) 0;
}

section + section {
  margin-top: clamp(8px, 1.5vw, 18px);
}

.header-shell {
  background: rgba(255, 251, 245, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(128, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(75, 40, 20, 0.10);
}

.brand-row {
  justify-content: center;
  padding-top: 16px;
  padding-bottom: 14px;
}

.nav-brand {
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.nav-brand:hover .brand-icon {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 28px rgba(107, 16, 16, 0.16);
}

.nav-brand:hover .brand-title {
  color: #962020;
}

.nav-brand .brand-icon {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(240,231,220,0.95));
  box-shadow: 0 8px 24px rgba(107, 16, 16, 0.10);
  transition: transform .35s ease, box-shadow .35s ease;
}

.nav-brand .brand-icon img {
  object-fit: contain;
  width: 84%;
  height: 84%;
}

.brand-text {
  align-items: center;
  text-align: center;
  gap: 4px;
}

.brand-title {
  font-size: clamp(1.35rem, 2.4vw, 2.55rem);
  letter-spacing: 0.01em;
  transition: color .35s ease;
}

.brand-tagline {
  font-size: clamp(0.72rem, 1.15vw, 0.96rem);
  max-width: 900px;
  letter-spacing: 0.14em;
  color: #6f4a2b;
}

.menu-row {
  background: linear-gradient(180deg, rgba(128, 0, 0, 0.97), rgba(104, 11, 11, 0.98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.menu-row nav {
  min-height: 58px;
}

.nav-links {
  justify-content: center;
  gap: 8px;
  padding: 10px 0;
}

.nav-links a {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  box-shadow: inset 0 0 0 0 rgba(255,255,255,0.10);
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.28);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.16);
}

.hero-home {
  padding-top: 28px;
}

.hero-media-frame {
  border: 1px solid rgba(201,168,76,0.32);
  box-shadow: 0 20px 48px rgba(36, 21, 9, 0.20);
}

.hero-home .hero-content h1 {
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.content-section,
.content-section2,
.feature-card,
.card,
.contact-info-card,
.scripture-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(252,248,242,0.96));
  border: 1px solid rgba(201,168,76,0.18);
  box-shadow: 0 12px 32px rgba(52, 30, 12, 0.06);
}

.content-section,
.content-section2 {
  border-radius: 18px;
  padding: clamp(20px, 3vw, 30px);
}

.content-section:hover,
.content-section2:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(52, 30, 12, 0.10);
  transition: transform .35s ease, box-shadow .35s ease;
}

.section-header {
  margin-bottom: 28px;
}

.section-header .accent-line {
  width: 120px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(201,168,76,0.30);
}

.explore-section {
  padding-top: 26px;
  padding-bottom: 44px;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  align-items: center;
}

.feature-card--enhanced {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  border-radius: 20px;
  padding: 24px 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.feature-card--enhanced::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0;
  transition: opacity .35s ease;
}

.feature-card--enhanced:hover {
  transform: translateY(-8px);
  border-color: rgba(201,168,76,0.55);
  box-shadow: 0 22px 42px rgba(66, 37, 16, 0.16);
}

.feature-card--enhanced:hover::before {
  opacity: 1;
}

.feature-media-wrap {
  width: 200px;
  height: 200px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 0%;
  padding: 8px;
  

  transition: transform .35s ease, box-shadow .35s ease;
}

.feature-card--enhanced:hover .feature-media-wrap {
  transform: scale(1.04) rotate(1deg);
  box-shadow: inset 0 0 0 1px rgba(201,168,76,0.38), 0 16px 32px rgba(107, 16, 16, 0.12);
}

.feature-img {
 width: 160px;
  height: 160px;
  object-fit: contain;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.feature-card--enhanced h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
}

.feature-card--enhanced p {
  font-size: 0.97rem;
  line-height: 1.72;
}

.btn,
.card,
.gallery-item,
.footer-col a,
.feature-card,
.nav-brand .brand-icon,
.nav-links a {
  transition: all .35s ease;
}

.footer-col a:hover {
  transform: translateX(4px);
}

@media (max-width: 1200px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .brand-row {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav-brand {
    gap: 12px;
    align-items: center;
  }

  .nav-brand .brand-icon {
    width: 68px;
    height: 68px;
  }

  .brand-text {
    align-items: flex-start;
    text-align: left;
  }

  .brand-tagline {
    letter-spacing: 0.06em;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .content-section,
  .content-section2 {
    border-radius: 14px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card--enhanced {
    padding: 22px 18px;
  }

  .feature-media-wrap {
    width: 154px;
    height: 154px;
  }

  .feature-img {
    width: 132px;
    height: 132px;
  }
}

.feature-card::before,
.feature-card::after {
  display: none !important;
  content: none !important;
}


/* ===== Popup window + breadcrumb sizing ===== */

.page-breadcrumb-section {
  padding-top: 14px;
  padding-bottom: 8px;
  min-height: 72px;
  display: flex;
  align-items: flex-end;
}

.page-breadcrumb-section .container {
  width: 100%;
}

.page-breadcrumb-section .breadcrumb {
  padding: 10px 0 6px;
}

.popup-card-trigger {
  cursor: pointer;
}

.popup-card-trigger:focus-visible {
  outline: 3px solid rgba(201, 168, 76, 0.7);
  outline-offset: 4px;
}

.popup-read-more {
  margin-top: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.03em;
}

.site-popup {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 12000;
}

.site-popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 18, 10, 0.6);
  backdrop-filter: blur(3px);
}

.site-popup__dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: min(80vh, 720px);
  overflow: auto;
  background: linear-gradient(180deg, #fffdf8 0%, #fff7ed 100%);
  border-radius: 24px;
  border: 1px solid rgba(128, 0, 0, 0.12);
  box-shadow: 0 24px 60px rgba(50, 22, 10, 0.28);
  padding: 32px 28px 28px;
}

.site-popup__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(128, 0, 0, 0.08);
  color: var(--color-primary);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.site-popup__close:hover {
  background: rgba(128, 0, 0, 0.14);
  transform: scale(1.04);
}

.site-popup__content h2 {
  margin: 0 40px 18px 0;
  color: var(--color-primary);
  font-size: clamp(1.65rem, 3vw, 2.1rem);
}

.site-popup__body {
  color: var(--color-text);
  line-height: 1.8;
  font-size: 1rem;
}

.site-popup__body p + p {
  margin-top: 16px;
}

body.popup-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .page-breadcrumb-section {
    min-height: 60px;
  }

  .site-popup {
    padding: 16px;
  }

  .site-popup__dialog {
    padding: 26px 20px 22px;
    border-radius: 18px;
    max-height: 84vh;
  }

  .site-popup__content h2 {
    margin-right: 28px;
    font-size: 1.45rem;
  }
}

/* Added spacing fix */
header{margin-bottom:0!important;padding-bottom:5px;}
section{margin-top:0!important;padding-top:5px;}
section .container{padding-top:0;margin-top:0;}
.breadcrumb{margin-top:5px;margin-bottom:5px;}


/* Tantra registration popup */
.tantra-register-wrap {
  display: block;
}

.tantra-register-btn {
  min-width: 180px;
}

.registration-popup {
  max-width: 700px;
  width: 92%;
}

.registration-form {
  margin-top: 15px;
}

.registration-note {
  margin: 10px 0 18px;
  line-height: 1.7;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}

.form-row.single {
  display: block;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
}

.form-actions {
  margin-top: 20px;
}

.registration-status {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.6;
}

.registration-status .success {
  color: #1b6b2f;
}

.registration-status .error {
  color: #b42318;
}

@media (max-width: 767px) {
  .form-row {
    display: block;
  }

  .form-group {
    margin-bottom: 14px;
  }
}


/* Tantra registration trigger section */
.tantra-registration-trigger-wrap {
  margin: 18px 0 24px;
}

.tantra-registration-trigger {
  width: 100%;
  display: block;
  border: none;
  border-radius: 4px;
  padding: 22px 30px;
  text-align: left;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1px;
  cursor: pointer;
  background: #c3a244;
  color: #1f2430;
  box-shadow: none;
}

.tantra-registration-trigger strong {
  font-weight: 800;
}

.tantra-registration-trigger:hover,
.tantra-registration-trigger:focus {
  opacity: 0.95;
  outline: none;
}

.registration-popup {
  max-width: 700px;
  width: 92%;
}

.registration-form {
  margin-top: 15px;
}

.registration-note {
  margin: 10px 0 18px;
  line-height: 1.7;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}

.form-row.single {
  display: block;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
}

.form-actions {
  margin-top: 20px;
}

.registration-status {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.6;
}

.registration-status .success {
  color: #1b6b2f;
}

.registration-status .error {
  color: #b42318;
}

@media (max-width: 767px) {
  .tantra-registration-trigger {
    padding: 18px 18px;
    font-size: 16px;
  }

  .form-row {
    display: block;
  }

  .form-group {
    margin-bottom: 14px;
  }
}


/* Shared popup window styling */
.custom-popup-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99999;
  overflow-y: auto;
}

.custom-popup {
  position: relative;
  width: 100%;
  max-width: 700px;
  background: #ffffff;
  border-radius: 10px;
  padding: 28px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.custom-popup-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  color: #333333;
}

body.popup-open {
  overflow: hidden;
}

/* GLOBAL REGISTER TEXT STYLE */
.tantra-registration-trigger-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0;
  text-align: center;
}

.tantra-registration-trigger {
  width: 400px;
  max-width: 90%;
  background: #c3a244;
  border: none;
  border-radius: 4px;
  padding: 18px;
  font-size: 18px;
  font-weight: 400;
  color: #1f2430;
  cursor: pointer;
  text-align: center;
}

.tantra-registration-trigger strong {
  font-weight: 700;
}

.tantra-registration-trigger:hover {
  opacity: 0.95;
  text-decoration: none;
}



/* ===== Performance + header alignment fixes ===== */
.nav-brand {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: clamp(84px, 9vw, 116px) minmax(0, 1fr);
  align-items: center;
  column-gap: 24px;
}

.nav-brand .brand-icon {
  width: clamp(84px, 9vw, 116px);
  height: clamp(84px, 9vw, 116px);
  margin-right: 0;
}

.nav-brand .brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  min-width: 0;
  width: 100%;
  align-items: stretch;
}

.brand-title,
.brand-tagline {
  width: 100%;
  max-width: none;
}

.brand-title {
  text-align: left;
}

.brand-tagline {
  text-align: center;
}

section:not(.hero):not(.page-hero) {
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

img[loading="lazy"] {
  content-visibility: auto;
}

@media (max-width: 1024px) {
  .nav-brand {
    grid-template-columns: 88px minmax(0, 1fr);
    column-gap: 18px;
  }

  .nav-brand .brand-icon {
    width: 88px;
    height: 88px;
  }
}

@media (max-width: 768px) {
  .nav-brand {
    grid-template-columns: 72px minmax(0, 1fr);
    column-gap: 14px;
  }

  .nav-brand .brand-icon {
    width: 72px;
    height: 72px;
  }

  .brand-title {
    font-size: clamp(1.45rem, 5vw, 2.15rem);
  }

  .brand-tagline {
    font-size: clamp(0.72rem, 1.9vw, 0.98rem);
    letter-spacing: 0.07em;
  }
}

@media (max-width: 520px) {
  .nav-brand {
    grid-template-columns: 60px minmax(0, 1fr);
    column-gap: 12px;
  }

  .nav-brand .brand-icon {
    width: 60px;
    height: 60px;
  }

  .brand-tagline {
    text-align: left;
  }
}



/* Force gallery lightbox above all header/menu layers */
.lightbox,
#lightbox {
  z-index: 2147483647 !important;
}

.lightbox.active,
#lightbox.active {
  display: flex !important;
}

.lightbox-close,
.lightbox-nav {
  z-index: 2147483647 !important;
}

body.lightbox-open header,
body.lightbox-open .header-shell,
body.lightbox-open .menu-row,
body.lightbox-open .nav-links,
body.lightbox-open .nav-overlay,
body.lightbox-open .scroll-progress,
body.lightbox-open .back-to-top,
body.lightbox-open .toc-fab,
body.lightbox-open .toc-panel {
  visibility: hidden !important;
  pointer-events: none !important;
}

body.lightbox-open {
  overflow: hidden !important;
}

/* ===== 2026-04 adaptive layout hotfix ===== */
html {
  -webkit-text-size-adjust: 100%;
}

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

img,
picture,
video,
canvas,
svg,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

body {
  overflow-x: clip;
}

.container,
.content-section,
.content-section2,
.card,
.feature-card,
.page-hero-content,
.section-header,
.footer-grid,
.footer-bottom {
  max-width: 100%;
}

.nav-links {
  max-width: 100%;
}

@media (min-width: 969px) {
  .menu-row nav {
    justify-content: center;
  }

  .nav-links,
  .menu-row .nav-links,
  nav .nav-links {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center;
    row-gap: 8px;
    overflow: visible;
  }
}

@media (max-width: 968px) {
  .brand-row .container,
  .menu-row .container,
  .container {
    width: min(100%, var(--max-width));
  }

  .nav-brand {
    width: 100%;
    grid-template-columns: minmax(48px, 72px) minmax(0, 1fr);
  }

  .brand-text,
  .brand-title,
  .brand-tagline {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .menu-row nav {
    width: 100%;
  }

  .nav-links a {
    font-size: 0.95rem;
    line-height: 1.35;
  }

  [style*="float: left"],
  [style*="float:left"],
  [style*="float: right"],
  [style*="float:right"] {
    float: none !important;
    display: block !important;
    width: min(100%, 320px) !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto 16px !important;
  }

  table {
    display: block;
    width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 640px) {
  .hero-media-frame,
  .hero-media,
  .page-hero-image {
    height: auto;
    min-height: 180px;
  }

  .section-header,
  .content-section,
  .content-section2,
  .card,
  .feature-card {
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}



/* ===== 2026-04 mobile nav interaction hotfix ===== */
@media (max-width: 968px) {
  .nav-overlay {
    pointer-events: none !important;
  }

  .nav-overlay.active {
    pointer-events: auto !important;
  }

  .nav-links,
  .menu-row .nav-links,
  nav .nav-links {
    z-index: 10050 !important;
    pointer-events: auto !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  .nav-links li,
  .nav-links a,
  .menu-row .nav-links li,
  .menu-row .nav-links a,
  nav .nav-links li,
  nav .nav-links a {
    pointer-events: auto !important;
  }

  .nav-links a {
    position: relative;
    z-index: 1;
  }

  .nav-toggle {
    z-index: 10060 !important;
  }
}




/* ===== 2026-04 rebuilt mobile menu ===== */
.nav-toggle {
  display: none;
}

@media (max-width: 968px) {
  body.nav-open {
    overflow: hidden !important;
  }

  .menu-row nav,
  nav {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 12px;
    background: #7d0d0d;
    cursor: pointer;
    margin-left: auto;
    position: relative;
    z-index: 2002;
  }

  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 3px 0;
    background: #fff;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-links,
  .menu-row .nav-links,
  nav .nav-links {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 12px !important;
    list-style: none !important;
    flex-direction: column !important;
    gap: 8px !important;
    background: #6f0b0b !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 40px rgba(0,0,0,0.22) !important;
    z-index: 2001 !important;
    max-height: min(70vh, 540px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .nav-links.open,
  .menu-row .nav-links.open,
  nav .nav-links.open {
    display: flex !important;
  }

  .nav-links li,
  .menu-row .nav-links li,
  nav .nav-links li {
    width: 100% !important;
  }

  .nav-links a,
  .menu-row .nav-links a,
  nav .nav-links a {
    display: block !important;
    width: 100% !important;
    padding: 12px 14px !important;
    min-height: 44px !important;
    line-height: 1.35 !important;
    text-align: left !important;
    color: #fff !important;
    background: rgba(255,255,255,0.08) !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 1 !important;
  }

  .nav-links a.active {
    background: #b30000 !important;
  }

  .dropdown-menu {
    display: none !important;
    position: static !important;
    margin-top: 6px !important;
    padding: 6px 0 0 10px !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    transform: none !important;
    min-width: 0 !important;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block !important;
  }

  .dropdown-menu a {
    background: rgba(255,255,255,0.12) !important;
  }

  .nav-overlay {
    display: none !important;
  }
}




/* ===== 2026-04 content width harmonization ===== */
:root {
  --site-edge-gap: clamp(12px, 3vw, 24px);
  --page-content-max: min(100% - (var(--site-edge-gap) * 2), 1180px);
}

html, body {
  overflow-x: hidden;
}

.container,
.brand-row .container,
.menu-row .container,
.hero-content,
.page-hero-content,
.content-grid,
.footer-grid,
.footer-bottom,
.section-header,
section > .container,
main > .container {
  width: min(100% - (var(--site-edge-gap) * 2), var(--max-width, 1180px));
  max-width: var(--max-width, 1180px);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

section,
.content-section,
.content-section2,
.page-section,
.page-content,
main,
article {
  max-width: 100%;
  box-sizing: border-box;
}

img,
video,
iframe,
embed,
object,
canvas,
svg {
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
}

table {
  max-width: 100%;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

pre,
code,
blockquote {
  max-width: 100%;
  overflow-x: auto;
  box-sizing: border-box;
}

[style*="width:"],
[style*="max-width:"],
[style*="min-width:"],
[style*="margin-left:"],
[style*="margin-right:"] {
  max-width: 100%;
  box-sizing: border-box;
}

[style*="float: left"],
[style*="float:left"],
[style*="float: right"],
[style*="float:right"] {
  max-width: min(100%, 420px);
}

@media (max-width: 968px) {
  :root {
    --site-edge-gap: 14px;
  }

  .container,
  .brand-row .container,
  .menu-row .container,
  .hero-content,
  .page-hero-content,
  .content-grid,
  .footer-grid,
  .footer-bottom,
  .section-header,
  section > .container,
  main > .container {
    width: calc(100% - (var(--site-edge-gap) * 2)) !important;
    max-width: calc(100% - (var(--site-edge-gap) * 2)) !important;
  }

  section,
  .content-section,
  .content-section2,
  .page-section,
  .page-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .hero,
  .page-hero,
  .hero-home {
    max-width: 100%;
    overflow: clip;
  }

  .hero-content,
  .page-hero-content {
    padding-left: var(--site-edge-gap) !important;
    padding-right: var(--site-edge-gap) !important;
  }

  .grid,
  .content-grid,
  .cards-grid,
  .about-grid,
  .footer-grid,
  .two-col,
  .two-column,
  .three-col,
  .three-column {
    grid-template-columns: 1fr !important;
  }

  [style*="float: left"],
  [style*="float:left"],
  [style*="float: right"],
  [style*="float:right"] {
    float: none !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 16px !important;
    width: min(100%, 420px) !important;
    max-width: 100% !important;
  }

  [style*="width: 1000px"],
  [style*="width:1000px"],
  [style*="width: 900px"],
  [style*="width:900px"],
  [style*="width: 800px"],
  [style*="width:800px"],
  [style*="width: 700px"],
  [style*="width:700px"],
  [style*="width: 600px"],
  [style*="width:600px"],
  [style*="width: 500px"],
  [style*="width:500px"] {
    width: 100% !important;
  }

  .lightbox,
  #lightbox,
  .gallery-grid,
  .timeline,
  .timeline-item {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  :root {
    --site-edge-gap: 12px;
  }

  .container,
  .brand-row .container,
  .menu-row .container,
  .hero-content,
  .page-hero-content,
  .content-grid,
  .footer-grid,
  .footer-bottom,
  .section-header,
  section > .container,
  main > .container {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
  }

  h1, .page-hero-content h1, .hero-content h1 {
    overflow-wrap: anywhere;
  }

  p, li, td, th, figcaption, .brand-title, .brand-tagline {
    overflow-wrap: anywhere;
  }
}




/* ===== 2026-04 desktop and laptop frame alignment ===== */
:root {
  --site-frame-max: 1180px;
  --site-frame-gap: clamp(16px, 2.2vw, 32px);
}

body {
  overflow-x: hidden;
}

header .header-shell,
.brand-row,
.menu-row,
main,
section,
.content-section,
.content-section2,
.page-section,
.page-content,
footer {
  width: 100%;
  box-sizing: border-box;
}

.container,
.brand-row .container,
.menu-row .container,
.hero-content,
.page-hero-content,
.section-header,
.content-grid,
.footer-grid,
.footer-bottom,
main > .container,
section > .container {
  width: min(calc(100% - (var(--site-frame-gap) * 2)), var(--site-frame-max)) !important;
  max-width: var(--site-frame-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

.hero,
.page-hero,
.hero-home,
.content-section,
.content-section2,
.page-section,
.page-content {
  max-width: 100%;
  overflow-x: clip;
}

img,
video,
iframe,
embed,
object,
canvas,
svg,
table,
pre,
code {
  max-width: 100%;
  box-sizing: border-box;
}

table,
pre,
code {
  overflow-x: auto;
}

@media (min-width: 969px) {
  .container,
  .brand-row .container,
  .menu-row .container,
  .hero-content,
  .page-hero-content,
  .section-header,
  .content-grid,
  .footer-grid,
  .footer-bottom,
  main > .container,
  section > .container {
    width: min(calc(100% - 48px), var(--site-frame-max)) !important;
  }

  .grid,
  .content-grid,
  .cards-grid,
  .about-grid,
  .footer-grid,
  .two-col,
  .two-column,
  .three-col,
  .three-column {
    width: 100%;
    box-sizing: border-box;
  }

  [style*="width: 1200px"],
  [style*="width:1200px"],
  [style*="width: 1100px"],
  [style*="width:1100px"],
  [style*="width: 1000px"],
  [style*="width:1000px"],
  [style*="width: 900px"],
  [style*="width:900px"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  [style*="float: left"],
  [style*="float:left"],
  [style*="float: right"],
  [style*="float:right"] {
    max-width: min(42%, 460px);
    box-sizing: border-box;
  }
}

@media (min-width: 969px) and (max-width: 1366px) {
  :root {
    --site-frame-max: 1140px;
    --site-frame-gap: clamp(18px, 2.4vw, 28px);
  }
}

@media (min-width: 1367px) {
  :root {
    --site-frame-max: 1200px;
    --site-frame-gap: clamp(22px, 2.8vw, 36px);
  }
}

