@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Roboto+Condensed:wght@700&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --md-primary: #1565C0;
  --md-primary-dark: #0D47A1;
  --md-primary-light: #1E88E5;
  --md-secondary: #B71C1C;
  --md-surface: #FFFFFF;
  --md-surface-variant: #F5F5F5;
  --md-on-surface: #1C1B1F;
  --md-on-surface-variant: #49454F;
  --md-outline: #E0E0E0;
  --md-shadow-1: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --md-shadow-2: 0 3px 6px rgba(0,0,0,0.15), 0 2px 4px rgba(0,0,0,0.12);
  --md-shadow-3: 0 10px 20px rgba(0,0,0,0.15), 0 3px 6px rgba(0,0,0,0.10);
  --md-radius: 12px;
  --md-radius-sm: 8px;
  --md-radius-lg: 20px;
  --max-width: 1140px;
  --nav-height: 64px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Roboto', sans-serif; background: var(--md-surface-variant); color: var(--md-on-surface); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── TOP APP BAR ── */
.top-bar {
  position: sticky; top: 0; z-index: 100;
  background: var(--md-primary);
  color: #fff;
  height: var(--nav-height);
  box-shadow: var(--md-shadow-2);
  display: flex; align-items: center;
}
.top-bar__inner {
  max-width: var(--max-width); margin: 0 auto; width: 100%;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.top-bar__brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.15rem; font-weight: 700; letter-spacing: .3px;
  color: #fff;
}
.top-bar__brand svg { width: 34px; height: 34px; flex-shrink: 0; }
.top-bar__nav { display: flex; align-items: center; gap: 4px; }
.top-bar__nav a {
  color: rgba(255,255,255,.9);
  font-size: .875rem; font-weight: 500; letter-spacing: .4px;
  padding: 8px 14px; border-radius: 6px;
  transition: background .2s, color .2s;
  text-transform: uppercase;
}
.top-bar__nav a:hover, .top-bar__nav a.active { background: rgba(255,255,255,.15); color: #fff; }
.top-bar__nav .btn-cta {
  background: #fff; color: var(--md-primary);
  padding: 8px 18px; border-radius: 20px;
  font-weight: 700; margin-left: 8px;
  transition: background .2s, box-shadow .2s;
}
.top-bar__nav .btn-cta:hover { background: #E3F2FD; box-shadow: var(--md-shadow-1); }

/* Language toggle */
.lang-toggle {
  border: 1.5px solid rgba(255,255,255,.55) !important;
  border-radius: 6px !important;
  padding: 4px 10px !important;
  font-size: .75rem !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  color: rgba(255,255,255,.9) !important;
  background: transparent !important;
  margin-left: 6px;
  text-transform: uppercase !important;
  transition: background .2s, border-color .2s !important;
}
.lang-toggle:hover { background: rgba(255,255,255,.2) !important; border-color: #fff !important; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown__menu {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  background: #fff; border-radius: var(--md-radius-sm);
  box-shadow: var(--md-shadow-3);
  min-width: 240px; overflow: hidden; z-index: 200;
}
.dropdown.open .dropdown__menu { display: block; }
/* CSS hover for pointer devices (desktop) — works independently of JS */
@media (hover: hover) and (pointer: fine) {
  .dropdown:hover .dropdown__menu { display: block; }
}
.dropdown__menu a {
  display: flex; align-items: center; gap: 10px;
  color: var(--md-on-surface) !important;
  padding: 12px 20px; font-size: .875rem;
  text-transform: none !important; border-radius: 0 !important;
  transition: background .15s;
}
.dropdown__menu a:hover { background: #E3F2FD !important; }
.dropdown__menu a .material-icons { font-size: 18px; color: var(--md-primary); }

/* Hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: #fff; }
.hamburger .material-icons { font-size: 28px; }

/* ── HERO ── */
.hero {
  background: var(--md-primary-dark);
  color: #fff; padding: 80px 24px 90px;
  position: relative; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; opacity: 0.45; z-index: 0; pointer-events: none; }
.hero::after {
  content: ''; position: absolute; right: -100px; top: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}
.hero__inner { max-width: var(--max-width); margin: 0 auto; position: relative; z-index: 1; }
.hero__badge {
  display: inline-block; background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 20px; padding: 4px 14px; font-size: .8rem;
  letter-spacing: .8px; text-transform: uppercase; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; line-height: 1.15; margin-bottom: 16px; }
.hero p { font-size: 1.1rem; opacity: .9; max-width: 560px; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 24px; font-size: .95rem; font-weight: 500; cursor: pointer; border: none; transition: all .2s; text-decoration: none; }
.btn-primary { background: #fff; color: var(--md-primary); }
.btn-primary:hover { background: #E3F2FD; box-shadow: var(--md-shadow-2); }
.btn-outline { border: 2px solid rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-filled { background: var(--md-primary); color: #fff; }
.btn-filled:hover { background: var(--md-primary-dark); box-shadow: var(--md-shadow-2); }

/* ── SECTION ── */
.section { padding: 64px 24px; }
.section--alt { background: #fff; }
.section__inner { max-width: var(--max-width); margin: 0 auto; }
.section__label { color: var(--md-primary); font-size: .8rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; }
.section__title { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; color: var(--md-on-surface); margin-bottom: 12px; }
.section__subtitle { font-size: 1.05rem; color: var(--md-on-surface-variant); max-width: 640px; margin-bottom: 40px; }
.section--center { text-align: center; }
.section--center .section__subtitle { margin-left: auto; margin-right: auto; }

/* ── GRID ── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

/* ── CARD ── */
.card {
  background: #fff; border-radius: var(--md-radius);
  box-shadow: var(--md-shadow-1);
  overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--md-shadow-3); transform: translateY(-2px); }
.card__icon { width: 56px; height: 56px; border-radius: 14px; background: #E3F2FD; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.card__icon .material-icons { color: var(--md-primary); font-size: 28px; }
.card__body { padding: 28px; }
.card__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--md-on-surface); }
.card__text { font-size: .9rem; color: var(--md-on-surface-variant); line-height: 1.65; }
.card__link { display: inline-flex; align-items: center; gap: 4px; color: var(--md-primary); font-size: .875rem; font-weight: 500; margin-top: 14px; }
.card__link:hover { text-decoration: underline; }
.card__image { height: 200px; background: #E3F2FD; overflow: hidden; }
.card__image img { width: 100%; height: 100%; object-fit: cover; }

/* ── STAT BAR ── */
.stat-bar { background: var(--md-primary-dark); color: #fff; padding: 40px 24px; }
.stat-bar__inner { max-width: var(--max-width); margin: 0 auto; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-around; }
.stat-item { text-align: center; }
.stat-item__num { font-size: 2.4rem; font-weight: 700; display: block; }
.stat-item__label { font-size: .875rem; opacity: .8; }

/* ── FEATURE BLOCK ── */
.feature-block { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 60px; }
.feature-block:last-child { margin-bottom: 0; }
.feature-block--reverse .feature-block__image { order: 2; }
.feature-block--reverse .feature-block__content { order: 1; }
.feature-block__image { border-radius: var(--md-radius-lg); overflow: hidden; box-shadow: var(--md-shadow-3); background: #E3F2FD; aspect-ratio: 4/3; }
.feature-block__image img { width: 100%; height: 100%; object-fit: cover; }
.feature-block__icon { width: 52px; height: 52px; border-radius: 14px; background: #E3F2FD; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature-block__icon .material-icons { color: var(--md-primary); font-size: 26px; }
.feature-block__title { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.feature-block__text { color: var(--md-on-surface-variant); line-height: 1.75; }

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(135deg, var(--md-primary-dark) 0%, var(--md-primary-light) 100%);
  color: #fff; padding: 56px 24px 64px;
}
.page-hero__inner { max-width: var(--max-width); margin: 0 auto; }
.page-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 700; margin-bottom: 10px; }
.page-hero p { font-size: 1.05rem; opacity: .9; max-width: 600px; }
.page-hero__breadcrumb { font-size: .8rem; opacity: .7; margin-bottom: 14px; letter-spacing: .3px; }
.page-hero__breadcrumb a { opacity: .85; }
.page-hero__breadcrumb a:hover { opacity: 1; text-decoration: underline; }

/* ── CONTACT SECTION ── */
.contact-strip {
  background: #fff; border-radius: var(--md-radius-lg);
  box-shadow: var(--md-shadow-2);
  padding: 40px; margin: 48px auto 0;
  max-width: var(--max-width);
}
.contact-strip__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-strip h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; }
.contact-strip p { color: var(--md-on-surface-variant); margin-bottom: 20px; }
.contact-info { display: flex; flex-direction: column; gap: 12px; }
.contact-info__item { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.contact-info__item .material-icons { color: var(--md-primary); font-size: 20px; }
.offices-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; margin-top: 10px; }
.offices-grid span { font-size: .9rem; color: var(--md-on-surface-variant); display: flex; align-items: center; gap: 6px; }
.offices-grid span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--md-primary); flex-shrink: 0; }
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-links a { width: 40px; height: 40px; border-radius: 50%; background: #E3F2FD; display: flex; align-items: center; justify-content: center; transition: background .2s; color: var(--md-primary); font-weight: 700; font-size: .8rem; }
.social-links a:hover { background: var(--md-primary); color: #fff; }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: .85rem; font-weight: 500; color: var(--md-on-surface-variant); }
.form-field input, .form-field select, .form-field textarea {
  padding: 12px 16px; border: 1.5px solid var(--md-outline);
  border-radius: var(--md-radius-sm); font-family: 'Roboto', sans-serif;
  font-size: .95rem; color: var(--md-on-surface); background: #fff;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--md-primary); box-shadow: 0 0 0 3px rgba(21,101,192,.12);
}
.form-field textarea { resize: vertical; min-height: 80px; }
.form-submit { background: var(--md-primary); color: #fff; border: none; padding: 13px 32px; border-radius: 24px; font-family: 'Roboto', sans-serif; font-size: .95rem; font-weight: 500; cursor: pointer; align-self: flex-start; transition: background .2s, box-shadow .2s; }
.form-submit:hover { background: var(--md-primary-dark); box-shadow: var(--md-shadow-2); }

/* ── FAQ ── */
.faq-item { background: #fff; border-radius: var(--md-radius-sm); box-shadow: var(--md-shadow-1); margin-bottom: 12px; overflow: hidden; }
.faq-question { padding: 20px 24px; font-weight: 500; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; transition: background .2s; }
.faq-question:hover { background: #F5F5F5; }
.faq-question .material-icons { color: var(--md-primary); transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-question .material-icons { transform: rotate(180deg); }
.faq-answer { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s; color: var(--md-on-surface-variant); line-height: 1.75; font-size: .95rem; }
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 20px; }

/* ── BLOG ── */
.blog-card { background: #fff; border-radius: var(--md-radius); box-shadow: var(--md-shadow-1); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.blog-card:hover { box-shadow: var(--md-shadow-3); transform: translateY(-2px); }
.blog-card__img { height: 180px; background: linear-gradient(135deg, var(--md-primary) 0%, var(--md-primary-light) 100%); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.blog-card__img .material-icons { font-size: 56px; color: rgba(255,255,255,.5); }
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__body { padding: 24px; }
.blog-card__meta { font-size: .8rem; color: var(--md-on-surface-variant); margin-bottom: 8px; }
.blog-card__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.blog-card__excerpt { font-size: .9rem; color: var(--md-on-surface-variant); line-height: 1.6; }
.blog-card__link { display: inline-flex; align-items: center; gap: 4px; color: var(--md-primary); font-size: .875rem; font-weight: 500; margin-top: 12px; }
.blog-card__link:hover { text-decoration: underline; }

/* ── PROGRAMS LIST ── */
.program-row { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; background: #fff; border-radius: var(--md-radius); box-shadow: var(--md-shadow-1); padding: 24px 28px; margin-bottom: 16px; transition: box-shadow .2s, transform .2s; }
.program-row:hover { box-shadow: var(--md-shadow-3); transform: translateX(4px); }
.program-row__num { font-size: 2rem; font-weight: 700; color: var(--md-primary); opacity: .2; }
.program-row__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.program-row__text { font-size: .9rem; color: var(--md-on-surface-variant); }
.program-row__link { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #E3F2FD; color: var(--md-primary); flex-shrink: 0; transition: background .2s; }
.program-row__link:hover { background: var(--md-primary); color: #fff; }

/* ── CHIP ── */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 20px; background: #E3F2FD; color: var(--md-primary); font-size: .8rem; font-weight: 500; }
.chip .material-icons { font-size: 16px; }

/* ── ALERT BOX ── */
.info-box { background: #E3F2FD; border-left: 4px solid var(--md-primary); border-radius: 0 var(--md-radius-sm) var(--md-radius-sm) 0; padding: 16px 20px; margin: 24px 0; font-size: .95rem; }
.info-box strong { display: block; color: var(--md-primary); margin-bottom: 4px; }

/* ── FOOTER ── */
footer {
  background: #0D1B2A; color: rgba(255,255,255,.85);
  padding: 56px 24px 32px;
  margin-top: 0;
}
.footer__inner { max-width: var(--max-width); margin: 0 auto; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 48px; }
.footer__brand { font-family: 'Roboto Condensed', sans-serif; font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer__tagline { font-size: .875rem; opacity: .7; line-height: 1.6; }
.footer__heading { font-size: .7rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 14px; }
.footer__links { display: flex; flex-direction: column; gap: 8px; }
.footer__links a { font-size: .875rem; opacity: .75; transition: opacity .2s; }
.footer__links a:hover { opacity: 1; text-decoration: underline; }
.footer__contact-item { display: flex; align-items: flex-start; gap: 8px; font-size: .875rem; opacity: .8; margin-bottom: 10px; }
.footer__contact-item .material-icons { font-size: 18px; flex-shrink: 0; margin-top: 2px; opacity: .7; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: .8rem; opacity: .55; }

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--md-outline); margin: 40px 0; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .grid-hero, .feature-block, .contact-strip__grid, .footer__grid { grid-template-columns: 1fr; }
  .feature-block--reverse .feature-block__image { order: 0; }
  .feature-block--reverse .feature-block__content { order: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .top-bar__nav { display: none; }
  .top-bar__nav.open { display: flex; flex-direction: column; position: fixed; top: var(--nav-height); left: 0; right: 0; background: var(--md-primary-dark); padding: 16px; gap: 4px; box-shadow: var(--md-shadow-3); z-index: 99; }
  .top-bar__nav.open a { padding: 12px 16px; }
  .top-bar__nav.open .btn-cta { border-radius: 6px; margin-left: 0; }
  .dropdown__menu { position: static; box-shadow: none; background: rgba(255,255,255,.08); border-radius: var(--md-radius-sm); }
  .dropdown__menu a { color: rgba(255,255,255,.9) !important; }
  .hamburger { display: flex; }
  .hero { padding: 48px 20px 56px; }
  .section { padding: 48px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .stat-bar__inner { flex-direction: column; align-items: center; }
  .program-row { grid-template-columns: 1fr; gap: 12px; }
  .program-row__num { font-size: 1.2rem; }
}

/* ── UTILS ── */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.color-primary { color: var(--md-primary); }
.font-bold { font-weight: 700; }
.w-full { width: 100%; }
