/* -------------------------------------- */
/* 1. Hide floating Contact Us on mobile  */
/* -------------------------------------- */
@media (max-width: 768px) {
    .uagb-buttons__outer-wrap.uagb-block-499c3102 {
        display: none !important;
    }
}

/* ---------------------------------------------------- */
/* 2. Add space to mobile nav for optional Contact Us   */
/* ---------------------------------------------------- */
@media (max-width: 782px) {
    .wp-block-navigation__responsive-container-content::after {
        content: '';
        display: block;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin: 10px 0;
    }

    .wp-block-navigation__responsive-container-content::before {
        content: '';
        display: none;
    }

    .wp-block-navigation__responsive-container-content {
        padding-bottom: 20px;
    }
}

/* -------------------------------------------------------- */
/* 3. Position Weglot language selector below the logo      */
/* -------------------------------------------------------- */
@media (max-width: 768px) {
    /* Ensure logo container has relative position */
    .logo-container {
        position: relative !important;
        padding-bottom: 50px; /* Extra room for dropdown */
    }

    /* Position Weglot dropdown absolutely below logo */
    .logo-container .weglot-dropdown {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        z-index: 10 !important;
        transform: scale(0.85) !important;
        margin-top: 8px !important;
    }

    /* Style Weglot current language button */
    .weglot-dropdown .wgcurrent {
        padding: 6px 10px !important;
        font-size: 13px !important;
        min-width: auto !important;
        background: rgba(0, 0, 0, 0.05) !important;
        border-radius: 15px !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
    }

    /* Style Weglot dropdown list */
    .weglot-dropdown ul {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        min-width: 80px !important;
        background: rgba(255, 255, 255, 0.98) !important;
        border-radius: 8px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
        margin-top: 5px !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
    }
} 

/* gap ontop nav bar */
.main-runtext, 
.main-runtext marquee, 
.main-runtext .holder {
  margin: 0;
  padding: 0;
  height: 0;       /* if empty, collapse height */
  overflow: hidden; /* hide anything inside */
  line-height: 0;  /* remove line height spacing */
  border: none;    /* remove any border */
}

.wp-block-navigation .wp-block-navigation-item__content {
    text-decoration: none !important;
}

.attachment-post-thumbnail {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 15px !important;
    border: none !important;
}

.attachment-post-thumbnail[width="400"],
.attachment-post-thumbnail[width="394"],
.attachment-post-thumbnail[width="378"],
.attachment-post-thumbnail[width="360"],
.attachment-post-thumbnail[width="365"],
.attachment-post-thumbnail[width="316"],
.attachment-post-thumbnail[width="318"],
.attachment-post-thumbnail[width="256"],
.attachment-post-thumbnail[width="259"],
.attachment-post-thumbnail[width="296"],
.attachment-post-thumbnail[width="225"]{
    object-fit: contain !important;
}

table {
    font-family: 'Montserrat', sans-serif;
}

/* Notification bell position */
.wnbell-sticky-btn {
    position: fixed !important;
    top: 21px !important;
    right: 28px !important;
    z-index: 99999 !important;
}

/* Green translucent circle */
.wnbell-floating-toggle {
    background: rgba(31,157,122,0.10) !important;
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
}

/* Green bell icon */
.wnbell_icon {
    color: #1f9d7a !important;
    stroke: #1f9d7a !important;
    fill: none !important;
}

/* Green notification dot */
.wnbell-count {
    background: #1f9d7a !important;
}

.wnbell-floating-toggle {
    background-color: rgba(31,157,122,0.10) !important;
    background: rgba(31,157,122,0.10) !important;
}

.wnbell-sticky-btn {
    background: transparent !important;
}

svg.wnbell_icon {
    stroke: #1f9d7a !important;
    fill: none !important;
}

/* Make notification bell clean like mockup */
.wnbell-sticky-btn,
.wnbell-floating-toggle,
.wnbell-icon-badge-container,
.wnbell-dropdown-toggle {
    box-shadow: none !important;
    filter: none !important;
    border: none !important;
    outline: none !important;
}

