﻿:root {
      --page-bg: #ffffff;
      --panel: #ffffff;
      --ink: #1c2742;
      --muted: #5f6e8e;
      --blue: #1968de;
      --blue-2: #0f4fb0;
      --line: #e7edf8;
      --soft: #ffffff;
      --green: #1fbf75;
      --orange: #f8a01a;
      --radius: 30px;
      --card-a: linear-gradient(145deg, #e6f4ff 0%, #fdf4e8 100%);
      --card-b: linear-gradient(145deg, #d9ecf6 0%, #f2dce7 100%);
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: "Noto Sans Bengali", "Hind Siliguri", "Nirmala UI", "Vrinda", sans-serif;
      background: #ffffff;
      color: var(--ink);
      padding-top: 64px;
    }

    html[data-lang="en"] body {
      font-family: "Inter", "Segoe UI", "Noto Sans", Arial, sans-serif;
    }

    .google-translate-host {
      position: absolute;
      width: 0;
      height: 0;
      overflow: hidden;
      opacity: 0;
      pointer-events: none;
    }

    .goog-te-banner-frame.skiptranslate {
      display: none !important;
    }

    body {
      top: 0 !important;
    }

    .site-wrap {
      max-width: 1220px;
      margin: 0 auto 12px;
      background: var(--panel);
      border-radius: var(--radius);
      padding: 22px;
      box-shadow: 0 30px 70px rgba(37, 73, 138, 0.15);
    }

    .hero-panel {
      border-radius: 24px;
      border: 1px solid var(--line);
      padding: 4px 26px 0;
      background: #ffffff;
      margin-top: 8px;
    }

    .nav {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 24px;
      padding-bottom: 2px;
      padding-top: 2px;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      width: 100%;
      padding-left: 14px;
      padding-right: 14px;
      box-sizing: border-box;
      background: #ffffff;
      z-index: 2000;
      border-radius: 0;
      box-shadow: 0 2px 8px rgba(37, 73, 138, 0.08);
      max-height: 60px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 0px;
      min-width: auto;
    }

    .brand-mark {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      display: grid;
      place-items: center;
      overflow: hidden;
      box-shadow: 0 10px 18px rgba(26, 87, 177, 0.2);
      flex-shrink: 0;
    }

    .brand-mark img {
      width: 100%;
      height: 100%;
      display: block;
    }

    .brand-logo {
      flex-shrink: 0;
    }

    .bta-logo-main {
      height: auto;
      width: 110px;
      display: block;
    }

    .brand-info {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .brand h1 {
      margin: 0;
      font-size: 20px;
      line-height: 1;
      color: #143676;
    }

    .brand-text {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .brand-text-icon {
      width: 24px;
      height: 24px;
      display: block;
    }

    .brand p {
      margin: 2px 0 0;
      font-size: 11px;
      color: var(--muted);
    }

    .menu {
      list-style: none;
      display: flex;
      padding: 12px 8px;
      gap: 12px;
      font-size: 16px;
      font-weight: 500;
      border-radius: 999px;
      background: linear-gradient(130deg, rgba(43, 125, 250, 0.14) 0%, rgba(31, 191, 117, 0.12) 100%);
      border: 1px solid rgba(163, 191, 236, 0.55);
      backdrop-filter: blur(8px);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    }

    .menu a {
      color: #27314f;
      text-decoration: none;
      padding: 4px 8px;
      border-radius: 999px;
      transition: color 0.2s ease, background-color 0.2s ease;
    }

    .menu a:hover {
      color: var(--blue);
      background: rgba(255, 255, 255, 0.55);
    }

    .menu-auth-item {
      list-style: none;
      display: none;
    }

    .menu-auth-link {
      display: block;
      text-align: center;
      border-radius: 10px;
      padding: 9px 12px;
      font-size: 14px;
      font-weight: 700;
    }

    .menu-auth-link.btn.outline {
      background: #fff;
      border: 1px solid #cddbf2;
    }

    .menu-auth-link.btn.primary {
      color: #fff;
      background: linear-gradient(135deg, #0f4fb0, #1a68de);
      box-shadow: none;
    }

    .nav-actions {
      display: flex;
      gap: 10px;
      align-items: center;
    }

    .btn {
      border: 0;
      border-radius: 10px;
      padding: 10px 18px;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      text-decoration: none;
      display: inline-block;
    }

    .btn.outline {
      background: #fff;
      color: #0f234f;
      border: 1px solid #ccdaef;
    }

    .btn.primary {
      color: #fff;
      background: linear-gradient(135deg, #0f4fb0, #1a68de);
      box-shadow: 0 10px 22px rgba(24, 97, 210, 0.28);
    }

    .lang-toggle {
      border: 1px solid #c9daf5;
      border-radius: 999px;
      background: #ffffff;
      color: #1f417c;
      min-width: 48px;
      height: 36px;
      padding: 0 10px;
      font-size: 12px;
      font-weight: 700;
      line-height: 1;
      letter-spacing: 0.2px;
      cursor: pointer;
      box-shadow: 0 8px 16px rgba(23, 71, 145, 0.12);
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    }

    .lang-toggle:hover {
      transform: translateY(-1px);
      border-color: #9ec0ef;
      box-shadow: 0 11px 18px rgba(23, 71, 145, 0.16);
    }

    .menu-toggle {
      display: none;
      border: 1px solid #ccdaef;
      border-radius: 8px;
      width: 42px;
      height: 38px;
      padding: 0;
      background: #fff;
      color: #254376;
      font-size: 22px;
      line-height: 1;
      cursor: pointer;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1.06fr 0.94fr;
      gap: 12px;
      align-items: center;
      padding: 20px 0 14px;
    }

    .hero-copy h2 {
      margin: 0;
      font-size: clamp(38px, 4vw, 64px);
      line-height: 1.15;
      letter-spacing: -0.3px;
      max-width: 640px;
    }

    .hero-copy h2 span {
      color: var(--blue);
    }

    .hero-copy p {
      margin: 24px 0;
      font-size: 24px;
      line-height: 1.6;
      color: #455474;
      max-width: 620px;
    }

    .hero-media {
      min-height: 430px;
      position: relative;
      padding: 20px;
    }

    .media-core {
      min-height: 420px;
      border-radius: 26px;
      background: linear-gradient(145deg, #2a77e8 0%, #58a6ff 56%, #bcdcff 100%);
      box-shadow: 0 22px 44px rgba(30, 95, 188, 0.24);
      position: relative;
      overflow: hidden;
    }

    .student-life {
      display: grid;
      grid-template-columns: 1.03fr 0.97fr;
      gap: 16px;
      padding: 18px;
      align-items: stretch;
    }

    .media-core::before {
      content: "";
      width: 176px;
      height: 210px;
      border-radius: 50%;
      position: absolute;
      right: -24px;
      top: -40px;
      background: rgba(255, 255, 255, 0.14);
    }

    .media-core::after {
      content: "";
      width: 280px;
      height: 280px;
      border-radius: 50%;
      position: absolute;
      left: -96px;
      bottom: -150px;
      background: rgba(255, 255, 255, 0.16);
    }

    .status-badge {
      position: absolute;
      top: 20px;
      left: 20px;
      z-index: 3;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.26);
      color: #0f3b83;
      font-size: 13px;
      font-weight: 600;
      padding: 8px 14px;
      border: 1px solid rgba(255, 255, 255, 0.66);
      box-shadow: 0 8px 18px rgba(21, 77, 156, 0.2);
      backdrop-filter: blur(6px);
      animation: badgeZoom 1.8s ease-in-out infinite;
    }

    @keyframes badgeZoom {
      0% {
        transform: scale(1);
      }
      50% {
        transform: scale(1.08);
      }
      100% {
        transform: scale(1);
      }
    }

    .hero-portrait {
      min-height: 360px;
      border-radius: 22px;
      border: 1px solid rgba(255, 255, 255, 0.38);
      background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(21, 74, 145, 0.16)),
        url("./images/hero-bg.jpg");
      background-size: cover;
      background-position: center top;
      box-shadow: 0 18px 36px rgba(18, 67, 136, 0.2);
      position: relative;
      z-index: 1;
    }

    .hero-portrait::after {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: 22px;
      background: linear-gradient(125deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 44%);
      pointer-events: none;
    }

    .hero-side {
      display: flex;
      flex-direction: column;
      gap: 14px;
      justify-content: flex-end;
      position: relative;
      z-index: 2;
    }

    .quick-panel {
      margin: 0;
      border-radius: 18px;
      background: var(--card-a);
      color: #152c57;
      padding: 16px 16px 14px;
      box-shadow: 0 12px 26px rgba(8, 27, 61, 0.2);
    }

    .quick-panel h4 {
      margin: 0 0 10px;
      font-size: 18px;
      color: #103b84;
    }

    .quick-panel ul {
      margin: 0;
      padding-left: 20px;
      display: grid;
      gap: 7px;
      font-size: 20px;
      line-height: 1.45;
      color: #27406c;
    }

    .mini-insight {
      display: grid;
      grid-template-columns: 1fr;
      gap: 10px;
    }

    .insight-pill {
      border-radius: 15px;
      padding: 10px 12px;
      background: linear-gradient(135deg, rgba(32, 93, 187, 0.78), rgba(68, 146, 255, 0.76));
      color: #fff;
      border: 1px solid rgba(255, 255, 255, 0.25);
      box-shadow: 0 10px 22px rgba(25, 83, 173, 0.22);
    }

    .insight-pill strong {
      display: block;
      font-size: 18px;
      margin-bottom: 3px;
      line-height: 1.15;
    }

    .insight-pill span {
      font-size: 13px;
      color: rgba(255, 255, 255, 0.88);
    }

    .trust {
      margin-top: 20px;
      background: linear-gradient(135deg, var(--blue-2), var(--blue));
      border-radius: 14px;
      padding: 14px;
      display: flex;
      grid-template-columns: auto 1fr;
      align-items: center;
      justify-content: center;
      gap: 16px;
      color: #fff;
    }

    .rating-pill {
      background: #fff;
      color: #173f88;
      font-size: 15px;
      font-weight: 700;
      border-radius: 999px;
      padding: 10px 14px;
      white-space: nowrap;
    }

    .partner-logos {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
      justify-content: center;
    }

    .flag-chip {
      background: #fff;
      color: #163f88;
      padding: 8px 11px;
      border-radius: 999px;
      font-size: 13px;
      font-weight: 700;
      text-align: center;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      box-shadow: 0 8px 18px rgba(6, 38, 95, 0.2);
      animation: floatFlag 3.4s ease-in-out infinite;
      text-decoration: none;
    }

    .flag-chip:nth-child(2n) {
      animation-duration: 3.8s;
      animation-delay: 0.25s;
    }

    .flag-chip:nth-child(3n) {
      animation-duration: 4.2s;
      animation-delay: 0.45s;
    }

    .flag-chip img {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      object-fit: cover;
      border: 1px solid #d8e6ff;
      flex-shrink: 0;
    }

    .flag-chip:focus-visible {
      outline: 2px solid var(--blue, #1e40af);
      outline-offset: 2px;
    }

    @keyframes floatFlag {
      0% { transform: translateY(0); }
      50% { transform: translateY(-4px); }
      100% { transform: translateY(0); }
    }

    .section {
      padding: 12px 12px 8px;
    }

    .section-head {
      text-align: center;
      margin-bottom: 30px;
    }

    .section-head p {
      margin: 0;
      color: var(--blue);
      font-size: 30px;
      font-weight: 600;
    }

    .section-head h3 {
      margin: 8px 0 0;
      font-size: clamp(34px, 3.2vw, 52px);
      line-height: 1.2;
    }

    .muted-note {
      margin: 16px auto 0;
      max-width: 900px;
      color: var(--muted);
      font-size: 22px;
      line-height: 1.6;
    }

    .stats-grid {
      margin-top: 26px;
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 16px;
      max-width: 980px;
      margin-left: auto;
      margin-right: auto;
    }

    .stat {
      position: relative;
      border: 1px solid var(--line);
      background: var(--card-a);
      border-radius: 16px;
      padding: 20px 12px;
      text-align: center;
      overflow: hidden;
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    }

    .stat::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: 16px;
      padding: 2px;
      background: linear-gradient(120deg, #2b7dfa, #21b3a3, #ff9f43, #a855f7);
      opacity: 0;
      transition: opacity 0.2s ease;
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      pointer-events: none;
    }

    .stat:nth-child(2) {
      background: var(--card-b);
    }

    .stat:nth-child(3) {
      background: var(--card-a);
    }

    .stat:nth-child(4) {
      background: var(--card-b);
    }

    .stat:nth-child(5) {
      background: var(--card-a);
    }

    .stat:hover {
      transform: translateY(-4px);
      box-shadow: 0 14px 24px rgba(33, 83, 160, 0.14);
    }

    .stat:hover::before {
      opacity: 1;
    }

    .stat .icon {
      width: 64px;
      height: 64px;
      margin: 0 auto 8px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: #edf4ff;
      border: 1px solid #d7e5fb;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    }

    .stat .icon img {
      width: 36px;
      height: 36px;
      display: block;
    }

    .stat:nth-child(2) .icon { background: #fff2f5; border-color: #ffd5df; }
    .stat:nth-child(3) .icon { background: #ecfff8; border-color: #c9f2e2; }
    .stat:nth-child(4) .icon { background: #fff6e9; border-color: #ffdbae; }
    .stat:nth-child(5) .icon { background: #f4ebff; border-color: #e0c9ff; }

    .stat b {
      display: block;
      font-size: 44px;
      color: #202c48;
    }

    .stat span {
      color: #60708f;
      font-size: 18px;
    }

    .pill-row {
      margin: 18px 0 10px;
      display: flex;
      justify-content: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    .pill {
      background: #f0f5ff;
      color: #274d91;
      border-radius: 999px;
      padding: 7px 12px;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      user-select: none;
      transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    }

    .pill:hover {
      transform: translateY(-1px);
    }

    .pill.active {
      background: var(--blue);
      color: #fff;
    }

    .cards-grid {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 14px;
      margin-top: 18px;
    }

    .countries-more-wrap {
      margin-top: 14px;
      display: flex;
      justify-content: center;
    }

    .countries-more-btn {
      border: 0;
      border-radius: 10px;
      padding: 10px 16px;
      font-size: 14px;
      font-weight: 700;
      color: #fff;
      background: linear-gradient(135deg, var(--blue), var(--blue-2));
      box-shadow: 0 10px 20px rgba(23, 64, 130, 0.24);
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .countries-more-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 14px 24px rgba(23, 64, 130, 0.28);
    }

    .resource-highlights {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
      margin-top: 14px;
    }

    .r-highlight {
      position: relative;
      border: 1px solid #d8e5fb;
      border-radius: 14px;
      padding: 12px;
      background: var(--card-a);
      backdrop-filter: blur(2px);
      text-align: center;
      overflow: hidden;
      transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    }

    .r-highlight:nth-child(2) {
      background: var(--card-b);
    }

    .r-highlight:nth-child(3) {
      background: var(--card-a);
    }

    .r-highlight:nth-child(4) {
      background: var(--card-b);
    }

    .r-highlight::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: 14px;
      padding: 2px;
      background: linear-gradient(120deg, #2b7dfa, #21b3a3, #ff9f43, #a855f7);
      opacity: 0;
      transition: opacity 0.22s ease;
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      pointer-events: none;
    }

    .r-highlight:hover {
      transform: translateY(-4px);
      border-color: transparent;
      box-shadow: 0 14px 24px rgba(35, 89, 173, 0.18);
    }

    .r-highlight:hover::before {
      opacity: 1;
    }

    .r-highlight b {
      display: block;
      font-size: 26px;
      color: #154a9b;
      line-height: 1.1;
    }

    .r-highlight span {
      color: #5b6d8f;
      font-size: 14px;
      font-weight: 600;
    }

    .resource-pills {
      margin: 16px 0 8px;
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: center;
    }

    .resources-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
      margin-top: 12px;
    }

    .resource-card {
      border-top: 1px solid var(--line);
      border-right: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      border-left: 0;
      border-radius: 16px;
      background: var(--card-a);
      padding: 14px;
      box-shadow: 0 12px 20px rgba(24, 63, 128, 0.08);
      display: grid;
      gap: 10px;
      position: relative;
      overflow: hidden;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .resource-card:nth-child(2) {
      background: var(--card-b);
    }

    .resource-card:nth-child(3) {
      background: var(--card-a);
    }

    .resource-card:nth-child(4) {
      background: var(--card-b);
    }

    .resource-card::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: 16px;
      padding: 1.5px;
      background: linear-gradient(120deg, #2b7dfa, #1fbf75, #f8a01a, #8e45d2);
      opacity: 1;
      transition: opacity 0.2s ease;
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      pointer-events: none;
    }

    .resource-card.is-hidden {
      display: none;
    }

    .resource-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 16px 24px rgba(24, 63, 128, 0.14);
    }

    .resource-head {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 10px;
      align-items: flex-start;
      flex-wrap: wrap;
    }

    .resource-head.has-icon {
      justify-content: flex-start;
      align-items: center;
      gap: 12px;
      flex-wrap: nowrap;
    }

    .resource-head.has-icon .resource-icon {
      width: 54px;
      height: 54px;
      border-radius: 14px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 26px;
      box-shadow: 0 10px 18px rgba(24, 63, 128, 0.12);
      flex-shrink: 0;
    }

    .resource-head.has-icon .resource-meta {
      display: grid;
      gap: 6px;
    }

    .resource-head.has-icon .tag {
      align-self: flex-start;
    }

    .resource-icon--calculator { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
    .resource-icon--comparison { background: linear-gradient(135deg, #e0f2fe, #c7d2fe); }
    .resource-icon--roadmap { background: linear-gradient(135deg, #ffedd5, #fed7aa); }
    .resource-icon--visa { background: linear-gradient(135deg, #dcfce7, #bbf7d0); }

    .resource-card h4 {
      margin: 0;
      font-size: 22px;
      color: #173d7c;
    }

    .resource-card p {
      margin: 0;
      color: #486083;
      font-size: 16px;
      line-height: 1.6;
    }

    .resource-card ul {
      margin: 0;
      padding-left: 18px;
      color: #35527f;
      font-size: 15px;
      line-height: 1.6;
      display: grid;
      gap: 3px;
    }

    .resource-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .resource-workbench {
      margin-top: 18px;
      display: grid;
      grid-template-columns: 1.2fr 0.8fr;
      gap: 14px;
    }

    .resource-builder h4,
    .resource-faq h4 {
      margin: 0 0 12px;
      color: #173e82;
      font-size: 24px;
    }

    .resource-faq {
      display: grid;
      gap: 10px;
      align-content: start;
    }

    .resource-faq details {
      border: 1px solid #d8e4f8;
      border-radius: 12px;
      background: var(--card-b);
      padding: 10px 12px;
    }

    .resource-faq summary {
      cursor: pointer;
      font-size: 16px;
      color: #1a3f81;
      font-weight: 700;
    }

    .resource-faq p {
      margin: 8px 0 0;
      color: #4f6389;
      font-size: 15px;
      line-height: 1.6;
    }

    .country-card {
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 10px;
      background: var(--card-a);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      position: relative;
      overflow: hidden;
    }

    .country-card:nth-child(even) {
      background: var(--card-b);
    }

    .country-card::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: 14px;
      padding: 2px;
      background: linear-gradient(120deg, #2b7dfa, #21b3a3, #ff9f43, #a855f7);
      opacity: 0;
      transition: opacity 0.2s ease;
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      pointer-events: none;
    }

    .country-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 14px 22px rgba(39, 87, 164, 0.14);
    }

    .country-card:hover::before {
      opacity: 1;
    }

    .country-card.is-hidden {
      display: none;
    }

    .country-photo {
      height: 100px;
      border-radius: 10px;
      position: relative;
      overflow: hidden;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
    }

    .country-photo::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.28), transparent 50%);
    }

    .country-photo.usa { background-image: url("https://images.unsplash.com/photo-1485738422979-f5c462d49f74?auto=format&fit=crop&w=1200&q=80"); }
    .country-photo.canada { background-image: url("https://images.unsplash.com/photo-1517935706615-2717063c2225?auto=format&fit=crop&w=1200&q=80"); }
    .country-photo.uk { background-image: url("https://images.unsplash.com/photo-1526129318478-62ed807ebdf9?auto=format&fit=crop&w=1200&q=80"); }
    .country-photo.australia { background-image: url("https://images.unsplash.com/photo-1523428096881-5bd79d043006?auto=format&fit=crop&w=1200&q=80"); }
    .country-photo.germany { background-image: url("https://images.unsplash.com/photo-1467269204594-9661b134dd2b?auto=format&fit=crop&w=1200&q=80"); }
    .country-photo.france { background-image: url("https://images.unsplash.com/photo-1431274172761-fca41d930114?auto=format&fit=crop&w=1200&q=80"); }
    .country-photo.italy { background-image: url("https://images.unsplash.com/photo-1525874684015-58379d421a52?auto=format&fit=crop&w=1200&q=80"); }
    .country-photo.sweden { background-image: url("https://images.unsplash.com/photo-1509356843151-3e7d96241e11?auto=format&fit=crop&w=1200&q=80"); }
    .country-photo.denmark { background-image: url("https://images.unsplash.com/photo-1513622470522-26c3c8a854bc?auto=format&fit=crop&w=1200&q=80"); }
    .country-photo.china { background-image: url("https://images.unsplash.com/photo-1531771686035-25f47595c87a?auto=format&fit=crop&w=1200&q=80"); }
    .country-photo.japan { background-image: url("https://images.unsplash.com/photo-1492571350019-22de08371fd3?auto=format&fit=crop&w=1200&q=80"); }
    .country-photo.south-korea { background-image: url("https://images.unsplash.com/photo-1538485399081-7c8976f37b48?auto=format&fit=crop&w=1200&q=80"); }
    .country-photo.india { background-image: url("https://images.unsplash.com/photo-1524492412937-b28074a5d7da?auto=format&fit=crop&w=1200&q=80"); }
    .country-photo.roadmap { background-image: url("https://images.unsplash.com/photo-1529070538774-1843cb3265df?auto=format&fit=crop&w=1200&q=80"); }
    .country-photo.visa { background-image: url("https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=1200&q=80"); }
    .country-photo.interview { background-image: url("https://images.unsplash.com/photo-1551836022-d5d88e9218df?auto=format&fit=crop&w=1200&q=80"); }
    .country-photo.career { background-image: url("https://images.unsplash.com/photo-1521791136064-7986c2920216?auto=format&fit=crop&w=1200&q=80"); }
    .country-photo.pr { background-image: url("https://images.unsplash.com/photo-1488646953014-85cb44e25828?auto=format&fit=crop&w=1200&q=80"); }

    .country-card h4 {
      margin: 8px 0 3px;
      font-size: 21px;
    }

    .country-card p {
      margin: 0;
      font-size: 15px;
      color: #5d6f8d;
      line-height: 1.4;
      min-height: 32px;
    }

    .tag {
      margin-top: 8px;
      display: inline-block;
      background: #f5f9ff;
      color: #1968de;
      border-radius: 6px;
      padding: 5px 10px;
      font-size: 12px;
      font-weight: 600;
      border: 1px solid #e0ecff;
    }               

    .details-link {
      display: inline-block;
      margin-top: 8px;
      text-decoration: none;
      color: #1968de;
      background: transparent;
      border-radius: 6px;
      padding: 4px 6px;
      font-size: 13px;
      font-weight: 600;
      transition: color 0.2s ease;
    }
    
    .details-link:hover {
      color: #0f4fb0;
    }

    .row-two {
      display: grid;
      grid-template-columns: 2fr 1fr;
      gap: 12px;
      /* margin-top: 12px; */
    }

    .panel {
      border: 1px solid var(--line);
      border-radius: 16px;
      background: var(--card-a);
      padding: 12px;
    }

    .panel.tools {
      background: white;
      border-color: #cdddf8;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    }

    .panel h4 {
      margin: 0 0 12px;
      font-size: 30px;
    }

    .feature-list {
      margin: 0;
      padding-left: 22px;
      color: #4f6181;
      font-size: 21px;
      line-height: 1.7;
    }

    .tools .tool {
      border-radius: 10px;
      background: var(--card-a);
      border: 1px solid #dce8ff;
      padding: 12px;
      margin-bottom: 10px;
      transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, filter 0.22s ease;
    }

    .tools .tool:hover {
      transform: translateY(-4px) scale(1.01);
      border-color: #8eb0ed;
      box-shadow: 0 14px 22px rgba(26, 85, 180, 0.22);
      filter: saturate(1.08);
    }

    .tools .tool:nth-child(2) {
      background: var(--card-b);
      border-color: #f0c3ce;
    }

    .tools .tool:nth-child(3) {
      background: var(--card-a);
      border-color: #bcd3f3;
    }

    .tools .tool:nth-child(4) {
      background: var(--card-b);
      border-color: #d8cddd;
    }

    .tools .tool b {
      display: block;
      font-size: 21px;
      margin-bottom: 4px;
    }

    .tools .tool span {
      color: #58729a;
      font-size: 17px;
      line-height: 1.5;
    }

    .tool-modal {
      position: fixed;
      inset: 0;
      background: rgba(8, 22, 48, 0.56);
      display: grid;
      place-items: center;
      z-index: 1100;
      padding: 14px;
    }

    .tool-modal[hidden] {
      display: none;
    }

    .tool-modal-card {
      width: min(740px, 100%);
      background: var(--card-a);
      border: 1px solid #d7e4fb;
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 28px 55px rgba(11, 38, 86, 0.35);
    }

    .tool-modal-head {
      padding: 12px 14px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: linear-gradient(130deg, #f5f8ff, #ecf3ff);
      border-bottom: 1px solid #dee7f8;
    }

    .tool-modal-head h5 {
      margin: 0;
      color: #1f3d74;
      font-size: 19px;
    }

    .tool-close {
      border: 0;
      border-radius: 8px;
      background: #dce8ff;
      color: #19468f;
      width: 30px;
      height: 30px;
      font-size: 18px;
      line-height: 1;
      cursor: pointer;
    }

    .tool-body {
      padding: 14px;
      display: grid;
      gap: 10px;
    }

    .tool-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .tool-field {
      display: grid;
      gap: 6px;
    }

    .tool-field label {
      font-size: 14px;
      font-weight: 600;
      color: #2e4775;
    }

    .tool-field input,
    .tool-field select {
      border: 1px solid #cfe0ff;
      border-radius: 8px;
      padding: 9px 10px;
      font-size: 14px;
      outline: none;
    }

    .tool-field input:focus,
    .tool-field select:focus {
      border-color: #3f7be1;
      box-shadow: 0 0 0 3px rgba(63, 123, 225, 0.16);
    }

    .tool-actions{ 
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: 8px;
      margin-bottom: 8px;
    }

    .tool-btn {
      border: 0;
      border-radius: 8px;
      padding: 9px 12px;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
    }

    .tool-btn.primary {
      background: linear-gradient(135deg, #1a68de, #0f4fb0);
      color: #fff;
    }

    .tool-btn.ghost {
      background: #eff5ff;
      color: #244f97;
    }

    .tool-result {
      border: 1px solid #d5e3fb;
      border-radius: 10px;
      background: #f9fbff;
      padding: 10px;
      color: #304b78;
      font-size: 14px;
      line-height: 1.6;
      min-height: 58px;
    }

    .tool-result ul {
      margin: 0;
      padding-left: 18px;
    }

    .toast {
      position: fixed;
      right: 18px;
      bottom: 18px;
      z-index: 1000;
      background: #102f67;
      color: #fff;
      border-radius: 10px;
      padding: 10px 14px;
      box-shadow: 0 14px 30px rgba(10, 39, 88, 0.35);
      font-size: 14px;
      opacity: 0;
      transform: translateY(10px);
      pointer-events: none;
      transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .toast.show {
      opacity: 1;
      transform: translateY(0);
    }

    .site-footer {
      margin-top: 26px;
      border-top: 1px solid var(--line);
      padding: 20px 12px 10px;
      background: linear-gradient(145deg, #eef7ff 0%, #e8f2ff 52%, #f4edff 100%);
      border-radius: 18px;
      position: relative;
      overflow: hidden;
    }

    .site-footer::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(120deg, rgba(43, 125, 250, 0.1), rgba(168, 85, 247, 0.09));
      opacity: 0.55;
      pointer-events: none;
    }

    .site-footer > * {
      position: relative;
      z-index: 1;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1.2fr 0.9fr 0.9fr 1fr 1.3fr;
      gap: 12px;
      align-items: start;
    }

    .footer-brand h4,
    .footer-links h5,
    .footer-contact h5,
    .footer-form-wrap h5 {
      margin: 0 0 8px;
      color: #103a81;
      font-size: 18px;
    }

    .footer-brand p {
      margin: 0;
      color: #4c5f84;
      font-size: 14px;
      line-height: 1.5;
    }

    .social-links {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 12px;
    }

    .social-links a {
      text-decoration: none;
      color: #10428f;
      font-size: 13px;
      font-weight: 700;
      border: 1px solid #cfe0fa;
      border-radius: 999px;
      padding: 7px 11px;
      background: #fff;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .social-links a:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 18px rgba(20, 67, 145, 0.15);
    }

    .footer-links {
      display: grid;
      gap: 8px;
    }

    .footer-links a {
      color: #345992;
      text-decoration: none;
      font-size: 15px;
    }

    .footer-links a:hover {
      color: #1a60c7;
    }

    .footer-links.countries {
      gap: 10px;
    }

    .footer-country-groups {
      display: grid;
      gap: 8px;
    }

    .footer-country-groups p {
      margin: 0;
      color: #56709c;
      font-size: 14px;
      line-height: 1.55;
    }

    .footer-country-groups a {
      font-size: 14px;
      font-weight: 700;
    }

    .footer-contact p {
      margin: 0 0 9px;
      color: #4e6187;
      font-size: 14px;
      line-height: 1.5;
    }

    .footer-form-wrap {
      border: 1px solid #d7e4fa;
      border-radius: 14px;
      background: #fff;
      padding: 10px;
      box-shadow: 0 10px 20px rgba(28, 63, 126, 0.08);
    }

    .footer-form {
      display: grid;
      gap: 8px;
    }

    .footer-form label {
      color: #1f3f76;
      font-size: 13px;
      font-weight: 700;
    }

    .footer-form input,
    .footer-form textarea {
      width: 100%;
      border: 1px solid #c9dcfb;
      border-radius: 10px;
      padding: 9px 10px;
      font-family: inherit;
      font-size: 14px;
      color: #20345d;
      outline: none;
      background: #fbfdff;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .footer-form input:focus,
    .footer-form textarea:focus {
      border-color: #2f78e2;
      box-shadow: 0 0 0 3px rgba(47, 120, 226, 0.15);
    }

    .footer-form textarea {
      resize: vertical;
      min-height: 72px;
    }

    .footer-form .btn.primary {
      width: 100%;
      text-align: center;
      margin-top: 4px;
    }

    .footer-bottom {
      margin-top: 14px;
      border-top: 1px solid #d7e4fa;
      padding-top: 10px;
      display: flex;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
      align-items: center;
    }

    .footer-bottom p {
      margin: 0;
      color: #5f7499;
      font-size: 14px;
    }

    .legal-links {
      display: flex;
      gap: 14px;
      flex-wrap: wrap;
    }

    .legal-links a {
      color: #335b97;
      text-decoration: none;
      font-size: 14px;
    }

    @media (max-width: 1120px) {
      .site-wrap { margin: 0 12px 12px; }
      .hero-grid { grid-template-columns: 1fr; }
      .hero-media { order: -1; }
      .hero-media {
        min-height: auto;
        padding: 10px 0 6px;
      }
      .media-core {
        min-height: auto;
      }
      .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .resource-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .resources-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .resource-workbench { grid-template-columns: 1fr; }
      .partner-logos { justify-content: center; }
      .row-two { grid-template-columns: 1fr; }
      .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

    @media (max-width: 860px) {
      .menu { display: none; }
      .menu.open {
        display: flex;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        border: 1px solid rgba(160, 186, 230, 0.6);
        border-radius: 12px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.86) 0%, rgba(232, 243, 255, 0.9) 100%);
        backdrop-filter: blur(10px);
        padding: 12px;
        flex-direction: column;
        gap: 10px;
        z-index: 50;
      }
      .menu.open .menu-auth-item {
        display: block;
      }

      .menu-toggle { display: inline-block; }
      .nav {
        position: fixed;
        flex-wrap: nowrap;
        gap: 8px;
        padding-left: 12px;
        padding-right: 12px;
      }
      .brand {
        min-width: 0;
        flex: 1;
        gap: 10px;
      }
      .bta-logo-main {
        height: auto;
        width: 85px;
      }
      .brand-info {
        min-width: 0;
      }
      .brand h1 {
        font-size: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .brand p { display: none; }
      .nav-actions {
        gap: 6px;
        flex-wrap: nowrap;
      }
      .nav-actions a.btn {
        display: none;
      }
      .nav-actions .btn.primary {
        padding: 8px 11px;
        font-size: 13px;
      }
      .lang-toggle {
        min-width: 44px;
        height: 34px;
        padding: 0 9px;
        font-size: 11px;
      }
      .search-trigger {
        width: 42px;
        height: 42px;
        border-width: 1px;
        justify-content: center;
      }
      .search-trigger-text { display: none; }
      .search-trigger-orb {
        width: 40px;
        height: 40px;
      }
      .search-icon-svg {
        width: 21px;
        height: 21px;
      }

      .hero-copy h2 { font-size: clamp(30px, 8vw, 52px); }
      .hero-copy p,
      .muted-note,
      .feature-list {
        font-size: 18px;
      }

      .section-head p { font-size: 24px; }
      .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .resources-grid { grid-template-columns: 1fr; }
      .stat b { font-size: 34px; }
      .footer-grid { grid-template-columns: 1fr 1fr; }
    }

    @media (max-width: 560px) {
      .site-wrap {
        padding: 10px;
        margin: 0;
        min-height: 100dvh;
        border-radius: 24px 24px 0 0;
      }
      .hero-panel { 
        padding: 8px 16px 0;
        margin-top: 60px;
      }
      .nav-actions .btn.outline:not(.search-trigger) { display: none; }
      .student-life {
        grid-template-columns: 1fr;
        padding: 14px;
      }
      .status-badge {
        position: static;
        width: max-content;
        margin-bottom: 10px;
      }
      .hero-portrait {
        min-height: 260px;
      }
      .cards-grid,
      .stats-grid,
      .partner-logos { justify-content: center; }
      .tool-grid { grid-template-columns: 1fr; }
      .hero-copy p { font-size: 17px; }
      .country-card h4 { font-size: 20px; }
      .country-card p { min-height: auto; }
      .resource-highlights { grid-template-columns: 1fr 1fr; }
      .resource-card h4 { font-size: 20px; }
      .resource-builder h4,
      .resource-faq h4 { font-size: 21px; }
      .section { padding-top: 42px; }
      .footer-grid { grid-template-columns: 1fr; }
      .footer-bottom { flex-direction: column; align-items: flex-start; }
      .site-footer::before {
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center bottom;
        opacity: 0.42;
      }
    }




.theme-toggle {
  position: fixed;
  left: 16px;
  right: auto;
  bottom: 16px;
  z-index: 1200;
  border: 1px solid #1f2e4d;
  background: #0b1730;
  color: #d8e4ff;
  border-radius: 12px;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(6, 15, 32, 0.42);
}

.theme-toggle-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2);
}

.theme-toggle-icon {
  line-height: 1;
  font-size: 15px;
}

html[data-theme="night"] {
  color-scheme: dark;
  --page-bg: #0f172a;
  --panel: #111827;
  --ink: #e2e8f0;
  --muted: #94a3b8;
  --line: #223148;
  --soft: #172033;
  --blue: #38bdf8;
  --blue-2: #818cf8;
  --green: #34d399;
  --orange: #f59e0b;
  --card-a: linear-gradient(145deg, #111827 0%, #1a2744 100%);
  --card-b: linear-gradient(145deg, #0f1b30 0%, #1e2a45 100%);
}

html[data-theme="night"] body {
  background: linear-gradient(180deg, #020617 0%, #0f172a 100%);
  color: var(--ink);
}

html[data-theme="night"] .nav {
  background: linear-gradient(135deg, #111827 0%, #0f172a 65%, #111827 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

html[data-theme="night"] .hero-panel {
  background: linear-gradient(135deg, #111827 0%, #0f1b30 65%, #111827 100%);
}

html[data-theme="night"] .hero-copy h2 {
  color: #e2e8f0;
}

html[data-theme="night"] .hero-copy h2 span {
  color: #38bdf8;
}

html[data-theme="night"] .menu a {
  color: #c6d4ec;
}

html[data-theme="night"] .menu a:hover {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
}

html[data-theme="night"] .menu-toggle {
  background: #172033;
  border-color: #2b3a54;
  color: #dbe6f7;
}

html[data-theme="night"] .trust {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid #2a3954;
}

html[data-theme="night"] .flag-chip {
  background: #172033;
  color: #c6d4ec;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

html[data-theme="night"] .stat .icon {
  background: #172033;
  border-color: #2b3a54;
}

html[data-theme="night"] .stat:nth-child(2) .icon,
html[data-theme="night"] .stat:nth-child(3) .icon,
html[data-theme="night"] .stat:nth-child(4) .icon,
html[data-theme="night"] .stat:nth-child(5) .icon {
  background: #172033;
  border-color: #2b3a54;
}

html[data-theme="night"] .r-highlight b {
  color: #38bdf8;
}

html[data-theme="night"] .resource-builder h4,
html[data-theme="night"] .resource-faq h4 {
  color: #e2e8f0;
}

html[data-theme="night"] .resource-faq summary {
  color: #c6d4ec;
}

html[data-theme="night"] .resource-faq p {
  color: #94a3b8;
}

html[data-theme="night"] .tools .tool b {
  color: #e2e8f0;
}

html[data-theme="night"] .tools .tool {
  background: #172033;
  border-color: #2b3a54;
}

html[data-theme="night"] .tools .tool:nth-child(2),
html[data-theme="night"] .tools .tool:nth-child(3),
html[data-theme="night"] .tools .tool:nth-child(4) {
  background: #172033;
  border-color: #2b3a54;
}

html[data-theme="night"] .quick-panel {
  background: linear-gradient(145deg, #111827, #1a2744);
  color: #c6d4ec;
}

html[data-theme="night"] .quick-panel h4 {
  color: #38bdf8;
}

html[data-theme="night"] .quick-panel ul {
  color: #94a3b8;
}

html[data-theme="night"] .insight-pill {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.3), rgba(129, 140, 248, 0.3));
  border-color: rgba(56, 189, 248, 0.2);
}

html[data-theme="night"] .footer-form label {
  color: #c6d4ec;
}

html[data-theme="night"] .footer-links a {
  color: #94a3b8;
}

html[data-theme="night"] .footer-links a:hover {
  color: #38bdf8;
}

html[data-theme="night"] .footer-country-groups p {
  color: #7a8fa8;
}

html[data-theme="night"] .footer-country-groups a {
  color: #94a3b8;
}

html[data-theme="night"] .site-footer::before {
  background: linear-gradient(120deg, rgba(56, 189, 248, 0.06), rgba(129, 140, 248, 0.06));
}

html[data-theme="night"] .media-core {
  background: linear-gradient(145deg, #1e293b 0%, #1a3a5c 56%, #0f172a 100%);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.4);
}

html[data-theme="night"] .status-badge {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}

html[data-theme="night"] .site-wrap,
html[data-theme="night"] .hero-panel,
html[data-theme="night"] .panel,
html[data-theme="night"] .country-card,
html[data-theme="night"] .resource-card,
html[data-theme="night"] .stat,
html[data-theme="night"] .tool-modal-card,
html[data-theme="night"] .site-footer,
html[data-theme="night"] .footer-form-wrap,
html[data-theme="night"] .r-highlight,
html[data-theme="night"] .resource-faq details {
  background: #111827;
  border-color: #25344c;
  box-shadow: none;
}

html[data-theme="night"] .menu,
html[data-theme="night"] .menu.open,
html[data-theme="night"] .btn.outline,
html[data-theme="night"] .lang-toggle,
html[data-theme="night"] .flag-chip,
html[data-theme="night"] .tag,
html[data-theme="night"] .tool-btn.ghost,
html[data-theme="night"] .tool-result,
html[data-theme="night"] .tool-field input,
html[data-theme="night"] .tool-field select,
html[data-theme="night"] .footer-form input,
html[data-theme="night"] .footer-form textarea,
html[data-theme="night"] .social-links a {
  background: #172033;
  border-color: #2b3a54;
  color: #dbe6f7;
}

html[data-theme="night"] .brand h1,
html[data-theme="night"] .section-head h3,
html[data-theme="night"] .panel h4,
html[data-theme="night"] .country-card h4,
html[data-theme="night"] .resource-card h4,
html[data-theme="night"] .footer-brand h4,
html[data-theme="night"] .footer-links h5,
html[data-theme="night"] .footer-contact h5,
html[data-theme="night"] .footer-form-wrap h5,
html[data-theme="night"] .tool-modal-head h5,
html[data-theme="night"] .stat b {
  color: #e2e8f0;
}

html[data-theme="night"] .brand p,
html[data-theme="night"] .hero-copy p,
html[data-theme="night"] .muted-note,
html[data-theme="night"] .country-card p,
html[data-theme="night"] .resource-card p,
html[data-theme="night"] .resource-card ul,
html[data-theme="night"] .feature-list,
html[data-theme="night"] .tools .tool span,
html[data-theme="night"] .footer-brand p,
html[data-theme="night"] .footer-contact p,
html[data-theme="night"] .footer-bottom p,
html[data-theme="night"] .legal-links a,
html[data-theme="night"] .tool-field label,
html[data-theme="night"] .r-highlight span,
html[data-theme="night"] .stat span,
html[data-theme="night"] .section-head p {
  color: #94a3b8;
}

html[data-theme="night"] .btn.primary,
html[data-theme="night"] .details-link,
html[data-theme="night"] .countries-more-btn,
html[data-theme="night"] .tool-btn.primary,
html[data-theme="night"] .footer-form .btn.primary {
  color: #081018;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  box-shadow: 0 12px 22px rgba(56, 189, 248, 0.24);
}

html[data-theme="night"] .pill.active {
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  color: #071019;
}

html[data-theme="night"] .pill {
  background: #172033;
  color: #c6d4ec;
}

html[data-theme="night"] .tools .tool,
html[data-theme="night"] .quick-panel,
html[data-theme="night"] .insight-pill,
html[data-theme="night"] .status-badge,
html[data-theme="night"] .tool-modal-head,
html[data-theme="night"] .footer-bottom,
html[data-theme="night"] .site-footer,
html[data-theme="night"] .resource-builder,
html[data-theme="night"] .resource-faq {
  border-color: #2a3954;
}

html[data-theme="night"] .tools .tool,
html[data-theme="night"] .quick-panel,
html[data-theme="night"] .tool-modal-head,
html[data-theme="night"] .resource-faq details,
html[data-theme="night"] .tool-result,
html[data-theme="night"] .resource-card,
html[data-theme="night"] .country-card {
  background: #111827;
}

html[data-theme="night"] .theme-toggle {
  background: #0b1220;
  border-color: #2a3954;
  color: #cbd5e1;
}

html[data-theme="night"] .theme-toggle-dot {
  background: #f472b6;
  box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.22);
}

@media (max-width: 560px) {
  .theme-toggle {
    left: 12px;
    right: auto;
    bottom: 104px;
    padding: 9px 11px;
  }
}

@media (max-width: 860px) {
  body {
    padding-bottom: 114px;
  }

  .mobile-app-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 1150;
    border-radius: 22px;
    border: 1px solid #d9e6fb;
    background: linear-gradient(180deg, #ffffff 0%, #f2f7ff 100%);
    box-shadow: 0 18px 30px rgba(27, 68, 138, 0.16);
    padding: 8px 10px 10px;
  }
  .mobile-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    align-items: stretch;
  }

  .mobile-tab {
    text-decoration: none;
    color: #5e76a0;
    display: grid;
    justify-items: center;
    gap: 3px;
    border-radius: 12px;
    padding: 8px 4px 6px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }

  .mobile-tab .mobile-icon {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
  }

  .mobile-tab .mobile-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.3;
  }

  .mobile-tab .mobile-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.01em;
  }

  .mobile-tab.active {
    background: rgba(56, 189, 248, 0.12);
    color: #1f3f7a;
  }

  .mobile-tab.active .mobile-icon {
    color: #38bdf8;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.4));
  }

  html[data-theme="night"] .mobile-app-nav {
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
    border-color: #2a3954;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.4);
  }

  html[data-theme="night"] .mobile-tab {
    color: #7a8fa8;
  }

  html[data-theme="night"] .mobile-tab.active {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
  }
}

@media (min-width: 861px) {
  .mobile-app-nav {
    display: none;
  }
}

.search-trigger {
  width: 176px;
  height: 46px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  background: #f8fbff;
  border: 2px solid #2b67e8;
  box-shadow: 0 8px 16px rgba(32, 84, 192, 0.14);
  overflow: hidden;
}

.search-trigger-orb {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f7cff, #1d57d9);
  display: grid;
  place-items: center;
}

.search-icon-svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.search-trigger-text {
  color: #2d4f8e;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.search-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 22, 48, 0.56);
  display: grid;
  place-items: center;
  z-index: 1250;
  padding: 14px;
}

.search-modal[hidden] {
  display: none;
}

.search-modal-card {
  width: min(760px, 100%);
  background: var(--card-b);
  border: 1px solid #d7e4fb;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 28px 55px rgba(11, 38, 86, 0.35);
}

.search-head {
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(130deg, #f5f8ff, #ecf3ff);
  border-bottom: 1px solid #dee7f8;
}

.search-head h5 {
  margin: 0;
  color: #1f3d74;
  font-size: 19px;
}

.search-close {
  border: 0;
  border-radius: 8px;
  background: #dce8ff;
  color: #19468f;
  width: 30px;
  height: 30px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.search-body {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.search-body input {
  width: 100%;
  border: 1px solid #cfe0ff;
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  font-size: 15px;
  outline: none;
}

.search-body input:focus {
  border-color: #3f7be1;
  box-shadow: 0 0 0 3px rgba(63, 123, 225, 0.16);
}

.search-meta {
  color: #50658d;
  font-size: 13px;
}

.search-results {
  max-height: 56vh;
  overflow: auto;
  display: grid;
  gap: 8px;
}

.search-result-item {
  border: 1px solid #d5e3fb;
  border-radius: 10px;
  background: #f9fbff;
  padding: 10px 12px;
  color: #2a4676;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.search-result-title {
  font-size: 15px;
  font-weight: 700;
}

.search-result-tag {
  font-size: 12px;
  color: #3c619d;
  background: #eaf2ff;
  border-radius: 999px;
  padding: 4px 8px;
}

html[data-theme="night"] .search-modal-card,
html[data-theme="night"] .search-result-item,
html[data-theme="night"] .search-body input {
  background: #111827;
  border-color: #25344c;
  color: #dbe6f7;
}

html[data-theme="night"] .search-head {
  background: #172033;
  border-color: #25344c;
}

html[data-theme="night"] .search-head h5,
html[data-theme="night"] .search-meta,
html[data-theme="night"] .search-result-title {
  color: #dbe6f7;
}

html[data-theme="night"] .search-result-tag {
  background: #172033;
  color: #a5bddf;
}

/* Login Modal Styles */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: var(--panel);
  padding: 40px;
  border-radius: var(--radius);
  width: 90%;
  max-width: 450px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.login-form-container h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 30px;
  color: var(--ink);
  font-size: 24px;
}

.close-btn {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.2s;
}

.close-btn:hover {
  color: var(--ink);
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--ink);
}

.form-group input {
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s;
  color: var(--ink);
  background-color: var(--panel);
}

.form-group input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(25, 104, 222, 0.1);
}

.form-group input::placeholder {
  color: var(--muted);
}

#loginForm .btn {
  margin-top: 10px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

html[data-theme="night"] .modal-content {
  background-color: #1a2740;
  color: #e0e6f5;
}

html[data-theme="night"] .login-form-container h2 {
  color: #e0e6f5;
}

html[data-theme="night"] .form-group label {
  color: #e0e6f5;
}

html[data-theme="night"] .form-group input {
  background-color: #0f1620;
  border-color: #2a3a52;
  color: #e0e6f5;
}

html[data-theme="night"] .form-group input:focus {
  border-color: var(--blue);
}

html[data-theme="night"] .form-group input::placeholder {
  color: #7a8a9e;
}

html[data-theme="night"] .close-btn {
  color: #7a8a9e;
}

html[data-theme="night"] .close-btn:hover {
  color: #e0e6f5;
}

@media (max-width: 560px) {
  .search-trigger {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border-width: 1px;
    padding: 0;
    justify-content: center;
  }

  .search-trigger-text {
    display: none;
  }

  .search-modal {
    padding: 10px;
  }

  .search-modal-card {
    border-radius: 12px;
  }

  .modal-content {
    padding: 30px 20px;
    width: 95%;
  }
}

/* Blog/News Highlights Section */
/* Blog/News Highlights Section */
.blog-news-section {
  background: var(--soft);
  padding: 32px 0 0 0;
  margin: 0 auto 0 auto;
  border-radius: 24px 24px 0 0;
  border-top: 1px solid var(--line);
  max-width: 1200px;
}

.blog-news-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}

.blog-news-header {
  text-align: center;
  margin-bottom: 28px;
  padding: 4px 0;
}

.blog-news-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.blog-news-subtitle {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

.blog-news-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.blog-news-item {
  border-radius: 18px;
  padding: 20px 16px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(37, 73, 138, 0.06);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.blog-news-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(120deg, #2b7dfa, #21b3a3, #ff9f43, #a855f7);
  opacity: 0;
  transition: opacity 0.3s ease;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.blog-card-1 {
  background: var(--card-a);
}

.blog-card-2 {
  background: var(--card-b);
}

.blog-card-3 {
  background: var(--card-a);
}

.blog-news-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(37, 73, 138, 0.12);
}

.blog-news-item:hover::before {
  opacity: 1;
}

.blog-news-tag {
  display: inline-block;
  background: rgba(25, 104, 222, 0.12);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-news-item h3 {
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 10px 0;
  line-height: 1.4;
  font-weight: 700;
  flex-grow: 1;
}

.blog-news-item p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 12px 0;
  line-height: 1.5;
  flex-grow: 1;
}

.blog-news-link {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  display: inline-block;
}

.blog-news-link:hover {
  color: var(--blue-2);
  transform: translateX(2px);
}

.blog-news-video {
  margin: 0 auto 28px;
  max-width: 420px;
  text-align: center;
  padding: 0 16px;
}

.blog-news-video h4 {
  font-size: 20px;
  color: var(--ink);
  margin: 0 0 6px 0;
  font-weight: 700;
}

.video-description {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 14px 0;
}

.blog-news-video iframe {
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(37, 73, 138, 0.08);
  width: 100%;
  max-width: 420px;
  height: 236px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.blog-news-video iframe:hover {
  box-shadow: 0 12px 28px rgba(37, 73, 138, 0.12);
  transform: scale(1.02);
}

/* Team Section */
.team-section {
  background: var(--soft);
  padding: 32px 0 0 0;
  margin: 0 auto 0 auto;
  border-radius: 24px 24px 0 0;
  border-top: 1px solid var(--line);
  max-width: 1200px;
}

.team-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}

.team-header {
  text-align: center;
  margin-bottom: 28px;
  padding: 4px 0;
}

.team-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.team-subtitle {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 280px));
  gap: 24px;
  margin-bottom: 16px;
  justify-content: center;
}

.team-member {
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(37, 73, 138, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}

.team-member::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(120deg, #2b7dfa, #21b3a3, #ff9f43, #a855f7);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.team-member-1 {
  background: var(--card-a);
}

.team-member-2 {
  background: var(--card-b);
}

.team-member:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(37, 73, 138, 0.12);
}

.team-member:hover::before {
  opacity: 1;
}

.member-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  /* overflow: hidden; */
  border-radius: 18px;
  position: relative;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  transition: transform 0.3s ease;
}

.team-member:hover .member-photo img {
  transform: scale(1.04);
}

.member-info {
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
  position: relative;
  z-index: 2;
}

.member-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.member-role {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  margin: 0;
}

.member-bio {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
  flex-grow: 1;
}

.member-socials {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.member-socials a {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  padding: 2px 8px;
  border: 1px solid rgba(25, 104, 222, 0.2);
  border-radius: 8px;
  background: rgba(25, 104, 222, 0.05);
  transition: all 0.2s ease;
}

.member-socials a:hover {
  background: rgba(25, 104, 222, 0.12);
  border-color: var(--blue);
  transform: translateY(-2px);
}

@media (max-width: 1024px) {
  .team-grid {
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 240px));
    gap: 20px;
  }

  .member-photo {
    height: 200px;
  }
}

@media (max-width: 640px) {
  .team-section {
    padding: 24px 0 0 0;
  }

  .team-wrap {
    padding: 0 12px;
  }

  .team-title {
    font-size: 22px;
  }

  .team-subtitle {
    font-size: 14px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
  }

  .member-photo {
    height: 180px;
  }

  .member-info {
    padding: 16px 14px;
  }

  .member-name {
    font-size: 18px;
  }
}

/* Dark Mode Support for Team Section */
html[data-theme="night"] .team-section {
  background: linear-gradient(135deg, #0f172a 0%, #111827 100%);
  border-top-color: #1e293b;
}

html[data-theme="night"] .team-title {
  color: #e0e8f5;
}

html[data-theme="night"] .team-subtitle {
  color: #94a3b8;
}

html[data-theme="night"] .team-member-1 {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.3) 0%, rgba(88, 28, 135, 0.15) 100%);
  border-color: #1e293b;
}

html[data-theme="night"] .team-member-2 {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
  border-color: #1e293b;
}

html[data-theme="night"] .member-name {
  color: #f1f5f9;
}

html[data-theme="night"] .member-role {
  color: #60a5fa;
}

html[data-theme="night"] .member-bio {
  color: #cbd5e1;
}

html[data-theme="night"] .member-socials a {
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.2);
  background: rgba(96, 165, 250, 0.08);
}

html[data-theme="night"] .member-socials a:hover {
  background: rgba(96, 165, 250, 0.15);
  border-color: #60a5fa;
}

@media (max-width: 1024px) {
  .blog-news-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .blog-news-section {
    padding: 24px 0 0 0;
  }

  .blog-news-wrap {
    padding: 0 12px;
  }

  .blog-news-title {
    font-size: 22px;
  }

  .blog-news-subtitle {
    font-size: 14px;
  }

  .blog-news-list {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
  }

  .blog-news-item {
    padding: 16px 14px;
  }

  .blog-news-item h3 {
    font-size: 16px;
  }

  .blog-news-video {
    margin-bottom: 20px;
    padding: 0 12px;
  }

  .blog-news-video h4 {
    font-size: 18px;
  }

  .blog-news-video iframe {
    height: 200px;
  }
}

/* Dark Mode Support */
html[data-theme="night"] .blog-news-section {
  background: linear-gradient(135deg, #0f172a 0%, #111827 100%);
  border-top-color: #1e293b;
}

html[data-theme="night"] .blog-news-title {
  color: #e0e8f5;
}

html[data-theme="night"] .blog-news-subtitle {
  color: #94a3b8;
}

html[data-theme="night"] .blog-card-1 {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.3) 0%, rgba(88, 28, 135, 0.15) 100%);
  border-color: #1e293b;
}

html[data-theme="night"] .blog-card-2 {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
  border-color: #1e293b;
}

html[data-theme="night"] .blog-card-3 {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
  border-color: #1e293b;
}

html[data-theme="night"] .blog-news-tag {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

html[data-theme="night"] .blog-news-item h3 {
  color: #f1f5f9;
}

html[data-theme="night"] .blog-news-item p {
  color: #cbd5e1;
}

html[data-theme="night"] .blog-news-link {
  color: #60a5fa;
}

html[data-theme="night"] .blog-news-link:hover {
  color: #93c5fd;
}

html[data-theme="night"] .blog-news-video h4 {
  color: #f1f5f9;
}

html[data-theme="night"] .video-description {
  color: #cbd5e1;
}

html[data-theme="night"] .blog-news-video iframe {
  border-color: #1e293b;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* --- New Feature Styles --- */

/* Country Comparison Tool */
.comparison-section {
  animation: fadeIn 0.4s ease-out;
}

.support-summary .feature-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  font-size: 17px;
  line-height: 1.55;
}

.tools-preview-cta {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.tools-page {
  background: linear-gradient(170deg, #d8deea 0%, #c5d6ea 45%, #b8c9e1 100%);
  --card-a: linear-gradient(150deg, #eaf2fb 0%, #dce9f8 100%);
  --card-b: linear-gradient(150deg, #e2ecf9 0%, #d3e2f6 100%);
  --line: #b8cbe3;
  --soft: #e9f1fb;
}

.tools-page .site-wrap {
  background: #f2f6fd;
  border: 1px solid #c7d8ec;
  box-shadow: 0 28px 60px rgba(24, 54, 98, 0.16);
}

.tools-page .tools-hero {
  min-height: auto;
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #80abc7 0%, #6a98bc 45%, #4b78a3 100%);
  border-color: #8db3d0;
}

.tools-page .tools-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(217, 233, 249, 0.5), transparent 65%);
  pointer-events: none;
}

.tools-page .tools-hero .section-head p {
  color: #e7f1fb;
}

.tools-page .tools-hero .section-head h3 {
  color: #f7fbff;
}

.tools-page .comparison-empty-state {
  background: var(--soft);
  border: 1px dashed var(--line);
  border-radius: 12px;
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 30px;
}

.tools-page .comparison-empty-text {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.tools-page .comparison-section {
  display: none;
  margin-top: 2rem;
}

.tools-page .panel.tools {
  background: linear-gradient(160deg, #eff5fd 0%, #e2ecf9 100%);
  border-color: #bcd0e8;
  box-shadow: 0 12px 22px rgba(23, 61, 106, 0.1);
}

.tools-page .tools .tool {
  background: #ffffff;
  border: 1px solid #e1ecfa;
  border-radius: 14px;
  padding: 14px 14px 14px 18px;
  position: relative;
  overflow: hidden;
}

.tools-page .tools .tool::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, #3f6f9d, #7ca8c8);
}

.tools-page .tools .tool b {
  color: #1a3e6b;
}

.tools-page .tools .tool span {
  color: #516a8a;
}

@media (max-width: 860px) {
  .tools-preview-grid {
    grid-template-columns: 1fr;
  }
}

.resources-page {
  background: linear-gradient(170deg, #d8deea 0%, #c5d6ea 45%, #b8c9e1 100%);
  --card-a: linear-gradient(150deg, #eaf2fb 0%, #dce9f8 100%);
  --card-b: linear-gradient(150deg, #e2ecf9 0%, #d3e2f6 100%);
  --line: #b8cbe3;
  --soft: #e9f1fb;
}

.resources-page .site-wrap {
  background: #f2f6fd;
  border: 1px solid #c7d8ec;
  box-shadow: 0 26px 60px rgba(24, 54, 98, 0.16);
}

.resources-page .resources-hero {
  min-height: auto;
  /* padding-bottom: 20px; */
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #80abc7 0%, #6a98bc 45%, #4b78a3 100%);
  border-color: #8db3d0;
}

.resources-page .resources-hero-head {
  display: flex;
  /* margin-top: 60px; */
  /* margin-bottom: 10px; */
  text-align: left;
  color: #eaf3fc;
  max-width: 90%;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.resources-page .resources-hero-title {
  margin: 0 0;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.15;
  color: #f6fbff;
}

.resources-page .resources-hero-subtitle {
  margin: 0;
  max-width: 720px;
  color: #d9e8f7;
  font-size: 19px;
  line-height: 1.6;
}

.resources-page .resources-hero::after {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(217, 233, 249, 0.5), transparent 65%);
  pointer-events: none;
}

.resources-page .resources-page-head {
  text-align: left;
  margin-bottom: 24px;
}

.resources-page .resources-page-head p {
  font-size: 22px;
}

.resources-page .resources-page-head h3 {
  font-size: clamp(30px, 3vw, 44px);
}

.resources-page .resource-pills {
  justify-content: flex-start;
}

.resources-page .pill {
  background: #eaf2fb;
  color: #2c4e73;
  border: 1px solid #bdd0e7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.resources-page .pill.active {
  background: #4b78a3;
  color: #ffffff;
  border-color: #4b78a3;
}

.resources-page .resource-card {
  border-color: #bdd0e7;
  box-shadow: 0 14px 26px rgba(23, 61, 106, 0.12);
}

.resources-page .resource-card::before {
  background: linear-gradient(120deg, #4b78a3, #6c9dbf, #8db8d2);
}

.resources-page .resource-card:nth-child(3n + 1) {
  background: linear-gradient(155deg, #edf4fc 0%, #e0ebf8 100%);
}

.resources-page .resource-card:nth-child(3n + 2) {
  background: linear-gradient(155deg, #e6effa 0%, #d8e6f6 100%);
}

.resources-page .resource-card:nth-child(3n + 3) {
  background: linear-gradient(155deg, #ecf3fb 0%, #dce8f7 100%);
}

.resources-page .resource-card h4 {
  color: #1c3a5f;
}

.resources-page .resource-card p,
.resources-page .resource-card ul {
  color: #4d5f7a;
}

.resources-page .resource-faq details {
  background: #eaf2fb;
  border-color: #bdd0e7;
}

.resources-page .resource-faq summary {
  color: #1f4c6f;
}

.resources-page .resource-faq p {
  color: #51627e;
}

.resources-page .comparison-empty-state {
  background: var(--soft);
  padding: 30px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  border: 1px dashed var(--line);
}

.resources-page .comparison-empty-text {
  margin: 0;
  color: var(--muted);
  text-align: left;
  font-size: 16px;
  line-height: 1.6;
  max-width: 460px;
}

.resources-page .comparison-section {
  display: none;
  margin-top: 2rem;
}

.resources-page #sample-vault .cards-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resources-page .muted-note {
  margin: 12px 0 0;
  text-align: left;
  max-width: 780px;
  font-size: 18px;
}

.resources-page .vault-view-btn {
  width: 100%;
}

@media (max-width: 860px) {
  .resources-page .resources-hero-head,
  .resources-page .resources-page-head,
  .resources-page .comparison-empty-text,
  .resources-page .muted-note {
    text-align: center;
  }

  .resources-page .resources-hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .resources-page .resource-pills {
    justify-content: center;
  }

  .resources-page #sample-vault .cards-grid {
    grid-template-columns: 1fr;
  }
}

.comparison-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 24px;
}

.comparison-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.close-comparison {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--muted);
}

.country-selectors {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.country-selectors select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 16px;
  background: var(--soft);
  color: var(--ink);
}

.country-selectors .vs {
  font-weight: bold;
  color: var(--blue);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.comparison-table th, .comparison-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.comparison-table th {
  background: var(--soft);
  font-weight: 600;
  color: var(--blue);
}

.comparison-table tr:hover {
  background: rgba(25, 104, 222, 0.05);
}

/* Countdown Timer */
.countdown-container {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  margin: 20px 0;
  box-shadow: 0 10px 25px rgba(25, 104, 222, 0.2);
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
}

.countdown-value {
  font-size: 32px;
  font-weight: bold;
  line-height: 1;
}

.countdown-label {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 5px;
}

/* AI Assistant Trigger */
.ai-assistant-trigger {
  position: fixed;
  bottom: 25px;
  right: 25px;
  left: auto;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  box-shadow: 0 10px 25px rgba(168, 85, 247, 0.4);
  cursor: pointer;
  z-index: 1000;
  border: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (max-width: 560px) {
  .ai-assistant-trigger {
    right: 12px;
    bottom: 104px;
  }
}

.ai-assistant-trigger:hover {
  transform: scale(1.1) rotate(5deg);
}

.ai-assistant-trigger .badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff4757;
  color: #fff;
  font-size: 10px;
  padding: 4px 6px;
  border-radius: 10px;
  font-weight: bold;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Night Mode Overrides for Comparison Tool */
html[data-theme="night"] .comparison-panel {
  background: #1e293b;
  border-color: #334155;
}

html[data-theme="night"] .country-selectors select {
  background: #0f172a;
  border-color: #334155;
  color: #f1f5f9;
}

html[data-theme="night"] .comparison-table th {
  background: #0f172a;
  color: #38bdf8;
}

html[data-theme="night"] .comparison-table td {
  border-color: #334155;
  color: #cbd5e1;
}

/* Document Vault Styles */
.vault-card {
  border: 1px dashed var(--line);
  position: relative;
  transition: all 0.3s ease;
}

.vault-card:hover {
  border-style: solid;
  border-color: var(--blue);
  background: white;
}

.vault-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: bold;
  color: var(--green);
  background: rgba(31, 191, 117, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

html[data-theme="night"] .vault-card:hover {
  background: #1e293b;
}

html[data-theme="night"] .vault-badge {
  background: rgba(31, 191, 117, 0.2);
  color: #4ade80;
}

/* iOS Liquid Glass Theme Overrides (Resources + Tools) */
.tools-page,
.resources-page {
  --ios-bg-top: #f7fbff;
  --ios-bg-mid: #eaf3ff;
  --ios-bg-bottom: #ddeaff;
  --ios-glass: rgba(255, 255, 255, 0.62);
  --ios-glass-strong: rgba(255, 255, 255, 0.8);
  --ios-stroke: rgba(173, 201, 236, 0.62);
  --ios-text: #163761;
  --ios-muted: #4f6f96;
  --ios-accent: #3f87ff;
  --ios-accent-2: #5ec7ff;
  --ios-pop-coral: #ff8a7a;
  --ios-pop-mint: #43d7b6;
  background: linear-gradient(180deg, var(--ios-bg-top) 0%, var(--ios-bg-mid) 45%, var(--ios-bg-bottom) 100%);
  position: relative;
  overflow-x: hidden;
}

.tools-page::before,
.resources-page::before,
.tools-page::after,
.resources-page::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  filter: blur(6px);
}

.tools-page::before,
.resources-page::before {
  width: 380px;
  height: 380px;
  left: -120px;
  top: 90px;
  background: radial-gradient(circle, rgba(94, 199, 255, 0.3), rgba(94, 199, 255, 0) 70%);
}

.tools-page::after,
.resources-page::after {
  width: 420px;
  height: 420px;
  right: -160px;
  bottom: 40px;
  background: radial-gradient(circle, rgba(255, 138, 122, 0.2), rgba(255, 138, 122, 0) 72%);
}

.tools-page .site-wrap,
.resources-page .site-wrap {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.52), rgba(240, 248, 255, 0.45));
  border: 1px solid var(--ios-stroke);
  box-shadow: 0 24px 60px rgba(29, 76, 137, 0.18);
  backdrop-filter: blur(16px) saturate(145%);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
}

.tools-page .nav,
.resources-page .nav {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.62), rgba(230, 241, 255, 0.5));
  border-bottom: 1px solid rgba(173, 201, 236, 0.45);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  box-shadow: 0 10px 24px rgba(30, 81, 143, 0.14);
}

.tools-page .tools-hero,
.resources-page .resources-hero {
  background: linear-gradient(145deg, rgba(119, 173, 228, 0.74), rgba(91, 151, 210, 0.68) 48%, rgba(67, 123, 185, 0.7) 100%);
  border: 1px solid rgba(170, 203, 236, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 14px 32px rgba(35, 80, 136, 0.2);
}

.tools-page .tools-hero::after,
.resources-page .resources-hero::after {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.44), transparent 68%);
}

.tools-page .tools-hero .section-head p,
.resources-page .resources-hero-head {
  color: #e9f4ff;
}

.tools-page .tools-hero .section-head h3,
.resources-page .resources-hero-title {
  color: #f7fcff;
}

.resources-page .resources-hero-subtitle {
  color: #d9ebff;
}

.tools-page .panel,
.resources-page .panel,
.resources-page .resource-card,
.tools-page .tools .tool,
.resources-page .resource-faq details {
  background: var(--ios-glass);
  border: 1px solid var(--ios-stroke);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  box-shadow: 0 14px 28px rgba(34, 83, 142, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.tools-page .tools .tool::before,
.resources-page .resource-card::before {
  background: linear-gradient(180deg, var(--ios-accent), var(--ios-accent-2));
}

.resources-page .resource-card:nth-child(3n + 1),
.resources-page .resource-card:nth-child(3n + 2),
.resources-page .resource-card:nth-child(3n + 3) {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.66) 0%, rgba(229, 241, 255, 0.58) 100%);
}

.tools-page .tools .tool b,
.resources-page .resource-card h4,
.resources-page .resource-faq summary {
  color: var(--ios-text);
}

.tools-page .tools .tool span,
.resources-page .resource-card p,
.resources-page .resource-card ul,
.resources-page .resource-faq p,
.tools-page .comparison-empty-text,
.resources-page .comparison-empty-text {
  color: var(--ios-muted);
}

.resources-page .pill {
  background: rgba(255, 255, 255, 0.72);
  color: #2d5687;
  border: 1px solid rgba(166, 196, 231, 0.8);
}

.resources-page .pill.active {
  background: linear-gradient(145deg, var(--ios-accent), var(--ios-accent-2));
  color: #fff;
  border-color: rgba(67, 127, 196, 0.8);
  box-shadow: 0 10px 20px rgba(63, 135, 255, 0.28);
}

.tools-page .comparison-empty-state,
.resources-page .comparison-empty-state {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(232, 243, 255, 0.55));
  border: 1px dashed rgba(163, 195, 230, 0.82);
}

.tools-page .tool-btn.primary,
.resources-page .tool-btn.primary,
.tools-page .btn.primary,
.resources-page .btn.primary {
  background: linear-gradient(140deg, var(--ios-accent) 0%, var(--ios-accent-2) 55%, var(--ios-pop-mint) 100%);
  box-shadow: 0 12px 22px rgba(63, 135, 255, 0.24);
}

.tools-page .tool-btn.ghost,
.resources-page .tool-btn.ghost,
.tools-page .btn.outline,
.resources-page .btn.outline {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(163, 194, 229, 0.8);
  color: #245184;
}

.tools-page .menu,
.resources-page .menu {
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.66), rgba(220, 235, 255, 0.55));
  border: 1px solid rgba(172, 201, 235, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.tools-page .menu a,
.resources-page .menu a {
  color: #214b7b;
}

.tools-page .menu a:hover,
.resources-page .menu a:hover {
  color: var(--ios-accent);
  background: rgba(255, 255, 255, 0.72);
}

/* iOS 26 Motion + Depth Layer */
.tools-page::before,
.resources-page::before {
  animation: iosBlobFloatA 18s ease-in-out infinite;
}

.tools-page::after,
.resources-page::after {
  animation: iosBlobFloatB 22s ease-in-out infinite;
}

.tools-page .site-wrap,
.resources-page .site-wrap {
  animation: iosPanelIn 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: center top;
}

.tools-page .panel,
.resources-page .panel,
.resources-page .resource-card,
.tools-page .tools .tool,
.resources-page .pill,
.tools-page .btn,
.resources-page .btn,
.tools-page .tool-btn,
.resources-page .tool-btn {
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 320ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 280ms ease, border-color 280ms ease, filter 280ms ease;
}

.tools-page .panel,
.resources-page .panel,
.resources-page .resource-card,
.tools-page .tools .tool {
  position: relative;
  overflow: hidden;
}

.tools-page .panel::after,
.resources-page .panel::after,
.resources-page .resource-card::after,
.tools-page .tools .tool::after {
  content: "";
  position: absolute;
  top: -140%;
  left: -35%;
  width: 60%;
  height: 260%;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.38) 50%, rgba(255, 255, 255, 0) 80%);
  transform: translateX(-120%) rotate(8deg);
  opacity: 0;
  pointer-events: none;
}

.tools-page .panel:hover::after,
.resources-page .panel:hover::after,
.resources-page .resource-card:hover::after,
.tools-page .tools .tool:hover::after {
  opacity: 1;
  animation: iosSheen 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tools-page .panel:hover,
.resources-page .panel:hover,
.resources-page .resource-card:hover,
.tools-page .tools .tool:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 36px rgba(36, 88, 147, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.resources-page .pill:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 22px rgba(63, 135, 255, 0.18);
}

.tools-page .btn:hover,
.resources-page .btn:hover,
.tools-page .tool-btn:hover,
.resources-page .tool-btn:hover {
  transform: translateY(-2px) scale(1.01);
  filter: saturate(108%);
}

.tools-page .btn.primary:hover,
.resources-page .btn.primary:hover,
.tools-page .tool-btn.primary:hover,
.resources-page .tool-btn.primary:hover {
  box-shadow: 0 16px 28px rgba(57, 132, 244, 0.32);
}

.tools-page .menu a,
.resources-page .menu a {
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), background-color 240ms ease, color 240ms ease;
}

.tools-page .menu a:hover,
.resources-page .menu a:hover {
  transform: translateY(-1px);
}

.tools-page .resources-hero-head,
.resources-page .resources-hero-head,
.tools-page .tools-hero .section-head {
  animation: iosFadeLift 720ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tools-page .tools .tool:nth-child(1),
.resources-page .resource-card:nth-child(1) { animation: iosFadeLift 520ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.tools-page .tools .tool:nth-child(2),
.resources-page .resource-card:nth-child(2) { animation: iosFadeLift 620ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.tools-page .tools .tool:nth-child(3),
.resources-page .resource-card:nth-child(3) { animation: iosFadeLift 700ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.tools-page .tools .tool:nth-child(4),
.resources-page .resource-card:nth-child(4) { animation: iosFadeLift 780ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.tools-page .tools .tool:nth-child(5),
.resources-page .resource-card:nth-child(5) { animation: iosFadeLift 860ms cubic-bezier(0.2, 0.8, 0.2, 1); }

@keyframes iosBlobFloatA {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(18px, -14px, 0) scale(1.06); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes iosBlobFloatB {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-22px, 18px, 0) scale(1.05); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes iosPanelIn {
  from { opacity: 0.5; transform: translateY(12px) scale(0.995); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes iosFadeLift {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes iosSheen {
  0% { transform: translateX(-130%) rotate(8deg); }
  100% { transform: translateX(285%) rotate(8deg); }
}

@media (prefers-reduced-motion: reduce) {
  .tools-page::before,
  .resources-page::before,
  .tools-page::after,
  .resources-page::after,
  .tools-page .site-wrap,
  .resources-page .site-wrap,
  .tools-page .panel,
  .resources-page .panel,
  .resources-page .resource-card,
  .tools-page .tools .tool,
  .resources-page .pill {
    animation: none !important;
    transition: none !important;
  }
}

/* Flat Multi-Color UI Overrides (No Gradients in Content Cards) */
.tools-page,
.resources-page {
  background: #eef4fb;
  --mc-blue: #3b82f6;
  --mc-cyan: #06b6d4;
  --mc-mint: #10b981;
  --mc-coral: #fb7185;
  --mc-amber: #f59e0b;
  --mc-violet: #8b5cf6;
  --mc-text: #18324d;
  --mc-muted: #5f7691;
  --mc-border: #d8e3f0;
}

.tools-page::before,
.resources-page::before,
.tools-page::after,
.resources-page::after {
  background: none !important;
  filter: none;
}

.tools-page .site-wrap,
.resources-page .site-wrap {
  background: #f8fbff;
  border: 1px solid var(--mc-border);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 16px 32px rgba(22, 57, 97, 0.1);
}

.tools-page .nav,
.resources-page .nav {
  background: #f8fbff;
  border-bottom: 1px solid var(--mc-border);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 6px 16px rgba(22, 57, 97, 0.08);
}

.tools-page .tools-hero,
.resources-page .resources-hero {
  background: #dbeafe;
  border: 1px solid #c6dbf6;
  box-shadow: 0 10px 20px rgba(28, 80, 141, 0.08);
}

.tools-page .tools-hero::after,
.resources-page .resources-hero::after {
  background: none !important;
}

.tools-page .tools-hero .section-head p,
.resources-page .resources-hero-head {
  color: #234d7f;
}

.tools-page .tools-hero .section-head h3,
.resources-page .resources-hero-title {
  color: #163f6f;
}

.resources-page .resources-hero-subtitle {
  color: #3d628d;
}

.tools-page .panel,
.resources-page .panel,
.resources-page .resource-card,
.tools-page .tools .tool,
.resources-page .resource-faq details,
.tools-page .comparison-empty-state,
.resources-page .comparison-empty-state {
  background: #ffffff;
  border: 1px solid var(--mc-border);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 8px 18px rgba(24, 68, 117, 0.08);
}

.tools-page .panel::after,
.resources-page .panel::after,
.resources-page .resource-card::after,
.tools-page .tools .tool::after {
  content: none;
}

.tools-page .tools .tool::before,
.resources-page .resource-card::before {
  background: var(--mc-blue);
}

.tools-page .tools .tool:nth-child(2)::before,
.resources-page .resource-card:nth-child(2)::before,
.resources-page .resource-card:nth-child(6)::before {
  background: var(--mc-cyan);
}

.tools-page .tools .tool:nth-child(3)::before,
.resources-page .resource-card:nth-child(3)::before {
  background: var(--mc-mint);
}

.tools-page .tools .tool:nth-child(4)::before,
.resources-page .resource-card:nth-child(4)::before {
  background: var(--mc-coral);
}

.tools-page .tools .tool:nth-child(5)::before,
.resources-page .resource-card:nth-child(5)::before {
  background: var(--mc-violet);
}

.resources-page .resource-card:nth-child(3n + 1),
.resources-page .resource-card:nth-child(3n + 2),
.resources-page .resource-card:nth-child(3n + 3) {
  background: #ffffff;
}

.tools-page .tools .tool b,
.resources-page .resource-card h4,
.resources-page .resource-faq summary {
  color: var(--mc-text);
}

.tools-page .tools .tool span,
.resources-page .resource-card p,
.resources-page .resource-card ul,
.resources-page .resource-faq p,
.tools-page .comparison-empty-text,
.resources-page .comparison-empty-text {
  color: var(--mc-muted);
}

.resources-page .pill {
  background: #ffffff;
  color: #315b88;
  border: 1px solid #cfdded;
  box-shadow: none;
}

.resources-page .pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(33, 86, 146, 0.12);
}

.resources-page .pill.active {
  background: var(--mc-blue);
  color: #ffffff;
  border-color: var(--mc-blue);
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.24);
}

.tools-page .tool-btn.primary,
.resources-page .tool-btn.primary,
.tools-page .btn.primary,
.resources-page .btn.primary {
  background: var(--mc-blue);
  color: #fff;
  box-shadow: 0 10px 18px rgba(59, 130, 246, 0.2);
}

.tools-page .tool-btn.primary:hover,
.resources-page .tool-btn.primary:hover,
.tools-page .btn.primary:hover,
.resources-page .btn.primary:hover {
  background: #2563eb;
}

.tools-page .tool-btn.ghost,
.resources-page .tool-btn.ghost,
.tools-page .btn.outline,
.resources-page .btn.outline {
  background: #ffffff;
  border: 1px solid #cfdced;
  color: #2b4f77;
}

.tools-page .menu,
.resources-page .menu {
  background: #ffffff;
  border: 1px solid #d2dfef;
  box-shadow: none;
}

.tools-page .menu a,
.resources-page .menu a {
  color: #2a4f7b;
}

.tools-page .menu a:hover,
.resources-page .menu a:hover {
  color: var(--mc-blue);
  background: #edf5ff;
}

.tools-page .panel:hover,
.resources-page .panel:hover,
.resources-page .resource-card:hover,
.tools-page .tools .tool:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 24px rgba(24, 68, 117, 0.14);
}

/* One Solid Color Per Card */
.tools-page .tools .tool:nth-child(1) {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.tools-page .tools .tool:nth-child(2) {
  background: #ecfeff;
  border-color: #a5f3fc;
}

.tools-page .tools .tool:nth-child(3) {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.tools-page .tools .tool:nth-child(4) {
  background: #fff1f2;
  border-color: #fecdd3;
}

.tools-page .tools .tool:nth-child(5) {
  background: #f5f3ff;
  border-color: #ddd6fe;
}

.resources-page .resource-card:nth-child(6n + 1) {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.resources-page .resource-card:nth-child(6n + 2) {
  background: #ecfeff;
  border-color: #a5f3fc;
}

.resources-page .resource-card:nth-child(6n + 3) {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.resources-page .resource-card:nth-child(6n + 4) {
  background: #fff1f2;
  border-color: #fecdd3;
}

.resources-page .resource-card:nth-child(6n + 5) {
  background: #fff7ed;
  border-color: #fed7aa;
}

.resources-page .resource-card:nth-child(6n + 6) {
  background: #f5f3ff;
  border-color: #ddd6fe;
}



/* Global Intro/Outro Scroll Animations */
.reveal-ready {
  opacity: 0.01;
  will-change: transform, opacity, filter;
  transition: transform 720ms cubic-bezier(0.22, 1, 0.36, 1), opacity 720ms ease, filter 720ms ease;
  filter: blur(3px);
}

.reveal-ready.reveal-left {
  transform: translate3d(-34px, 0, 0) scale(0.985);
}

.reveal-ready.reveal-right {
  transform: translate3d(34px, 0, 0) scale(0.985);
}

.reveal-ready.reveal-zoom {
  transform: translate3d(0, 16px, 0) scale(0.94);
}

.reveal-ready.reveal-in {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

/* Subtle stagger for denser grids */
.cards-grid > *.reveal-ready,
.resources-grid > *.reveal-ready {
  transition-duration: 760ms;
}

.cards-grid > *:nth-child(2).reveal-ready,
.resources-grid > *:nth-child(2).reveal-ready {
  transition-delay: 40ms;
}

.cards-grid > *:nth-child(3).reveal-ready,
.resources-grid > *:nth-child(3).reveal-ready {
  transition-delay: 80ms;
}

.cards-grid > *:nth-child(4).reveal-ready,
.resources-grid > *:nth-child(4).reveal-ready {
  transition-delay: 120ms;
}

.cards-grid > *:nth-child(5).reveal-ready,
.resources-grid > *:nth-child(5).reveal-ready {
  transition-delay: 160ms;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-ready,
  .reveal-ready.reveal-left,
  .reveal-ready.reveal-right,
  .reveal-ready.reveal-zoom {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* Navbar parity: resources/tools use same navbar design as homepage */
.tools-page .nav,
.resources-page .nav {
  background: #ffffff;
  border-bottom: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 2px 8px rgba(37, 73, 138, 0.08);
}

.tools-page .menu,
.resources-page .menu {
  background: linear-gradient(130deg, rgba(43, 125, 250, 0.14) 0%, rgba(31, 191, 117, 0.12) 100%);
  border: 1px solid rgba(163, 191, 236, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.tools-page .menu a,
.resources-page .menu a {
  color: #27314f;
}

.tools-page .menu a:hover,
.resources-page .menu a:hover {
  color: var(--blue);
  background: rgba(255, 255, 255, 0.55);
}

.tools-page .nav .btn.primary,
.resources-page .nav .btn.primary {
  color: #fff;
  background: linear-gradient(135deg, #0f4fb0, #1a68de);
  box-shadow: 0 10px 22px rgba(24, 97, 210, 0.28);
}

.tools-page .nav .btn.outline,
.resources-page .nav .btn.outline {
  background: #fff;
  color: #0f234f;
  border: 1px solid #ccdaef;
}

/* ============================================================
   ✨ ENHANCED UI DESIGN SYSTEM — EXTENSION BLOCK
   Expanded colors, card redesigns, animations, section variety
   ============================================================ */

/* --- 1. Extended CSS Design Tokens --- */
:root {
  /* New accent colors */
  --teal:    #0d9488;
  --teal-2:  #0f766e;
  --purple:  #7c3aed;
  --purple-2:#6d28d9;
  --rose:    #e11d48;
  --rose-2:  #be123c;
  --amber:   #d97706;
  --amber-2: #b45309;
  --cyan:    #0891b2;
  --cyan-2:  #0e7490;
  --green-2: #15803d;

  /* Card glow shadows per accent */
  --glow-blue:   0 16px 40px rgba(25, 104, 222, 0.22);
  --glow-teal:   0 16px 40px rgba(13, 148, 136, 0.22);
  --glow-purple: 0 16px 40px rgba(124, 58, 237, 0.22);
  --glow-rose:   0 16px 40px rgba(225, 29, 72, 0.22);
  --glow-amber:  0 16px 40px rgba(217, 119, 6, 0.22);

  /* Extra card gradients */
  --card-c: linear-gradient(145deg, #f0fdfa 0%, #e0f2fe 100%);
  --card-d: linear-gradient(145deg, #faf5ff 0%, #ede9fe 100%);
  --card-e: linear-gradient(145deg, #fff7ed 0%, #fef3c7 100%);
  --card-f: linear-gradient(145deg, #fff1f2 0%, #ffe4e6 100%);

  /* Section zone backgrounds */
  --section-stats-bg:     linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #fefce8 100%);
  --section-countries-bg: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 50%, #f5f3ff 100%);
  --section-resources-bg: linear-gradient(135deg, #fdf4ff 0%, #f5f3ff 50%, #eff6ff 100%);
  --section-blog-bg:      linear-gradient(135deg, #fff7ed 0%, #fffbeb 50%, #fef9f0 100%);
  --section-team-bg:      linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e8f0fe 100%);
}

/* --- 2. Section Background Zones --- */
.section-zone-stats {
  background: white;
  border-radius: 24px;
  padding: 52px 22px 36px;
  margin: 8px 0;
  border: 1px solid rgba(209, 250, 229, 0.8);
  position: relative;
  overflow: hidden;
}
.section-zone-stats::before {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.12), transparent 65%);
  pointer-events: none;
}
.section-zone-stats::after {
  content: "";
  position: absolute;
  left: -40px; bottom: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,0.1), transparent 65%);
  pointer-events: none;
}

.section-zone-countries {
  background: var(--section-countries-bg);
  border-radius: 24px;
  padding: 18px 20px 12px;
  margin: 8px 0;
  border: 1px solid rgba(191, 219, 254, 0.6);
  position: relative;
  overflow: hidden;
}
.section-zone-countries::before {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.1), transparent 65%);
  pointer-events: none;
}

.section-zone-resources {
  background: white;
  border-radius: 24px;
  padding: 12px 12px 12px 0px;
  margin: 8px 0;
  border: 1px solid rgba(216,180,254,0.5);
  position: relative;
  overflow: hidden;
}
.section-zone-resources::before {
  content: "";
  position: absolute;
  left: -60px; top: -60px;
  max-width: 240px; max-height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,0.1), transparent 65%);
  pointer-events: none;
}

.section-zone-blog {
  background: white;
  border-radius: 24px 24px 0 0;
  padding: 20px 20px 20px;
  margin: 8px 0 0;
  border: 1px solid rgba(253,230,138,0.6);
  border-bottom: none;
  position: relative;
  overflow: hidden;
}
.section-zone-blog::after {
  content: "";
  position: absolute;
  right: -40px; bottom: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,0.1), transparent 65%);
  pointer-events: none;
}

.section-zone-team {
  background: var(--section-team-bg);
  border-top: 1px solid rgba(203, 213, 225, 0.5);
  padding: 36px 22px;
  position: relative;
  overflow: hidden;
}

/* --- 3. Scroll Reveal Animation --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.93) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- 4. Enhanced Stat Cards --- */
.stat {
  transition: transform 0.28s cubic-bezier(.34,1.56,.64,1), box-shadow 0.28s ease, border-color 0.2s ease !important;
}

.stat:hover {
  transform: translateY(-7px) scale(1.02) !important;
}

/* Vivid colored icon containers per stat child */
.stat:nth-child(1) .icon { background: linear-gradient(135deg, #2563eb, #1d4ed8) !important; border: none !important; box-shadow: 0 8px 20px rgba(37,99,235,0.35) !important; }
.stat:nth-child(1) .icon img, .stat:nth-child(1) .icon svg { filter: brightness(0) invert(1); color: #fff; }
.stat:nth-child(1):hover { box-shadow: var(--glow-blue) !important; }

.stat:nth-child(2) .icon { background: linear-gradient(135deg, #0d9488, #0f766e) !important; border: none !important; box-shadow: 0 8px 20px rgba(13,148,136,0.35) !important; }
.stat:nth-child(2) .icon img, .stat:nth-child(2) .icon svg { filter: brightness(0) invert(1); color: #fff; }
.stat:nth-child(2):hover { box-shadow: var(--glow-teal) !important; }

.stat:nth-child(3) .icon { background: linear-gradient(135deg, #7c3aed, #6d28d9) !important; border: none !important; box-shadow: 0 8px 20px rgba(124,58,237,0.35) !important; }
.stat:nth-child(3) .icon img, .stat:nth-child(3) .icon svg { filter: brightness(0) invert(1); color: #fff; }
.stat:nth-child(3):hover { box-shadow: var(--glow-purple) !important; }

.stat:nth-child(4) .icon { background: linear-gradient(135deg, #d97706, #b45309) !important; border: none !important; box-shadow: 0 8px 20px rgba(217,119,6,0.35) !important; }
.stat:nth-child(4) .icon img, .stat:nth-child(4) .icon svg { filter: brightness(0) invert(1); color: #fff; }
.stat:nth-child(4):hover { box-shadow: var(--glow-amber) !important; }

.stat:nth-child(5) .icon { background: linear-gradient(135deg, #e11d48, #be123c) !important; border: none !important; box-shadow: 0 8px 20px rgba(225,29,72,0.35) !important; }
.stat:nth-child(5) .icon img, .stat:nth-child(5) .icon svg { filter: brightness(0) invert(1); color: #fff; }
.stat:nth-child(5):hover { box-shadow: var(--glow-rose) !important; }

/* --- 5. Stat Counter Pulse on Reveal --- */
@keyframes countPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.stat b.counted {
  animation: countPop 0.5s cubic-bezier(.34,1.56,.64,1);
}

/* --- 6. Country Card Enhancements --- */
.country-photo {
  height: 150px !important;
  border-radius: 12px !important;
}

.country-card {
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), box-shadow 0.3s ease, border-color 0.22s ease !important;
}

.country-card:nth-child(4n+1):hover { box-shadow: var(--glow-blue) !important; border-color: transparent !important; }
.country-card:nth-child(4n+2):hover { box-shadow: var(--glow-teal) !important; border-color: transparent !important; }
.country-card:nth-child(4n+3):hover { box-shadow: var(--glow-purple) !important; border-color: transparent !important; }
.country-card:nth-child(4n+0):hover { box-shadow: var(--glow-amber) !important; border-color: transparent !important; }

.country-card:hover {
  transform: translateY(-7px) scale(1.015) !important;
}

/* Country photo gradient name overlay strip */
.country-photo::after {
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 50%, transparent 100%) !important;
}

/* --- 7. Resource Card Large Icon Containers --- */
/* Override the pale pastel icons with vivid gradient versions */
.resource-icon--calculator {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  box-shadow: 0 10px 24px rgba(37,99,235,0.38) !important;
  width: 62px !important;
  height: 62px !important;
  border-radius: 16px !important;
  font-size: 30px !important;
}

.resource-icon--comparison {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
  box-shadow: 0 10px 24px rgba(124,58,237,0.38) !important;
  width: 62px !important;
  height: 62px !important;
  border-radius: 16px !important;
  font-size: 30px !important;
}

.resource-icon--roadmap {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  box-shadow: 0 10px 24px rgba(249,115,22,0.38) !important;
  width: 62px !important;
  height: 62px !important;
  border-radius: 16px !important;
  font-size: 30px !important;
}

.resource-icon--visa {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  box-shadow: 0 10px 24px rgba(16,185,129,0.38) !important;
  width: 62px !important;
  height: 62px !important;
  border-radius: 16px !important;
  font-size: 30px !important;
}

/* Inline SVG resource icons */
.resource-icon-svg {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 28px;
}
.resource-icon-svg svg {
  width: 30px;
  height: 30px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Resource card hover glow */
.resource-card:nth-child(4n+1):hover { box-shadow: 0 18px 40px rgba(37,99,235,0.2) !important; border-color: transparent !important; }
.resource-card:nth-child(4n+2):hover { box-shadow: 0 18px 40px rgba(124,58,237,0.2) !important; border-color: transparent !important; }
.resource-card:nth-child(4n+3):hover { box-shadow: 0 18px 40px rgba(249,115,22,0.2) !important; border-color: transparent !important; }
.resource-card:nth-child(4n+0):hover { box-shadow: 0 18px 40px rgba(16,185,129,0.2) !important; border-color: transparent !important; }

.resource-card {
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), box-shadow 0.3s ease, border-color 0.22s ease !important;
}
.resource-card:hover {
  transform: translateY(-7px) !important;
}

/* Resource card coloured left accent bar */

/* --- 8. Scholarship/Panel Section Accent --- */
.panel#scholarship {
  background: var(--mc-blue-2) !important;
  border-color: rgba(16,185,129,0.25) !important;
  border-left: 4px solid #10b981 !important;
}
.panel#scholarship h4 { color: #065f46 !important; }
.panel#scholarship .feature-list { color: #064e3b !important; }

/* Tools teaser panel */
aside.panel.tools-teaser {
  background: white;
  border-color: rgba(124,58,237,0.2) !important;
  border-left: 4px solid #7c3aed !important;
}
aside.panel.tools-teaser p { color: #4c1d95 !important; font-weight: 600; }

/* --- 9. Blog Cards — Per-card accent colors --- */
.blog-card-1 {
  background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%) !important;
  border-left: 4px solid #2563eb !important;
}
.blog-card-1 .blog-news-tag {
  background: rgba(37,99,235,0.14) !important;
  color: #1d4ed8 !important;
}

.blog-card-2 {
  background: linear-gradient(145deg, #f5f3ff 0%, #ede9fe 100%) !important;
  border-left: 4px solid #7c3aed !important;
}
.blog-card-2 .blog-news-tag {
  background: rgba(124,58,237,0.14) !important;
  color: #6d28d9 !important;
}

.blog-card-3 {
  background: linear-gradient(145deg, #fff7ed 0%, #fed7aa 100%) !important;
  border-left: 4px solid #f97316 !important;
}
.blog-card-3 .blog-news-tag {
  background: rgba(249,115,22,0.14) !important;
  color: #ea580c !important;
}

.blog-news-item {
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), box-shadow 0.3s ease !important;
}
.blog-card-1:hover { box-shadow: var(--glow-blue) !important; transform: translateY(-7px) !important; }
.blog-card-2:hover { box-shadow: var(--glow-purple) !important; transform: translateY(-7px) !important; }
.blog-card-3:hover { box-shadow: var(--glow-amber) !important; transform: translateY(-7px) !important; }

/* --- 10. Team Cards Enhancement --- */
.team-member-1 {
  background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 80%, #c7d2fe 100%) !important;
  border-left: 4px solid #2563eb !important;
}
.team-member-2 {
  background: linear-gradient(145deg, #fdf4ff 0%, #f3e8ff 80%, #e9d5ff 100%) !important;
  border-left: 4px solid #7c3aed !important;
}

.team-member {
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), box-shadow 0.3s ease !important;
}
.team-member-1:hover { box-shadow: var(--glow-blue) !important; transform: translateY(-8px) !important; }
.team-member-2:hover { box-shadow: var(--glow-purple) !important; transform: translateY(-8px) !important; }

/* --- 11. Section Heading Accent Pills --- */
.section-accent-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(124,58,237,0.10));
  border: 1px solid rgba(99,102,241,0.28);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #3730a3;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* --- 12. Glassmorphism Hero Side Panel --- */
.quick-panel {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.75) !important;
  box-shadow: 0 16px 40px rgba(37, 73, 138, 0.18) !important;
}

.insight-pill {
  background: linear-gradient(135deg, rgba(37,99,235,0.88), rgba(99,102,241,0.88)) !important;
  backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255,255,255,0.22) !important;
  box-shadow: 0 12px 28px rgba(37,99,235,0.3) !important;
}

/* --- 13. Trust / Flag-chip Strip Enhancement --- */
.trust {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 45%, #7c3aed 100%) !important;
  border-radius: 18px !important;
  box-shadow: 0 14px 32px rgba(30,64,175,0.28) !important;
  padding: 18px 22px !important;
}

.flag-chip {
  background: rgba(255,255,255,0.18) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.35) !important;
  backdrop-filter: blur(8px) !important;
  transition: transform 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease !important;
}
.flag-chip:hover {
  background: rgba(255,255,255,0.30) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
}

/* --- 14. Enhanced Buttons --- */
.btn.primary {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 55%, #4f46e5 100%) !important;
  box-shadow: 0 10px 26px rgba(37,99,235,0.4) !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease !important;
}
.btn.primary:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 16px 36px rgba(37,99,235,0.48) !important;
}

.countries-more-btn {
  background: linear-gradient(135deg, #1e40af, #7c3aed) !important;
  box-shadow: 0 10px 26px rgba(99,102,241,0.35) !important;
  border-radius: 12px !important;
  padding: 12px 28px !important;
  font-size: 15px !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease !important;
}
.countries-more-btn:hover {
  transform: translateY(-3px) scale(1.03) !important;
  box-shadow: 0 18px 36px rgba(99,102,241,0.45) !important;
}

/* --- 15. Section Head Highlight Text --- */
.section-head p {
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Override for the countries section "anywhere in the world" subtitle */
.section-zone-countries .section-head p {
  background: linear-gradient(90deg, #0d9488, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-zone-resources .section-head p {
  background: linear-gradient(90deg, #7c3aed, #e11d48);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- 16. Resources Teaser Section Separator --- */
.resources-grid {
  position: relative;
}

/* --- 17. Section Title underline decoration --- */
.section-head h3 {
  position: relative;
  display: inline-block;
}
.section-head h3::after {
  content: "";
  display: block;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #7c3aed, #e11d48);
  margin: 10px auto 0;
  width: 60px;
  transition: width 0.4s ease;
}
.section-head:hover h3::after {
  width: 100%;
}

/* --- 18. Pill Row Active States --- */
.pill {
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease !important;
}
.pill:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 14px rgba(37,99,235,0.15) !important;
}
.pill.active {
  background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(99,102,241,0.3) !important;
}

/* --- 19. Dark Mode Overrides for New Styles --- */
html[data-theme="night"] .section-zone-stats {
  background: linear-gradient(135deg, #0d1f12 0%, #0a1a10 50%, #1a1500 100%);
  border-color: rgba(16,185,129,0.15);
}
html[data-theme="night"] .section-zone-countries {
  background: linear-gradient(135deg, #0b1230 0%, #0d1628 50%, #13103a 100%);
  border-color: rgba(99,102,241,0.2);
}
html[data-theme="night"] .section-zone-resources {
  background: linear-gradient(135deg, #160d25 0%, #12102a 50%, #0d1628 100%);
  border-color: rgba(168,85,247,0.15);
}
html[data-theme="night"] .section-zone-blog {
  background: linear-gradient(135deg, #1a1200 0%, #141000 50%, #1a1200 100%);
  border-color: rgba(245,158,11,0.12);
}
html[data-theme="night"] .section-zone-team {
  background: linear-gradient(135deg, #0f172a 0%, #111827 100%);
  border-top-color: #1e293b;
}

html[data-theme="night"] .stat:nth-child(1) { background: linear-gradient(145deg, #0f1f42, #122054) !important; }
html[data-theme="night"] .stat:nth-child(2) { background: linear-gradient(145deg, #061a18, #0a1f1d) !important; }
html[data-theme="night"] .stat:nth-child(3) { background: linear-gradient(145deg, #1a0d33, #1c1040) !important; }
html[data-theme="night"] .stat:nth-child(4) { background: linear-gradient(145deg, #1a1000, #1e1400) !important; }
html[data-theme="night"] .stat:nth-child(5) { background: linear-gradient(145deg, #2a0820, #1a0510) !important; }

html[data-theme="night"] .blog-card-1 {
  background: linear-gradient(145deg, #0f152e 0%, #121a3a 100%) !important;
  border-left-color: #2563eb !important;
}
html[data-theme="night"] .blog-card-2 {
  background: linear-gradient(145deg, #150d2a 0%, #1c1040 100%) !important;
  border-left-color: #7c3aed !important;
}
html[data-theme="night"] .blog-card-3 {
  background: linear-gradient(145deg, #1a1100 0%, #1e1500 100%) !important;
  border-left-color: #f97316 !important;
}

html[data-theme="night"] .team-member-1 {
  background: linear-gradient(145deg, #0f1a35, #111e40) !important;
  border-left-color: #2563eb !important;
}
html[data-theme="night"] .team-member-2 {
  background: linear-gradient(145deg, #160d28, #1a1035) !important;
  border-left-color: #7c3aed !important;
}

html[data-theme="night"] .panel#scholarship {
  background: linear-gradient(145deg, #071a10, #0a2015) !important;
  border-color: rgba(16,185,129,0.2) !important;
}
html[data-theme="night"] .panel#scholarship h4 { color: #34d399 !important; }
html[data-theme="night"] .panel#scholarship .feature-list { color: #a7f3d0 !important; }

html[data-theme="night"] aside.panel.tools-teaser {
  background: linear-gradient(145deg, #160d25, #1a1035) !important;
  border-color: rgba(124,58,237,0.2) !important;
}
html[data-theme="night"] aside.panel.tools-teaser p { color: #c4b5fd !important; }

html[data-theme="night"] .quick-panel {
  background: rgba(17, 24, 39, 0.85) !important;
  border-color: rgba(56,189,248,0.2) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4) !important;
}

html[data-theme="night"] .trust {
  background: linear-gradient(135deg, #0c1a4a 0%, #1e1b4b 100%) !important;
  border: 1px solid rgba(99,102,241,0.25) !important;
  box-shadow: 0 14px 32px rgba(0,0,0,0.3) !important;
}
html[data-theme="night"] .flag-chip {
  background: rgba(255,255,255,0.08) !important;
  color: #c6d4ec !important;
  border-color: rgba(255,255,255,0.12) !important;
}

html[data-theme="night"] .section-head p {
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
html[data-theme="night"] .section-head h3::after {
  background: linear-gradient(90deg, #60a5fa, #a78bfa, #f472b6);
}

html[data-theme="night"] .pill.active {
  background: linear-gradient(135deg, #60a5fa, #a78bfa) !important;
  color: #060c18 !important;
}

html[data-theme="night"] .countries-more-btn {
  background: linear-gradient(135deg, #1e3a8a, #4c1d95) !important;
  box-shadow: 0 10px 26px rgba(0,0,0,0.3) !important;
}

html[data-theme="night"] .btn.primary {
  background: linear-gradient(135deg, #1d4ed8, #4338ca) !important;
  box-shadow: 0 10px 26px rgba(37,99,235,0.3) !important;
}


html[data-theme="night"] .section-accent-pill {
  background: linear-gradient(135deg, rgba(96,165,250,0.15), rgba(167,139,250,0.12));
  border-color: rgba(99,102,241,0.25);
  color: #a78bfa;
}

/* Europe Comparison Dashboard */
.comparison-subtitle {
  margin: 8px 0 0;
  color: #49688f;
  font-size: 15px;
  line-height: 1.45;
  max-width: 780px;
}

.comparison-preview {
  text-align: left;
}

.comparison-preview-head h4 {
  margin: 0;
  font-size: 22px;
  color: #164373;
}

.comparison-preview-head p {
  margin: 8px 0 0;
  color: #55739c;
  font-size: 15px;
  line-height: 1.45;
}

.comparison-preview-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.preview-country-card {
  border: 1px solid #cfe0f5;
  border-radius: 14px;
  padding: 10px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(236, 244, 255, 0.85));
}

.preview-country-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-rank {
  min-width: 32px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e4eefb;
  color: #25558e;
  font-size: 12px;
  font-weight: 700;
}

.preview-country-top strong {
  font-size: 14px;
  color: #1f4b7d;
}

.preview-track {
  height: 7px;
  margin-top: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(41, 96, 162, 0.16);
}

.preview-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.preview-country-meta {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #4f6f95;
  font-size: 11px;
  font-weight: 600;
}

.comparison-open-btn {
  margin-top: 14px;
  width: 100%;
}

.europe-comparison-panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(236, 245, 255, 0.72));
}

.euro-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 6px 0 16px;
}

.euro-kpi {
  border-radius: 14px;
  border: 1px solid #c7daf4;
  padding: 12px;
  background: #fff;
  display: grid;
  gap: 4px;
}

.euro-kpi span {
  color: #4f6d93;
  font-size: 12px;
  font-weight: 600;
}

.euro-kpi strong {
  color: #1c4a7f;
  font-size: 17px;
}

.euro-kpi b {
  color: #0f6bb7;
  font-size: 14px;
}

.euro-kpi.kpi-score {
  background: linear-gradient(145deg, rgba(73, 162, 255, 0.14), rgba(129, 203, 255, 0.14));
}

.euro-kpi.kpi-visa {
  background: linear-gradient(145deg, rgba(46, 207, 160, 0.14), rgba(109, 224, 175, 0.14));
}

.euro-kpi.kpi-cost {
  background: linear-gradient(145deg, rgba(247, 176, 76, 0.16), rgba(255, 216, 143, 0.16));
}

.euro-kpi.kpi-salary {
  background: linear-gradient(145deg, rgba(190, 125, 255, 0.14), rgba(237, 157, 255, 0.14));
}

.euro-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.euro-control {
  display: grid;
  gap: 6px;
}

.euro-control span {
  color: #2c5585;
  font-size: 12px;
  font-weight: 700;
}

.euro-control input,
.euro-control select {
  border: 1px solid #c8daf3;
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  color: #183f6d;
  outline: none;
}

.euro-control input:focus,
.euro-control select:focus {
  border-color: #4f9eff;
  box-shadow: 0 0 0 3px rgba(79, 158, 255, 0.18);
}

.euro-results-count {
  margin: 12px 0 10px;
  color: #496b94;
  font-size: 13px;
  font-weight: 600;
}

.euro-bar-list {
  display: grid;
  gap: 10px;
}

.euro-row {
  border-radius: 14px;
  border: 1px solid #cddff4;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.93), rgba(240, 248, 255, 0.85));
  padding: 12px;
}

.euro-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.euro-country-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.euro-rank {
  min-width: 36px;
  text-align: center;
  border-radius: 999px;
  background: #e3eefc;
  color: #25548d;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
}

.euro-country-head h5 {
  margin: 0;
  font-size: 17px;
  color: #163f70;
}

.euro-score-chip {
  min-width: 40px;
  text-align: center;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 8px;
  color: #0e345f;
  background: #d7eafc;
}

.euro-score-track {
  margin-top: 10px;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(30, 84, 148, 0.16);
}

.euro-score-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.euro-row-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.euro-pill {
  border: 1px solid #d0e0f4;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #355d8f;
  background: rgba(243, 248, 255, 0.9);
}

.euro-empty-state {
  border: 1px dashed #b9d0ed;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  color: #45658d;
  font-weight: 600;
  background: rgba(244, 249, 255, 0.9);
}

.euro-matrix-wrap {
  margin-top: 14px;
  border-radius: 14px;
  border: 1px solid #cddcf1;
  overflow: auto;
  background: rgba(255, 255, 255, 0.9);
}

.euro-matrix {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
}

.euro-matrix th,
.euro-matrix td {
  padding: 10px;
  border-bottom: 1px solid #dce7f7;
  font-size: 13px;
  text-align: left;
  color: #264f80;
}

.euro-matrix th {
  position: sticky;
  top: 0;
  background: #ecf4ff;
  color: #1f4b7d;
  z-index: 1;
}

.euro-matrix td strong {
  display: block;
  color: #15406f;
}

.euro-matrix td small {
  color: #6083ab;
  font-size: 11px;
}

.euro-table-chip {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}

.euro-row.score-elite .euro-score-track span,
.preview-country-card.score-elite .preview-track span {
  background: linear-gradient(90deg, #00b894, #00cec9);
}

.euro-row.score-strong .euro-score-track span,
.preview-country-card.score-strong .preview-track span {
  background: linear-gradient(90deg, #0984e3, #74b9ff);
}

.euro-row.score-mid .euro-score-track span,
.preview-country-card.score-mid .preview-track span {
  background: linear-gradient(90deg, #fdcb6e, #f39c12);
}

.euro-row.score-base .euro-score-track span,
.preview-country-card.score-base .preview-track span {
  background: linear-gradient(90deg, #e17055, #ff7675);
}

.euro-table-chip.score-elite {
  color: #0f6a54;
  background: rgba(0, 200, 151, 0.14);
  border-color: rgba(0, 184, 148, 0.35);
}

.euro-table-chip.score-strong {
  color: #145b99;
  background: rgba(9, 132, 227, 0.14);
  border-color: rgba(9, 132, 227, 0.35);
}

.euro-table-chip.score-mid {
  color: #9a6312;
  background: rgba(243, 156, 18, 0.18);
  border-color: rgba(243, 156, 18, 0.35);
}

.euro-table-chip.score-base {
  color: #9e4c4c;
  background: rgba(255, 118, 117, 0.16);
  border-color: rgba(225, 112, 85, 0.35);
}

.euro-pill.visa-elite,
.euro-table-chip.visa-elite {
  color: #0e7d61;
  background: rgba(46, 213, 115, 0.15);
  border-color: rgba(46, 213, 115, 0.35);
}

.euro-pill.visa-strong,
.euro-table-chip.visa-strong {
  color: #1f6ea5;
  background: rgba(52, 152, 219, 0.15);
  border-color: rgba(52, 152, 219, 0.35);
}

.euro-pill.visa-mid,
.euro-table-chip.visa-mid {
  color: #9a6716;
  background: rgba(241, 196, 15, 0.2);
  border-color: rgba(241, 196, 15, 0.35);
}

.euro-pill.visa-base,
.euro-table-chip.visa-base {
  color: #a75353;
  background: rgba(231, 76, 60, 0.14);
  border-color: rgba(231, 76, 60, 0.35);
}

@media (max-width: 1080px) {
  .euro-kpi-grid,
  .euro-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comparison-preview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .europe-comparison-panel .comparison-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .euro-kpi-grid,
  .euro-controls {
    grid-template-columns: 1fr;
  }

  .euro-row-meta {
    gap: 6px;
  }

  .euro-pill {
    font-size: 11px;
    padding: 4px 8px;
  }
}

html[data-theme="night"] .comparison-subtitle,
html[data-theme="night"] .comparison-preview-head p,
html[data-theme="night"] .euro-results-count {
  color: #a2b8d6;
}

html[data-theme="night"] .comparison-preview-head h4,
html[data-theme="night"] .euro-country-head h5,
html[data-theme="night"] .euro-kpi strong,
html[data-theme="night"] .euro-matrix th,
html[data-theme="night"] .euro-matrix td strong {
  color: #d7e8ff;
}

html[data-theme="night"] .comparison-preview,
html[data-theme="night"] .europe-comparison-panel,
html[data-theme="night"] .euro-row,
html[data-theme="night"] .euro-matrix-wrap,
html[data-theme="night"] .euro-kpi,
html[data-theme="night"] .preview-country-card {
  background: linear-gradient(145deg, rgba(17, 25, 39, 0.92), rgba(18, 31, 52, 0.88));
  border-color: rgba(99, 132, 175, 0.4);
}

html[data-theme="night"] .preview-rank,
html[data-theme="night"] .euro-rank,
html[data-theme="night"] .euro-score-chip {
  background: rgba(64, 112, 173, 0.32);
  color: #d9e8ff;
}

html[data-theme="night"] .euro-control span,
html[data-theme="night"] .euro-kpi span,
html[data-theme="night"] .euro-kpi b,
html[data-theme="night"] .preview-country-top strong,
html[data-theme="night"] .preview-country-meta,
html[data-theme="night"] .euro-pill,
html[data-theme="night"] .euro-matrix td {
  color: #b9cde7;
}

html[data-theme="night"] .euro-control input,
html[data-theme="night"] .euro-control select {
  background: rgba(8, 15, 28, 0.78);
  border-color: rgba(93, 126, 169, 0.52);
  color: #d5e6ff;
}

html[data-theme="night"] .euro-score-track,
html[data-theme="night"] .preview-track {
  background: rgba(125, 163, 207, 0.25);
}

html[data-theme="night"] .euro-matrix th {
  background: rgba(21, 35, 56, 0.95);
}

html[data-theme="night"] .euro-matrix td,
html[data-theme="night"] .euro-matrix th {
  border-bottom-color: rgba(90, 120, 160, 0.4);
}

