/* =========================
   GLOBAL RESET
========================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: #ffffff;
  color: #162033;
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
}

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

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

.container {
  width: min(1180px, 90%);
  margin: 0 auto;
}

/* =========================
   NAVIGATION
========================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  background: rgba(8, 22, 40, 0.96);
  backdrop-filter: blur(14px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.05);

  z-index: 1000;
}

.nav-container {
  min-height: 80px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;

    text-decoration: none;
}

.logo img {
    width: 42px;
    height: 42px;

    object-fit: contain;
    display: block;
}

.logo-name {
    font-family: "Space Grotesk", sans-serif;
    font-size: 22px;
    font-weight: 700;

    color: white;

    line-height: 1.1;
}

.logo-name strong {
    color: #6ea8ff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  position: relative;

  color: #d9e3f0;
  font-size: 14px;
  font-weight: 500;

  transition: color 0.2s ease;
}

.nav-links a:not(.nav-button)::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -7px;

  width: 0;
  height: 2px;

  background: #6ea8ff;

  transition: width 0.2s ease;
}

.nav-links a:not(.nav-button):hover {
  color: #ffffff;
}

.nav-links a:not(.nav-button):hover::after {
  width: 100%;
}

/* ACTIVE PAGE */

.nav-links a.active-page {
  color: #6ea8ff !important;
}

.nav-links a.active-page::after {
  width: 100% !important;
}

.nav-button {
  padding: 12px 20px;

  background: #3b82f6;

  border-radius: 9px;

  color: #ffffff !important;
  font-weight: 600;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.nav-button:hover {
  background: #2f6fd0;
  transform: translateY(-1px);
}

.menu-button {
  display: none;

  border: 0;
  background: transparent;

  color: #ffffff;
  font-size: 28px;

  cursor: pointer;
}


/* =========================
   HERO
========================= */

.hero {
  min-height: 700px;

  position: relative;

  display: flex;
  align-items: center;

  padding-top: 80px;

  background:
    linear-gradient(
      90deg,
      rgba(5, 15, 31, 0.98) 0%,
      rgba(5, 15, 31, 0.90) 32%,
      rgba(5, 15, 31, 0.68) 62%,
      rgba(5, 15, 31, 0.36) 100%
    ),
    url("../images/hero.png");

  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(5, 15, 31, 0.08) 0%,
      rgba(5, 15, 31, 0.15) 55%,
      rgba(5, 15, 31, 0.45) 100%
    );

  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;

  max-width: 860px;

  color: #ffffff;
}

.eyebrow {
  margin-bottom: 18px;

  color: #6ea8ff;

  font-size: 13px;
  font-weight: 700;

  letter-spacing: 2.4px;
}

.hero h1 {
  max-width: 880px;

  color: #ffffff;

  font-size: clamp(48px, 6vw, 76px);

  line-height: 1.02;

  letter-spacing: -2px;
}

.hero h1 span {
  display: block;

  color: #6ea8ff;
}

.hero-description {
  max-width: 670px;

  margin-top: 26px;

  color: #d2dceb;

  font-size: 18px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;

  gap: 14px;

  margin-top: 34px;
}

/* =========================
   CLICK / LAYER FIX
========================= */

.hero-overlay {
  pointer-events: none;
}

.hero::after {
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.navbar {
  z-index: 9999;
}

.nav-container {
  position: relative;
}

.menu-button {
  position: relative;
  z-index: 10001;
  cursor: pointer;
}

.nav-links {
  z-index: 10000;
}
/* =========================
   BUTTONS
========================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 52px;

  padding: 14px 24px;

  border-radius: 9px;

  font-size: 15px;
  font-weight: 600;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.primary {
  background: #3b82f6;
  color: #ffffff;
}

.primary:hover {
  background: #2f6fd0;
}

.secondary {
  border: 1px solid rgba(255, 255, 255, 0.32);

  color: #ffffff;

  background: rgba(255, 255, 255, 0.02);
}

.secondary:hover {
  border-color: rgba(255, 255, 255, 0.58);

  background: rgba(255, 255, 255, 0.07);
}


/* =========================
   GENERAL SECTIONS
========================= */

.section {
  padding: 90px 0;
}

.section-heading {
  max-width: 760px;

  margin-bottom: 44px;
}

.section-heading h2 {
  margin-bottom: 16px;

  color: #0f2340;

  font-size: clamp(36px, 4.8vw, 52px);

  line-height: 1.12;

  letter-spacing: -1.3px;
}

.section-heading p {
  color: #68768b;

  font-size: 17px;
  line-height: 1.7;
}


/* =========================
   EXPLORE CARDS
========================= */

.card-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 22px;
}

