body {
  margin-top: 80px;
  font-family: "Optima", "Helvetica Neue", sans-serif;
  color: #222;
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: "Garamond", serif;
  font-weight: 600;
  color: #111;
  letter-spacing: 0.5px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
}
.grid img {
  width: 100%;
  border-radius: 8px;
  transition: transform 0.3s;
}
.grid img:hover {
  transform: scale(1.05);
}
/* Navbar styling */
.navbar.wooden-theme {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.7); /* warna semi-transparent white */
  backdrop-filter: blur(10px);          
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  box-sizing: border-box;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

/* Push page content down so it's not hidden behind navbar */
body {
  margin-top: 80px;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-logo .logo-img {
  height: 50px;
  width: auto;
  border-radius: 6px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-logo .logo-img:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  color: #333; /* darker text for contrast */
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.3s, transform 0.3s;
}

.nav-links a:hover {
  background: rgba(255,255,255,0.4);
  transform: translateY(-2px);
}
/* Responsive for mobile */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    background: rgba(0,0,0,0.7);
    position: absolute;
    top: 60px;
    right: 0;
    width: 220px;
    padding: 20px;
    display: none;
  }
  .nav-links.show {
    display: flex;
  }
}
.footer {
  background: #222;
  color: #ddd;
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;
}

.footer p {
  margin: 5px 0;
  font-size: 0.9rem;
}

