:root {
  --cg-blue: #ec0042;
  --cg-blue-700: #b51225;
  --cg-primary: #ec0042;
  --cg-accent: #1c8f5a;
  --cg-green: #1c8f5a;
  --cg-gold: #f4b740;
  --cg-ink: #1f1117;
  --cg-heading: #1f1117;
  --cg-muted: #667085;
  --cg-line: #dbe3ef;
  --cg-border: #dbe3ef;
  --cg-soft: #f5f8fc;
  --cg-surface: #ffffff;
  --cg-muted-surface: #f5f8fc;
  --cg-white: #ffffff;
  --cg-danger: #b42318;
  --cg-radius: 8px;
  --cg-radius-md: 8px;
  --cg-radius-lg: 8px;
  --cg-radius-xl: 8px;
  --cg-shadow: 0 18px 45px rgba(23, 32, 51, .10);
  --cg-shadow-sm: 0 8px 24px rgba(23, 32, 51, .07);
  --cg-shadow-lg: 0 24px 60px rgba(23, 32, 51, .14);
  --cg-soft-shadow: 0 8px 24px rgba(23, 32, 51, .07);
}

.cg-skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 10000;
  transform: translateY(-140%);
  border-radius: var(--cg-radius);
  background: var(--cg-blue);
  color: #fff;
  padding: 10px 14px;
  font-weight: 900;
  text-decoration: none;
}

.cg-skip-link:focus {
  transform: translateY(0);
  color: #fff;
}

.cg-site {
  background: #fff;
  color: var(--cg-ink);
}

.cg-site a:focus-visible,
.cg-site button:focus-visible,
.cg-site input:focus-visible,
.cg-site select:focus-visible,
.cg-site textarea:focus-visible {
  outline: 3px solid rgba(236, 0, 66, .28);
  outline-offset: 3px;
}

.cg-menu-open,
.cg-menu-open body {
  overflow: hidden;
}

.cg-site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(219, 227, 239, .9);
  box-shadow: 0 10px 30px rgba(23, 32, 51, .06);
  backdrop-filter: blur(14px);
}

.cg-site-top {
  background: #2a0711;
  color: rgba(255,255,255,.82);
  font-size: .84rem;
}

.cg-site-top__inner,
.cg-mainbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cg-site-top__inner {
  min-height: 38px;
}

.cg-site-top__meta,
.cg-site-top__actions,
.cg-footer-actions,
.cg-socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.cg-site-top a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.86);
  text-decoration: none;
  font-weight: 800;
}

.cg-site-top a:hover,
.cg-site-top a:focus {
  color: #fff;
}

.cg-mainbar {
  background: #fff;
}

.cg-mainbar__inner {
  min-height: 78px;
}

.cg-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  color: var(--cg-ink);
  text-decoration: none;
}

.cg-brand:hover,
.cg-brand:focus {
  color: var(--cg-ink);
  text-decoration: none;
}

.cg-brand .cg-image,
.cg-brand img {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 8px;
}

.cg-brand--logo-only .cg-image,
.cg-brand--logo-only img {
  width: clamp(210px, 24vw, 330px);
  height: 58px;
  border-radius: 0;
  object-fit: contain;
}

.cg-brand--logo-only .cg-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cg-brand span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.cg-brand strong {
  color: var(--cg-ink);
  font-size: 1rem;
  line-height: 1.1;
  font-weight: 900;
}

.cg-brand small {
  max-width: 290px;
  overflow: hidden;
  color: var(--cg-muted);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cg-desktop-nav > ul {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cg-desktop-nav {
  margin-left: auto;
}

.cg-desktop-nav li {
  position: relative;
}

.cg-desktop-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  border-radius: var(--cg-radius);
  color: var(--cg-ink);
  padding: 9px 12px;
  font-weight: 900;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.cg-desktop-nav a:hover,
.cg-desktop-nav a:focus,
.cg-desktop-nav .has-children:hover > a,
.cg-desktop-nav li.is-active > a,
.cg-desktop-nav a.is-active {
  background: #fff1f4;
  color: var(--cg-primary);
}

.cg-desktop-nav a:focus-visible {
  box-shadow: 0 0 0 3px rgba(236, 0, 66, .16);
  outline: 0;
}

.cg-desktop-nav .has-children > a i {
  color: currentColor;
  font-size: .78rem;
  opacity: .72;
  transition: transform .18s ease;
}

.cg-desktop-nav .has-children:hover > a i,
.cg-desktop-nav .has-children:focus-within > a i {
  transform: rotate(180deg);
}

.cg-desktop-nav ul ul {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: grid;
  gap: 4px;
  min-width: 245px;
  max-height: min(70vh, 520px);
  overflow: auto;
  margin: 0;
  padding: 10px;
  list-style: none;
  border: 1px solid var(--cg-line);
  border-radius: var(--cg-radius-lg);
  background: #fff;
  box-shadow: var(--cg-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 50;
}

.cg-desktop-nav ul ul:before {
  content: "";
  position: absolute;
  top: -6px;
  left: 22px;
  width: 12px;
  height: 12px;
  border-left: 1px solid var(--cg-line);
  border-top: 1px solid var(--cg-line);
  background: #fff;
  transform: rotate(45deg);
}

.cg-desktop-nav li:hover > ul,
.cg-desktop-nav li:focus-within > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cg-desktop-nav ul ul a {
  justify-content: flex-start;
  width: 100%;
  min-height: 38px;
  border-radius: var(--cg-radius);
  color: var(--cg-muted);
  font-weight: 800;
  white-space: nowrap;
}

.cg-desktop-nav ul ul a:hover,
.cg-desktop-nav ul ul a:focus,
.cg-desktop-nav ul ul a.is-active {
  background: #fff1f4;
  color: var(--cg-primary);
}

.cg-menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--cg-line);
  border-radius: var(--cg-radius);
  background: #fff;
  color: var(--cg-ink);
  padding: 0;
  font-size: 1.15rem;
  font-weight: 900;
  transition: .18s ease;
}

.cg-menu-button:hover,
.cg-menu-button:focus {
  border-color: rgba(236, 0, 66, .38);
  background: #fff1f4;
  color: var(--cg-primary);
}

.cg-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px 0;
  border-radius: 999px;
  background: currentColor;
}

.cg-menu-button em {
  font-style: normal;
}

.cg-mobile-panel[hidden] {
  display: none;
}

.cg-mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.cg-mobile-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .55);
}

.cg-mobile-panel__drawer {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(390px, 92vw);
  height: 100%;
  background: #fff;
  box-shadow: -20px 0 60px rgba(15, 23, 42, .22);
}

.cg-mobile-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--cg-line);
}

.cg-mobile-panel__head button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--cg-line);
  border-radius: var(--cg-radius);
  background: #fff;
}

.cg-mobile-nav {
  display: grid;
  gap: 4px;
  padding: 14px;
  overflow: auto;
}

.cg-mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 43px;
  border-radius: var(--cg-radius);
  color: var(--cg-ink);
  padding: 11px 12px;
  font-weight: 900;
  text-decoration: none;
}

.cg-mobile-nav a:hover,
.cg-mobile-nav a:focus,
.cg-mobile-nav a.is-active {
  background: #fff1f4;
  color: var(--cg-primary);
}

.cg-mobile-nav__child {
  margin-left: 18px;
  min-height: 38px !important;
  border-left: 2px solid var(--cg-line);
  border-radius: 0 var(--cg-radius) var(--cg-radius) 0 !important;
  color: var(--cg-muted) !important;
  font-size: .92rem;
  justify-content: flex-start !important;
  padding-left: 14px !important;
}

.cg-mobile-nav__child:hover,
.cg-mobile-nav__child:focus,
.cg-mobile-nav__child.is-active {
  border-left-color: var(--cg-primary);
  color: var(--cg-primary) !important;
}

.cg-site-footer {
  background: #2a0711;
  color: rgba(255,255,255,.78);
  padding: 54px 0 0;
}

.cg-footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) repeat(3, minmax(145px, .85fr)) minmax(280px, 1.2fr);
  gap: 28px;
}

.cg-footer-grid > * {
  min-width: 0;
}

