/* Parish homepage refresh with the image-led layout requested by the parish. */
:root {
  --home-ink: #172b3a;
  --home-muted: #5b6872;
  --home-navy: #143b56;
  --home-gold: #c89a4b;
  --home-paper: #f0f3f6;
  --home-line: #dbe3ea;
}

html { background: var(--home-paper) !important; }
html, body { max-width: 100%; overflow-x: clip; }
body {
  height: auto;
  padding-bottom: 0;
  background: var(--home-paper);
  color: var(--home-ink);
  font-family: "Segoe UI", Arial, sans-serif;
}
#master-header { display: none; }
#topnav-wrapper {
  position: absolute;
  top: 47vh;
  left: 0;
  width: 100%;
  height: 160px;
  background: #000;
  border: 0;
  box-shadow: none;
  z-index: 20;
}
.topnav { position: relative; width: 100%; max-width: 1600px; height: 160px; margin: 0 auto; padding: 0 28px 20px 430px; box-sizing: border-box; display: flex; align-items: flex-end; justify-content: flex-end; font-family: "Segoe UI", Arial, sans-serif; }
.topnav a, .topnav-dropdown .dropbtn { color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .055em; }
.topnav a { padding: 12px 10px; }
.topnav-dropdown .dropbtn { padding: 12px 10px; }
.topnav .active, .topnav a:hover, .topnav-dropdown .dropbtn:hover { background: transparent; color: #e4b51e; }
.topnav .site-brand { position: absolute; left: 42px; bottom: 20px; display: flex; align-items: center; margin: 0; padding: 0; white-space: nowrap; color: #fff; font-size: 19px; letter-spacing: 0; }
.site-brand-mark { margin-right: 11px; }
.site-brand strong { font-weight: 800; }
.site-brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 68px; height: 68px; border: 2px solid #fff; border-radius: 50%; font: 34px Georgia,serif; }
.topnav-dropdown { position: relative; float: none; overflow: visible; }
.topnav .icon { display: none; margin-left: auto; font-size: 0 !important; }
.topnav .icon:after { content: "☰"; font-size: 25px; }
.nav-quick-actions { position: absolute; top: 24px; right: 28px; display: flex; }
.nav-quick-actions a { margin-left: 14px; padding: 10px 20px; border: 1px solid #fff; border-radius: 10px; color: #fff; font-size: 14px; letter-spacing: 0; text-decoration: none; }
.nav-quick-actions .quick-ministry { border-color: #b3193f; background: #b3193f; }
.nav-quick-actions .quick-mass { border-color: #ffd36a; background: #ffd36a; color: #152a37; }
.dropdown-content { z-index: 1000; background: #fff; border-top: 3px solid var(--home-gold); box-shadow: 0 12px 28px rgba(24,43,58,.15); }
.topnav .dropdown-content a { display: block; padding: 12px 16px; background: #fff !important; color: #143b56 !important; font-size: 14px; line-height: 1.35; text-align: left; text-decoration: none; white-space: nowrap; }
.topnav .dropdown-content a:hover { background: #f3f0e9 !important; color: #143b56 !important; }
#main-wrapper { width: 100%; max-width: none; margin: 0; background: transparent; }
div#main { width: 100%; margin: 0; padding: 0; box-sizing: border-box; }
.home-hero {
  display: block;
  position: relative;
  width: 100%;
  height: 75vh !important;
  max-height: 1000px;
  min-height: 880px;
  margin: 0 !important;
  overflow: hidden;
  background-color: #17384c;
  background-image: url("/gallery/image/headline.jpg");
  background-position: center 43%;
  background-size: cover;
  background-repeat: no-repeat;
}
.home-hero-slider {
  display: none !important;
}
.home-hero:before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(5,24,37,.45); }
.home-welcome { display: none; }
.hero-copy { display: none !important; }
.hero-bottom-actions { position: absolute; top: calc(47vh + 184px); right: auto; bottom: auto; left: 6.3%; z-index: 5; display: flex; height: auto; }
.hero-cta { display: inline-block; margin-right: 24px; padding: 15px 25px; border: 0; border-radius: 10px; color: #fff; font: 400 16px/1.4 "Trebuchet MS","Segoe UI",Arial,sans-serif; text-decoration: none; box-shadow: 0 8px 20px rgba(0,0,0,.28); transition: background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease; }
.hero-cta:hover { color: #fff; text-decoration: none; filter: brightness(1.08); }
.hero-cta-ministry { background: #34734a; }
.hero-cta-mass { background: #f5c542; color: #082b43; }
.hero-cta:hover, .hero-cta:focus-visible { transform: translateY(-2px); background: #082b43 !important; color: #fff !important; text-decoration: none; box-shadow: 0 11px 24px rgba(0,0,0,.34); filter: none; }
.hero-eyebrow { margin: 0 0 18px; font-size: 14px; font-weight: 700; letter-spacing: .18em; }
.hero-copy h1 { max-width: 100%; margin: 0; color: #fff; font: 900 88px/1 "Segoe UI",Arial,sans-serif; text-transform: uppercase; }
.hero-copy h2 { max-width: 100%; margin: 20px 0 0; color: #fff; font: 850 46px/1.15 "Segoe UI",Arial,sans-serif; text-transform: uppercase; }
.hero-callout { margin: 28px 0 38px; font-size: 15px; font-weight: 800; letter-spacing: .2em; }
.hero-actions { display: flex; justify-content: center; }
.hero-action { display: flex; flex-direction: column; align-items: center; min-width: 140px; margin: 0 42px; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-decoration: none; }
.hero-action:hover { color: #f0c522; text-decoration: none; }
.action-symbol { display: flex; align-items: center; justify-content: center; width: 144px; height: 144px; margin-bottom: 9px; border: 6px double #092c43; border-radius: 50%; background: #fff; color: #092c43; font: 58px Georgia,serif; text-shadow: none; box-shadow: 0 3px 20px rgba(0,0,0,.25); }
#wowslider-container1, #wowslider-container1 .ws_images, #wowslider-container1 .ws_images ul,
#wowslider-container1 .ws_images li, #wowslider-container1 .ws_images img { width: 100% !important; height: 100% !important; }
#wowslider-container1 .ws_images img { object-fit: cover; }
#counter { height: auto !important; padding: 0 0 18px !important; margin: 0 0 26px; }
.counter-text { position: relative !important; width: 100% !important; bottom: auto !important; margin: 0 !important; padding: 0 0 12px; color: var(--home-ink); font-size: 20px; border-bottom: 1px solid var(--home-line); }
.counter-text span { color: var(--home-muted); font: 13px "Segoe UI", Arial, sans-serif !important; }
section#left { width: calc(100% - 280px); padding-right: 30px; box-sizing: border-box; }
section#right { width: 280px; margin-left: 0; padding: 0; box-sizing: border-box; background: transparent; border: 0; border-radius: 0; }
#right-sub-section { padding: 18px; margin: 0 0 16px; border: 1px solid #dbe3ea; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(13,43,64,.08); }
#right-sub-section h4, #muc-vu h4 { margin: 0 0 14px; color: var(--home-navy); font: 750 18px/1.35 "Segoe UI", Arial, sans-serif; }
#right-sub-section figure { margin: 0 !important; padding: 0 !important; }
#right-sub-section img { display: block; width: 100% !important; max-width: 100%; height: auto; border-radius: 8px; }
#right > hr { display: none; }
#right-sub-section ul, #muc-vu ul { color: var(--home-muted); font: 14px/1.7 "Segoe UI", Arial, sans-serif; }
#muc-vu { padding: 14px 0; border-top: 1px solid var(--home-line); }
.section_header { position: relative; height: auto; padding: 0 0 12px; margin: 30px 0 16px; border-bottom: 1px solid #d4dee7; }
.section_header::after { position: absolute; bottom: -1px; left: 0; width: 54px; height: 3px; border-radius: 3px; background: #dcb43c; content: ""; }
.section_header_text { position: static; width: auto; margin: 0; border: 0; color: var(--home-navy); font: 800 19px/1.3 "Segoe UI", Arial, sans-serif; letter-spacing: .045em; }
.section_header_text a, .link a { color: var(--home-navy); }
.section_content { padding: 22px; margin: 12px 0 20px; background: #fff; border: 1px solid #dbe3ea; border-radius: 12px; box-shadow: 0 8px 24px rgba(13,43,64,.07); }
.section_content h3 { margin: 0 0 12px; color: var(--home-navy); font: 750 19px/1.35 "Segoe UI", Arial, sans-serif; }
.section_content h3 a { color: inherit; text-decoration: none; }
.section_content p { margin: 0; color: #465a69 !important; font: 15px/1.75 "Segoe UI", Arial, sans-serif; }
.section_content .more { display: inline-block; margin-left: 4px; font-weight: 700; }
#congratulation fieldset, #appreciation fieldset { margin: 12px 0 20px; padding: 22px 24px !important; border: 1px solid #dbe3ea; border-left: 4px solid #dcb43c; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(13,43,64,.07); }
#congratulation legend, #appreciation legend { width: auto; padding: 0 10px; border: 0; color: var(--home-navy); font: 750 17px/1.4 "Segoe UI", Arial, sans-serif; }
#congratulation p, #appreciation p { margin: 0 0 14px; color: #465a69 !important; font: 15px/1.75 "Segoe UI", Arial, sans-serif !important; }
#congratulation p:last-child, #appreciation p:last-child { margin-bottom: 0; }
#left p, #right p { color: var(--home-muted); line-height: 1.7; }
#right p { font: 14px/1.7 "Segoe UI", Arial, sans-serif; }
footer { position: static; height: auto; margin: 0; padding: 34px 20px; background: #143b56; color: rgba(255,255,255,.82); font-size: 14px; font-weight: 400; }
.mass-schedule-float { position: fixed; z-index: 30; right: 24px; bottom: 22px; padding: 15px 25px; border-radius: 30px; background: #087184; color: #fff; font-weight: 700; box-shadow: 0 5px 18px rgba(0,0,0,.24); }
.mass-schedule-float:hover { color: #fff; background: #075a6a; text-decoration: none; }
.home-content-shell { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.welcome-section { padding: 86px 24px 92px; text-align: center; background: #fff; }
.welcome-section h1 { margin: 0 0 24px; color: #172b3a; font: 400 42px/1.2 Georgia,"Times New Roman",serif; }
.welcome-section p { max-width: 900px; margin: 0 auto 34px; color: #343c42; font: 18px/1.65 "Segoe UI",Arial,sans-serif; }
.welcome-button { display: inline-flex; align-items: center; gap: 12px; padding: 15px 24px; border: 1px solid #082b43; border-radius: 10px; background: #082b43; color: #fff; font: 700 15px/1.2 "Segoe UI", Arial, sans-serif; text-decoration: none; box-shadow: 0 8px 20px rgba(8,43,67,.24); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.welcome-button:hover, .welcome-button:focus-visible { transform: translateY(-2px); border-color: #477b9b; color: #fff; text-decoration: none; background: #477b9b; box-shadow: 0 11px 24px rgba(8,43,67,.32); }

/* The three newest articles beneath “Đến Mà Xem” form a full-width feature row. */
.home-featured-articles { clear: both; float: none !important; display: block; width: min(1180px, calc(100% - 48px)); margin: 0 auto 42px; padding: 0; box-sizing: border-box; }
.home-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; width: 100%; margin: 0; padding: 0; }
.home-feature-card { display: flex; min-width: 0; flex-direction: column; align-items: stretch; margin: 0; padding: 0; border: 0; background: transparent; text-align: center; }
.home-feature-card figure { width: 100%; height: auto; margin: 0 0 22px !important; overflow: hidden; border-radius: 14px; }
.home-feature-card figure a { display: block; }
.home-feature-card figure img { display: block; width: 100% !important; height: auto !important; aspect-ratio: 1.38 / 1; object-fit: cover; border: 0 !important; border-radius: 14px; transition: transform .25s ease; }
.home-feature-card figure a:hover img { transform: scale(1.035); }
.home-feature-card h5 { margin: 0 0 12px !important; color: #111; font: 600 22px/1.4 "Segoe UI", Arial, sans-serif !important; text-align: center !important; }
.home-feature-card h5 a { color: inherit; text-decoration: none; }
.home-feature-card h5 a:hover { color: #24516b; }
.home-feature-card p { margin: 0 auto; color: #24516b !important; font: 400 16px/1.7 "Segoe UI", Arial, sans-serif; text-align: center; }

@media (max-width: 1200px) {
  #topnav-wrapper { top: 45vh; height: 132px; }
  .topnav { height: 132px; padding: 0 14px 12px 280px; display: block; }
  .topnav .site-brand { left: 18px; bottom: 15px; font-size: 15px; }
  #topnav-wrapper .topnav > a:not(.site-brand):not(.icon), #topnav-wrapper .topnav > .topnav-dropdown { display: none; }
  #topnav-wrapper .topnav.responsive > a:not(.site-brand):not(.icon), #topnav-wrapper .topnav.responsive > .topnav-dropdown { display: block; }
  #topnav-wrapper .topnav > a.icon { display: block; position: absolute; right: 12px; bottom: 16px; padding: 8px; }
  .nav-quick-actions { top: 16px; right: 14px; }
  .nav-quick-actions a { margin-left: 7px; padding: 8px 11px; font-size: 12px; }
  .site-brand-mark { width: 48px; height: 48px; font-size: 25px; }
  .home-hero { min-height: 800px; }
  .hero-bottom-actions { top: calc(45vh + 150px); left: 24px; }
  .home-feature-grid { gap: 24px; }
}

@media (max-width: 760px) {
  #topnav-wrapper { top: 42vh; height: 154px; }
  .topnav { height: 154px; padding: 0 10px 12px; }
  .topnav .site-brand { left: 12px; top: 13px; bottom: auto; font-size: 13px; }
  .nav-quick-actions { top: 62px; right: 10px; left: 10px; justify-content: flex-end; }
  .nav-quick-actions a { margin-left: 5px; padding: 7px 9px; font-size: 11px; }
  #topnav-wrapper .topnav > a.icon { right: 8px; bottom: 8px; }
  div#main { padding: 0; }
  .home-hero { min-height: 680px; height: 100vh !important; margin-bottom: 0 !important; }
  .hero-bottom-actions { top: calc(42vh + 166px); left: 16px; flex-wrap: wrap; }
  .hero-cta { margin-right: 8px; padding: 12px 13px; font-size: 12px; }
  .home-featured-articles { width: calc(100% - 32px); margin-bottom: 32px; }
  .home-feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 12px; }
  .home-feature-card figure { margin-bottom: 14px !important; border-radius: 11px; }
  .home-feature-card figure img { border-radius: 11px; }
  .home-feature-card h5 { font-size: 18px !important; }
  .home-feature-card p { font-size: 12px; }
  section#left, section#right { float: none; width: 100%; padding: 0; }
  section#right { padding: 16px; margin-top: 26px; }
  #left > section[style*="width:45%"] { float: none !important; width: 100% !important; margin: 0 !important; }
  #left img { max-width: 100%; height: auto; }
  .counter-text span { position: static !important; display: block; margin-top: 6px; }
  .mass-schedule-float { right: 12px; bottom: 12px; padding: 12px 18px; font-size: 13px; }
  .home-content-shell { padding: 0; }
  .welcome-section { padding: 58px 22px 64px; }
  .welcome-section h1 { font-size: 31px; }
  .welcome-section p { font-size: 16px; }
}

@media (max-width: 520px) {
  .home-feature-grid { gap: 18px 8px; }
  .home-feature-card figure { margin-bottom: 10px !important; }
  .home-feature-card h5 { font-size: 14px !important; }
  .home-feature-card p { font-size: 11px; line-height: 1.45; }
}


/* Homepage proportions: compact navigation over a taller photo banner. */
body.home-page #site-header { --site-masthead-size: 170px; --site-header-height: 170px; }
body.home-page #site-header #topnav-wrapper .nav-quick-actions { top: 28px; }
body.home-page #home.home-hero {
  min-height: 560px !important;
  height: clamp(560px, 49.35vw, 857.5px) !important;
  max-height: none !important;
  background-position: center center;
}
body.home-page #home.home-hero::before {
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8,43,67,.38), rgba(8,43,67,.08) 42%, rgba(8,43,67,.25));
}
/* Full-width photo slideshow below the existing hero links and overlay. */
.banner-slides { position: absolute; inset: 0; }
.banner-slide { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transition: opacity .8s ease; }
.banner-slide.is-active { opacity: 1; }
.banner-slide.is-active,
.banner-slide.is-leaving { animation: banner-zoom 4s linear both; }
.banner-slides.is-paused .banner-slide { animation-play-state: paused; }
@keyframes banner-zoom { from { transform: scale(1); } to { transform: scale(1.12); } }
.banner-controls { position: absolute; bottom: 14px; left: 50%; z-index: 6; display: flex; align-items: center; gap: 4px; padding: 0 6px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(8,43,67,.65); transform: translateX(-50%); }
.banner-controls[hidden] { display: none; }
.banner-dots { display: flex; }
.banner-controls button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.banner-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); transition: background-color .2s ease, transform .2s ease; }
.banner-dot[aria-pressed="true"]::before { background: #f5c542; transform: scale(1.4); }
.banner-controls button:hover { background: rgba(255,255,255,.12); }
.banner-controls button:focus-visible { outline: 2px solid #f5c542; outline-offset: -3px; }
.banner-pause { font: 600 15px/1 "Segoe UI", Arial, sans-serif; }
@media (max-width: 760px) { .banner-slide { object-position: 49% center; } .banner-controls { bottom: 6px; } }
@media (prefers-reduced-motion: reduce) {
  .banner-slide, .banner-dot::before { transition: none; }
  .banner-slide.is-active, .banner-slide.is-leaving { animation: none; }
}
body.home-page #home > .hero-bottom-actions {
  top: auto !important;
  bottom: 96px !important;
}
@media (min-width: 761px) and (max-width: 1200px) {
  body.home-page #site-header #master-header .master-brand { top: 16px; }
}
@media (max-width: 760px) {
  body.home-page #site-header { --site-masthead-size: 98px; --site-header-height: 98px; }
  body.home-page #site-header #master-header .master-brand { top: 12px; }
  body.home-page #site-header #topnav-wrapper .topnav > a.icon,
  body.home-page #site-header #topnav-wrapper .topnav.responsive > a.icon { top: 27px; }
  body.home-page #site-header #topnav-wrapper .topnav.responsive {
    min-height: 98px;
    padding: 98px 0 8px !important;
    background: linear-gradient(to bottom, transparent 0, transparent 98px, var(--site-header-navy) 98px);
  }
  body.home-page #home.home-hero {
    min-height: 525px !important;
    height: clamp(525px, 70svh, 665px) !important;
    background-position: 49% center;
  }
  body.home-page #home > .hero-bottom-actions { bottom: 64px !important; gap: 12px; }
  body.home-page #home .hero-cta { margin-right: 0; }
}

/* Consistent, prominent homepage ministry schedule. */
body.home-page #muc-vu .section_content ul {
  margin: 0; padding: 0 0 0 18px;
  color: #163b52; font: 400 16px/1.65 "Segoe UI", Arial, sans-serif;
}
body.home-page #muc-vu .section_content li {
  margin: 0 0 22px; padding: 0 0 0 4px; font: inherit;
}
body.home-page #muc-vu .section_content li:last-child { margin-bottom: 0; }
body.home-page #muc-vu .section_content li::marker { color: #a47825; }
body.home-page #muc-vu .section_content p {
  margin: 7px 0 0; padding: 0; color: #163b52 !important; font: inherit;
}
body.home-page #muc-vu .section_content strong { font-family: inherit; font-weight: 700; }
body.home-page #muc-vu .section_content .schedule-day {
  display: block; color: #082b43; font: 700 16px/1.5 "Segoe UI", Arial, sans-serif;
}
body.home-page #muc-vu .section_content li.link a { font: 600 16px/1.65 "Segoe UI", Arial, sans-serif; }

/* Keep hero actions comfortably spaced as they wrap. */
body.home-page #home > .hero-bottom-actions { gap: 16px; right: 24px; flex-wrap: wrap; }
@media (max-width: 760px) {
  body.home-page #home > .hero-bottom-actions { gap: 10px; right: 16px; }
}