.footer-nav {
  margin: 15px 0;
}
.footer-nav a {
  margin: 0 10px;
  color: #ddd;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}
.footer-nav a:hover {
  color: #fff;
}

.footer-social {
  margin-top: 15px;
}

.footer-social a {
  display: inline-block;
  margin: 0 8px;
  background: #444;
  padding: 10px;
  border-radius: 50%;
  transition: background 0.3s, transform 0.3s;
}

.footer-social a:hover {
  background: #800020;
  transform: translateY(-3px);
}

.footer-social svg {
  vertical-align: middle;
}
.social-icon {
  display: inline-block;
  margin: 0 8px;
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
}
.social-icon.ig { background: #E1306C; color: #fff; }
.social-icon.fb { background: #1877F2; color: #fff; }
.social-icon.tw { background: #000; color: #fff; }

.social-icon:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

/* Hero section */
.hero {
  position: relative;
  background: url("../images/cover-utama.JPG") center/cover no-repeat;
  padding: 100px 20px;
  min-height: 500px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.hero-content h1 {
  font-size: 2.8rem;
  color: #000;
  margin-bottom: 20px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.hero-content p {
  font-size: 1.2rem;
  color: #000;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Slideshow */
.hero-slideshow {
  position: relative;
  width: 100%;
  max-width: 700px;
  height: 350px;
  margin: 20px auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hero-slideshow .caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(62,39,35,0.7);
  color: #fff;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 1rem;
}

.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
}

.slide.active {
  opacity: 1;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Programs section */
.programs {
  background: 
    url("../images/2026_01_30_07_25_IMG_2215.JPG") center/cover no-repeat, /* your image */
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 24px,
      rgba(0,0,0,0.02) 25px
    );
  background-blend-mode: overlay; /* blends gradient with image */
    padding: 10px 20px;
}

.programs h2 {
  text-align: center;
  font-size: 2rem;       /* optional: make it a bit larger */
  margin-bottom: 20px;   /* spacing below */
  color: #fff;        /* optional: give it a warm tone */
}

.intro:first-letter {
  float: left;
  font-size: 2.5rem;
  line-height: 1;
  margin-right: 8px;
  font-weight: bold;
  color: #fff;
}
.programs .intro {
  max-width: 700px;
  margin: 0 auto 30px;
  color: #fff;
  font-size: 1rem;
  line-height: 1.6;
}

/* Centered grid */
.centered-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* Centers the cards */
  gap: 25px;
}

.card {
  width: 220px;              /* Fixed width for balance */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card-image {
  position: relative;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* crop neatly */
}

.card img {
  width: 100%;
  border-radius: 12px 12px 0 0;
  display: block;
}

.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(128,0,32,0.4), rgba(176,48,96,0.6));
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  border-radius: 12px 12px 0 0;
}

.overlay span {
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.card:hover .overlay {
  opacity: 1;
}
.card h3 {
  font-size: 1rem;
  color: #2C3E50;
  margin: 10px;
  white-space: normal;      /* allow wrapping */
  overflow: visible;        /* no cutting */
}



.card:hover h3 {
  color: #3E2723;
  letter-spacing: 1px;
}


.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}


/* PKS Hero Section */
.pks-hero {
  background: url("../images/IMG_6457.JPG") center/cover no-repeat;
  text-align: center;
  padding: 80px 20px;
}

.pks-hero h1 {
  font-size: 2.2rem;
  color: #fdfdfd;
  margin-bottom: 20px;
}

.pks-hero p {
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
  color: #fdfdfd;
  line-height: 1.6;
}

.see-more {
  text-align: center;
  margin-top: 30px;
}
/* Button Styling */
button, .btn, .btn-primary, .hero-btn {
  background: linear-gradient(to right, #6b4f3a, #a68b6d);
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  display: inline-block;
}

button:hover, .btn:hover, .btn-primary:hover, .hero-btn:hover {
  background: linear-gradient(to right, #5a3e2b, #8b5e3c);
  transform: translateY(-3px);
}

/* Optional pulse animation */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(128,0,32,0.6); }
  70% { box-shadow: 0 0 0 15px rgba(128,0,32,0); }
  100% { box-shadow: 0 0 0 0 rgba(128,0,32,0); }
}

.btn-primary {
  animation: pulse 2s infinite;
}

.logo-img {
  height: 50px;       /* adjust size */
  width: auto;        /* keeps proportions */
  display: block;
}

/* Hero section for Dasar Hukum */
.law-hero {
  background: url("../images/IMG_6456.JPG") center/cover no-repeat;
  text-align: center;
  padding: 144px 20px;
}

.law-hero h1 {
  font-size: 2.2rem;
  color: #fdfdfd;
  margin-bottom: 15px;
}
.law-hero p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #fdfdfd;
  line-height: 1.6;
}

.pdf-container {
  max-width: 900px;
  margin: 40px auto;
  border: 2px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.pdf-note {
  text-align: center;
  font-size: 0.95rem;
  color: #555;
  margin-top: 10px;
}
.pdf-note a {
  color: #800020;
  font-weight: bold;
  text-decoration: none;
}
.pdf-note a:hover {
  text-decoration: underline;
}

/* PDF container styling */
.pdf-container {
  max-width: 900px;
  margin: 40px auto;
  border: 2px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.pdf-note {
  text-align: center;
  font-size: 0.95rem;
  color: #555;
  margin-top: 10px;
}
.floating-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #800020;
  color: #fff;
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: background 0.3s, transform 0.3s;
  z-index: 999;
}

.floating-btn:hover {
  background: #b03060;
  transform: translateY(-3px);
}

.daftar-hero {
  position: relative;
  background: url("../images/IMG_6457.JPG") center/cover no-repeat;
  text-align: center;
  padding: 60px 20px;
  color: #fdfdfd; /* default text color */
}

.daftar-hero h1 {
  font-size: 2.4rem;
  color: #fdfdfd; /* soft off-white for readability */
  margin-bottom: 15px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4); /* subtle shadow for clarity */
}

.daftar-hero p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #fdfdfd; /* soft cream tone */
  line-height: 1.6;
}
.daftar-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  color:#f0e6d2;
}

/* Centered lively grid */
.lively-grid {
  display: flex;
  flex-wrap: wrap;          /* multiple rows */
  justify-content: center;  /* center horizontally */
  gap: 30px;                /* space between cards */
  padding: 40px 20px;
}


/* Optional: section background for warmth */
.daftar-list {
  position: relative;
  background: 
    url("../images/IMG_6473.JPG") center/cover no-repeat, /* photo background */
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 24px,
      rgba(0,0,0,0.02) 25px
    );
  background-blend-mode: overlay; /* blends gradient with image */
  padding: 40px 20px;
}

.daftar-list .card-image {
  width: 100%;
  height: 200px;              /* consistent thumbnail box height */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9f9f9;  /* neutral background fills empty space */
}

/* Thumbnail images */
.daftar-list .card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;        /* show full image, no cropping */
  border: 2px solid #ccc;     /* border around each photo */
  border-radius: 6px;         /* optional rounded corners */
  background-color: #fff;     /* for transparent PNGs */
  display: block;
}

