/* ===========================
   KMA Education — style.css
   =========================== */

/* ---- RESET & BASE ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #1a6dfb;
  --primary-dk: #0d4fcf;
  --accent: #f5a623;
  --bg: #ffffff;
  --bg-dark: #0b0f1a;
  --bg-card: #f4f7ff;
  --text: #12192e;
  --text-muted: #6b7a99;
  --border: rgba(26, 109, 251, .12);
  --radius: 16px;
  --shadow: 0 8px 32px rgba(26, 109, 251, .10);
  --shadow-lg: 0 20px 60px rgba(26, 109, 251, .18);
  --font: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

html {
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}

/* ---- CONTAINER ---- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   NAVBAR
   =========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 24px rgba(26, 109, 251, .09);
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  transition: color .3s;
}

.navbar.scrolled .nav-logo {
  color: var(--text);
}

.logo-icon {
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: .9rem;
  font-weight: 99;
  color: rgba(255, 255, 255, .85);
  transition: color .2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .25s;
  border-radius: 2px;
}

.nav-links a:hover {
  color: white;
}

.nav-links a:hover::after {
  width: 100%;
}

.navbar.scrolled .nav-links a {
  color: var(--text-muted);
}

.navbar.scrolled .nav-links a:hover {
  color: var(--primary);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Lang switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .6);
  font-family: var(--font);
  padding: 2px 4px;
  transition: color .2s;
  letter-spacing: .05em;
}

.lang-btn:hover,
.lang-btn.active {
  color: var(--accent);
}

.navbar.scrolled .lang-btn {
  color: var(--text-muted);
}

.navbar.scrolled .lang-btn:hover,
.navbar.scrolled .lang-btn.active {
  color: var(--primary);
}

.lang-sep {
  color: rgba(255, 255, 255, .3);
  font-size: .7rem;
}

.navbar.scrolled .lang-sep {
  color: #ccc;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all .3s;
}

.navbar.scrolled .hamburger span {
  background: var(--text);
}

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 20% 40%, rgba(26, 109, 251, .35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 60%, rgba(240, 165, 0, .15) 0%, transparent 60%),
    linear-gradient(135deg, #0b0f1a 0%, #0d1f3c 50%, #0b0f1a 100%);
  z-index: 0;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(26, 109, 251, .3);
  animation: float linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-100px) scale(1);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-block;
  background: rgba(26, 109, 251, .18);
  border: 1px solid rgba(26, 109, 251, .35);
  color: rgba(255, 255, 255, .85);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -.02em;
}

.gradient-text {
  background: linear-gradient(90deg, #1a6dfb, #f5a623);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .65);
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: .95rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .25s;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 8px 32px rgba(26, 109, 251, .4);
}

.btn-primary:hover {
  background: var(--primary-dk);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(26, 109, 251, .5);
}

.btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, .35);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .1);
  border-color: white;
  transform: translateY(-2px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-arrow {
  width: 28px;
  height: 28px;
  border-right: 2px solid rgba(255, 255, 255, .4);
  border-bottom: 2px solid rgba(255, 255, 255, .4);
  transform: rotate(45deg);
  animation: bounce 1.5s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: rotate(45deg) translateY(0);
  }

  50% {
    transform: rotate(45deg) translateY(8px);
  }
}

/* ===========================
   SECTIONS
   =========================== */
.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--bg-dark);
  color: white;
}

