/*
 * Korean Pathway brand layer.
 * Loaded after main.css so it only re-points the palette tokens the template
 * already uses -- no layout, spacing or breakpoint rules are touched, which
 * keeps the responsive behaviour of the original template intact.
 */
:root {
  --theme: #E31E24;   /* Korean Pathway red   */
  --theme-2: #0B2154; /* Korean Pathway navy  */
  --header: #0B2154;
  --bg-2: #0B2154;
  --text-2: #0B2154;
}

/* The template hard-codes the demo blue in a few gradients and borders. */
.header-top,
.footer-section,
.footer-bottom {
  background-color: var(--theme-2);
}

.footer-cta {
  padding: 0 20px 48px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
}

.footer-cta h2 {
  max-width: 720px;
  margin: 0 auto 12px;
  color: #fff;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.15;
  text-transform: none;
}

.footer-cta p {
  max-width: 620px;
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, .78);
}

.footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.footer-cta-actions .theme-btn {
  background: #fff;
  color: var(--header);
  border-color: #fff;
}

.footer-cta-actions .theme-btn:hover {
  background: var(--theme);
  color: #fff;
  border-color: var(--theme);
}

.footer-cta-actions .theme-btn.whatsapp {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
}

.footer-cta-actions .theme-btn.call {
  background: var(--theme);
  color: #fff;
  border-color: var(--theme);
}

.footer-list-item > a {
  text-align: center;
}

.footer-list-item > a::after {
  content: "Study in South Korea with Confidence\A Official consultant for South Korean universities";
  white-space: pre-line;
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  line-height: 1.5;
  text-transform: none;
}

/* Shared compact footer: contact information replaces the duplicated header
 * navigation, and the legal line remains part of the same navy surface.
 * Matches the hero card's edge margin/radius (.hero-1 in main.css) so the
 * footer reads as one rounded card with visible page background on the
 * sides, not a full-bleed bar. overflow:hidden clips the nested
 * .footer-bottom (injected inside this element at render time, see
 * visaway_render_static_content()) to the same rounded corners instead of
 * letting it show a second, separately-cornered box. */
.footer-section {
  margin: 0 40px;
  border-radius: 32px;
  overflow: hidden;
  background-image: none !important;
}
@media (max-width: 1399px) {
  .footer-section {
    margin: 0 30px;
  }
}
@media (max-width: 575px) {
  .footer-section {
    margin: 0 15px;
  }
}

.footer-section .footer-wrapper .footer-item {
  padding: 56px 0 30px;
}

.footer-section .footer-wrapper .footer-item .footer-list-item {
  display: grid;
  grid-template-columns: minmax(150px, .8fr) minmax(260px, 1.4fr) auto;
  align-items: center;
  gap: 36px;
  margin-top: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.footer-section .footer-contact {
  text-align: left;
}

.footer-section .footer-contact h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 18px;
  text-transform: none;
}

.footer-section .footer-contact-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-section .footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: rgba(255, 255, 255, .76);
  font-size: 13px;
  line-height: 1.45;
}

.footer-section .footer-contact-list i {
  flex: 0 0 15px;
  margin-top: 3px;
  color: #fff;
}

.footer-section .footer-contact-list a {
  color: #fff;
}

.footer-section .footer-wrapper .footer-item .footer-list-item > .social-icon {
  justify-content: flex-end;
}

.footer-section .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .18);
  background: transparent;
  padding: 16px 0 18px;
}

/* Preserve consultant and about photography proportions. The source theme's
 * height:100% rule stretches the 4:3 consultant portrait into its column. */
.about-wrapper .about-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.contact-us-section-3 .content h6,
.contact-us-section-3 .content h6 a,
.footer-section .footer-item .text a {
  text-transform: none !important;
}

.map-items {
  position: relative;
}

.map-open-link {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(11, 33, 84, .14);
  border-radius: 999px;
  background: #fff;
  color: var(--header);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(11, 33, 84, .16);
  transition: all .3s ease;
}

.map-open-link:hover {
  background: var(--theme);
  border-color: var(--theme);
  color: #fff;
}

/* University listing cards: keep the logo frame and action row consistent
 * when a partner name wraps onto two lines. */
.visa-provide-box {
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

.visa-provide-box .visa-top-item {
  min-height: 90px;
  align-items: flex-start;
}

.visa-provide-box .visa-top-item .visa-left .icon {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 14px;
  background: #f7f9fc;
}

.visa-provide-box .visa-top-item .visa-left .icon img {
  width: auto;
  height: auto;
  max-width: 90%;
  max-height: 52px;
  object-fit: contain;
}

.visa-provide-box .visa-top-item > .theme-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.visa-provide-box .visa-list-item {
  margin-top: auto;
}

.university-history-block {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  align-items: start;
  margin: 30px 0;
  padding: 22px;
  border-left: 3px solid var(--theme);
  border-radius: 12px;
  background: #f7f9fc;
}

.university-history-block h5,
.university-history-block p {
  margin: 0;
}

.university-history-block h5 {
  margin-bottom: 8px;
  color: var(--header);
}

.history-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.history-stat strong {
  color: var(--theme);
  font-size: 32px;
}

.history-stat span {
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.country-details-sideber .sidebar-title {
  margin-bottom: 18px;
  color: var(--header);
}

.country-details-sideber .icon-box-item {
  text-decoration: none;
}

.country-details-sideber .icon-box-item .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.country-details-sideber .icon-box-item .icon img {
  width: auto;
  height: auto;
  max-width: 90%;
  max-height: 42px;
  object-fit: contain;
}

.country-details-sideber .visa-contact-box {
  background-image: none !important;
  background-color: var(--header) !important;
}

/* University profile gallery: keep both photos visually balanced. */
.country-details-wrapper .country-details-post .country-details-content .thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
}

.country-details-wrapper .country-details-post .country-details-content .thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 575px) {
  .university-history-block {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .country-details-wrapper .country-details-post .country-details-content .text {
    font-size: 26px;
    line-height: 1.2;
  }

  .country-details-wrapper .country-details-post .country-details-content .visa-list-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0 0 24px;
  }

  .country-details-wrapper .country-details-post .country-details-content .visa-list-2 li {
    min-width: 0;
    font-size: 16px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
}

.contact-us-section-3 .contact-icon-item .icon {
  flex: 0 0 64px;
}

/* Contact cards: keep the four desktop cards equal and aligned. */
.contact-us-section-3 > .container > .row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
}

.contact-us-section-3 > .container > .row > * {
  width: auto;
  max-width: none;
  padding: 0;
}

.contact-us-section-3 .contact-icon-item {
  width: 100%;
  min-height: 192px;
  box-sizing: border-box;
  align-items: flex-start;
}

.contact-us-section-3 .contact-icon-item .icon {
  width: 64px;
  height: 64px;
  min-width: 64px;
  flex: 0 0 64px;
}

.contact-us-section-3 .contact-icon-item .content {
  min-width: 0;
}

@media (max-width: 991px) {
  .contact-us-section-3 > .container > .row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .contact-us-section-3 > .container > .row {
    grid-template-columns: 1fr;
  }
}

.contact-us-section-3 .contact-icon-item .content h6 {
  overflow-wrap: anywhere;
}

/* The source demo's custom cursor appears as a stray red/blue dot when the
 * pointer rests over the top bar. Keep the normal browser cursor so the
 * contact strip stays visually clean. */
.mouseCursor {
  display: none !important;
}

/* Korean Pathway university trust strip. */
.university-trust-section {
  padding: 54px 0 34px;
  background: #f7f9fc;
}

.university-trust-heading {
  max-width: 680px;
  margin: 0 auto 30px;
  text-align: center;
}

.university-trust-heading .sub-title {
  display: block;
  margin-bottom: 8px;
}

.university-trust-heading h2 {
  margin: 0;
  color: var(--header);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.2;
}

.university-trust-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.university-trust-list li {
  display: flex;
  min-width: 0;
  min-height: 76px;
  align-items: center;
  justify-content: center;
}

.university-trust-list li img {
  display: block;
  width: auto;
  height: 56px;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 991px) {
  .university-trust-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .university-trust-section {
    padding: 38px 14px 28px;
  }

  .university-trust-heading {
    margin-bottom: 20px;
  }

  .university-trust-heading h2 {
    font-size: 25px;
  }

  .university-trust-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 16px;
    column-gap: 16px;
  }

  .university-trust-list li {
    height: 84px;
    min-height: 84px;
    align-items: center;
    justify-content: center;
  }

  .university-trust-list li img {
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 56px;
    object-fit: contain;
  }
}

@media (prefers-reduced-motion: reduce) {
  .university-trust-list li img { transition: none; }
}

@media (min-width: 1400px) {
  .header-top-wrapper .header-left .list {
    gap: clamp(40px, 3.2vw, 64px);
  }

  .header-top-wrapper .header-left .list li {
    white-space: nowrap;
  }
}

/* Keep the expanded desktop navigation on one row, as in the source
 * template. The branded menu has more items than the demo menu, so the
 * template's inline-block items can otherwise wrap the final link. */
