/* ==========================================================================
   MALAMAH LEGACY - RONALD ADRIAN DEDICATED THEME (AUTHENTICATED COLORS)
   Palette:
     Primary: #bdd9bf (Sage / Mint Moss)
     Brand Secondary: #2e4052 (Ocean Slate / Deep Steel)
     Hero Soft Sage: #eff6ef (--color1_25)
     Deep Ocean Slate: #0c1015 (--color2_175)
     Slate Hover: #23303e (--color2_125)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600;1,700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* Typography & Base */
body, #website {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  color: #1E293B;
  line-height: 1.75;
}

#website p {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  line-height: 1.75;
}

h1, h2, h3, h4, .mh-serif {
  font-family: 'Playfair Display', Georgia, serif !important;
  color: #0c1015 !important;
  letter-spacing: -0.01em;
}

/* Global Mobile Overflow Lock */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
}

#website {
  overflow-x: clip !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* ==========================================================================
   HEADER & LOGO PERFECT MOBILE RESPONSIVENESS (NO OVERFLOW)
   ========================================================================== */
#header {
  max-width: 100vw !important;
  width: 100% !important;
  overflow: visible !important;
  background: var(--color1_25, #eff6ef) !important;
}

#headerMenu {
  background: var(--color1_25, #eff6ef) !important;
  border-bottom: 1.5px solid rgba(46, 64, 82, 0.15) !important;
  padding: 12px 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

#headerMenu .container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  max-width: 1200px !important;
  width: 100% !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
}

.logoHolder {
  float: none !important;
  height: auto !important;
  line-height: normal !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  white-space: normal !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

.logoHolder a.logo {
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  max-width: 100% !important;
}

.logoContents {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  max-width: 100% !important;
  white-space: normal !important;
}

#websiteLogo {
  max-height: 52px !important;
  height: 52px !important;
  width: auto !important;
  min-height: unset !important;
  object-fit: contain !important;
  display: block !important;
  flex-shrink: 0 !important;
}

#websiteLogoTitle {
  font-family: 'Cinzel', Georgia, serif !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #2e4052 !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: unset !important;
  line-height: 1.25 !important;
  word-break: break-word !important;
  white-space: normal !important;
}

.menuHolder {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.menuHolder li a {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  color: #2e4052 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 8px 14px !important;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
}

.menuHolder li a:hover,
.menuHolder li.active a {
  color: #172029 !important;
  background: rgba(189, 217, 191, 0.35) !important;
}

.menuHolder li.accent1 a {
  background: #2e4052 !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  border-radius: 20px !important;
  padding: 8px 18px !important;
  box-shadow: 0 2px 8px rgba(46, 64, 82, 0.25) !important;
}

.menuHolder li.accent1 a:hover {
  background: #23303e !important;
  color: #FFFFFF !important;
}

/* ==========================================================================
   HERO SECTION & FLUID CLAMP TYPOGRAPHY
   ========================================================================== */
.mh-hero-section {
  background: linear-gradient(135deg, #fbfdfb 0%, #eff6ef 100%) !important;
  padding: 60px 0 50px !important;
  position: relative;
  overflow: hidden;
  border-bottom: 1.5px solid rgba(46, 64, 82, 0.12);
}

.mh-hero-title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: clamp(2rem, 4.2vw, 3.1rem) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  color: #0c1015 !important;
  margin-bottom: 18px !important;
}

.mh-hero-title span.mh-sage {
  color: #2e4052 !important;
  font-style: italic;
}

.mh-hero-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem) !important;
  color: #1E293B !important;
  line-height: 1.8 !important;
  margin-bottom: 24px !important;
  font-weight: 400;
}

.mh-heritage-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1.5px solid #2e4052;
  color: #2e4052;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(46, 64, 82, 0.08);
}

.mh-portrait-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(46, 64, 82, 0.2);
  border: 4px solid #FFFFFF;
  background: #FFFFFF;
}

.mh-portrait-wrap img {
  width: 100% !important;
  height: auto !important;
  display: block;
  transition: transform 0.4s ease;
}

.mh-portrait-wrap:hover img {
  transform: scale(1.02);
}

/* Call to Action Buttons */
.btn-mh-primary {
  background: #2e4052 !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  padding: 12px 26px !important;
  border-radius: 30px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  box-shadow: 0 4px 14px rgba(46, 64, 82, 0.3) !important;
  transition: all 0.25s ease !important;
  border: 2px solid #2e4052 !important;
}

