/* ==========================================================================
   bestschoolguidesikar.com - Premium UI (no frameworks)
   ========================================================================== */

:root {
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --muted-2: #64748b;
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 18px 45px rgba(15, 23, 42, 0.14);
  --accent: #3b82f6;
  --accent-2: #60a5fa;
  --radius: 12px;
  --container: 1120px;
  --ring: 0 0 0 4px rgba(59, 130, 246, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.euro-link {
  color: #f97316;
  text-decoration: underline;
  font-weight: 500;
}

.euro-link:hover {
  color: #ea6a00;
}

.container {
  max-width: var(--container);
  padding: 0 20px;
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 9999;
  background: var(--bg);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: none;
  box-shadow: var(--shadow), var(--ring);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(10px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}

.logo {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 18px;
  white-space: nowrap;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav--simple {
  gap: 14px;
}

.nav-link {
  font-weight: 500;
  color: var(--muted);
  padding: 10px 10px;
  border-radius: 10px;
  transition: background 160ms ease, color 160ms ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(59, 130, 246, 0.08);
}

.nav-link.is-active {
  color: var(--text);
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease;
  cursor: pointer;
}

.icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.10);
}

.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  background: currentColor;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  color: var(--muted);
}

.icon-search {
  -webkit-mask-image: radial-gradient(circle at 60% 40%, #000 0 35%, transparent 36%),
    linear-gradient(#000, #000);
  -webkit-mask-composite: source-over;
  -webkit-mask-position: 0 0, 70% 70%;
  -webkit-mask-size: 100% 100%, 42% 12%;
  -webkit-mask-repeat: no-repeat;
  transform: rotate(45deg);
}

.icon-twitter {
  -webkit-mask-image: linear-gradient(#000, #000);
  mask-image: linear-gradient(#000, #000);
}

.icon-instagram {
  -webkit-mask-image: linear-gradient(#000, #000);
  mask-image: linear-gradient(#000, #000);
}

.icon-linkedin {
  -webkit-mask-image: linear-gradient(#000, #000);
  mask-image: linear-gradient(#000, #000);
}

/* Schools Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown__trigger {
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dropdown-chevron {
  font-size: 11px;
  display: inline-block;
  transition: transform 160ms ease;
  line-height: 1;
}

.nav-dropdown.is-open .dropdown-chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 210px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  display: grid;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  backdrop-filter: blur(10px);
  z-index: 100;
}

.nav-dropdown.is-open .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: background 160ms ease, color 160ms ease;
}

.dropdown-item:hover {
  background: rgba(59, 130, 246, 0.08);
  color: var(--text);
}

.dropdown-item--all {
  color: var(--accent);
  font-weight: 600;
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 12px;
}

.dropdown-item--all:hover {
  background: rgba(59, 130, 246, 0.10);
}

/* School Cards */
.school-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.school-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  padding: 20px;
  display: grid;
  gap: 10px;
  align-content: start;
  transform: translateY(0);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.school-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(59, 130, 246, 0.20);
}

.school-card__rank {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.10);
  border: 1px solid rgba(59, 130, 246, 0.18);
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  width: fit-content;
}

.school-card__name {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.3;
}

.school-card__desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.school-card__link {
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
}

.school-card__link:hover {
  text-decoration: underline;
}

/* School Guide Section */
.school-guide-intro {
  text-align: left;
  color: var(--muted);
  font-size: 15px;
  max-width: 760px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.school-guide-subheading {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  padding: 10px 10px;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  margin: 5px 0;
  transition: transform 160ms ease, opacity 160ms ease;
}

body.nav-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 30px;
  background:
    radial-gradient(1200px 420px at 18% 20%, rgba(59, 130, 246, 0.18), transparent 60%),
    radial-gradient(900px 360px at 72% 25%, rgba(96, 165, 250, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(59, 130, 246, 0.06), rgba(255, 255, 255, 0));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  background: rgba(255, 255, 255, 0.65);
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 14px;
}

.hero-title {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin: 0 0 12px;
}

.hero-subtitle {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
}

.hero-hint {
  margin: 12px 0 0;
  color: var(--muted-2);
  font-size: 13px;
}

.hero-media {
  display: grid;
  justify-items: end;
}

.hero-card {
  width: min(420px, 100%);
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(59, 130, 246, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.64)),
    radial-gradient(900px 500px at 30% 20%, rgba(59, 130, 246, 0.18), transparent 55%);
  box-shadow: var(--shadow);
  padding: 20px;
}

.hero-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.10);
  color: var(--accent);
  font-weight: 600;
  font-size: 12px;
}

.hero-card__title {
  margin: 12px 0 10px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 18px;
  line-height: 1.25;
}

.hero-card__meta {
  color: var(--muted-2);
  font-size: 13px;
}

/* Search */
.search {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.search-input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
}

.search-input:focus {
  box-shadow: var(--ring);
  border-radius: 12px;
}

/* Sections */
.section {
  padding: 46px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.03), rgba(255, 255, 255, 0));
}

.section-head {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.section-title {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Grid + Cards */
.grid {
  display: grid;
  gap: 18px;
}

.grid-featured {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-latest {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transform: translateY(0);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(59, 130, 246, 0.20);
}

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 250ms ease;
}

.card:hover .card-img {
  transform: scale(1.06);
}

.badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(59, 130, 246, 0.18);
  color: var(--accent);
  font-weight: 600;
  font-size: 12px;
  backdrop-filter: blur(10px);
}

.badge--solid {
  position: static;
  display: inline-flex;
  background: rgba(59, 130, 246, 0.10);
  border: 1px solid rgba(59, 130, 246, 0.18);
}

.card-body {
  padding: 16px 16px 14px;
}

.card-title {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.card-title__link:hover {
  color: var(--accent);
}

.card-excerpt {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
  font-size: 12px;
}

.dot {
  opacity: 0.7;
}

/* Buttons + inputs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
  user-select: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 16px 28px rgba(59, 130, 246, 0.22);
}

.btn-primary:hover {
  background: #2f74ef;
  box-shadow: 0 18px 34px rgba(59, 130, 246, 0.28);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(59, 130, 246, 0.08);
  color: var(--accent);
  border-color: rgba(59, 130, 246, 0.16);
}

.btn-ghost:hover {
  background: rgba(59, 130, 246, 0.12);
  transform: translateY(-1px);
}

.input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 12px 12px;
  outline: none;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.9);
}

.input:focus {
  box-shadow: var(--ring);
  border-color: rgba(59, 130, 246, 0.35);
}

/* Newsletter */
.newsletter {
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(59, 130, 246, 0.16);
  background:
    radial-gradient(900px 460px at 18% 20%, rgba(59, 130, 246, 0.10), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.75));
  box-shadow: var(--shadow);
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}

.newsletter-title {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.newsletter-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 280px auto;
  gap: 10px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 34px 0 18px;
}

.footer--compact {
  padding: 18px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.footer-logo {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.footer-logo span {
  color: var(--accent);
}

.footer-text {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.footer-title {
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 13px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 500;
  transition: color 160ms ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.social {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  background: rgba(59, 130, 246, 0.06);
  transition: transform 160ms ease, background 160ms ease;
}

.social-link:hover {
  transform: translateY(-1px);
  background: rgba(59, 130, 246, 0.10);
}

.footer-bottom {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 12px;
}

/* Reading layout (blog.html) */
.post {
  display: grid;
  justify-items: center;
}

.post-shell {
  width: 100%;
  max-width: 800px;
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 14px;
  transition: color 160ms ease;
}

.post-back:hover {
  color: var(--accent);
}

.post-head {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.post-title {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 38px);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.post-meta {
  color: var(--muted-2);
  font-size: 13px;
}

.post-media {
  margin: 16px 0 0;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.10);
}

.post-img {
  width: 100%;
  height: auto;
  display: block;
}

.prose {
  margin-top: 18px;
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
}

.prose p {
  margin: 0 0 14px;
  color: rgba(15, 23, 42, 0.92);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.link {
  color: var(--accent);
  font-weight: 600;
}

.link:hover {
  text-decoration: underline;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(10px);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 500ms ease, transform 500ms ease;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    justify-items: start;
  }

  .grid-featured,
  .grid-latest {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .school-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .newsletter {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    grid-template-columns: 1fr auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .header-inner {
    grid-template-columns: 1fr auto auto;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 74px;
    display: grid;
    gap: 6px;
    padding: 12px;
    border-radius: calc(var(--radius) + 8px);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  body.nav-open .nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav--simple {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    display: none; /* keep blog header minimal on small screens */
  }

  .grid-featured,
  .grid-latest {
    grid-template-columns: 1fr;
  }

  .school-grid {
    grid-template-columns: 1fr;
  }

  .dropdown-menu {
    left: 0;
    transform: translateX(0) translateY(-6px);
  }

  .nav-dropdown.is-open .dropdown-menu {
    transform: translateX(0) translateY(0);
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