@media (min-width: 1200px) {
  .header-1 .header-main {
    flex-wrap: nowrap;
  }

  .header-1 .header-left {
    flex: 1 1 auto;
    min-width: 0;
    gap: clamp(28px, 4vw, 60px);
  }

  .header-1 .mean__menu-wrapper {
    flex: 1 1 auto;
    min-width: 0;
  }

  .header-1 .main-menu nav > ul {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: clamp(14px, 1.8vw, 32px);
  }

  .header-1 .main-menu nav > ul > li {
    flex: 0 0 auto;
    margin-inline-end: 0;
    white-space: nowrap;
  }

  .header-1 .header-right {
    flex: 0 0 auto;
  }

  .header-1 .header-right .header-call-item {
    gap: clamp(20px, 3vw, 48px);
  }

  .header-1 .header-left {
    gap: 20px;
  }

  .header-1 .main-menu nav > ul {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start;
    gap: 14px;
    width: max-content;
    white-space: nowrap;
  }

  .header-1 .main-menu nav > ul > li {
    display: block !important;
    margin-inline-end: 0 !important;
    flex: 0 0 auto;
  }

  .header-1 .main-menu nav > ul > li > a {
    padding-block: 16px;
    font-size: 14px !important;
  }

  .header-1 .header-right .header-call-item {
    gap: 16px;
  }
}

/* Keep the full conversion navigation and consultation CTA on one row at
 * compact desktop widths where the original template hid the CTA and wrapped
 * the menu. */
@media (min-width: 1200px) and (max-width: 1399px) {
  .header-1 .container-fluid {
    padding-inline: 24px;
  }

  .header-1 .header-left {
    gap: 18px;
  }

  .header-1 .main-menu nav > ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start;
    gap: 10px;
    white-space: nowrap;
    width: max-content;
  }

  .header-1 nav#mobile-menu > ul > li {
    display: block !important;
    margin-inline-end: 0 !important;
  }

  .header-1 .main-menu nav > ul > li > a {
    font-size: 12px !important;
    padding-block: 12px;
  }

  .header-1 .main-menu nav > ul > li {
    margin-inline-end: 0 !important;
  }

  .header-1 .header-right .header-call-item {
    gap: 12px;
  }

  .header-1 .header-right .header-call-item .theme-btn {
    display: inline-flex !important;
    align-items: center;
    font-size: 11px;
    padding: 3px 3px 3px 12px;
    white-space: nowrap;
  }

  .header-1 .header-right .header-call-item .theme-btn i {
    width: 34px;
    height: 34px;
    line-height: 34px;
    margin-left: 8px;
  }
}

/* Shared mobile hardening for every imported page. */
@media (max-width: 1199px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .header-1 .container-fluid,
  .header-top-section .container-fluid {
    padding-inline: 15px;
  }

  .header-1 .header-main {
    min-height: 68px;
    padding-block: 10px;
  }

  .header-1 .logo img,
  .header-1 .header-logo-2 {
    width: 175px;
    max-width: 175px;
    height: auto;
  }

  .hero-section {
    width: calc(100% - 30px);
    margin-inline: 15px;
  }

  .hero-section .container-fluid {
    padding-inline: 15px;
  }

  .hero-content h1 {
    overflow-wrap: anywhere;
  }

  .hero-button {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero-button .theme-btn {
    max-width: 100%;
  }

  .hero-image img,
  .about-image img,
  .service-image img,
  .country-image img,
  .news-image img {
    max-width: 100%;
    height: auto;
  }

  .offcanvas__info {
    max-width: min(400px, 92vw);
  }

  .offcanvas__wrapper {
    max-width: 100%;
  }
}

@media (max-width: 575px) {
  .header-1 .header-main {
    min-height: 72px;
    padding-block: 12px;
  }

  .header-1 .logo img,
  .header-1 .header-logo-2 {
    width: 175px;
    max-width: 175px;
  }

  .hero-content h1 {
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.08;
  }

  .hero-content p {
    font-size: 16px;
    line-height: 1.5;
  }

  .hero-button .theme-btn {
    width: 100%;
  }

  .preloader .animation-preloader .txt-loading {
    max-width: 92vw;
    overflow: hidden;
    white-space: nowrap;
    font-size: 2em;
  }

  /* The branded footer uses a navy background; the source token also made
   * the copyright text navy, leaving only the red company name visible.
   * Extra bottom padding keeps the copyright line clear of the fixed
   * WhatsApp button (bottom:118px, 48px tall - see visaway_whatsapp_button())
   * once the page is scrolled all the way down and can't scroll further to
   * reveal space below the footer. */
  .footer-bottom {
    padding: 16px 12px 84px;
  }

  .footer-bottom .footer-wrapper {
    justify-content: center;
    gap: 8px;
  }

  .footer-bottom .footer-wrapper p,
  .footer-bottom .footer-wrapper .bottom-list li a {
    color: #fff !important;
    margin-bottom: 0;
  }

  .footer-bottom .footer-wrapper .bottom-list {
    justify-content: center;
    gap: 8px 16px;
  }

  .footer-section .footer-wrapper .footer-item {
    padding: 48px 0 28px;
  }

  .footer-cta {
    padding: 0 8px 30px;
    border-bottom-color: rgba(255, 255, 255, .3);
  }

  .footer-cta h2 {
    font-size: 26px;
  }

  .footer-cta p {
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.5;
  }

  .footer-cta-actions {
    gap: 10px;
  }

  .footer-cta-actions .theme-btn {
    font-size: 12px;
  }

  .footer-section .footer-wrapper .footer-item .footer-list-item {
    margin-top: 28px;
    padding: 24px 12px 8px;
    border-top: 1px solid rgba(255, 255, 255, .22);
    background: transparent;
    border-radius: 0;
    justify-content: center;
  }

  .footer-section .footer-wrapper .footer-item .footer-list-item .footer-list {
    justify-content: center;
    text-align: center;
  }

  .footer-section .footer-wrapper .footer-item .footer-list-item .social-icon {
    justify-content: center;
    width: 100%;
  }
}

/* Korean Pathway hero treatment. */
.hero-korea {
  position: relative;
  overflow: hidden;
  background: #0A2A66 !important;
}

.hero-korea-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 42, 102, .92) 0%, rgba(10, 42, 102, .78) 52%, rgba(10, 42, 102, .88) 100%);
}

.hero-korea > .container-fluid {
  position: relative;
  z-index: 1;
}

.hero-korea > .container-fluid > .row {
  align-items: stretch !important;
}

.hero-korea > .container-fluid > .row > .col-lg-6 {
  display: flex;
  align-items: center;
}

.hero-korea .hero-slider,
.hero-korea .image-slider {
  width: 100%;
}

.hero-korea > .container-fluid > .row > .col-lg-6:last-child {
  position: relative;
  align-items: stretch;
}

.hero-korea > .container-fluid > .row > .col-lg-6:last-child .image-slider {
  flex: 1 1 auto;
  height: 100%;
  min-height: 420px;
}

.hero-korea .hero-slider {
  display: flex;
  align-items: center;
}

.hero-korea .hero-slider .swiper-wrapper {
  align-items: center;
}

.hero-korea .hero-content h1,
.hero-korea .hero-content p {
  text-transform: none;
}

.hero-korea .hero-content h1 {
  max-width: 720px;
}

.hero-script-accent {
  display: block;
  margin: 12px 0 18px;
  color: rgba(255, 255, 255, .88);
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 500;
}

.hero-korea .hero-button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 14px;
}

.hero-korea .hero-content .hero-button .theme-btn {
  font-size: 13px;
  padding-left: 14px;
}

.hero-korea .hero-content .hero-button .theme-btn i {
  width: 40px;
  height: 40px;
  line-height: 40px;
  margin-left: 10px;
}

.hero-korea .hero-content .hero-button .theme-btn.whatsapp {
  background: #25D366;
  color: #fff !important;
  border-color: #25D366 !important;
}

.hero-korea .hero-content .hero-button .theme-btn.whatsapp i {
  background: #fff !important;
  color: #168b43 !important;
}

.hero-korea .hero-content .hero-button .theme-btn.whatsapp:hover {
  background: #1da851;
  border-color: #1da851;
}

.hero-korea .hero-content .hero-button .theme-btn.style-pill {
  min-width: 0;
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  background: #fff;
  color: #0a2a66;
  border-color: #fff;
}

.hero-korea .hero-content .hero-button .theme-btn.style-pill:hover {
  background: #ed1c24;
  color: #fff;
  border-color: #ed1c24;
}

.hero-korea .hero-content .hero-button .theme-btn.whatsapp.style-sm {
  min-width: 0;
  width: auto;
  display: inline-flex;
  align-items: center;
  background: #25d366;
  color: #fff !important;
  border-color: #25d366 !important;
}

.hero-korea .hero-content .hero-button .theme-btn.whatsapp.style-sm:hover {
  background: #1da851;
  border-color: #1da851 !important;
}

@media (min-width: 1200px) {
  .hero-korea {
    padding-top: 72px;
    padding-bottom: 120px;
  }
}

@media (max-width: 1199px) {
  .hero-korea {
    padding-top: 112px;
    padding-bottom: 112px;
  }
}

@media (max-width: 991px) {
  .hero-korea {
    padding-top: 96px;
    padding-bottom: 38px;
  }
}