.btn-mh-primary:hover {
  background: #23303e !important;
  border-color: #23303e !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(46, 64, 82, 0.4) !important;
  color: #FFFFFF !important;
}

.btn-mh-secondary {
  background: #FFFFFF !important;
  color: #2e4052 !important;
  font-weight: 700 !important;
  padding: 12px 24px !important;
  border-radius: 30px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  border: 2px solid #CBD5E1 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.25s ease !important;
}

.btn-mh-secondary:hover {
  border-color: #2e4052 !important;
  color: #2e4052 !important;
  background: #eff6ef !important;
  transform: translateY(-2px);
}

.btn-mh-audio {
  background: #15803d !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  padding: 10px 20px !important;
  border-radius: 30px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  border: none !important;
  box-shadow: 0 3px 10px rgba(21, 128, 61, 0.3) !important;
  transition: all 0.25s ease !important;
  font-size: 0.92rem !important;
}

.btn-mh-audio:hover {
  background: #166534 !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(21, 128, 61, 0.4) !important;
}

/* ==========================================================================
   BROADCASTING & CULTURAL PILLARS
   ========================================================================== */
.mh-pillars-section {
  background: #2e4052 !important; /* Secondary Ocean Slate */
  padding: 70px 0 !important;
  color: #FFFFFF !important;
}

.mh-pillar-card {
  background: #FFFFFF !important;
  border-radius: 14px !important;
  padding: 30px 24px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  height: 100% !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.mh-pillar-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25) !important;
}

.mh-pillar-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2e4052 0%, #172029 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  color: #bdd9bf;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(46, 64, 82, 0.35);
}

.mh-pillar-card h3 {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #0c1015 !important;
  margin-bottom: 12px !important;
}

.mh-pillar-card p {
  color: #334155 !important;
  font-size: 0.95rem !important;
  line-height: 1.7 !important;
  margin-bottom: 0 !important;
}

/* Stat Counters */
.mh-stat-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 20px 15px;
  text-align: center;
}

.mh-stat-number {
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #bdd9bf;
  margin-bottom: 4px;
}

.mh-stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #CBD5E1;
  font-weight: 600;
}

/* ==========================================================================
   HISTORICAL TIMELINE (ABOUT PAGE)
   ========================================================================== */
.mh-timeline {
  position: relative;
  padding-left: 36px;
  border-left: 3px solid #2e4052;
  margin-left: 10px;
}

.mh-timeline-item {
  position: relative;
  margin-bottom: 34px;
}

.mh-timeline-item:last-child {
  margin-bottom: 0;
}

.mh-timeline-marker {
  position: absolute;
  left: -48px;
  top: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2e4052;
  border: 4px solid #FFFFFF;
  box-shadow: 0 0 0 2px #2e4052;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bdd9bf;
  font-size: 0.8rem;
}

.mh-timeline-year {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-size: 0.9rem;
  color: #2e4052;
  background: #eff6ef;
  padding: 3px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
  border: 1px solid rgba(46, 64, 82, 0.25);
}

.mh-timeline-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.22rem;
  font-weight: 700;
  color: #0c1015;
  margin-bottom: 6px;
}

.mh-timeline-desc {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.7;
}

/* ==========================================================================
   CONTACT FORM & ANCESTRAL SEAT
   ========================================================================== */
.mh-contact-card {
  background: #FFFFFF !important;
  border-radius: 16px !important;
  padding: 36px !important;
  box-shadow: 0 10px 30px rgba(46, 64, 82, 0.08) !important;
  border: 1.5px solid #E2E8F0 !important;
}

.ContactForm .form-group {
  margin-bottom: 20px !important;
}

.ContactForm label {
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  color: #0c1015 !important;
  margin-bottom: 6px !important;
}

.ContactForm .form-control,
.ContactForm input[type="text"],
.ContactForm input[type="email"],
.ContactForm textarea {
  border: 1.5px solid #CBD5E1 !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  font-size: 16px !important; /* Prevents auto-zoom in iOS */
  color: #1E293B !important;
  background: #F8FAFC !important;
  transition: all 0.2s ease !important;
  width: 100% !important;
}

.ContactForm .form-control:focus,
.ContactForm input:focus,
.ContactForm textarea:focus {
  background: #FFFFFF !important;
  border-color: #2e4052 !important;
  box-shadow: 0 0 0 3px rgba(46, 64, 82, 0.2) !important;
  outline: none !important;
}

