/* ============================= */
/* ========== GLOBAL =========== */
/* ============================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --color-bg: #030b12;
  --color-surface: #ffffff;
  --color-surface-alt: #f5f7fb;
  --color-primary: #0f75bc;
  --color-primary-dark: #0a609c;
  --color-text: #000;
  --color-text-light: #f9fafb;
  --color-muted: #111827;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.18);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 8px;
  --transition-fast: 0.2s ease;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--color-text);
  background-color: #fff;
  line-height: 1.6;
}

body,
button,
input,
select,
textarea {
  font-family: 'Poppins', sans-serif !important;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}


/* ============================= */
/* ========= BUTTONS =========== */
/* ============================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--transition-fast),
    color var(--transition-fast), box-shadow var(--transition-fast),
    transform var(--transition-fast), border-color var(--transition-fast);
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: #ffffff;
  color: #111827;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

.btn-outline:hover {
  background: #f3f4f6;
  border-color: rgba(15, 23, 42, 0.24);
}


/* ============================= */
/* ============ HERO =========== */
/* ============================= */

.hero {
  position: relative;
  min-height: 520px;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: url('./background.jpg');
  background-size: cover;
  background-position: center;
}

.hero-content {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero-title {
  font-size: 2.8rem;
  line-height: 1.1;
  margin: 0 0 24px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-btn {
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 8px 20px;
  background: #ffffff;
  color: #111827;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease, border-color 0.15s ease;
}

.tag-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
  border-color: rgba(15, 23, 42, 0.18);
}


/* Summer Camp */
.summercamp-btn {
  background-color: #ff5e00;
  color: #ffffff;
  border-color: #ff5e00;
}

.summercamp-btn:hover {
  background-color: #e85600;
  border-color: #e85600;
}

/* Research */
.research-btn {
  background-color: #0F75BC;
  color: #ffffff;
  border-color: #0F75BC;
}

.research-btn:hover {
  background-color: #0d66a4;
  border-color: #0d66a4;
}

/* Startup Academy */
.startup-btn {
  background-color: #6A1BFF;
  color: #ffffff;
  border-color: #6A1BFF;
}

.startup-btn:hover {
  background-color: #5A17DB;
  border-color: #5A17DB;
}


/* ============================= */
/* ============ STATS ========== */
/* ============================= */

.stats {
  padding: 8px 0;
}

.stats-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  text-align: center;
  width: 100%;
}

.stat-item {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15%;
  right: 0;
  height: 70%;
  width: 1px;
  background-color: #d1d5db;
}

.stat-number {
  font-weight: 800;
  font-size: clamp(1.2rem, 4vw, 2.5rem);
  white-space: nowrap;
}

.stat-label {
  margin-top: 2px;
  color: #111827;
  font-size: clamp(0.4rem, 2.3vw, 1rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 480px) {
  .stats-grid {
    gap: 8px;
  }

  .stat-item:not(:last-child)::after {
    top: 20%;
    height: 60%;
  }
}


/* ============================= */
/* ======= ACCREDITATION ======= */
/* ============================= */

.accreditation .container {
  max-width: 768px;
}

.accreditation {
  background: #fdf5f3;
  padding: 8px 0 8px;
}

.accreditation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.accredit-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 0.6rem 0.8rem 0.8rem;
  border: 1px solid #fce7e1;
  /* box-shadow: 0 0.4em 1.2em rgba(2, 2, 3, 0.18); */
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  width: 100%;
  max-height: 180px;
}

.accredit-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 80px;
  margin-bottom: 0.4rem;
}

.accredit-title {
  font-weight: 900;
  color: #111827;
  margin-top: 0.3rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  font-size: clamp(0.6rem, 2.5vw, 1rem);
}



/* ============================= */
/* ============ INTRO ========== */
/* ============================= */

.intro {
  padding: 24px 0 16px;
}

.intro-inner {
  text-align: center;
  max-width: 640px;
}

.intro h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.intro p {
  color: var(--color-muted);
  margin: 0;
}


/* ============================= */
/* ============ PROGRAMS ======= */
/* ============================= */

.programs {
  padding: 40px 0 64px;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.program-card {
  background: #ffffff;
  border-radius: 25px;
  border: 1px solid #d9d9d9;
  box-shadow: 0 0.4em 1.2em rgba(2, 2, 3, 0.18);
  padding: 12px 12px 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* image */
.program-img-wrap {
  width: 100%;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0px;
}

.program-img-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
}

/* text */
.program-card h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0px;
  text-align: center;
}

.program-card p {
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--color-muted);
  margin-bottom: 16px;
}

/* button (aligned bottom) */
.program-card .card-btn {
  width: 70%;
  margin-top: auto;
  margin-left: auto;
  margin-right: auto;
  display: block;
  font-size: 0.8rem;
  padding: 7px 10px;
  border-radius: 999px;
  text-align: center;
}


/* ============================= */
/* =========== SCHOOLS ========= */
/* ============================= */

.schools {
  background: #f5f5f5;
  padding: 56px 0 72px;
}

.schools-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-direction: row-reverse;
}

.schools-text {
  flex: 1.5;
}

.schools-text h2 {
  font-size: 1.8rem;
  margin-top: 0;
  margin-bottom: 12px;
}

.schools-text p {
  color: var(--color-muted);
  margin-bottom: 18px;
}

.schools-media {
  flex: 1;
}

.schools-image {
  border-radius: 24px;
  border: 2px dashed #d1d5db;
  padding: 12px;
  background: #f9fafb;
  overflow: hidden;
}

.schools-image img {
  border-radius: 20px;
  width: 100%;
  height: auto;
  display: block;
}

/* ============================= */
/* ======== MEDIA QUERY ======== */
/* ============================= */

/* Mobile menu */
@media (max-width: 768px) {
  .hero {
    min-height: 480px;
  }

  .hero-content {
    text-align: center;
    align-items: center;
  }

  .hero-tags {
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 360px;
  }

  .hero-title {
    text-align: center;
  }

  .tag-btn {
    width: 100%;
    text-align: center;
    padding: 14px 18px;
    border-radius: 8px;
  }

  .programs-grid {
    grid-template-columns: 1fr;
  }

  .program-img-wrap {
    height: 200px;
  }

  .schools {
    padding-top: 40px;
    padding-bottom: 48px;
  }

  .schools-grid {
    flex-direction: column;
  }

  .btn-primary,
  .schools .btn-primary {
    margin-left: auto;
    margin-right: auto;
    display: flex;
  }
}


/* Small mobile */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .program-card h3 {
    font-size: 1.25rem;
  }

  .intro h2,
  .schools-text h2 {
    font-size: 1.5rem;
  }
}
