/* ===== Graphic Design page only (scoped with gd-*) ===== */

.gd-body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial;
  color: #1e293b;
  background: #eef6ff;
  line-height: 1.6;
}

/* Header */
.gd-header {
  background: #0f172a; /* Dark blue */
  position: auto;     /* Fix it at the very top */
  top: 0;
  left: 0;
  width: 100%;         /* Ensure it spans full width */
  z-index: 100;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}


.gd-navbar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
}

.gd-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #ffffff; /* White text */
  text-decoration: none;
  font-weight: 700;
}

.gd-brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

/* Page container */
.gd-container {
  max-width: 1100px;
  margin: 2rem auto 4rem;
  padding: 0 1rem;
}

.gd-page-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #1e293b;
}

/* Blocks & headings */
.gd-block {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(2,6,23,0.06);
  padding: 1.25rem;
  margin-bottom: 2rem;
}

.gd-head h2 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: #0ea5e9;
}

.gd-subblock { margin-top: 1.25rem; }
.gd-subhead h3 {
  font-size: 1.1rem;
  color: #7c3aed;
  margin-bottom: 0.5rem;
}

/* Uniform grid */
.gd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

/* Card */
.gd-item {
  display: block;
  background: #fff;
  border-radius: 0.9rem;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.gd-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.12);
}

/* Fixed aspect ratio -> even tiles */
.gd-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #e2e8f0;
}

.gd-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gd-caption {
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  color: #334155;
  border-top: 1px solid rgba(0,0,0,0.05);
}

/* Footer */
.gd-footer { text-align: center; margin-top: 2rem; }
.gd-top {
  display: inline-block;
  text-decoration: none;
  color: #2563eb;
  font-weight: 600;
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .gd-page-title { font-size: 1.6rem; }
  .gd-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