/* Eliminate honeypot */
.ContactForm input#first-name-prefix,
.ContactForm #first-name-prefix,
.ContactForm label[for="first-name-prefix"],
.ContactForm div:has(> #first-name-prefix),
.ContactForm .form-group:has(#first-name-prefix) {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
  height: 0 !important;
  width: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#first-name-prefix, label[for="first-name-prefix"] {
  display: none !important;
  visibility: hidden !important;
}

.ContactForm h3.thumbTitle {
  display: none !important;
}

.ContactForm .input-group {
  display: flex !important;
  align-items: stretch !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}

.ContactForm .input-group-text {
  background: #eff6ef !important;
  border: 1.5px solid #CBD5E1 !important;
  border-right: none !important;
  border-radius: 8px 0 0 8px !important;
  padding: 2px 8px !important;
  display: flex !important;
  align-items: center !important;
}

.ContactForm .input-group-text img {
  height: 38px !important;
  border-radius: 4px !important;
}

.ContactForm .input-group .form-control {
  border-radius: 0 8px 8px 0 !important;
}

.ContactForm button[type="submit"] {
  background: linear-gradient(135deg, #2e4052 0%, #172029 100%) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  font-size: 0.92rem !important;
  padding: 14px 28px !important;
  border-radius: 30px !important;
  box-shadow: 0 4px 14px rgba(46, 64, 82, 0.35) !important;
  transition: all 0.25s ease !important;
  border: none !important;
  min-height: 48px !important;
}

.ContactForm button[type="submit"]:hover {
  background: linear-gradient(135deg, #23303e 0%, #0c1015 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(46, 64, 82, 0.45) !important;
}

/* ==========================================================================
   UNIQUE MEMORIAL FOOTER (WHITE MEDALLION & HIGH CONTRAST)
   ========================================================================== */
.mh-unique-footer {
  background: #0c1015 !important; /* Deep Ocean Slate */
  color: #FFFFFF !important;
}

.mh-unique-footer p,
.mh-unique-footer div,
.mh-unique-footer span {
  color: #F1F5F9 !important;
}

.mh-unique-footer p {
  color: #F8FAFC !important;
}

.mh-unique-footer a {
  color: #FFFFFF !important;
  transition: all 0.2s ease !important;
}

.mh-unique-footer a:hover {
  color: #bdd9bf !important;
}

.mh-footer-logo-badge {
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  background: #FFFFFF !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
  border: 2.5px solid #bdd9bf !important;
}

.mh-footer-logo-badge img {
  max-height: 42px !important;
  max-width: 42px !important;
  object-fit: contain !important;
  display: block !important;
  filter: none !important;
}

/* ==========================================================================
   MOBILE SCREEN SIZES (< 991px and < 767px)
   ========================================================================== */
@media (max-width: 991px) {
  #headerMenu .container {
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .logoHolder {
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
  }
  .logoHolder a.logo {
    justify-content: center !important;
  }
  .logoContents {
    justify-content: center !important;
    gap: 10px !important;
  }
  #websiteLogo {
    max-height: 44px !important;
    height: 44px !important;
  }
  #websiteLogoTitle {
    font-size: 1.2rem !important;
    text-align: left !important;
  }
  .menuHolder {
    justify-content: center !important;
    width: 100% !important;
    gap: 6px !important;
  }
}

@media (max-width: 767px) {
  .mh-hero-section {
    padding: 35px 0 !important;
    text-align: center !important;
  }
  .mh-hero-section .col-lg-7 {
    text-align: center !important;
  }
  .mh-hero-section .d-flex.flex-wrap {
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }
  .btn-mh-primary, .btn-mh-secondary, .btn-mh-audio {
    width: 100% !important;
    justify-content: center !important;
    min-height: 48px !important;
  }
  .mh-portrait-wrap {
    max-width: 270px !important;
    margin: 28px auto 0 !important;
  }
  .mh-pillars-section {
    padding: 45px 0 !important;
  }
  .mh-pillar-card {
    padding: 22px 18px !important;
    margin-bottom: 14px !important;
  }
  .mh-timeline {
    padding-left: 20px !important;
    border-left-width: 2px !important;
  }
  .mh-timeline-marker {
    left: -30px !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 0.72rem !important;
  }
  .mh-unique-footer {
    text-align: center !important;
    padding: 40px 0 20px !important;
  }
  .mh-unique-footer .row > div {
    text-align: center !important;
    margin-bottom: 24px !important;
  }
  .mh-unique-footer .d-flex.align-items-center {
    justify-content: center !important;
  }
  .mh-unique-footer ul {
    align-items: center !important;
  }
}