@media (max-width: 575px) {
  .hero-korea {
    padding-top: 65px;
    padding-bottom: 28px;
  }

  .hero-korea .hero-content .hero-button .theme-btn.style-pill {
    min-width: 0;
    width: auto;
  }

  .hero-korea .hero-content .hero-button {
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 28px;
  }

  .hero-korea .hero-content .hero-button .theme-btn.whatsapp.style-sm {
    width: auto;
  }
}

.hero-korea .hero-image {
  overflow: hidden;
  border-radius: 18px;
  height: 100%;
  min-height: 420px;
  margin-top: 0;
  margin-right: 0;
}

.hero-korea .hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-korea .image-slider {
  position: relative;
  overflow: hidden;
}

.hero-korea .image-slider .swiper-wrapper,
.hero-korea .image-slider .swiper-slide {
  height: 100%;
}

@media (max-width: 767px) {
  .hero-korea > .container-fluid > .row {
    align-items: center !important;
  }

  .hero-korea > .container-fluid > .row > .col-lg-6 {
    display: block;
  }

  .hero-korea .hero-slider {
    display: block;
  }

  .hero-korea .hero-image {
    height: 260px;
    min-height: 260px;
  }

  .hero-korea > .container-fluid > .row > .col-lg-6:last-child .image-slider {
    height: 260px !important;
    min-height: 260px;
  }

  .hero-korea .image-slider .swiper-wrapper,
  .hero-korea .image-slider .swiper-slide {
    height: 260px !important;
  }

  .hero-korea .hero-image img {
    min-height: 260px;
  }

  /* Keep the two-column desktop hero from retaining a wide Swiper track on
   * narrow phones. Without these constraints text and CTA buttons are clipped
   * or overlap outside the viewport. */
  .hero-korea > .container-fluid,
  .hero-korea > .container-fluid > .row,
  .hero-korea > .container-fluid > .row > .col-lg-6,
  .hero-korea .hero-slider,
  .hero-korea .hero-slider .swiper-wrapper,
  .hero-korea .hero-slider .swiper-slide,
  .hero-korea .hero-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  /* On small screens show one stable hero slide. Swiper's desktop inline
   * width/translate values otherwise leave the first slide partially offscreen
   * during initialization on slower mobile browsers.
   *
   * .image-slider is deliberately NOT included here. These declarations are
   * !important, so they beat the inline transform Swiper writes each frame,
   * which froze the four-photo hero slider on slide 1 for every phone user -
   * the same "meant to actually rotate" carve-out the >=768px block makes.
   * The offscreen-during-init problem it was guarding against is handled by
   * the width constraints above plus the swiper.update() nudge in
   * visaway_assets(), which re-measures once layout has settled. */
  .hero-korea .hero-slider .swiper-wrapper {
    transform: none !important;
    display: block !important;
  }

  .hero-korea .hero-slider .swiper-slide,
  .hero-korea .image-slider .swiper-slide {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero-korea .hero-slider .swiper-slide {
    transform: none !important;
  }

  .hero-korea .hero-slider .swiper-slide:not(:first-child) {
    display: none !important;
  }

  /* Keep the rotating slider clipped to its box now that it can translate. */
  .hero-korea .image-slider {
    overflow: hidden;
  }

  .hero-korea .image-slider .swiper-wrapper {
    display: flex !important;
  }

  .hero-korea > .container-fluid > .row > .col-lg-6 {
    padding-inline: 0 !important;
  }

  .hero-korea .hero-content h1,
  .hero-korea .hero-content p,
  .hero-korea .hero-content .hero-script-accent {
    max-width: 100% !important;
    overflow-wrap: anywhere;
  }

  .hero-korea .hero-content .hero-button {
    width: 100%;
    align-items: flex-start;
  }

  .hero-korea .hero-content .hero-button .theme-btn,
  .hero-korea .hero-content .hero-button .theme-btn.whatsapp.style-sm,
  .hero-korea .hero-content .hero-button .theme-btn.style-pill {
    width: auto !important;
    max-width: 100%;
    box-sizing: border-box;
    margin-inline: 0;
  }

  .hero-korea .hero-content .hero-button .theme-btn i {
    flex: 0 0 40px;
  }

}

/* ===== Gallery Page ===== */
.gallery-category-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 30px;
}

.gallery-item {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item .gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0));
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.gallery-video-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.gallery-video-wrap video {
  width: 100%;
  display: block;
  background: #000;
}

/* ===== Success Stories Cards ===== */
.success-story-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  padding: 24px;
  height: 100%;
  text-align: center;
}

.success-story-card .student-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  border: 3px solid #f1f1f1;
}

.success-story-card .student-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.success-story-card h5 {
  margin-bottom: 2px;
}

.success-story-card .degree {
  display: block;
  font-size: 13px;
  color: #777;
  margin-bottom: 12px;
}

.success-story-card .placeholder-quote {
  font-size: 14px;
  font-style: italic;
  color: #999;
  border: 1px dashed #ccc;
  border-radius: 8px;
  padding: 10px 12px;
}

.success-story-card .placeholder-quote .tag {
  display: block;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #c0392b;
  margin-bottom: 4px;
  font-weight: 700;
}

/* ===== Scholarship Cards (pricing.html) ===== */
.scholarship-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  padding: 32px;
  height: 100%;
}

.scholarship-card h3 {
  margin-bottom: 6px;
}

.scholarship-card .coverage-summary {
  color: #555;
  margin-bottom: 18px;
}

.scholarship-card .scholarship-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.scholarship-card .scholarship-list li {
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
}

.scholarship-card .scholarship-list li i {
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--theme-color, #d92228);
  font-size: 13px;
}

.scholarship-card .scholarship-list li.placeholder-note {
  color: #b0862a;
  font-style: italic;
  font-size: 13px;
}

@media (max-width: 991px) {
  .footer-section .footer-wrapper .footer-item {
    padding: 36px 0 24px;
  }

  .footer-section .footer-wrapper .footer-item .footer-list-item {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 20px;
    text-align: center;
  }

  .footer-section .footer-contact {
    text-align: center;
  }

  .footer-section .footer-contact-list {
    justify-items: center;
  }

  .footer-section .footer-contact-list li {
    justify-content: center;
    text-align: left;
  }

  .footer-section .footer-wrapper .footer-item .footer-list-item > .social-icon {
    justify-content: center;
  }

  .footer-section .footer-bottom {
    /* Extra bottom padding keeps the copyright line clear of the fixed
       WhatsApp button once the page can't scroll further - see the
       matching comment on the base .footer-bottom rule above. */
    padding: 14px 12px 84px;
  }
}

/* ===== Homepage photo gallery slideshow (replaces the old stock video-bg) ===== */
.video-bg.photo-slideshow {
  position: relative;
  overflow: hidden;
}

.video-bg.photo-slideshow .slideshow-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.video-bg.photo-slideshow .slideshow-img.active {
  opacity: 1;
}

/* ===== Mobile header: keep the hamburger fully on-screen =====
 * The search icon (removed from markup) used to sit next to the hamburger
 * inside .header-call-item, which still carries a 60px gap meant for
 * desktop spacing between 3 items. With only the hamburger left as a
 * visible child below the "Book Free Consultation" pill's 1399px
 * display:none breakpoint, that gap has nothing to apply between - but
 * tightening it here removes any doubt and keeps the toggle from ever
 * being pushed toward/past the edge of narrow phones. */
@media (max-width: 767px) {
  .header-1 .header-right .header-call-item {
    gap: 12px;
  }

  .header-1 .header-right {
    flex-shrink: 0;
  }

  .header__hamburger,
  .header-1 .header-right .sidebar__toggle {
    flex-shrink: 0;
  }
}

/* ===== Premium navigation and footer finish =====
 * These rules deliberately live at the end of the brand layer: the imported
 * theme remains intact while the two always-visible brand touchpoints get a
 * more considered visual hierarchy. */
.header-1 {
  position: relative;
  background: rgba(255, 255, 255, .98);
  border-top: 5px solid var(--theme-2);
  box-shadow: 0 1px 0 rgba(11, 33, 84, .09), 0 10px 28px rgba(11, 33, 84, .05);
}

.header-1::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: min(18vw, 340px);
  height: 5px;
  background: var(--theme);
}

.header-1 .header-main {
  min-height: 78px;
  padding-block: 9px;
}

.header-1 .logo img,
.header-1 .header-logo-2 {
  display: block;
  width: 154px;
  max-width: 154px;
  height: auto;
}

.header-1 .main-menu nav > ul > li > a {
  padding-block: 18px;
  color: var(--header);
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: .015em;
}

.header-1 .main-menu nav > ul > li > a::before {
  position: absolute;
  right: 0;
  bottom: 11px;
  left: 0;
  width: 0;
  height: 2px;
  margin: auto;
  content: "";
  background: var(--theme);
  border-radius: 2px;
  transition: width .25s ease;
}

.header-1 .main-menu nav > ul > li > a:hover::before,
.header-1 .main-menu nav > ul > li.current-menu-item > a::before,
.header-1 .main-menu nav > ul > li.current_page_item > a::before {
  width: 18px;
}

.header-1 .header-right .header-call-item {
  gap: 14px;
}

