/*
 * JainOutlook Matrimonial - Mobile-first frontend layer
 * Presentation only. Existing application logic, form names/actions and routes remain unchanged.
 * Bootstrap 5.3.x foundation.
 */

:root {
  --jo-maroon: #7b1e3a;
  --jo-maroon-dark: #561126;
  --jo-maroon-soft: #f6e9ee;
  --jo-gold: #d6a647;
  --jo-gold-dark: #b8892f;
  --jo-cream: #fffaf4;
  --jo-ivory: #fffdf9;
  --jo-ink: #241c20;
  --jo-muted: #72676c;
  --jo-border: #eadfe3;
  --jo-success: #2f7d5b;
  --jo-danger: #b3263c;
  --jo-shadow: 0 18px 50px rgba(76, 31, 47, .10);
  --jo-shadow-sm: 0 8px 28px rgba(76, 31, 47, .08);
  --jo-radius: 20px;
  --jo-radius-sm: 14px;
  --jo-header-height: 78px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0 !important;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--jo-ivory);
  color: var(--jo-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 10%, rgba(214, 166, 71, .07), transparent 25rem),
    radial-gradient(circle at 92% 35%, rgba(123, 30, 58, .05), transparent 28rem);
  z-index: -1;
}

a { color: var(--jo-maroon); }
a:hover { color: var(--jo-maroon-dark); }
img { max-width: 100%; height: auto; }
figure { margin: 0; }

.container { max-width: 1180px; }

/* Accessibility */
:focus-visible {
  outline: 3px solid rgba(214, 166, 71, .6) !important;
  outline-offset: 2px;
}

.sr-only,
.visually-hidden-legacy {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Google translate */
.jo-translate-bar {
  position: relative;
  z-index: 1040;
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  background: var(--jo-maroon-dark);
  color: #fff;
  font-size: 12px;
}
.jo-translate-bar .container { min-height: 36px; }
.jo-translate-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.8);
  font-weight: 600;
}
.jainoutlook-translate { min-height: 28px; }
.goog-te-gadget { color: transparent !important; font-size: 0 !important; }
.goog-te-gadget .goog-te-combo {
  margin: 3px 0 !important;
  min-height: 28px;
  max-width: 160px;
  padding: 2px 28px 2px 8px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 12px;
}
.goog-te-gadget .goog-te-combo option { color: #111; background: #fff; }
body > .skiptranslate { top: 0 !important; }
body { top: 0 !important; }
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame { display: none !important; }

/* Header / Bootstrap 5 navbar */
header.site-header {
  float: none !important;
  width: 100%;
  padding: 0 !important;
  background: rgba(255, 253, 249, .96) !important;
  border-bottom: 1px solid rgba(123,30,58,.08);
  box-shadow: 0 8px 30px rgba(51, 24, 33, .04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header .navbar { min-height: var(--jo-header-height); padding: 9px 0; }
.jo-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  padding: 0;
  text-decoration: none;
}
.jo-brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,.07);
}
.jo-brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.jo-brand-name { color: var(--jo-ink); font-size: 20px; font-weight: 650; letter-spacing: -.4px; }
.jo-brand-name strong { color: var(--jo-maroon); }
.jo-brand-subtitle { margin-top: 5px; color: var(--jo-gold-dark); font-size: 11px; font-weight: 800; letter-spacing: 2.2px; text-transform: uppercase; }
.jo-menu-toggle {
  border: 1px solid var(--jo-border) !important;
  border-radius: 12px;
  padding: 8px 10px;
  box-shadow: none !important;
}
.jo-main-nav { gap: 2px; }
.jo-main-nav .nav-link {
  position: relative;
  padding: 10px 12px !important;
  border-radius: 10px;
  color: #51474b !important;
  font-size: 14px;
  font-weight: 650;
  transition: .2s ease;
}
.jo-main-nav .nav-link:hover,
.jo-main-nav .nav-link.active {
  background: var(--jo-maroon-soft);
  color: var(--jo-maroon) !important;
}
.jo-account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 15px;
  border: 0;
  border-radius: 12px;
  background: var(--jo-maroon);
  color: #fff !important;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(123,30,58,.18);
}
.jo-account-btn:hover { background: var(--jo-maroon-dark); transform: translateY(-1px); }
.jo-account-menu {
  min-width: 220px;
  margin-top: 10px !important;
  padding: 8px;
  border: 1px solid var(--jo-border);
  border-radius: 14px;
  box-shadow: var(--jo-shadow);
}
.jo-account-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border-radius: 9px;
  color: var(--jo-ink);
  font-size: 14px;
}
.jo-account-menu .dropdown-item i { width: 18px; color: var(--jo-gold-dark); text-align: center; }
.jo-account-menu .dropdown-item:hover { background: var(--jo-cream); color: var(--jo-maroon); }

