/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base */
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #eef2f7, #f8fbff);
  color: #2c3e50;
  padding: 16px;
  -webkit-tap-highlight-color: transparent;
}

/* Container */
.container {
  max-width: 1100px;
  margin: auto;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 25px;

  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  z-index: 100;
  padding: 10px 0;
}

header h1 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 700;
}

header p {
  margin-top: 6px;
  color: #7f8c8d;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}

/* Section Titles */
.section-title {
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  font-weight: 600;
  margin: 25px 0 15px;
  text-align: center;
}

/* Grid */
.boxes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* Card */
.box {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* Tap effect */
.box:active {
  transform: scale(0.97);
}

/* Hover (desktop only) */
@media (hover: hover) {
  .box:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
  }
}

/* Image */
.box img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

/* Content */
.box-content {
  padding: 14px;
  text-align: center;
}

.box-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2980b9;
}

/* Admin Card */
.admin {
  border: 2px solid #2980b9;
}

.admin:active {
  background: #2980b9;
}

.admin:active h3 {
  color: #fff;
}

/* Section spacing */
section {
  margin-bottom: 35px;
}

/* Tablet */
@media (min-width: 600px) {
  body {
    padding: 20px;
  }

  .boxes {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .box img {
    height: 180px;
  }
}

/* Small Desktop */
@media (min-width: 900px) {
  .boxes {
    grid-template-columns: repeat(3, 1fr);
  }

  .box img {
    height: 190px;
  }
}

/* Large Desktop */
@media (min-width: 1200px) {
  .boxes {
    grid-template-columns: repeat(4, 1fr);
  }
}