.cg-footer-newsletter {
  margin-left: 34px;
  min-width: 0;
}

.cg-site-footer .cg-brand strong,
.cg-site-footer h2 {
  color: #fff;
}

.cg-site-footer .cg-brand small,
.cg-footer-brand p,
.cg-footer-contact,
.cg-footer-bottom {
  color: rgba(255,255,255,.68);
}

.cg-site-footer .cg-brand .cg-image,
.cg-site-footer .cg-brand img {
  background: rgba(255,255,255,.08);
}

.cg-site-footer .cg-brand--logo-only .cg-image,
.cg-site-footer .cg-brand--logo-only img {
  background: transparent;
}

.cg-site-footer .cg-brand--logo-only {
  max-width: 100%;
}

.cg-site-footer .cg-brand--logo-only .cg-image,
.cg-site-footer .cg-brand--logo-only img {
  height: 58px;
  max-width: 100%;
  width: min(100%, 250px);
}

.cg-footer-brand p {
  margin: 18px 0 0;
  line-height: 1.7;
}

.cg-site-footer h2 {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 900;
}

.cg-footer-links,
.cg-footer-contact {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cg-footer-links a,
.cg-footer-contact a,
.cg-footer-bottom a {
  color: rgba(255,255,255,.76);
  text-decoration: none;
}

.cg-footer-links a:hover,
.cg-footer-contact a:hover,
.cg-footer-bottom a:hover {
  color: #fff;
}

.cg-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.55;
}

.cg-footer-contact i {
  color: var(--cg-gold);
  margin-top: 4px;
}

.cg-socials {
  margin-top: 18px;
}

.cg-socials a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--cg-radius);
  color: #fff;
  text-decoration: none;
}

.cg-socials a:hover,
.cg-socials a:focus {
  background: rgba(255,255,255,.1);
}

.cg-footer-actions {
  margin-top: 18px;
}

.cg-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 36px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.1);
}

.cg-footer-bottom p {
  margin: 0;
}

.cg-home-hero {
  position: relative;
  min-height: clamp(560px, 82vh, 780px);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  color: #fff;
}

.cg-home-hero__media,
.cg-home-hero__overlay {
  position: absolute;
  inset: 0;
}

.cg-home-hero__media {
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.cg-home-hero__slides {
  position: absolute;
  inset: 0;
}

.cg-home-hero__slide {
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 900ms ease, transform 5000ms ease;
}

.cg-home-hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
  animation: cgHeroKenBurns 7000ms ease-in-out both;
}

.cg-home-hero__overlay {
  background:
    linear-gradient(90deg, rgba(16, 18, 24, .78) 0%, rgba(16, 18, 24, .54) 48%, rgba(16, 18, 24, .26) 100%),
    linear-gradient(0deg, rgba(16, 18, 24, .64), transparent 46%);
}

.cg-home-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  align-items: end;
  gap: clamp(24px, 5vw, 56px);
  padding: clamp(76px, 12vw, 132px) 0 clamp(42px, 8vw, 82px);
}

.cg-home-hero__copy {
  max-width: 780px;
}

.cg-home-hero h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(42px, 7vw, 82px);
  line-height: .98;
  font-weight: 900;
}

.cg-home-hero__copy > p:not(.cg-eyebrow) {
  max-width: 680px;
  color: rgba(255,255,255,.88);
  font-size: clamp(1.03rem, 1.8vw, 1.22rem);
  line-height: 1.7;
}

.cg-home-hero .cg-btn--ghost {
  color: #fff;
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.28);
}

.cg-home-hero__dots {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}

.cg-home-hero__dots button {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.38);
  padding: 0;
  transition: .2s ease;
}

.cg-home-hero__dots button.is-active,
.cg-home-hero__dots button:hover,
.cg-home-hero__dots button:focus {
  width: 48px;
  background: var(--cg-primary);
}

@keyframes cgHeroKenBurns {
  from {
    transform: scale(1.08) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.02) translate3d(-1.4%, -1%, 0);
  }
}

.cg-home-event {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--cg-radius);
  background: rgba(255,255,255,.12);
  padding: 22px;
  box-shadow: 0 18px 48px rgba(0,0,0,.16);
  backdrop-filter: blur(14px);
}

.cg-home-event span {
  color: rgba(255,255,255,.72);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cg-home-event h2 {
  margin: 0;
  color: #fff;
  font-size: 1.45rem;
  line-height: 1.22;
  font-weight: 900;
}

.cg-home-event h2 a {
  color: inherit;
  text-decoration: none;
}

.cg-home-event p {
  display: flex;
  gap: 8px;
  margin: 0;
  color: rgba(255,255,255,.84);
  line-height: 1.55;
}

.cg-home-event .cg-btn--secondary {
  color: var(--cg-blue-700) !important;
  background: rgba(255,255,255,.92);
  border-color: rgba(255,255,255,.92);
}

.cg-home-event .cg-btn--secondary:hover,
.cg-home-event .cg-btn--secondary:focus {
  color: #fff;
  background: var(--cg-blue-700);
  border-color: var(--cg-blue-700);
}

.cg-home-strip {
  background: #fff;
  border-bottom: 1px solid var(--cg-line);
}

.cg-home-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--cg-line);
}

.cg-home-strip article {
  display: grid;
  gap: 6px;
  min-height: 112px;
  background: #fff;
  padding: 22px;
}

.cg-home-strip strong {
  color: var(--cg-ink);
  font-size: 1.05rem;
  font-weight: 900;
}

.cg-home-strip span {
  color: var(--cg-muted);
  line-height: 1.55;
}

.cg-section-actions {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.cg-home-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 24px;
  align-items: start;
}

.cg-program-list,
.cg-latest-sermon {
  border: 1px solid var(--cg-line);
  border-radius: var(--cg-radius);
  background: #fff;
  padding: 20px;
  box-shadow: var(--cg-soft-shadow);
}

.cg-program-list h3,
.cg-latest-sermon h3 {
  margin: 0 0 16px;
  color: var(--cg-ink);
  font-size: 1.1rem;
  font-weight: 900;
}

.cg-program-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid #edf2f7;
}

.cg-program-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.cg-program-item > div {
  display: grid;
  place-items: center;
  align-self: start;
  min-height: 76px;
  border-radius: var(--cg-radius);
  background: #eef7ff;
  color: var(--cg-blue-700);
}

.cg-program-item strong {
  font-size: 1.35rem;
  font-weight: 900;
}

.cg-program-item span {
  color: var(--cg-muted);
  font-size: .78rem;
  font-weight: 900;
}

.cg-program-item h4 {
  margin: 0 0 6px;
  color: var(--cg-ink);
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.cg-program-item p {
  margin: 0 0 6px;
  color: var(--cg-muted);
  line-height: 1.55;
}

.cg-gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.cg-gallery-grid a {
  display: block;
  text-decoration: none;
}

.cg-home-cta {
  background: linear-gradient(135deg, #2a0711, #ec0042);
  color: #fff;
  padding: clamp(42px, 7vw, 72px) 0;
}

.cg-home-cta .cg-container {
  display: grid;
  align-items: center;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
}

.cg-home-cta h2 {
  max-width: 760px;
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  font-weight: 900;
}

.cg-home-cta p:not(.cg-eyebrow) {
  max-width: 680px;
  margin: 0;
  color: rgba(255,255,255,.78);
  line-height: 1.65;
}

.cg-home-cta .cg-eyebrow {
  color: #fff;
}

.cg-home-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  flex: none;
}

.cg-home-cta__form {
  min-width: 0;
}

.cg-home-cta .cg-btn--ghost {
  color: #fff;
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.24);
}

.cg-container {
  width: min(1140px, calc(100% - 32px));
  margin-inline: auto;
}

.cg-section {
  padding: clamp(42px, 7vw, 84px) 0;
  background: var(--cg-white);
}

.cg-section--soft {
  background: var(--cg-soft);
}

.cg-section__head {
  max-width: 760px;
  margin-bottom: 28px;
}

.cg-section__head h2,
.cg-page-hero h1,
.cg-card h3,
.cg-empty h3,
.cg-newsletter h3 {
  letter-spacing: 0;
}

