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

body {
  font-family:'Inter', sans-serif;
  background:#f7f8fb;
  color:#333;
  line-height:1.6;
}

a { text-decoration:none; color:inherit; }

/* Header */
header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px 40px;
  background:#fff;
  box-shadow:0 3px 10px rgba(0,0,0,0.05);
  position:sticky;
  top:0;
  z-index:100;
}

header .logo {
  display:flex;
  align-items:center;
  font-weight:700;
  font-size:1.5em;
  color:#5f72b0;
}

header .logo img { height:36px; margin-right:8px; }

header nav { display:flex; gap:20px; }

header nav a {
  font-weight:500;
  color:#333;
  transition:color 0.2s;
}

header nav a:hover { color:#5f72b0; }

/* Container */
.container {
  max-width:1200px;
  margin:40px auto;
  padding:0 16px;
}

h2 {
  margin:24px 0 16px;
  font-size:1.6em;
  font-weight:700;
  color:#333;
}

/* Grid */
.grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:24px;
}

/* Card */
.card {
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  text-align:center;
  box-shadow:0 4px 12px rgba(0,0,0,0.06);
  transition:transform 0.2s, box-shadow 0.2s;
  display:flex;
  flex-direction:column;
}

.card:hover {
  transform:translateY(-6px);
  box-shadow:0 8px 18px rgba(0,0,0,0.12);
}

.card img {
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
}

.card h3 {
  margin:12px;
  font-size:1.1em;
  color:#5f72b0;
  font-weight:600;
}

.card a {
  display:block;
  padding:12px;
  background:#5f72b0;
  color:#fff;
  font-weight:600;
  border-radius:0 0 12px 12px;
  transition:background 0.2s;
}

.card a:hover { background:#4a5e97; }

.placeholder {
  width:100%;
  aspect-ratio:1/1;
  background:#ddd;
}

/* --- Index specific (hero) --- */
.hero {
  width:100%;
  height:300px;
  border-radius:12px;
  background:#5f72b0;
  color:#fff;
  display:flex;
  justify-content:center;
  align-items:center;
  font-size:2em;
  font-weight:700;
  margin-bottom:40px;
}

/* --- Category specific --- */
.category-header {
  margin-bottom:20px;
}

/* Footer */
footer {
  background:#5f72b0;
  color:#fff;
  padding:16px 32px;
  margin-top:60px;
}

.footer-container {
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  max-width:1200px;
  margin:0 auto;
}

.footer-logo {
  display:flex;
  align-items:center;
  font-weight:700;
  font-size:1.2em;
}

.footer-logo img {
  height:28px;
  margin-right:8px;
}

.footer-contact a { color:#fff; font-weight:500; }
.footer-credit { font-size:0.9em; opacity:0.8; }

/* Make body a flex column */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* full viewport height */
}

/* Make main content area grow */
.container {
  flex: 1; /* takes all available space between header and footer */
}

/* Footer tweaks */
footer {
  background: #5f72b0;
  color: #fff;
  padding: 16px 32px;
  margin-top: 0; /* remove extra margin */
}

@media(max-width:768px){
  header { padding:12px 20px; }
  .grid { gap:16px; }
  .footer-container {
    flex-direction:column;
    gap:12px;
    text-align:center;
  }
}

