:root{
  --iphtheme-surface: #FAFAFA;
  --iphtheme-text: #1A1C1C;
  --iphtheme-blue: #0057B8;
  --iphtheme-navy: #002585;
  --iphtheme-gold: #FFD700;
  --iphtheme-radius: 8px;
  --iphtheme-btn-h: 70px;
  --iphtheme-btn-shadow: rgba(0, 37, 133, 0.12);
  --iphtheme-btn-press: rgba(0, 37, 133, 0.20);
  --iphtheme-btn-top: rgba(255, 255, 255, 0.75);
  --iphtheme-btn-lift: 0 10px 22px rgba(70, 90, 130, 0.22), 0 3px 0 rgba(105, 120, 150, 0.35), inset 0 1px 0 var(--iphtheme-btn-top);
}

html, body{
  background: var(--iphtheme-surface);
  color: var(--iphtheme-text);
}

/* Sticky main nav row (contact row is non-sticky and scrolls away). */
.iphtheme-header__nav{
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Global button (exclude header/footer by overriding inside those areas). */
:where(body:not(.wp-admin) .wp-block-button__link, body:not(.wp-admin) button, body:not(.wp-admin) input[type="submit"], body:not(.wp-admin) input[type="button"], body:not(.wp-admin) input[type="reset"]){
  min-height: var(--iphtheme-btn-h);
  border-radius: var(--iphtheme-radius);
}

:where(body:not(.wp-admin) .wp-block-button__link){
  background: var(--iphtheme-gold);
  color: var(--iphtheme-navy);
  font-weight: 700;
  border: 0;
  box-shadow: var(--iphtheme-btn-lift);
  transition: background-color .25s ease, color .25s ease, transform .12s ease, box-shadow .12s ease;
}

:where(body:not(.wp-admin) .wp-block-button__link:hover, body:not(.wp-admin) .wp-block-button__link:focus-visible){
  background: var(--iphtheme-blue);
  color: var(--iphtheme-surface);
  box-shadow: 0 8px 18px rgba(40, 60, 100, 0.22), 0 2px 0 rgba(0, 37, 133, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transform: translateY(2px);
}

/* Selected/current button state */
:where(body:not(.wp-admin) .wp-block-button.is-selected .wp-block-button__link),
:where(body:not(.wp-admin) .wp-block-button__link[aria-current="true"]),
:where(body:not(.wp-admin) .wp-block-button__link.is-active){
  background: var(--iphtheme-blue);
  color: var(--iphtheme-surface);
}

:where(body:not(.wp-admin) .wp-block-button__link:active){
  box-shadow: 0 0 0 transparent;
  transform: translateY(4px);
}

/* All standalone action buttons: same 3D raised effect. */
:where(
  body:not(.wp-admin) .wc-block-components-button,
  body:not(.wp-admin) .single_add_to_cart_button,
  body:not(.wp-admin) .add_to_cart_button,
  body:not(.wp-admin) .wp-element-button,
  body:not(.wp-admin) .wp-block-search__button,
  body:not(.wp-admin) .woocommerce a.button,
  body:not(.wp-admin) .woocommerce button.button,
  body:not(.wp-admin) .woocommerce input.button
){
  box-shadow: var(--iphtheme-btn-lift) !important;
  border-radius: var(--iphtheme-radius) !important;
  transition: background-color .25s ease, color .25s ease, transform .12s ease, box-shadow .12s ease !important;
}

:where(
  body:not(.wp-admin) .wc-block-components-button:hover,
  body:not(.wp-admin) .single_add_to_cart_button:hover,
  body:not(.wp-admin) .add_to_cart_button:hover,
  body:not(.wp-admin) .wp-element-button:hover,
  body:not(.wp-admin) .wp-block-search__button:hover,
  body:not(.wp-admin) .woocommerce a.button:hover,
  body:not(.wp-admin) .woocommerce button.button:hover,
  body:not(.wp-admin) .woocommerce input.button:hover
){
  transform: translateY(2px);
  box-shadow: 0 8px 18px rgba(40, 60, 100, 0.22), 0 2px 0 rgba(0, 37, 133, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
}

:where(
  body:not(.wp-admin) .wc-block-components-button:active,
  body:not(.wp-admin) .single_add_to_cart_button:active,
  body:not(.wp-admin) .add_to_cart_button:active,
  body:not(.wp-admin) .wp-element-button:active,
  body:not(.wp-admin) .wp-block-search__button:active,
  body:not(.wp-admin) .woocommerce a.button:active,
  body:not(.wp-admin) .woocommerce button.button:active,
  body:not(.wp-admin) .woocommerce input.button:active
){
  transform: translateY(4px);
  box-shadow: 0 0 0 transparent !important;
}

/* Footer mobile only keeps copyright */
@media (max-width: 781px){
  .iphtheme-footer__main,
  .iphtheme-footer__separator{
    display: none;
  }
}

/* ===== Pixel-fit: article list/detail ===== */
.iphtheme-archive-head .wp-block-separator{
  width: 80px;
  border: 0;
  height: 3px;
}
.iphtheme-featured-card{
  margin: 0 0 32px 0;
  background: #f3f3f3;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 48px -12px rgba(0, 37, 133, 0.06);
}
.iphtheme-featured-card .wp-block-post-featured-image{
  margin: 0;
}
.iphtheme-featured-card .wp-block-post-featured-image img{
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.iphtheme-featured-card__content{
  min-height: 400px;
  background: #fff;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.iphtheme-featured-card__content .wp-block-post-title{
  margin-top: 12px;
  margin-bottom: 16px;
  font-family: Georgia, serif;
}
.iphtheme-featured-card__content .wp-block-post-excerpt{
  margin-bottom: 24px;
  color: #424752;
}
.iphtheme-archive-grid .wp-block-post-template{
  gap: 32px;
}
.iphtheme-archive-card{
  background: #f3f3f3;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 48px -12px rgba(0, 37, 133, 0.06);
}
.iphtheme-archive-card .wp-block-post-featured-image{
  margin: 0;
}
.iphtheme-archive-card .wp-block-post-featured-image img{
  width: 100%;
  height: 280px;
  object-fit: cover;
}
.iphtheme-archive-card__body{
  background: #fff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.iphtheme-archive-card__body .wp-block-button{
  margin-top: 8px;
}
.iphtheme-sidebox{
  background: #f3f3f3;
  border-radius: 10px;
  padding: 32px;
  margin-bottom: 32px;
}
.iphtheme-sidebox h2{
  margin-top: 0;
  margin-bottom: 24px;
}
.iphtheme-briefing-box{
  background: linear-gradient(135deg, #0057B8 0%, #002585 100%);
  border-radius: 10px;
  padding: 32px;
}
.iphtheme-article-list .wp-block-search__inside-wrapper{
  height: 60px;
  border: 0;
  background: #e2e2e2;
  border-radius: 8px;
}
.iphtheme-article-list .wp-block-query-pagination{
  gap: 10px;
}
.iphtheme-article-list .wp-block-query-pagination .page-numbers{
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #e2e2e2;
  color: #1A1C1C;
  box-shadow: var(--iphtheme-btn-lift);
}
.iphtheme-article-list .wp-block-query-pagination .page-numbers.current{
  background: #0057B8;
  color: var(--ip-header-nav-fg);
}
.iphtheme-article-list .wp-block-query-pagination .page-numbers:hover{
  transform: translateY(2px);
}
.iphtheme-single-content{
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 24px 48px -12px rgba(0, 37, 133, 0.06);
}

/* ===== Pixel-fit: shop pages ===== */
.iphtheme-shop-home .wp-block-woocommerce-breadcrumbs,
.iphtheme-shop-list .wp-block-woocommerce-breadcrumbs,
.iphtheme-product-detail .wp-block-woocommerce-breadcrumbs{
  font-size: 16px;
  margin-bottom: 12px;
}
.iphtheme-shop-grid .wc-block-grid__products,
.iphtheme-shop-grid .wp-block-post-template{
  gap: 32px 24px;
}
.iphtheme-shop-card{
  border-radius: 12px;
}
.iphtheme-shop-card .wc-block-components-product-image,
.iphtheme-shop-card .wp-block-woocommerce-product-image{
  margin-bottom: 16px;
}
.iphtheme-shop-card .wc-block-components-product-image img,
.iphtheme-shop-card .wp-block-woocommerce-product-image img{
  border-radius: 12px;
}
.iphtheme-shop-card .wp-block-woocommerce-product-button{
  margin-top: 16px;
}
.iphtheme-shop-filter-wrap .wc-block-components-filter-wrapper{
  gap: 24px;
}
.iphtheme-shop-filter-wrap .wc-block-components-filter-wrapper > *{
  background: #f3f3f3;
  border-radius: 10px;
  padding: 20px;
}
.iphtheme-shop-list .wc-block-product-categories-list{
  margin: 0;
  padding: 0;
}
.iphtheme-shop-list .wc-block-product-categories-list-item{
  list-style: none;
  margin: 10px 0;
}
.iphtheme-product-summary-card{
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 24px 48px -12px rgba(0, 37, 133, 0.06);
}
.iphtheme-product-detail .woocommerce-product-gallery{
  background: #f3f3f3;
  border-radius: 16px;
  padding: 8px;
}
.iphtheme-product-detail .wc-block-components-product-price{
  margin-bottom: 16px;
}
.iphtheme-product-detail .wc-block-components-product-summary{
  margin-top: 16px;
}

/* ===== Final page-level pixel alignment (MD/*/code.html) ===== */
.iphtheme-article-list{
  max-width: 1440px;
}
.iphtheme-article-list .iphtheme-archive-head h1{
  color: #6b5900;
}
.iphtheme-featured-card{
  border-radius: 12px;
}
.iphtheme-featured-card .wp-block-post-featured-image img{
  height: 420px;
}
.iphtheme-shop-home,
.iphtheme-shop-list,
.iphtheme-product-detail{
  max-width: 1600px;
}
.iphtheme-shop-home .iphtheme-shop-home__head,
.iphtheme-shop-list > .wp-block-group:first-child{
  margin-bottom: 40px;
}
.iphtheme-shop-grid .wc-block-grid__product,
.iphtheme-shop-grid .wc-block-product{
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 48px -20px rgba(0,37,133,.12);
  padding: 12px;
}
.iphtheme-member-access{
  position: relative;
  overflow: hidden;
}
.iphtheme-member-access::before,
.iphtheme-member-access::after{
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(42px);
  z-index: 0;
}
.iphtheme-member-access::before{
  width: 340px;
  height: 340px;
  left: -90px;
  top: -70px;
  background: rgba(13,91,188,.10);
}
.iphtheme-member-access::after{
  width: 460px;
  height: 460px;
  right: -150px;
  bottom: -160px;
  background: rgba(80,66,0,.10);
}
.iphtheme-member-access > *{
  position: relative;
  z-index: 1;
}
.iphtheme-member-card{
  box-shadow: 0 24px 48px -12px rgba(0, 37, 133, 0.08);
  border: 1px solid rgba(114,119,132,.15);
}

/* Unified controls for article/shop templates */
.iphtheme-article-list .wp-block-button__link,
.iphtheme-article-single .wp-block-button__link,
.iphtheme-shop-home .wc-block-components-product-button__button,
.iphtheme-shop-list .wc-block-components-product-button__button,
.iphtheme-product-detail .single_add_to_cart_button,
.iphtheme-product-detail .wp-element-button,
.iphtheme-member-access .wp-block-button__link {
  min-height: 70px;
  border-radius: 8px;
  padding: 0 32px;
  background: #FFE16D;
  color: #001A41;
  font-family: "Work Sans", sans-serif;
  font-size: 20px;
  font-weight: 600;
  border: 0;
  box-shadow: 0 4px 0 #544600;
  transition: all .3s ease;
}

.iphtheme-article-list .wp-block-button__link:hover,
.iphtheme-article-single .wp-block-button__link:hover,
.iphtheme-shop-home .wc-block-components-product-button__button:hover,
.iphtheme-shop-list .wc-block-components-product-button__button:hover,
.iphtheme-product-detail .single_add_to_cart_button:hover,
.iphtheme-product-detail .wp-element-button:hover,
.iphtheme-member-access .wp-block-button__link:hover {
  background: #0D5BBC;
  color: #F9F9F9;
  box-shadow: 0 2px 0 #001453;
  transform: translateY(2px);
}

.iphtheme-article-list .wp-block-post-title,
.iphtheme-article-single .wp-block-post-title,
.iphtheme-shop-home h2,
.iphtheme-shop-list h2,
.iphtheme-product-detail h2,
.iphtheme-member-access h2 {
  font-family: "Newsreader", Georgia, serif;
}

.iphtheme-meta {
  font-family: "Work Sans", sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #0057B8;
}

.iphtheme-article-list p,
.iphtheme-article-single p,
.iphtheme-shop-home p,
.iphtheme-shop-list p,
.iphtheme-product-detail p,
.iphtheme-member-access p {
  font-family: "Work Sans", sans-serif;
}

.iphtheme-price-lg {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.ip-home-meta {
  font-family: "Work Sans", sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: #0057B8;
}

@media (max-width: 1024px){
  .iphtheme-archive-layout,
  .iphtheme-shop-layout,
  .iphtheme-product-layout{
    flex-direction: column;
  }
  .iphtheme-archive-main,
  .iphtheme-archive-side,
  .iphtheme-shop-filter-col,
  .iphtheme-shop-grid-col,
  .iphtheme-product-main,
  .iphtheme-product-side{
    flex-basis: 100% !important;
  }
  .iphtheme-shop-filter-wrap{
    position: static !important;
  }
}
/*
  =====================================================================
  IPH Visual System Freeze (Do Not Drift)
  ---------------------------------------------------------------------
  This block is the source of truth for global visual consistency.
  If design changes are needed, update tokens here first, then apply.

  Token mapping (from MD/Homepage/code.html):
  - Heading serif: Newsreader
  - Body sans: Work Sans
  - H1/H2 size: 38px
  - Body size: 20px
  - Meta size: 16px
  - Primary CTA height: 70px
  - Primary CTA radius: 8px
  - Primary CTA bg: #FFE16D
  - Primary CTA fg: #001A41
  - Primary CTA hover bg: #0D5BBC
  - Primary CTA hover fg: #F9F9F9
  - Press shadow: 0 4px 0 #544600 -> hover 0 2px 0 #001453

  Usage:
  - Titles: .ip-typo-h1 / .ip-typo-h2
  - Body text: .ip-body
  - Primary buttons: .ip-btn-primary
  - Meta labels: .iphtheme-meta / .ip-home-meta
  =====================================================================
*/
/* ===== IPH unified typography + CTA standard ===== */
.ip-typo-h1 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 700;
  font-size: 38px;
  line-height: 1.2;
}

.ip-typo-h2 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 700;
  font-size: 38px;
  line-height: 1.2;
  color: #0057B8;
}

.ip-body {
  font-family: "Work Sans", sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.6;
  color: #1A1C1C;
}

.ip-btn-primary,
.ip-btn-primary.wp-block-button,
.ip-btn-primary .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  padding: 0 32px;
  border-radius: 8px;
  background-color: #FFE16D;
  color: #001A41;
  font-family: "Work Sans", sans-serif;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  box-shadow: 0 4px 0 #544600;
  transition: all 0.3s ease;
}

.ip-btn-primary:hover,
.ip-btn-primary .wp-block-button__link:hover {
  background-color: #0D5BBC;
  color: #F9F9F9;
  box-shadow: 0 2px 0 #001453;
  transform: translateY(2px);
}

/* ===== Homepage: Global Attache editorial style ===== */
.ip-home {
  --ip-surface: #FAFAFA;
  --ip-surface-low: #f3f3f3;
  --ip-surface-high: #e8e8e8;
  --ip-text: #1A1C1C;
  --ip-muted: #424752;
  --ip-blue: #0057B8;
  --ip-soft-blue: #0057B838;
  --ip-navy: #002585;
  --ip-gold: #FFD700;
  --ip-gold-dark: #504200;
  --ip-radius: 12px;
  --ip-card-radius: 12px;
  --ip-card-shadow: 0 24px 48px -20px rgba(0,37,133,.15);
  --ip-section-btn-h: 70px;
  --ip-section-btn-h-mobile: 62px;
  --ip-section-btn-radius: 8px;
  --ip-section-btn-bg: #FFD700;
  --ip-section-btn-fg: #002585;
  --ip-section-btn-shadow: 0 4px 0 #B88600;
  --ip-section-btn-hover-bg: #0057B8;
  --ip-section-btn-hover-fg: #FAFAFA;
  --ip-section-btn-hover-shadow: 0 2px 0 #002585;
  --ip-section-py: var(--wp--custom--ip-home--section-py, 96px);
  --ip-section-py-mobile: var(--wp--custom--ip-home--section-py-mobile, 68px);
  --ip-h2-size: var(--wp--custom--ip-home--h2-size, 38px);
  --ip-h2-color: var(--wp--custom--ip-home--h2-color, #0057B8);
  --ip-h3-size: var(--wp--custom--ip-home--h3-size, 24px);
  --ip-h3-color: var(--wp--custom--ip-home--h3-color, #0057B8);
  --ip-grid-gap: var(--wp--custom--ip-home--grid-gap, 24px);
  --ip-card-padding-y: var(--wp--custom--ip-home--card-padding-y, 36px);
  --ip-card-padding-x: var(--wp--custom--ip-home--card-padding-x, 28px);
  --ip-card-padding-compact: var(--wp--custom--ip-home--card-padding-compact, 24px);
  --ip-card-padding-tight: var(--wp--custom--ip-home--card-padding-tight, 20px);
  font-family: "Work Sans", sans-serif;
  color: var(--ip-text);
  background: var(--ip-surface);
}

.ip-home * { box-sizing: border-box; }
.ip-home .wrap { width: min(1400px, 92vw); margin: 0 auto; }
.ip-home .section { padding: var(--ip-section-py) 0; }
.ip-home h1, .ip-home h2, .ip-home h3 {
  font-family: "Newsreader", Georgia, serif;
  margin: 0 0 16px;
  line-height: 1.2;
}
.ip-home h1 { font-size: 38px; color: #fff; }
.ip-home h2 { font-size: var(--ip-h2-size); color: var(--ip-h2-color); text-align: center; }
.ip-home h3 { font-size: var(--ip-h3-size); color: var(--ip-h3-color); }
.ip-home p { font-size: 20px; line-height: 1.65; margin: 0; }

/* Remove gap between sticky header and hero */
.ip-front-main {
  margin-block-start: 0 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.ip-front-main > .ip-home {
  margin-top: 0 !important;
}

.ip-hero {
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  padding: 96px 0 32px;
  margin-top: 0 !important;
  background:
    linear-gradient(0deg, rgba(13,91,188,.40), rgba(13,91,188,.40)),
    url('https://images.unsplash.com/photo-1529070538774-1843cb3265df?auto=format&fit=crop&w=2000&q=80') center top/cover no-repeat;
}

.ip-hero .wp-block-cover__inner-container {
  width: min(1400px, 92vw);
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.ip-hero .wrap {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  --ip-hero-left-offset: 0px;
}

.ip-hero .wrap > h1,
.ip-hero .wrap > .ip-hero-sub,
.ip-hero .wrap > .ip-btns {
  margin-left: var(--ip-hero-left-offset) !important;
}

.ip-hero h1 {
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: 0;
  margin: 0 0 16px 0;
  max-width: 760px;
  text-align: left;
}

.ip-hero-sub {
  color: #fff;
  font-family: "Newsreader", Georgia, serif;
  font-size: 24px;
  font-style: italic;
  line-height: 1.2;
  margin: 0 0 32px 0;
  max-width: 760px;
  text-align: left;
}

.ip-hero .ip-btns {
  display: flex;
  gap: 24px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  align-self: flex-start;
  margin-right: 0;
}

.ip-hero .ip-btn,
.ip-hero .ip-btn.wp-block-button {
  display: block;
  width: 220px;
  margin: 0;
  padding: 0;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

.ip-hero .ip-btn .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  width: 100%;
  padding: 0 32px;
  border-radius: 8px;
  border: 0;
  text-decoration: none;
  font-weight: 600;
  font-size: 20px;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
  transition: all .28s ease;
}

.ip-hero .ip-btn.gold .wp-block-button__link {
  background: #F1DB6D;
  color: #001a41;
  box-shadow: 0 4px 0 rgba(80,66,0,.35), 0 12px 24px rgba(0,0,0,.22);
}

.ip-hero .ip-btn.ghost .wp-block-button__link {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

.ip-hero .ip-btn.gold .wp-block-button__link:hover {
  background: var(--ip-blue);
  color: #fff;
  transform: translateY(2px);
}

.ip-hero .ip-btn.ghost .wp-block-button__link:hover {
  background: rgba(255,255,255,.22);
  color: #fff;
}

.ip-btn.small { min-height: 50px; min-width: 146px; font-size: 16px; padding: 0 22px; }

.ip-section-head .ip-btn.small,
.ip-section-head .ip-btn.small.wp-block-button,
.ip-section-head .ip-btn.small .wp-block-button__link,
.ip-section-head a.ip-btn.small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--ip-section-btn-h);
  height: var(--ip-section-btn-h);
  min-width: 260px;
  padding: 0 32px;
  border-radius: var(--ip-section-btn-radius);
  background-color: var(--ip-section-btn-bg);
  color: var(--ip-section-btn-fg);
  font-family: "Work Sans", sans-serif;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  border: none;
  box-shadow: var(--ip-section-btn-shadow);
  transition: all 0.2s ease;
}

.ip-section-head .ip-btn.small:hover,
.ip-section-head .ip-btn.small .wp-block-button__link:hover,
.ip-section-head a.ip-btn.small:hover {
  background-color: var(--ip-section-btn-hover-bg);
  color: var(--ip-section-btn-hover-fg);
  box-shadow: var(--ip-section-btn-hover-shadow);
  transform: translateY(2px);
}

.ip-section-head .ip-btn.small:active,
.ip-section-head .ip-btn.small .wp-block-button__link:active,
.ip-section-head a.ip-btn.small:active {
  box-shadow: none;
  transform: translateY(4px);
}

.ip-surface-low { background: var(--ip-surface-low); }
.ip-surface-high { background: var(--ip-surface-high); }
.ip-glass {
  background: rgba(255,255,255,.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.3);
}

.ip-card-grid,
.ip-services,
.ip-doctors,
.ip-clinics,
.ip-reviews,
.ip-ency-grid,
.ip-media-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: var(--ip-grid-gap);
}

/* Global Media Highlights: keep original width rhythm, enforce 680:380 ratio */
.ip-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: var(--ip-grid-gap);
}

.ip-card {
  background: #fff;
  border-radius: var(--ip-card-radius);
  padding: var(--ip-card-padding-y) var(--ip-card-padding-x);
  box-shadow: var(--ip-card-shadow);
}

.ip-card.featured {
  background: linear-gradient(135deg, var(--ip-blue), var(--ip-navy));
  color: #fff;
  transform: translateY(-8px);
}

.ip-card.featured h3,
.ip-card.featured .price { color: #FFE16D; }

.ip-card .price { font-size: 38px; font-weight: 700; margin: 4px 0 20px; }
.ip-card ul { padding-left: 18px; margin: 0 0 28px; }
.ip-card li { margin: 10px 0; font-size: 18px; }

/* ensure non-hero card buttons keep normal primary CTA styling */
.ip-card a.ip-btn,
.ip-card a.ip-btn-primary,
.ip-card .wp-block-button.ip-btn .wp-block-button__link,
.ip-card .wp-block-button.ip-btn-primary .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  height: 70px;
  width: auto;
  min-width: 180px;
  padding: 0 32px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  background: #FFE16D;
  color: #001A41;
  box-shadow: 0 4px 0 #544600;
}

.ip-service {
  min-height: 280px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
}

.ip-service::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.75));
}

.ip-service span {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 1;
  color: #fff;
  font-family: "Newsreader", Georgia, serif;
  font-size: 24px;
}

.ip-two-col {
  display: grid;
  grid-template-columns: 36% 64%;
  gap: 56px;
  align-items: start;
}

.ip-two-col__lead {
  max-width: 40ch;
}

.ip-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 34px;
  row-gap: 12px;
}