.explore-card {
  min-height: 260px;

  display: flex;
  flex-direction: column;

  padding: 30px;

  background: #ffffff;

  border: 1px solid #e2e8f0;
  border-radius: 14px;

  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.explore-card:hover {
  transform: translateY(-5px);

  border-color: #c4d9fb;

  box-shadow: 0 16px 38px rgba(15, 35, 64, 0.08);
}

.card-icon {
  margin-bottom: 24px;

  font-size: 28px;
}

.explore-card h3 {
  margin-bottom: 11px;

  color: #132743;

  font-size: 21px;
  line-height: 1.3;
}

.explore-card p {
  margin-bottom: 22px;

  color: #6a778c;

  font-size: 15.5px;
  line-height: 1.7;
}

.explore-card span {
  margin-top: auto;

  color: #3579e8;

  font-size: 15px;
  font-weight: 600;
}

.featured-card {
  background: #f1f6ff;

  border-color: #c7dcff;
}


/* =========================
   DARK MISSION SECTION
========================= */

.dark-section {
  position: relative;

  background: #07182e;

  color: #ffffff;
}

.dark-section::before {
  content: "";

  position: absolute;
  top: 0;
  left: 50%;

  width: min(1180px, 90%);
  height: 1px;

  transform: translateX(-50%);

  background: rgba(255, 255, 255, 0.06);
}

.section-heading.light h2 {
  color: #ffffff;
}

.section-heading.light p {
  color: #aabbd1;
}

.mission-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 34px;

  margin-top: 8px;
}

.mission-grid > div {
  padding-top: 18px;

  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mission-grid h3 {
  margin-bottom: 10px;

  color: #ffffff;

  font-size: 20px;
}

.mission-grid p {
  color: #9eb2cb;

  font-size: 15px;
  line-height: 1.7;
}


/* =========================
   CTA SECTION
========================= */

.cta-section {
  padding: 95px 0;

  background: #f2f6fc;

  text-align: center;
}

.cta-content {
  max-width: 720px;
}

.cta-content .eyebrow {
  color: #61728b;
}

.cta-content h2 {
  margin-bottom: 14px;

  color: #102440;

  font-size: clamp(38px, 5vw, 52px);

  line-height: 1.12;

  letter-spacing: -1.2px;
}

.cta-content p {
  margin-bottom: 28px;

  color: #6c7a8f;

  font-size: 17px;
  line-height: 1.7;
}


/* =========================
   FOOTER
========================= */

footer {
  padding: 64px 0 30px;

  background: #061423;

  color: #ffffff;
}

.footer-content {
  display: flex;

  justify-content: space-between;
  align-items: flex-start;

  gap: 40px;
}

.footer-content h3 {
  margin-bottom: 10px;

  font-size: 18px;
}

.footer-content p {
  max-width: 440px;

  color: #8fa5bf;

  font-size: 15px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;

  gap: 26px;
}

.footer-links a {
  color: #aab9ca;

  font-size: 15px;

  transition: color 0.2s ease;
}

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

.footer-bottom {
  margin-top: 48px;

  padding-top: 24px;

  border-top: 1px solid #1c3048;

  color: #6f87a3;

  font-size: 13px;
}


/* =========================
   TABLET
========================= */

@media (max-width: 1000px) {

  .nav-links {
    gap: 18px;
  }

  .nav-links a {
    font-size: 13px;
  }

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

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

}


/* =========================
   MOBILE NAVIGATION
========================= */

@media (max-width: 850px) {

  .nav-container {
    min-height: 74px;
  }

  .nav-links {
    display: none;

    position: absolute;

    top: 74px;
    left: 0;

    width: 100%;

    flex-direction: column;
    align-items: stretch;

    gap: 8px;

    padding: 20px 5% 24px;

    background: #07182e;

    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 10px 0;

    font-size: 15px;
  }

  .nav-links a:not(.nav-button)::after {
    display: none;
  }

  .nav-button {
    margin-top: 6px;

    text-align: center;
  }

  .menu-button {
    display: block;
  }

  .hero {
    min-height: 650px;

    padding-top: 74px;

    background-position: 62% center;
  }

  .hero-content {
    max-width: 700px;
  }

}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 640px) {

  .container {
    width: min(92%, 1180px);
  }

  .hero {
    min-height: 620px;

    background-position: 67% center;
  }

  .hero h1 {
    font-size: 46px;

    letter-spacing: -1.5px;
  }

  .hero-description {
    margin-top: 22px;

    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;

    width: 100%;

    max-width: 330px;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 72px 0;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .section-heading h2 {
    font-size: 38px;
  }

  .section-heading p {
    font-size: 16px;
  }

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

  .explore-card {
    min-height: 230px;

    padding: 26px;
  }

  .mission-grid {
    grid-template-columns: 1fr;

    gap: 24px;
  }

  .cta-section {
    padding: 76px 0;
  }

  .cta-content h2 {
    font-size: 38px;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;

    gap: 14px;
  }

}


/* =========================
   EXTRA SMALL SCREENS
========================= */

@media (max-width: 420px) {

  .logo {
    font-size: 18px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-description {
    font-size: 15px;
  }

  .section-heading h2 {
    font-size: 34px;
  }

  .cta-content h2 {
    font-size: 34px;
  }

}

/* =========================
   PHASE 2 — UNIVERSITY DIRECTORY
========================= */

.directory-hero {
  padding: 165px 0 86px;

  background:
    radial-gradient(
      circle at 84% 22%,
      rgba(59, 130, 246, 0.19),
      transparent 34%
    ),
    linear-gradient(
      135deg,
      #061426 0%,
      #0b2342 100%
    );

  color: #ffffff;
}

.directory-hero h1 {
  max-width: 900px;
  margin-bottom: 20px;

  color: #ffffff;

  font-size: clamp(46px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -2px;
}

.directory-hero > .container > p:not(.eyebrow) {
  max-width: 780px;

  color: #b5c6da;

  font-size: 18px;
  line-height: 1.75;
}

.directory-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  margin-top: 30px;
}

.directory-meta span {
  display: inline-flex;
  align-items: center;

  padding: 7px 11px;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.05);

  color: #d7e4f3;

  font-size: 12px;
  font-weight: 600;
}


.directory-section {
  padding: 76px 0 105px;
}


/* DIRECTORY INTRO */

.directory-intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;

  gap: 70px;

  align-items: end;

  margin-bottom: 48px;
}

