:root {
  --rhodes-blue: #0a2f76;
  --ink: #1f2937;
  --muted: #4b5563;
  --card: #ffffff;
  --bg: #f8fafc;
  --stroke: #e2e8f0;
  --radius: 12px;
  
  /* Gradients */
  --grad-soc-1: #206A8C; --grad-soc-2: #4da0c4;
  --grad-econ-1: #386641; --grad-econ-2: #6a994e;
  --grad-geo-1: #6d597a; --grad-geo-2: #9d8189;
}

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.5; /* Tightened line height for better typesetting */
}

.wrap { max-width: 900px; margin-inline: auto; padding: 20px; }

/* Header */
.hero {
  background: white;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 30px;
}
.hero img { display: block; width: 100%; height: auto; border-radius: 8px; margin-bottom: 20px; }
h2.section-title { font-size: 1.8rem; color: var(--rhodes-blue); margin-top: 0; }

/* --- CARD LIST LAYOUT --- */
.grid { 
  display: flex; 
  flex-direction: column; 
  gap: 20px; 
  margin-top: 24px; 
}

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Mobile: Stacked */
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -4px rgba(0,0,0,0.1);
}

/* --- PATTERNS & GEOMETRY --- */
.card-visual {
  height: 100px; /* Mobile: Short strip */
  position: relative;
  overflow: hidden;
  flex-shrink: 0; /* Prevent shrinking */
  display: flex;
  align-items: center; /* Center text vertically */
  justify-content: center; /* Center text horizontally */
}

/* Base Gradients */
.viz-soc { background: linear-gradient(135deg, var(--grad-soc-1), var(--grad-soc-2)); }
.viz-econ { background: linear-gradient(135deg, var(--grad-econ-1), var(--grad-econ-2)); }
.viz-geo { background: linear-gradient(135deg, var(--grad-geo-1), var(--grad-geo-2)); }

/* Geometric Overlays */
.card-visual::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none;
}
/* Diagonals */
.viz-soc::before { background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.1) 40%, rgba(255,255,255,0.1) 60%, transparent 60%); }
/* Triangles */
.viz-econ::before { background: linear-gradient(to top right, transparent 50%, rgba(255,255,255,0.15) 50%); }
/* Shards */
.viz-geo::before { background: linear-gradient(75deg, transparent 20%, rgba(255,255,255,0.1) 20%, rgba(255,255,255,0.1) 40%, transparent 40%); }

.cat-label {
  position: relative; z-index: 2; color: white;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 4px 10px; border-radius: 50px;
  background: rgba(0,0,0,0.15);
  backdrop-filter: blur(4px);
}

/* --- CARD CONTENT --- */
.card-content { padding: 20px; display: flex; flex-direction: column; justify-content: center; }

.card-title {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
  line-height: 1.35; /* Better typesetting for long titles */
  color: var(--rhodes-blue);
  font-weight: 700;
}

.guest-info { margin-bottom: 12px; }
.guest-name { font-weight: 700; color: #111; margin-right: 6px; }
.guest-desc { color: var(--muted); font-size: 0.95rem; }

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--stroke);
  
  /* CHANGE THIS: Increased size and made color darker */
  font-size: 1rem; 
  color: #333; 
}

.btn-arrow { font-weight: 600; color: var(--rhodes-blue); white-space: nowrap; margin-left: 10px;}

/* --- DESKTOP LAYOUT (The Fix) --- */
@media(min-width: 700px) {
  .card {
    flex-direction: row; /* Side-by-side layout */
    align-items: stretch;
    min-height: 160px; /* Reduced height */
  }
  .card-visual {
    width: 220px; /* Fixed width sidebar */
    height: auto; /* Full height */
  }
  .card-content {
    flex: 1; /* Take remaining width */
    padding: 24px;
  }
}

/* --- PAGE SPECIFIC --- */
.article-header { border-bottom: 1px solid var(--stroke); padding-bottom: 20px; margin-bottom: 30px; }
.article-body { max-width: 720px; margin: 0 auto; font-size: 1.1rem; line-height: 1.7; }
.nav-back { display: inline-block; margin-bottom: 20px; font-weight: 600; }
footer { text-align: center; margin-top: 40px; color: var(--muted); font-size: 0.9rem; padding-bottom: 40px;}