.ip-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  color: var(--ip-blue);
}

.ip-arrow {
  color: var(--ip-blue);
  font-size: 1em;
  line-height: 1;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  flex: none;
}

.ip-avatar {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  margin: 0 auto 18px;
  border: 8px solid var(--ip-surface-high);
  object-fit: cover;
}

.ip-story-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}

.ip-story details {
  background: #fff;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 12px;
  box-shadow: 0 10px 24px -18px rgba(0,37,133,.25);
}

.ip-story summary {
  cursor: pointer;
  font-size: 24px;
  font-family: "Newsreader", Georgia, serif;
  color: var(--ip-blue);
}

/* Shared accordion summary arrow styles (Brand Story + FAQ) */
.ip-story summary,
.ip-faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
}

.ip-story summary::before,
.ip-faq summary::before {
  content: "›";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #0057B8;
  opacity: 1;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  transform: rotate(0deg);
  transform-origin: center;
  transition: transform .2s ease;
}

.ip-story details[open] > summary::before,
.ip-faq details[open] > summary::before {
  transform: rotate(90deg);
}

.ip-story summary::-webkit-details-marker,
.ip-faq summary::-webkit-details-marker { display: none; }

.ip-story summary::marker,
.ip-faq summary::marker { content: ""; }

.ip-story details p { margin-top: 10px; color: var(--ip-muted); font-size: 18px; }