.directory-intro .eyebrow {
  margin-bottom: 10px;
}

.directory-intro h2 {
  max-width: 540px;

  color: #102440;

  font-size: 42px;
  line-height: 1.13;
  letter-spacing: -1px;
}

.directory-intro > p {
  color: #68768b;

  font-size: 15.5px;
  line-height: 1.8;
}


/* VIEW TABS */

.view-tabs {
  display: flex;
  flex-wrap: wrap;

  gap: 10px;

  margin-bottom: 20px;
}

.view-tab {
  min-height: 44px;

  padding: 10px 16px;

  border: 1px solid #d8e2ee;
  border-radius: 999px;

  background: #ffffff;

  color: #4b5f78;

  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.view-tab:hover {
  transform: translateY(-1px);

  border-color: #a8c8f7;

  color: #2d6fcf;
}

.view-tab.active-view {
  background: #3479e7;

  border-color: #3479e7;

  color: #ffffff;
}


/* FILTERS */

.filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;

  gap: 18px;

  margin-bottom: 62px;

  padding: 24px;

  background: #f5f8fc;

  border: 1px solid #e0e7f0;
  border-radius: 14px;
}

.filter-group {
  display: flex;
  flex-direction: column;

  gap: 8px;
}

.filter-group label {
  color: #243752;

  font-size: 13px;
  font-weight: 700;
}

.filter-group input,
.filter-group select {
  width: 100%;
  min-height: 48px;

  padding: 0 14px;

  border: 1px solid #ccd7e5;
  border-radius: 8px;

  background: #ffffff;

  color: #1a2c45;

  font-family: "Inter", sans-serif;
  font-size: 14px;
}

.filter-group input:focus,
.filter-group select:focus {
  outline: none;

  border-color: #659df1;

  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}


/* DIRECTORY HEADING */

.directory-heading {
  display: flex;

  align-items: end;
  justify-content: space-between;

  gap: 30px;

  margin-bottom: 34px;
}

.directory-heading .eyebrow {
  margin-bottom: 8px;
}

.directory-heading h2 {
  color: #102440;

  font-size: 42px;
  line-height: 1.15;
}

.directory-heading > p {
  color: #7a879a;

  font-size: 14px;
}


/* UNIVERSITY CARDS */

.university-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 24px;
}

