/*--------------------------------------------------------------
# Font & Color Variables
--------------------------------------------------------------*/
:root {
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --heading-font: "Raleway", sans-serif;
  --background-color: #ffffff;
  --default-color: #272829;
  --heading-color: #050d18;
  --accent-color: #8B0000;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
  scroll-behavior: smooth;
}

.light-background {
  --background-color: #f4fafd;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #040b14;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #2b1515;
  --contrast-color: #ffffff;
}

/*--------------------------------------------------------------
# General Styling
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

h4 {
  color: var(--heading-color);
  font-family: var(--heading-font);
  text-align: center;
}

/*--------------------------------------------------------------
# Global Header / Nav Bar area
--------------------------------------------------------------*/
.header-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding-right: 15px;
  padding-bottom: 10px;
  box-sizing: border-box;
  max-width: 100%;
  overflow: visible;
}

.churchLogo {
  width: 30%;
  height: auto;
}

.location-text {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: bold;
  white-space: nowrap;
  gap: 0.5rem;
}

.location-text .location-img {
  height: 6em;
  width: auto;
  border-radius: 0.25rem;
}

.social-links {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.social-links a img {
  width: 28px;
  height: 28px;
}

@media (max-width: 1074px) {
  .location-text {
    display: none;
  }

  .churchLogo {
    width: 70%;
  }

  .header-bar {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .header-bar {
    background: rgba(10, 20, 40, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid rgba(139, 0, 0, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    padding-top: 12px;
    padding-bottom: 12px;
    margin-bottom: 0;
  }
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  /* Changed from overflow:clip so stacked mobile content isn't cut off */
  overflow: visible;
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  padding: 40px 0;
  position: relative;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  text-align: center;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# PHP Email Form
--------------------------------------------------------------*/
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #fff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #fff;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero.section {
  overflow: visible;
  padding: 30px 0 40px 0;
  background: transparent !important;
  background-color: transparent !important;
}

.hero .container-fluid {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
}

/*--------------------------------------------------------------
# Hero Layout: left stack + right photo
--------------------------------------------------------------*/
.hero-with-widget {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 16px;
  /* max-height only applies on desktop — removed from mobile via media query */
  max-height: 420px;
}

.left-column-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  background: linear-gradient(160deg, #fffbe6 0%, #f3c12d 60%, #c8920a 100%);
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 8px 30px rgba(243, 193, 45, 0.25);
  align-items: stretch;
  box-sizing: border-box;
  /* Do NOT set height:100% here — let content drive height on mobile */
}

.right-image-column {
  border-radius: 16px;
  overflow: hidden;
  align-self: stretch;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
  max-height: 420px;
}

.right-image-column:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.hero-outdoor-image {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 16px;
}

.right-image-column:hover .hero-outdoor-image {
  transform: none;
}



@media (max-width: 889px) {
  .hero-with-widget {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Remove the fixed max-height — it squishes stacked children */
    max-height: none;
  }

  /* Photo goes above widgets on mobile */
  .right-image-column {
    order: -1;
    width: 100%;
    max-height: 240px;
    border-radius: 12px;
  }

  .hero-outdoor-image {
    max-height: 240px;
    width: 100%;
    object-fit: cover;
  }

  .left-column-stack {
    width: 100%;
    /* Allow height to be driven by content */
    height: auto;
    max-height: none;
  }
}

/*--------------------------------------------------------------
# Info Widgets Row + Left Stack
--------------------------------------------------------------*/
.info-widgets-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}

/* Prevent children from bleeding outside their grid cell */
.info-widgets-row > * {
  min-height: 0;
  min-width: 0;
}

.info-left-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: stretch;
  flex: 1;
  min-height: 0;
}

.info-left-stack .mass-times-widget {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.info-left-stack .mass-times-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.mass-schedule-v2 {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

@media (max-width: 768px) {
  .info-widgets-row {
    /* Stack Office Hours above Mass Schedule on mobile */
    grid-template-columns: 1fr;
    height: auto;
  }

  .info-left-stack {
    height: auto;
    min-height: unset;
  }

  /* Remove flex constraints that collapse widgets when parent has no fixed height */
  .info-left-stack .mass-times-widget {
    flex: none;
    height: auto;
    min-height: unset;
  }

  .info-left-stack .mass-times-body {
    flex: none;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .mass-schedule-v2 {
    flex: none;
    height: auto;
    min-height: unset;
    overflow: visible;
  }

  .mass-schedule-v2 .ms-body,
  .mass-schedule-v2 .ms-obligation {
    overflow: visible;
  }
}

/*--------------------------------------------------------------
# Mass Times / Office Hours Widgets
--------------------------------------------------------------*/
.mass-times-widget {
  background: #fdf6e3;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(139, 0, 0, 0.15);
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.mass-times-header {
  background: linear-gradient(135deg, #8B0000 0%, #5F0000 100%);
  color: white;
  padding: 7px 12px;
  text-align: center;
  flex-shrink: 0;
}

.mass-times-header h2 {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  color: white;
  font-family: var(--heading-font);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.2;
}

.mass-times-body {
  padding: 7px 12px;
  max-height: none;
  overflow-y: auto;
  flex: 1;
  color: #2a1a1a;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
}

.mass-section {
  margin-bottom: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(139, 0, 0, 0.12);
}

.mass-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.mass-section h3 {
  color: #2a1a1a !important;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px 0;
  text-align: center;
}

.day-label {
  background: rgba(139, 0, 0, 0.85);
  color: white !important;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
  margin: 6px 0;
  text-align: center;
  font-size: 12px;
}

.time-item {
  display: flex;
  align-items: center;
  padding: 4px 0;
  font-size: 13px;
  color: #2a1a1a !important;
}

.time-item span {
  color: #2a1a1a !important;
}

.time-item i {
  color: #8B0000 !important;
  font-size: 15px;
  margin-right: 10px;
  min-width: 15px;
}

.time-item em {
  font-style: normal;
  color: #8B0000 !important;
  font-size: 11px;
  margin-left: 4px;
}

/*--------------------------------------------------------------
# Mass Schedule v2 (two-column layout)
--------------------------------------------------------------*/
.mass-schedule-v2 .mass-times-header {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.mass-schedule-v2 .mass-times-header h2 {
  padding: 10px 14px;
  margin: 0;
  min-height: 0;
}

.ms-col-labels {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  background: rgba(139, 0, 0, 0.08);
  flex-shrink: 0;
}

.ms-col-label {
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  padding: 5px 6px;
  color: rgba(60, 20, 20, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ms-label-div {
  background: rgba(139, 0, 0, 0.2);
}

.ms-body {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  padding: 7px 10px;
  flex: 1;
}

.ms-col {
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.ms-col:first-child {
  padding-left: 0;
}

.ms-col:last-child {
  padding-right: 0;
}

.ms-vdiv {
  background: rgba(139, 0, 0, 0.18);
}

.ms-block {
  margin-bottom: 10px;
}

.ms-block:last-child {
  margin-bottom: 0;
}

.ms-sub {
  font-size: 10px;
  font-weight: 700;
  color: rgba(60, 20, 20, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 4px;
}

.ms-obligation {
  border-top: 1px solid rgba(139, 0, 0, 0.15);
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  padding: 7px 10px;
  flex-shrink: 0;
}

.ms-ob-left {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 8px;
}

.ms-ob-label {
  font-family: var(--heading-font);
  font-size: 11px;
  font-weight: 800;
  color: #2a1a1a !important;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.35;
}

.ms-ob-right {
  padding-left: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ms-ob-note {
  font-size: 10px;
  color: rgba(60, 20, 20, 0.6) !important;
  font-style: italic;
  margin: 5px 0 0;
  line-height: 1.4;
}

/* Make mass-schedule-v2 fill its flex cell */
.mass-schedule-v2 {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mass-schedule-v2 > .ms-body {
  flex: 1;
}

/*--------------------------------------------------------------
# Daily Readings Button
--------------------------------------------------------------*/
.daily-readings-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #132c41;
  color: white;
  font-family: var(--heading-font);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(139, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.daily-readings-btn i {
  font-size: 16px;
  color: white;
}

.daily-readings-btn i.bi-arrow-right-short {
  font-size: 20px;
  margin-left: auto;
}

.daily-readings-btn:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 0, 0, 0.45);
}

/*--------------------------------------------------------------
# Announcements Section
--------------------------------------------------------------*/
.announcements-section {
  margin-top: 10px;
  background: rgba(10, 15, 30, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 15px;
  overflow: hidden;
}

.announcements-title {
  font-size: 16px;
  padding: 10px 16px;
  font-weight: 700;
  color: white;
  font-family: var(--heading-font);
  background: linear-gradient(135deg, #8B0000 0%, #5F0000 100%);
  border-radius: 15px 15px 0 0;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.announcements-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0 0 15px 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.announcement-tile {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.08);
}


.announcement-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.announcement-tile img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center top;
  display: block;
  flex-shrink: 0;
}

.tile-label {
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  background: rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .announcements-tiles {
    grid-template-columns: repeat(2, 1fr);
  }

  .announcement-tile img {
    height: 120px;
  }
}

/*--------------------------------------------------------------
# Image Modal
--------------------------------------------------------------*/
.image-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.92);
  cursor: default;
  overflow-y: auto;
}

.modal-content {
  display: block;
  width: 90%;
  max-width: 900px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  margin: 60px auto 20px auto;
  cursor: default;
}

.modal-close {
  position: fixed;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 50px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 10001;
  line-height: 1;
}

.modal-close:hover,
.modal-close:focus {
  color: #bbb;
}

#modalCaption {
  display: block;
  width: 90%;
  max-width: 900px;
  margin: 0 auto 40px auto;
  text-align: center;
  color: #ccc;
  font-size: 18px;
  padding: 10px;
}

@media (max-width: 768px) {
  .modal-content {
    width: 98%;
    margin: 50px auto 15px auto;
  }

  .modal-close {
    top: 10px;
    right: 15px;
    font-size: 40px;
  }

  #modalCaption {
    font-size: 16px;
  }
}

/*--------------------------------------------------------------
# Eucharistic Adoration Card
--------------------------------------------------------------*/
.adoration-card {
  margin-top: 0;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(139, 0, 0, 0.15);
}

.adoration-header {
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.93) 0%, rgba(95, 0, 0, 0.93) 100%);
  color: white;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
}

.adoration-header h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  color: white;
  font-family: var(--heading-font);
}

.adoration-header img.adoration-icon {
  height: 22px;
  width: 22px;
  object-fit: contain;
}

/* Body holds the image + content together */
.adoration-body {
  position: relative;
  flex: 1;
  min-height: 260px;
  overflow: hidden;
}

.adoration-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% center;
  display: block;
  mask-image: linear-gradient(to right, black 50%, transparent 85%);
  -webkit-mask-image: linear-gradient(to right, black 50%, transparent 85%);
}

.adoration-right {
  position: relative;
  z-index: 2;
  margin-left: auto;
  width: 65%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 14px 14px 14px 10px;
  background: linear-gradient(to right, transparent, rgba(253,246,227,0.97) 45%);
}

.adoration-subtitle {
  font-style: italic;
  color: #4a2a2a;
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  font-weight: 500;
  text-align: center;
}

.adoration-times {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.adoration-schedule {
  margin-bottom: 0;
}

.adoration-schedule h4 {
  color: #8B0000;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  margin: 0 0 6px 0;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.schedule-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0 8px;
  align-items: start;
}

.schedule-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(139, 0, 0, 0.2);
}

.schedule-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.schedule-item strong {
  display: block;
  color: #8B0000;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}

.schedule-times {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.schedule-time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  background: rgba(255, 255, 255, 0.88);
  border-left: 2px solid #8B0000;
  border-radius: 4px;
  padding: 4px 8px;
}

.schedule-time-label {
  font-size: 10px;
  font-weight: 700;
  color: #8B0000;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.schedule-time-value {
  font-size: 14px;
  font-weight: 800;
  color: #2a1a1a;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .adoration-body {
    min-height: unset;
  }

  .adoration-bg-img {
    position: relative;
    inset: unset;
    width: 100%;
    height: 180px;
    object-position: center 25%;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  }

  .adoration-right {
    width: 100%;
    margin-left: 0;
    background: #fdf6e3;
    padding: 12px 14px;
    height: auto;
  }

  .adoration-subtitle {
    font-size: 11px;
  }

  .schedule-time-value {
    font-size: 13px;
  }

  .schedule-item strong {
    font-size: 10px;
  }
}
/*--------------------------------------------------------------
# Adoration + Confessions Row
--------------------------------------------------------------*/

.adoration-confessions-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: fill;
  margin-bottom: 16px;
  width: 100%;
}

.adoration-confessions-row .adoration-card {
  margin-top: 0;
}

.adoration-confessions-row .confessions-widget {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.adoration-confessions-row .confessions-photo {
  width: 100%;
  height: 120px !important;
  object-fit: cover;
  flex-shrink: 0;
}

/* Adoration row tiles (isolated from announcements system) */
.adoration-row-tile {
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: inline-flex;
  align-items: stretch;
  height: fit-content;
}

.adoration-row-tile:hover {
  transform: translateY(-4px);
}

.adoration-row-tile img {
  width: 100%;
  height: auto;
  display: block;
}

.adoration-row-tile .tile-label {
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  background: rgba(0, 0, 0, 0.55);
}

.confessions-title {
  font-size: 18px !important;
}

.confessions-quote {
  font-size: 10px !important;
  line-height: 1.4;
}

@media (max-width: 1300px) {
  .adoration-confessions-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 998px) {
  .adoration-confessions-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1182px) {
  .hero-with-widget {
    display: flex;
    flex-direction: column;
    max-height: none;
  }

  .right-image-column {
    order: -1;
    width: 100%;
    max-height: 280px;
    border-radius: 12px;
  }

  .hero-outdoor-image {
    max-height: 280px;
    width: 100%;
    object-fit: cover;
  }

  .left-column-stack {
    width: 100%;
    height: auto;
    max-height: none;
  }
}
@media (max-width: 889px) {
  .adoration-confessions-row {
    grid-template-columns: 2fr;
  }
}
  .adoration-confessions-row .announcement-tile img {
    height: 200px;
  }

  .adoration-confessions-row .confessions-photo {
    height: 180px;
  }

  .confessions-body {
    padding: 12px 14px 14px;
  }

  .confessions-title {
    font-size: 24px !important;
  }

  .confessions-day,
  .confessions-time {
    font-size: 15px;
  }

.confessions-quote {
  font-size: 9px !important;
  padding-top: 6px;
}

/*--------------------------------------------------------------
# Calendar Widget
--------------------------------------------------------------*/
.widget-container {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  height: 480px;
}

.widget-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-wrap {
  background-color: var(--surface-color);
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

@media (max-width: 575px) {
  .contact .info-wrap {
    padding: 20px;
  }
}

.contact .info-item {
  margin-bottom: 40px;
}

.contact .info-item i {
  font-size: 20px;
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
  margin-right: 15px;
}

.contact .info-item h3 {
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
}

.contact .info-item:hover i {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.contact .php-email-form {
  background-color: var(--surface-color);
  height: 100%;
  padding: 30px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 575px) {
  .contact .php-email-form {
    padding: 20px;
  }
}

.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form textarea {
  font-size: 14px;
  padding: 10px 15px;
  box-shadow: none;
  border-radius: 0;
  color: var(--default-color);
  background-color: var(--surface-color);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.contact .php-email-form input[type=text]:focus,
.contact .php-email-form input[type=email]:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent-color);
}

.contact .php-email-form input::placeholder,
.contact .php-email-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.contact .php-email-form button[type=submit] {
  color: var(--contrast-color);
  background: var(--accent-color);
  border: 0;
  padding: 10px 30px;
  transition: 0.4s;
  border-radius: 50px;
}

.contact .php-email-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 25%);
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .content h2 {
  font-weight: 700;
  font-size: 24px;
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.about .content ul strong {
  margin-right: 10px;
}

.about .content ul i {
  font-size: 16px;
  margin-right: 5px;
  color: var(--accent-color);
  line-height: 0;
}

/*--------------------------------------------------------------
# Parishioner / Staff info layouts
--------------------------------------------------------------*/
.priest-info,
.deacon-info,
.garces-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.priest-info {
  gap: 30px;
  margin-top: 40px;
}

.priest-info .image {
  flex-shrink: 0;
  max-width: 50%;
}

.deacon-info .image {
  flex-shrink: 0;
  max-width: 50%;
}

.text {
  flex: 1;
}

.deacon-info .text,
.garces-info .text {
  flex: 1;
  padding-left: 20px;
}

.deacon-info .image {
  padding-right: 20px;
}

.garces-info .image {
  padding-right: 20px;
}

.garces-info .image img {
  max-width: 100%;
  height: auto;
  width: 419.65px;
}

.image img {
  max-width: 100%;
  height: auto;
}

.deacon-info .image img,
.garces-info .image img {
  max-width: 100%;
  height: auto;
}

.deacon-message {
  text-align: center;
  font-style: italic;
  margin: 0 auto;
  max-width: 600px;
}

.name-bar {
  background-color: var(--accent-color);
  color: #fff;
  font-weight: bold;
  text-align: center;
  padding: 8px 0;
  font-size: 1rem;
  margin-top: 5px;
  border-radius: 4px;
  width: 100%;
}

@media (max-width: 768px) {
  .priest-info,
  .deacon-info,
  .garces-info {
    flex-direction: column;
    text-align: center;
  }

  .deacon-info .text,
  .garces-info .text {
    padding-left: 0;
    order: 2;
  }

  .deacon-info .image,
  .garces-info .image {
    padding-right: 0;
    order: 1;
  }

  .deacon-info .image img,
  .garces-info .image img {
    width: 100%;
    height: auto;
  }
}

/*--------------------------------------------------------------
# Donate button
--------------------------------------------------------------*/
.donate-button {
  width: 400px;
  height: auto;
}

@media (max-width: 768px) {
  .donate-button {
    width: 250px;
  }
}

/*--------------------------------------------------------------
# Pope / Special Banners
--------------------------------------------------------------*/
.pope-banner {
  background-image: url("../img/popewaves.jfif");
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 40px;
  color: white;
  text-align: left;
}

.pope-banner-content {
  max-width: 600px;
  padding: 20px;
  color: white;
}

.papam-declaration {
  font-family: 'Great Vibes', cursive;
  font-size: 4rem;
  font-weight: 400;
  margin: 0;
  color: #f3c12d;
  letter-spacing: 1px;
}

.pope-name {
  font-family: 'Georgia', serif;
  font-size: 2.5rem;
  margin: 10px 0;
  font-weight: 400;
  color: white;
}

.pope-banner-content p {
  margin-top: 12px;
  font-size: 1.1rem;
  color: white;
}

@media (max-width: 767px) {
  .pope-banner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 300px;
    text-align: center;
  }

  .pope-banner-content {
    padding: 0;
    max-width: 90%;
  }

  .papam-declaration {
    font-size: 2.5rem;
  }

  .pope-name {
    font-size: 1.75rem;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
  }

  .pope-banner-content p {
    font-size: 0.95rem;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
  }
}

/*--------------------------------------------------------------
# Daily Readings Page
--------------------------------------------------------------*/
.reading-container {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin: 20px auto;
}

.reading-title {
  color: #2c3e50;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
}

.reading-content {
  color: #444;
  font-size: 18px;
  line-height: 1.6;
  padding: 10px;
}

.reading-link {
  text-align: center;
  margin-top: 15px;
}

.reading-link a {
  color: var(--accent-color);
  font-weight: bold;
}

.reading-link a:hover {
  text-decoration: underline;
}

#daily-reading-content,
#gospel-content,
#holy-father-content {
  margin-top: 20px;
}

#daily-reading-content h2,
#gospel-content h2,
#holy-father-content h2 {
  color: var(--accent-color);
  text-align: center;
}

/*--------------------------------------------------------------
# Translate Widget
--------------------------------------------------------------*/
#translate-toggle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  background-color: var(--accent-color);
  color: white;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

#translate-toggle:hover {
  background-color: #117bb8;
}

#google_translate_element {
  display: none;
  position: fixed;
  bottom: 80px;
  left: 20px;
  z-index: 9999;
  background: white;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/*--------------------------------------------------------------
# Main background / overlay
--------------------------------------------------------------*/
.main {
  background: linear-gradient(90deg, #4a7ab5 0%, #1e3a5f 100%);
  position: relative;
}

.main::before {
  display: none;
}

.main > *:not(nav):not(header) {
  position: relative;
  z-index: 1;
}

.main nav,
.main header {
  position: relative;
  z-index: 10;
}

@media (max-width: 768px) {
  body {
    background: linear-gradient(90deg, #4a7ab5 0%, #1e3a5f 100%);
  }

  .main {
    background: transparent !important;
    background-image: none !important;
  }

  .main::before {
    display: none;
  }
}

/*--------------------------------------------------------------
# Gallery Slideshow
--------------------------------------------------------------*/
.slideshow-container {
  position: relative;
  max-width: 100%;
  margin: auto;
  overflow: hidden;
  padding-bottom: 56.25%;
  height: 0;
}

.mySlides {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.8s ease-in-out;
}

.mySlides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.mySlides.show {
  opacity: 1;
}

.fade {
  animation: fadeEffect 1.5s;
}

@keyframes fadeEffect {
  from { opacity: 0.4; }
  to   { opacity: 1; }
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 28px;
  user-select: none;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 3px;
  z-index: 2;
}

.next {
  right: 0;
}

.prev:hover,
.next:hover {
  background: rgba(0, 0, 0, 0.8);
}

.dot-container {
  text-align: center;
  padding: 12px 0;
}

.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.dot.active,
.dot:hover {
  background-color: #717171;
}

/*--------------------------------------------------------------
# Google Maps Autocomplete
--------------------------------------------------------------*/
gmp-place-autocomplete {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

gmp-place-autocomplete:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/*--------------------------------------------------------------
# Button Background
--------------------------------------------------------------*/
.button-background {
  display: inline-block;
  font-weight: 400;
  color: var(--contrast-color);
  text-align: center;
  vertical-align: middle;
  user-select: none;
  background-color: var(--accent-color);
  border: 1px solid var(--accent-color);
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: color .15s ease-in-out, background-color .15s ease-in-out,
              border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  cursor: pointer;
  text-decoration: none;
}

.button-background:hover {
  background-color: color-mix(in srgb, var(--accent-color), black 8%);
  border-color: color-mix(in srgb, var(--accent-color), black 10%);
  color: var(--contrast-color);
}

.button-background:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--accent-color), transparent 60%);
}

.button-background:active {
  background-color: color-mix(in srgb, var(--accent-color), black 15%);
  border-color: color-mix(in srgb, var(--accent-color), black 18%);
  transform: translateY(1px);
}

.button-background.disabled,
.button-background:disabled {
  opacity: 0.65;
  pointer-events: none;
}

/*--------------------------------------------------------------
# USCCB Button
--------------------------------------------------------------*/
.usccb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #8B0000 0%, #5F0000 100%);
  color: white;
  font-family: var(--heading-font);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 8px;
}

.usccb-btn i {
  font-size: 15px;
  color: white;
}

.usccb-btn:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 0, 0, 0.45);
}