.header-1 .header-right .header-call-item .theme-btn {
  display: inline-flex !important;
  align-items: center;
  min-height: 48px;
  padding: 4px 5px 4px 19px;
  border: 1px solid rgba(11, 33, 84, .12);
  border-radius: 999px;
  background: #fff;
  color: var(--header);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .015em;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(11, 33, 84, .08);
}

.header-1 .header-right .header-call-item .theme-btn i {
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin-left: 13px;
  place-items: center;
  border-radius: 50%;
  background: var(--theme);
  color: #fff;
  transition: transform .25s ease, background-color .25s ease;
}

.header-1 .header-right .header-call-item .theme-btn:hover {
  border-color: var(--theme);
  background: var(--theme);
  color: #fff;
  box-shadow: 0 10px 22px rgba(227, 30, 36, .22);
}

.header-1 .header-right .header-call-item .theme-btn:hover i {
  transform: translateX(2px);
  background: var(--theme-2);
}

.header-1 .header-right .sidebar__toggle {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(11, 33, 84, .12);
  border-radius: 14px;
  background: #f7f9fd;
  color: var(--header);
  font-size: 18px;
  transition: color .25s ease, background-color .25s ease, transform .25s ease;
}

.header-1 .header-right .sidebar__toggle:hover {
  transform: translateY(-2px);
  background: var(--theme-2);
  color: #fff;
}

.footer-section {
  position: relative;
  margin: 48px 40px 0;
  border-radius: 30px;
  background-color: var(--theme-2);
  background-image: radial-gradient(circle at 8% 0%, rgba(47, 91, 169, .34), transparent 30%), radial-gradient(circle at 92% 96%, rgba(227, 30, 36, .18), transparent 28%) !important;
  box-shadow: 0 18px 40px rgba(11, 33, 84, .12);
}

.footer-section .footer-wrapper .footer-item {
  padding: 50px 0 34px;
}

.footer-section .footer-wrapper .footer-item .footer-list-item {
  grid-template-columns: minmax(190px, .8fr) minmax(360px, 1.5fr) minmax(180px, .65fr);
  gap: clamp(30px, 5vw, 84px);
  margin-top: 0;
}

.footer-section .footer-list-item > a {
  text-align: left;
}

.footer-section .footer-list-item > a img {
  width: 190px;
  max-width: 100%;
}

/* Second line rendered via a line-feed inside the existing generated
 * caption ("Study in South Korea with Confidence") rather than new markup -
 * balances the left column against the taller Contact/Social cards without
 * touching any real content or links. */
.footer-list-item > a::after {
  content: "Study in South Korea with Confidence\A Official consultant for South Korean universities";
  white-space: pre-line;
  max-width: 210px;
  margin-top: 16px;
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: .01em;
}

.footer-section .footer-contact {
  padding-left: clamp(22px, 3vw, 52px);
  border-left: 1px solid rgba(255, 255, 255, .18);
}