.cg-section__head h2 {
  color: var(--cg-ink);
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.12;
  font-weight: 800;
  margin-bottom: 10px;
}

.cg-section__head p,
.cg-card__content,
.cg-empty p,
.cg-newsletter p {
  color: var(--cg-muted);
  line-height: 1.65;
}

.cg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--cg-blue-700);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 22px;
}

.cg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  border-radius: var(--cg-radius);
  border: 1px solid transparent;
  padding: 10px 17px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: .18s ease;
}

.cg-btn:hover,
.cg-btn:focus {
  text-decoration: none;
  transform: translateY(-1px);
}

.cg-btn--primary {
  color: #fff;
  background: var(--cg-blue);
  border-color: var(--cg-blue);
}

.cg-btn--primary:hover,
.cg-btn--primary:focus {
  color: #fff;
  background: var(--cg-blue-700);
  border-color: var(--cg-blue-700);
}

.cg-btn--secondary {
  color: var(--cg-blue-700);
  background: #fff;
  border-color: #ffd4df;
}

.cg-btn--secondary:visited {
  color: var(--cg-blue-700);
}

.cg-btn--ghost {
  color: var(--cg-ink);
  background: #fff;
  border-color: var(--cg-line);
}

.cg-btn--sm {
  min-height: 34px;
  padding: 7px 12px;
  font-size: .85rem;
}

.cg-btn--lg {
  min-height: 50px;
  padding: 13px 22px;
}

.cg-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: .75rem;
  font-weight: 900;
}

.cg-badge--neutral {
  color: var(--cg-muted);
  background: #eef2f6;
}

.cg-badge--success {
  color: #087a51;
  background: #e9f8f1;
}

.cg-badge--blue {
  color: var(--cg-blue-700);
  background: #e9f3ff;
}

.cg-alert {
  border: 1px solid var(--cg-line);
  border-left: 4px solid var(--cg-blue);
  border-radius: var(--cg-radius);
  background: #fff;
  padding: 14px 16px;
  color: var(--cg-ink);
  box-shadow: var(--cg-soft-shadow);
}

.cg-alert--success {
  border-left-color: var(--cg-green);
}

.cg-alert--error {
  border-left-color: var(--cg-danger);
}

.cg-empty {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 44px 20px;
  border: 1px dashed var(--cg-line);
  border-radius: var(--cg-radius);
  background: #fff;
  text-align: center;
}

.cg-empty i {
  color: #98a2b3;
  font-size: 2rem;
}

.cg-image {
  margin: 0;
  overflow: hidden;
  border-radius: var(--cg-radius);
  background: #edf2f7;
}

.cg-image--ratio {
  aspect-ratio: var(--cg-ratio);
}

.cg-image__media {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cg-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--cg-line);
  border-radius: var(--cg-radius);
  background: #fff;
  color: var(--cg-ink);
  text-decoration: none;
  box-shadow: var(--cg-soft-shadow);
  transition: .18s ease;
}

.cg-card:hover,
.cg-card:focus {
  color: var(--cg-ink);
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--cg-shadow);
}

.cg-card__body {
  display: grid;
  gap: 9px;
  padding: 18px;
}

.cg-card__meta {
  margin: 0;
  color: var(--cg-blue-700);
  font-size: .78rem;
  font-weight: 900;
}

.cg-card h3 {
  margin: 0;
  color: var(--cg-ink);
  font-size: 1.2rem;
  line-height: 1.28;
  font-weight: 800;
}

.cg-card__content p {
  margin: 0;
}

.cg-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

.cg-card__chips span {
  border-radius: 999px;
  background: #eef7ff;
  color: var(--cg-blue-700);
  padding: 4px 8px;
  font-size: .72rem;
  font-weight: 900;
}

.cg-page-hero {
  position: relative;
  min-height: clamp(260px, 42vw, 440px);
  display: flex;
  align-items: end;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.cg-page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 18, 24, .72), rgba(16, 18, 24, .34));
}

.cg-page-hero__inner {
  position: relative;
  z-index: 1;
  padding: 42px 0;
}

.cg-page-hero h1 {
  max-width: 820px;
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.02;
  font-weight: 900;
}

.cg-page-hero__title-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 920px;
}

.cg-page-hero__title-row h1 {
  margin: 0 0 12px;
}

.cg-page-hero__title-row .cg-image {
  border: 3px solid rgba(255, 255, 255, .82);
  border-radius: 999px;
  box-shadow: var(--cg-shadow);
  flex: 0 0 clamp(64px, 9vw, 96px);
  height: clamp(64px, 9vw, 96px);
  overflow: hidden;
  width: clamp(64px, 9vw, 96px);
}

.cg-page-hero__title-row .cg-image__media {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.cg-page-hero p {
  max-width: 680px;
  color: rgba(255,255,255,.88);
  font-size: 1.05rem;
  line-height: 1.65;
}

.cg-page-hero .cg-eyebrow {
  color: #fff;
}

.cg-page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.cg-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.cg-breadcrumb li {
  color: rgba(255,255,255,.78);
  font-weight: 800;
  font-size: .85rem;
}

.cg-breadcrumb li + li:before {
  content: "/";
  margin-right: 8px;
  opacity: .65;
}

.cg-breadcrumb a {
  color: #fff;
  text-decoration: none;
}

@media (max-width: 767px) {
  .cg-page-hero__title-row {
    align-items: flex-start;
    gap: 12px;
  }

  .cg-page-hero__title-row .cg-image {
    flex-basis: 56px;
    height: 56px;
    width: 56px;
  }
}

.cg-newsletter {
  box-sizing: border-box;
  display: grid;
  gap: 14px;
  max-width: 100%;
  padding: 22px;
  width: 100%;
  border: 1px solid var(--cg-line);
  border-radius: var(--cg-radius);
  background: #fff;
  box-shadow: var(--cg-soft-shadow);
}

.cg-newsletter--footer {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.16);
  box-shadow: none;
  padding: 18px;
}

.cg-newsletter--footer h3 {
  color: #fff;
}

.cg-newsletter--footer p {
  color: rgba(255,255,255,.7);
}

.cg-newsletter label {
  display: grid;
  gap: 6px;
  color: var(--cg-ink);
  font-weight: 800;
  min-width: 0;
}

.cg-newsletter--footer label,
.cg-newsletter--footer label span {
  color: rgba(255,255,255,.9);
}

.cg-newsletter input {
  box-sizing: border-box;
  min-height: 44px;
  width: 100%;
  border: 2px solid #b9d4f5;
  border-radius: var(--cg-radius);
  background: #fff;
  color: var(--cg-heading);
  padding: 10px 12px;
}

.cg-form-error {
  color: var(--cg-danger);
  font-size: .82rem;
  font-weight: 800;
}

.cg-newsletter .cg-btn {
  justify-content: center;
  width: 100%;
}

.cg-newsletter input:focus,
.cg-reactions button:focus,
.cg-btn:focus {
  outline: 3px solid rgba(236, 0, 66, .18);
  outline-offset: 2px;
}

.cg-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.cg-reactions form {
  margin: 0;
}

.cg-reactions button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  border: 1px solid var(--cg-line);
  border-radius: 999px;
  background: #fff;
  color: var(--cg-ink);
  padding: 7px 11px;
  font-weight: 800;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.cg-reactions button:hover {
  border-color: rgba(236, 0, 66, .35);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
  transform: translateY(-1px);
}

.cg-reactions strong {
  color: var(--cg-blue-700);
}

.cg-visitor-menu {
  position: relative;
  flex: none;
}

.cg-visitor-menu--desktop {
  margin-left: 18px;
  padding-left: 18px;
  border-left: 1px solid var(--cg-line);
}

.cg-visitor-menu--mobile {
  display: none;
}

.cg-visitor-login-button,
.cg-visitor-menu__trigger,
.cg-visitor-menu__dropdown button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--cg-line);
  border-radius: var(--cg-radius);
  background: #fff;
  color: var(--cg-ink);
  font-weight: 900;
  text-decoration: none;
}

.cg-visitor-login-button,
.cg-visitor-menu__trigger {
  min-height: 42px;
  padding: 8px 12px;
}

