/* =============================================
   global.css — Canossa High School
   Clean, Modern, Bright Design System & Typography
   Powered by the refined 'Outfit' Typeface (matching Admin Dashboard)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Unified Typography Tokens — Pure 'Outfit' */
  --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-sans:    'Outfit', sans-serif;
  --font-serif:    Georgia, serif;

  /* Brand Palette — Vibrant & Refined */
  --teal:          #0a7c6e;
  --teal-mid:      #0d9488;
  --teal-light:    #14b8a6;
  --teal-frost:    #f0fdfa;
  --teal-pale:     #ccfbf1;
  --teal-deep:     #065f56;
  --teal-dark:     #043c36;
  --gold:          #c9a84c;
  --gold-lt:       #e8c96a;
  --gold-accent:   #d97706;

  /* Crisp Neutral & Background Tokens */
  --white:         #ffffff;
  --bg:            #f8fafc;        /* Clean modern light slate */
  --bg-card:       #ffffff;
  --bg-subtle:     #f1f5f9;

  /* High-Contrast Bright Text Colors (Matching Admin Dashboard) */
  --text-title:    #0f2d27;        /* Deep crisp slate / institutional green-black */
  --text:          #0f2d27;        /* Ultra sharp heading tone */
  --text-body:     #2d4a42;        /* Crisp, bright, effortless-to-read charcoal */
  --text-soft:     #4a7c6f;        /* Soft institutional slate */
  --text-muted:    #64748b;        /* Readable secondary text */
  --text-teal:     #0a7c6e;

  /* Clean Borders & Shadows */
  --border:        #e2e8f0;
  --border-mid:    #cbd5e1;
  --border-teal:   rgba(10, 124, 110, 0.2);
  --shadow-xs:     0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm:     0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md:     0 6px 20px rgba(15, 23, 42, 0.07);
  --shadow-lg:     0 12px 32px rgba(15, 23, 42, 0.10);
  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     14px;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background: var(--bg);
  color: var(--text-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.68;
}

/* Headings — Sharp, bold, modern Outfit */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-title);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

p {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--teal-deep);
}

/* ─── MODERN 3-COLUMN / 2-COLUMN CARD GRID UTILITY ─── */
.modern-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 992px) {
  .modern-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .modern-grid-3 { grid-template-columns: 1fr; }
}

.modern-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .modern-grid-2 { grid-template-columns: 1fr; }
}

/* ─── MODERN CARD (Institutional Layout) ─── */
.modern-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.modern-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(10, 124, 110, 0.3);
}

.modern-card-img {
  width: 100%;
  height: 210px;
  background: #0f172a;
  overflow: hidden;
  position: relative;
}
.modern-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.modern-card:hover .modern-card-img img {
  transform: scale(1.04);
}

.modern-card-body {
  padding: 22px 24px 26px 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.modern-card-title {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-title);
  line-height: 1.35;
  margin: 10px 0 10px 0;
  letter-spacing: -0.01em;
}

.modern-card-text {
  font-family: var(--font-primary);
  font-size: 0.925rem;
  line-height: 1.68;
  color: var(--text-body);
  margin-bottom: 0;
  flex-grow: 1;
}

/* Institutional Eyebrow & Badges */
.pb-eyebrow span,
.intro-eyebrow,
.block-label,
.event-date,
.cfb-tag,
.badge-inst {
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
}