.ip-story-visual {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 48px -16px rgba(0,37,133,.24);
}

.ip-story-visual img { width: 100%; height: 420px; object-fit: cover; display: block; }
.ip-story-caption { margin-top: 18px; font-size: 18px !important; color: var(--ip-muted); }

.ip-media-card {
  border-radius: var(--ip-card-radius);
  padding: var(--ip-card-padding-tight);
}
.ip-media-preview {
  width: 100%;
  aspect-ratio: 680 / 380;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(13,91,188,.85), rgba(0,37,133,.85));
  display: grid;
  place-items: center;
  color: #FFE16D;
  font-size: 48px;
  margin: 0 auto 16px;
  border: 0;
  cursor: pointer;
}

.ip-media-preview:hover span::before {
  border-color: rgba(255,255,255,0.98);
  background: rgba(0,0,0,0.35);
}

.ip-media-preview span {
  position: relative;
  width: 39px;
  height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  color: transparent;
}

.ip-media-preview span::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.25);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

.ip-media-preview span::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid rgba(255,255,255,0.92);
  transform: translateX(3px);
}

.ip-video-modal[hidden] {
  display: none !important;
}

.ip-video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
}

.ip-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.ip-video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1200px, 92vw);
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,.35);
}

.ip-video-modal__frame-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.ip-video-modal__frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.ip-video-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 0;
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.ip-video-modal__close:hover {
  background: rgba(0,0,0,.85);
}

