:root {
  --primary-color: #222;
  --secondary-color: #fff;
  --accent-color: #f0c040; /* optional highlight */
  --bg-color: #f9f9f9;
  --card-radius: 10px;
  --card-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  --font-main: "Georgia", serif;
  --font-heading: "Helvetica Neue", sans-serif;
  opacity: 1;
  transition: opacity 0.6s ease; /* fade out */
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  min-height: 100vh;
  background: linear-gradient(
    -45deg,
    rgb(180, 180, 238),
    rgb(240, 240, 255),
    rgb(214, 237, 249),
    rgb(251, 242, 253)
  );
  background-size: 400% 400%;
  animation: gradientBG 5s ease infinite;
  overflow-x: hidden;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.wrap {
  width: 100%;
  margin: auto;
}

.site-header {
  background: #111;
  color: #fff;
  padding: 20px 0;
}
.site-header h1 {
  margin: 0;
}
.tagline {
  margin: 5px 0 0;
  color: #ccc;
}

.cover img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.card-body {
  padding: 15px;
}
.title {
  font-weight: bold;
  font-size: 1.1rem;
  color: #111;
  text-decoration: none;
}
.excerpt {
  color: #444;
  font-size: 0.9rem;
}
.meta {
  font-size: 0.8rem;
  color: #777;
  margin-top: 10px;
}

.btn {
  background: #111;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  margin: 10px 0;
}
.btn:hover {
  background: #333;
}

.hidden {
  display: none;
}

.single-post img {
  max-width: 100%;
  height: auto;
}
.single-post h1 {
  font-size: 1.6rem;
  margin-top: 0;
}
.btn {
  background: #111;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  margin: 10px 0;
  transition: background 0.2s ease;
}
.btn:hover {
  background: #333;
}

.read-more {
  margin-top: auto;
  align-self: flex-start;
}

.single-post img.featured {
  width: 50%;
  max-height: 60%;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 20px;
}
.masonry {
  column-count: 4;
  column-gap: 10px;
  padding: 20px;
}

.masonry-item {
  background: #fff;
  margin-bottom: 10px;
  display: inline-block;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: 50%;
  object-fit: cover; /* crops images neatly */
  transition: transform 0.5s ease;
}

.image-wrapper:hover img {
  transform: scale(1.1);
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: #fff;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  transition: opacity 0.4s ease;
}

.image-wrapper:hover .overlay {
  opacity: 1;
}

.overlay .title {
  font-size: 1.3rem;
  margin: 0 0 5px;
}

.overlay .read-more {
  font-size: 0.9rem;
  opacity: 0.9;
}

.pagination {
  text-align: center;
  margin: 20px 0;
}

.card-content {
  padding: 15px;
}

.card-content .title {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.card-content .excerpt {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
  margin-bottom: 10px;
}

.card-content .read-more {
  background: #222;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.card-content .read-more:hover {
  background: #444;
}

/* Navbar base */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(17, 17, 17, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  padding: 0 20px;
  font-family: "Helvetica Neue", sans-serif;
  overflow: hidden; /* prevent scroll */
}

/* Navbar inner flex container */
.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  flex-wrap: wrap;
  gap: 10px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btc-logo-img {
  max-width: 36px; /* smaller for compact look */
  height: auto;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.btc-logo-img:hover {
  transform: scale(1.1);
}

.site-title {
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  white-space: nowrap;
}

.nav-links {
  padding: 6px 10vh;
}

/* Nav links */
.nav-links a.btn-cc {
  color: #fff;
  font-weight: bold;
  padding: 6px 5vh; /* reduce horizontal padding */
  border-radius: 20px; /* make it more capsule-like */
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.3s ease;
  white-space: nowrap;
  font-size: 0.9rem; /* slightly smaller text for better fit */
  display: inline-block;
  min-width: 90px; /* ensures minimum tap area on mobile */
  text-align: center;
}

.nav-links a.btn-cc:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #2563eb, #3b82f6);
}

/* Hamburger menu for mobile */
/* Hide the checkbox */
.menu-checkbox {
  display: none;
}

/* Hamburger menu for mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 5px;
}
.side-wave {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 100px;
  height: 100%;
  z-index: -1;
}
.left {
  left: 0;
}
.right {
  right: 0;
  transform: scaleX(-1);
}

@media (max-width: 1024px) {
  .masonry {
    column-count: 2;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    width: 100%;
    padding: 0 0px;
  }
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
    padding: 0 5px;
  }

  .nav-links-mobile {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px;
    right: 0;
    width: 180px;
    background: rgba(17, 17, 17, 0.95);
    padding: 10px 0;
    transform: translateX(100%); /* hidden by default */
    transition: transform 0.3s ease;
    border-radius: 0 0 0 12px;
    z-index: 999;
  }

  /* Toggle menu with checkbox */
  .menu-checkbox:checked ~ .nav-links-mobile {
    transform: translateX(0); /* slide in when checked */
  }

  .nav-links-mobile a.btn-cc {
    margin: 10px;
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}

@media (max-width: 640px) {
  .masonry {
    column-count: 1;
  }
}

/* Extra fix for horizontal scroll */
body {
  overflow-x: hidden;
}