.cg-visitor-login-button:hover,
.cg-visitor-login-button:focus,
.cg-visitor-menu__trigger:hover,
.cg-visitor-menu__trigger:focus {
  border-color: rgba(236, 0, 66, .35);
  background: #fff1f4;
  color: var(--cg-primary);
}

.cg-visitor-avatar {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--cg-primary);
  color: #fff;
  font-size: .82rem;
  font-weight: 900;
  line-height: 1;
}

.cg-visitor-menu__name {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cg-visitor-menu__dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 70;
  display: grid;
  min-width: 260px;
  border: 1px solid var(--cg-line);
  border-radius: var(--cg-radius-lg);
  background: #fff;
  box-shadow: var(--cg-shadow);
  overflow: hidden;
}

.cg-visitor-menu__dropdown[hidden] {
  display: none;
}

.cg-visitor-menu__profile {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--cg-line);
}

.cg-visitor-menu__profile strong,
.cg-visitor-menu__profile small {
  display: block;
}

.cg-visitor-menu__profile small {
  color: var(--cg-muted);
  font-weight: 700;
}

.cg-visitor-menu__dropdown form {
  margin: 0;
}

.cg-visitor-menu__dropdown button {
  justify-content: flex-start;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 0;
  padding: 12px 14px;
  color: var(--cg-danger);
}

.cg-auth-open,
.cg-auth-open body {
  overflow: hidden;
}

.cg-auth-modal[hidden] {
  display: none;
}

.cg-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 18px;
}

.cg-auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .58);
  backdrop-filter: blur(4px);
}

.cg-auth-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid var(--cg-line);
  border-radius: var(--cg-radius-lg);
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
  padding: 26px;
}

.cg-auth-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--cg-line);
  border-radius: var(--cg-radius);
  background: #fff;
  color: var(--cg-ink);
}

.cg-auth-modal__intro h2 {
  margin: 4px 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
}

.cg-auth-modal__intro p:last-child {
  margin-bottom: 0;
  color: var(--cg-muted);
}

.cg-auth-modal__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 20px 0;
  padding: 5px;
  border: 1px solid var(--cg-line);
  border-radius: var(--cg-radius);
  background: #f6f8fb;
}

.cg-auth-modal__tabs button {
  min-height: 38px;
  border: 0;
  border-radius: calc(var(--cg-radius) - 2px);
  background: transparent;
  color: var(--cg-muted);
  font-weight: 900;
}

.cg-auth-modal__tabs button.is-active {
  background: #fff;
  color: var(--cg-primary);
  box-shadow: 0 6px 18px rgba(15, 23, 42, .08);
}

.cg-auth-modal__message {
  margin-bottom: 14px;
  border-radius: var(--cg-radius);
  padding: 11px 12px;
  background: #eef6ff;
  color: var(--cg-blue-700);
  font-weight: 800;
}

.cg-auth-modal__message[data-type="error"] {
  background: #fff1f4;
  color: var(--cg-danger);
}

.cg-auth-modal__message[data-type="success"] {
  background: #ecfdf3;
  color: #047857;
}

.cg-auth-form {
  display: grid;
  gap: 14px;
}

.cg-auth-form[hidden] {
  display: none;
}

.cg-auth-form label {
  display: grid;
  gap: 7px;
  margin: 0;
  color: var(--cg-ink);
  font-weight: 900;
}

.cg-auth-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--cg-line);
  border-radius: var(--cg-radius);
  padding: 10px 12px;
  color: var(--cg-ink);
  font-weight: 700;
}

.cg-auth-form input:focus,
.cg-auth-modal button:focus-visible {
  outline: 3px solid rgba(236, 0, 66, .18);
  outline-offset: 2px;
}

.cg-checkline {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 9px !important;
  color: var(--cg-muted) !important;
}

.cg-checkline input {
  width: 16px;
  height: 16px;
  min-height: 0;
}

.cg-auth-submit {
  min-height: 48px;
  border: 0;
  border-radius: var(--cg-radius);
  background: var(--cg-primary);
  color: #fff;
  font-weight: 900;
}

.cg-auth-submit:disabled {
  opacity: .65;
}

.cg-auth-modal__anonymous {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--cg-line);
}

.cg-auth-modal__anonymous span:before {
  content: "Interaction anonyme disponible";
  color: var(--cg-muted);
  font-weight: 800;
}

.cg-auth-modal__anonymous button {
  min-height: 42px;
  border: 1px solid var(--cg-line);
  border-radius: var(--cg-radius);
  background: #fff;
  color: var(--cg-blue-700);
  font-weight: 900;
}

.cg-verification-panel {
  max-width: 680px;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .cg-container {
    width: min(100% - 24px, 1140px);
  }

  .cg-section {
    padding: 34px 0;
  }

  .cg-page-hero {
    min-height: 300px;
  }

  .cg-page-hero__inner {
    padding: 34px 0;
  }

  .cg-newsletter {
    padding: 18px;
  }
}