.ip-ency-card {
  background: #fff;
  border-radius: var(--ip-card-radius);
  overflow: hidden;
  box-shadow: var(--ip-card-shadow);
}
.ip-ency-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.ip-ency-body { padding: var(--ip-card-padding-tight); }
.ip-ency-kicker {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ip-blue);
  font-weight: 700;
}
.ip-ency-card h3 { font-size: 24px; margin: 10px 0 8px; }
.ip-ency-body p { font-size: 16px; color: var(--ip-muted); }
.ip-ency-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--ip-blue);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.ip-faq { margin-top: 36px; display: grid; gap: 14px; }
.ip-faq details {
  background: #fff;
  border-radius: 10px;
  padding: var(--ip-card-padding-tight) var(--ip-card-padding-compact);
  box-shadow: 0 10px 24px -18px rgba(0,37,133,.25);
}
.ip-faq summary {
  cursor: pointer;
  font-size: 20px;
  font-weight: 600;
  color: var(--ip-text);
}

.ip-faq p { margin-top: 10px; font-size: 18px; color: var(--ip-muted); }

.ip-review {
  background: #fff;
  border-radius: var(--ip-card-radius);
  padding: var(--ip-card-padding-compact);
  border-top: 4px solid var(--ip-blue);
}

.ip-insurance {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 24px;
  font-size: 18px;
  font-weight: 600;
  color: #1a1c1c;
}

