/* featured image in post = width like content */
.gh-article-image {
  max-width: var(--content-width, 720px);
  margin-left: auto;
  margin-right: auto;
}

/* square image in post */
.gh-article-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

/* homepage order */
.home-template .gh-viewport {
  display: flex;
  flex-direction: column;
}

.home-template #gh-navigation { order: 1; }
.home-template .gh-featured { order: 2; }

.home-template .gh-header {
  display: block !important;
  order: 3;
}

.home-template .gh-cta { order: 4; }
.home-template .gh-container { order: 5; }
.home-template .gh-footer { order: 6; }

/* featured as top hero */
.home-template .gh-featured {
  margin: 14px 0 0 0;
  padding: 0;
}

.home-template .gh-featured-inner {
  max-width: 1400px;
}

.home-template .gh-featured-title {
  display: none !important;
}

.home-template .gh-featured-feed {
  display: block;
}

.home-template .gh-featured-feed .gh-card {
  width: 100%;
  margin: 0;
  border: 0;
}

.home-template .gh-featured-feed .gh-card-link {
  min-height: 42vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  padding: 48px 24px 40px;
  border: 1px solid rgba(255,255,255,0.12);
  box-sizing: border-box;
  margin-top: 37px;
}

.home-template .dh-hero-text {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.home-template .dh-hero-title {
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #fff;
}

.home-template .dh-hero-subtitle {
  font-size: clamp(1.35rem, 2.8vw, 2.4rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
}

.home-template .gh-container {
  margin-top: 8px;
}

/* footer layout */
.home-template .gh-footer {
  padding-top: 0 !important;
}

.home-template .gh-footer-inner {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

.home-template .gh-footer-signup {
  order: 1 !important;
  padding: 28px 0 28px !important;
  margin: 0 !important;
  min-height: auto !important;
}

.home-template .gh-footer-signup > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.home-template .gh-footer-signup > *:first-child {
  margin-top: 0 !important;
}

.home-template .gh-footer-signup .gh-footer-title,
.home-template .gh-footer-signup h2,
.home-template .gh-footer-signup h3,
.home-template .gh-footer-signup p {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}

.home-template .gh-footer-signup form,
.home-template .gh-footer-signup .gh-signin,
.home-template .gh-footer-signup .gh-subscribe,
.home-template .gh-footer-signup .gh-form {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.home-template .gh-footer-bar {
  order: 2 !important;
  margin-top: 12px !important;
  padding: 18px 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
}

.home-template .gh-footer-bar > * {
  align-self: center !important;
}

.home-template .gh-footer-menu {
  margin-left: auto !important;
}

.home-template .gh-footer-menu .nav {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 32px !important;
}

.home-template .gh-container + .gh-footer,
.home-template .gh-cta + .gh-footer {
  margin-top: 0 !important;
}

/* email capsule */
.home-template .gh-footer-signup form.gh-form.dh-email-capsule {
  position: relative !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  overflow: visible !important;
}

.home-template .gh-footer-signup form.gh-form.dh-email-capsule::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  pointer-events: none;
}

.home-template .gh-footer-signup form.gh-form.dh-email-capsule input,
.home-template .gh-footer-signup form.gh-form.dh-email-capsule input[type="email"],
.home-template .gh-footer-signup form.gh-form.dh-email-capsule button,
.home-template .gh-footer-signup form.gh-form.dh-email-capsule .gh-button {
  border: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 900px) {
  .home-template .gh-featured-feed .gh-card-link {
    min-height: 34vh;
    padding: 36px 20px 24px;
  }

  .home-template .gh-footer-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .home-template .gh-footer-menu {
    margin-left: 0 !important;
  }

  .home-template .gh-footer-menu .nav {
    justify-content: flex-start !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
  }
}

.gh-footer-copyright {
  display: none !important;
}
/* Calendly inline widget in post/page content */
.post-template .gh-content .calendly-inline-widget,
.page-template .gh-content .calendly-inline-widget {
  display: block;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: min(1380px, calc(100vw - 12px)) !important;
  max-width: none !important;
  min-width: 320px !important;
  height: clamp(860px, 90vh, 1120px) !important;
  margin: 16px 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.post-template .gh-content .calendly-inline-widget iframe,
.page-template .gh-content .calendly-inline-widget iframe {
  display: block;
  width: 100% !important;
  min-width: 100% !important;
  height: 100% !important;
  border: 0 !important;
}

@media (max-width: 900px) {
  .post-template .gh-content .calendly-inline-widget,
  .page-template .gh-content .calendly-inline-widget {
    width: calc(100vw - 10px) !important;
    height: clamp(680px, 86vh, 860px) !important;
    margin: 12px 0 !important;
    border-radius: 8px;
  }
}

/* Homepage hero compact spacing */
.home-template .gh-featured-feed .gh-card:not(.dh-meetings-banner-card) .gh-card-link {
  min-height: 24vh;
  padding: 20px 24px 16px;
  margin-top: 14px;
}

.home-template .dh-hero-text {
  gap: 10px;
}

/* Meetings rectangle directly under hero */
.home-template .gh-featured-feed .dh-meetings-banner-card {
  width: 100%;
  margin: 10px 0 0;
  border: 0;
}

.home-template .gh-featured-feed .dh-meetings-banner-link {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-sizing: border-box;
  color: #fff;
  display: flex;
  justify-content: center;
  min-height: 148px !important;
  padding: 12px 20px !important;
  text-align: center;
  text-decoration: none;
}

.home-template .dh-meetings-banner-label {
  font-size: clamp(2rem, 3.8vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .home-template .gh-featured-feed .gh-card:not(.dh-meetings-banner-card) .gh-card-link {
    min-height: 19vh;
    padding: 16px 18px 14px;
    margin-top: 10px;
  }

  .home-template .gh-featured-feed .dh-meetings-banner-card {
    margin-top: 8px;
  }

  .home-template .gh-featured-feed .dh-meetings-banner-link {
    min-height: 124px !important;
    padding: 10px 14px !important;
  }
}

/* Sidebar "God-Man / Upgrade" card in DEUS HOMO home */
.home-template .gh-sidebar .gh-about {
  background-color: #000;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.home-template .gh-sidebar .gh-about .gh-button {
  background-color: #fff;
  border: 1px solid #fff;
  border-radius: 0;
  color: #000;
}

.home-template .gh-sidebar .gh-about .gh-button:hover {
  background-color: #f0f0f0;
  opacity: 1;
}
