/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, system-ui, sans-serif;
}

body {
  background: #ffffff;
  color: #222;
}

/* ================= HEADER ================= */
.header {
  position: relative;
  padding-bottom: 90px;
  overflow: hidden;
}

.header-banner {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(246, 252, 255, 0.08) 50%,
    #ffffff 85%
  );
  z-index: 1;
}

.header-inner {
  max-width: 1200px;
  margin: -260px auto 0;
  text-align: center;
  position: relative;
  z-index: 2;
}

.logo {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.logo img {
  height: 160px;
}

/* ================= SEARCH ================= */
.search-box {
  position: relative;
  max-width: 640px;
  margin: auto;
}

.search-box input {
  width: 100%;
  padding: 14px 48px 14px 20px; /* 👈 space for icon */
  border-radius: 30px;
  border: 3px solid #47a6ff;
  font-size: 16px;
  outline: none;
  height: 52px;
}

/* SEARCH ICON FIX */
.search-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-icon img {
  width: 20px;
  height: 18px;
  opacity: 0.6;
}

/* ================= CATEGORIES ================= */
.categories {
  display: flex;
  gap: 20px;
  margin: 16px auto 0;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 900px;
}

.categories button {
  background: #f2f2f2;
  border: none;
  padding: 10px 14px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
}

.categories button:hover {
  background: #000;
  color: #fff;
}

/* ================= TITLE ================= */
.section-title {
  text-align: center;
  margin: 30px 0;
}

.section-title h1 {
  font-size: 20px;
  font-weight: 500;
}

/* ================= CONTAINER ================= */
.container {
  max-width: 1900px;
  margin: 0 auto;
  padding: 24px;
}

/* ================= PINTEREST MASONRY ================= */
.masonry {
  column-count: 5;
  column-gap: 20px;
}

@media (max-width: 1400px) {
  .masonry { column-count: 4; }
}
@media (max-width: 1000px) {
  .masonry { column-count: 3; }
}
@media (max-width: 600px) {
  .masonry { column-count: 2; }
}

/* ================= CARD ================= */
.card {
  break-inside: avoid;
  margin-bottom: 20px;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
}

/* ================= PNG BACKGROUND ================= */
.card-image {
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #eee 25%, transparent 25%),
    linear-gradient(-45deg, #eee 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eee 75%),
    linear-gradient(-45deg, transparent 75%, #eee 75%);
  background-size: 20px 20px;
  background-position:
    0 0,
    0 10px,
    10px -10px,
    -10px 0px;

  padding: 14px;
  border-radius: 14px;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* IMAGE */
.card-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ================= TITLE BELOW IMAGE ================= */
.related-section .card-title {
  font-size: 14px;
  font-weight: 400; /* normal like homepage */
  margin-top: 6px;
  text-align: center;
  color: #333;
  line-height: 1.4;
}

/* ================= LOADER ================= */
#loader {
  text-align: center;
  padding: 20px;
  display: none;
}

/* ================= RESPONSIVE HEADER ================= */
@media (max-width: 768px) {
  .header-banner { height: 240px; }
  .header-inner { margin-top: -180px; }
  .logo img { height: 120px; }
  .section-title h1 { font-size: 16px; }
}
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card {
  cursor: pointer;
}

.grid-image {
  pointer-events: none; /* image won't block click */
}

.card-title {
  pointer-events: none;
}
.header {
  position: relative;
}

.header::after {
  height: 300px;
  bottom: auto;
}

/* ================= FOOTER ================= */
.site-footer {
  margin-top: 60px;
  background: linear-gradient(180deg, #f7f9fc, #eef3f8);
  border-top: 1px solid #e3e8ef;
  padding: 30px 20px;
  text-align: center;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 14px;
}

.footer-links a {
  text-decoration: none;
  font-size: 14px;
  color: #4a5568;
  font-weight: 500;
  transition: all 0.25s ease;
}

.footer-links a:hover {
  color: #1a73e8;
  transform: translateY(-1px);
}

.footer-copy {
  font-size: 13px;
  color: #7a8699;
  letter-spacing: 0.2px;
}