.ip-insurance-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 160px;
}

.ip-insurance-logo {
  width: 160px;
  height: 48px;
  object-fit: contain;
  filter: grayscale(0.1);
  opacity: 0.95;
}

.ip-insurance-item span {
  opacity: 0.7;
  font-size: 16px;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .ip-card-grid,
  .ip-services,
  .ip-doctors,
  .ip-clinics,
  .ip-reviews,
  .ip-ency-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }


  .ip-two-col,
  .ip-story-grid { grid-template-columns: 1fr; gap: 32px; }

  .ip-list {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 10px;
  }

  /* Prevent mobile/Tablet overlay washout on indication list */
  .ip-two-col,
  .ip-two-col * {
    opacity: 1 !important;
  }
}

@media (max-width: 720px) {
  .ip-section-head {
    justify-content: flex-start !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .ip-section-head .ip-btn.small,
  .ip-section-head .ip-btn.small.wp-block-button,
  .ip-section-head .ip-btn.small .wp-block-button__link,
  .ip-section-head a.ip-btn.small {
    min-height: var(--ip-section-btn-h-mobile);
    height: var(--ip-section-btn-h-mobile);
    min-width: 0;
    width: 100%;
    font-size: 18px;
    padding: 0 18px;
  }

  /* Doctors section: center avatar/name/title on mobile */
  .ip-doctors article {
    text-align: center;
    justify-items: center;
  }

  .ip-doctors .ip-avatar {
    margin-left: auto;
    margin-right: auto;
  }

  .ip-doctors h3,
  .ip-doctors .ip-home-meta,
  .ip-doctors p {
    text-align: center !important;
  }
}

@media (max-width: 720px) {
  .ip-home .section { padding: var(--ip-section-py-mobile) 0; }
  .ip-home p,
  .ip-list li,
  .ip-faq summary { font-size: 18px; }
  .ip-card-grid,
  .ip-services,
  .ip-doctors,
  .ip-clinics,
  .ip-reviews,
  .ip-ency-grid { grid-template-columns: 1fr; }


  .ip-insurance {
    gap: 18px;
    font-size: 24px;
  }

  .ip-insurance-logo {
    display: none;
  }

  .ip-insurance-item {
    min-width: auto;
  }

  .ip-insurance-item span {
    font-size: 24px;
    opacity: .7;
  }

  .ip-doctors article {
    text-align: center;
    justify-items: center;
  }

  .ip-doctors .ip-avatar {
    margin-left: auto;
    margin-right: auto;
  }

  .ip-doctors h3,
  .ip-doctors .ip-home-meta,
  .ip-doctors p {
    text-align: center !important;
  }

  .ip-hero {
    min-height: 520px;
    padding: 88px 0 26px;
    background-position: center top;
  }

  .ip-hero h1 {
    font-size: 34px;
    margin-bottom: 12px;
    max-width: 100%;
  }

  .ip-hero-sub {
    font-size: 22px;
    margin-bottom: 24px;
  }

  .ip-hero .ip-btns {
    gap: 12px;
    flex-wrap: wrap;
  }

  .ip-hero .ip-btn,
  .ip-hero .ip-btn.wp-block-button,
  .ip-hero .ip-btn .wp-block-button__link {
    min-height: 62px;
    width: auto;
    min-width: 225px;
    font-size: 18px;
    padding: 0 18px;
  }

}

/* ===== Homepage Brand Story carousel ===== */
.ip-story-carousel {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 48px -16px rgba(0,37,133,.24);
}

.ip-story-track {
  display: flex;
  transition: transform .5s ease;
  will-change: transform;
}

.ip-story-slide {
  min-width: 100%;
}

.ip-story-slide img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.ip-story-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 100%;
  border: 0;
  cursor: pointer;
  color: #fff;
  font-size: 46px;
  line-height: 1;
  z-index: 2;
  background: linear-gradient(90deg, rgba(0,0,0,.32), rgba(0,0,0,0));
}