@media (max-width: 768px) {
  .usccb-btn {
    font-size: 13px;
    padding: 9px 16px;
  }
}

/*--------------------------------------------------------------
# Mobile-only helpers
--------------------------------------------------------------*/
.mobile-secondary-widgets {
  display: none;
}


/*--------------------------------------------------------------
# Confessions Widget
--------------------------------------------------------------*/
.confessions-widget {
  background: none !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
  overflow: hidden;
  border-radius: 15px !important;
  display: flex;
  flex-direction: column;
}

.confessions-photo {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  flex-shrink: 0;
}


.confessions-body {
  background: #7b3fa0;
  padding: 6px 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.confessions-title {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 22px !important;
  font-weight: 700;
  color: #fff !important;
  text-align: center;
  margin: 0;
  line-height: 1.1;
}

.confessions-schedule {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.confessions-sublabel {
  color: rgba(255,255,255,0.85) !important;
  font-size: 11px;
  font-weight: 400;
  padding-left: 2px;
}

.confessions-time-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.confessions-day {
  color: #fff !important;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.confessions-divider {
  color: rgba(255,255,255,0.6) !important;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}

.confessions-time {
  color: #fff !important;
  font-size: 15px;
  font-weight: 800;
}

.confessions-quote {
  color: rgba(255,255,255,0.9) !important;
  font-size: 11.5px;
  line-height: 1.6;
  margin: 0;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 10px;
}

.confessions-quote em {
  color: #fff !important;
  font-style: normal;
  font-weight: 600;
}

.cert-section {
      background: var(--background-color, #f4fafd);
      padding: 60px 0;
    }

    .cert-page-header {
      text-align: center;
      margin-bottom: 36px;
    }

    .cert-page-header .cert-icon {
      width: 64px;
      height: 64px;
      background: linear-gradient(135deg, #8B0000, #5F0000);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 16px;
      box-shadow: 0 4px 20px rgba(139, 0, 0, 0.3);
    }

    .cert-page-header .cert-icon i {
      font-size: 28px;
      color: #f3c12d;
    }

    .cert-page-header h2 {
      font-family: "Raleway", sans-serif;
      font-size: 2rem;
      font-weight: 800;
      color: #050d18;
      margin-bottom: 6px;
    }

    .cert-page-header .cert-subtitle {
      font-family: "Poppins", sans-serif;
      font-size: 13px;
      color: #7a4a2a;
      letter-spacing: 0.04em;
    }

    .confessions-subtitle {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 17px !important;
  color: rgba(255,255,255,0.85) !important;
  margin: 0;
  font-weight: 400;
  text-align: center;
}

.confessions-appointment {
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255,255,255,0.85) !important;
}

.confessions-appointment strong {
  font-size: 12px;
  color: #fff !important;
}