/**
 * IHGZ — layout redesign for inner pages
 * About / Contact / Services / Articles / Single / Archive
 */

/* Shared page shell */
body:not(.home) {
  background: #F4FAF6;
}

/* ===== ABOUT PAGE ===== */
body.page-template-about-us-php #about-our-office,
body.page #about-our-office {
  padding: 0 !important;
  background: #F4FAF6 !important;
  overflow: visible !important;
}
body.page-template-about-us-php #about-our-office::before,
body.page-template-about-us-php #about-our-office::after,
body.page #about-our-office::before,
body.page #about-our-office::after {
  display: none !important;
}
body.page-template-about-us-php #about-our-office > .container,
body.page #about-our-office > .container {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* About hero band */
body.page-template-about-us-php .floating-card,
body.page #about-our-office .floating-card {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #0B2A4A !important;
  color: #fff !important;
  margin: 0 0 0 !important;
  padding: 3.5rem 6vw !important;
  max-width: none !important;
  width: 100% !important;
}
body.page-template-about-us-php .floating-card::before,
body.page #about-our-office .floating-card::before {
  display: none !important;
}
body.page-template-about-us-php .floating-card h5,
body.page-template-about-us-php .floating-card p,
body.page #about-our-office .floating-card h5,
body.page #about-our-office .floating-card p {
  color: #fff !important;
}
body.page-template-about-us-php .floating-card .muted,
body.page #about-our-office .floating-card .muted {
  color: rgba(255,255,255,0.72) !important;
}
body.page-template-about-us-php .badge-oval,
body.page #about-our-office .badge-oval {
  border-radius: 0 !important;
  background: #1FA463 !important;
  color: #fff !important;
}

/* About content blocks — open / flat */
body.page-template-about-us-php .about-card,
body.page-template-about-us-php .mvv-card,
body.page-template-about-us-php .timeline-card,
body.page-template-about-us-php .hero-visual,
body.page #about-our-office .about-card,
body.page #about-our-office .mvv-card,
body.page #about-our-office .timeline-card {
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: #ffffff !important;
}
body.page-template-about-us-php .container > .row,
body.page #about-our-office .container > .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
body.page-template-about-us-php .cta-banner,
body.page #about-our-office .cta-banner {
  border-radius: 0 !important;
  background: #1FA463 !important;
  margin-top: 2rem !important;
}

/* Pad inner about content */
body.page-template-about-us-php #about-our-office .row.g-4,
body.page-template-about-us-php #about-our-office .row.align-items-center,
body.page #about-our-office .row.g-4,
body.page #about-our-office .row.align-items-center {
  padding-left: 6vw;
  padding-right: 6vw;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

/* ===== CONTACT PAGE ===== */
body.page-template-contact-us-php #contact-marriage,
body.page #contact-marriage {
  padding: 0 !important;
  background: #F4FAF6 !important;
}
body.page-template-contact-us-php #contact-marriage > .container,
body.page #contact-marriage > .container {
  max-width: 100% !important;
  padding: 0 !important;
}
body.page-template-contact-us-php #contact-marriage .row,
body.page #contact-marriage .row {
  margin: 0 !important;
  min-height: 70vh;
}
body.page-template-contact-us-php .contact-card,
body.page-template-contact-us-php .form-card,
body.page #contact-marriage .contact-card,
body.page #contact-marriage .form-card,
body.page #contact-marriage .card {
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  height: 100%;
}
body.page-template-contact-us-php .contact-card .card,
body.page #contact-marriage .contact-card .card {
  background: #0B2A4A !important;
  color: #fff !important;
  padding: 3rem 2.5rem !important;
  min-height: 100%;
}
body.page-template-contact-us-php .contact-card .muted,
body.page-template-contact-us-php .contact-card h2,
body.page-template-contact-us-php .contact-card h3,
body.page-template-contact-us-php .contact-card p,
body.page-template-contact-us-php .contact-card label,
body.page #contact-marriage .contact-card .muted,
body.page #contact-marriage .contact-card h2,
body.page #contact-marriage .contact-card h3,
body.page #contact-marriage .contact-card p,
body.page #contact-marriage .contact-card small {
  color: #fff !important;
}
body.page-template-contact-us-php .form-card .card,
body.page #contact-marriage .form-card .card {
  background: #ffffff !important;
  padding: 3rem 2.5rem !important;
  min-height: 100%;
}
body.page-template-contact-us-php .badge-service,
body.page #contact-marriage .badge-service {
  border-radius: 0 !important;
  background: #1FA463 !important;
  box-shadow: none !important;
}
body.page-template-contact-us-php .avatar,
body.page #contact-marriage .avatar {
  border-radius: 0 !important;
}
body.page-template-contact-us-php .send-whatsapp,
body.page-template-contact-us-php .btn-whatsapp,
body.page #contact-marriage .send-whatsapp,
body.page #contact-marriage .btn-whatsapp {
  border-radius: 4px !important;
}