.wnbell-floating-toggle {
    width: 48px !important;
    height: 48px !important;
    background: rgba(31,157,122,0.10) !important;
    background-color: rgba(31,157,122,0.10) !important;
    border-radius: 50% !important;
}

svg.wnbell_icon {
    width: 20px !important;
    height: 20px !important;
    color: #1f9d7a !important;
    fill: #1f9d7a !important;
    stroke: #1f9d7a !important;
}

/* DROPDOWN POSITION */
.wnbell-dropdown-box-wrap {
    position: fixed !important;
    top: 250px !important;
    right: 40px !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    z-index: 999999 !important;
}

/* FORCE WIDTH */
.wnbell-dropdown-box-wrap,
#wnbell-dropdown-box-id,
.wnbell-dropdown-box {
    width: 620px !important;
    min-width: 620px !important;
    max-width: 620px !important;
}

/* DROPDOWN CARD */
#wnbell-dropdown-box-id {
    background: #ffffff !important;
    border-radius: 22px !important;
    border: 1px solid rgba(31,157,122,0.08) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10) !important;
    overflow: hidden !important;
}

/* HEADER */
#wnbell_header {
    padding: 22px 32px 16px !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    border-bottom: 1px dashed #dfe7e3 !important;
}

/* NOTIFICATION TEXT */
#wnbell-dropdown-box-id a,
#wnbell-dropdown-box-id li,
#wnbell_empty_box_id {
    display: block !important;
    width: 100% !important;
    padding: 18px 32px !important;
    font-size: 16px !important;
    line-height: 1.45 !important;
    color: #1f2937 !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    box-sizing: border-box !important;
}

/* UNDERLINED CLICKABLE LINK */
#wnbell-dropdown-box-id a {
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
    text-decoration-thickness: 1.5px !important;
}

/* REMOVE GREEN ARROW */
#wnbell-dropdown-box-id a::after {
    content: none !important;
    display: none !important;
}

/* MOBILE */
@media (max-width: 768px) {
    .wnbell-dropdown-box-wrap,
    #wnbell-dropdown-box-id,
    .wnbell-dropdown-box {
        width: calc(100vw - 32px) !important;
        min-width: calc(100vw - 32px) !important;
        max-width: calc(100vw - 32px) !important;
    }
}

/* ALIGN NOTIFICATION TEXT WITH HEADER */
#wnbell-dropdown-box-id a,
#wnbell-dropdown-box-id li { 		 padding-left: 21px !important;
    padding-right: 40px !important;
}

/* REMOVE WEIRD TOP LEFT SHADOW/GLOW */
#wnbell-dropdown-box-id::before,
#wnbell-dropdown-box-id::after,
.wnbell-dropdown-box::before,
.wnbell-dropdown-box::after {
    display: none !important;
    content: none !important;
}

/* CLEAN CARD EDGES */
#wnbell-dropdown-box-id {
    box-shadow: 0 10px 30px rgba(0,0,0,0.10) !important;
    border-radius: 22px !important;
    overflow: hidden !important;
}

/* Standardize headings across redesigned pages */
body.home main h2, body.home main h3, .a4c-wp-page h2, .a4c-wp-page h3 {
  font-family: "Manrope", "DM Sans", Arial, sans-serif !important;
  font-style: normal !important;
  font-weight: 800 !important;
}


