/*
 * Christ Centered Gospel Church — overrides and additions on top of the
 * Truehelp template (truehelp.css). Loaded last; reuses the template's
 * --truehelp-* colour and font variables so the look stays consistent.
 */

/* ---------------------------------------------------------------- brand lockup */
.ccg-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.ccg-brand img {
  width: 64px;
  height: auto;
  flex-shrink: 0;
}

.ccg-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-family: var(--truehelp-heading-font, "Geologica", sans-serif);
}

.ccg-brand__name {
  font-size: 20px;
  font-weight: 700;
  color: var(--truehelp-black, #463650);
}

.ccg-brand__sub {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--truehelp-base, #8A65A0);
}

.ccg-brand--light .ccg-brand__name {
  color: #fff;
}

.ccg-brand--light .ccg-brand__sub {
  color: var(--truehelp-soft-lavender2, #F2DBFF);
}

.ccg-brand--light img {
  width: 56px;
}

@media (max-width: 575px) {
  .main-header .ccg-brand img {
    width: 48px;
  }

  .main-header .ccg-brand__name {
    font-size: 17px;
  }

  .main-header .ccg-brand__sub {
    font-size: 12px;
  }
}

/* ---------------------------------------------------------------- section-title cross (replaces the charity heart icon) */
.ccg-cross {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 18px;
  flex-shrink: 0;
}

.ccg-cross::before,
.ccg-cross::after {
  content: "";
  position: absolute;
  background: var(--truehelp-base, #8A65A0);
  border-radius: 2px;
}

.ccg-cross::before {
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  transform: translateX(-50%);
}

.ccg-cross::after {
  left: 0;
  top: 4px;
  width: 100%;
  height: 4px;
}

/* ---------------------------------------------------------------- header */
.main-header__link .main-header__btn {
  margin-left: 0;
}

.ccg-mobile-give {
  margin-top: 24px;
}

/* ---------------------------------------------------------------- service-time list (home cards, campus cards, locations) */
.support-categories__item__text strong {
  color: var(--truehelp-black, #463650);
  font-weight: 700;
  margin-right: 4px;
}

.ccg-times {
  margin: 0 0 24px;
  padding: 0;
}

.ccg-times li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--truehelp-gray6, #DAD6DC);
  font-size: 15px;
  color: var(--truehelp-text, #6F6C71);
}

.ccg-times li span:last-child {
  font-weight: 700;
  color: var(--truehelp-black, #463650);
  white-space: nowrap;
}

.ccg-times strong {
  color: var(--truehelp-base, #8A65A0);
  font-weight: 700;
  margin-right: 4px;
}

/* ---------------------------------------------------------------- campus cards (home) */
.ccg-campus-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 40px rgba(70, 54, 80, 0.08);
}

.ccg-campus-card__image {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.ccg-campus-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.ccg-campus-card:hover .ccg-campus-card__image img {
  transform: scale(1.04);
}

.ccg-campus-card__badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  padding: 6px 18px;
  border-radius: 999px;
  background: var(--truehelp-base, #8A65A0);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.ccg-campus-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 30px 32px;
}

.ccg-campus-card__title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 600;
}

.ccg-campus-card__title a {
  color: var(--truehelp-black, #463650);
}

.ccg-campus-card__title a:hover {
  color: var(--truehelp-base, #8A65A0);
}

.ccg-campus-card__address {
  margin: 0 0 12px;
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.ccg-campus-card__address i {
  color: var(--truehelp-base, #8A65A0);
}

.ccg-campus-card .ccg-times {
  width: 100%;
}

.ccg-campus-card .truehelp-btn {
  margin-top: auto;
}

/* ---------------------------------------------------------------- CTA band without a counter */
.supporters-acquired--home-2 .supporters-acquired__title {
  font-size: 52px;
}

@media (max-width: 767px) {
  .supporters-acquired--home-2 .supporters-acquired__title {
    font-size: 40px;
  }
}

/* ---------------------------------------------------------------- scripture carousel (testimonials-two without client photos) */
.ccg-scripture .testimonials-two__inner {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
}

.ccg-scripture .testimonials-two__carousel {
  width: 100%;
}

.ccg-scripture .testimonials-two__item__quote {
  font-size: 22px;
  line-height: 1.6;
  font-style: italic;
}

.ccg-scripture .owl-dots {
  margin-top: 24px;
  text-align: center;
}

@media (max-width: 575px) {
  .ccg-scripture .testimonials-two__item__quote {
    font-size: 18px;
  }
}

/* ---------------------------------------------------------------- about page */
.ccg-value {
  height: 100%;
  padding: 36px 30px;
  border-radius: 20px;
  background: linear-gradient(179.57deg, #F5E4FF 14.47%, #F8FAED 51%, #D7F7FF 97.5%);
  text-align: center;
}

.ccg-value__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: var(--truehelp-base, #8A65A0);
  font-size: 28px;
  box-shadow: 0 6px 20px rgba(138, 101, 160, 0.18);
}

.ccg-value__title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 600;
  color: var(--truehelp-black, #463650);
}

.ccg-value__text {
  margin: 0;
}

.ccg-banner__img {
  width: 100%;
  height: auto;
  border-radius: 20px;
}

/* ---------------------------------------------------------------- locations page */
.ccg-service-times__table-wrap {
  overflow-x: auto;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(70, 54, 80, 0.08);
}

.ccg-service-times__table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.ccg-service-times__table th,
.ccg-service-times__table td {
  padding: 20px 28px;
  text-align: left;
  border-bottom: 1px solid var(--truehelp-gray6, #DAD6DC);
}

.ccg-service-times__table thead th {
  background: var(--truehelp-base, #8A65A0);
  color: #fff;
  font-family: var(--truehelp-heading-font, "Geologica", sans-serif);
  font-size: 18px;
  font-weight: 600;
}

.ccg-service-times__table thead a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ccg-service-times__table tbody th {
  font-family: var(--truehelp-heading-font, "Geologica", sans-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--truehelp-black, #463650);
}

.ccg-service-times__table tbody th span {
  display: block;
  font-family: var(--truehelp-font, "Manrope", sans-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--truehelp-base, #8A65A0);
}

.ccg-service-times__table td {
  font-weight: 700;
  color: var(--truehelp-black, #463650);
  white-space: nowrap;
}

.ccg-service-times__table tbody tr:last-child > * {
  border-bottom: none;
}

@media (max-width: 575px) {
  .ccg-service-times__table thead {
    display: none;
  }

  .ccg-service-times__table,
  .ccg-service-times__table tbody,
  .ccg-service-times__table tr,
  .ccg-service-times__table th,
  .ccg-service-times__table td {
    display: block;
    width: 100%;
  }

  .ccg-service-times__table tbody th {
    padding-bottom: 6px;
    border-bottom: none;
  }

  .ccg-service-times__table td {
    padding-top: 4px;
    padding-bottom: 4px;
    border-bottom: none;
  }

  .ccg-service-times__table td::before {
    content: attr(data-label) " · ";
    font-weight: 500;
    color: var(--truehelp-text, #6F6C71);
  }

  .ccg-service-times__table tbody tr {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--truehelp-gray6, #DAD6DC);
  }
}

.ccg-location {
  scroll-margin-top: 120px;
}

.ccg-location--alt {
  background: linear-gradient(180deg, rgba(245, 228, 255, 0.45) 0%, rgba(215, 247, 255, 0.35) 100%);
}

.ccg-location__map {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 10px 40px rgba(70, 54, 80, 0.08);
}

.ccg-location__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.ccg-location__address {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 18px;
  color: var(--truehelp-black, #463650);
  margin-bottom: 20px;
}

.ccg-location__address i {
  color: var(--truehelp-base, #8A65A0);
}

.ccg-location__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#service-times {
  scroll-margin-top: 120px;
}

/* ---------------------------------------------------------------- plan-your-visit page */
.ccg-visit__intro {
  margin-bottom: 28px;
}

.ccg-visit__picker {
  display: grid;
  gap: 16px;
}

.ccg-visit__campus {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px;
  border-radius: 16px;
  border: 1px solid var(--truehelp-gray6, #DAD6DC);
  background: #fff;
  transition: border-color 300ms ease, box-shadow 300ms ease;
}

.ccg-visit__campus:hover {
  border-color: var(--truehelp-base, #8A65A0);
  box-shadow: 0 10px 30px rgba(138, 101, 160, 0.15);
}

.ccg-visit__campus__name {
  font-family: var(--truehelp-heading-font, "Geologica", sans-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--truehelp-black, #463650);
}

.ccg-visit__campus__time {
  font-weight: 700;
  color: var(--truehelp-base, #8A65A0);
}

.ccg-visit__campus__addr {
  font-size: 14px;
  color: var(--truehelp-text, #6F6C71);
}

.ccg-visit__faq .accrodion-content a {
  color: var(--truehelp-base, #8A65A0);
  text-decoration: underline;
}

/* ---------------------------------------------------------------- contact form */
.form-one select.ccg-select {
  display: block;
  width: 100%;
  height: 50px;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: 30px;
  background-color: #fff;
  color: var(--truehelp-text-gray, #4B5563);
  font-size: 16px;
  font-weight: 500;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238A65A0' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 26px center;
}

.form-one select.ccg-select:focus {
  border-color: var(--truehelp-base, #8A65A0);
}

.form-one input:invalid:not(:placeholder-shown):not(:focus),
.form-one textarea:invalid:not(:placeholder-shown):not(:focus) {
  border-color: #dc2626;
}

.form-one button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* Honeypot: hidden from people, visible to naive bots. */
.ccg-hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ccg-form-result {
  margin-top: 18px;
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 600;
}

.ccg-form-result--success {
  background: #e7f6ec;
  color: #166534;
}

.ccg-form-result--error {
  background: #fdecec;
  color: #b91c1c;
}

/* ---------------------------------------------------------------- give page */
.ccg-give__intro {
  max-width: 760px;
  margin: -10px auto 50px;
  text-align: center;
  font-size: 18px;
  font-style: italic;
}

.ccg-give__way {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ccg-give__way .ccg-value__text {
  margin-bottom: 24px;
}

.ccg-give__way .truehelp-btn {
  margin-top: auto;
}

/* ---------------------------------------------------------------- footer */
.footer-widget__logo.ccg-brand {
  margin-bottom: 20px;
}

.ccg-footer__tagline {
  margin-bottom: 24px;
}

.ccg-footer-times {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.ccg-footer-times__campus h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--truehelp-base, #8A65A0);
}

.ccg-footer-times__campus li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
  font-size: 15px;
}

.ccg-footer-times__campus li span:last-child {
  font-weight: 700;
  white-space: nowrap;
}

.ccg-footer__copyright {
  text-align: left;
}

@media (max-width: 767px) {
  .ccg-footer__copyright {
    text-align: center;
  }
}

/* ---------------------------------------------------------------- 404 */
.ccg-404 {
  text-align: center;
}

.ccg-404__code {
  font-family: var(--truehelp-heading-font, "Geologica", sans-serif);
  font-size: 140px;
  font-weight: 700;
  line-height: 1;
  color: var(--truehelp-base, #8A65A0);
  margin-bottom: 10px;
}

.ccg-404__text {
  max-width: 560px;
  margin: 0 auto 30px;
}

.ccg-404__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* The contact band (poverty-info--one) pulls the next section up by 184px;
   when that section is the footer, push the footer content down to match. */
.poverty-info--one + .main-footer {
  padding-top: calc(184px + 100px);
}

/* Give is the only item in the header link group (no user/cart/search icons),
   so keep it visible where the template hides its button, and drop the empty
   pill on phones — the mobile menu has its own Give button. */
@media (min-width: 1200px) and (max-width: 1299px) {
  .main-header__btn {
    display: inline-flex;
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 767px) {
  .main-header__link {
    display: none;
  }
}

/* Closed FAQ answers start hidden, so they don't show expanded until truehelp.js
   loads and collapses them. jQuery's slideUp/slideDown set inline styles that win. */
.truehelp-accrodion .accrodion:not(.active) .accrodion-content {
  display: none;
}

/* Inner-page title band (PageHeader): the template's 167px/175px padding pushes
   the page content below the fold — keep it compact, and tighten the gap to the
   first section after it. */
.page-header {
  padding-top: 44px;
  padding-bottom: 48px;
}

.page-header__title {
  font-size: 48px;
}

.page-header + .section-space,
.page-header + .section-space-top {
  padding-top: 70px;
}

@media (max-width: 767px) {
  .page-header {
    padding-top: 30px;
    padding-bottom: 34px;
  }

  .page-header__title {
    font-size: 34px;
  }

  .page-header + .section-space,
  .page-header + .section-space-top {
    padding-top: 50px;
  }
}