/* ===== SERVICES PAGE ===== */
body.page-template-services-page-php .container-fluid.bg-dark,
body.page .container-fluid.bg-dark {
  background: #0B2A4A !important;
  padding: 4.5rem 6vw !important;
  text-align: right !important;
}
body.page-template-services-page-php .container-fluid.bg-dark h1,
body.page .container-fluid.bg-dark h1 {
  text-align: right !important;
  font-size: clamp(2rem, 4vw, 3rem) !important;
  max-width: 18ch;
  margin-inline-start: auto;
  margin-inline-end: 0;
}
body.page-template-services-page-php .container.mt-5,
body.page-template-services-page-php .container-fluid.bg-white {
  max-width: 100% !important;
  padding-left: 6vw !important;
  padding-right: 6vw !important;
}
body.page-template-services-page-php .services-list ul > li,
body.page .services-list ul > li {
  background: #fff;
  border: none;
  border-bottom: 1px solid #B8D4C4;
  padding: 1rem 0;
  margin: 0;
  list-style: none;
}
body.page-template-services-page-php .container-fluid.bg-white {
  background: #E8F2EC !important;
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}
body.page-template-services-page-php .container-fluid.bg-white img {
  max-width: 180px;
  margin: 0 auto;
  display: block;
}

/* ===== ARTICLES / ARCHIVE LIST ===== */
body.page-template-custom-articles-page-php #services-articles,
body.category #services-articles,
body.archive #services-articles,
body.blog #services-articles {
  padding: 4.5rem 0 !important;
  background: linear-gradient(180deg, #ffffff 0%, #E8F2EC 100%) !important;
}
body.page-template-custom-articles-page-php .service-card,
body.category .service-card,
body.archive .service-card {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
}
body.page-template-custom-articles-page-php .card-media-top,
body.page-template-custom-articles-page-php .placeholder-media,
body.category .card-media-top,
body.category .placeholder-media {
  border-radius: 0 !important;
  height: auto !important;
  aspect-ratio: 16 / 10;
}
body.page-template-custom-articles-page-php .service-icon,
body.category .service-icon {
  display: none !important;
}
body.page-template-custom-articles-page-php .h1,
body.page-template-custom-articles-page-php h2,
body.category .page-header,
body.archive .page-header {
  max-width: 20ch;
  margin-inline-start: auto;
}

/* Category / archive classic templates */
body.category .container,
body.archive .container,
body.search .container {
  max-width: 960px;
}
body.category article,
body.archive article,
body.search article {
  background: #fff;
  border: none;
  border-bottom: 1px solid #B8D4C4;
  border-radius: 0;
  padding: 1.5rem 0;
  margin-bottom: 0;
  box-shadow: none;
}

/* ===== SINGLE POST / ARTICLE ===== */
body.single .sp-hero,
body.single-post .sp-hero {
  background: #0B2A4A !important;
  color: #fff !important;
  padding: 4.5rem 0 3rem !important;
  border-radius: 0 !important;
}
body.single .sp-hero h1,
body.single .sp-title,
body.single-post .sp-hero h1 {
  color: #fff !important;
  max-width: 18ch;
}
body.single .sp-content,
body.single-post .sp-content {
  background: #F4FAF6 !important;
  padding-top: 2.5rem !important;
}
body.single .sp-article,
body.single .sp-card,
body.single-post .sp-article {
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: #fff !important;
  padding: 2.5rem 6vw !important;
  max-width: 860px;
  margin: 0 auto;
}
body.single .sp-cta,
body.single-post .sp-cta {
  border-radius: 0 !important;
  background: #1FA463 !important;
}

/* Generic page content fallback */
body.page:not(.home) .entry-content,
body.page-template-default .container {
  max-width: 960px;
}

/* 404 */
body.error404 {
  background: #0B2A4A;
  color: #fff;
}
body.error404 .container {
  padding: 20vh 6vw;
  text-align: center;
}

@media (max-width: 991px) {
  body.page-template-contact-us-php #contact-marriage .row,
  body.page #contact-marriage .row {
    min-height: 0;
  }
  body.page-template-about-us-php .floating-card,
  body.page #about-our-office .floating-card,
  body.page-template-contact-us-php .contact-card .card,
  body.page-template-contact-us-php .form-card .card,
  body.page #contact-marriage .contact-card .card,
  body.page #contact-marriage .form-card .card {
    padding: 2.25rem 1.5rem !important;
  }
}
