* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  background: #f3f4f6;
  color: #333;
  line-height: 1.6;
  padding: 2rem 1rem;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

.blog-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.post-title {
  font-size: 19px;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.post-date {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.post-text {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-align: justify;
  color: #374151;
}

.image-collage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 2rem;
}

.image-collage img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 0.3s ease;
}

.image-collage img:hover {
  transform: scale(1.03);
}

.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 60px;
  padding-bottom: 30px;
  flex-wrap: wrap;
}

.btn {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  font-size: 12px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #0056b3;
}

.dark-toggle {
  margin: 20px auto;
  text-align: center;
}

.dark-toggle input {
  display: none;
}

.dark-toggle label {
  width: 84px;
  height: 50px;
  background: #f3f3f3;
  border-radius: 999px;
  position: relative;
  display: inline-block;
  cursor: pointer;
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1);
}
.dark-toggle input:checked + label {
  background: #444;
}

.dark-toggle .circle {
  width: 42px;
  height: 46px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.4s;
  overflow: hidden;
}

.dark-toggle svg {
  width: 35px;
  height: 38px;
  position: absolute;
  transition: 0.4s;
}

.sun {
  color: #ffd600;
  opacity: 1;
}

.moon {
  color: #555;
  transform: translateY(-100%);
  opacity: 0;
}

.dark-toggle input:checked + label .circle {
  transform: translateX(36px);
  background: #2c2c2f;
}

.dark-toggle input:checked + label .circle .sun {
  transform: translateY(100%);
  opacity: 0;
}

.dark-toggle input:checked + label .circle .moon {
  transform: translateY(0);
  opacity: 1;
}

body.dark-mode {
  background: #1a1a1a;
  color: white;
}

body.dark-mode .card {
  background: #2c2c2f;
  color: white;
}

.site-footer {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.9rem;
  color: #6b7280;
  padding: 1rem 0;
  border-top: 1px solid #e5e7eb;
}

/* RUNNING TEXT PROMO */
.global-running-text {
  width: 100%;
  overflow: hidden;
  background: rgba(237, 16, 16, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 0;

  margin-top: 20px;
  margin-bottom: 10px;
}

.running-track {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: runningText 19s linear infinite;
  font-size: 14px;
  font-family: Arial, sans-serif;
  color: #ffffff;
}

.running-track a {
  color: #00f7ff;
  font-weight: bold;
  text-decoration: none;
}

.running-track a:hover {
  text-decoration: underline;
}

@keyframes runningText {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}