.program-drive {
  margin-top: 20px;
  text-align: center;
}

.drive-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007bff; /* blue button */
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.drive-button:hover {
  background-color: #0056b3; /* darker on hover */
}

.card {
  width: 220px;
  height: auto;             /* let height adjust */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-image {
  width: 100%;
  height: 200px;            /* fixed image height */
  overflow: hidden;
}

.card-image {
  flex: 1;                  /* take most of the space */
  width: 100%;
  overflow: hidden;
}

.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(128,0,32,0.4), rgba(176,48,96,0.6));
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  border-radius: 12px 12px 0 0;
}

.overlay span {
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.card:hover .overlay {
  opacity: 1;
}

.card h3 {
  padding: 12px;
  font-size: 1rem;
  color: #800020;
  text-align: center;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes popUp {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.program-detail {
  max-width: 1000px;
  margin: 40px auto;
  padding: 40px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.program-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.program-gallery figure {
  display: inline-block;
  margin: 10px;
  text-align: center;
}

.program-gallery img {
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.program-gallery figcaption {
  font-size: 0.9em;
  color: #555;
  margin-top: 5px;
}
.drive-button {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  position: relative;
}

.drive-button::after {
  content: "➔";              /* Unicode arrow */
  margin-left: 8px;
  font-size: 1.1em;
  transition: transform 0.25s ease;
}
.drive-button:hover {
  background: linear-gradient(135deg, #0056b3, #004080);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.drive-button:hover::after {
  transform: translateX(4px); /* arrow slides right on hover */
}


.drive-button:active {
  transform: translateY(0); /* reset on click */
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.program-gallery img {
  width: 100%;
  height: 180px;          /* consistent size */
  object-fit: cover;      /* crop neatly */
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.program-gallery img:hover {
  transform: scale(1.15); /* zoom effect */
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  z-index: 2;             /* ensures it pops above neighbors */
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  text-align: center;
}

.modal img {
  width: 100%;
  height: auto;
  max-height: 90vh; /* fit within viewport height */
  border-radius: 8px;
}


.modal-content {
  position: relative;
  display: inline-block;
  margin-top: 5%;
  max-width: 90%;   /* never exceed 90% of viewport width */
  max-height: 90%;  /* never exceed 90% of viewport height */
}

.modal .close {
  position: absolute;
  top: 10px; right: 10px;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  padding: 4px 8px;
}

.modal .prev,
.modal .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  user-select: none;
}

.modal .prev { left: 10px; }
.modal .next { right: 10px; }

.modal .prev:hover,
.modal .next:hover {
  background: rgba(0,0,0,0.7);
}

.detail-container {
  max-width: 900px;
  margin: 0 auto;
  background: #fffdf7;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-family: "Georgia", serif;
  line-height: 1.8;
}

/* Headline */
.detail-container h1 {
  font-size: 2.4rem;
  color: #3E2723;
  margin-bottom: 20px;
  padding-bottom: 12px;
  text-align: center; /* ensure centered */
  border: none;
  position: relative;
}
.detail-container h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  margin: 12px auto 0;
  background: linear-gradient(to right, #6b4f3a, #a68b6d);
  border-radius: 2px;
}

/* Image with caption */
.article-image {
  float: left;
  width: 300px;
  margin: 0 20px 20px 0;
}
.article-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.article-image figcaption {
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  margin-top: 6px;
  font-style: italic;
}

/* Newspaper-style text */
.article-layout img {
  float: left;
  width: 300px;
  margin: 0 20px 20px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
  .article-layout img {
    float: none;
    display: block;
    margin: 0 auto 20px;
    width: 100%;
    max-width: 500px;
  }
}

.article-layout p {
  text-align: justify;
  font-size: 1.1rem;
  color: #333;
  line-height: 1.8;
}

/* Drop cap */
.article-layout p:first-letter {
  float: left;
  font-size: 3rem;
  line-height: 1;
  margin-right: 8px;
  font-weight: bold;
  color: #3E2723;
}

/* Pull quote */
.pull-quote {
  font-size: 1.3rem;
  font-style: italic;
  color: #6b4f3a;
  border-left: 4px solid #a68b6d;
  padding: 12px 16px;
  margin: 30px 0;
  background: rgba(166, 139, 109, 0.08);
  border-radius: 6px;
}

.lively-grid .card:nth-child(even) img {
  filter: sepia(20%) contrast(1.1);
}
.program-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  font-weight: bold;
}
.program-nav a {
  color: #6b4f3a;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
}
.program-nav a:hover {
  color: #4A148C;
  text-decoration: underline;
  transform: translateY(-2px);
}

section.programs::before {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  margin: 0 auto 30px;
  background: linear-gradient(to right, #6b4f3a, #a68b6d);
  border-radius: 2px;
  animation: fadeIn 1.5s ease-in;
}

.about-hero {
  background: url("../images/IMG_6473.JPG") center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}
.about-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.about-hero p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.2rem;
  line-height: 1.6;
}

body {
  background: linear-gradient(135deg, #2C3E50, #4A148C); /* strong accent gradient */
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
}

.about-section {
  padding: 60px 30px;
  max-width: 1000px;
  margin: 40px auto;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  /* add this to center children like h2 */
  text-align: center;
}


.about-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.2);
}

.about-section h2 {
  margin: 0 auto 25px; /* auto centers the block */
  font-size: 2.4rem;
  font-weight: 700;
  color: #2C3E50;
  letter-spacing: 1px;
  position: relative;
  display: inline-block; /* highlight hugs text */
  padding: 6px 12px;
  background: rgba(44,62,80,0.08); /* soft accent background */
  border-radius: 6px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.08);
}


/* optional subtle underline accent */
.about-section h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 50%;
  height: 3px;
  background: #2C3E50;
  border-radius: 2px;
  opacity: 0.6;
}

.about-section p, 
.about-section ul {
  line-height: 1.8;
  margin-bottom: 18px;
  font-size: 1.05rem;
}

.about-section ul {
  list-style: disc;
  padding-left: 40px;
}

.grid-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.grid-list li {
  background: linear-gradient(135deg, #6A1B9A, #4A148C); /* strong accent gradient */
  color: #fff; /* ensure text is readable */
  border: none;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
  font-size: 1rem;
  line-height: 1.6;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.grid-list li:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

/* Optional: alternate strong colors for variety */
.grid-list li:nth-child(1) { background: linear-gradient(135deg, #1565C0, #0D47A1); }
.grid-list li:nth-child(2) { background: linear-gradient(135deg, #2E7D32, #1B5E20); }
.grid-list li:nth-child(3) { background: linear-gradient(135deg, #C62828, #B71C1C); }
.grid-list li:nth-child(4) { background: linear-gradient(135deg, #F9A825, #F57F17); }
.grid-list li:nth-child(5) { background: linear-gradient(135deg, #00838F, #006064); }
.grid-list li:nth-child(6) {
  background: linear-gradient(135deg, #E65100, #BF360C); /* deep orange */
}
.grid-list li:nth-child(7) {
  background: linear-gradient(135deg, #9C27B0, #6A1B9A); /* vibrant violet */
}
.grid-list li:nth-child(8) {
  background: linear-gradient(135deg, #607D8B, #455A64); /* cool slate/grey-blue */
}
.grid-list li:nth-child(9) {
  background: linear-gradient(135deg, #D81B60, #880E4F); /* pink-magenta */
}
.visitor-popup {
  position: fixed;
  bottom: 20px;       /* distance from bottom */
  left: 20px;         /* distance from left */
  background: rgba(0,0,0,0.8); /* semi-transparent dark background */
  color: #fff;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  font-size: 14px;
  line-height: 1.4;
  z-index: 2000;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.visitor-popup.show {
  opacity: 1;
  transform: translateY(0);
}
.controls {
  display: flex;
  justify-content: flex-end; /* push to the right */
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

/* Glassy button */
#sortButton {
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.3s ease;
}
#sortButton:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

/* Glassy search bar */
#searchBar {
  padding: 10px 15px;
  font-size: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  outline: none;
  transition: all 0.3s ease;
}
#searchBar::placeholder {
  color: rgba(255, 255, 255, 0.7);
}
#searchBar:focus {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

#sortButton i {
  transition: transform 0.3s ease;
}
#sortButton.sorted i {
  transform: rotate(180deg);
}
