/* ==========================================================================
   MALAMAH LEGACY - GRAND FAMILY PORTAL HUB THEME (AUTHENTICATED COLORS)
   Palette:
     Primary: #0e79b2 (Cerulean / Deep Sea Blue)
     Brand Secondary: #bf1363 (Magenta / Deep Rose)
     Hero Soft Cerulean: #c3deec (--color1_25)
     Deep Navy Sea: #041e2d (--color1_175)
     Deep Rose Slate: #300519 (--color2_175)
     Hover Rose: #8f0e4a (--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: #041e2d !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, #c3deec) !important;
}

#headerMenu {
  background: var(--color1_25, #c3deec) !important;
  border-bottom: 1.5px solid rgba(14, 121, 178, 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: 1240px !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;
}

.logoHolder h2 {
  font-family: 'Cinzel', serif !important;
  font-size: 1.38rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  color: #041e2d !important;
  margin: 0 !important;
  padding: 4px 0 !important;
  min-height: 0 !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  line-height: 1.25 !important;
}

@media (max-width: 767.98px) {
  #headerMenu {
    padding: 10px 14px !important;
  }
  #headerMenu .container {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  .logoHolder h2 {
    font-size: 1.08rem !important;
    line-height: 1.2 !important;
    max-width: calc(100vw - 80px) !important;
  }
}

.menuHolder {
  margin: 0 !important;
}

.menuHolder li a {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.92rem !important;
  color: #041e2d !important;
  padding: 8px 14px !important;
  letter-spacing: 0.02em !important;
  transition: all 0.2s ease !important;
  border-radius: 6px !important;
}

.menuHolder li a:hover,
.menuHolder li.active a {
  color: #bf1363 !important;
  background: rgba(191, 19, 99, 0.12) !important;
}

/* ==========================================================================
   GRAND HERO SECTION
   ========================================================================== */
.mh-hero {
  background: linear-gradient(135deg, #c3deec 0%, #ffffff 50%, #f9e2ed 100%) !important;
  padding: 68px 0 58px !important;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(14, 121, 178, 0.12);
}

.mh-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 121, 178, 0.12);
  color: #0e79b2;
  border: 1px solid rgba(14, 121, 178, 0.3);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.mh-hero-title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem) !important;
  font-weight: 800 !important;
  color: #041e2d !important;
  line-height: 1.2 !important;
  margin-bottom: 20px !important;
}

.mh-hero-title span {
  color: #bf1363;
}

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

.mh-audio-pill {
  background: #ffffff;
  border: 1px solid rgba(14, 121, 178, 0.18);
  border-radius: 14px;
  padding: 14px 20px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 8px 24px rgba(14, 121, 178, 0.08);
  margin-top: 10px;
  margin-bottom: 26px;
}

.mh-audio-pill .audio-btn {
  background: #bf1363;
  color: #ffffff !important;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.mh-audio-pill .audio-btn:hover {
  background: #8f0e4a;
  transform: scale(1.08);
}

.mh-btn-primary {
  background: #bf1363 !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 700 !important;
  padding: 13px 28px !important;
  border-radius: 8px !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.02em !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 8px 20px rgba(191, 19, 99, 0.35) !important;
}

.mh-btn-primary:hover {
  background: #8f0e4a !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 26px rgba(191, 19, 99, 0.45) !important;
  color: #ffffff !important;
}

.mh-btn-secondary {
  background: #0e79b2 !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 700 !important;
  padding: 13px 28px !important;
  border-radius: 8px !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.02em !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 8px 20px rgba(14, 121, 178, 0.32) !important;
}

.mh-btn-secondary:hover {
  background: #09547d !important;
  transform: translateY(-2px) !important;
  color: #ffffff !important;
}

.mh-btn-outline {
  background: transparent !important;
  color: #041e2d !important;
  border: 2px solid #041e2d !important;
  font-weight: 700 !important;
  padding: 11px 26px !important;
  border-radius: 8px !important;
  font-size: 0.95rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
}

.mh-btn-outline:hover {
  background: #041e2d !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
}

/* ==========================================================================
   GRAND MEMORIAL DIRECTORY (6 PORTAL CARDS)
   ========================================================================== */
.mh-directory-section {
  padding: 75px 0 85px !important;
  background: #f8fafc !important;
}