.ip-story-arrow.prev { left: 0; }
.ip-story-arrow.next {
  right: 0;
  background: linear-gradient(270deg, rgba(0,0,0,.32), rgba(0,0,0,0));
}

.ip-story-arrow:hover {
  color: #FFE16D;
}

/* ===== Header pixel-fit (MD/header) ===== */
.iphtheme-header {
  margin-top: 0;
  --wp--style--block-gap: 0;
  gap: 0;
}

.iphtheme-header > .wp-block-group,
.iphtheme-header__utility,
.iphtheme-header__nav {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.iphtheme-header__utility + .iphtheme-header__nav {
  margin-top: 0 !important;
  position: relative;
}

.iphtheme-header__utility + .iphtheme-header__nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 215, 0, .55) 18%, rgba(255, 255, 255, .78) 50%, rgba(255, 215, 0, .55) 82%, rgba(255, 255, 255, 0));
  box-shadow: 0 0 8px rgba(255, 255, 255, .2), 0 0 14px rgba(255, 215, 0, .14);
  opacity: .92;
}

.iphtheme-header__utility,
.iphtheme-header__nav {
  background: linear-gradient(135deg, #0057B8 0%, #002585 100%);
}

.iphtheme-header__utility {
  padding: 8px 32px;
}

.iphtheme-header__utility-inner,
.iphtheme-header__nav-inner {
  width: min(1400px, 92vw);
  margin: 0 auto;
}

.iphtheme-header__contact {
  gap: 24px;
}

.iphtheme-header__contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.9);
  font-size: 16px;
  line-height: 1;
}

.iphtheme-header__contact-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFD700;
  flex: none;
}

.iphtheme-header__contact-icon svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
}

.iphtheme-header__lang {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  padding: 4px 12px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
}

/* Polylang compatibility: ul/li or plain links */
.iphtheme-header__lang ul,
.iphtheme-header__lang .lang-switcher,
.iphtheme-header__lang .polylang-langswitcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.iphtheme-header__lang li {
  margin: 0;
  list-style: none;
}

.iphtheme-header__lang a,
.iphtheme-header__lang span {
  color: rgba(255,255,255,.86) !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  padding: 4px 2px;
}

.iphtheme-header__lang .current-lang a,
.iphtheme-header__lang [aria-current="page"],
.iphtheme-header__lang a:hover {
  color: #FFD700 !important;
  font-weight: 700;
}

.iphtheme-header__lang .iphtheme-header__lang-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.92) !important;
}

.iphtheme-header__lang .iphtheme-header__lang-flag {
  font-size: 14px;
  line-height: 1;
}

.iphtheme-header__lang .iphtheme-header__lang-sep {
  color: rgba(255,255,255,.75) !important;
  padding: 0 2px;
}