.footer-section .footer-contact h3 {
  margin-bottom: 14px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.footer-section .footer-contact-list {
  gap: 9px;
}

.footer-section .footer-contact-list li {
  gap: 11px;
  font-size: 13px;
  line-height: 1.5;
}

.footer-section .footer-contact-list i {
  color: #ff6a6e;
}

.footer-section .footer-wrapper .footer-item .footer-list-item > .social-icon {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.footer-section .footer-wrapper .footer-item .footer-list-item > .social-icon::before {
  width: 100%;
  margin-bottom: 4px;
  content: "FOLLOW OUR JOURNEY";
  color: rgba(255, 255, 255, .62);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-align: right;
}

.footer-section .footer-wrapper .footer-item .footer-list-item .social-icon a {
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 14px;
}

.footer-section .footer-wrapper .footer-item .footer-list-item .social-icon a:hover {
  transform: translateY(-3px) scale(1.08);
  border-color: var(--theme);
  background: var(--theme);
  box-shadow: 0 6px 16px rgba(227, 30, 36, .35);
}

.footer-section .footer-bottom {
  margin-top: 34px;
  border-top-color: rgba(255, 255, 255, .16);
  padding: 18px 0 20px;
}

.footer-section .footer-bottom .footer-wrapper {
  gap: 20px;
}

.footer-section .footer-bottom .footer-wrapper p,
.footer-section .footer-bottom .footer-wrapper .bottom-list li a {
  color: rgba(255, 255, 255, .67) !important;
  font-size: 12px;
}

.footer-section .footer-bottom .footer-wrapper p span {
  color: #fff;
  font-weight: 700;
}

.footer-section .footer-bottom .footer-wrapper .bottom-list {
  gap: 18px;
}

.footer-section .footer-bottom .footer-wrapper .bottom-list li a:hover {
  color: #fff !important;
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .header-1 .header-main { min-height: 72px; }
  .header-1 .logo img, .header-1 .header-logo-2 { width: 140px; max-width: 140px; }
  .header-1 .header-right .header-call-item .theme-btn { min-height: 42px; padding-left: 13px; font-size: 10px; }
  .header-1 .header-right .header-call-item .theme-btn i { width: 32px; height: 32px; margin-left: 8px; }
}

@media (max-width: 1199px) {
  .header-1 .header-main { min-height: 72px; }
  .header-1 .logo img, .header-1 .header-logo-2 { width: 148px; max-width: 148px; }
  .header-1 .header-right .header-call-item .theme-btn { min-height: 44px; font-size: 11px; }
  .footer-section { margin: 36px 22px 0; }
}

@media (max-width: 991px) {
  .footer-section .footer-wrapper .footer-item { padding: 40px 0 28px; }
  .footer-section .footer-wrapper .footer-item .footer-list-item { gap: 28px; }
  .footer-section .footer-list-item > a { text-align: center; }
  .footer-section .footer-list-item > a::after { margin-inline: auto; }
  .footer-section .footer-contact { padding-left: 0; border-left: 0; }
  .footer-section .footer-wrapper .footer-item .footer-list-item > .social-icon::before { text-align: center; }
  .footer-section .footer-bottom { margin-top: 28px; }
}

@media (max-width: 575px) {
  .header-1 { border-top-width: 4px; }
  .header-1::before { top: -4px; height: 4px; width: 34vw; }
  .header-1 .container-fluid { padding-inline: 14px; }
  .header-1 .header-main { min-height: 66px; padding-block: 8px; }
  .header-1 .logo img, .header-1 .header-logo-2 { width: 132px; max-width: 132px; }
  .header-1 .header-right .header-call-item { gap: 8px; }
  .header-1 .header-right .header-call-item .theme-btn { width: 42px; min-height: 42px; padding: 3px; font-size: 0; box-shadow: none; }
  .header-1 .header-right .header-call-item .theme-btn i { width: 36px; height: 36px; margin: 0; font-size: 13px; }
  .header-1 .header-right .sidebar__toggle { width: 42px; height: 42px; border-radius: 12px; font-size: 17px; }
  .footer-section { margin: 28px 12px 0; border-radius: 24px; }
  .footer-section .footer-wrapper .footer-item { padding: 36px 20px 20px; }
  .footer-section .footer-wrapper .footer-item .footer-list-item { gap: 24px; margin-top: 0; padding: 0; border: 0; }
  .footer-section .footer-list-item > a img { width: 154px; }
  .footer-list-item > a::after { margin-top: 10px; font-size: 12px; }
  .footer-section .footer-contact h3 { margin-bottom: 12px; font-size: 14px; }
  .footer-section .footer-contact-list { gap: 10px; justify-items: stretch; }
  .footer-section .footer-contact-list li { width: 100%; justify-content: flex-start; font-size: 12px; text-align: left; }
  .footer-section .footer-wrapper .footer-item .footer-list-item > .social-icon { gap: 8px; }
  .footer-section .footer-wrapper .footer-item .footer-list-item .social-icon a { width: 36px; height: 36px; }
  .footer-section .footer-bottom { margin-top: 24px; padding: 16px 20px 82px; }
  .footer-section .footer-bottom .footer-wrapper { gap: 10px; }
  .footer-section .footer-bottom .footer-wrapper p { text-align: center; line-height: 1.5; }
  .footer-section .footer-bottom .footer-wrapper .bottom-list { gap: 8px 14px; }
}

/* ===== Homepage hero + footer composition refresh ===== */
.hero-korea {
  isolation: isolate;
  padding-block: clamp(48px, 5vw, 88px) !important;
  background: linear-gradient(115deg, #071a45 0%, #0b2d6b 58%, #0e397d 100%) !important;
}

.hero-korea::before,
.hero-korea::after {
  position: absolute;
  z-index: -1;
  content: "";
  border-radius: 50%;
  pointer-events: none;
}

.hero-korea::before {
  top: -220px;
  right: 18%;
  width: 470px;
  height: 470px;
  border: 1px solid rgba(255, 255, 255, .11);
  box-shadow: 0 0 0 55px rgba(255, 255, 255, .035), 0 0 0 110px rgba(255, 255, 255, .02);
}

.hero-korea::after {
  right: -110px;
  bottom: -180px;
  width: 340px;
  height: 340px;
  background: var(--theme);
  opacity: .18;
}

.hero-korea-overlay { display: none; }

.hero-korea > .container-fluid {
  max-width: 1440px;
  padding-inline: clamp(28px, 5vw, 78px);
}

.hero-korea .hero-content {
  max-width: 610px;
  padding-right: clamp(0px, 3vw, 48px);
}

.hero-korea .hero-content h6 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.hero-korea .hero-content h6::before {
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: #ff4e54;
  box-shadow: 0 0 0 4px rgba(255, 78, 84, .16);
}

.hero-korea .hero-content h1 {
  max-width: 600px;
  margin-bottom: 16px;
  color: #fff;
  font-size: clamp(40px, 4.1vw, 66px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.03;
}

.hero-korea .hero-script-accent {
  margin: 0 0 18px;
  color: #ffb6b9;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 600;
}

.hero-korea .hero-content p {
  max-width: 545px;
  margin: 0 0 28px;
  padding-left: 16px;
  border-left: 2px solid var(--theme);
  color: rgba(255,255,255,.75);
  font-size: 15px;
  line-height: 1.65;
}

.hero-korea .hero-button {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-korea .hero-content .hero-button .theme-btn,
.hero-korea .hero-content .hero-button .theme-btn.style-pill,
.hero-korea .hero-content .hero-button .theme-btn.whatsapp.style-sm {
  min-height: 50px;
  padding-left: 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}

.hero-korea .hero-content .hero-button .theme-btn.style-pill {
  background: var(--theme);
  color: #fff;
  border-color: var(--theme);
  box-shadow: 0 12px 24px rgba(227, 30, 36, .24);
}

.hero-korea .hero-content .hero-button .theme-btn.style-pill i {
  background: #fff;
  color: var(--theme);
}

.hero-korea .hero-content .hero-button .theme-btn.style-pill:hover {
  background: #fff;
  color: var(--header);
}

.hero-korea .hero-content .hero-button .theme-btn.style-pill:hover i {
  background: var(--theme-2);
  color: #fff;
}

.hero-korea .hero-image {
  position: relative;
  min-height: 500px;
  margin: 0 0 0 clamp(0px, 2vw, 28px);
  border: 10px solid rgba(255,255,255,.09);
  border-radius: 28px;
  box-shadow: 20px 26px 0 rgba(227, 30, 36, .92), 0 28px 60px rgba(0,0,0,.28);
}

.hero-korea .hero-image::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 10px 13px;
  content: "South Korea • Study Abroad";
  border-radius: 10px;
  background: rgba(7, 26, 69, .86);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.hero-korea .image-slider,
.hero-korea .image-slider .swiper-wrapper,
.hero-korea .image-slider .swiper-slide,
.hero-korea .hero-image,
.hero-korea .hero-image img {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Keep the desktop hero text editorial, not a partially visible carousel:
 * the two hero-slider text slides are duplicates of each other, so locking
 * to the first is harmless and avoids Swiper's overflow-visible neighbouring
 * slides overlapping the headline.
 *
 * The image-slider carries four distinct photos and is meant to actually
 * rotate, so it keeps real Swiper sliding (transform-driven) instead of the
 * first-slide lock; it stays visually contained via overflow: hidden above. */
@media (min-width: 768px) {
  .hero-korea .hero-slider {
    overflow: hidden;
  }

  .hero-korea .hero-slider .swiper-wrapper {
    display: block !important;
    transform: none !important;
  }

  .hero-korea .hero-slider .swiper-slide {
    display: none !important;
    width: 100% !important;
    transform: none !important;
  }

  .hero-korea .hero-slider .swiper-slide:first-child {
    display: block !important;
  }

  .hero-korea .image-slider {
    overflow: hidden;
    height: 100% !important;
    min-height: 420px;
  }

  .hero-korea .image-slider .swiper-wrapper {
    display: flex !important;
    height: 100%;
  }

  .hero-korea .image-slider .swiper-slide {
    flex-shrink: 0;
    display: block !important;
    width: 100% !important;
    height: 100%;
  }

  .hero-korea .hero-image,
  .hero-korea .hero-image img {
    height: 100% !important;
    min-height: 420px;
  }
}

/* Restore the supplied hero photograph treatment: the image should read as a
 * clean campus visual, not as a separate decorative card. The stable first
 * slide rule above remains solely to protect the desktop layout from Swiper's
 * overflow-visible neighbouring slides. */
.hero-korea .hero-image {
  margin: 0;
  border: 0;
  border-radius: 18px;
  box-shadow: none;
}

.hero-korea .hero-image::after {
  display: none;
}

@media (max-width: 575px) {
  .hero-korea .hero-image {
    height: 260px;
    min-height: 260px;
    margin: 28px 0 0;
    border: 0;
    border-radius: 18px;
    box-shadow: none;
  }

  .hero-korea .hero-image img {
    min-height: 260px;
  }
}

.footer-section {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  /* Soft decorative circles (top-left blue, bottom-right red-accent, faint
   * top-right) layered over the base gradient, same treatment as the hero's
   * translucent shapes - listed first so they sit above the gradient. */
  background-image:
    radial-gradient(circle at 8% 6%, rgba(120, 160, 255, .16) 0%, rgba(120, 160, 255, .16) 18%, transparent 45%),
    radial-gradient(circle at 94% 92%, rgba(227, 30, 36, .22) 0%, rgba(227, 30, 36, .22) 14%, transparent 40%),
    radial-gradient(circle at 88% 8%, rgba(255, 255, 255, .06) 0%, transparent 30%),
    linear-gradient(120deg, #091f50 0%, #112f6f 56%, #251c58 100%) !important;
  background-repeat: no-repeat;
  box-shadow: 0 18px 40px rgba(11, 33, 84, .25);
}

.footer-section::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--theme), #ff777b 35%, transparent 35%);
}

.footer-section .footer-wrapper .footer-item .footer-list-item {
  grid-template-columns: minmax(180px, .7fr) minmax(390px, 1.55fr) minmax(190px, .7fr);
  align-items: stretch;
}

.footer-section .footer-list-item > a {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-section .footer-contact {
  padding: 25px clamp(24px, 3vw, 42px);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 18px;
  background: rgba(255,255,255,.065);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.footer-section .footer-wrapper .footer-item .footer-list-item > .social-icon {
  align-content: center;
  justify-content: center;
  padding: 20px;
  border-radius: 18px;
  background: rgba(3, 13, 41, .22);
}

.footer-section .footer-wrapper .footer-item .footer-list-item > .social-icon::before {
  text-align: center;
}

@media (max-width: 991px) {
  .hero-korea .hero-content { max-width: 100%; padding-right: 0; }
  .hero-korea .hero-image { min-height: 390px; margin: 34px 8px 0; }
  .footer-section .footer-contact { padding: 22px; }
  .footer-section .footer-wrapper .footer-item .footer-list-item > .social-icon { padding: 18px; }
}

@media (max-width: 575px) {
  .hero-korea { padding-block: 32px 38px !important; }
  .hero-korea > .container-fluid { padding-inline: 18px; }
  .hero-korea .hero-content h6 { margin-bottom: 15px; padding: 7px 10px; font-size: 9px; }
  .hero-korea .hero-content h1 { font-size: 34px; line-height: 1.06; }
  .hero-korea .hero-script-accent { margin-bottom: 14px; font-size: 15px; }
  .hero-korea .hero-content p { margin-bottom: 22px; padding-left: 12px; font-size: 13px; }
  .hero-korea .hero-button { gap: 10px; }
  .hero-korea .hero-content .hero-button .theme-btn,
  .hero-korea .hero-content .hero-button .theme-btn.style-pill,
  .hero-korea .hero-content .hero-button .theme-btn.whatsapp.style-sm { min-height: 45px; padding-left: 13px; font-size: 10px; }
  .hero-korea .hero-content .hero-button .theme-btn i { width: 35px; height: 35px; line-height: 35px; margin-left: 8px; }
  .hero-korea .hero-image { min-height: 250px; height: 250px; margin: 28px 8px 0; border-width: 7px; border-radius: 20px; box-shadow: 12px 14px 0 rgba(227, 30, 36, .92), 0 18px 36px rgba(0,0,0,.23); }
  .hero-korea .hero-image img { min-height: 236px; }
  .hero-korea .hero-image::after { right: 10px; bottom: 10px; padding: 8px 9px; font-size: 8px; }
  .footer-section .footer-contact { padding: 20px 16px; border-radius: 14px; }
  .footer-section .footer-wrapper .footer-item .footer-list-item > .social-icon { padding: 16px; border-radius: 14px; }
}

/* Mobile footer: give each content group room to breathe and keep the legal
 * links readable instead of compressing the three-column desktop footer. */
@media (max-width: 575px) {
  .footer-section {
    margin: 24px 12px 0;
    overflow: hidden;
    border-radius: 22px;
  }

  .footer-section > .container {
    padding-inline: 0;
  }

  .footer-section .footer-wrapper .footer-item {
    padding: 34px 18px 26px !important;
  }

  .footer-section .footer-wrapper .footer-item .footer-list-item {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    align-items: center;
  }

  .footer-section .footer-list-item > a {
    display: flex;
    align-items: center;
    text-align: center;
  }

  .footer-section .footer-list-item > a img {
    width: 176px;
    height: auto;
  }

  .footer-section .footer-contact {
    width: 100%;
    box-sizing: border-box;
    padding: 18px 16px !important;
    border: 1px solid rgba(255, 255, 255, .16) !important;
    border-radius: 16px;
    background: rgba(255, 255, 255, .055);
  }

  .footer-section .footer-contact h3 {
    margin-bottom: 14px;
    text-align: left;
  }

  .footer-section .footer-contact-list {
    gap: 11px;
  }

  .footer-section .footer-contact-list li {
    font-size: 12px;
    line-height: 1.55;
  }

  .footer-section .footer-wrapper .footer-item .footer-list-item > .social-icon {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px !important;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    background: rgba(3, 13, 41, .24);
  }

  .footer-section .footer-wrapper .footer-item .footer-list-item > .social-icon::before {
    flex: 0 0 100%;
    width: 100%;
    margin: 0 0 4px;
    text-align: center;
  }

  .footer-section .footer-wrapper .footer-item .footer-list-item .social-icon a {
    display: inline-grid !important;
    width: 42px;
    height: 42px;
    margin: 0 !important;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff !important;
    font-size: 16px;
    line-height: 1;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .footer-section .footer-wrapper .footer-item .footer-list-item .social-icon a:first-of-type {
    background: #e31e24;
    border-color: #e31e24;
  }

  .footer-section .footer-bottom {
    margin-top: 0;
    padding: 18px 18px 24px;
  }

  .footer-section .footer-bottom > .container {
    padding-inline: 0;
  }

  .footer-section .footer-bottom .footer-wrapper {
    gap: 12px;
  }

  .footer-section .footer-bottom .footer-wrapper p {
    margin: 0;
    font-size: 11px;
  }

  .footer-section .footer-bottom .footer-wrapper .bottom-list {
    justify-content: center;
    gap: 7px 14px;
  }
}

/* ===== Footer: full-bleed finish (final layer) =====
 * The card treatment above left visible page background on all four sides and
 * made the footer read as a detached, lightweight box. This layer turns it
 * into an edge-to-edge anchor for the page: no margin, no radius, one
 * continuous surface shared with the legal bar, and a firmer column
 * structure (divider rules instead of floating translucent panels).
 * The legal bar is a sibling in the static HTML but is moved inside
 * .footer-section by visaway_render_static_content() on WordPress, so both
 * placements are styled to land on the same surface. */
.footer-section {
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible;
  background-color: #0a1f4e !important;
  background-image:
    radial-gradient(900px 460px at 10% -10%, rgba(104, 148, 240, .22), transparent 62%),
    radial-gradient(760px 440px at 92% 108%, rgba(227, 30, 36, .20), transparent 60%),
    linear-gradient(90deg, #081941 0%, #102c66 55%, #241a55 100%) !important;
  background-repeat: no-repeat;
  box-shadow: none !important;
}

/* Full-width brand rule across the top edge instead of the previous stub. */
.footer-section::before {
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--theme) 0%, #ff777b 28%, rgba(255, 119, 123, .35) 52%, rgba(255, 255, 255, .10) 100%);
}

.footer-section .footer-wrapper .footer-item {
  padding: 68px 0 44px;
}

.footer-section .footer-wrapper .footer-item .footer-list-item {
  grid-template-columns: minmax(210px, .85fr) minmax(360px, 1.5fr) minmax(190px, .7fr);
  /* stretch so the two divider rules run the full height of the row rather
   * than stopping at each column's own content */
  align-items: stretch;
  gap: clamp(32px, 5vw, 76px);
}

/* Left column: logo + positioning line. */
.footer-section .footer-list-item > a {
  display: block;
  text-align: left;
}

.footer-section .footer-list-item > a img {
  width: 196px;
}

.footer-section .footer-list-item > a::after {
  max-width: 250px;
  margin-top: 18px;
  color: rgba(255, 255, 255, .72);
  font-size: 13.5px;
  line-height: 1.65;
}

/* Middle column: plain contact list separated by a rule, not a panel. */
.footer-section .footer-contact {
  padding: 0 0 0 clamp(28px, 4vw, 60px) !important;
  border: 0 !important;
  border-left: 1px solid rgba(255, 255, 255, .14) !important;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.footer-section .footer-contact h3 {
  position: relative;
  margin-bottom: 22px;
  padding-bottom: 12px;
  font-size: 15px;
  letter-spacing: .16em;
}

.footer-section .footer-contact h3::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 34px;
  height: 2px;
  content: "";
  background: var(--theme);
  border-radius: 2px;
}

.footer-section .footer-contact-list {
  gap: 14px;
}

.footer-section .footer-contact-list li {
  gap: 13px;
  color: rgba(255, 255, 255, .82);
  font-size: 13.5px;
  line-height: 1.55;
}

.footer-section .footer-contact-list i {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  margin-top: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  color: #ff7b7f;
  font-size: 12px;
  transition: background-color .25s ease, color .25s ease;
}

.footer-section .footer-contact-list li:hover i {
  background: var(--theme);
  color: #fff;
}

.footer-section .footer-contact-list a:hover {
  color: #ff9ba0;
}

/* Right column: social block, aligned to the same baseline as Contact. */
.footer-section .footer-wrapper .footer-item .footer-list-item > .social-icon {
  flex-wrap: wrap;
  align-content: start;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 0 0 clamp(28px, 4vw, 60px) !important;
  border-left: 1px solid rgba(255, 255, 255, .14);
  border-radius: 0;
  background: none;
}

.footer-section .footer-wrapper .footer-item .footer-list-item > .social-icon::before {
  flex: 0 0 100%;
  width: 100%;
  margin-bottom: 18px;
  padding-bottom: 12px;
  color: rgba(255, 255, 255, .7);
  font-size: 11px;
  letter-spacing: .16em;
  text-align: left;
  /* Same 34px red underline as the Contact heading, drawn as a background so
   * no extra pseudo-element is needed on an already-generated label. */
  background: linear-gradient(var(--theme), var(--theme)) left bottom / 34px 2px no-repeat;
}

.footer-section .footer-wrapper .footer-item .footer-list-item .social-icon a {
  width: 40px;
  height: 40px;
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  transition: transform .25s ease, background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

/* Legal bar - identical horizontal gradient to the footer above it, so the
 * two elements read as one uninterrupted surface with only a hairline rule
 * between them. */
.footer-bottom {
  padding: 20px 0;
  background-color: #0a1f4e;
  background-image: linear-gradient(90deg, #081941 0%, #102c66 55%, #241a55 100%);
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.footer-bottom .footer-wrapper {
  justify-content: space-between;
  gap: 24px;
}

.footer-bottom .footer-wrapper p,
.footer-bottom .footer-wrapper .bottom-list li a {
  color: rgba(255, 255, 255, .68) !important;
  font-size: 12.5px;
}

.footer-bottom .footer-wrapper p span {
  color: #fff !important;
  font-weight: 700;
}

.footer-bottom .footer-wrapper .bottom-list {
  gap: 26px;
}

.footer-bottom .footer-wrapper .bottom-list li a:hover {
  color: #fff !important;
}

/* When WordPress nests the legal bar inside the footer it inherits the
 * surface already, so it only needs the divider. */
.footer-section .footer-bottom {
  margin-top: 40px;
  padding: 20px 0;
  background: transparent;
  background-image: none;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

@media (max-width: 1199px) {
  .footer-section { margin: 0 !important; }
  .footer-section .footer-wrapper .footer-item { padding: 56px 0 38px; }
}

@media (max-width: 991px) {
  .footer-section .footer-wrapper .footer-item .footer-list-item {
    grid-template-columns: 1fr 1fr;
    gap: 34px 40px;
  }

  .footer-section .footer-list-item > a { text-align: left; }
  .footer-section .footer-list-item > a::after { margin-inline: 0; }

  .footer-section .footer-contact,
  .footer-section .footer-wrapper .footer-item .footer-list-item > .social-icon {
    padding-left: 0 !important;
    border-left: 0 !important;
  }

  /* The theme centres the contact block below 991px, which leaves the
   * heading's red underline stranded at the left edge. */
  .footer-section .footer-contact,
  .footer-section .footer-contact h3,
  .footer-section .footer-contact-list li,
  .footer-section .footer-wrapper .footer-item .footer-list-item > .social-icon::before {
    text-align: left;
  }
}

@media (max-width: 575px) {
  .footer-section {
    margin: 0 !important;
    border-radius: 0 !important;
  }

  .footer-section .footer-wrapper .footer-item {
    padding: 42px 4px 30px !important;
  }

  .footer-section .footer-wrapper .footer-item .footer-list-item {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    align-items: start;
  }

  .footer-section .footer-list-item > a {
    display: block;
    text-align: left;
  }

  .footer-section .footer-list-item > a img { width: 176px; }

  .footer-section .footer-contact {
    padding: 0 !important;
    border: 0 !important;
    background: none;
  }

  .footer-section .footer-contact h3 { text-align: left; }

  .footer-section .footer-wrapper .footer-item .footer-list-item > .social-icon {
    justify-content: flex-start;
    padding: 0 !important;
    border: 0 !important;
    background: none;
  }

  .footer-section .footer-wrapper .footer-item .footer-list-item > .social-icon::before {
    text-align: left;
  }

  .footer-section .footer-wrapper .footer-item .footer-list-item .social-icon a:first-of-type {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .18);
  }

  .footer-bottom,
  .footer-section .footer-bottom {
    padding: 18px 0 84px;
  }

  .footer-bottom .footer-wrapper,
  .footer-section .footer-bottom .footer-wrapper {
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    text-align: center;
  }

  .footer-bottom .footer-wrapper .bottom-list,
  .footer-section .footer-bottom .footer-wrapper .bottom-list {
    justify-content: center;
    gap: 8px 18px;
  }
}

/* ===== Partner-university cards (destination-offer grid) =====
 * The template sized each card from its own image and title, so a row of
 * five ended up with five different heights and five different image crops.
 * Every card is now one fixed-ratio photo plus a content block that fills
 * the remaining height, and the title area reserves room for the longest
 * name so all descriptions sit on the same baseline. */
.destination-offer-wrapper-3 .destination-offer-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.destination-offer-wrapper-3 .destination-offer-item .choose-us-image {
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.destination-offer-wrapper-3 .destination-offer-item .choose-us-image img {
  display: block;
  width: 100%;
  height: 176px;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  transition: transform .5s ease;
}

.destination-offer-wrapper-3 .destination-offer-item:hover .choose-us-image img {
  transform: scale(1.05);
}

.destination-offer-wrapper-3 .destination-offer-item .choose-us-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  border-radius: 0 0 16px 16px;
}

/* Flag pinned to the first line of the title instead of vertically centred,
 * so it stays put whether the name runs to one line or three. */
.destination-offer-wrapper-3 .destination-offer-item .choose-us-content .icon-item {
  min-height: 92px;
  align-items: flex-start;
}

.destination-offer-wrapper-3 .destination-offer-item .choose-us-content .icon-item .icon {
  flex: 0 0 26px;
  margin-top: 3px;
}

.destination-offer-wrapper-3 .destination-offer-item .choose-us-content .icon-item .icon img {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.destination-offer-wrapper-3 .destination-offer-item .choose-us-content .icon-item h5 {
  font-size: 18px;
  line-height: 1.3;
}

.destination-offer-wrapper-3 .destination-offer-item .choose-us-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 1399px) {
  .destination-offer-wrapper-3 .destination-offer-item .choose-us-image img { height: 160px; }
  .destination-offer-wrapper-3 .destination-offer-item .choose-us-content .icon-item { min-height: 84px; }
  .destination-offer-wrapper-3 .destination-offer-item .choose-us-content .icon-item h5 { font-size: 17px; }
}

@media (max-width: 991px) {
  .destination-offer-wrapper-3 .destination-offer-item .choose-us-image img { height: 190px; }
  .destination-offer-wrapper-3 .destination-offer-item .choose-us-content .icon-item { min-height: 68px; }
}

@media (max-width: 575px) {
  .destination-offer-wrapper-3 .destination-offer-item .choose-us-image img { height: 200px; }
  .destination-offer-wrapper-3 .destination-offer-item .choose-us-content .icon-item { min-height: 0; }
}

/* ===== Success stories roster (.kp-stories) =====
 * Replaces the template's quote slider. The student photographs are
 * screenshots of ID/passport photos - soft, inconsistently lit and in one
 * case a document scan - so they are used only as small circular avatars,
 * where the source artefacts are not resolvable, rather than as the large
 * hero images the slider called for. No star ratings and no quotes: none
 * have been supplied by the students, and invented ones would be fabricated
 * testimonials. The verified facts (who, and what they are studying) carry
 * the section instead. */
.kp-stories .section-title-area {
  margin-bottom: 26px;
}

.kp-stories-wrapper {
  padding: clamp(26px, 3vw, 44px);
  border: 1px solid rgba(11, 33, 84, .09);
  border-radius: 24px;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(227, 30, 36, .05), transparent 60%),
    linear-gradient(180deg, #f7f9fd 0%, #ffffff 100%);
  box-shadow: 0 18px 44px rgba(11, 33, 84, .07);
}

.kp-stories-lead {
  max-width: 720px;
  margin: 0 0 clamp(24px, 3vw, 34px);
  padding-left: 16px;
  border-left: 3px solid var(--theme);
  color: var(--header);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.6;
}

.kp-stories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kp-story {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 16px;
  border: 1px solid rgba(11, 33, 84, .08);
  border-radius: 16px;
  background: #fff;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.kp-story:hover {
  transform: translateY(-3px);
  border-color: rgba(227, 30, 36, .30);
  box-shadow: 0 12px 26px rgba(11, 33, 84, .10);
}

.kp-story-avatar {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  padding: 2px;
  border: 1px solid rgba(11, 33, 84, .12);
  border-radius: 50%;
  background: #fff;
  transition: border-color .25s ease;
}

.kp-story:hover .kp-story-avatar {
  border-color: var(--theme);
}

.kp-story-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
}

.kp-story-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.kp-story-text strong {
  color: var(--header);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.kp-story-text > span {
  color: rgba(11, 33, 84, .62);
  font-size: 12.5px;
  line-height: 1.35;
}

@media (max-width: 991px) {
  .kp-stories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575px) {
  .kp-stories-wrapper { padding: 20px 16px; border-radius: 18px; }
  .kp-stories-grid { grid-template-columns: 1fr; gap: 10px; }
  .kp-stories-lead { padding-left: 12px; font-size: 14px; }
  .kp-story { padding: 12px 13px; gap: 13px; }
  .kp-story-avatar { flex-basis: 50px; width: 50px; height: 50px; }
}

/* ===== Homepage success stories (.kp-home-stories) =====
 * Was: a lone centred video floating in half a row, then six tall cards whose
 * 96px circles were filled with the uncropped ID photos - the scan borders and
 * black table rules were clearly visible inside the circle. Now the video is
 * paired with the lead line and CTA so the row is balanced, and the cards use
 * the face-only avatar crops on a tinted band so the grid reads as one block.
 * Consent for these photographs is on file with the client. */
.kp-home-stories .section-title {
  margin-bottom: 42px;
}

.kp-home-stories .kp-stories-feature {
  margin-bottom: clamp(34px, 4vw, 56px);
}

.kp-home-stories .gallery-video-wrap {
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(11, 33, 84, .16);
}

.kp-home-stories .kp-stories-intro p {
  margin: 0 0 26px;
  padding-left: 18px;
  border-left: 3px solid var(--theme);
  color: var(--header);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
}

/* Tinted band behind the roster so six light cards do not float on white. */
.kp-home-stories .kp-student-grid {
  position: relative;
  margin-inline: 0;
  padding: clamp(24px, 3vw, 38px) clamp(14px, 2vw, 26px);
  border: 1px solid rgba(11, 33, 84, .08);
  border-radius: 26px;
  background:
    radial-gradient(700px 320px at 0% 0%, rgba(47, 91, 169, .07), transparent 62%),
    radial-gradient(600px 300px at 100% 100%, rgba(227, 30, 36, .05), transparent 60%),
    #f7f9fd;
}

.kp-home-stories .success-story-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 30px 20px 26px;
  border: 1px solid rgba(11, 33, 84, .07);
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(11, 33, 84, .06);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.kp-home-stories .success-story-card:hover {
  transform: translateY(-5px);
  border-color: rgba(227, 30, 36, .28);
  box-shadow: 0 18px 36px rgba(11, 33, 84, .12);
}

/* Double ring: white gap inside a hairline navy ring, turning red on hover. */
.kp-home-stories .success-story-card .student-photo {
  width: 104px;
  height: 104px;
  margin-bottom: 18px;
  padding: 4px;
  border: 1px solid rgba(11, 33, 84, .14);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 16px rgba(11, 33, 84, .10);
  transition: border-color .28s ease;
}

.kp-home-stories .success-story-card:hover .student-photo {
  border-color: var(--theme);
}

.kp-home-stories .success-story-card .student-photo img {
  border-radius: 50%;
  object-position: center;
}

.kp-home-stories .success-story-card h5 {
  margin-bottom: 8px;
  color: var(--header);
  font-size: 19px;
}

.kp-home-stories .success-story-card .degree {
  display: inline-block;
  margin: 0;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(11, 33, 84, .06);
  color: rgba(11, 33, 84, .70);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
}

@media (max-width: 991px) {
  .kp-home-stories .kp-stories-intro p { font-size: 16px; }
  .kp-home-stories .success-story-card { padding: 26px 16px 22px; }
  .kp-home-stories .success-story-card .student-photo { width: 92px; height: 92px; }
  .kp-home-stories .success-story-card h5 { font-size: 17px; }
}

@media (max-width: 575px) {
  .kp-home-stories .section-title { margin-bottom: 28px; }
  .kp-home-stories .gallery-video-wrap { border-radius: 16px; }
  .kp-home-stories .kp-student-grid { padding: 18px 12px; border-radius: 20px; }
  .kp-home-stories .success-story-card { padding: 22px 14px 20px; }
  .kp-home-stories .success-story-card .student-photo { width: 84px; height: 84px; margin-bottom: 14px; }
}

/* The promo clip is portrait phone footage (400x716). Left unconstrained it
 * renders over 1100px tall and swallows the section, so cap it to a reel-sized
 * column and centre it. */
.kp-home-stories .gallery-video-wrap {
  max-width: 300px;
  margin-inline: auto;
}

/* ===== Footer card grid =====
 * Rebuilds the footer as four boxed cards echoing the hero image box
 * (.hero-korea .hero-image: 28px radius, translucent light border, soft lift)
 * instead of text columns floating on the flat navy. Markup for the WordPress
 * render is generated in visaway_render_static_content(); the source templates
 * carry the same structure. Keeps the top red accent rule and the navy
 * gradient from the full-bleed footer layer above. */
.footer-section .footer-wrapper .footer-item {
  padding: 64px 0 40px;
}

.footer-section .footer-wrapper .footer-item .footer-list-item {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
  margin: 0;
  padding: 0;
  border: 0;
}

.footer-card {
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 28px;
  background: rgba(255, 255, 255, .05);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: border-color .28s ease, background-color .28s ease;
}

.footer-card:hover {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .07);
}

/* Shared card heading + the red accent rule, now including Quick Links. */
.footer-card h3,
.footer-section .footer-contact h3 {
  position: relative;
  margin: 0 0 20px;
  padding-bottom: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.footer-card h3::after,
.footer-section .footer-contact h3::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 34px;
  height: 2px;
  content: "";
  background: var(--theme);
  border-radius: 2px;
}

/* Card 1 - logo + tagline. The tagline is real markup now, so the old
 * generated caption must not double up. */
.footer-list-item > a::after,
.footer-section .footer-list-item > a::after {
  content: none !important;
}

.footer-brand > a {
  display: block;
  margin-bottom: 18px;
}

.footer-brand > a img {
  width: 180px;
  max-width: 100%;
  height: auto;
}

.footer-tagline {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 13.5px;
  line-height: 1.7;
}

/* Card 2 - quick links. */
.footer-quick-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-quick-list a {
  position: relative;
  display: inline-block;
  padding-left: 15px;
  color: rgba(255, 255, 255, .76);
  font-size: 13.5px;
  line-height: 1.45;
  transition: color .22s ease, padding-left .22s ease;
}

.footer-quick-list a::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  content: "";
  border-radius: 50%;
  background: rgba(255, 255, 255, .30);
  transition: background-color .22s ease;
}

.footer-quick-list a:hover {
  padding-left: 19px;
  color: #fff;
}

.footer-quick-list a:hover::before {
  background: var(--theme);
}

/* Card 3 - contact. Strip the divider rule the previous layer added; the card
 * border is the separator now. */
.footer-section .footer-contact {
  padding: 0 !important;
  border: 0 !important;
  background: none;
  box-shadow: none;
}

.footer-section .footer-contact-list {
  gap: 15px;
}

/* Card 4 - social. Real <h3> replaces the generated pseudo-element label. */
.footer-section .footer-wrapper .footer-item .footer-list-item .footer-social-card > .social-icon {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-start;
  gap: 12px;
  padding: 0 !important;
  border: 0 !important;
  background: none;
}

.footer-section .footer-wrapper .footer-item .footer-list-item .social-icon::before {
  content: none !important;
}

.footer-section .footer-wrapper .footer-item .footer-list-item .social-icon a {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .20);
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  font-size: 16px;
  transition: transform .25s ease, background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.footer-section .footer-wrapper .footer-item .footer-list-item .social-icon a:hover {
  transform: translateY(-3px);
  border-color: var(--theme);
  background: var(--theme);
  color: #fff;
  box-shadow: 0 8px 20px rgba(227, 30, 36, .38);
}

/* Bottom bar: its own strip under the grid, separated by a hairline. */
.footer-section .footer-bottom,
.footer-bottom {
  margin-top: 38px;
  border-top: 1px solid rgba(255, 255, 255, .13);
}

/* 4 columns -> 2 on tablet -> 1 stacked on mobile, boxed at every step. */
@media (max-width: 1199px) {
  .footer-card { padding: 26px 22px; }
  .footer-section .footer-wrapper .footer-item .footer-list-item { gap: 16px; }
}

@media (max-width: 991px) {
  .footer-section .footer-wrapper .footer-item {
    padding: 48px 0 32px;
  }

  .footer-section .footer-wrapper .footer-item .footer-list-item {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .footer-section .footer-contact,
  .footer-section .footer-wrapper .footer-item .footer-list-item .footer-social-card > .social-icon {
    padding: 0 !important;
    border: 0 !important;
  }
}

@media (max-width: 575px) {
  .footer-section .footer-wrapper .footer-item {
    padding: 38px 0 26px !important;
  }

  .footer-section .footer-wrapper .footer-item .footer-list-item {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .footer-card {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .footer-brand > a img { width: 164px; }
  .footer-card h3 { margin-bottom: 16px; font-size: 14px; }
  .footer-quick-list { grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  .footer-section .footer-wrapper .footer-item .footer-list-item .social-icon a { width: 44px; height: 44px; }
}

/* Footer card grid corrections:
 * - the theme sets text-align:center on .footer-item, which the cards inherited
 *   and which left every h3's red underline (anchored left:0) detached from its
 *   centred label;
 * - the 8 quick links in a single column made that card 301px tall and forced
 *   ~260px of dead space into the logo and social cards, so the list runs in
 *   two columns and the grid widths favour the contact card instead. */
.footer-section .footer-wrapper .footer-item,
.footer-section .footer-wrapper .footer-item .footer-list-item,
.footer-card,
.footer-card * {
  text-align: left;
}

.footer-section .footer-wrapper .footer-item .footer-list-item {
  grid-template-columns: 1fr .9fr 1.25fr .85fr;
}

.footer-quick-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 10px;
}

.footer-brand > a {
  text-align: left;
}

@media (max-width: 991px) {
  .footer-section .footer-wrapper .footer-item .footer-list-item {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .footer-section .footer-wrapper .footer-item .footer-list-item {
    grid-template-columns: 1fr !important;
  }
}

/* Keep the four social icons on one row: at .85fr the card's inner width was
 * ~157px against 4x46px icons + gaps, so YouTube wrapped. */
.footer-section .footer-wrapper .footer-item .footer-list-item {
  grid-template-columns: 1fr .85fr 1.2fr .95fr;
}

.footer-section .footer-wrapper .footer-item .footer-list-item .footer-social-card > .social-icon {
  flex-wrap: nowrap;
  gap: 10px;
}

.footer-section .footer-wrapper .footer-item .footer-list-item .social-icon a {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
}

@media (max-width: 991px) {
  .footer-section .footer-wrapper .footer-item .footer-list-item {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .footer-section .footer-wrapper .footer-item .footer-list-item {
    grid-template-columns: 1fr !important;
  }
}

/* Contact rows were centre-justified below 991px, which staggered the phone,
 * email and address lines against each other inside the card. */
.footer-section .footer-contact-list li {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

/* ===== Mobile footer: give the stack some hierarchy =====
 * Four identical tinted boxes in a column read as repetitive filler. The brand
 * card becomes the anchor (bigger logo, red accent edge, its own gradient), the
 * social row spreads to the full card width instead of hugging the left, and
 * the legal strip runs inline rather than stacking. */
@media (max-width: 575px) {
  .footer-section .footer-wrapper .footer-item {
    padding: 34px 0 22px !important;
  }

  .footer-section .footer-wrapper .footer-item .footer-list-item {
    gap: 12px !important;
  }

  .footer-card {
    padding: 22px 20px;
    background: rgba(255, 255, 255, .06);
  }

  /* Anchor card */
  .footer-card.footer-brand {
    position: relative;
    overflow: hidden;
    padding: 26px 20px;
    border-color: rgba(255, 255, 255, .16);
    background:
      radial-gradient(320px 160px at 100% 0%, rgba(227, 30, 36, .16), transparent 70%),
      rgba(255, 255, 255, .09);
  }

  .footer-card.footer-brand::before {
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 0;
    width: 3px;
    content: "";
    border-radius: 0 3px 3px 0;
    background: var(--theme);
  }

  .footer-brand > a img { width: 186px; }

  .footer-tagline {
    font-size: 13px;
    line-height: 1.65;
  }

  /* Social icons span the card width */
  .footer-section .footer-wrapper .footer-item .footer-list-item .footer-social-card > .social-icon {
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }

  .footer-section .footer-wrapper .footer-item .footer-list-item .social-icon a {
    flex: 1 1 0;
    width: auto;
    max-width: 64px;
    height: 46px;
    border-radius: 14px;
  }

  /* Quick links: two tidy columns, slightly roomier tap targets */
  .footer-quick-list {
    gap: 13px 12px;
  }

  .footer-quick-list a {
    font-size: 13px;
  }

  /* Legal strip inline instead of a tall stacked block */
  .footer-bottom,
  .footer-section .footer-bottom {
    margin-top: 22px;
    padding: 16px 0 78px;
  }

  .footer-bottom .footer-wrapper,
  .footer-section .footer-bottom .footer-wrapper {
    flex-direction: column;
    gap: 10px;
  }

  .footer-bottom .footer-wrapper .bottom-list,
  .footer-section .footer-bottom .footer-wrapper .bottom-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 16px;
  }

  .footer-bottom .footer-wrapper p,
  .footer-bottom .footer-wrapper .bottom-list li a {
    font-size: 11.5px;
  }
}