.mh-portal-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(14, 121, 178, 0.12);
  box-shadow: 0 10px 28px rgba(4, 30, 45, 0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.mh-portal-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 48px rgba(4, 30, 45, 0.14);
  border-color: rgba(191, 19, 99, 0.4);
}

.mh-portal-card-img {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: #e2e8f0;
}

.mh-portal-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}

.mh-portal-card:hover .mh-portal-card-img img {
  transform: scale(1.05);
}

.mh-portal-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(4, 30, 45, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mh-portal-card-body {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.mh-portal-card-dates {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  color: #bf1363;
  font-weight: 700;
  margin-bottom: 6px;
}

.mh-portal-card-title {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #041e2d !important;
  line-height: 1.3 !important;
  margin-bottom: 12px !important;
}

.mh-portal-card-desc {
  font-size: 0.92rem;
  color: #4A5568;
  line-height: 1.65;
  flex-grow: 1;
  margin-bottom: 22px;
}

.mh-portal-btn {
  background: linear-gradient(135deg, #0e79b2 0%, #073d59 100%);
  color: #ffffff !important;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  margin-top: auto;
}

.mh-portal-btn:hover {
  background: linear-gradient(135deg, #bf1363 0%, #8f0e4a 100%);
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(191, 19, 99, 0.35);
  transform: translateY(-2px);
}

/* ==========================================================================
   3 HERITAGE PILLARS
   ========================================================================== */
.mh-pillars-section {
  padding: 75px 0 !important;
  background: #ffffff !important;
}

.mh-pillar-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 34px 28px;
  border: 1px solid rgba(14, 121, 178, 0.12);
  box-shadow: 0 8px 24px rgba(4, 30, 45, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.mh-pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(4, 30, 45, 0.1);
  border-color: rgba(14, 121, 178, 0.4);
}

.mh-pillar-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: rgba(14, 121, 178, 0.12);
  color: #0e79b2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.mh-pillar-title {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.32rem !important;
  font-weight: 700 !important;
  color: #041e2d !important;
  margin-bottom: 12px !important;
}

.mh-pillar-text {
  font-size: 0.94rem;
  color: #4A5568;
  line-height: 1.7;
  flex-grow: 1;
}

/* ==========================================================================
   STATS BANNER
   ========================================================================== */
.mh-stats-banner {
  background: linear-gradient(135deg, #0e79b2 0%, #041e2d 100%) !important;
  color: #ffffff !important;
  padding: 60px 0 !important;
}

.mh-stat-item {
  text-align: center;
  padding: 15px;
}

.mh-stat-number {
  font-family: 'Cinzel', serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: #c3deec;
  margin-bottom: 6px;
  line-height: 1;
}

.mh-stat-label {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e2e8f0;
  font-weight: 600;
}

/* ==========================================================================
   FORM HARDENING, HONEYPOT LOCK, & INPUT STYLING
   ========================================================================== */
/* Critical Anti-Bot Honeypot Rule: Hide from humans, let bots trip it */
div.form-group:has(#first-name-prefix),
div.form-group:has(input[name="first-name-prefix"]),
#first-name-prefix,
label[for="first-name-prefix"],
.ko_honeypot,
div:has(> input[name="first-name-prefix"]) {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}

/* Form Controls & Inputs (16px iOS Viewport Lock) */
#website input[type="text"],
#website input[type="email"],
#website input[type="tel"],
#website input[type="date"],
#website textarea,
#website select,
.form-control {
  font-size: 16px !important;
  border-radius: 10px !important;
  border: 1.5px solid #cbd5e1 !important;
  padding: 12px 16px !important;
  color: #1e293b !important;
  background-color: #ffffff !important;
  transition: all 0.2s ease-in-out !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

#website input[type="text"]:focus,
#website input[type="email"]:focus,
#website input[type="tel"]:focus,
#website input[type="date"]:focus,
#website textarea:focus,
#website select:focus,
.form-control:focus {
  border-color: #0e79b2 !important;
  box-shadow: 0 0 0 3.5px rgba(14, 121, 178, 0.18) !important;
  outline: none !important;
}

/* Form Labels */
#website form label,
.form-group label {
  font-weight: 600 !important;
  font-size: 0.94rem !important;
  color: #041e2d !important;
  margin-bottom: 7px !important;
  display: inline-block !important;
}

/* Form Section Headers */
#website form h3,
#website form .thumbTitle,
#website form legend {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #041e2d !important;
  border-bottom: 2px solid rgba(14, 121, 178, 0.15) !important;
  padding-bottom: 10px !important;
  margin-top: 26px !important;
  margin-bottom: 20px !important;
  display: block !important;
  width: 100% !important;
}

/* Submit Buttons in Forms */
#website form button[type="submit"],
#website form input[type="submit"],
#website form .btn-primary,
#website .koFormSubmit {
  background: linear-gradient(135deg, #bf1363 0%, #8f0e4a 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  padding: 13px 34px !important;
  border-radius: 8px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 8px 22px rgba(191, 19, 99, 0.35) !important;
  letter-spacing: 0.02em !important;
  margin-top: 15px !important;
}

#website form button[type="submit"]:hover,
#website form input[type="submit"]:hover,
#website form .btn-primary:hover,
#website .koFormSubmit:hover {
  background: linear-gradient(135deg, #a00f53 0%, #6f0a39 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 28px rgba(191, 19, 99, 0.45) !important;
}

/* Radio & Checkbox Styling */
#website form input[type="radio"],
#website form input[type="checkbox"] {
  accent-color: #bf1363 !important;
  cursor: pointer !important;
}

/* Form Alert Boxes */
.alert-success,
.koFormSuccess,
.form-success {
  background: #f0fdf4 !important;
  color: #166534 !important;
  border: 1.5px solid #86efac !important;
  border-radius: 12px !important;
  padding: 18px 24px !important;
  font-size: 0.98rem !important;
  line-height: 1.65 !important;
  margin-bottom: 24px !important;
}

.alert-danger,
.messageList,
.koFormError {
  background: #fef2f2 !important;
  color: #991b1b !important;
  border: 1.5px solid #fecaca !important;
  border-radius: 12px !important;
  padding: 16px 22px !important;
  font-size: 0.94rem !important;
  margin-bottom: 22px !important;
}

/* ==========================================================================
   CONTACT SECTION & ANCESTRAL SEAT
   ========================================================================== */
.mh-contact-section {
  padding: 65px 0 80px !important;
  background: #f8fafc !important;
}

.mh-contact-card {
  background: #ffffff;
  border: 1px solid rgba(14, 121, 178, 0.12);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 10px 30px rgba(4, 30, 45, 0.06);
  height: 100%;
}

.mh-ancestral-seat {
  background: linear-gradient(135deg, #0e79b2 0%, #041e2d 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 36px 32px;
  height: 100%;
  box-shadow: 0 12px 36px rgba(4, 30, 45, 0.25);
  display: flex;
  flex-direction: column;
}

.mh-ancestral-seat h3 {
  font-family: 'Playfair Display', serif !important;
  color: #ffffff !important;
  font-size: 1.55rem !important;
  margin-bottom: 14px !important;
}

.mh-ancestral-seat p {
  color: #cad0d4 !important;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ==========================================================================
   DEDICATED FOOTER (CERULEAN & MAGENTA MEDALLION)
   ========================================================================== */
.mh-memorial-footer {
  background: #041e2d !important;
  color: #cad0d4 !important;
  padding: 65px 0 35px !important;
  border-top: 4px solid #bf1363 !important;
}

.mh-footer-medallion {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0e79b2 0%, #bf1363 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-weight: 800;
  box-shadow: 0 6px 22px rgba(191, 19, 99, 0.4);
  margin-bottom: 18px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.mh-footer-title {
  font-family: 'Cinzel', serif !important;
  font-size: 1.45rem !important;
  color: #ffffff !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 8px !important;
}

.mh-footer-subtitle {
  font-size: 0.94rem !important;
  color: #94a3b8 !important;
  max-width: 620px;
  margin: 0 auto 28px !important;
  line-height: 1.6 !important;
}

.mh-footer-directory {
  display: flex;
  justify-content: center;
  gap: 18px 24px;
  flex-wrap: wrap;
  max-width: 950px;
  margin: 0 auto 30px;
}

.mh-footer-directory a {
  color: #c3deec !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  transition: color 0.2s ease !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mh-footer-directory a:hover {
  color: #bf1363 !important;
}

.mh-footer-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.mh-footer-nav a {
  color: #94a3b8 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  font-size: 0.88rem !important;
  transition: color 0.2s ease !important;
}

.mh-footer-nav a:hover {
  color: #ffffff !important;
}

.mh-footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 25px auto 20px;
  max-width: 900px;
}

.mh-footer-copy {
  font-size: 0.82rem !important;
  color: #64748b !important;
  margin: 0 !important;
}
