/* ===== Global Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  font-family: "Poppins", "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #fef6ff, #fff0f5);
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Header ===== */
.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 0.1rem solid #e3c3e6;
  padding: 1rem 5%;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 60rem;
  margin: auto;
}

.logo a {
  text-decoration: none;
  color: #c85ccc;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #444;
  font-weight: 500;
}

.nav-links a:hover {
  color: #c85ccc;
}

/* ===== Theme Toggle Switch ===== */
.theme-switch {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.switch {
  position: relative;
  display: inline-block;
  width: 3rem;
  height: 1.5rem;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 1rem;
}

.slider:before {
  position: absolute;
  content: "";
  height: 1.2rem;
  width: 1.2rem;
  left: 0.15rem;
  bottom: 0.15rem;
  background-color: white;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #c85ccc;
}

input:checked + .slider:before {
  transform: translateX(1.5rem);
}

/* ===== Main Hub ===== */
.hub {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 5%;
  text-align: center;
}

.intro h2 {
  font-size: 2rem;
  color: #b148b8;
  margin-bottom: 0.5rem;
}

.intro p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 3rem;
}

/* ===== Hub Cards ===== */
.hub-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 60rem;
}

.hub-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.hub-card:hover {
  transform: translateY(-0.3rem);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12);
}

.hub-card img {
  width: 100%;
  height: 11rem;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  color: #b148b8;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card-content p {
  font-size: 0.95rem;
  color: #555;
}

.slideshow-container {
  width: 100%;
  height: 200px; /* fixed height for the card */
  overflow: hidden;
  position: relative;
}

.slideshow-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* makes the image cover the container without changing its aspect ratio */
  display: block;
}

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 1rem 5%;
  background: #fff;
  border-top: 0.1rem solid #e3c3e6;
  font-size: 0.875rem;
  color: #777;
}

/* ===== Responsive tweaks ===== */
@media (max-width: 600px) {
  .intro h2 {
    font-size: 1.5rem;
  }
  .intro p {
    font-size: 0.9rem;
  }
  .hub-card img {
    height: 10rem;
  }
  .nav-links {
    gap: 1rem;
  }
}