.iphtheme-header {
  --ip-header-nav-fg: #ffffff;
  --ip-header-nav-fg-soft: rgba(255, 255, 255, .84);
  --ip-header-nav-accent: #FFD700;
  --ip-header-nav-bg-top: linear-gradient(135deg, #0057B8 0%, #002585 100%);
  --ip-header-nav-bg-scrolled: linear-gradient(135deg, #0057B8 0%, #002585 100%);
  --ip-header-nav-shadow: 0 16px 30px rgba(0, 37, 133, .22);
  --ip-header-nav-border: rgba(255, 255, 255, .14);
}

.iphtheme-header.is-light-surface {
  --ip-header-nav-fg: #ffffff;
  --ip-header-nav-fg-soft: rgba(255, 255, 255, .86);
  --ip-header-nav-shadow: 0 16px 30px rgba(0, 37, 133, .20);
}

.iphtheme-header.is-dark-surface {
  --ip-header-nav-fg: #ffffff;
  --ip-header-nav-fg-soft: rgba(255, 255, 255, .90);
  --ip-header-nav-shadow: 0 20px 36px rgba(0, 16, 56, .32);
}

.iphtheme-header__nav {
  position: relative;
  z-index: 50;
  box-shadow: var(--ip-header-nav-shadow);
  padding: 16px 32px;
  background: var(--ip-header-nav-bg-top);
  border-bottom: 1px solid transparent;
  transition: transform .32s cubic-bezier(.22,.61,.36,1), opacity .32s ease, box-shadow .32s ease, background-color .32s ease, background .32s ease, padding .24s ease;
}

.iphtheme-header.is-scrolled .iphtheme-header__utility {
  display: none;
}

.iphtheme-header.is-scrolled .iphtheme-header__nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding-top: 12px;
  padding-bottom: 12px;
  background: var(--ip-header-nav-bg-scrolled);
  box-shadow: 0 18px 38px rgba(0, 18, 66, .38);
  border-bottom: 1px solid var(--ip-header-nav-border);
  animation: iphtheme-header-float-in .32s cubic-bezier(.22,.61,.36,1) both;
}

.iphtheme-header.is-scroll-down.is-nav-hidden .iphtheme-header__nav {
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
}

.iphtheme-header.is-scroll-up .iphtheme-header__nav,
.iphtheme-header.is-scrolled:not(.is-nav-hidden) .iphtheme-header__nav {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.iphtheme-header.is-scrolled .iphtheme-header__brand,
.iphtheme-header.is-scrolled .iphtheme-header__brand a {
  font-size: 28px;
}


@keyframes iphtheme-header-float-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.iphtheme-header__brand,
.iphtheme-header__brand a {
  margin: 0;
  color: var(--ip-header-nav-fg) !important;
  font-family: "Newsreader", Georgia, serif;
  font-size: 32px;
  font-style: italic;
  text-decoration: none;
  letter-spacing: .01em;
  transition: font-size .24s ease, color .2s ease;
}

@media (min-width: 721px) {
  .iphtheme-header__brand,
  .iphtheme-header__brand .custom-logo-link {
    display: block;
    width: min(18.5vw, 254px);
    max-width: 100%;
  }

  .iphtheme-header__brand .custom-logo {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }

  .iphtheme-header__menu {
    transform: translateX(9px);
  }
}


.iphtheme-header__menu {
  flex: 1;
  justify-content: center;
}

.iphtheme-header__menu .wp-block-navigation-item {
  padding: 0 6px;
}

.iphtheme-header__menu .wp-block-navigation-item__content {
  color: var(--ip-header-nav-fg-soft) !important;
  font-family: "Work Sans", sans-serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .015em;
  line-height: 1.15;
  position: relative;
  transition: color .2s ease;
}

.iphtheme-header__menu .wp-block-navigation-item__content::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: var(--ip-header-nav-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .22s ease;
}

.iphtheme-header__menu .wp-block-navigation-item:hover > .wp-block-navigation-item__content,
.iphtheme-header__menu .wp-block-navigation-item:focus-within > .wp-block-navigation-item__content {
  color: var(--ip-header-nav-fg) !important;
}

.iphtheme-header__menu .wp-block-navigation-item:hover > .wp-block-navigation-item__content::after,
.iphtheme-header__menu .wp-block-navigation-item:focus-within > .wp-block-navigation-item__content::after {
  transform: scaleX(1);
}

.iphtheme-header__menu .wp-block-navigation-item.has-child > .wp-block-navigation-item__content,
.iphtheme-header__menu .wp-block-page-list__item.has-child > .wp-block-navigation-item__content {
  display: inline-flex;
  align-items: center;
}

.iphtheme-header__menu .wp-block-navigation-item.has-child > .wp-block-navigation-item__content::before,
.iphtheme-header__menu .wp-block-page-list__item.has-child > .wp-block-navigation-item__content::before {
  content: "›";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  color: var(--ip-header-nav-fg);
  font-size: 1em;
  line-height: 1;
  font-weight: 700;
  transform: rotate(90deg);
  transform-origin: center;
  transition: transform .22s ease, color .22s ease;
}

.iphtheme-header__menu .wp-block-navigation-item.has-child:hover > .wp-block-navigation-item__content::before,
.iphtheme-header__menu .wp-block-page-list__item.has-child:hover > .wp-block-navigation-item__content::before,
.iphtheme-header__menu .wp-block-navigation-item.has-child:focus-within > .wp-block-navigation-item__content::before,
.iphtheme-header__menu .wp-block-page-list__item.has-child:focus-within > .wp-block-navigation-item__content::before,
.iphtheme-header__menu .wp-block-navigation-item.has-child.open-on-click > .wp-block-navigation-item__content::before,
.iphtheme-header__menu .wp-block-page-list__item.has-child.open-on-click > .wp-block-navigation-item__content::before,
.iphtheme-header__menu .wp-block-navigation-item.has-child[aria-expanded="true"] > .wp-block-navigation-item__content::before,
.iphtheme-header__menu .wp-block-page-list__item.has-child[aria-expanded="true"] > .wp-block-navigation-item__content::before {
  transform: rotate(180deg);
  color: var(--ip-header-nav-accent);
}

.iphtheme-header__menu .wp-block-navigation__submenu-container,
.iphtheme-header__menu .wp-block-navigation .has-child .wp-block-navigation__submenu-container {
  background: #002585 !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 22px 40px rgba(0, 20, 80, 0.42);
  border-radius: 12px;
  padding: 8px;
  min-width: 240px;
}

.iphtheme-header__menu .wp-block-navigation-item .wp-block-navigation__submenu-container {
  opacity: 0;
  transform: translateY(8px);
  visibility: hidden;
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}

.iphtheme-header__menu .wp-block-navigation-item:hover > .wp-block-navigation__submenu-container,
.iphtheme-header__menu .wp-block-navigation-item:focus-within > .wp-block-navigation__submenu-container,
.iphtheme-header__menu .wp-block-navigation-item.open-on-click > .wp-block-navigation__submenu-container {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.iphtheme-header__menu .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  color: #fff !important;
  border-radius: 8px;
  padding: 10px 12px;
}

.iphtheme-header__menu .wp-block-navigation__submenu-container .wp-block-navigation-item__content::after {
  display: none;
}

.iphtheme-header__menu .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.iphtheme-header__menu .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible {
  color: #FFD700 !important;
  background: rgba(255, 255, 255, .08);
}

.iphtheme-header__menu .current-menu-item > .wp-block-navigation-item__content,
.iphtheme-header__menu .current_page_item > .wp-block-navigation-item__content,
.iphtheme-header__menu .wp-block-navigation-item.current-menu-ancestor > .wp-block-navigation-item__content,
.iphtheme-header__menu .wp-block-navigation-item__content[aria-current="page"] {
  color: var(--ip-header-nav-fg) !important;
  padding-bottom: 7px;
  border-bottom: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.iphtheme-header__menu .current-menu-item > .wp-block-navigation-item__content::after,
.iphtheme-header__menu .current_page_item > .wp-block-navigation-item__content::after,
.iphtheme-header__menu .wp-block-navigation-item.current-menu-ancestor > .wp-block-navigation-item__content::after,
.iphtheme-header__menu .wp-block-navigation-item__content[aria-current="page"]::after {
  transform: scaleX(1);
}

.iphtheme-header__cta .wp-block-button__link {
  min-height: 50px;
  padding: 0 26px;
  border-radius: 8px;
  background: #FFE16D;
  color: #001a41;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(70, 90, 130, 0.22), 0 3px 0 rgba(80,66,0,0.35), inset 0 1px 0 rgba(255,255,255,.65);
}

.iphtheme-header__cta .wp-block-button__link:hover {
  background: #0d5bbc;
  color: #f9f9f9;
  box-shadow: 0 8px 18px rgba(40, 60, 100, 0.24), 0 2px 0 rgba(0, 37, 133, 0.35), inset 0 1px 0 rgba(255,255,255,.45);
}

/* ===== Footer pixel-fit (MD/footer) ===== */
.iphtheme-footer {
  background: linear-gradient(135deg, #0057B8 0%, #002585 100%);
  color: #fff;
}

.iphtheme-footer__main {
  padding: 80px 32px 52px;
}

.iphtheme-footer__grid {
  width: min(1400px, 92vw);
  margin: 0 auto;
  gap: 48px;
}

.iphtheme-footer__brand,
.iphtheme-footer__brand a {
  margin: 0 0 20px;
  color: #fff !important;
  font-family: "Newsreader", Georgia, serif;
  font-size: 32px;
  font-style: italic;
  text-decoration: none;
}

.iphtheme-footer__social {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}

.iphtheme-footer__social a {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: all .2s ease;
}

.iphtheme-footer__social a svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
}

.iphtheme-footer__social a:hover {
  color: #FFD700;
  border-color: rgba(255,225,109,.6);
  transform: translateY(-1px);
}

.iphtheme-footer p,
.iphtheme-footer li,
.iphtheme-footer a {
  color: rgba(255,255,255,.72);
  font-size: 16px;
  line-height: 1.65;
}

.iphtheme-footer ul a {
  text-decoration: none;
}

.iphtheme-footer h3 {
  margin: 0 0 18px;
  color: #FFD700;
  font-family: "Newsreader", Georgia, serif;
  font-size: 24px;
  text-decoration: none;
}

/* Remove heading underlines for footer section titles */
.iphtheme-footer .wp-block-column h3,
.iphtheme-footer .wp-block-column h3 a {
  text-decoration: none !important;
}

.iphtheme-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.iphtheme-footer li {
  margin: 0 0 10px;
}

.iphtheme-footer a:hover {
  color: #FFD700;
}

.iphtheme-footer__subscribe {
  display: grid;
  gap: 0;
  margin-top: 8px;
}

.iphtheme-footer__subscribe input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 0;
  border-radius: 8px 8px 0 0;
  min-height: 52px;
  padding: 0 14px;
}

.iphtheme-footer__subscribe input::placeholder {
  color: rgba(255,255,255,.45);
}

.iphtheme-footer__subscribe button {
  width: 100%;
  box-sizing: border-box;
  display: block;
  min-height: 52px;
  border: 0;
  border-radius: 0 0 8px 8px;
  padding: 0 22px;
  background: #FFD700;
  color: #002585;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
}

.iphtheme-footer__subscribe button:hover {
  background: #fff;
}

.iphtheme-footer__separator {
  width: min(1400px, 92vw);
  margin: 0 auto;
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 215, 0, .55) 18%, rgba(255, 255, 255, .78) 50%, rgba(255, 215, 0, .55) 82%, rgba(255, 255, 255, 0));
  box-shadow: 0 0 8px rgba(255, 255, 255, .2), 0 0 14px rgba(255, 215, 0, .14);
  opacity: .92;
}