.section-accent {
  background: linear-gradient(135deg, var(--primary-dk) 0%, #0d3a8a 100%);
  color: white;
}

.section-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-label.light {
  color: rgba(255, 255, 255, .6);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -.02em;
}

.section-dark .section-title,
.section-accent .section-title,
.section-title.light {
  color: white;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 56px;
}

.section-dark .section-sub {
  color: rgba(255, 255, 255, .55);
}

/* ===========================
   ABOUT
   =========================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 48px;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 20px;
}

.about-text p strong {
  color: var(--text);
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.about-card-icon {
  font-size: 2rem;
}

.about-card-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.about-card-sub {
  font-size: .83rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Floating animation */
.floating {
  animation: floatCard 4s ease-in-out infinite;
}

.delay-1 {
  animation-delay: 1.3s;
}

.delay-2 {
  animation-delay: 2.6s;
}

@keyframes floatCard {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* ===========================
   SERVICES
   =========================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: background .3s, border-color .3s, transform .3s;
  cursor: default;
}

.service-card:hover {
  background: rgba(26, 109, 251, .12);
  border-color: rgba(26, 109, 251, .3);
  transform: translateY(-6px);
}

.service-icon {
  font-size: 2.2rem;
  margin-bottom: 18px;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
  line-height: 1.3;
}

.service-card p {
  font-size: .875rem;
  color: rgba(255, 255, 255, .55);
  line-height: 1.65;
}

/* ===========================
   UNIVERSITIES
   =========================== */
.uni-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.uni-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px 22px;
  text-align: center;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.uni-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.uni-card img {
  height: 56px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  margin: 0 auto;
}

.uni-name {
  font-size: .8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  text-align: center;
}

.uni-country {
  font-size: .75rem;
  color: var(--text-muted);
}

/* ===========================
   WHY US
   =========================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.why-item {
  text-align: center;
}

.why-icon {
  font-size: 2.8rem;
  margin-bottom: 20px;
  display: block;
}

.why-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
}

.why-item p {
  font-size: .875rem;
  color: rgba(255, 255, 255, .6);
  line-height: 1.65;
}

/* ===========================
   CONTACT
   =========================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.contact-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}

.contact-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, .55);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-logo .logo-text {
  color: white;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 99;
}

.footer-logo p {
  font-size: .85rem;
  color: rgba(255, 255, 255, .4);
  margin-top: 2px;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: .85rem;
  color: rgba(255, 255, 255, .5);
  transition: color .2s;
}

.footer-links a:hover {
  color: white;
}

.footer-copy {
  font-size: .8rem;
  color: rgba(255, 255, 255, .3);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .uni-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
  }

  .nav-links.open {
    display: flex;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(11, 15, 26, .97);
    backdrop-filter: blur(16px);
    padding: 20px 24px 32px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    animation: slideDown .25s ease;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-links.open a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    color: rgba(255, 255, 255, .8);
  }

  .hamburger {
    display: flex;
  }

  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .section {
    padding: 72px 0;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .uni-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.4rem;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .uni-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    gap: 24px;
  }

  .contact-card {
    padding: 18px 20px;
  }
}

/* ===========================
   FLOATING CHAT WIDGET
   =========================== */
.chat-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.chat-social-btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.chat-widget.open .chat-social-btns {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

.chat-social-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  cursor: pointer;
}

.chat-social-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
}

.chat-social-btn.tg  { background: linear-gradient(135deg, #2CA5E0, #0e76a8); }
.chat-social-btn.wa  { background: linear-gradient(135deg, #25D366, #128C7E); }
.chat-social-btn.ig  { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

.chat-social-btn svg { width: 26px; height: 26px; }

.chat-toggle-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a6dfb, #0d4fcf);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 28px rgba(26, 109, 251, .5);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.chat-toggle-btn::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(26, 109, 251, 0.35);
  animation: chatPulse 2s ease-out infinite;
}

@keyframes chatPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.45); opacity: 0; }
}

.chat-toggle-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 36px rgba(26, 109, 251, .65);
}

.chat-icon-open,
.chat-icon-close {
  position: absolute;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.chat-icon-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}

.chat-widget.open .chat-icon-open  {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}

.chat-widget.open .chat-icon-close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* ===========================
   EDUCATION SECTION (main page)
   =========================== */
.edu-section {
  padding: 100px 0;
  background: var(--bg);
}

.edu-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.edu-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 320px;
  cursor: pointer;
  text-decoration: none;
  display: block;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.edu-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
}

.edu-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.edu-card:hover .edu-card-bg {
  transform: scale(1.07);
}

.edu-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.2) 55%, transparent 100%);
  transition: background 0.35s ease;
}

.edu-card:hover .edu-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 55%, transparent 100%);
}

.edu-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 28px 32px;
  color: white;
}

.edu-card-flag {
  font-size: 2.5rem;
  margin-bottom: 8px;
  display: block;
}

.edu-card-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -.02em;
}

.edu-card-sub {
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 14px;
}

.edu-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 700;
  color: white;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 100px;
  padding: 7px 18px;
  transition: background 0.2s;
}

.edu-card:hover .edu-card-cta {
  background: rgba(26,109,251,.75);
  border-color: rgba(26,109,251,.5);
}

/* Singapore */
.edu-sg .edu-card-bg {
  background: linear-gradient(160deg, #0f2b55 0%, #1a4b8c 30%, #2d6ecc 60%, #1a6dfb 100%);
}
.edu-sg .edu-card-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='320'%3E%3Cellipse cx='300' cy='280' rx='280' ry='60' fill='rgba(255,255,255,0.04)'/%3E%3Crect x='100' y='160' width='30' height='120' fill='rgba(255,255,255,0.07)'/%3E%3Crect x='150' y='130' width='40' height='150' fill='rgba(255,255,255,0.06)'/%3E%3Crect x='210' y='100' width='35' height='180' fill='rgba(255,255,255,0.08)'/%3E%3Crect x='270' y='80' width='28' height='200' fill='rgba(255,255,255,0.07)'/%3E%3Crect x='320' y='120' width='45' height='160' fill='rgba(255,255,255,0.06)'/%3E%3Crect x='385' y='90' width='32' height='190' fill='rgba(255,255,255,0.07)'/%3E%3Crect x='440' y='140' width='38' height='140' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E") center bottom / cover no-repeat;
}

