:root {
  --ink: #24283d;
  --muted: #656b79;
  --paper: #ffffff;
  --line: #e4e6ec;
  --red: #bd302b;
  --wine: #343885;
  --gold: #d7a927;
  --surface: #f5f6f9;
  --serif: "Noto Sans Malayalam", sans-serif;
  --sans: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 85px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Noto Sans Malayalam", var(--sans), sans-serif; }
a { color: inherit; }
.malayalam { font-family: var(--serif); line-height: 1.8; }
.container { max-width: 1180px; }

.topline {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: #555b69;
  font-size: .7rem;
}
.topline-date { color: #4b5060; font-size: .67rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.topline-right, .topline-links, .social-links { display: flex; align-items: center; }
.topline-right { gap: 17px; }
.topline-links { gap: 17px; }
.topline-links a { color: #4b5060; font-size: .66rem; font-weight: 600; letter-spacing: .055em; text-decoration: none; }
.topline-links a:hover, .social-link:hover { color: var(--red); }
.topline-divider { width: 1px; height: 16px; background: #d8dbe2; }
.social-links { gap: 13px; }
.social-link { display: grid; width: 20px; height: 20px; place-items: center; color: #424757; transition: color .18s ease; }
.social-link svg { display: block; width: 16px; height: 16px; fill: currentColor; }
.brand-header { padding: 10px 0; border-bottom: 1px solid var(--line); background: #fff; }
.masthead-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 72px; }
.brand-lockup { display: inline-flex; align-items: center; justify-self: center; text-decoration: none; }
.brand-logo { display: block; width: min(460px, 100%); height: 66px; object-fit: contain; }
.sections-trigger { display: inline-flex; align-items: center; gap: 9px; justify-self: start; color: var(--ink); font-size: .78rem; font-weight: 700; text-decoration: none; }
.sections-trigger:hover { color: var(--red); }
.menu-icon { display: grid; gap: 4px; width: 19px; }
.menu-icon span { display: block; width: 19px; height: 2px; border-radius: 2px; background: currentColor; }
.masthead-actions { display: flex; align-items: center; justify-self: end; gap: 16px; }
.masthead-search { color: var(--ink); font-size: 1.4rem; line-height: 1; text-decoration: none; }
.masthead-search:hover { color: var(--red); }
.edition-pill { padding: 9px 17px; border: 0; border-radius: 99px; background: #ffcd00; color: #211f29; font-size: .73rem; font-weight: 700; text-decoration: none; }
.edition-pill:hover { background: #f0bc00; color: #211f29; }

.site-nav {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 97%);
  box-shadow: 0 2px 6px rgb(34 37 60 / 5%);
  backdrop-filter: blur(14px);
}
.site-nav .nav-link {
  padding: 11px 12px;
  color: #31334c;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
}
.site-nav .nav-link:hover, .site-nav .nav-link:focus { color: var(--red); }
.nav-home { border-left: 1px solid var(--line); font-size: 1.05rem !important; }
.nav-english { font-size: .68rem !important; }
.nav-toggle { border-color: var(--line); }
.navbar-toggler:focus { box-shadow: 0 0 0 .15rem rgb(52 56 133 / 18%); }
.quick-links { padding: 10px 0; border-bottom: 1px solid var(--line); background: #fff; }
.quick-links-label { margin-right: 8px; color: var(--ink); font-size: .71rem; font-weight: 700; white-space: nowrap; }
.quick-links-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.quick-link { padding: 5px 12px; border-radius: 99px; background: #f0f1f5; color: #414757; font-size: .69rem; text-decoration: none; white-space: nowrap; }
.quick-link:hover { background: #e8eaf2; color: var(--wine); }

.breaking { padding: 13px 0; border-bottom: 1px solid var(--line); background: #fff; }
.breaking-badge {
  display: inline-block;
  margin-right: 13px;
  padding: 4px 9px;
  border-radius: 3px;
  background: var(--red);
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .09em;
}
.breaking a { color: #424757; font-size: .88rem; text-decoration: none; }

.section-label {
  margin: 0 0 21px;
  font-size: .71rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.section-label::after { display: inline-block; width: 35px; height: 2px; margin: 0 0 4px 10px; background: var(--gold); content: ""; }

.hero-section { padding-top: 44px; }
.hero-card {
  position: relative;
  display: block;
  min-height: 450px;
  overflow: hidden;
  border-radius: 6px;
  background: #e8eef0;
  color: var(--ink);
  text-decoration: none;
}
.hero-card img { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; transition: transform .6s ease; }
.hero-card:hover img { transform: scale(1.035); }
.hero-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(255 255 255 / 15%), transparent 65%);
  content: "";
}
.hero-content {
  position: absolute;
  z-index: 1;
  bottom: 24px;
  left: 24px;
  width: min(610px, calc(100% - 48px));
  padding: 24px 28px;
  border: 1px solid rgb(228 230 236 / 95%);
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 12px 32px rgb(36 40 61 / 12%);
}
.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  padding: 5px 8px;
  border-radius: 2px;
  background: #f9eeeb;
  color: #a83b31;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-title {
  max-width: 23ch;
  margin: 0 0 9px;
  color: var(--ink);
  font-size: clamp(1.55rem, 2.45vw, 2rem);
  font-weight: 700;
  line-height: 1.7;
}
.hero-summary { max-width: 540px; margin: 0; color: #52596a; font-size: .84rem; line-height: 1.85; }
.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid #e8e9ed;
  color: #596173;
  font-size: .68rem;
}
.hero-side { display: flex; flex-direction: column; gap: 15px; }
.side-story {
  display: grid;
  grid-template-columns: 102px 1fr;
  min-height: 151px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.side-story:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgb(61 48 32 / 8%); }
.side-story img { width: 102px; height: 100%; min-height: 151px; object-fit: cover; }
.side-copy { padding: 14px; align-self: center; }
.story-tag { margin-bottom: 7px; color: var(--red); font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.side-title { margin: 0; color: #282d3e; font-size: 1rem; font-weight: 600; line-height: 1.75; }
.side-date { display: block; margin-top: 9px; color: #656b79; font-size: .67rem; }

.quote-strip { margin-top: 30px; padding: 21px; border-left: 3px solid var(--gold); background: var(--surface); color: var(--wine); text-align: center; }
.quote-strip p { margin: 0; font-size: 1.15rem; }
.quote-strip span { display: block; margin-top: 5px; color: var(--muted); font: .67rem var(--sans); letter-spacing: .13em; }

.news-section { padding-top: 65px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 23px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.section-heading .section-label { margin: 0; }
.section-heading p { margin: 0; color: var(--muted); font-size: .73rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filter-btn { padding: 7px 13px; border: 1px solid #e4ddd2; border-radius: 99px; background: transparent; color: #645e56; font: 600 .72rem var(--serif); }
.filter-btn:hover, .filter-btn.active { border-color: var(--wine); background: var(--wine); color: #fff; }
.news-card { height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: #fff; transition: transform .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgb(61 48 32 / 8%); }
.news-card-image { position: relative; overflow: hidden; }
.news-card-image img { width: 100%; height: 196px; object-fit: cover; transition: transform .45s; }
.news-card:hover .news-card-image img { transform: scale(1.04); }
.news-card-body { padding: 18px; }
.news-card h3 { margin: 6px 0 9px; font-size: 1.05rem; font-weight: 600; line-height: 1.8; }
.news-card p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.85; }
.article-link { display: inline-flex; gap: 7px; align-items: center; margin-top: 13px; color: var(--red); font-size: .71rem; font-weight: 700; text-decoration: none; }
.video-card { height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #161616; }
.video-card-body { padding: 16px 18px 18px; }
.video-card h3 { margin: 0 0 7px; color: var(--ink); font-size: .95rem; font-weight: 700; line-height: 1.7; }
.video-card p { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.8; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid #34458a;
  outline-offset: 3px;
}

.issue-panel { padding: 27px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.issue-cover { width: 100%; overflow: hidden; border-radius: 3px; background: #f0e9dd; }
.issue-cover object, .issue-cover iframe { display: block; width: 100%; height: 390px; border: 0; }
.issue-details { padding-top: 21px; }
.issue-details h3 { margin: 0 0 8px; color: var(--wine); font-size: 1.5rem; font-weight: 700; }
.issue-details p { color: var(--muted); font-size: .79rem; line-height: 1.85; }
.issue-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 17px 0; }
.issue-meta span { padding: 6px 10px; border-radius: 99px; background: var(--surface); color: #535a6b; font-size: .68rem; }
.btn-wine { padding: 11px 18px; border: 1px solid var(--wine); border-radius: 3px; background: var(--wine); color: #fff; font-size: .76rem; font-weight: 700; }
.btn-wine:hover { border-color: #462016; background: #462016; color: #fff; }
.btn-outline-wine { padding: 11px 18px; border: 1px solid var(--wine); border-radius: 3px; background: transparent; color: var(--wine); font-size: .76rem; font-weight: 700; }
.btn-outline-wine:hover { background: var(--wine); color: #fff; }

.verse-card { padding: 27px; border-radius: 5px; background: var(--wine); color: #fff; }
.verse-card .section-label { color: #f0d7a2; }
.verse-card p { margin: 12px 0; font-size: 1.12rem; line-height: 1.95; }
.verse-card cite { color: #e4c990; font: .7rem var(--sans); font-style: normal; letter-spacing: .09em; }
.subscribe-card { margin-top: 20px; padding: 22px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.subscribe-card h3 { font: 700 1rem var(--serif); }
.subscribe-card p { color: var(--muted); font-size: .75rem; line-height: 1.8; }
.subscribe-card .form-control { min-height: 42px; border-color: #e4ddd2; border-radius: 3px; font-size: .75rem; }
.form-note { min-height: 20px; margin: 9px 0 0 !important; color: var(--wine) !important; }

.issue-band {
  position: relative;
  margin-top: 55px;
  padding: 40px 0;
  overflow: hidden;
  background: linear-gradient(115deg, #20264f 0%, #343885 60%, #485095 100%);
  color: #fff;
}
.issue-band::before {
  position: absolute;
  top: -95px;
  right: 12%;
  width: 250px;
  height: 250px;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 50%;
  content: "";
}
.issue-band .container { position: relative; z-index: 1; }
.issue-band p { margin: 0; color: #fff; font-size: 1.25rem; font-weight: 600; }
.issue-band .btn-wine { border-color: #fff; background: #fff; color: #292f70; }
.issue-band .btn-wine:hover { border-color: #f0d7a2; background: #f0d7a2; color: #20264f; }
.site-footer { margin-top: 65px; padding: 35px 0 22px; border-top: 1px solid var(--line); }
.footer-title { color: var(--wine); font: 700 1rem var(--serif); }
.site-footer p, .site-footer a { color: var(--muted); font-size: .73rem; line-height: 1.9; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--red); }
.footer-bottom { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .67rem; }
.visually-hidden-focusable:not(:focus):not(:focus-within) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }
[hidden] { display: none !important; }

@media (max-width: 767.98px) {
  .brand-header { padding: 10px 0; }
  .topline { padding: 8px 0; }
  .topline .container { flex-wrap: wrap; row-gap: 6px !important; }
  .topline-right { gap: 10px; }
  .topline-links { gap: 10px; }
  .topline-links a { font-size: .62rem; }
  .social-links { gap: 8px; }
  .brand-header { padding: 7px 0; }
  .masthead-grid { grid-template-columns: 1fr; justify-items: center; min-height: 55px; }
  .brand-lockup { grid-column: 1; grid-row: 1; justify-self: center; }
  .brand-logo { width: min(400px, 100%); height: 57px; }
  .masthead-actions, .sections-trigger { display: none; }
  .site-nav .container { padding: 0; }
  .site-nav .navbar-toggler { margin: 8px 12px; }
  .site-nav .navbar-collapse { border-top: 1px solid var(--line); }
  .site-nav .navbar-nav { padding: 7px 10px; }
  .site-nav .nav-link { padding: 9px 14px; }
  .quick-links { overflow: hidden; }
  .quick-links-list { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .quick-links-list::-webkit-scrollbar { display: none; }
  .quick-links-label { display: none; }
  .hero-section { padding-top: 26px; }
  .hero-card { min-height: 430px; }
  .hero-card::after { background: linear-gradient(0deg, rgb(255 255 255 / 15%), transparent 55%); }
  .hero-content { bottom: 14px; left: 14px; width: calc(100% - 28px); padding: 18px; }
  .hero-title { max-width: 26ch; margin-bottom: 7px; font-size: clamp(1.35rem, 5.2vw, 1.7rem); line-height: 1.68; }
  .hero-summary { font-size: .77rem; }
  .story-meta { gap: 6px 10px; margin-top: 10px; padding-top: 8px; font-size: .62rem; }
  .news-section { padding-top: 45px; }
  .news-card-image img { height: 170px; }
  .issue-panel { padding: 19px; }
  .issue-cover object, .issue-cover iframe { height: 330px; }
}

/* ------------------------------------------------------------------
   Portal additions (CodeIgniter pages)
   ------------------------------------------------------------------ */

/* Copy protection: block text selection on public content (forms stay usable) */
body.no-copy { -webkit-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.no-copy input, body.no-copy textarea, body.no-copy select, body.no-copy [contenteditable] { -webkit-user-select: text; user-select: text; }
body.no-copy img { -webkit-user-drag: none; pointer-events: auto; }

.site-nav .nav-link.active { color: var(--red); box-shadow: inset 0 -2px 0 var(--red); }
.page-head { padding-top: 34px; padding-bottom: 6px; }
.page-head h1 { margin: 0; color: var(--ink); font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; }
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: .82rem; }
.crumbs { margin-bottom: 10px; color: var(--muted); font-size: .7rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.page-section { padding-top: 28px; }

a.filter-btn { display: inline-block; text-decoration: none; }
.search-form { display: flex; gap: 8px; max-width: 420px; }
.search-form .form-control { min-height: 40px; border-color: var(--line); font-size: .8rem; }

.news-card a.card-cover { display: block; color: inherit; text-decoration: none; }
.news-card h3 a { color: inherit; text-decoration: none; }
.news-card h3 a:hover { color: var(--red); }
.badge-featured { position: absolute; top: 12px; left: 12px; padding: 4px 9px; border-radius: 3px; background: var(--gold); color: #24283d; font-size: .6rem; font-weight: 800; letter-spacing: .1em; }
.empty-state { padding: 46px 20px; border: 1px dashed var(--line); border-radius: 6px; background: var(--surface); color: var(--muted); text-align: center; font-size: .85rem; }

/* Single article */
.article-wrap { max-width: 820px; }
.article-title { margin: 10px 0 14px; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.6; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .74rem; }
.article-photo { margin: 22px 0; overflow: hidden; border-radius: 6px; background: var(--surface); }
.article-photo img { display: block; width: 100%; max-height: 560px; object-fit: cover; }
.article-body { font-size: 1.02rem; line-height: 2; }
.article-body p { margin-bottom: 1.1em; }

.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share-bar .share-label { margin-right: 4px; color: var(--ink); font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.share-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 0; border-radius: 99px; color: #fff; font: 700 .74rem var(--sans); text-decoration: none; cursor: pointer; }
.share-btn svg { width: 16px; height: 16px; fill: currentColor; }
.share-btn:hover { color: #fff; filter: brightness(.92); }
.share-wa { background: #25d366; }
.share-fb { background: #1877f2; }
.share-x { background: #111; }
.share-mail { background: #6b7080; }
.share-phone { background: var(--wine); }
.share-copy { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.share-copy:hover { color: var(--ink); }

.ads-block { margin-top: 34px; }
.ads-label { display: block; margin-bottom: 8px; color: #9aa0ad; font: 600 .6rem var(--sans); letter-spacing: .18em; text-align: center; }
.ad-item { display: block; margin-bottom: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; }
.ad-item img { display: block; width: 100%; height: auto; }

/* Profile / obituary cards */
.profile-card { height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fff; transition: transform .2s, box-shadow .2s; }
.profile-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgb(36 40 61 / 8%); }
.profile-photo { display: grid; place-items: center; height: 230px; overflow: hidden; background: linear-gradient(135deg, #eef0f6, #e3e6f0); color: #a2a7b8; font-size: 3.4rem; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-body { padding: 16px 18px 18px; }
.profile-body h3 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 700; }
.profile-body p { margin: 8px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.8; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.profile-tags span { padding: 3px 9px; border-radius: 99px; background: var(--surface); color: #535a6b; font-size: .66rem; font-weight: 600; }
.obit-card .profile-photo { filter: grayscale(.35); }
.obit-card { border-top: 3px solid #44485a; }
.detail-photo { overflow: hidden; border-radius: 6px; background: linear-gradient(135deg, #eef0f6, #e3e6f0); }
.detail-photo img { display: block; width: 100%; height: auto; }
.detail-photo .placeholder { display: grid; place-items: center; aspect-ratio: 4 / 5; color: #a2a7b8; font-size: 5rem; }

/* Request / form panels */
.panel { padding: 26px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.panel-soft { background: var(--surface); }
.panel h2, .panel h3 { font-size: 1.1rem; font-weight: 700; }
.panel .form-label { color: var(--ink); font-size: .76rem; font-weight: 700; }
.panel .form-control, .panel .form-select { border-color: #dcdfe7; border-radius: 4px; font-size: .86rem; }
.contact-line { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: .86rem; }
.contact-line .ico { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #fff; color: var(--wine); box-shadow: 0 2px 8px rgb(36 40 61 / 8%); }
.contact-line a { color: var(--ink); text-decoration: none; font-weight: 600; }
.contact-line a:hover { color: var(--red); }
.contact-line small { display: block; color: var(--muted); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.btn-wa { padding: 11px 18px; border: 0; border-radius: 3px; background: #25d366; color: #fff; font-size: .76rem; font-weight: 700; }
.btn-wa:hover { background: #1ebe5a; color: #fff; }
.honey { position: absolute !important; left: -9999px !important; }

/* E-paper */
.epaper-card { display: block; height: 100%; padding: 22px; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 5px; background: #fff; color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.epaper-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgb(36 40 61 / 8%); color: var(--ink); }
.epaper-card .ep-icon { font-size: 2rem; color: var(--red); }
.epaper-card h3 { margin: 8px 0 4px; font-size: 1rem; font-weight: 700; }
.epaper-viewer { width: 100%; height: 80vh; min-height: 520px; border: 1px solid var(--line); border-radius: 5px; background: #f0f1f5; }

.about-body { font-size: 1rem; line-height: 2; }
.pagination { --bs-pagination-color: var(--wine); --bs-pagination-active-bg: var(--wine); --bs-pagination-active-border-color: var(--wine); --bs-pagination-font-size: .8rem; }
.alert { font-size: .85rem; }

@media (max-width: 767.98px) {
  .panel { padding: 18px; }
  .profile-photo { height: 200px; }
  .epaper-viewer { height: 70vh; min-height: 420px; }
}

/* Logo with a second line ("Online News Portal") */
.brand-lockup { flex-direction: column; align-items: center; }
.brand-subtitle { display: block; margin-top: 2px; color: var(--wine); font: 700 .78rem var(--sans); letter-spacing: .32em; text-transform: uppercase; white-space: nowrap; }
.site-footer .brand-lockup { align-items: flex-start; }
.site-footer .brand-subtitle { padding-left: 4px; }
@media (max-width: 767.98px) { .brand-subtitle { font-size: .62rem; letter-spacing: .22em; } }


/* ------------------------------------------------------------------
   Matrimony (list + profile)
   ------------------------------------------------------------------ */
.mat-hero { padding: 30px 0 34px; border-bottom: 1px solid var(--line); background: linear-gradient(120deg, #fbf3f5 0%, #f1f2fb 60%, #eef0fa 100%); }
.mat-hero h1 { margin: 6px 0 8px; color: var(--ink); font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; }
.mat-hero p { margin: 0; color: var(--muted); font-size: .9rem; }
.mat-kicker { display: inline-flex; align-items: center; gap: 6px; color: #b8344f; font: 800 .7rem var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.mat-search { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border: 1px solid #dfe2ec; border-radius: 99px; background: #fff; box-shadow: 0 8px 24px rgb(36 40 61 / 7%); }
.mat-search i { color: var(--muted); }
.mat-search input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: .86rem; }
.mat-search button { padding: 9px 20px; border: 0; border-radius: 99px; background: var(--wine); color: #fff; font: 700 .78rem var(--sans); }
.mat-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.mat-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.mat-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: var(--ink); font: 700 .78rem var(--sans); text-decoration: none; }
.mat-tabs a span { padding: 1px 8px; border-radius: 99px; background: var(--surface); color: var(--muted); font-size: .7rem; }
.mat-tabs a:hover { border-color: var(--wine); color: var(--wine); }
.mat-tabs a.active { border-color: var(--wine); background: var(--wine); color: #fff; }
.mat-tabs a.active span { background: rgb(255 255 255 / 20%); color: #fff; }

.mat-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: transform .2s, box-shadow .2s; }
.mat-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgb(36 40 61 / 10%); }
.mat-card-photo { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.mat-card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.mat-card:hover .mat-card-photo img { transform: scale(1.04); }
.mat-badge { position: absolute; top: 12px; left: 12px; padding: 4px 11px; border-radius: 99px; color: #fff; font: 800 .64rem var(--sans); letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 4px 12px rgb(0 0 0 / 15%); }
.mat-badge.is-bride { background: #b8344f; }
.mat-badge.is-groom { background: var(--wine); }
.mat-ref { position: absolute; right: 10px; bottom: 10px; padding: 3px 9px; border-radius: 4px; background: rgb(20 22 40 / 72%); color: #fff; font: 700 .64rem var(--sans); letter-spacing: .06em; }
.mat-card-body { display: flex; flex: 1; flex-direction: column; padding: 16px 18px 18px; }
.mat-card-body h3 { margin: 0; font-size: 1.05rem; font-weight: 800; }
.mat-card-body h3 a { color: var(--ink); text-decoration: none; }
.mat-card-body h3 a:hover { color: var(--red); }
.mat-sub { margin-top: 3px; color: var(--muted); font: 600 .78rem var(--sans); }
.mat-facts { display: grid; gap: 7px; margin: 12px 0 16px; padding: 12px 0 0; border-top: 1px solid var(--line); list-style: none; }
.mat-facts li { display: flex; gap: 9px; color: #3f4556; font: .78rem/1.45 var(--sans); }
.mat-facts i { flex: 0 0 16px; color: var(--wine); }
.mat-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-top: auto; padding: 10px 14px; border: 1px solid var(--wine); border-radius: 6px; color: var(--wine); font: 700 .76rem var(--sans); text-decoration: none; transition: background .2s, color .2s; }
.mat-btn:hover { background: var(--wine); color: #fff; }

/* Profile page */
.mat-side { position: sticky; top: 70px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 10px 30px rgb(36 40 61 / 6%); }
.mat-side-photo { position: relative; aspect-ratio: 4 / 5; background: var(--surface); }
.mat-side-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mat-side-body { padding: 20px 22px 22px; }
.mat-ref-line { color: var(--muted); font: .72rem var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.mat-ref-line strong { color: var(--ink); }
.mat-name { margin: 4px 0 2px; font-size: 1.5rem; font-weight: 800; }
.mat-contact { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.mat-contact h2 { margin-bottom: 10px; font: 800 .72rem var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.mat-contact-person { margin-bottom: 10px; color: var(--ink); font: 600 .84rem var(--sans); }
.mat-cbtn { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; padding: 11px 14px; border-radius: 6px; color: #fff; font: 700 .8rem var(--sans); text-decoration: none; word-break: break-all; }
.mat-cbtn:hover { color: #fff; filter: brightness(.93); }
.mat-cbtn-call { background: var(--wine); }
.mat-cbtn-wa { background: #25d366; }
.mat-cbtn-mail { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.mat-cbtn-mail:hover { color: var(--ink); }
.mat-dates { display: grid; gap: 4px; margin-top: 14px; color: var(--muted); font: .72rem var(--sans); }
.mat-dates i { margin-right: 4px; }

.mat-headline { margin-bottom: 18px; }
.mat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mat-chips span { padding: 6px 12px; border-radius: 99px; background: #eef0fa; color: var(--wine); font: 700 .74rem var(--sans); }
.mat-section { margin-bottom: 22px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.mat-section h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--ink); font: 800 .95rem var(--sans); }
.mat-section h2 i { color: var(--wine); font-size: 1.1rem; }
.mat-section-accent { border-left: 4px solid var(--gold); background: #fffdf6; }
.mat-text { color: #333949; font-size: .95rem; line-height: 1.95; }
.mat-text p:last-child { margin-bottom: 0; }
.mat-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; }
.mat-dl-row { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #e7e9ef; font: .86rem var(--sans); }
.mat-dl-row dt { color: var(--muted); font-weight: 600; }
.mat-dl-row dd { margin: 0; color: var(--ink); font-weight: 600; }
.col-md-6 .mat-dl { grid-template-columns: 1fr; }

@media (max-width: 991.98px) { .mat-side { position: static; } .mat-side-photo { aspect-ratio: 1 / 1; } }
@media (max-width: 575.98px) {
  .mat-dl { grid-template-columns: 1fr; }
  .mat-dl-row { grid-template-columns: 120px 1fr; }
  .mat-section { padding: 18px; }
}

/* ------------------------------------------------------------------
   Obituary (list + notice)
   ------------------------------------------------------------------ */
.obit-hero { padding: 30px 0 34px; border-bottom: 1px solid var(--line); background: linear-gradient(120deg, #f6f6f7 0%, #ececef 100%); }
.obit-hero h1 { margin: 6px 0 8px; color: #2a2d36; font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; }
.obit-hero p { margin: 0; color: var(--muted); font-size: .9rem; }
.obit-kicker { color: #5b5f6b; font: 800 .7rem var(--sans); letter-spacing: .16em; text-transform: uppercase; }

.obit-card2 { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid #e3e4e8; border-top: 3px solid #4a4e5a; border-radius: 8px; background: #fff; text-align: center; transition: transform .2s, box-shadow .2s; }
.obit-card2:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgb(30 32 40 / 10%); }
.obit-photo { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #ececec; }
.obit-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(.25); }
.obit-body { display: flex; flex: 1; flex-direction: column; align-items: center; padding: 16px 16px 18px; }
.obit-body h3 { margin: 0; font-size: 1.02rem; font-weight: 800; line-height: 1.6; }
.obit-body h3 a { color: #2a2d36; text-decoration: none; }
.obit-body h3 a:hover { color: var(--red); }
.obit-age { color: var(--muted); font-weight: 600; }
.obit-place { margin-top: 2px; color: #4b4f5c; font-size: .82rem; }
.obit-date { margin-top: 6px; color: var(--muted); font: .74rem var(--sans); }
.obit-link { margin-top: auto; padding-top: 12px; color: #4a4e5a; font: 700 .74rem var(--sans); text-decoration: none; }
.obit-link:hover { color: var(--red); }

.obit-notice { overflow: hidden; border: 1px solid #e3e4e8; border-top: 4px solid #4a4e5a; border-radius: 10px; background: #fff; box-shadow: 0 10px 30px rgb(30 32 40 / 6%); }
.obit-notice-photo { padding: 24px; }
.obit-notice-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 6px; background: #ececec; box-shadow: 0 6px 20px rgb(30 32 40 / 10%); filter: grayscale(.2); }
.obit-notice-body { padding: 28px 32px; }
.obit-notice-body h1 { margin: 8px 0 12px; color: #2a2d36; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; }
.obit-meta { display: grid; gap: 6px; margin: 0 0 18px; padding: 0 0 16px; border-bottom: 1px solid #ececef; list-style: none; }
.obit-meta li { display: flex; gap: 10px; color: #3c404c; font: .86rem var(--sans); }
.obit-meta i { color: #6b6f7b; }
.obit-text { color: #333743; font-size: .96rem; line-height: 1.95; }
.obit-funeral { margin-top: 16px; padding: 16px 18px; border-left: 3px solid #4a4e5a; border-radius: 4px; background: #f6f6f8; }
.obit-funeral h2 { margin: 0 0 8px; color: #2a2d36; font: 800 .82rem var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.obit-funeral p { margin: 0; line-height: 1.85; }
.obit-verse { margin: 20px 0 0; padding-top: 14px; border-top: 1px dashed #dcdde2; color: #6b6f7b; font-size: .85rem; font-style: italic; text-align: center; }
@media (max-width: 767.98px) { .obit-notice-photo { padding: 20px 20px 0; } .obit-notice-photo img { max-width: 320px; margin: 0 auto; } .obit-notice-body { padding: 20px; } }