.university-card {
  min-width: 0;
  min-height: 560px;

  display: flex;
  flex-direction: column;

  padding: 30px;

  background: #ffffff;

  border: 1px solid #dfe7ef;
  border-radius: 16px;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.university-card:hover {
  transform: translateY(-4px);

  border-color: #bed5f8;

  box-shadow: 0 18px 42px rgba(15, 35, 64, 0.08);
}

.university-top {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 12px;

  margin-bottom: 22px;
}

.school-badges {
  display: flex;
  flex-wrap: wrap;

  gap: 7px;
}

.school-type,
.country-label,
.verified-badge {
  display: inline-flex;
  align-items: center;

  min-height: 28px;

  padding: 5px 10px;

  border-radius: 999px;

  font-size: 11.5px;
  font-weight: 700;
}

.school-type {
  background: #edf4ff;
  color: #3475d5;
}

.verified-badge {
  background: #eef8f2;
  color: #367258;
}

.country-label {
  background: #f2f4f7;
  color: #5c6879;
}

.university-card h3 {
  margin-bottom: 7px;

  color: #102440;

  font-size: 23px;
  line-height: 1.3;
}

.school-location {
  margin-bottom: 17px;

  color: #718096;

  font-size: 13.5px;
}

.school-description {
  margin-bottom: 24px;

  color: #647287;

  font-size: 14.5px;
  line-height: 1.72;
}

.school-detail-block {
  margin-bottom: 20px;
}

.school-detail-label {
  margin-bottom: 9px;

  color: #293f5d;

  font-size: 11px;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.degree-list,
.tag-list {
  display: flex;
  flex-wrap: wrap;

  gap: 7px;
}

.degree-list span {
  padding: 6px 9px;

  border: 1px solid #d6e4f8;
  border-radius: 999px;

  background: #f3f7fd;

  color: #3d6597;

  font-size: 11.5px;
  font-weight: 600;
}

.tag-list {
  margin-bottom: 0;
}

.tag-list span {
  padding: 6px 9px;

  background: #f6f8fb;

  border: 1px solid #e4e9ef;
  border-radius: 999px;

  color: #536278;

  font-size: 11.5px;
}

.recognition-note {
  margin: 4px 0 24px;

  padding: 15px 16px;

  background: #f8fafd;

  border-left: 3px solid #6ea8ff;
  border-radius: 8px;
}

.recognition-note span {
  display: block;

  margin-bottom: 4px;

  color: #376cae;

  font-size: 10.5px;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.recognition-note p {
  color: #607188;

  font-size: 12.5px;
  line-height: 1.6;
}

.school-link {
  width: fit-content;

  margin-top: auto;

  color: #3379e7;

  font-size: 14px;
  font-weight: 700;
}

.school-link:hover {
  color: #245eaf;
}


/* EMPTY STATE */

.empty-state {
  display: none;

  padding: 70px 20px;

  text-align: center;
}

.empty-state h3 {
  margin-bottom: 8px;

  color: #102440;

  font-size: 25px;
}

.empty-state p {
  color: #738197;
}


/* SOURCE NOTE */

.directory-source-note {
  margin-top: 54px;

  padding: 23px 25px;

  background: #f5f8fc;

  border: 1px solid #e1e8f1;
  border-radius: 12px;
}

.directory-source-note strong {
  display: block;

  margin-bottom: 6px;

  color: #1c3555;

  font-size: 14px;
}

.directory-source-note p {
  color: #68788e;

  font-size: 13px;
  line-height: 1.7;
}


/* DIRECTORY RESPONSIVE */

@media (max-width: 950px) {

  .directory-intro {
    grid-template-columns: 1fr;

    gap: 20px;
  }

  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }

  .search-group {
    grid-column: 1 / -1;
  }

}


@media (max-width: 850px) {

  .directory-hero {
    padding: 140px 0 72px;
  }

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

  .university-card {
    min-height: auto;
  }

}


@media (max-width: 640px) {

  .directory-hero h1 {
    font-size: 43px;
  }

  .directory-hero > .container > p:not(.eyebrow) {
    font-size: 16px;
  }

  .directory-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .directory-intro h2 {
    font-size: 34px;
  }

  .view-tabs {
    display: grid;

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

  .view-tab {
    width: 100%;
  }

  .filter-panel {
    grid-template-columns: 1fr;

    margin-bottom: 48px;
  }

  .search-group {
    grid-column: auto;
  }

  .directory-heading {
    align-items: flex-start;
    flex-direction: column;

    gap: 8px;
  }

  .directory-heading h2 {
    font-size: 35px;
  }

  .university-card {
    padding: 24px;
  }

}


@media (max-width: 430px) {

  .view-tabs {
    grid-template-columns: 1fr;
  }

  .university-top {
    align-items: flex-start;
  }

  .university-card h3 {
    font-size: 21px;
  }

}