@media (max-width: 1024px) {
  .cg-site-top__inner {
    justify-content: center;
  }

  .cg-site-top__meta {
    display: none;
  }

  .cg-desktop-nav {
    display: none;
  }

  .cg-visitor-menu--desktop {
    display: none;
  }

  .cg-visitor-menu--mobile {
    display: block;
    margin-bottom: 10px;
  }

  .cg-visitor-login-button,
  .cg-visitor-menu__trigger {
    justify-content: center;
    width: 100%;
  }

  .cg-visitor-menu__dropdown {
    position: static;
    margin-top: 8px;
    min-width: 0;
  }

  .cg-menu-button {
    display: inline-flex;
  }

  .cg-brand small {
    max-width: 220px;
  }

  .cg-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cg-footer-newsletter {
    grid-column: 1 / -1;
    margin-left: 0;
  }

  .cg-home-hero__inner,
  .cg-home-two-col {
    grid-template-columns: 1fr;
  }

  .cg-home-event {
    max-width: 520px;
  }

  .cg-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cg-home-cta .cg-container {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .cg-mainbar__inner {
    min-height: 68px;
  }

  .cg-brand .cg-image,
  .cg-brand img {
    width: 44px;
    height: 44px;
  }

  .cg-brand--logo-only .cg-image,
  .cg-brand--logo-only img {
    width: min(245px, 68vw);
    height: 52px;
  }

  .cg-brand strong {
    font-size: .95rem;
  }

  .cg-brand small {
    max-width: 160px;
  }

  .cg-site-top {
    display: none;
  }

  .cg-footer-grid {
    grid-template-columns: 1fr;
  }

  .cg-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .cg-home-hero {
    min-height: auto;
  }

  .cg-home-hero__inner {
    padding: 54px 0 34px;
  }

  .cg-home-hero h1 {
    font-size: clamp(34px, 12vw, 52px);
  }

  .cg-home-strip__grid {
    grid-template-columns: 1fr;
  }

  .cg-program-item {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .cg-program-item > div {
    min-height: 62px;
  }

  .cg-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cg-home-cta__actions,
  .cg-home-cta__actions .cg-btn,
  .cg-page-hero__actions,
  .cg-page-hero__actions .cg-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cg-btn,
  .cg-card,
  .cg-desktop-nav ul ul {
    transition: none;
  }

  .cg-home-hero__slide.is-active {
    animation: none;
  }
}

/* Phase 7: Ministries */
.cg-ministry-hub__summary {
  align-items: center;
  background: var(--cg-surface);
  border: 1px solid var(--cg-border);
  border-radius: var(--cg-radius-lg);
  box-shadow: var(--cg-shadow-sm);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 28px;
  padding: 18px 22px;
}

.cg-ministry-hub__summary strong {
  color: var(--cg-primary);
  display: block;
  font-size: 2.35rem;
  line-height: 1;
}

.cg-ministry-hub__summary span {
  color: var(--cg-heading);
  font-weight: 800;
}

.cg-ministry-hub__summary p {
  color: var(--cg-muted);
  margin: 0;
  max-width: 720px;
}

.cg-pagination {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.cg-pagination a,
.cg-pagination span {
  background: var(--cg-surface);
  border: 1px solid var(--cg-border);
  border-radius: 999px;
  color: var(--cg-heading);
  font-weight: 800;
  padding: 10px 16px;
}

.cg-ministry-profile {
  align-items: center;
  background: var(--cg-surface);
  border: 1px solid var(--cg-border);
  border-radius: var(--cg-radius-xl);
  box-shadow: var(--cg-shadow-md);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  margin-top: -70px;
  padding: 24px;
  position: relative;
  z-index: 2;
}

.cg-ministry-profile__identity {
  align-items: center;
  display: flex;
  gap: 18px;
}

.cg-ministry-profile__identity .cg-image {
  flex: 0 0 104px;
  height: 104px;
  width: 104px;
}

.cg-ministry-profile__logo {
  border-radius: 22px;
}

.cg-ministry-profile h2 {
  margin-bottom: 8px;
}

.cg-ministry-profile p {
  color: var(--cg-muted);
  margin: 0;
}

.cg-info-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.cg-info-list div {
  background: var(--cg-muted-surface);
  border: 1px solid var(--cg-border);
  border-radius: var(--cg-radius-md);
  padding: 12px 14px;
}

.cg-info-list dt {
  color: var(--cg-muted);
  font-size: .77rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cg-info-list dd {
  color: var(--cg-heading);
  font-weight: 800;
  margin: 4px 0 0;
}

.cg-ministry-layout {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.cg-ministry-layout__main,
.cg-ministry-layout__side {
  display: grid;
  gap: 22px;
}

.cg-ministry-layout__side {
  position: sticky;
  top: 100px;
}

.cg-content-panel,
.cg-side-panel,
.cg-comment-form,
.cg-post-article {
  background: var(--cg-surface);
  border: 1px solid var(--cg-border);
  border-radius: var(--cg-radius-xl);
  box-shadow: var(--cg-shadow-sm);
  padding: 26px;
}

.cg-rich-content {
  color: var(--cg-text);
  display: flow-root;
  font-size: 1.02rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
  word-break: normal;
}

.cg-rich-content,
.cg-rich-content * {
  max-width: 100%;
  position: static !important;
}

.cg-rich-content * {
  float: none !important;
  line-height: 1.8 !important;
  transform: none !important;
  white-space: normal !important;
}

.cg-rich-content p,
.cg-rich-content ul,
.cg-rich-content ol,
.cg-rich-content blockquote {
  display: block;
  margin-bottom: 1.1em;
}

.cg-rich-content h2,
.cg-rich-content h3,
.cg-rich-content h4 {
  color: var(--cg-heading);
  margin: 1.25em 0 .55em;
}

.cg-rich-content img,
.cg-cms-page img {
  border-radius: var(--cg-radius-lg);
  height: auto;
  max-width: 100%;
}

.cg-rich-content table {
  border-collapse: collapse;
  display: block;
  max-width: 100%;
  overflow-x: auto;
  width: 100%;
}

.cg-rich-content th,
.cg-rich-content td {
  border: 1px solid var(--cg-border);
  padding: 10px 12px;
  text-align: left;
}

.cg-cms-layout {
  align-items: start;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.cg-cms-page {
  min-height: 320px;
}

.cg-about-intro {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
}

.cg-about-intro__content h2 {
  color: var(--cg-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  margin: 0 0 18px;
}

.cg-about-intro__media .cg-image {
  border-radius: var(--cg-radius-xl);
  box-shadow: var(--cg-shadow-lg);
  overflow: hidden;
}

.cg-about-pillars {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cg-about-pillars article,
.cg-about-staff-card {
  background: var(--cg-surface);
  border: 1px solid var(--cg-border);
  border-radius: var(--cg-radius-xl);
  box-shadow: var(--cg-shadow-sm);
}

.cg-about-pillars article {
  padding: 24px;
}

.cg-about-pillars i {
  align-items: center;
  background: linear-gradient(135deg, var(--cg-primary), var(--cg-accent));
  border-radius: var(--cg-radius-md);
  color: #fff;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  margin-bottom: 16px;
  width: 42px;
}

.cg-about-pillars h3,
.cg-about-staff-card h3 {
  color: var(--cg-heading);
  margin: 0 0 8px;
}

.cg-about-pillars p,
.cg-about-staff-card p {
  color: var(--cg-muted);
  line-height: 1.65;
  margin: 0;
}

.cg-about-staff-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cg-about-staff-card {
  overflow: hidden;
}

.cg-about-staff-card .cg-image {
  border-radius: 0;
}

.cg-about-staff-card > div {
  padding: 18px;
}

.cg-about-staff-card span {
  color: var(--cg-primary);
  display: block;
  font-weight: 900;
  margin-bottom: 10px;
}

.cg-about-staff-card nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.cg-about-staff-card nav a {
  align-items: center;
  background: var(--cg-muted-surface);
  border: 1px solid var(--cg-border);
  border-radius: var(--cg-radius-md);
  color: var(--cg-heading);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  text-decoration: none;
  width: 34px;
}

.cg-about-staff-card nav a:hover,
.cg-about-staff-card nav a:focus {
  background: var(--cg-primary);
  color: #fff;
}

.cg-split-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.cg-feature-box {
  background: linear-gradient(145deg, rgba(236, 0, 66, .08), rgba(244, 183, 64, .08));
  border: 1px solid rgba(236, 0, 66, .16);
  border-radius: var(--cg-radius-lg);
  padding: 18px;
}

.cg-feature-box span {
  color: var(--cg-primary);
  display: block;
  font-weight: 900;
  margin-bottom: 8px;
}

.cg-feature-box p {
  margin: 0;
}

.cg-ministry-post-list {
  display: grid;
  gap: 16px;
}

.cg-ministry-post-card {
  align-items: center;
  background: var(--cg-muted-surface);
  border: 1px solid var(--cg-border);
  border-radius: var(--cg-radius-lg);
  display: grid;
  gap: 18px;
  grid-template-columns: 210px minmax(0, 1fr);
  padding: 14px;
}

.cg-ministry-post-card h3 {
  font-size: 1.18rem;
  margin: 8px 0;
}

.cg-ministry-post-card h3 a {
  color: var(--cg-heading);
}

.cg-ministry-post-card p {
  color: var(--cg-muted);
  margin: 0;
}

.cg-ministry-post-card__image .cg-image {
  border-radius: var(--cg-radius-md);
  overflow: hidden;
}

.cg-member-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cg-member-card,
.cg-album-mini {
  background: var(--cg-muted-surface);
  border: 1px solid var(--cg-border);
  border-radius: var(--cg-radius-lg);
  padding: 16px;
}

.cg-member-card strong,
.cg-album-mini h3 {
  color: var(--cg-heading);
  display: block;
}

.cg-member-card span,
.cg-album-mini p {
  color: var(--cg-muted);
}

.cg-album-mini .cg-image {
  border-radius: var(--cg-radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.cg-poll-card {
  border-top: 1px solid var(--cg-border);
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
}

.cg-choice {
  align-items: center;
  background: var(--cg-muted-surface);
  border: 1px solid var(--cg-border);
  border-radius: var(--cg-radius-md);
  cursor: pointer;
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  transition: border-color .16s ease, background .16s ease;
}

.cg-choice:hover,
.cg-choice:focus-within {
  background: #fff;
  border-color: rgba(236, 0, 66, .35);
}

.cg-choice input {
  accent-color: var(--cg-primary);
}

.cg-muted-text {
  color: var(--cg-muted);
}

.cg-btn:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.cg-document-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.cg-document-list a {
  background: var(--cg-muted-surface);
  border: 1px solid var(--cg-border);
  border-radius: var(--cg-radius-md);
  color: var(--cg-heading);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
}

.cg-document-list small {
  color: var(--cg-muted);
  font-weight: 800;
  text-transform: uppercase;
}

.cg-article-layout {
  align-items: start;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr) 330px;
}

.cg-article-sidebar {
  display: grid;
  gap: 20px;
  position: sticky;
  top: 100px;
}

.cg-post-article {
  padding: clamp(24px, 4vw, 44px);
}

.cg-post-article__meta {
  align-items: center;
  color: var(--cg-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: .92rem;
  font-weight: 800;
  gap: 10px;
  margin-bottom: 18px;
}

.cg-post-article__cover {
  border-radius: var(--cg-radius-xl);
  margin-bottom: 28px;
  overflow: hidden;
}

.cg-news-article > .cg-image {
  background: #fff;
  border-radius: var(--cg-radius-xl);
  margin-bottom: 28px;
}

.cg-post-article__cover-media {
  height: auto;
  max-height: none;
  object-fit: contain;
}

.cg-post-actions {
  border-top: 1px solid var(--cg-border);
  display: grid;
  gap: 16px;
  margin-top: 28px;
  padding-top: 22px;
}

.cg-comments-shell {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 420px;
}

.cg-comments-shell__list {
  display: grid;
  gap: 16px;
}

.cg-comment {
  align-items: start;
  background: var(--cg-surface);
  border: 1px solid var(--cg-border);
  border-radius: var(--cg-radius-lg);
  display: grid;
  gap: 14px;
  grid-template-columns: 48px minmax(0, 1fr);
  padding: 16px;
}

.cg-comment--reply {
  background: var(--cg-muted-surface);
  margin-top: 14px;
}

.cg-comment__avatar {
  align-items: center;
  background: linear-gradient(135deg, var(--cg-primary), var(--cg-accent));
  border-radius: 14px;
  color: #fff;
  display: flex;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.cg-comment__body header {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.cg-comment__body time {
  color: var(--cg-muted);
  font-size: .85rem;
}

.cg-comment__body p {
  margin: 0;
}

.cg-comment-form {
  align-self: start;
}

.cg-comment-form form,
.cg-comment-form label {
  display: grid;
  gap: 8px;
}

.cg-comment-form form {
  gap: 16px;
}

.cg-form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cg-comment-form input,
.cg-comment-form textarea {
  background: var(--cg-surface);
  border: 1px solid var(--cg-border);
  border-radius: var(--cg-radius-md);
  color: var(--cg-text);
  font: inherit;
  padding: 12px 14px;
  width: 100%;
}

.cg-comment-form input:focus,
.cg-comment-form textarea:focus {
  border-color: var(--cg-primary);
  box-shadow: 0 0 0 4px rgba(236, 0, 66, .12);
  outline: none;
}

@media (max-width: 1100px) {
  .cg-ministry-layout,
  .cg-article-layout,
  .cg-comments-shell,
  .cg-cms-layout,
  .cg-about-intro {
    grid-template-columns: 1fr;
  }

  .cg-ministry-layout__side,
  .cg-article-sidebar {
    position: static;
  }
}

@media (max-width: 767px) {
  .cg-ministry-hub__summary,
  .cg-ministry-profile,
  .cg-ministry-profile__identity {
    align-items: flex-start;
    flex-direction: column;
  }

  .cg-ministry-hub__summary,
  .cg-ministry-profile {
    display: flex;
  }

  .cg-ministry-profile {
    margin-top: -42px;
  }

  .cg-split-grid,
  .cg-member-grid,
  .cg-about-pillars,
  .cg-about-staff-grid,
  .cg-form-grid {
    grid-template-columns: 1fr;
  }

  .cg-ministry-post-card {
    grid-template-columns: 1fr;
  }

  .cg-comment {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .cg-comment__avatar {
    border-radius: 12px;
    height: 40px;
    width: 40px;
  }
}

/* Phase 8: News */
.cg-news-filter {
  align-items: end;
  background: var(--cg-surface);
  border: 1px solid var(--cg-border);
  border-radius: var(--cg-radius-xl);
  box-shadow: var(--cg-shadow-sm);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(240px, 1fr) minmax(220px, 320px) auto;
  margin-bottom: 22px;
  padding: 18px;
}

.cg-news-filter--search-only {
  grid-template-columns: minmax(240px, 1fr) auto;
}

.cg-news-filter label {
  display: grid;
  gap: 8px;
}

.cg-news-filter span {
  color: var(--cg-heading);
  font-weight: 900;
}

.cg-news-filter input,
.cg-news-filter select {
  background: var(--cg-muted-surface);
  border: 1px solid var(--cg-border);
  border-radius: var(--cg-radius-md);
  color: var(--cg-text);
  font: inherit;
  min-height: 46px;
  padding: 11px 13px;
  width: 100%;
}

.cg-news-filter input:focus,
.cg-news-filter select:focus {
  border-color: var(--cg-primary);
  box-shadow: 0 0 0 4px rgba(236, 0, 66, .12);
  outline: none;
}

.cg-news-filter__actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.cg-news-listing__meta {
  align-items: baseline;
  color: var(--cg-muted);
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.cg-news-listing__meta strong {
  color: var(--cg-primary);
  font-size: 1.55rem;
  line-height: 1;
}

.cg-news-grid {
  align-items: stretch;
}

.cg-news-article .cg-rich-content img {
  border-radius: var(--cg-radius-lg);
  height: auto;
  max-width: 100%;
}

.cg-news-tags {
  border-top: 1px solid var(--cg-border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding-top: 20px;
}

@media (max-width: 900px) {
  .cg-news-filter {
    grid-template-columns: 1fr;
  }

  .cg-news-filter__actions {
    justify-content: flex-start;
  }
}

/* Phase 9: Sermons */
.cg-sermon-layout {
  align-items: start;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.cg-sermon-layout__main,
.cg-sermon-layout__side {
  display: grid;
  gap: 22px;
}

.cg-sermon-layout__side {
  position: sticky;
  top: 100px;
}

.cg-sermon-grid {
  align-items: stretch;
}

.cg-link-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.cg-link-list a {
  align-items: center;
  background: var(--cg-muted-surface);
  border: 1px solid var(--cg-border);
  border-radius: var(--cg-radius-md);
  color: var(--cg-heading);
  display: flex;
  font-weight: 850;
  gap: 12px;
  justify-content: space-between;
  padding: 11px 12px;
}

.cg-link-list a:hover {
  border-color: rgba(236, 0, 66, .35);
  color: var(--cg-primary);
}

.cg-link-list small {
  align-items: center;
  background: var(--cg-surface);
  border: 1px solid var(--cg-border);
  border-radius: 999px;
  color: var(--cg-muted);
  display: inline-flex;
  font-size: .76rem;
  font-weight: 900;
  min-width: 30px;
  justify-content: center;
  padding: 3px 8px;
}

.cg-laravel-pagination {
  margin-top: 28px;
}

.cg-laravel-pagination .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  list-style: none;
  padding: 0;
}

.cg-laravel-pagination .pagination > li > a,
.cg-laravel-pagination .pagination > li > span {
  background: var(--cg-surface);
  border: 1px solid var(--cg-border);
  border-radius: 999px;
  color: var(--cg-heading);
  display: block;
  font-weight: 800;
  min-width: 42px;
  padding: 10px 14px;
  text-align: center;
}

.cg-laravel-pagination .pagination > .active > span,
.cg-laravel-pagination .pagination > li > a:hover {
  background: var(--cg-primary);
  border-color: var(--cg-primary);
  color: #fff;
}

.cg-sermon-detail .cg-rich-content {
  margin-top: 26px;
}

.cg-sermon-meta {
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
}

.cg-sermon-meta__identity,
.cg-sermon-meta__formats {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.cg-sermon-meta__identity {
  flex-direction: column;
  align-items: flex-start;
}

.cg-sermon-meta__identity time,
.cg-sermon-meta__identity a,
.cg-sermon-meta__identity span {
  max-width: 100%;
}

.cg-sermon-author {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.cg-sermon-author .cg-image {
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: var(--cg-shadow-sm);
  flex: 0 0 42px;
  height: 42px;
  overflow: hidden;
  width: 42px;
}

.cg-sermon-author .cg-image__media {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.cg-sermon-meta__formats {
  gap: 8px;
}

.cg-sermon-primary-media {
  margin-bottom: 24px;
}

.cg-sermon-primary-media .cg-post-article__cover {
  margin-bottom: 0;
}

.cg-video-frame {
  aspect-ratio: 16 / 9;
  background: #050816;
  border-radius: var(--cg-radius-xl);
  box-shadow: var(--cg-shadow-md);
  overflow: hidden;
}

.cg-video-frame iframe {
  border: 0;
  height: 100%;
  width: 100%;
}

.cg-audio-player {
  background: linear-gradient(145deg, rgba(236, 0, 66, .08), rgba(244, 183, 64, .08));
  border: 1px solid rgba(236, 0, 66, .18);
  border-radius: var(--cg-radius-xl);
  display: grid;
  gap: 14px;
  margin: 24px 0;
  padding: 20px;
}

.cg-audio-player h3 {
  margin-bottom: 0;
}

.cg-audio-player audio {
  width: 100%;
}

.cg-audio-player small {
  color: var(--cg-muted);
}

.cg-media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.cg-sermon-file-card {
  align-items: center;
  background: var(--cg-muted-surface);
  border: 1px solid var(--cg-border);
  border-radius: var(--cg-radius-xl);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 22px 0;
  padding: 18px 20px;
}

.cg-sermon-file-card h3 {
  margin: 0;
}

.cg-side-pagination {
  align-items: center;
  border-top: 1px solid var(--cg-border);
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
}

.cg-side-pagination a,
.cg-side-pagination span {
  align-items: center;
  border-radius: var(--cg-radius);
  display: inline-flex;
  font-size: .82rem;
  font-weight: 900;
  min-height: 32px;
  padding: 7px 10px;
}

.cg-side-pagination a {
  background: #fff1f4;
  color: var(--cg-primary);
  text-decoration: none;
}

.cg-side-pagination a:hover,
.cg-side-pagination a:focus {
  background: var(--cg-primary);
  color: #fff;
}

.cg-side-pagination span {
  color: var(--cg-muted);
}

@media (max-width: 1100px) {
  .cg-sermon-layout {
    grid-template-columns: 1fr;
  }

  .cg-sermon-layout__side {
    position: static;
  }
}

@media (max-width: 767px) {
  .cg-sermon-file-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Phase 10: Events */
.cg-events-filter {
  align-items: end;
  background: var(--cg-surface);
  border: 1px solid var(--cg-border);
  border-radius: var(--cg-radius-xl);
  box-shadow: var(--cg-shadow-sm);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 260px) auto;
  margin-bottom: 22px;
  padding: 18px;
}

.cg-events-filter label {
  display: grid;
  gap: 8px;
}

.cg-events-filter span {
  color: var(--cg-heading);
  font-weight: 900;
}

.cg-events-filter input,
.cg-events-filter select {
  background: var(--cg-muted-surface);
  border: 1px solid var(--cg-border);
  border-radius: var(--cg-radius-md);
  color: var(--cg-text);
  font: inherit;
  min-height: 46px;
  padding: 11px 13px;
  width: 100%;
}

.cg-events-filter input:focus,
.cg-events-filter select:focus {
  border-color: var(--cg-primary);
  box-shadow: 0 0 0 4px rgba(236, 0, 66, .12);
  outline: none;
}

.cg-events-filter__actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.cg-events-grid {
  align-items: stretch;
}

.cg-event-timeline {
  display: grid;
  gap: 34px;
  margin-top: 10px;
  position: relative;
}

.cg-program-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 30px;
}

.cg-program-stats article {
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 20px;
  border: 1px solid var(--cg-line);
  border-top: 3px solid var(--cg-blue);
  border-radius: var(--cg-radius);
  background: var(--cg-white);
  box-shadow: var(--cg-soft-shadow);
}

.cg-program-stats i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--cg-radius);
  background: var(--cg-blue);
  color: #fff;
}

.cg-program-stats strong {
  color: var(--cg-ink);
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 900;
}

.cg-program-stats span {
  color: var(--cg-muted);
  font-weight: 800;
}

.cg-event-timeline::before {
  background: linear-gradient(180deg, rgba(227, 6, 59, .12), rgba(227, 6, 59, .48), rgba(244, 183, 64, .2));
  border-radius: 999px;
  content: "";
  height: 100%;
  left: 50%;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 4px;
}

.cg-event-timeline__item {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
  position: relative;
}

.cg-event-timeline__item:nth-child(odd) .cg-event-timeline__card {
  grid-column: 1;
}

.cg-event-timeline__item:nth-child(even) .cg-event-timeline__card {
  grid-column: 3;
}

.cg-event-timeline__marker {
  align-items: center;
  align-self: start;
  background: var(--cg-primary);
  border: 8px solid #fff;
  border-radius: 24px;
  box-shadow: var(--cg-shadow-md);
  color: #fff;
  display: grid;
  grid-column: 2;
  justify-content: center;
  min-height: 96px;
  padding: 10px;
  position: sticky;
  text-align: center;
  top: 102px;
  z-index: 2;
}

.cg-event-timeline__marker strong {
  font-size: 1.9rem;
  line-height: 1;
}

.cg-event-timeline__marker span,
.cg-event-timeline__marker small {
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cg-event-timeline__marker small {
  color: rgba(255, 255, 255, .78);
  font-size: .72rem;
}

.cg-event-timeline__card {
  background: var(--cg-surface);
  border: 1px solid var(--cg-border);
  border-radius: var(--cg-radius-xl);
  box-shadow: var(--cg-shadow-sm);
  display: grid;
  overflow: hidden;
  position: relative;
}

.cg-event-timeline__card::before {
  background: var(--cg-border);
  content: "";
  height: 2px;
  position: absolute;
  top: 48px;
  width: 28px;
}

.cg-event-timeline__item:nth-child(odd) .cg-event-timeline__card::before {
  right: -28px;
}

.cg-event-timeline__item:nth-child(even) .cg-event-timeline__card::before {
  left: -28px;
}

.cg-event-timeline__media {
  display: block;
}

.cg-event-timeline__media .cg-image {
  border-radius: 0;
}

.cg-event-timeline__content {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.cg-event-timeline__content h3 {
  margin: 0;
}

.cg-event-timeline__content h3 a {
  color: var(--cg-heading);
}

.cg-event-timeline__content p {
  color: var(--cg-muted);
  margin: 0;
}

.cg-event-timeline__content ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cg-event-timeline__content li {
  align-items: center;
  color: var(--cg-text);
  display: flex;
  gap: 8px;
}

.cg-event-timeline__content li i {
  color: var(--cg-primary);
  flex: 0 0 16px;
}

.cg-event-timeline__content .cg-btn {
  justify-self: start;
}

.cg-event-card {
  background: var(--cg-surface);
  border: 1px solid var(--cg-border);
  border-radius: var(--cg-radius-xl);
  box-shadow: var(--cg-shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cg-event-card__media {
  display: block;
  position: relative;
}

.cg-event-card__media .cg-image {
  border-radius: 0;
}

.cg-event-date {
  align-items: center;
  background: var(--cg-primary);
  border-radius: 18px;
  bottom: 14px;
  box-shadow: var(--cg-shadow-md);
  color: #fff;
  display: grid;
  height: 76px;
  justify-content: center;
  left: 14px;
  min-width: 76px;
  padding: 8px;
  position: absolute;
  text-align: center;
}

.cg-event-date strong {
  font-size: 1.8rem;
  line-height: 1;
}

.cg-event-date small {
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cg-event-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
}

.cg-event-card__body h3 {
  margin: 0;
}

.cg-event-card__body h3 a {
  color: var(--cg-heading);
}

.cg-event-card__body p {
  color: var(--cg-muted);
  margin: 0;
}

.cg-event-card__body ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cg-event-card__body li {
  align-items: center;
  color: var(--cg-text);
  display: flex;
  gap: 8px;
}

.cg-event-card__body li i {
  color: var(--cg-primary);
  width: 16px;
}

.cg-event-card__body .cg-btn {
  margin-top: auto;
}

.cg-event-detail {
  position: relative;
}

.cg-event-detail__toolbar {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.cg-icon-button {
  align-items: center;
  background: var(--cg-muted-surface);
  border: 1px solid var(--cg-border);
  border-radius: 14px;
  color: var(--cg-heading);
  display: inline-flex;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.cg-icon-button:hover {
  background: var(--cg-primary);
  border-color: var(--cg-primary);
  color: #fff;
}

.cg-event-facts {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 24px 0;
}

.cg-event-facts div {
  background: var(--cg-muted-surface);
  border: 1px solid var(--cg-border);
  border-radius: var(--cg-radius-lg);
  padding: 16px;
}

.cg-event-facts span {
  color: var(--cg-muted);
  display: block;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.cg-event-facts strong {
  color: var(--cg-heading);
  display: block;
  font-size: 1rem;
}

@media (max-width: 900px) {
  .cg-events-filter {
    grid-template-columns: 1fr;
  }

  .cg-events-filter__actions {
    justify-content: flex-start;
  }

  .cg-event-timeline::before {
    left: 40px;
  }

  .cg-event-timeline__item {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .cg-event-timeline__item:nth-child(odd) .cg-event-timeline__card,
  .cg-event-timeline__item:nth-child(even) .cg-event-timeline__card {
    grid-column: 2;
  }

  .cg-event-timeline__marker {
    border-width: 6px;
    grid-column: 1;
    min-height: 80px;
    position: relative;
    top: auto;
  }

  .cg-event-timeline__marker strong {
    font-size: 1.45rem;
  }

  .cg-event-timeline__item:nth-child(odd) .cg-event-timeline__card::before,
  .cg-event-timeline__item:nth-child(even) .cg-event-timeline__card::before {
    left: -24px;
    right: auto;
    top: 38px;
    width: 24px;
  }
}

@media (max-width: 767px) {
  .cg-program-stats {
    grid-template-columns: 1fr;
  }

  .cg-event-facts {
    grid-template-columns: 1fr;
  }

  .cg-event-detail__toolbar {
    justify-content: flex-start;
  }

  .cg-event-timeline {
    gap: 24px;
  }

  .cg-event-timeline::before {
    left: 28px;
  }

  .cg-event-timeline__item {
    gap: 14px;
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .cg-event-timeline__marker {
    border-radius: 18px;
    min-height: 58px;
    padding: 6px;
  }

  .cg-event-timeline__marker strong {
    font-size: 1.1rem;
  }

  .cg-event-timeline__marker span {
    font-size: .7rem;
  }

  .cg-event-timeline__marker small {
    display: none;
  }

  .cg-event-timeline__content {
    padding: 18px;
  }
}

/* Phases 11-12: Gallery and Contact */
.cg-gallery-albums {
  align-items: stretch;
}

.cg-gallery-detail-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cg-gallery-detail-item {
  background: var(--cg-surface);
  border: 1px solid var(--cg-border);
  border-radius: var(--cg-radius-lg);
  box-shadow: var(--cg-shadow-sm);
  color: var(--cg-heading);
  display: grid;
  overflow: hidden;
}

.cg-gallery-detail-item .cg-image {
  border-radius: 0;
}

.cg-gallery-detail-item span {
  font-weight: 850;
  padding: 12px 14px;
}

.cg-album-embed {
  background: var(--cg-surface);
  border: 1px solid var(--cg-border);
  border-radius: var(--cg-radius-xl);
  box-shadow: var(--cg-shadow-sm);
  overflow: hidden;
  padding: 18px;
}

.cg-album-embed iframe,
.cg-album-embed img,
.cg-album-embed video {
  border: 0;
  border-radius: var(--cg-radius-lg);
  height: auto;
  max-width: 100%;
}

.cg-contact-layout {
  align-items: start;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.cg-contact-layout__main,
.cg-contact-layout__side {
  display: grid;
  gap: 22px;
}

.cg-contact-layout__side {
  position: sticky;
  top: 100px;
}

.cg-contact-map {
  background: var(--cg-surface);
  border: 1px solid var(--cg-border);
  border-radius: var(--cg-radius-xl);
  box-shadow: var(--cg-shadow-sm);
  min-height: 320px;
  overflow: hidden;
}

.cg-contact-map iframe {
  border: 0;
  display: block;
  height: 360px;
  width: 100%;
}

.cg-contact-form-panel {
  background: var(--cg-surface);
  border: 1px solid var(--cg-border);
  border-radius: var(--cg-radius-xl);
  box-shadow: var(--cg-shadow-sm);
  padding: clamp(22px, 4vw, 34px);
}

.cg-contact-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.cg-contact-form label {
  display: grid;
  gap: 8px;
}

.cg-contact-form label > span {
  color: var(--cg-heading);
  font-weight: 900;
}

.cg-contact-form input,
.cg-contact-form textarea {
  background: #fff;
  border: 2px solid #b9d4f5;
  border-radius: var(--cg-radius-md);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04), 0 1px 0 rgba(255, 255, 255, .9);
  color: var(--cg-heading);
  font: inherit;
  min-height: 50px;
  padding: 12px 14px;
  width: 100%;
}

.cg-contact-form textarea {
  min-height: 180px;
  resize: vertical;
}

.cg-contact-form input::placeholder,
.cg-contact-form textarea::placeholder {
  color: #7c8da6;
}

.cg-contact-form input:focus,
.cg-contact-form textarea:focus {
  background: #fff;
  border-color: var(--cg-primary);
  box-shadow: 0 0 0 4px rgba(236, 0, 66, .16), inset 0 1px 2px rgba(15, 23, 42, .04);
  outline: none;
}

.cg-contact-form small {
  color: #b42318;
  font-weight: 800;
}

.cg-contact-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.cg-contact-list li {
  align-items: flex-start;
  background: var(--cg-muted-surface);
  border: 1px solid var(--cg-border);
  border-radius: var(--cg-radius-md);
  color: var(--cg-text);
  display: flex;
  gap: 10px;
  padding: 12px;
}

.cg-contact-list i {
  color: var(--cg-primary);
  line-height: 1.5;
  width: 16px;
}

@media (max-width: 1100px) {
  .cg-contact-layout {
    grid-template-columns: 1fr;
  }

  .cg-contact-layout__side {
    position: static;
  }
}

@media (max-width: 900px) {
  .cg-gallery-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .cg-gallery-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* Contrast guard for legacy theme link rules on public buttons. */
.cg-site .cg-btn--secondary,
.cg-site .cg-btn--secondary span,
.cg-site .cg-btn--secondary i,
.cg-site .cg-btn--secondary:visited,
.cg-site .cg-btn--secondary:visited span,
.cg-site .cg-btn--ghost,
.cg-site .cg-btn--ghost span,
.cg-site .cg-btn--ghost i,
.cg-site .cg-btn--ghost:visited,
.cg-site .cg-btn--ghost:visited span {
  color: var(--cg-blue-700) !important;
  -webkit-text-fill-color: var(--cg-blue-700);
}

.cg-site .cg-home-hero .cg-btn--ghost,
.cg-site .cg-home-hero .cg-btn--ghost span,
.cg-site .cg-home-hero .cg-btn--ghost i,
.cg-site .cg-home-cta .cg-btn--ghost,
.cg-site .cg-home-cta .cg-btn--ghost span,
.cg-site .cg-home-cta .cg-btn--ghost i {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

.cg-site .cg-btn--primary,
.cg-site .cg-btn--primary span,
.cg-site .cg-btn--primary i,
.cg-site .cg-btn--primary:visited,
.cg-site .cg-btn--primary:visited span {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

.cg-site .cg-btn--secondary:hover,
.cg-site .cg-btn--secondary:hover span,
.cg-site .cg-btn--secondary:hover i,
.cg-site .cg-btn--secondary:focus,
.cg-site .cg-btn--secondary:focus span,
.cg-site .cg-btn--secondary:focus i {
  color: var(--cg-blue-700) !important;
  -webkit-text-fill-color: var(--cg-blue-700);
}

.cg-site .cg-btn--secondary:hover,
.cg-site .cg-btn--secondary:focus {
  background: #fff7f9;
  border-color: rgba(236, 0, 66, .34);
}

.cg-site .cg-btn--ghost:hover,
.cg-site .cg-btn--ghost:hover span,
.cg-site .cg-btn--ghost:hover i,
.cg-site .cg-btn--ghost:focus,
.cg-site .cg-btn--ghost:focus span,
.cg-site .cg-btn--ghost:focus i {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}