/* Standardized section-heading scale across redesigned pages */
body.home main h2, .a4c-wp-page h2 {
  font-size: clamp(35px, 4.6vw, 56px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.05em !important;
}

/* Standardized inner-page reveal motion — homepage intentionally excluded */
body:not(.home) main :is(
  .reveal,
  .afc-u-reveal,
  .afc-contact-reveal,
  .afc-consult-reveal,
  .afc-reveal,
  .afc-stagger > *
) {
  transition-property: opacity, transform !important;
  transition-duration: 0.7s !important;
  transition-timing-function: cubic-bezier(.2,.75,.25,1) !important;
}

body:not(.home) main :is(
  .reveal,
  .afc-u-reveal,
  .afc-contact-reveal,
  .afc-consult-reveal,
  .afc-reveal
):not(.visible):not(.is-visible),
body:not(.home) main .afc-stagger:not(.is-visible) > * {
  opacity: 0 !important;
  transform: translateY(22px) !important;
}

body:not(.home) main :is(
  .reveal.visible,
  .afc-u-reveal.is-visible,
  .afc-contact-reveal.is-visible,
  .afc-consult-reveal.is-visible,
  .afc-reveal.is-visible
),
body:not(.home) main .afc-stagger.is-visible > * {
  opacity: 1 !important;
  transform: none !important;
}

/* Add the same reveal style to the two inner pages without observer classes */
@keyframes afc-inner-page-reveal {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

body:not(.home) :is(.afc-guardianship-page,.afc-highschool-page) main > section:first-child {
  animation: afc-inner-page-reveal 0.7s cubic-bezier(.2,.75,.25,1) both;
}

@supports (animation-timeline: view()) {
  body:not(.home) :is(.afc-guardianship-page,.afc-highschool-page) main > section:not(:first-child) {
    animation: afc-inner-page-reveal 1ms cubic-bezier(.2,.75,.25,1) both;
    animation-timeline: view();
    animation-range: entry 5% cover 28%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.home) main :is(
    .reveal,
    .afc-u-reveal,
    .afc-contact-reveal,
    .afc-consult-reveal,
    .afc-reveal,
    .afc-stagger > *
  ),
  body:not(.home) :is(.afc-guardianship-page,.afc-highschool-page) main > section {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}



/* Fix FAQ question buttons staying full-width in the block layout. */
.afc-home-page .faq-item > .faq-question { grid-column: 1 / -1; width: 100%; min-width: 0; }
.afc-home-page .faq-item > .faq-question > .wp-block-button__link { display: grid; grid-column: 1 / -1; grid-template-columns: 50px minmax(0, 1fr); width: 100%; min-width: 0; text-align: left; }
.afc-home-page .faq-item > .faq-question > .wp-block-button__link span:last-child { min-width: 0; word-break: normal; overflow-wrap: normal; }


/* 2026-09-14 — unified inner-page navigation and ranking page standardization */
body:not(.home) .wp-site-blocks > header.wp-block-template-part {
  display: none !important;
}

body.page-id-8171 .afc-uni-page {
  --deep:#102f26;
  --green:#1e8c6f;
  --jade:#6caf9b;
  --gold:#efc75e;
  --cream:#f6f2ea;
  --soft:#e5eeeb;
  --white:#fff;
  --ink:#0d211a;
  --muted:#53645d;
}
body.page-id-8171 .afc-uni-shell {
  width:min(1080px,calc(100% - 44px));
}
body.page-id-8171 .afc-uni-opening {
  min-height:0 !important;
  padding:46px 0 0 !important;
  background:#fff !important;
  background-image:none !important;
}
body.page-id-8171 .afc-uni-opening > .afc-uni-shell {
  position:relative;
  width:100% !important;
  max-width:none !important;
  height:min(680px,82vh);
  min-height:540px;
  overflow:hidden;
  background-color:#061b14;
  background-image:linear-gradient(90deg,rgba(5,27,20,.94) 0%,rgba(5,27,20,.64) 48%,rgba(5,27,20,.14) 82%),linear-gradient(0deg,rgba(5,27,20,.45),transparent 45%),url('https://applyforchina.com/wp-content/uploads/2024/11/everything-china-bg.jpg');
  background-position:center,center,center 48%;
  background-size:cover;
  background-repeat:no-repeat;
}
body.page-id-8171 .afc-uni-hero {
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  justify-content:center;
  width:min(84vw,1200px);
  max-width:1200px;
  height:100%;
  margin:0 auto;
  padding:46px 0 57px;
}
body.page-id-8171 .afc-uni-kicker {
  align-self:flex-start;
  display:flex;
  width:max-content;
  align-items:center;
  gap:11px;
  margin:0;
  padding:9px 12px;
  border:1px solid rgba(255,255,255,.5);
  background:rgba(9,34,26,.3);
  color:#fff;
  backdrop-filter:blur(8px);
  font:500 10px/1 "DM Mono",monospace;
  letter-spacing:.14em;
  text-transform:uppercase;
}
body.page-id-8171 .afc-uni-kicker:before {
  width:9px;
  height:9px;
  background:#f4c956;
  box-shadow:0 0 0 5px rgba(244,201,86,.18);
}
body.page-id-8171 .afc-uni-page h1 {
  max-width:820px;
  margin:22px 0 17px;
  color:#1e8c6f;
  font:800 clamp(46px,5vw,76px)/.92 "Manrope","DM Sans",Arial,sans-serif;
  letter-spacing:-.068em;
}
body.page-id-8171 .afc-uni-page h1 em {
  color:#6caf9b;
  font:500 italic 1em/.92 Georgia,"Times New Roman",serif;
  letter-spacing:-.045em;
}
body.page-id-8171 .afc-uni-summary {
  max-width:600px;
  margin:0 0 15px;
  color:rgba(255,255,255,.82);
  font:500 15px/1.55 "DM Sans",sans-serif;
}
body.page-id-8171 .afc-uni-actions {
  display:flex;
  flex-direction:row;
  flex-wrap:nowrap;
  align-items:center;
  gap:24px;
  margin-top:19px;
}
body.page-id-8171 .afc-uni-actions > p { margin:0; }
body.page-id-8171 .afc-uni-button {
  min-height:54px;
  padding:0 25px;
  border:0;
  background:#fff;
  color:#102f26;
  font:800 16px/1 "Manrope","DM Sans",Arial,sans-serif;
}
body.page-id-8171 .afc-uni-button:hover { background:#efc75e; color:#102f26; }
body.page-id-8171 .afc-uni-meta {
  color:rgba(255,255,255,.78);
  font:700 10px/1.45 "DM Mono",monospace;
  letter-spacing:.13em;
  text-transform:uppercase;
}
body.page-id-8171 .afc-uni-subnav {
  height:42px;
  min-height:42px;
  border:0;
  background:#0d211a;
}
body.page-id-8171 .afc-uni-subnav .afc-uni-shell {
  width:auto;
  max-width:100%;
  justify-content:center;
  flex-wrap:nowrap;
  overflow-x:auto;
  scrollbar-width:none;
}
body.page-id-8171 .afc-uni-subnav .afc-uni-shell::-webkit-scrollbar { display:none; }
body.page-id-8171 .afc-uni-subnav a {
  flex:0 0 auto;
  padding:16px 20px;
  color:#fff;
  font:500 10px/1 "DM Mono",monospace;
  letter-spacing:.16em;
}
body.page-id-8171 .afc-uni-subnav a+a:before { color:#efc75e; }
body.page-id-8171 .afc-uni-section { padding:72px 0 76px; }
body.page-id-8171 .afc-uni-intro { margin-bottom:48px; }

@media (max-width:800px) {
  body.page-id-8171 .afc-uni-section { padding:60px 0 64px; }
}
@media (max-width:680px) {
  body.page-id-8171 .afc-uni-opening { padding-top:28px !important; }
  body.page-id-8171 .afc-uni-opening > .afc-uni-shell { height:720px; min-height:640px; }
  body.page-id-8171 .afc-uni-hero { justify-content:flex-end; width:calc(100% - 36px); padding:120px 0 88px; }
  body.page-id-8171 .afc-uni-page h1 { font-size:50px; line-height:.92; }
  body.page-id-8171 .afc-uni-actions { flex-direction:column; align-items:stretch; gap:14px; }
  body.page-id-8171 .afc-uni-subnav .afc-uni-shell { justify-content:flex-start; }
  body.page-id-8171 .afc-uni-section { padding:52px 0 56px; }
}