:root {
  --navy: #102a56;
  --blue: #1d74ff;
  --cyan: #36d2ff;
  --mint: #59e1a8;
  --orange: #ff884d;
  --yellow: #ffd85a;
  --pink: #ff6fae;
  --soft: #f4f9ff;
  --text: #14294b;
  --muted: #6b7890;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #f7fbff;
  overflow-x: hidden;
}

h1,
h2,
h3,
.brand-title {
  font-family: "Baloo 2", system-ui, sans-serif;
}

a {
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 251, 255, .86);
  backdrop-filter: blur(14px);
  padding: 12px 0;
}

.nav-shell {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 28px;
  padding: 10px 14px;
  box-shadow: 0 20px 60px rgba(16, 42, 86, .10);
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: conic-gradient(from 160deg, var(--yellow), var(--orange), var(--pink), var(--blue), var(--cyan), var(--yellow));
  color: #fff;
  font-size: 24px;
  box-shadow: 0 12px 30px rgba(29, 116, 255, .22);
}

.brand-title {
  font-weight: 800;
  color: var(--navy);
  font-size: 24px;
  line-height: .9;
}

.brand-title small {
  display: block;
  font-family: Inter, sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--blue);
  font-weight: 800;
  margin-top: 6px;
}

.nav-link {
  font-size: 14px;
  font-weight: 800;
  color: #33496f !important;
  border-radius: 999px;
  padding: 10px 14px !important;
}

.nav-link:hover,
.nav-link.active,
.dropdown-item:hover {
  background: #eef6ff;
  color: var(--blue) !important;
}

.dropdown-menu {
  border: 0;
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(16, 42, 86, .13);
  padding: 10px;
}

.dropdown-item {
  border-radius: 14px;
  font-weight: 800;
  color: #33496f;
}

.btn-join {
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--orange), #ffb04f);
  color: #fff !important;
  font-weight: 900;
  padding: 13px 20px;
  box-shadow: 0 14px 30px rgba(255, 136, 77, .28);
  display: inline-block;
}

.btn-outline-soft {
  border: 2px solid #dcecff;
  border-radius: 18px;
  padding: 13px 20px;
  color: var(--navy);
  font-weight: 900;
  background: #fff;
  display: inline-block;
}

.hero {
  min-height: 760px;
  position: relative;
  overflow: hidden;
  padding: 90px 0;
  background: radial-gradient(circle at 12% 24%, rgba(255, 216, 90, .42), transparent 15%), radial-gradient(circle at 86% 18%, rgba(54, 210, 255, .36), transparent 18%), linear-gradient(135deg, #eef8ff 0%, #f8fbff 45%, #eaf7ff 100%);
}

.hero:before {
  content: "";
  position: absolute;
  right: -170px;
  top: 100px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d74ff, #36d2ff);
  opacity: .12;
}

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

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  color: var(--blue);
  border: 1px solid #e4f1ff;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 900;
  box-shadow: 0 12px 35px rgba(16, 42, 86, .08);
}

.hero h1 {
  font-size: clamp(44px, 6vw, 82px);
  line-height: .95;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--navy);
  margin: 22px 0;
}

.hero h1 .paint {
  color: var(--blue);
  position: relative;
  display: inline-block;
}

.hero h1 .paint:after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 8px;
  height: 18px;
  background: var(--yellow);
  z-index: -1;
  border-radius: 20px;
  transform: rotate(-1deg);
}

.hero-lead,
.section-text {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.7;
}

.hero-lead {
  font-size: 18px;
  max-width: 610px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.activity-finder {
  margin-top: 34px;
  background: #fff;
  border: 1px solid #e6f1ff;
  border-radius: 28px;
  padding: 14px;
  box-shadow: 0 22px 60px rgba(16, 42, 86, .10);
  max-width: 720px;
}

.activity-finder select,
.activity-finder input {
  border: 0;
  background: #f5f9ff;
  border-radius: 18px;
  min-height: 52px;
  font-weight: 800;
  color: #71809a;
  box-shadow: none !important;
}

.science-board {
  position: relative;
  min-height: 560px;
}

.planet-card {
  position: absolute;
  inset: 50px 0 auto auto;
  width: min(440px, 92vw);
  height: 440px;
  border-radius: 52px;
  background: linear-gradient(160deg, #12366e, #1d74ff 58%, #36d2ff);
  box-shadow: 0 38px 90px rgba(29, 116, 255, .26);
  overflow: hidden;
  transform: rotate(2deg);
}

.planet-card:before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 2px dashed rgba(255, 255, 255, .23);
  border-radius: 40px;
}

.planet {
  position: absolute;
  left: 70px;
  top: 75px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 32%, #fff 0 7%, #77e8b8 8% 24%, #1d74ff 25% 44%, #134b9f 45% 100%);
  box-shadow: inset -28px -28px 45px rgba(0, 0, 0, .14), 0 18px 40px rgba(0, 0, 0, .16);
}

.planet:after {
  content: "";
  position: absolute;
  left: -48px;
  right: -48px;
  top: 90px;
  height: 26px;
  border: 6px solid rgba(255, 255, 255, .85);
  border-left-color: transparent;
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-18deg);
}