.iphtheme-footer__copyright {
  width: min(1400px, 92vw);
  margin: 0 auto;
  padding: 28px 0;
  text-align: center;
}

.iphtheme-footer__copyright p {
  margin: 0;
  color: rgba(255,255,255,.5);
}

@media (max-width: 1024px) {
  .iphtheme-header__nav-inner {
    gap: 14px;
  }
  .iphtheme-header__menu {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }
  .iphtheme-header__menu .wp-block-navigation-item__content {
    font-size: 17px;
    letter-spacing: .01em;
  }
  .iphtheme-header.is-scrolled .iphtheme-header__brand,
  .iphtheme-header.is-scrolled .iphtheme-header__brand a {
    font-size: 24px;
  }
  .iphtheme-footer__grid {
    gap: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .iphtheme-header__nav,
  .iphtheme-header__menu .wp-block-navigation-item__content,
  .iphtheme-header__menu .wp-block-navigation-item__content::after,
  .iphtheme-header__menu .wp-block-navigation-item.has-child > .wp-block-navigation-item__content::before,
  .iphtheme-header__menu .wp-block-navigation-item .wp-block-navigation__submenu-container {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 720px) {
  .iphtheme-header__utility {
    display: none;
  }

  .iphtheme-header__utility + .iphtheme-header__nav::before {
    display: none;
  }

  .iphtheme-header__nav,
  .iphtheme-footer__main {
    padding-left: 18px;
    padding-right: 18px;
  }

  .iphtheme-header__nav {
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .iphtheme-header__nav-inner {
    display: grid !important;
    grid-template-columns: 40px 1fr 40px !important;
    grid-template-areas: "menu brand member";
    align-items: center !important;
    gap: 0;
    width: 100%;
    min-height: 40px;
    flex-wrap: nowrap !important;
  }

  .iphtheme-header.is-scrolled .iphtheme-header__nav {
    padding-top: 11px;
    padding-bottom: 7px;
  }

  .iphtheme-header.is-scrolled .iphtheme-header__nav-inner {
    min-height: 44px;
    align-items: center !important;
  }

  .iphtheme-header.is-scrolled .iphtheme-header__menu,
  .iphtheme-header.is-scrolled .iphtheme-header__brand,
  .iphtheme-header.is-scrolled .iphtheme-header__member-wrap {
    transform: translateY(3px);
  }

  .iphtheme-header__menu {
    grid-area: menu;
    order: 1;
    width: 100%;
    margin: 0 !important;
    justify-content: flex-start;
    justify-self: start;
    align-self: center;
  }

  .iphtheme-header__menu .wp-block-navigation__responsive-container-open,
  .iphtheme-header__menu .wp-block-navigation__responsive-container-close {
    color: #fff !important;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .iphtheme-header__menu .wp-block-navigation__responsive-container-open svg {
    display: none;
  }

  .iphtheme-header__menu .wp-block-navigation__responsive-container-open::before {
    content: "";
    width: 20px;
    height: 12px;
    background:
      linear-gradient(currentColor, currentColor) center 0 / 100% 2.5px no-repeat,
      linear-gradient(currentColor, currentColor) center 50% / 100% 2.5px no-repeat,
      linear-gradient(currentColor, currentColor) center 100% / 100% 2.5px no-repeat;
  }

  .iphtheme-header__menu .wp-block-navigation__responsive-container-close svg {
    fill: currentColor;
    width: 24px;
    height: 24px;
    display: block;
  }

  .iphtheme-header__menu .wp-block-navigation__responsive-container {
    background: #002585 !important;
    color: #fff;
  }

  .iphtheme-header__menu .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
    font-size: 20px;
    color: #fff !important;
  }

  .iphtheme-header__brand,
  .iphtheme-header__brand a {
    grid-area: brand;
    order: 2;
    justify-self: center;
    align-self: center;
    text-align: center;
    font-size: 24px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin: 0 !important;
  }

  .iphtheme-header__brand,
  .iphtheme-header__brand a,
  .iphtheme-header__brand .custom-logo-link {
    justify-self: center;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    line-height: 0;
  }

  .iphtheme-header__brand img,
  .iphtheme-header__brand a img,
  .iphtheme-header__brand .custom-logo,
  .iphtheme-header__nav .custom-logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-height: 37px;
    width: auto;
    height: auto;
    vertical-align: middle;
    transform: translateY(-1px);
  }

  .iphtheme-header__cta-wrap {
    display: none;
  }

  .iphtheme-header__member-wrap {
    grid-area: member;
    order: 3;
    justify-self: end;
    align-self: center;
    width: 100%;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .iphtheme-header__member-link {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
  }

  .iphtheme-header__member-icon {
    width: 27px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .iphtheme-header__member-icon svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
    display: block;
  }

  .ip-story-slide img {
    height: 320px;
  }
  .ip-story-arrow {
    width: 44px;
    font-size: 34px;
  }

  .iphtheme-footer__brand,
  .iphtheme-footer__brand a {
    font-size: 26px;
  }
  .iphtheme-footer__subscribe button {
    min-height: 58px;
  }
}