/* Malaysia */
.edu-my .edu-card-bg {
  background: linear-gradient(160deg, #1a0a2e 0%, #2d1057 30%, #4a1a7a 60%, #6a2aaa 100%);
}
.edu-my .edu-card-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='320'%3E%3Cellipse cx='300' cy='290' rx='260' ry='50' fill='rgba(255,255,255,0.03)'/%3E%3Crect x='120' y='150' width='20' height='130' fill='rgba(255,255,255,0.07)'/%3E%3Crect x='160' y='80' width='16' height='200' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='168' cy='75' r='22' fill='rgba(255,255,255,0.06)'/%3E%3Crect x='200' y='100' width='22' height='180' fill='rgba(255,255,255,0.06)'/%3E%3Ccircle cx='211' cy='95' r='18' fill='rgba(255,255,255,0.05)'/%3E%3Crect x='280' y='120' width='40' height='160' fill='rgba(255,255,255,0.07)'/%3E%3Crect x='350' y='100' width='28' height='180' fill='rgba(255,255,255,0.06)'/%3E%3Crect x='400' y='140' width='35' height='140' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E") center bottom / cover no-repeat;
}

/* UK */
.edu-uk .edu-card-bg {
  background: linear-gradient(160deg, #0d1b2a 0%, #1b2a3b 30%, #1e3a5f 60%, #2d4f6e 100%);
}
.edu-uk .edu-card-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='320'%3E%3Cellipse cx='300' cy='295' rx='270' ry='40' fill='rgba(255,255,255,0.03)'/%3E%3Crect x='80' y='140' width='18' height='140' rx='2' fill='rgba(255,255,255,0.06)'/%3E%3Crect x='120' y='110' width='60' height='170' rx='3' fill='rgba(255,255,255,0.07)'/%3E%3Ccircle cx='150' cy='105' r='25' fill='rgba(255,255,255,0.05)'/%3E%3Crect x='135' y='80' width='8' height='30' fill='rgba(255,255,255,0.08)'/%3E%3Crect x='220' y='150' width='30' height='130' rx='2' fill='rgba(255,255,255,0.05)'/%3E%3Crect x='320' y='80' width='25' height='200' rx='2' fill='rgba(255,255,255,0.08)'/%3E%3Crect x='310' y='75' width='8' height='35' fill='rgba(255,255,255,0.1)'/%3E%3Crect x='380' y='130' width='45' height='150' rx='3' fill='rgba(255,255,255,0.06)'/%3E%3Crect x='450' y='160' width='28' height='120' rx='2' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E") center bottom / cover no-repeat;
}

@media (max-width: 768px) {
  .edu-cards {
    grid-template-columns: 1fr;
  }
  .edu-card {
    height: 260px;
  }
}

/* ===========================
   COUNTRY PAGE STYLES
   (used by singapore.html, malaysia.html, uk.html)
   =========================== */
.country-hero {
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  padding-bottom: 64px;
}

.country-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 40px;
  max-width: 700px;
}

.country-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.country-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.75) 0%, rgba(0,0,0,.2) 70%, transparent 100%);
  z-index: 1;
}

.country-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.85);
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 32px;
  transition: color .2s;
  text-decoration: none;
}
.country-back-btn:hover { color: white; }

.country-flag { font-size: 3rem; margin-bottom: 12px; display: block; }

.country-hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  color: white;
  margin-bottom: 12px;
  letter-spacing: -.03em;
}

.country-hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  max-width: 520px;
  line-height: 1.65;
}

.country-body {
  padding: 72px 0;
}

.country-body .container {
  display: grid;
  gap: 64px;
}

.country-section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: -.02em;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--border);
}

.cost-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cost-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}

.cost-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.cost-icon { font-size: 2rem; margin-bottom: 10px; }

.cost-label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.cost-amount {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}

.cost-note {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.pros-box, .cons-box {
  border-radius: var(--radius);
  padding: 28px;
}

.pros-box {
  background: rgba(34, 197, 94, .06);
  border: 1px solid rgba(34, 197, 94, .2);
}

.cons-box {
  background: rgba(239, 68, 68, .06);
  border: 1px solid rgba(239, 68, 68, .2);
}

.pros-box h3 { color: #16a34a; font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.cons-box h3 { color: #dc2626; font-size: 1rem; font-weight: 700; margin-bottom: 16px; }

.pros-box ul, .cons-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pros-box li::before { content: '✓  '; color: #16a34a; font-weight: 700; }
.cons-box li::before { content: '✗  '; color: #dc2626; font-weight: 700; }

.pros-box li, .cons-box li {
  font-size: .9rem;
  color: var(--text);
  line-height: 1.5;
}

.country-uni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.country-uni-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

.country-uni-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.country-uni-card img {
  height: 52px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.country-uni-card .uni-name {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.country-cta {
  background: linear-gradient(135deg, var(--primary-dk) 0%, #0d3a8a 100%);
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
  color: white;
}

.country-cta h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -.02em;
}

.country-cta p {
  color: rgba(255,255,255,.75);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .cost-grid { grid-template-columns: 1fr 1fr; }
  .pros-cons-grid { grid-template-columns: 1fr; }
  .country-hero-content { padding: 0 24px; }
}

@media (max-width: 480px) {
  .cost-grid { grid-template-columns: 1fr; }
}