.rocket2 {
  position: absolute;
  right: 55px;
  top: 70px;
  width: 118px;
  height: 44px;
  transform: rotate(-24deg);
}

.rocket-body {
  position: absolute;
  inset: 8px 18px 8px 0;
  background: #fff;
  border-radius: 80% 45% 45% 80%;
  box-shadow: 0 12px 25px rgba(0, 0, 0, .14);
}

.rocket-nose {
  position: absolute;
  right: 0;
  top: 12px;
  border-left: 24px solid var(--orange);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.rocket-fire {
  position: absolute;
  left: -24px;
  top: 16px;
  border-right: 30px solid var(--yellow);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.floating-card {
  position: absolute;
  background: #fff;
  border-radius: 26px;
  padding: 18px;
  box-shadow: 0 24px 60px rgba(16, 42, 86, .14);
  border: 1px solid #eef6ff;
  z-index: 3;
  animation: updown 4s ease-in-out infinite;
}

.floating-card.one {
  left: 0;
  top: 45px;
  width: 210px;
}

.floating-card.two {
  right: 20px;
  bottom: 20px;
  width: 220px;
  animation-delay: 1s;
}

.floating-card.three {
  left: 42px;
  bottom: 70px;
  width: 170px;
  animation-delay: .5s;
}

.float-icon {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  margin-bottom: 10px;
}

.floating-card strong {
  display: block;
  color: var(--navy);
  font-weight: 900;
}

.floating-card span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

@keyframes updown {
  50% {
    transform: translateY(-14px);
  }
}

.page-hero {
  padding: 74px 0;
  background: linear-gradient(135deg, #eef8ff, #fff);
  position: relative;
  overflow: hidden;
}

.page-hero:after {
  content: "";
  position: absolute;
  right: -90px;
  top: -100px;
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 50%;
  opacity: .12;
}

.page-hero h1 {
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.breadcrumb-item,
.breadcrumb-item a {
  font-weight: 800;
  color: #6d7f9f;
}

.section {
  padding: 78px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.eyebrow {
  color: var(--blue);
  font-weight: 900;
  letter-spacing: .8px;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 800;
  line-height: 1;
  color: var(--navy);
}

.wave-section {
  background: linear-gradient(180deg, #fff, #eef8ff);
  border-radius: 56px 56px 0 0;
}

.card-link-wrap {
  display: block;
  color: inherit;
  height: 100%;
}

.workshop-card,
.content-card,
.news-card,
.gallery-card,
.course-card {
  height: 100%;
  background: #fff;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid #e6f1ff;
  box-shadow: 0 20px 55px rgba(16, 42, 86, .08);
}

.workshop-card {
  position: relative;
  padding: 30px;
  transition: .25s ease;
}

.workshop-card:hover,
.news-card:hover,
.gallery-card:hover,
.course-card:hover {
  transform: translateY(-6px);
}

.workshop-card:after {
  content: "";
  position: absolute;
  right: -45px;
  top: -45px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--card);
  opacity: .14;
}

.workshop-icon {
  width: 72px;
  height: 72px;
  border-radius: 25px;
  background: var(--card);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 30px;
  margin-bottom: 22px;
}

.workshop-card h3,
.course-card h3 {
  font-size: 25px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 10px;
}

.workshop-card p,
.content-card p,
.course-card p {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.65;
  margin: 0;
}

.age-tag,
.detail-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  background: #f3f8ff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
  color: var(--blue);
}

.detail-button {
  background: var(--blue);
  color: #fff;
}

.course-card {
  transition: .25s ease;
}

.course-image {
  height: 230px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 68px;
}

.bg-course-1 {
  background: linear-gradient(135deg, #1d74ff, #36d2ff);
}

.bg-course-2 {
  background: linear-gradient(135deg, #59e1a8, #1d74ff);
}

.bg-course-3 {
  background: linear-gradient(135deg, #ff884d, #ffd85a);
}

.course-body {
  padding: 26px;
}

.course-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.course-info span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #f3f8ff;
  color: #5f7190;
  font-size: 12px;
  font-weight: 900;
}

.course-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--orange);
  font-weight: 900;
}

.process-card {
  background: #fff;
  border-radius: 34px;
  padding: 26px;
  border: 1px solid #e6f1ff;
  box-shadow: 0 18px 48px rgba(16, 42, 86, .07);
  height: 100%;
}

.step-no {
  font-family: "Baloo 2";
  font-size: 42px;
  font-weight: 800;
  color: #d9eaff;
}

.news-media,
.gallery-media {
  height: 210px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #dff4ff, #fff4c5);
  font-size: 66px;
  color: var(--blue);
}

.news-body {
  padding: 26px;
}

.news-meta {
  font-size: 12px;
  font-weight: 900;
  color: var(--orange);
  margin-bottom: 8px;
}

.news-body h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
}

.news-body p {
  color: var(--muted);
  font-weight: 600;
  margin: 0;
}

.bilim-news-card-link:focus-visible {
  outline: 3px solid rgba(29, 116, 255, .35);
  outline-offset: 5px;
  border-radius: 34px;
}

.bilim-news-card .news-body h3 {
  min-height: 58px;
}

.bilim-news-media {
  overflow: hidden;
}

.bilim-news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bilim-news-empty {
  background: #fff;
  border: 1px solid #e6f1ff;
  border-radius: 34px;
  box-shadow: 0 20px 55px rgba(16, 42, 86, .08);
  color: var(--muted);
  padding: 46px 28px;
  text-align: center;
}

.bilim-news-empty i {
  color: var(--blue);
  font-size: 44px;
  margin-bottom: 16px;
}

.bilim-news-empty h1,
.bilim-news-empty h2,
.bilim-news-empty h3 {
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 10px;
}

.bilim-news-empty p {
  font-weight: 600;
  margin: 0;
}

.bilim-news-empty .btn-outline-soft {
  display: inline-flex;
  margin-top: 22px;
}

.bilim-news-empty-compact {
  padding: 34px 22px;
}

.bilim-news-pagination {
  margin-top: 38px;
}

.bilim-news-pagination .page-link {
  border: 1px solid #e2edf9;
  border-radius: 14px;
  color: var(--navy);
  font-weight: 800;
  margin: 0 4px;
  min-width: 44px;
  text-align: center;
}

.bilim-news-pagination .page-item.active .page-link {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.bilim-news-detail-hero h1 {
  max-width: 920px;
}

.bilim-news-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.bilim-news-detail-meta span {
  align-items: center;
  background: rgba(255, 255, 255, .76);
  border: 1px solid #e6f1ff;
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  padding: 9px 13px;
}

.bilim-news-detail-meta i {
  color: var(--blue);
}

.bilim-news-gallery {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 32px;
}

.bilim-news-gallery-thumb {
  aspect-ratio: 4 / 3;
  background: #fff;
  border: 1px solid #e6f1ff;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(16, 42, 86, .08);
  cursor: zoom-in;
  overflow: hidden;
  padding: 0;
}

.bilim-news-gallery-thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
  width: 100%;
}

.bilim-news-gallery-thumb:hover img {
  transform: scale(1.04);
}

.bilim-news-detail-content {
  background: #fff;
  border: 1px solid #e6f1ff;
  border-radius: 34px;
  box-shadow: 0 20px 55px rgba(16, 42, 86, .08);
  color: var(--text);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.8;
  padding: 34px;
}

.bilim-news-detail-content :first-child {
  margin-top: 0;
}

.bilim-news-detail-content :last-child {
  margin-bottom: 0;
}

.bilim-news-detail-content img {
  border-radius: 20px;
  height: auto;
  max-width: 100%;
}

.bilim-news-detail-content a {
  color: var(--blue);
  font-weight: 800;
}

.bilim-news-image-modal .modal-content {
  background: transparent;
  border: 0;
  position: relative;
}

.bilim-news-image-modal .btn-close {
  background-color: #fff;
  border-radius: 999px;
  opacity: 1;
  padding: 12px;
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
}

.bilim-news-image-modal img {
  border-radius: 22px;
  display: block;
  max-height: 86vh;
  object-fit: contain;
  width: 100%;
}

.error404-wrapper {
  align-items: center;
  background: radial-gradient(circle at 12% 18%, rgba(255, 216, 90, .34), transparent 18%), radial-gradient(circle at 86% 28%, rgba(54, 210, 255, .28), transparent 20%), linear-gradient(135deg, #eef8ff 0%, #f8fbff 48%, #fff 100%);
  display: flex;
  min-height: 620px;
  overflow: hidden;
  padding: 88px 0;
  position: relative;
}

.error404-wrapper:before {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 50%;
  content: "";
  height: 280px;
  opacity: .12;
  position: absolute;
  right: -110px;
  top: -100px;
  width: 280px;
}

.error404-card {
  background: rgba(255, 255, 255, .92);
  border: 1px solid #e6f1ff;
  border-radius: 34px;
  box-shadow: 0 24px 70px rgba(16, 42, 86, .11);
  padding: clamp(34px, 6vw, 64px);
  position: relative;
  z-index: 1;
}

.error404-kicker {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .8px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.error404-title {
  color: var(--navy);
  font-size: clamp(92px, 18vw, 180px);
  font-weight: 800;
  line-height: .82;
  margin: 0 0 18px;
}

.error404-heading {
  color: var(--navy);
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 800;
  line-height: 1;
  margin: 0 0 16px;
}

.error404-text {
  color: var(--muted);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 650px;
}

.error404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 30px;
}

.error404-button {
  align-items: center;
  display: inline-flex;
  gap: 9px;
  justify-content: center;
}

.gallery-card {
  transition: .25s ease;
}

.gallery-card .gallery-media {
  height: 230px;
}

.tab-pills {
  gap: 10px;
}

.tab-pills .nav-link {
  background: #fff !important;
  border: 1px solid #e6f1ff !important;
  color: var(--navy) !important;
  border-radius: 18px !important;
}

.tab-pills .nav-link.active {
  background: var(--blue) !important;
  color: #fff !important;
}

.contact-box {
  background: #fff;
  border: 1px solid #e6f1ff;
  border-radius: 30px;
  padding: 28px;
  box-shadow: 0 18px 50px rgba(16, 42, 86, .08);
}

.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #eef6ff;
  color: var(--blue);
  font-size: 22px;
  flex: 0 0 auto;
}

.form-control,
.form-select {
  border: 1px solid #e2edf9;
  border-radius: 18px;
  min-height: 52px;
  font-weight: 700;
}

.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 .25rem rgba(29, 116, 255, .12);
  border-color: #bcd9ff;
}

.map-box {
  height: 420px;
  border: 0;
  border-radius: 30px;
  width: 100%;
  box-shadow: 0 18px 50px rgba(16, 42, 86, .08);
}

.detail-title {
  font-weight: 800;
  color: var(--navy);
}

.detail-list {
  color: var(--muted);
  font-weight: 700;
  line-height: 2;
  padding-left: 20px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #edf4fc;
  color: var(--muted);
  font-weight: 800;
}

.info-row i {
  color: var(--blue);
}

.detail-sidebar {
  top: 100px;
}

footer {
  background: #fff;
  padding: 55px 0 28px;
  border-top: 1px solid #e8f1fc;
}

.footer-link {
  color: #667896;
  font-weight: 700;
  margin-right: 18px;
}

.social a {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  background: #f0f6ff;
  border-radius: 16px;
  color: var(--navy);
  font-size: 20px;
  margin-left: 7px;
}

@media (max-width: 991.98px) {
  .nav-shell {
    border-radius: 22px;
  }

  .navbar-collapse {
    padding-top: 16px;
  }

  .hero {
    padding-top: 60px;
    min-height: auto;
  }

  .science-board {
    min-height: 520px;
    margin-top: 30px;
  }

  .planet-card {
    inset: 45px auto auto 50%;
    transform: translateX(-50%) rotate(2deg);
    width: 330px;
    height: 330px;
  }

  .planet {
    width: 170px;
    height: 170px;
    left: 55px;
    top: 70px;
  }

  .floating-card.one {
    left: 0;
    top: 0;
  }

  .floating-card.two {
    right: 0;
    bottom: 35px;
  }

  .floating-card.three {
    left: 18px;
    bottom: 120px;
  }

  .section {
    padding: 60px 0;
  }

  .bilim-news-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .error404-wrapper {
    min-height: 560px;
    padding: 64px 0;
  }
}

@media (max-width: 575.98px) {
  .brand-title {
    font-size: 20px;
  }

  .hero-actions .btn-join,
  .hero-actions .btn-outline-soft {
    width: 100%;
    text-align: center;
  }

  .floating-card {
    display: none;
  }

  .science-board {
    min-height: 360px;
  }

  .planet-card {
    width: 300px;
    height: 300px;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .page-hero {
    padding: 50px 0;
  }

  .tab-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
  }

  .tab-pills .nav-link {
    white-space: nowrap;
  }

  .bilim-news-card .news-body h3 {
    min-height: auto;
  }

  .bilim-news-gallery {
    gap: 12px;
    grid-template-columns: 1fr;
  }

  .bilim-news-detail-content {
    border-radius: 24px;
    font-size: 16px;
    padding: 24px;
  }

  .bilim-news-pagination .pagination {
    flex-wrap: wrap;
    gap: 8px;
  }

  .bilim-news-pagination .page-link {
    margin: 0;
  }

  .error404-card {
    border-radius: 26px;
  }

  .error404-actions {
    flex-direction: column;
  }

  .error404-button {
    width: 100%;
  }
}