/* Reusable type / buttons */
.jo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: var(--jo-maroon);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.25px;
  text-transform: uppercase;
}
.jo-section-heading { max-width: 690px; margin-bottom: 38px; }
.jo-section-heading h2,
.jo-community-section h2 {
  margin: 0 0 12px;
  color: var(--jo-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(29px, 4vw, 43px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.7px;
}
.jo-section-heading p,
.jo-community-section p { margin: 0; color: var(--jo-muted); font-size: 16px; }
.jo-primary-btn,
.jo-search-btn,
button[type="submit"],
input[type="submit"] {
  min-height: 48px;
  padding: 11px 20px;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--jo-maroon) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 750 !important;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 9px 22px rgba(123,30,58,.16);
  transition: .2s ease;
}
.jo-primary-btn:hover,
.jo-search-btn:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background: var(--jo-maroon-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
}
.jo-secondary-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  color: #fff !important;
  font-weight: 750;
  backdrop-filter: blur(6px);
}
.jo-secondary-btn:hover { background: #fff; color: var(--jo-maroon) !important; }

/* Home hero */
section.search_results.jo-hero,
section.search_results {
  position: relative;
  float: none !important;
  width: 100%;
  min-height: 360px;
  overflow: hidden;
  background: #4c1327;
}
.jo-hero-image,
section.search_results > img {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: 58% center;
  opacity: 1;
}
.jo-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(49,10,24,.92) 0%, rgba(65,13,31,.77) 42%, rgba(56,16,29,.25) 75%, rgba(0,0,0,.05) 100%);
}
.jo-hero-content { position: relative; z-index: 2; }
.min-vh-hero { min-height: 440px; padding: 52px 0; }
.jo-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: #fff3d5;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .3px;
}
.jo-hero h1,
section.search_results .search_heading h1 {
  margin: 0 0 16px !important;
  color: #fff !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(38px, 6vw, 64px) !important;
  font-weight: 700 !important;
  line-height: 1.04 !important;
  letter-spacing: -1.5px;
  text-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.jo-hero h1 span { color: #f5d48e; }
.jo-hero p { max-width: 620px; margin: 0 0 24px; color: rgba(255,255,255,.86); font-size: 17px; line-height: 1.65; }
.jo-hero-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.jo-hero-trust { margin-top: 22px; color: rgba(255,255,255,.82); font-size: 12px; font-weight: 650; }
.jo-hero-trust i { margin-right: 4px; color: #f2cc78; }
section.search_results .search_heading:not(.jo-hero *) {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: min(1180px, calc(100% - 30px));
  min-height: 320px;
  margin: auto;
  padding: 40px 0;
}

/* Main quick search */
.jo-match-search,
.search_results_content {
  position: relative;
  z-index: 3;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 0 32px !important;
  background: transparent !important;
}
.jo-match-search { margin-top: -28px !important; }
.jo-search-card {
  padding: 22px;
  border: 1px solid rgba(123,30,58,.08);
  border-radius: var(--jo-radius);
  background: rgba(255,255,255,.98);
  box-shadow: var(--jo-shadow);
}
.jo-search-intro { margin-bottom: 18px; }
.jo-search-intro h2 { margin: 0 0 5px; color: var(--jo-ink); font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
.jo-search-intro p { margin: 0; color: var(--jo-muted); font-size: 14px; }
.jo-search-form .form-label { margin-bottom: 6px; color: #594e52; font-size: 12px; font-weight: 750; }

/* Form system - legacy class compatibility + Bootstrap 5 */
.form-control,
.form-select,
.selectBox12,
.selectBox13,
.selectBox14,
.selectBox15,
.dashboard_name,
.contact_form_name,
.register_name,
.register_right_name,
.login_name {
  float: none !important;
  width: 100% !important;
  min-height: 46px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid #dfd3d8 !important;
  border-radius: 11px !important;
  background-color: #fff !important;
  background-position: right .75rem center !important;
  color: var(--jo-ink) !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
  box-shadow: none !important;
}
.form-control:focus,
.form-select:focus,
.selectBox12:focus,
.selectBox13:focus,
.selectBox14:focus,
.selectBox15:focus {
  border-color: rgba(123,30,58,.55) !important;
  box-shadow: 0 0 0 .2rem rgba(123,30,58,.09) !important;
}
textarea.form-control,
.dashboard_message,
.contact_form_message { min-height: 120px !important; resize: vertical; }
.selectDiv12,
.selectDiv13,
.selectDiv14,
.selectDiv15 { width: 100% !important; margin: 0 !important; line-height: normal !important; }
.form-check-input { width: 1.15em; height: 1.15em; margin-top: .18em; border-color: #cdbec4; }
.form-check-input:checked { background-color: var(--jo-maroon); border-color: var(--jo-maroon); }
.form-check-label { color: #53484d; font-size: 14px; }
.input-group-text,
.code {
  min-height: 46px;
  display: flex;
  align-items: center;
  border: 1px solid #dfd3d8;
  border-right: 0;
  border-radius: 11px 0 0 11px;
  background: #f8f2f4;
  color: var(--jo-maroon);
  font-weight: 700;
}
.input-group-prepend { display: flex; }
.input-group-prepend + .form-control { border-radius: 0 11px 11px 0 !important; }
.mr-sm-2 { margin-right: .5rem !important; }
.pwd-errro,
.error_message,
[id^="error-"] { color: var(--jo-danger) !important; font-size: 12px; line-height: 1.4; }
.pwd-errro span { display: inline !important; }

/* Home benefits */
.jo-benefits,
section.middle_part_content {
  float: none !important;
  width: 100%;
  padding: 54px 0 64px !important;
  background: #fff !important;
}
.jo-benefit-card,
section.middle_part_content > .container > .row > [class*="col-"] {
  text-align: left;
}
.jo-benefit-card {
  position: relative;
  padding: 25px;
  border: 1px solid var(--jo-border);
  border-radius: var(--jo-radius);
  background: #fff;
  box-shadow: var(--jo-shadow-sm);
  transition: .25s ease;
}
.jo-benefit-card:hover { transform: translateY(-4px); box-shadow: var(--jo-shadow); }
.jo-benefit-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 17px;
  border-radius: 17px;
  background: var(--jo-cream);
}
.jo-benefit-icon img { width: 34px; height: 34px; object-fit: contain; }
.jo-benefit-card h3,
section.middle_part_content h2 {
  margin: 0 0 9px;
  color: var(--jo-ink);
  font-size: 19px;
  font-weight: 800;
}
.jo-benefit-card p,
section.middle_part_content p { margin: 0; color: var(--jo-muted); font-size: 14px; line-height: 1.7; }

/* Community image area */
.jo-community-section,
section.middle_part_gallery {
  float: none !important;
  width: 100%;
  padding: 64px 0 !important;
  background: linear-gradient(180deg, var(--jo-cream), #fff) !important;
}
.jo-inline-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--jo-maroon); font-weight: 800; text-decoration: none; }
.jo-photo-grid { display: grid; grid-template-columns: 1.2fr .8fr; grid-template-rows: repeat(2, 175px); gap: 12px; }
.jo-photo { overflow: hidden; border-radius: 18px; box-shadow: var(--jo-shadow-sm); }
.jo-photo-main { grid-row: 1 / span 2; }
.jo-photo img { width: 100%; height: 100% !important; object-fit: cover; border-radius: 0 !important; }

/* Generic public content */
section.middle_content,
section.middle_part {
  float: none !important;
  width: 100%;
  padding: 34px 0 60px !important;
  background: transparent;
	margin-top:90px;
}
.privacy_policy,
.contact_content,
.contact_form_content,
.invoice_content,
.payment_history,
.payment_invoice,
.proposals,
.contact_detail,
.dashboard_search,
.success_content,
.login_email,
.login_password {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 22px !important;
  border: 1px solid var(--jo-border) !important;
  border-radius: var(--jo-radius) !important;
  background: #fff !important;
  box-shadow: var(--jo-shadow-sm);
	height:100%;
}
.privacy_policy h1,
.contact_content h1,
.payment_history h1,
.proposals h1,
.invoice h1,
.success_content h1 {
  margin: 0 0 18px !important;
  color: var(--jo-ink) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(29px, 5vw, 42px) !important;
  font-weight: 700 !important;
}
.privacy_policy p,
.contact_content p,
.proposals > .row:first-child p,
.invoice_content p { color: var(--jo-muted) !important; font-size: 15px !important; line-height: 1.75 !important; }

/* Login / registration */
.banner_part {
  float: none !important;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--jo-shadow-sm);
}
.banner_part img { width: 100% !important; min-height: 120px; object-fit: cover; }
.login_row_padding {
  margin: 24px 0 0 !important;
  padding: 0 !important;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--jo-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--jo-shadow);
}
.login_padding { padding: 0 !important; }
.login_content {
  float: none !important;
  min-height: 230px;
  width: 100% !important;
  padding: 26px !important;
  background: linear-gradient(140deg, var(--jo-maroon-dark), var(--jo-maroon)) !important;
  text-align: left !important;
}
.login_content::before {
  content: "Welcome back";
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-weight: 700;
}
.login_content::after {
  content: "Sign in to continue to your matrimonial account.";
  display: block;
  margin-bottom: 18px;
  color: rgba(255,255,255,.7);
  font-size: 13px;
  order: -1;
}
.login_content .row { margin: 0; }
.login_content .col-lg-12 { padding: 0; }
.login_content .login_name { margin-bottom: 11px !important; border-color: rgba(255,255,255,.25) !important; }
.login_content button { width: auto !important; min-width: 120px; min-height: 44px; background: var(--jo-gold) !important; color: #442311 !important; border: 0 !important; }
.login_content button:hover { background: #edc66e !important; }
.login_content a { margin: 10px 0 0 12px !important; color: #fff3d6 !important; font-size: 13px !important; }
.add_content { float: none !important; width: 100% !important; }
.add_content img { width: 100%; display: block; }
.register_heading {
  float: none !important;
  width: 100% !important;
  padding: 26px 28px 8px !important;
  background: #fff !important;
}
.register_heading h2 {
  margin: 0 !important;
  color: var(--jo-ink) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px !important;
  font-weight: 700 !important;
}
.register_heading h2::after {
  content: "Create your profile in a few simple steps";
  display: block;
  margin-top: 5px;
  color: var(--jo-muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 400;
}
.register_content {
  float: none !important;
  width: 100% !important;
  padding: 16px 28px 28px !important;
}
.register_content > form > .row { margin-bottom: 14px; }
.register_content p {
  float: none !important;
  display: block;
  margin: 0 0 6px !important;
  color: #564b50 !important;
  font-size: 13px !important;
  font-weight: 750;
}
.register_right_content {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}
.register_right_content span { float: none !important; display: inline-block; margin: 0 12px 0 0 !important; }
.register_name { margin-right: 0 !important; }
.register_jain {
  display: none !important;
}
.register_button { float: none !important; width: 100% !important; margin-top: 6px !important; }
.register_button span { float: none !important; display: block; margin: 0 0 14px !important; }
.register_button button { float: none !important; width: 100% !important; min-height: 50px; }
.otp_content { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-bottom: 8px; }
.otp_content button { min-height: 36px !important; padding: 7px 12px !important; font-size: 12px !important; box-shadow: none !important; }
#success-message { margin: 20px !important; padding: 18px; border-radius: 14px; background: #eaf7ef; color: var(--jo-success); }
#error-username { position: static !important; margin: 10px 0; }

/* Modal Bootstrap 5 styling */
.modal-content { border: 0; border-radius: 18px; box-shadow: var(--jo-shadow); }
.modal-header { padding: 18px 20px; border-bottom-color: var(--jo-border); }
.modal-title { color: var(--jo-ink); font-weight: 800; }
.modal-body { padding: 20px; }
.forgot_password p { color: var(--jo-muted); font-size: 14px; }
.forgot_password button { width: 100%; margin-top: 12px; }

/* Dashboard / account area */
.dashboard {
  float: none !important;
  width: 100% !important;
  min-height: auto !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 18px 20px !important;
  border: 1px solid var(--jo-border);
  border-radius: var(--jo-radius);
  background: linear-gradient(130deg, #fff 0%, #fff9f1 100%) !important;
  box-shadow: var(--jo-shadow-sm);
}
.profile_content {
  float: none !important;
  display: grid;
  grid-template-columns: 50px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 12px;
  width: auto !important;
}
.profile_content figure {
  grid-row: 1 / span 2;
  width: 50px !important;
  height: 50px !important;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--jo-maroon-soft);
}
.profile_content figure img { width: 100%; height: 100%; object-fit: cover; }
.profile_content h1 { float: none !important; width: auto !important; margin: 0 !important; color: var(--jo-muted) !important; font-size: 12px !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: .8px; }
.profile_content p { float: none !important; width: auto !important; margin: 2px 0 0 !important; color: var(--jo-ink) !important; font-size: 18px !important; font-weight: 800 !important; text-transform: capitalize; }
.logout { float: none !important; width: auto !important; }
.logout a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 10px; background: #fff; color: var(--jo-danger) !important; font-size: 13px; font-weight: 700; text-decoration: none; border: 1px solid #efd8dd; }
.dashboard_list {
  position: sticky;
  top: calc(var(--jo-header-height) + 54px);
  float: none !important;
  width: 100% !important;
  overflow: hidden;
  padding: 8px !important;
  border: 1px solid var(--jo-border);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--jo-shadow-sm);
}
.dashboard_list .row { margin: 0 !important; }
.dashboard_list [class*="col-"] { padding: 0 !important; }
.dashboard_list a {
  float: none !important;
  width: 100% !important;
  min-height: 44px;
  display: flex !important;
  align-items: center;
  margin: 0 0 4px !important;
  padding: 10px 12px !important;
  border-radius: 10px;
  background: transparent !important;
  color: #554a4f !important;
  font-size: 14px !important;
  font-weight: 650;
  text-decoration: none;
  transition: .2s ease;
}
.dashboard_list a:hover,
.dashboard_list a.dashboard_active,
.dashboard_list a.jo-current-account-link { background: var(--jo-maroon-soft) !important; color: var(--jo-maroon) !important; }
.dashboard_search,
.contact_detail,
.proposals,
.payment_history { min-height: 100%; }
.dashboard_search > .row,
.contact_detail > .row { margin-bottom: 14px; align-items: center; }
.dashboard_search p,
.contact_detail p,
.registration_content p { margin: 0 0 6px; color: #53494d; font-size: 13px; font-weight: 750; }
.year_content { display: flex; align-items: center; gap: 10px; }
.year_content span { flex: 1; }
.year_content p { margin: 0; white-space: nowrap; }

/* Profile form sections */
.registration_content {
  float: none !important;
  width: 100% !important;
  margin-bottom: 16px !important;
  padding: 20px !important;
  border: 1px solid var(--jo-border);
  border-radius: var(--jo-radius);
  background: #fff;
  box-shadow: var(--jo-shadow-sm);
}
.registration_content h2 {
  margin: 0 0 18px !important;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--jo-border);
  color: var(--jo-maroon) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
}
.registration_content > .row { row-gap: 12px; }
.registration_content .col-lg-4,
.registration_content .col-lg-12 { margin-bottom: 10px; }

/* Search results */
.search_middle_content {
  float: none !important;
  width: 100%;
  padding: 18px 0 64px !important;
  background: transparent !important;
}
.search_middle_content > .container > .row { row-gap: 18px; }
.search_category_content {
  float: none !important;
  width: 100% !important;
  height: 100%;
  margin: 0 !important;
  padding: 20px !important;
  overflow: hidden;
  border: 1px solid var(--jo-border) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: var(--jo-shadow-sm);
}
.search_category_content .row { margin: 0 !important; padding: 8px 0; border-bottom: 1px dashed #eee3e7; }
.search_category_content .row:last-child { border-bottom: 0; padding-top: 15px; }
.search_category_content .col-lg-12 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 !important; }
.search_category_content h2 { margin: 0 !important; color: var(--jo-muted) !important; font-size: 12px !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: .5px; }
.search_category_content p { margin: 0 !important; color: var(--jo-ink) !important; font-size: 14px !important; font-weight: 700; text-align: right; }
.interested {
  width: 100%;
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 9px 13px !important;
  border-radius: 11px !important;
  background: var(--jo-maroon) !important;
  color: #fff !important;
  font-weight: 750;
  text-decoration: none !important;
}
.interested:hover { background: var(--jo-maroon-dark) !important; }

/* Proposals */
.proposals > .row:first-child { margin-bottom: 16px; padding: 14px; border-radius: 13px; background: var(--jo-cream); }
.proposals [class*="col-lg-"] { min-width: 0; }
.proposals .register_right_content { margin-bottom: 8px !important; }

/* Contact */
.contact_form_content { box-shadow: none; }
.contact_form_content form > .row { row-gap: 14px; margin-bottom: 14px; }
.contact_form_message { min-height: 150px !important; }
.captcha_code { margin: 0 !important; }
.captcha_code_left_content {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #cfbdc4;
  border-radius: 11px;
  background: var(--jo-cream);
  color: var(--jo-maroon);
  font-size: 17px;
  font-weight: 800;
}

/* Invoice/payment */
.invoice { float: none !important; width: 100% !important; text-align: left !important; }
.invoice_content { max-width: 760px; margin: 0 auto 30px !important; }
.invoice_content h2 { float: none !important; margin: 0 0 10px !important; color: var(--jo-maroon) !important; font-size: 16px !important; }
.invoice_content p { float: none !important; width: 100% !important; margin: 0 0 15px !important; }
.registration_invoice {
  float: none !important;
  width: 100% !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 18px;
  padding: 14px 16px !important;
  border-radius: 12px;
  background: var(--jo-cream) !important;
}
.registration_invoice h2 { margin: 0 !important; color: var(--jo-ink) !important; }
.registration_invoice h3 { margin: 0 !important; color: var(--jo-success) !important; font-size: 21px !important; font-weight: 800; }
.invoice_pic { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.invoice_pic figure { float: none !important; width: auto !important; margin: 0 !important; }
.invoice_pic img { width: 100%; border-radius: 14px; }

/* Success */
.success_content { max-width: 680px; margin: 35px auto !important; text-align: center; }
.success_content_list { padding: 25px 5px; }
.success_content_list::before {
  content: "✓";
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #e8f6ef;
  color: var(--jo-success);
  font-size: 34px;
  font-weight: 800;
}
.success_content p { color: var(--jo-muted); }
.success_content a { display: inline-flex; margin-top: 14px; padding: 11px 20px; border-radius: 11px; background: var(--jo-maroon); color: #fff; font-weight: 750; text-decoration: none; }

/* Footer */
footer.site-footer {
  float: none !important;
  width: 100%;
  margin: 0 !important;
  padding: 48px 0 20px !important;
  border: 0 !important;
  background: #24171c !important;
  color: rgba(255,255,255,.7);
}
.jo-footer-brand { display: inline-flex; align-items: center; gap: 11px; color: #fff !important; text-decoration: none; }
.jo-footer-brand img { width: 48px; height: 48px; border-radius: 12px; }
.jo-footer-brand span { display: flex; flex-direction: column; }
.jo-footer-brand strong { font-size: 18px; }
.jo-footer-brand small { color: #dfb65e; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; }
.jo-footer-copy { max-width: 480px; margin: 16px 0 0; color: rgba(255,255,255,.62); font-size: 14px; }
.jo-footer-title { margin: 4px 0 13px; color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.jo-footer-links { display: flex; flex-direction: column; gap: 8px; }
.jo-footer-links a { color: rgba(255,255,255,.64); font-size: 13px; text-decoration: none; }
.jo-footer-links a:hover { color: #f2cd7b; }
.jo-footer-bottom { margin-top: 32px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.48); font-size: 12px; }
.jo-footer-bottom p { margin: 0; }

/* Mobile-first refinements */
@media (max-width: 991.98px) {
  :root { --jo-header-height: 70px; }
  .site-header .navbar-collapse {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid var(--jo-border);
    border-radius: 15px;
    background: #fff;
    box-shadow: var(--jo-shadow-sm);
  }
  .jo-main-nav .nav-link { padding: 11px 12px !important; }
  .min-vh-hero { min-height: 420px; }
  .jo-match-search { margin-top: -20px !important; }
  .dashboard_list { position: static; display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; padding: 7px !important; scrollbar-width: none; }
  .dashboard_list::-webkit-scrollbar { display: none; }
  .dashboard_list .row { flex: 0 0 auto; }
  .dashboard_list a { width: max-content !important; margin: 0 !important; white-space: nowrap; }
  .privacy_policy,
  .contact_content,
  .invoice_content,
  .payment_history,
  .payment_invoice,
  .proposals,
  .contact_detail,
  .dashboard_search { padding: 18px !important; }
}

@media (max-width: 767.98px) {
  body { font-size: 15px !important; }
  .container { padding-left: 16px; padding-right: 16px; }
  .jo-translate-label { display: none; }
  .jo-brand-logo { width: 46px; height: 46px; }
  .jo-brand-name { font-size: 18px; }
  .jo-brand-subtitle { font-size: 9px; letter-spacing: 1.7px; }
  section.search_results.jo-hero,
  section.search_results { min-height: 430px; }
  .jo-hero-image,
  section.search_results > img { object-position: 67% center; }
  .jo-hero-overlay { background: linear-gradient(90deg, rgba(50,10,24,.94), rgba(61,13,30,.80) 70%, rgba(53,15,28,.55)); }
  .min-vh-hero { min-height: 430px; padding: 46px 0 64px; }
  .jo-hero h1 { font-size: clamp(36px, 11vw, 49px) !important; letter-spacing: -1px; }
  .jo-hero p { font-size: 15px; }
  .jo-hero-actions .btn { width: 100%; }
  .jo-hero-trust { gap: 8px !important; flex-direction: column; }
  .jo-search-card { padding: 18px; border-radius: 17px; }
  .jo-search-intro h2 { font-size: 20px; }
  .jo-benefits,
  section.middle_part_content,
  .jo-community-section,
  section.middle_part_gallery { padding: 46px 0 !important; }
  .jo-photo-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 210px 135px; margin-top: 24px; }
  .jo-photo-main { grid-column: 1 / span 2; grid-row: auto; }
  section.middle_content,
  section.middle_part { padding: 22px 0 42px !important; }
  .banner_part { border-radius: 14px; }
  .login_row_padding { margin-top: 16px !important; border-radius: 17px; }
  .login_content { min-height: auto; padding: 22px !important; }
  .register_heading { padding: 22px 20px 6px !important; }
  .register_content { padding: 14px 20px 22px !important; }
  .register_right_content span { display: block; margin: 0 0 8px !important; }
  .dashboard { padding: 14px !important; }
  .profile_content { grid-template-columns: 44px 1fr; }
  .profile_content figure { width: 44px !important; height: 44px !important; }
  .logout a { padding: 8px 10px; font-size: 12px; }
  .registration_content { padding: 16px !important; border-radius: 16px; }
  .search_category_content { padding: 17px !important; }
  .registration_invoice { align-items: flex-start; flex-direction: column; gap: 7px; }
  .jo-footer-copy { font-size: 13px; }
  footer.site-footer { padding-top: 38px !important; }
}

@media (max-width: 479.98px) {
  .jo-brand-copy { max-width: 145px; }
  .jo-hero-kicker { font-size: 11px; }
  .jo-hero h1 { font-size: 35px !important; }
  .jo-search-card { margin-left: -2px; margin-right: -2px; }
  .jo-section-heading { margin-bottom: 26px; }
  .jo-section-heading h2,
  .jo-community-section h2 { font-size: 30px; }
  .jo-photo-grid { grid-template-rows: 180px 110px; }
  .privacy_policy,
  .contact_content,
  .invoice_content,
  .payment_history,
  .payment_invoice,
  .proposals,
  .contact_detail,
  .dashboard_search,
  .registration_content { padding: 15px !important; }
  .profile_content p { font-size: 15px !important; }
  .logout a { width: 42px; height: 42px; justify-content: center; font-size: 0; }
  .logout a i { font-size: 15px; }
  .search_category_content .col-lg-12 { align-items: flex-start; flex-direction: column; gap: 2px; }
  .search_category_content p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Search-results hero compatibility */
section.search_results:not(.jo-hero)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(49,10,24,.88), rgba(66,15,34,.60) 55%, rgba(52,17,28,.18));
  pointer-events: none;
}
section.search_results:not(.jo-hero) .search_heading {
  position: relative !important;
  inset: auto !important;
  z-index: 2;
  width: min(1180px, calc(100% - 32px)) !important;
  min-height: 360px;
  display: flex;
  align-items: center;
  margin: 0 auto !important;
  padding: 45px 0 !important;
  text-align: left !important;
}
section.search_results:not(.jo-hero) .search_heading h1 {
  max-width: 700px;
}

/* Mobile app-like bottom CTA/navigation — intentionally hidden on tablet/desktop */
.jo-mobile-bottom-nav {
  display: none;
}

@media (max-width: 767.98px) {
  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }

  .jo-mobile-bottom-nav {
    position: fixed;
    z-index: 1045;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
    gap: 2px;
    min-height: 68px;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(123, 30, 58, .10);
    background: rgba(255, 253, 250, .97);
    box-shadow: 0 -10px 30px rgba(45, 24, 31, .10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .jo-mobile-nav-item {
    position: relative;
    min-width: 0;
    min-height: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 3px 3px;
    border-radius: 13px;
    color: #74696d !important;
    text-align: center;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
  }

  .jo-mobile-nav-item:active {
    transform: scale(.96);
  }

  .jo-mobile-nav-icon {
    width: 30px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-size: 18px;
    line-height: 1;
    transition: .18s ease;
  }

  .jo-mobile-nav-label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: inherit;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .jo-mobile-nav-item.active,
  .jo-mobile-nav-item:hover {
    color: var(--jo-maroon) !important;
    background: rgba(123, 30, 58, .055);
  }

  .jo-mobile-nav-item.active .jo-mobile-nav-icon {
    background: var(--jo-maroon-soft);
    color: var(--jo-maroon);
  }

  .jo-mobile-nav-primary .jo-mobile-nav-icon-emphasis,
  .jo-mobile-nav-item .jo-mobile-nav-icon-emphasis {
    width: 38px;
    height: 32px;
    margin-top: -3px;
    border-radius: 12px;
    background: var(--jo-maroon);
    color: #fff;
    box-shadow: 0 6px 15px rgba(123, 30, 58, .22);
  }

  .jo-mobile-nav-item.active .jo-mobile-nav-icon-emphasis,
  .jo-mobile-nav-primary:hover .jo-mobile-nav-icon-emphasis {
    background: var(--jo-maroon-dark);
    color: #fff;
  }
}

@media (min-width: 768px) {
  .jo-mobile-bottom-nav {
    display: none !important;
  }
}

/* =========================================================
   Homepage V2 — mission-led storytelling
   Presentation only; no backend/flow changes.
   ========================================================= */

.jo-home-hero .min-vh-hero { min-height: 500px; }
.jo-home-hero .jo-hero-overlay {
  background:
    radial-gradient(circle at 74% 38%, rgba(214,166,71,.11), transparent 19rem),
    linear-gradient(90deg, rgba(45,8,22,.95) 0%, rgba(72,14,34,.86) 43%, rgba(58,19,32,.34) 72%, rgba(0,0,0,.08) 100%);
}
.jo-home-hero .jo-hero-image { object-position: 62% center; }
.jo-home-hero h1 { max-width: 680px; }
.jo-home-proof { margin-top: 20px; }
.jo-home-proof span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.90);
  font-size: 11px;
  font-weight: 700;
}
.jo-home-proof i { color: #f0ca73; }

.jo-display-heading {
  margin: 0 0 16px;
  color: var(--jo-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 4.6vw, 49px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.8px;
}
.jo-lead-copy {
  margin: 0;
  color: var(--jo-muted);
  font-size: 17px;
  line-height: 1.75;
}

.jo-home-intro,
.jo-home-purpose,
.jo-home-values,
.jo-home-process,
.jo-home-responsibility,
.jo-home-mission { padding: 76px 0; }
.jo-home-intro { background: #fffdf9; }
.jo-home-purpose { background: #fbf6f3; }
.jo-home-values { background: #fff; }
.jo-home-process { background: #fffaf4; }
.jo-home-responsibility { background: #fff; }
.jo-home-mission { padding-top: 68px; padding-bottom: 86px; background: linear-gradient(180deg, #fff 0%, #fff8ef 100%); }

/* Reach / gap visual */
.jo-reach-visual {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(123,30,58,.08);
  border-radius: 30px;
  background:
    radial-gradient(circle at center, rgba(214,166,71,.12) 0 14%, transparent 15%),
    linear-gradient(135deg, #fff 0%, #fff8f3 54%, #f9eef2 100%);
  box-shadow: var(--jo-shadow-sm);
}
.jo-reach-center {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: 126px;
  height: 126px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transform: translate(-50%, -50%);
  border: 8px solid #fff;
  border-radius: 50%;
  background: var(--jo-maroon);
  color: #fff;
  box-shadow: 0 16px 40px rgba(86,17,38,.22);
}
.jo-reach-center strong { font-size: 14px; }
.jo-reach-center small { color: rgba(255,255,255,.7); font-size: 10px; }
.jo-reach-icon { font-size: 24px; color: #f6d486; }
.jo-reach-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px dashed rgba(123,30,58,.22);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.jo-reach-ring-one { width: 245px; height: 245px; }
.jo-reach-ring-two { width: 355px; height: 355px; }
.jo-reach-node {
  position: absolute;
  z-index: 3;
  min-width: 116px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px;
  border: 1px solid #efe2e6;
  border-radius: 15px;
  background: rgba(255,255,255,.96);
  color: var(--jo-maroon);
  text-align: center;
  box-shadow: 0 8px 24px rgba(76,31,47,.09);
}
.jo-reach-node i { font-size: 20px; color: var(--jo-gold-dark); }
.jo-reach-node span { color: #4f4549; font-size: 11px; font-weight: 750; }
.jo-node-one { top: 28px; left: 50%; transform: translateX(-50%); }
.jo-node-two { top: 50%; right: 23px; transform: translateY(-50%); }
.jo-node-three { bottom: 25px; left: 50%; transform: translateX(-50%); }
.jo-node-four { top: 50%; left: 23px; transform: translateY(-50%); }

/* Purpose */
.jo-purpose-card {
  position: relative;
  overflow: hidden;
  padding: 28px 25px 25px;
  border: 1px solid var(--jo-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(76,31,47,.055);
  transition: transform .2s ease, box-shadow .2s ease;
}
.jo-purpose-card:hover { transform: translateY(-4px); box-shadow: var(--jo-shadow-sm); }
.jo-purpose-card-featured { border-color: rgba(214,166,71,.38); background: linear-gradient(145deg, #fff, #fff9ed); }
.jo-purpose-number {
  position: absolute;
  top: 13px;
  right: 16px;
  color: rgba(123,30,58,.10);
  font-size: 45px;
  font-weight: 900;
  line-height: 1;
}
.jo-purpose-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 16px;
  background: var(--jo-maroon-soft);
  color: var(--jo-maroon);
  font-size: 21px;
}
.jo-purpose-card-featured .jo-purpose-icon { background: #fff0ca; color: #9b6a0c; }
.jo-purpose-card h3 { margin: 0 0 9px; color: var(--jo-ink); font-size: 18px; font-weight: 800; }
.jo-purpose-card p { margin: 0; color: var(--jo-muted); font-size: 14px; line-height: 1.7; }

/* Social initiative / free */
.jo-home-service { padding: 24px 0 76px; background: #fbf6f3; }
.jo-service-panel {
  position: relative;
  overflow: hidden;
  padding: 48px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 12%, rgba(214,166,71,.22), transparent 18rem),
    linear-gradient(135deg, #4f1428, #7a1f3b 58%, #461125);
  color: #fff;
  box-shadow: 0 26px 65px rgba(76,31,47,.17);
}
.jo-service-panel::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -100px;
  bottom: -120px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 50%;
}
.jo-service-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: #f6d98f;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.jo-service-panel h2 { margin: 0 0 14px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: clamp(31px, 4vw, 48px); line-height: 1.13; }
.jo-service-panel p { max-width: 670px; margin: 0; color: rgba(255,255,255,.77); font-size: 15px; line-height: 1.75; }
.jo-service-points { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.jo-service-points span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 9px; background: rgba(255,255,255,.08); color: #fff; font-size: 12px; font-weight: 700; }
.jo-service-points i { color: #f2cf79; }
.jo-free-card {
  position: relative;
  z-index: 2;
  max-width: 355px;
  margin-left: auto;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 24px;
  background: rgba(255,255,255,.97);
  color: var(--jo-ink);
  text-align: center;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}
.jo-free-card small { display: block; color: var(--jo-muted); font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.jo-free-card strong { display: block; margin: 3px 0 -2px; color: var(--jo-maroon); font-size: 72px; line-height: 1; letter-spacing: -4px; }
.jo-free-card strong sup { margin-right: 3px; font-size: 29px; vertical-align: 26px; }
.jo-free-card > span { display: inline-flex; margin-bottom: 13px; padding: 5px 10px; border-radius: 999px; background: #edf7f1; color: var(--jo-success); font-size: 12px; font-weight: 800; }
.jo-free-card p { margin: 0 0 18px; color: var(--jo-muted); font-size: 13px; }

/* Values */
.jo-values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.jo-values-grid article {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  border: 1px solid var(--jo-border);
  border-radius: 21px;
  background: #fffaf6;
}
.jo-values-grid article:nth-child(2),
.jo-values-grid article:nth-child(3) { background: #f7eef2; }
.jo-values-grid i { margin-bottom: 16px; color: var(--jo-maroon); font-size: 25px; }
.jo-values-grid strong { margin-bottom: 4px; color: var(--jo-ink); font-size: 17px; }
.jo-values-grid span { color: var(--jo-muted); font-size: 12px; line-height: 1.5; }

/* Privacy */
.jo-home-privacy { padding: 72px 0; background: #fff; }
.jo-privacy-panel {
  padding: 44px;
  border-radius: 28px;
  background: linear-gradient(135deg, #21171b, #3c202b 54%, #50192d);
  color: #fff;
  box-shadow: var(--jo-shadow);
}
.jo-eyebrow-light { color: #f0cc79; }
.jo-privacy-panel h2 { margin: 0 0 13px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 4vw, 44px); line-height: 1.14; }
.jo-privacy-panel p { margin: 0; color: rgba(255,255,255,.66); font-size: 14px; line-height: 1.75; }
.jo-privacy-card {
  min-height: 172px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.07);
  text-align: center;
}
.jo-privacy-card i { margin-bottom: 14px; color: #f1ce7e; font-size: 27px; }
.jo-privacy-card strong { margin-bottom: 5px; color: #fff; font-size: 14px; }
.jo-privacy-card span { color: rgba(255,255,255,.60); font-size: 11px; }

/* Process */
.jo-process-track { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.jo-process-track::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 38px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123,30,58,.22) 12%, rgba(123,30,58,.22) 88%, transparent);
}
.jo-process-step {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 20px 11px 16px;
  text-align: center;
}
.jo-process-step > i {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto 15px;
  border: 7px solid #fffaf4;
  border-radius: 50%;
  background: var(--jo-maroon);
  color: #fff;
  font-size: 17px;
  box-shadow: 0 7px 20px rgba(123,30,58,.16);
}
.jo-step-number { position: absolute; top: 4px; right: calc(50% - 37px); width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--jo-gold); color: #fff; font-size: 9px; font-weight: 900; }
.jo-process-step h3 { margin: 0 0 5px; color: var(--jo-ink); font-size: 13px; font-weight: 800; }
.jo-process-step p { margin: 0; color: var(--jo-muted); font-size: 11px; line-height: 1.5; }
.jo-large-cta { min-width: 250px; }

/* Families retain control */
.jo-family-flow { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 15px; }
.jo-family-box {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 18px;
  border: 1px solid var(--jo-border);
  border-radius: 22px;
  background: #fffaf5;
  text-align: center;
}
.jo-family-box i { color: var(--jo-maroon); font-size: 30px; }
.jo-family-box strong { color: var(--jo-ink); font-size: 15px; }
.jo-family-connector { display: flex; flex-direction: column; align-items: center; color: var(--jo-muted); text-align: center; }
.jo-family-connector span { width: 65px; height: 65px; display: grid; place-items: center; margin-bottom: 7px; border-radius: 50%; background: #fff; box-shadow: var(--jo-shadow-sm); }
.jo-family-connector img { width: 50px; height: 50px; object-fit: contain; border-radius: 10px; }
.jo-family-connector strong { color: var(--jo-maroon); font-size: 12px; }
.jo-family-connector small { font-size: 10px; }
.jo-family-decisions { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.jo-family-decisions span { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 999px; background: var(--jo-maroon-soft); color: var(--jo-maroon); font-size: 10px; font-weight: 750; }

/* Mission CTA */
.jo-mission-card {
  position: relative;
  overflow: hidden;
  padding: 58px 40px;
  border: 1px solid rgba(214,166,71,.26);
  border-radius: 30px;
  background:
    radial-gradient(circle at 8% 8%, rgba(214,166,71,.12), transparent 16rem),
    radial-gradient(circle at 92% 86%, rgba(123,30,58,.08), transparent 17rem),
    #fff;
  box-shadow: var(--jo-shadow-sm);
}
.jo-mission-mark { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 18px; background: var(--jo-maroon); color: #f3d080; font-size: 21px; transform: rotate(-6deg); }
.jo-mission-card h2 { max-width: 760px; margin: 0 auto 15px; color: var(--jo-ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(32px, 4.6vw, 50px); line-height: 1.12; }
.jo-mission-card p { max-width: 760px; margin: 0 auto 24px; color: var(--jo-muted); font-size: 15px; line-height: 1.75; }
.jo-outline-dark-btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border: 1px solid #cdbfc4; border-radius: 12px; background: #fff; color: var(--jo-ink) !important; font-weight: 750; }
.jo-outline-dark-btn:hover { border-color: var(--jo-maroon); color: var(--jo-maroon) !important; }
.jo-mission-signoff { margin-top: 24px; color: #8a797f; font-size: 11px; font-weight: 750; letter-spacing: .35px; text-transform: uppercase; }
.jo-mission-signoff span { margin: 0 5px; color: var(--jo-gold-dark); }

@media (max-width: 991.98px) {
  .jo-home-intro,
  .jo-home-purpose,
  .jo-home-values,
  .jo-home-process,
  .jo-home-responsibility,
  .jo-home-mission { padding: 62px 0; }
  .jo-service-panel,
  .jo-privacy-panel { padding: 34px; }
  .jo-free-card { max-width: none; margin: 0; }
  .jo-process-track { grid-template-columns: repeat(3, 1fr); gap: 16px 8px; }
  .jo-process-track::before { display: none; }
}

@media (max-width: 767.98px) {
  .jo-home-hero .min-vh-hero { min-height: 520px; padding-top: 38px; padding-bottom: 76px; }
  .jo-home-hero .jo-hero-image { object-position: 69% center; }
  .jo-home-hero .jo-hero-overlay { background: linear-gradient(90deg, rgba(42,8,21,.96), rgba(72,14,34,.84) 72%, rgba(54,16,29,.58)); }
  .jo-home-proof { display: grid !important; grid-template-columns: 1fr; gap: 6px !important; }
  .jo-home-proof span { width: max-content; max-width: 100%; }
  .jo-home-intro,
  .jo-home-purpose,
  .jo-home-values,
  .jo-home-process,
  .jo-home-responsibility,
  .jo-home-mission { padding: 50px 0; }
  .jo-display-heading { font-size: 32px; }
  .jo-lead-copy { font-size: 15px; line-height: 1.7; }
  .jo-reach-visual { min-height: 350px; margin-top: 12px; border-radius: 22px; }
  .jo-reach-ring-two { width: 300px; height: 300px; }
  .jo-reach-ring-one { width: 215px; height: 215px; }
  .jo-reach-center { width: 112px; height: 112px; }
  .jo-reach-node { min-width: 94px; padding: 9px 7px; }
  .jo-reach-node span { font-size: 10px; }
  .jo-node-one { top: 16px; }
  .jo-node-two { right: 8px; }
  .jo-node-three { bottom: 16px; }
  .jo-node-four { left: 8px; }
  .jo-purpose-card { padding: 23px 20px; }
  .jo-home-service { padding: 12px 0 50px; }
  .jo-service-panel { padding: 26px 20px; border-radius: 22px; }
  .jo-service-panel h2 { font-size: 32px; }
  .jo-service-points { display: grid; grid-template-columns: 1fr; }
  .jo-free-card { padding: 24px 20px; border-radius: 19px; }
  .jo-free-card strong { font-size: 62px; }
  .jo-values-grid { gap: 9px; }
  .jo-values-grid article { min-height: 145px; padding: 18px; border-radius: 17px; }
  .jo-values-grid i { margin-bottom: 12px; font-size: 22px; }
  .jo-home-privacy { padding: 50px 0; }
  .jo-privacy-panel { padding: 27px 20px; border-radius: 22px; }
  .jo-privacy-panel h2 { font-size: 32px; }
  .jo-privacy-card { min-height: 126px; }
  .jo-process-track { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .jo-process-step { padding: 14px 5px; }
  .jo-process-step > i { margin-bottom: 11px; }
  .jo-family-flow { grid-template-columns: 1fr 58px 1fr; gap: 7px; }
  .jo-family-box { min-height: 125px; padding: 12px 7px; border-radius: 16px; }
  .jo-family-connector span { width: 50px; height: 50px; }
  .jo-family-connector img { width: 39px; height: 39px; }
  .jo-family-connector strong { font-size: 9px; }
  .jo-family-connector small { font-size: 8px; }
  .jo-family-decisions { justify-content: flex-start; }
  .jo-mission-card { padding: 38px 20px; border-radius: 22px; }
  .jo-mission-card h2 { font-size: 33px; }
  .jo-mission-actions .btn { width: 100%; }
  .jo-mission-signoff { line-height: 1.8; }
}

@media (max-width: 399.98px) {
  .jo-reach-node { min-width: 82px; }
  .jo-reach-ring-two { width: 276px; height: 276px; }
  .jo-values-grid { grid-template-columns: 1fr 1fr; }
  .jo-values-grid article { min-height: 132px; padding: 15px; }
  .jo-values-grid strong { font-size: 15px; }
  .jo-family-flow { grid-template-columns: 1fr 48px 1fr; }
  .jo-family-box strong { font-size: 13px; }
  .jo-family-connector span { width: 43px; height: 43px; }
  .jo-family-connector img { width: 34px; height: 34px; }
}

/* =========================================================
   Header V3 — refined sticky navigation
   Presentation only; existing routes/account logic unchanged.
   ========================================================= */
header.site-header {
  position: sticky !important;
  top: 0;
  z-index: 1050 !important;
  isolation: isolate;
  float: none !important;
  width: 100%;
  padding: 0 !important;
  background: #fffdf9 !important;
  border-bottom: 1px solid rgba(82, 47, 57, .08) !important;
  box-shadow: 0 1px 0 rgba(82, 47, 57, .02);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: box-shadow .22s ease, border-color .22s ease, background-color .22s ease;
}

.site-header .navbar {
  min-height: 78px;
  padding: 10px 0;
  transition: min-height .22s ease, padding .22s ease;
}

.jo-navbar-shell {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.jo-brand {
  flex: 0 0 auto;
  gap: 10px;
  padding: 0;
}

.jo-brand-logo {
  width: 50px;
  height: 50px;
  border-radius: 11px;
  box-shadow: 0 4px 12px rgba(49, 22, 31, .08);
  transition: width .22s ease, height .22s ease, border-radius .22s ease, box-shadow .22s ease;
}

.jo-brand-name {
  color: #2e2529;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -.45px;
}

.jo-brand-name strong { color: var(--jo-maroon); }
.jo-brand-subtitle {
  margin-top: 4px;
  color: #a87819;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 2.4px;
}

.jo-main-nav {
  gap: 4px;
  padding: 0 12px;
}

.jo-main-nav .nav-link {
  position: relative;
  padding: 11px 13px !important;
  border-radius: 10px;
  background: transparent !important;
  color: #554a4f !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: color .18s ease, background-color .18s ease;
}

.jo-main-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--jo-maroon);
  transform: translateX(-50%);
  transition: width .18s ease;
}

.jo-main-nav .nav-link:hover {
  background: #fbf5ee !important;
  color: var(--jo-maroon) !important;
}

.jo-main-nav .nav-link.active {
  background: transparent !important;
  color: var(--jo-maroon) !important;
}
.jo-main-nav .nav-link.active::after { width: 22px; }

.jo-header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
}

.jo-header-search {
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 43px;
  padding: 9px 13px;
  border: 1px solid #eadfcf;
  border-radius: 11px;
  background: #fffaf2;
  color: #67554a;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}
.jo-header-search i { color: #ad7c1f; }
.jo-header-search:hover {
  border-color: #ddc795;
  background: #fff5df;
  color: var(--jo-maroon);
  transform: translateY(-1px);
}

.jo-account-btn {
  min-height: 43px;
  padding: 9px 14px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 7px 18px rgba(123, 30, 58, .16);
  white-space: nowrap;
}

.jo-menu-toggle {
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e8ddd7 !important;
  border-radius: 12px;
  background: #fff !important;
  box-shadow: 0 3px 10px rgba(58, 34, 42, .05) !important;
}
.jo-menu-lines {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
}
.jo-menu-lines span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #4a3940;
}

/* Compact state after scroll: sticky but never intrusive. */
.site-header.is-scrolled {
  border-bottom-color: rgba(82, 47, 57, .12) !important;
  box-shadow: 0 10px 30px rgba(44, 25, 31, .09);
}
.site-header.is-scrolled .navbar {
  min-height: 66px;
  padding: 6px 0;
}
.site-header.is-scrolled .jo-brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  box-shadow: 0 3px 9px rgba(49, 22, 31, .06);
}
.site-header.is-scrolled .jo-brand-name { font-size: 18px; }
.site-header.is-scrolled .jo-brand-subtitle { font-size: 9px; letter-spacing: 2px; }
.site-header.is-scrolled .jo-account-btn,
.site-header.is-scrolled .jo-header-search { min-height: 40px; }

@media (min-width: 992px) {
  .site-header .navbar-collapse {
    min-width: 0;
  }
  .jo-main-nav { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 991.98px) {
  .site-header .navbar { min-height: 68px; padding: 7px 0; }
  .jo-navbar-shell { flex-wrap: wrap; }
  .jo-brand-logo { width: 44px; height: 44px; }
  .jo-brand-name { font-size: 18px; }
  .jo-brand-subtitle { font-size: 9px; letter-spacing: 1.8px; }
  .site-header.is-scrolled .navbar { min-height: 62px; padding: 5px 0; }
  .site-header.is-scrolled .jo-brand-logo { width: 40px; height: 40px; }

  .site-header .navbar-collapse {
    flex-basis: 100%;
    width: 100%;
    margin-top: 8px;
    padding: 9px;
    border: 1px solid #eee3dd;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(45, 25, 31, .10);
  }
  .jo-main-nav {
    gap: 2px;
    padding: 0;
  }
  .jo-main-nav .nav-link {
    padding: 12px 12px !important;
    border-radius: 10px;
  }
  .jo-main-nav .nav-link::after { display: none; }
  .jo-main-nav .nav-link.active { background: #fbf3f5 !important; }
  .jo-header-actions {
    width: 100%;
    display: block;
    margin-left: 0 !important;
    padding-top: 4px;
  }
  .jo-account,
  .jo-account .dropdown { width: 100%; }
}

@media (max-width: 575.98px) {
  .container { --bs-gutter-x: 28px; }
  .jo-brand { gap: 8px; }
  .jo-brand-logo { width: 42px; height: 42px; }
  .jo-brand-copy { max-width: 128px; }
  .jo-brand-name { font-size: 17px; }
  .jo-brand-subtitle { margin-top: 3px; font-size: 8px; letter-spacing: 1.55px; }
  .jo-menu-toggle { width: 42px; height: 42px; border-radius: 11px; }
}

/* =========================================================
   Homepage V4 — richer visual hero, image story & ad inventory
   Frontend only. Existing application logic/routes unchanged.
   ========================================================= */

/* New split hero: avoids stretching a short banner image and gives the
   homepage a stronger matrimonial/family visual on every screen size. */
section.search_results.jo-home-hero-v4 {
  min-height: auto;
  overflow: hidden;
  background:
    linear-gradient(118deg, #3d0d20 0%, #651731 54%, #8b2f4a 100%);
}
.jo-home-hero-v4::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to right, #000, transparent 80%);
  opacity: .36;
}
.jo-home-hero-v4 .min-vh-hero {
  min-height: 565px;
  padding: 58px 0 66px;
}
.jo-home-hero-v4 h1 { max-width: 620px; }
.jo-home-hero-v4 .jo-hero-kicker { background: rgba(255,255,255,.08); }
.jo-home-hero-v4 .jo-secondary-btn { border-color: rgba(255,255,255,.42); }
.jo-hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
}
.jo-hero-glow-one {
  width: 380px;
  height: 380px;
  right: 6%;
  top: -190px;
  background: rgba(231,188,91,.14);
}
.jo-hero-glow-two {
  width: 280px;
  height: 280px;
  left: -150px;
  bottom: -150px;
  border: 1px solid rgba(255,255,255,.08);
}
.jo-hero-visual {
  position: relative;
  width: min(100%, 535px);
  height: 465px;
  margin-left: auto;
}
.jo-hero-photo-main,
.jo-hero-photo-accent {
  position: absolute;
  overflow: hidden;
  border: 5px solid rgba(255,255,255,.90);
  background: #e8d8d9;
  box-shadow: 0 25px 65px rgba(22,4,11,.30);
}
.jo-hero-photo-main {
  top: 0;
  right: 0;
  width: 71%;
  height: 100%;
  border-radius: 34px 34px 34px 95px;
}
.jo-hero-photo-accent {
  left: 0;
  bottom: 28px;
  z-index: 2;
  width: 45%;
  height: 45%;
  border-radius: 28px 28px 70px 28px;
}
.jo-hero-photo-main img,
.jo-hero-photo-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.jo-hero-photo-main img { object-position: center 24%; }
.jo-hero-photo-accent img { object-position: center; }
.jo-hero-visual-badge {
  position: absolute;
  z-index: 3;
  min-width: 190px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 16px;
  background: rgba(255,253,249,.96);
  color: var(--jo-ink);
  box-shadow: 0 14px 36px rgba(29,7,14,.18);
  backdrop-filter: blur(10px);
}
.jo-hero-visual-badge > span {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--jo-maroon-soft);
  color: var(--jo-maroon);
}
.jo-hero-visual-badge strong,
.jo-hero-visual-badge small { display: block; }
.jo-hero-visual-badge strong { font-size: 12px; line-height: 1.25; }
.jo-hero-visual-badge small { margin-top: 2px; color: var(--jo-muted); font-size: 9px; }
.jo-hero-visual-badge-top { top: 34px; left: -3px; }
.jo-hero-visual-badge-bottom { right: -8px; bottom: 30px; }

/* Visual family-story section */
.jo-home-photo-story {
  padding: 78px 0;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #fffaf5 100%);
}
.jo-story-collage {
  position: relative;
  min-height: 510px;
  max-width: 545px;
}
.jo-story-photo {
  position: absolute;
  overflow: hidden;
  margin: 0;
  border: 6px solid #fff;
  border-radius: 24px;
  background: #eee;
  box-shadow: 0 20px 55px rgba(62,28,40,.13);
}
.jo-story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.jo-story-photo-main {
  left: 0;
  top: 45px;
  width: 55%;
  height: 390px;
  transform: rotate(-2deg);
}
.jo-story-photo-top {
  right: 2%;
  top: 0;
  width: 42%;
  height: 230px;
  transform: rotate(3deg);
}
.jo-story-photo-bottom {
  right: 0;
  bottom: 0;
  width: 49%;
  height: 250px;
  transform: rotate(1deg);
}
.jo-story-note {
  position: absolute;
  z-index: 5;
  left: 30%;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border: 1px solid var(--jo-border);
  border-radius: 15px;
  background: rgba(255,255,255,.97);
  box-shadow: var(--jo-shadow-sm);
}
.jo-story-note > i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff2d3;
  color: #9a6810;
}
.jo-story-note strong,
.jo-story-note small { display: block; }
.jo-story-note strong { color: var(--jo-ink); font-size: 13px; }
.jo-story-note small { color: var(--jo-muted); font-size: 10px; }
.jo-story-points {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.jo-story-points span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #51464a;
  font-size: 14px;
  font-weight: 650;
}
.jo-story-points i {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  border-radius: 50%;
  background: #edf7f1;
  color: var(--jo-success);
  font-size: 10px;
}

/* Neutral advertising inventory. Deliberately not tied to the social
   initiative, so future commercial brand campaigns can use these slots. */
.jo-ad-zone {
  padding: 28px 0 34px;
  border-top: 1px solid #eee9e5;
  border-bottom: 1px solid #eee9e5;
  background: #f7f7f6;
}
.jo-ad-zone-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: #8b8886;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
}
.jo-ad-zone-label::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: #e8e5e2;
}
.jo-display-ad {
  position: relative;
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px 12px;
  border: 1px solid #dedbd8;
  border-radius: 10px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(38,31,33,.035);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.jo-display-ad:hover {
  border-color: #cfc9c5;
  color: inherit;
  box-shadow: 0 8px 22px rgba(38,31,33,.08);
  transform: translateY(-1px);
}
.jo-display-ad img {
  display: block;
  width: 100%;
  max-height: 92px;
  object-fit: contain;
}
.jo-ad-marker {
  position: absolute;
  z-index: 2;
  top: 6px;
  right: 6px;
  min-width: 24px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 4px;
  background: rgba(255,255,255,.94);
  color: #66615f;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .2px;
}

@media (max-width: 991.98px) {
  .jo-home-hero-v4 .min-vh-hero { min-height: auto; padding: 50px 0 58px; }
  .jo-hero-visual { width: min(100%, 500px); height: 420px; margin: 10px auto 0; }
  .jo-home-photo-story { padding: 62px 0; }
  .jo-story-collage { margin: 0 auto 10px; }
}

@media (max-width: 767.98px) {
  .jo-home-hero-v4 .min-vh-hero { min-height: auto; padding: 34px 0 42px; }
  .jo-home-hero-v4 h1 { font-size: 41px !important; letter-spacing: -.9px; }
  .jo-home-hero-v4 p { font-size: 15px; line-height: 1.6; }
  .jo-home-hero-v4 .jo-home-proof { margin-bottom: 4px; }
  .jo-hero-visual { height: 330px; margin-top: 12px; }
  .jo-hero-photo-main { width: 70%; border-width: 4px; border-radius: 24px 24px 24px 65px; }
  .jo-hero-photo-accent { bottom: 22px; width: 44%; height: 43%; border-width: 4px; border-radius: 20px 20px 48px 20px; }
  .jo-hero-visual-badge { min-width: 156px; padding: 9px 10px; border-radius: 13px; }
  .jo-hero-visual-badge > span { width: 31px; height: 31px; flex-basis: 31px; }
  .jo-hero-visual-badge strong { font-size: 10px; }
  .jo-hero-visual-badge small { font-size: 8px; }
  .jo-hero-visual-badge-top { top: 20px; left: 0; }
  .jo-hero-visual-badge-bottom { right: 0; bottom: 18px; }

  .jo-home-photo-story { padding: 50px 0; }
  .jo-story-collage { min-height: 395px; max-width: 390px; }
  .jo-story-photo { border-width: 4px; border-radius: 18px; }
  .jo-story-photo-main { top: 34px; width: 57%; height: 300px; }
  .jo-story-photo-top { width: 42%; height: 180px; }
  .jo-story-photo-bottom { width: 49%; height: 190px; }
  .jo-story-note { left: 23%; bottom: 2px; padding: 9px 10px; border-radius: 12px; }
  .jo-story-note > i { width: 32px; height: 32px; }
  .jo-story-note strong { font-size: 11px; }
  .jo-story-note small { font-size: 8px; }

  .jo-ad-zone { padding: 21px 0 26px; }
  .jo-display-ad { min-height: 96px; padding: 10px; }
  .jo-display-ad img { max-height: 76px; }
}

@media (max-width: 399.98px) {
  .jo-home-hero-v4 h1 { font-size: 37px !important; }
  .jo-hero-visual { height: 300px; }
  .jo-hero-visual-badge-bottom { display: none; }
  .jo-story-collage { min-height: 360px; }
  .jo-story-photo-main { height: 275px; }
  .jo-story-photo-top { height: 160px; }
  .jo-story-photo-bottom { height: 170px; }
}

/* ================================================================
   Searchable language selector — Google Translate powered
   ================================================================ */
.jo-translate-bar {
  position: relative;
  z-index: 1035;
  width: 100%;
  background: #4d1528;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #fff;
}
.jo-translate-bar .container {
  min-height: 42px;
  padding-top: 4px;
  padding-bottom: 4px;
}
.jo-language-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 4px 11px 4px 8px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  color: #fff;
  line-height: 1;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.jo-language-trigger:hover,
.jo-language-trigger:focus-visible {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.32);
  color: #fff;
}
.jo-language-trigger:active { transform: scale(.985); }
.jo-language-trigger-icon {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  font-size: 14px;
}
.jo-language-trigger-copy {
  display: grid;
  gap: 2px;
  min-width: 72px;
  text-align: left;
}
.jo-language-trigger-copy small {
  color: rgba(255,255,255,.66);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .07em;
  line-height: 1;
  text-transform: uppercase;
}
.jo-language-trigger-copy strong {
  overflow: hidden;
  max-width: 120px;
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.jo-language-trigger-arrow {
  margin-left: 2px;
  color: rgba(255,255,255,.66);
  font-size: 9px;
}

/* Keep Google's native language control available to the translation engine,
   but not exposed as the site's UI. */
.jo-google-translate-engine {
  position: fixed !important;
  top: -10000px !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.jo-language-modal { z-index: 1090; }
.jo-language-modal .modal-dialog { max-width: 560px; }
.jo-language-modal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(37,20,26,.24);
}
.jo-language-modal-header {
  align-items: flex-start;
  padding: 22px 22px 17px;
  border-bottom: 1px solid #eee8e6;
  background: linear-gradient(145deg, #fffaf0 0%, #fff 70%);
}
.jo-language-modal-header .btn-close {
  flex: 0 0 auto;
  margin: 1px 0 0 12px;
  padding: 10px;
  border-radius: 50%;
  background-color: #f2ecea;
  opacity: .65;
}
.jo-language-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  color: var(--jo-maroon);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.jo-language-modal-header h2 {
  margin: 0;
  color: #2c2326;
  font-family: inherit;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.18;
}
.jo-language-modal-header p {
  margin: 6px 0 0;
  color: #776d70;
  font-size: 13px;
  line-height: 1.45;
}
.jo-language-modal-body {
  padding: 18px 20px 16px;
  background: #fff;
}
.jo-language-search-wrap {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  background: #fff;
}
.jo-language-search-wrap > i {
  position: absolute;
  left: 15px;
  z-index: 1;
  color: #988d90;
  font-size: 14px;
  pointer-events: none;
}
.jo-language-search.form-control {
  height: 48px;
  padding: 10px 46px 10px 42px;
  border: 1px solid #ddd5d2;
  border-radius: 13px;
  background: #fcfbfa;
  box-shadow: none;
  color: #2c2326;
  font-size: 14px;
}
.jo-language-search.form-control:focus {
  border-color: rgba(123,30,58,.58);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(123,30,58,.08);
}
.jo-language-search-clear {
  position: absolute;
  right: 8px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #eee8e6;
  color: #6b5e62;
  font-size: 12px;
}
.jo-language-popular {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 15px;
}
.jo-language-popular > span {
  margin-right: 2px;
  color: #857a7d;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}
.jo-language-popular button {
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid #e2d9d6;
  border-radius: 999px;
  background: #fff;
  color: #51474a;
  font-size: 12px;
  font-weight: 700;
  transition: .16s ease;
}
.jo-language-popular button:hover,
.jo-language-popular button:focus-visible {
  border-color: rgba(123,30,58,.32);
  background: #fff6f8;
  color: var(--jo-maroon);
}
.jo-language-list-status {
  padding: 26px 10px;
  color: #8a7f82;
  font-size: 13px;
  text-align: center;
}
.jo-language-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.jo-language-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 9px 11px 9px 13px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: #faf8f7;
  color: #463c3f;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.jo-language-option:hover,
.jo-language-option:focus-visible {
  border-color: #e2d6d3;
  background: #fff;
  color: var(--jo-maroon);
}
.jo-language-option.active {
  border-color: rgba(123,30,58,.22);
  background: #fff1f4;
  color: var(--jo-maroon);
}
.jo-language-option-check {
  display: none;
  flex: 0 0 auto;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--jo-maroon);
  color: #fff;
  font-size: 9px;
}
.jo-language-option.active .jo-language-option-check { display: grid; }
.jo-language-empty {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 34px 16px;
  color: #877b7e;
  text-align: center;
}
.jo-language-empty[hidden] { display: none !important; }
.jo-language-empty i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: #f4efed;
  color: var(--jo-maroon);
}
.jo-language-empty strong { color: #4a4043; font-size: 14px; }
.jo-language-empty span { font-size: 12px; }
.jo-language-modal-footer {
  justify-content: space-between;
  gap: 10px;
  padding: 13px 20px;
  border-top: 1px solid #eee8e6;
  background: #faf8f7;
}
.jo-language-modal-footer > span {
  color: #8a7f82;
  font-size: 10px;
}
.jo-language-original-btn {
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid #d9cfcc;
  border-radius: 9px;
  background: #fff;
  color: #5e5155;
  font-size: 11px;
  font-weight: 750;
}
.jo-language-original-btn:hover { border-color: #c9b7b1; color: var(--jo-maroon); }

@media (max-width: 767.98px) {
  .jo-translate-bar .container { min-height: 38px; }
  .jo-language-trigger {
    min-height: 30px;
    padding: 3px 9px 3px 6px;
    border-radius: 9px;
  }
  .jo-language-trigger-icon { width: 23px; height: 23px; font-size: 12px; }
  .jo-language-trigger-copy small { display: none; }
  .jo-language-trigger-copy { min-width: 0; }
  .jo-language-trigger-copy strong { max-width: 112px; font-size: 11px; }
  .jo-language-modal .modal-dialog {
    align-items: flex-end;
    min-height: calc(100% - 8px);
    margin: 8px 0 0;
  }
  .jo-language-modal .modal-content {
    max-height: 82vh;
    border-radius: 22px 22px 0 0;
  }
  .jo-language-modal-header { padding: 18px 18px 14px; }
  .jo-language-modal-header h2 { font-size: 21px; }
  .jo-language-modal-header p { font-size: 12px; }
  .jo-language-modal-body { padding: 14px 15px 12px; }
  .jo-language-search.form-control { height: 46px; font-size: 16px; } /* avoids iOS zoom */
  .jo-language-popular {
    flex-wrap: nowrap;
    margin: 0 -15px 13px;
    padding: 0 15px 3px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .jo-language-popular::-webkit-scrollbar { display: none; }
  .jo-language-popular > span,
  .jo-language-popular button { flex: 0 0 auto; }
  .jo-language-list { grid-template-columns: 1fr; gap: 5px; }
  .jo-language-option { min-height: 46px; font-size: 14px; }
  .jo-language-modal-footer {
    align-items: center;
    padding: 11px 15px calc(11px + env(safe-area-inset-bottom));
  }
  .jo-language-modal-footer > span { max-width: 50%; font-size: 9px; }
  .jo-language-original-btn { min-height: 38px; }
}

/* ================================================================
   Header V6 — opaque sticky surface + homepage motion system
   Frontend presentation only. No application routes/logic changed.
   ================================================================ */

/* Keep the sticky header visually independent from every page section.
   The extra specificity is intentional because the legacy stylesheet has
   older generic header/navbar rules. */
body > header#joSiteHeader.site-header,
body > header#joSiteHeader.site-header.is-scrolled {
  position: sticky !important;
  top: 0 !important;
  z-index: 1080 !important;
  background: #fffdf9 !important;
  background-color: #fffdf9 !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  isolation: isolate;
  border-bottom: 1px solid rgba(82, 47, 57, .10) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

body > header#joSiteHeader.site-header > .navbar,
body > header#joSiteHeader.site-header.is-scrolled > .navbar {
  position: relative;
  z-index: 1;
  background: #fffdf9 !important;
  background-color: #fffdf9 !important;
}

body > header#joSiteHeader.site-header::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: #fffdf9;
}

body > header#joSiteHeader.site-header.is-scrolled {
  box-shadow: 0 10px 32px rgba(44, 25, 31, .12) !important;
  border-bottom-color: rgba(82, 47, 57, .14) !important;
}

body > header#joSiteHeader.site-header .container,
body > header#joSiteHeader.site-header .jo-navbar-shell {
  position: relative;
  z-index: 2;
}

/* Smooth entry for the first screen. */
.jo-home-hero-v4 .jo-hero-content {
  animation: joHeroCopyIn .72s cubic-bezier(.2,.75,.25,1) both;
}
.jo-home-hero-v4 .jo-hero-visual {
  animation: joHeroVisualIn .82s .10s cubic-bezier(.2,.75,.25,1) both;
}
.jo-home-hero-v4 .jo-hero-photo-accent {
  animation: joHeroAccentFloat 5.8s 1.1s ease-in-out infinite;
}
.jo-home-hero-v4 .jo-hero-visual-badge-top {
  animation: joHeroBadgeFloat 4.8s .85s ease-in-out infinite;
}
.jo-home-hero-v4 .jo-hero-visual-badge-bottom {
  animation: joHeroBadgeFloat 5.3s 1.15s ease-in-out infinite reverse;
}

@keyframes joHeroCopyIn {
  from { opacity: 0; transform: translate3d(-20px, 18px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes joHeroVisualIn {
  from { opacity: 0; transform: translate3d(24px, 16px, 0) scale(.975); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes joHeroAccentFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -7px, 0); }
}
@keyframes joHeroBadgeFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -6px, 0); }
}

/* IntersectionObserver adds these classes only on the homepage. */
.jo-motion-ready .jo-reveal-section {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition:
    opacity .68s cubic-bezier(.2,.75,.25,1),
    transform .68s cubic-bezier(.2,.75,.25,1);
  will-change: opacity, transform;
}
.jo-motion-ready .jo-reveal-section.jo-reveal-from-left {
  transform: translate3d(-28px, 18px, 0);
}
.jo-motion-ready .jo-reveal-section.jo-reveal-from-right {
  transform: translate3d(28px, 18px, 0);
}
.jo-motion-ready .jo-reveal-section.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.jo-motion-ready .jo-reveal-section .jo-reveal-item {
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(.985);
  transition:
    opacity .52s cubic-bezier(.2,.75,.25,1),
    transform .52s cubic-bezier(.2,.75,.25,1);
  transition-delay: var(--jo-motion-delay, 0ms);
  will-change: opacity, transform;
}
.jo-motion-ready .jo-reveal-section.is-visible .jo-reveal-item {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Playful but restrained interaction on the content cards. */
.jo-home-purpose article,
.jo-values-grid article,
.jo-privacy-card,
.jo-process-step,
.jo-display-ad,
.jo-family-box,
.jo-free-card {
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
@media (hover: hover) and (pointer: fine) {
  .jo-home-purpose article:hover,
  .jo-values-grid article:hover,
  .jo-privacy-card:hover,
  .jo-process-step:hover,
  .jo-family-box:hover,
  .jo-free-card:hover {
    transform: translateY(-5px);
  }
}

/* Keep motion gentle on smaller screens. */
@media (max-width: 767.98px) {
  .jo-motion-ready .jo-reveal-section,
  .jo-motion-ready .jo-reveal-section.jo-reveal-from-left,
  .jo-motion-ready .jo-reveal-section.jo-reveal-from-right {
    transform: translate3d(0, 20px, 0);
  }
  .jo-motion-ready .jo-reveal-section.is-visible {
    transform: translate3d(0, 0, 0);
  }
  .jo-home-hero-v4 .jo-hero-photo-accent,
  .jo-home-hero-v4 .jo-hero-visual-badge-top,
  .jo-home-hero-v4 .jo-hero-visual-badge-bottom {
    animation-duration: 7s;
  }
}

/* Accessibility / battery friendly fallback. */
@media (prefers-reduced-motion: reduce) {
  .jo-home-hero-v4 .jo-hero-content,
  .jo-home-hero-v4 .jo-hero-visual,
  .jo-home-hero-v4 .jo-hero-photo-accent,
  .jo-home-hero-v4 .jo-hero-visual-badge-top,
  .jo-home-hero-v4 .jo-hero-visual-badge-bottom,
  .jo-motion-ready .jo-reveal-section,
  .jo-motion-ready .jo-reveal-section .jo-reveal-item {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =========================================================
   JainOutlook Contact Support — form-free support page
   ========================================================= */
.jo-contact-support-page .jo-contact-support-wrap {
  padding: clamp(24px, 4vw, 44px) !important;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 0%, rgba(218, 173, 70, .10), transparent 30%),
    linear-gradient(180deg, #fff 0%, #fffaf1 100%) !important;
}
.jo-contact-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  color: var(--jo-maroon);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.jo-contact-support-wrap h1 {
  margin-bottom: 10px !important;
}
.jo-contact-intro {
  max-width: 720px;
  margin: 0 auto !important;
  color: var(--jo-muted) !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
}
.jo-contact-support-grid {
  margin-top: clamp(24px, 4vw, 38px);
}
.jo-contact-support-card {
  position: relative;
  display: flex;
  min-height: 220px;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 18px 22px;
  border: 1px solid #ead9bd;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(68, 29, 38, .08);
  color: var(--jo-ink);
  text-align: center;
  text-decoration: none !important;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.jo-contact-support-card:hover,
.jo-contact-support-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(184, 133, 26, .65);
  box-shadow: 0 18px 40px rgba(68, 29, 38, .13);
  color: var(--jo-ink);
}
.jo-contact-support-icon {
  display: inline-flex;
  width: 70px;
  height: 70px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border: 3px solid #e6c36c;
  border-radius: 50%;
  background: var(--jo-maroon);
  color: #fff;
  font-size: 28px;
  box-shadow: 0 8px 22px rgba(109, 18, 47, .18);
}
.jo-contact-support-card-whatsapp .jo-contact-support-icon {
  border-color: #afe0bc;
  background: #25D366;
}
.jo-contact-support-label {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--jo-maroon);
  font-size: 15px;
  font-weight: 800;
}
.jo-contact-support-card strong {
  display: block;
  color: var(--jo-maroon-dark);
  font-size: clamp(25px, 2.3vw, 32px);
  font-weight: 900;
  letter-spacing: .015em;
  line-height: 1.15;
}
.jo-contact-support-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  color: #9a6b13;
  font-size: 13px;
  font-weight: 800;
}
.jo-contact-note {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(109, 18, 47, .06);
  color: var(--jo-maroon);
  font-size: 14px;
  font-weight: 700;
}
.jo-contact-note i {
  color: #b6851a;
  font-size: 18px;
}

@media (max-width: 767.98px) {
  .jo-contact-support-page .jo-contact-support-wrap {
    padding: 22px 16px !important;
    border-radius: 18px !important;
  }
  .jo-contact-intro {
    font-size: 14px !important;
  }
  .jo-contact-support-grid {
    margin-top: 20px;
  }
  .jo-contact-support-card {
    min-height: 0;
    padding: 20px 16px;
    border-radius: 17px;
  }
  .jo-contact-support-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 10px;
    font-size: 23px;
  }
  .jo-contact-support-card strong {
    font-size: 27px;
  }
  .jo-contact-support-action {
    margin-top: 12px;
  }
  .jo-contact-note {
    align-items: flex-start;
    text-align: left;
  }
}
