/*!
 * ACI Ottawa Student Chapter Theme - Main Stylesheet
 * Version: 1.0.0
 * Description: Enterprise-grade design system with modern CSS architecture
 * Author: ACI Ottawa Development Team
 */

/* ========================================
   TABLE OF CONTENTS
   ========================================
   1. CSS Custom Properties (Variables)
   2. Reset & Base Styles
   3. Typography System
   4. Layout & Grid System
   5. Components
   6. Utilities
   7. Animations
   8. Dark Mode
   9. Responsive Design
   10. Print Styles
   ======================================== */

/* ========================================
   1. CSS CUSTOM PROPERTIES
   ======================================== */

:root {
	/* Colors - ACI Blue Palette */
	--color-primary: #0033a0;
	--color-primary-dark: #002277;
	--color-primary-light: #0077c8;
	--color-primary-lighter: #3399e6;
	--color-primary-lightest: #e6f2ff;
	
	/* Colors - Concrete Gray Palette */
	--color-secondary: #5A6C7D;
	--color-secondary-dark: #4A5A68;
	--color-secondary-light: #7A8A9B;
	
	/* Colors - Steel Gray Palette */
	--color-steel: #3D4F5D;
	--color-steel-dark: #2C3E50;
	--color-steel-light: #5D6F7D;
	
	/* Colors - Professional Gold Palette */
	--color-accent: #D4AF37;
	--color-accent-dark: #B8941C;
	--color-accent-light: #E0C563;
	
	/* Colors - Neutrals */
	--color-white: #FFFFFF;
	--color-off-white: #F8F9FA;
	--color-light-gray: #E8EBED;
	--color-medium-gray: #97A4B1;
	--color-dark-gray: #2C3E50;
	--color-black: #1A1A1A;

	
	/* Colors - Semantic */
	--color-success: #10B981;
	--color-success-light: #D1FAE5;
	--color-warning: #F59E0B;
	--color-warning-light: #FEF3C7;
	--color-error: #EF4444;
	--color-error-light: #FEE2E2;
	--color-info: #3B82F6;
	--color-info-light: #DBEAFE;
	
	/* Typography - Font Families */
	--font-primary: 'Noto Serif', 'Times New Roman', serif;
	--font-headings: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--font-mono: 'Fira Code', 'Monaco', 'Consolas', 'Courier New', monospace;
	
	/* Typography - Font Sizes */
	--font-size-xs: 0.75rem;      /* 12px */
	--font-size-sm: 0.875rem;     /* 14px */
	--font-size-base: 1rem;       /* 16px */
	--font-size-md: 1.125rem;     /* 18px */
	--font-size-lg: 1.25rem;      /* 20px */
	--font-size-xl: 1.5rem;       /* 24px */
	--font-size-2xl: 2rem;        /* 32px */
	--font-size-3xl: 2.5rem;      /* 40px */
	--font-size-4xl: 3rem;        /* 48px */
	--font-size-5xl: 3.75rem;     /* 60px */
	--font-size-6xl: 4.5rem;      /* 72px */
	
	/* Typography - Font Weights */
	--font-weight-light: 300;
	--font-weight-normal: 400;
	--font-weight-medium: 500;
	--font-weight-semibold: 600;
	--font-weight-bold: 700;
	--font-weight-extrabold: 800;
	
	/* Typography - Line Heights */
	--line-height-tight: 1.2;
	--line-height-snug: 1.375;
	--line-height-normal: 1.6;
	--line-height-relaxed: 1.75;
	--line-height-loose: 2;

	
	/* Typography - Letter Spacing */
	--letter-spacing-tight: -0.025em;
	--letter-spacing-normal: 0;
	--letter-spacing-wide: 0.025em;
	--letter-spacing-wider: 0.05em;
	--letter-spacing-widest: 0.1em;
	
	/* Spacing Scale */
	--space-xs: 0.25rem;      /* 4px */
	--space-sm: 0.5rem;       /* 8px */
	--space-md: 1rem;         /* 16px */
	--space-lg: 1.5rem;       /* 24px */
	--space-xl: 2rem;         /* 32px */
	--space-2xl: 3rem;        /* 48px */
	--space-3xl: 4rem;        /* 64px */
	--space-4xl: 6rem;        /* 96px */
	--space-5xl: 8rem;        /* 128px */
	--space-6xl: 12rem;       /* 192px */
	
	/* Border Radius */
	--radius-sm: 0.375rem;    /* 6px */
	--radius-md: 0.5rem;      /* 8px */
	--radius-lg: 0.75rem;     /* 12px */
	--radius-xl: 1rem;        /* 16px */
	--radius-2xl: 1.5rem;     /* 24px */
	--radius-3xl: 2rem;       /* 32px */
	--radius-full: 9999px;
	
	/* Shadows */
	--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
	--shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	--shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
	
	/* Transitions */
	--transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
	--transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
	--transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
	--transition-slower: 500ms cubic-bezier(0.4, 0, 0.2, 1);
	
	/* Z-Index Scale */
	--z-index-dropdown: 1000;
	--z-index-sticky: 1020;
	--z-index-fixed: 1030;
	--z-index-modal-backdrop: 1040;
	--z-index-modal: 1050;
	--z-index-popover: 1060;
	--z-index-tooltip: 1070;

	
	/* Container Widths */
	--container-sm: 640px;
	--container-md: 768px;
	--container-lg: 1024px;
	--container-xl: 1140px;
	--container-2xl: 1400px;
	
	/* Breakpoints */
	--breakpoint-sm: 640px;
	--breakpoint-md: 768px;
	--breakpoint-lg: 1024px;
	--breakpoint-xl: 1280px;
	--breakpoint-2xl: 1536px;
}

/* ========================================
   2. RESET & BASE STYLES
   ======================================== */

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

html {
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	font-family: var(--font-primary);
	font-size: var(--font-size-base);
	font-weight: var(--font-weight-normal);
	line-height: var(--line-height-normal);
	color: var(--color-dark-gray);
	background-color: var(--color-white);
	overflow-x: hidden;
}


img, picture, video, canvas, svg {
	display: block;
	max-width: 100%;
	height: auto;
}

input, button, textarea, select {
	font: inherit;
}

button {
	cursor: pointer;
	border: none;
	background: none;
}

a {
	color: var(--color-primary);
	text-decoration: none;
	transition: color var(--transition-base);
}

a:hover, a:focus {
	color: var(--color-primary-dark);
}

a:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

/* ========================================
   3. TYPOGRAPHY SYSTEM
   ======================================== */

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-headings);
	font-weight: var(--font-weight-bold);
	line-height: var(--line-height-tight);
	color: var(--color-black);
	margin-bottom: var(--space-lg);
	letter-spacing: var(--letter-spacing-tight);
}

h1 {
	font-size: clamp(2.5rem, 5vw, 3.75rem);
	margin-bottom: var(--space-2xl);
}

h2 {
	font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
	font-size: clamp(1.5rem, 3vw, 2.5rem);
}

h4 {
	font-size: clamp(1.25rem, 2.5vw, 2rem);
}


h5 {
	font-size: clamp(1.125rem, 2vw, 1.5rem);
}

h6 {
	font-size: clamp(1rem, 1.5vw, 1.25rem);
}

p {
	margin-bottom: var(--space-lg);
	line-height: var(--line-height-relaxed);
}

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

strong, b {
	font-weight: var(--font-weight-semibold);
}

em, i {
	font-style: italic;
}

small {
	font-size: var(--font-size-sm);
}

blockquote {
	margin: var(--space-2xl) 0;
	padding: var(--space-xl);
	padding-left: var(--space-2xl);
	border-left: 4px solid var(--color-primary);
	background-color: var(--color-off-white);
	border-radius: var(--radius-md);
	font-size: var(--font-size-md);
	font-style: italic;
	color: var(--color-secondary);
}

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

code, pre {
	font-family: var(--font-mono);
	font-size: var(--font-size-sm);
}

code {
	padding: 0.125rem 0.25rem;
	background-color: var(--color-light-gray);
	border-radius: var(--radius-sm);
	color: var(--color-primary-dark);
}


pre {
	padding: var(--space-lg);
	background-color: var(--color-dark-gray);
	color: var(--color-white);
	border-radius: var(--radius-md);
	overflow-x: auto;
	margin: var(--space-xl) 0;
}

pre code {
	padding: 0;
	background: none;
	color: inherit;
}

ul, ol {
	margin-bottom: var(--space-lg);
	padding-left: var(--space-xl);
}

li {
	margin-bottom: var(--space-sm);
}

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

/* ========================================
   4. LAYOUT & GRID SYSTEM
   ======================================== */

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-content {
	flex: 1;
}

.container {
	width: 100%;
	max-width: var(--container-xl);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--space-lg);
	padding-right: var(--space-lg);
}

.container-fluid {
	width: 100%;
	padding-left: var(--space-lg);
	padding-right: var(--space-lg);
}

.container-wide {
	max-width: var(--container-2xl);
}


.content-area {
	width: 100%;
}

.content-area.has-sidebar {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-2xl);
}

@media (min-width: 1024px) {
	.content-area.has-sidebar {
		grid-template-columns: 1fr 320px;
	}
}

.section-padding {
	padding-top: var(--space-4xl);
	padding-bottom: var(--space-4xl);
}

@media (max-width: 768px) {
	.section-padding {
		padding-top: var(--space-3xl);
		padding-bottom: var(--space-3xl);
	}
}

/* Grid System */
.grid {
	display: grid;
	gap: var(--space-lg);
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
	.grid-cols-4, .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
	.grid-cols-4, .grid-cols-3, .grid-cols-2 { grid-template-columns: 1fr; }
}

/* Flex Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }


/* ========================================
   5. COMPONENTS
   ======================================== */

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-sm);
	padding: 0.75rem 1.5rem;
	font-size: var(--font-size-base);
	font-weight: var(--font-weight-semibold);
	line-height: 1;
	text-align: center;
	white-space: nowrap;
	border-radius: var(--radius-md);
	transition: all var(--transition-base);
	cursor: pointer;
	border: 2px solid transparent;
	text-decoration: none;
}

.btn:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

.btn-primary {
	background-color: var(--color-primary);
	color: var(--color-white);
}

.btn-primary:hover, .btn-primary:focus {
	background-color: var(--color-primary-dark);
	color: var(--color-white);
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

.btn-secondary {
	background-color: transparent;
	color: var(--color-primary);
	border-color: var(--color-primary);
}

.btn-secondary:hover, .btn-secondary:focus {
	background-color: var(--color-primary);
	color: var(--color-white);
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

.btn-white {
	background-color: var(--color-white);
	color: var(--color-primary);
}

.btn-white:hover, .btn-white:focus {
	background-color: var(--color-off-white);
	color: var(--color-primary-dark);
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}


.btn-sm {
	padding: 0.5rem 1rem;
	font-size: var(--font-size-sm);
}

.btn-lg {
	padding: 1rem 2rem;
	font-size: var(--font-size-md);
}

/* Cards */
.card {
	background-color: var(--color-white);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	overflow: hidden;
	transition: all var(--transition-base);
}

.card:hover {
	box-shadow: var(--shadow-xl);
	transform: translateY(-4px);
}

.card-image {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.card-content {
	padding: var(--space-xl);
}

.card-title {
	font-size: var(--font-size-xl);
	margin-bottom: var(--space-md);
}

.card-description {
	color: var(--color-secondary);
	margin-bottom: var(--space-lg);
}

/* Badges */
.badge {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.75rem;
	font-size: var(--font-size-xs);
	font-weight: var(--font-weight-semibold);
	text-transform: uppercase;
	letter-spacing: var(--letter-spacing-wide);
	border-radius: var(--radius-full);
	background-color: var(--color-light-gray);
	color: var(--color-dark-gray);
}

.badge-primary { background-color: var(--color-primary-lightest); color: var(--color-primary-dark); }
.badge-success { background-color: var(--color-success-light); color: var(--color-success); }
.badge-warning { background-color: var(--color-warning-light); color: var(--color-warning); }
.badge-error { background-color: var(--color-error-light); color: var(--color-error); }


/* Alerts */
.alert {
	padding: var(--space-lg);
	border-radius: var(--radius-md);
	border-left: 4px solid;
	margin-bottom: var(--space-lg);
}

.alert-info {
	background-color: var(--color-info-light);
	border-color: var(--color-info);
	color: var(--color-info);
}

.alert-success {
	background-color: var(--color-success-light);
	border-color: var(--color-success);
	color: var(--color-success);
}

.alert-warning {
	background-color: var(--color-warning-light);
	border-color: var(--color-warning);
	color: var(--color-warning);
}

.alert-error {
	background-color: var(--color-error-light);
	border-color: var(--color-error);
	color: var(--color-error);
}

/* Forms */
.form-group {
	margin-bottom: var(--space-lg);
}

.form-label {
	display: block;
	margin-bottom: var(--space-sm);
	font-weight: var(--font-weight-medium);
	color: var(--color-dark-gray);
}

.form-control {
	display: block;
	width: 100%;
	padding: 0.75rem 1rem;
	font-size: var(--font-size-base);
	line-height: var(--line-height-normal);
	color: var(--color-dark-gray);
	background-color: var(--color-white);
	border: 2px solid var(--color-light-gray);
	border-radius: var(--radius-md);
	transition: all var(--transition-base);
}


.form-control:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px var(--color-primary-lightest);
}

textarea.form-control {
	resize: vertical;
	min-height: 120px;
}

/* Tables */
.table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: var(--space-xl);
}

.table th,
.table td {
	padding: var(--space-md);
	text-align: left;
	border-bottom: 1px solid var(--color-light-gray);
}

.table th {
	font-weight: var(--font-weight-semibold);
	color: var(--color-black);
	background-color: var(--color-off-white);
}

.table tbody tr:hover {
	background-color: var(--color-off-white);
}

/* Section Headers */
.section-header {
	margin-bottom: var(--space-3xl);
}

.section-label {
	display: inline-block;
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-semibold);
	text-transform: uppercase;
	letter-spacing: var(--letter-spacing-wider);
	color: var(--color-primary);
	margin-bottom: var(--space-md);
}

.section-title {
	font-size: clamp(2rem, 4vw, 3rem);
	margin-bottom: var(--space-md);
}

.section-description {
	font-size: var(--font-size-md);
	color: var(--color-secondary);
	max-width: 720px;
	margin: 0 auto;
}
/* Section Footer */
.section-footer {
	margin-top: var(--space-3xl);
}

/* ========================================
   HOMEPAGE COMPONENTS
   ======================================== */

/* --- Hero Section --- */
.hero-section {
	position: relative;
	min-height: 90vh;
	display: flex;
	align-items: center;
	overflow: hidden;
	color: var(--color-white);
}

.hero-background {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	z-index: 0;
}

.hero-background::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(0, 51, 160, 0.88) 0%, rgba(0, 119, 200, 0.75) 100%);
	z-index: 1;
}

.hero-section .container {
	position: relative;
	z-index: 2;
	padding-top: var(--space-5xl);
	padding-bottom: var(--space-5xl);
}

.hero-content {
	max-width: 800px;
}

.hero-title {
	font-family: var(--font-headings);
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	font-weight: 700;
	color: var(--color-white);
	line-height: 1.1;
	margin-bottom: var(--space-lg);
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
	font-family: var(--font-headings);
	font-size: clamp(1.25rem, 3vw, 2rem);
	font-weight: 500;
	color: rgba(255, 255, 255, 0.95);
	margin-bottom: var(--space-md);
	letter-spacing: var(--letter-spacing-wide);
}

.hero-description {
	font-size: clamp(1rem, 1.5vw, 1.25rem);
	color: rgba(255, 255, 255, 0.85);
	line-height: 1.7;
	margin-bottom: var(--space-2xl);
	max-width: 600px;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-md);
}

.hero-actions .btn-secondary {
	border-color: rgba(255, 255, 255, 0.7);
	color: var(--color-white);
}

.hero-actions .btn-secondary:hover {
	background-color: var(--color-white);
	color: var(--color-primary);
	border-color: var(--color-white);
}

.hero-scroll-indicator {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	color: rgba(255, 255, 255, 0.7);
	font-size: var(--font-size-xs);
	text-transform: uppercase;
	letter-spacing: var(--letter-spacing-widest);
}

.scroll-icon {
	width: 24px;
	height: 40px;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-radius: 12px;
	position: relative;
}

.scroll-icon::after {
	content: '';
	position: absolute;
	top: 6px;
	left: 50%;
	transform: translateX(-50%);
	width: 4px;
	height: 8px;
	background: rgba(255, 255, 255, 0.7);
	border-radius: 2px;
	animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
	0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
	50% { transform: translateX(-50%) translateY(12px); opacity: 0.3; }
}

/* --- Stats Section --- */
.stats-section {
	background: linear-gradient(135deg, #0033a0 0%, #0077c8 100%);
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--space-2xl);
	text-align: center;
}

.stat-item {
	padding: var(--space-lg);
}

.stat-number {
	font-family: var(--font-headings);
	font-size: clamp(2rem, 4vw, 3.5rem);
	font-weight: 700;
	color: var(--color-white);
	line-height: 1;
	margin-bottom: var(--space-sm);
}

.stat-label {
	font-size: var(--font-size-sm);
	text-transform: uppercase;
	letter-spacing: var(--letter-spacing-wider);
	color: rgba(255, 255, 255, 0.8);
	font-weight: 500;
}

@media (max-width: 768px) {
	.stats-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--space-lg);
	}
}

@media (max-width: 480px) {
	.stats-grid {
		grid-template-columns: 1fr;
	}
}

/* --- Mission Section --- */
.mission-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-2xl);
}

.mission-card {
	text-align: center;
	padding: var(--space-2xl);
	background: var(--color-white);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-md);
	transition: all var(--transition-slow);
	border: 1px solid var(--color-light-gray);
}

.mission-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--shadow-xl);
	border-color: var(--color-primary-lightest);
}

.mission-icon {
	width: 80px;
	height: 80px;
	margin: 0 auto var(--space-xl);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius-full);
	background: linear-gradient(135deg, rgba(0, 51, 160, 0.08) 0%, rgba(0, 119, 200, 0.12) 100%);
	color: var(--color-primary);
	transition: all var(--transition-slow);
}

.mission-card:hover .mission-icon {
	background: linear-gradient(135deg, #0033a0 0%, #0077c8 100%);
	color: var(--color-white);
	transform: scale(1.1);
}

.mission-title {
	font-family: var(--font-headings);
	font-size: var(--font-size-xl);
	margin-bottom: var(--space-md);
	color: var(--color-primary);
}

.mission-description {
	color: var(--color-secondary);
	line-height: 1.7;
}

@media (max-width: 768px) {
	.mission-grid {
		grid-template-columns: 1fr;
	}
}

/* --- Events Section --- */
.events-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-2xl);
}

@media (max-width: 1024px) {
	.events-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.events-grid {
		grid-template-columns: 1fr;
	}
}

/* Event Card */
.event-card {
	background: var(--color-white);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-md);
	transition: all var(--transition-base);
	border: 1px solid var(--color-light-gray);
}

.event-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-xl);
}

.event-card__image {
	height: 200px;
	overflow: hidden;
}

.event-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition-slow);
}

.event-card:hover .event-card__image img {
	transform: scale(1.05);
}

.event-card__content {
	padding: var(--space-xl);
}

.event-card__date {
	display: inline-block;
	font-size: var(--font-size-sm);
	font-weight: 600;
	color: var(--color-primary);
	text-transform: uppercase;
	letter-spacing: var(--letter-spacing-wide);
	margin-bottom: var(--space-sm);
}

.event-card__title {
	font-family: var(--font-headings);
	font-size: var(--font-size-lg);
	margin-bottom: var(--space-md);
	color: var(--color-black);
}

.event-card__title a {
	color: inherit;
	text-decoration: none;
}

.event-card__title a:hover {
	color: var(--color-primary);
}

.event-card__meta {
	display: flex;
	flex-direction: column;
	gap: var(--space-xs);
	font-size: var(--font-size-sm);
	color: var(--color-secondary);
}

.event-card__meta-item {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
}

.event-card__meta-item svg {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
}

/* --- News Section --- */
.news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-2xl);
}

@media (max-width: 1024px) {
	.news-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.news-grid {
		grid-template-columns: 1fr;
	}
}

/* News Card */
.news-card {
	background: var(--color-white);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-md);
	transition: all var(--transition-base);
	border: 1px solid var(--color-light-gray);
}

.news-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-xl);
}

.news-card__image {
	height: 220px;
	overflow: hidden;
}

.news-card__image img,
.news-card__thumbnail {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition-slow);
}

.news-card:hover .news-card__image img {
	transform: scale(1.05);
}

.news-card__content {
	padding: var(--space-xl);
}

.news-card__meta {
	display: flex;
	align-items: center;
	gap: var(--space-md);
	font-size: var(--font-size-sm);
	margin-bottom: var(--space-md);
}

.news-card__date {
	color: var(--color-secondary);
}

.news-card__category {
	background: var(--color-primary-lightest);
	color: var(--color-primary);
	padding: 0.125rem 0.5rem;
	border-radius: var(--radius-full);
	font-weight: 600;
	font-size: var(--font-size-xs);
	text-transform: uppercase;
	letter-spacing: var(--letter-spacing-wide);
}

.news-card__title {
	font-family: var(--font-headings);
	font-size: var(--font-size-lg);
	margin-bottom: var(--space-md);
	line-height: 1.3;
}

.news-card__title a {
	color: var(--color-black);
	text-decoration: none;
	transition: color var(--transition-base);
}

.news-card__title a:hover {
	color: var(--color-primary);
}

.news-card__excerpt {
	color: var(--color-secondary);
	font-size: var(--font-size-sm);
	line-height: 1.6;
	margin-bottom: var(--space-lg);
}

.news-card__read-more {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: var(--font-size-sm);
	font-weight: 600;
	color: var(--color-primary);
	text-decoration: none;
	transition: gap var(--transition-base), color var(--transition-base);
}

.news-card__read-more:hover {
	gap: 0.75rem;
	color: var(--color-primary-dark);
}

/* --- Team Section --- */
.team-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--space-2xl);
}

@media (max-width: 1024px) {
	.team-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

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

@media (max-width: 480px) {
	.team-grid {
		grid-template-columns: 1fr;
	}
}

/* Team Card */
.team-card {
	text-align: center;
	background: var(--color-white);
	border-radius: var(--radius-lg);
	padding: var(--space-2xl) var(--space-lg);
	box-shadow: var(--shadow-md);
	transition: all var(--transition-base);
	border: 1px solid var(--color-light-gray);
}

.team-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-xl);
}

.team-card__image {
	width: 120px;
	height: 120px;
	margin: 0 auto var(--space-lg);
	border-radius: var(--radius-full);
	overflow: hidden;
	border: 4px solid var(--color-primary-lightest);
	transition: border-color var(--transition-base);
}

.team-card:hover .team-card__image {
	border-color: var(--color-primary);
}

.team-card__photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.team-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--color-off-white);
	color: var(--color-medium-gray);
}

.team-card__info {
	padding: 0;
}

.team-card__name {
	font-family: var(--font-headings);
	font-size: var(--font-size-lg);
	color: var(--color-black);
	margin-bottom: var(--space-xs);
}

.team-card__position {
	font-size: var(--font-size-sm);
	color: var(--color-primary);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: var(--letter-spacing-wide);
	margin-bottom: var(--space-md);
}

.team-card__bio {
	font-size: var(--font-size-sm);
	color: var(--color-secondary);
	line-height: 1.6;
}

/* --- Sponsors Section --- */
.sponsors-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: var(--space-2xl);
	align-items: center;
}

.sponsor-card {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-xl);
	background: var(--color-white);
	border: 1px solid var(--color-light-gray);
	border-radius: var(--radius-lg);
	transition: all var(--transition-base);
	min-height: 100px;
}

.sponsor-card:hover {
	box-shadow: var(--shadow-lg);
	border-color: var(--color-primary-lightest);
}

.sponsor-card__link {
	display: block;
}

.sponsor-card__logo {
	max-height: 60px;
	width: auto;
	object-fit: contain;
	filter: grayscale(100%);
	opacity: 0.7;
	transition: all var(--transition-base);
}

.sponsor-card:hover .sponsor-card__logo {
	filter: grayscale(0%);
	opacity: 1;
}

.sponsor-card__placeholder {
	text-align: center;
}

.sponsor-card__name {
	font-family: var(--font-headings);
	font-size: var(--font-size-sm);
	font-weight: 600;
	color: var(--color-secondary);
}

/* --- CTA Section --- */
.cta-section {
	background: linear-gradient(135deg, #0033a0 0%, #0077c8 100%);
	position: relative;
	overflow: hidden;
}

.cta-section::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 500px;
	height: 500px;
	background: rgba(255, 255, 255, 0.03);
	border-radius: var(--radius-full);
}

.cta-content {
	position: relative;
	z-index: 1;
}

.cta-title {
	font-family: var(--font-headings);
	font-size: clamp(2rem, 4vw, 3rem);
	color: var(--color-white);
	margin-bottom: var(--space-lg);
}

.cta-description {
	font-size: var(--font-size-lg);
	color: rgba(255, 255, 255, 0.85);
	max-width: 600px;
	margin: 0 auto var(--space-2xl);
	line-height: 1.7;
}

.cta-actions {
	display: flex;
	justify-content: center;
	gap: var(--space-md);
}

/* --- Back to Top Button --- */
.back-to-top {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--color-primary);
	color: var(--color-white);
	border: none;
	border-radius: var(--radius-full);
	box-shadow: var(--shadow-lg);
	cursor: pointer;
	transition: all var(--transition-base);
	z-index: var(--z-index-fixed);
}

.back-to-top:hover {
	background: var(--color-primary-dark);
	transform: translateY(-3px);
	box-shadow: var(--shadow-xl);
}

/* --- Search Modal --- */
.search-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.8);
	z-index: var(--z-index-modal);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: all var(--transition-slow);
}

.search-modal[aria-hidden="false"] {
	opacity: 1;
	visibility: visible;
}

.search-modal-inner {
	width: 90%;
	max-width: 600px;
	position: relative;
}

.search-modal-close {
	position: absolute;
	top: -3rem;
	right: 0;
	color: var(--color-white);
	cursor: pointer;
	background: none;
	border: none;
	padding: 0.5rem;
}

.search-modal-content .search-form {
	display: flex;
	gap: 0;
}

.search-modal-content .search-field {
	flex: 1;
	padding: 1rem 1.5rem;
	font-size: var(--font-size-lg);
	border: none;
	border-radius: var(--radius-md) 0 0 var(--radius-md);
	outline: none;
}

.search-modal-content .search-submit {
	padding: 1rem 1.5rem;
	background: var(--color-primary);
	color: var(--color-white);
	border: none;
	border-radius: 0 var(--radius-md) var(--radius-md) 0;
	font-weight: 600;
	cursor: pointer;
	transition: background var(--transition-base);
}

.search-modal-content .search-submit:hover {
	background: var(--color-primary-dark);
}

/* --- Announcement Bar --- */
.announcement-bar {
	background: var(--color-accent);
	color: var(--color-black);
	padding: var(--space-sm) 0;
	font-size: var(--font-size-sm);
	text-align: center;
}

.announcement-bar .container {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-md);
}

.announcement-bar-close {
	background: none;
	border: none;
	color: inherit;
	cursor: pointer;
	padding: var(--space-xs);
	opacity: 0.7;
	transition: opacity var(--transition-base);
}

.announcement-bar-close:hover {
	opacity: 1;
}

/* --- WordPress Core Overrides --- */
.entry-content {
	max-width: var(--container-xl);
	margin: 0 auto;
	padding: var(--space-3xl) var(--space-lg);
}

.page-header {
	background: linear-gradient(135deg, #0033a0 0%, #0077c8 100%);
	color: var(--color-white);
	padding: var(--space-4xl) 0;
	text-align: center;
}

.page-header .page-title {
	font-family: var(--font-headings);
	color: var(--color-white);
	margin-bottom: 0;
}

/* WordPress Alignments */
.alignwide {
	max-width: var(--container-2xl);
	margin-left: auto;
	margin-right: auto;
}

.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(-50vw + 50%);
}

/* WordPress Pagination */
.pagination,
.post-navigation {
	margin: var(--space-3xl) 0;
}

.pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: var(--space-sm);
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--radius-md);
	background: var(--color-white);
	color: var(--color-dark-gray);
	border: 1px solid var(--color-light-gray);
	text-decoration: none;
	font-weight: 600;
	transition: all var(--transition-base);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
	background: var(--color-primary);
	color: var(--color-white);
	border-color: var(--color-primary);
}

/* ========================================
   7. ANIMATIONS
   ======================================== */

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Text Colors */
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-white { color: var(--color-white); }
.text-black { color: var(--color-black); }
.text-gray { color: var(--color-medium-gray); }

/* Background Colors */
.bg-white { background-color: var(--color-white); }
.bg-light { background-color: var(--color-off-white); }
.bg-primary { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-dark { background-color: var(--color-dark-gray); }

/* Display */
.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* Visibility */
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* Screen Reader Only */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

.screen-reader-text:focus {
	position: static;
	width: auto;
	height: auto;
	margin: 0;
	overflow: visible;
	clip: auto;
	white-space: normal;
}


/* Skip Link */
.skip-link {
	position: absolute;
	top: -40px;
	left: 0;
	padding: var(--space-md) var(--space-lg);
	background-color: var(--color-primary);
	color: var(--color-white);
	text-decoration: none;
	z-index: 100000;
}

.skip-link:focus {
	top: 0;
}

/* Spacing Utilities */
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.p-0 { padding: 0; }
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

/* Border Radius */
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadow */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* ========================================
   7. ANIMATIONS
   ======================================== */

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}


@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideInLeft {
	from {
		opacity: 0;
		transform: translateX(-30px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes slideInRight {
	from {
		opacity: 0;
		transform: translateX(30px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes scaleIn {
	from {
		opacity: 0;
		transform: scale(0.9);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

/* Animation Classes */
.animate-fade-in {
	animation: fadeIn 0.6s ease-out;
}

.animate-fade-in-up {
	animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-down {
	animation: fadeInDown 0.6s ease-out;
}

.animation-delay-1 { animation-delay: 0.1s; }
.animation-delay-2 { animation-delay: 0.2s; }
.animation-delay-3 { animation-delay: 0.3s; }
.animation-delay-4 { animation-delay: 0.4s; }


/* ========================================
   8. DARK MODE
   ======================================== */

@media (prefers-color-scheme: dark) {
	:root {
		--color-white: #1A1A1A;
		--color-off-white: #2C2C2C;
		--color-light-gray: #3D3D3D;
		--color-dark-gray: #E8EBED;
		--color-black: #FFFFFF;
	}
	
	body {
		background-color: #1A1A1A;
		color: #E8EBED;
	}
	
	.card {
		background-color: #2C2C2C;
	}
}

[data-theme="dark"] {
	--color-white: #1A1A1A;
	--color-off-white: #2C2C2C;
	--color-light-gray: #3D3D3D;
	--color-dark-gray: #E8EBED;
	--color-black: #FFFFFF;
}

[data-theme="dark"] body {
	background-color: #1A1A1A;
	color: #E8EBED;
}

[data-theme="dark"] .card {
	background-color: #2C2C2C;
}

/* ========================================
   9. RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
	:root {
		--space-4xl: 4rem;
		--space-5xl: 6rem;
		--space-6xl: 8rem;
	}
	
	.container {
		padding-left: var(--space-md);
		padding-right: var(--space-md);
	}
}

@media (max-width: 768px) {
	:root {
		--font-size-6xl: 3rem;
		--font-size-5xl: 2.5rem;
		--font-size-4xl: 2rem;
	}
}


@media (max-width: 640px) {
	.container {
		padding-left: var(--space-sm);
		padding-right: var(--space-sm);
	}
	
	.btn {
		width: 100%;
	}
}

/* ========================================
   10. PRINT STYLES
   ======================================== */

@media print {
	*,
	*::before,
	*::after {
		background: transparent !important;
		color: #000 !important;
		box-shadow: none !important;
		text-shadow: none !important;
	}

	a,
	a:visited {
		text-decoration: underline;
	}

	a[href]::after {
		content: " (" attr(href) ")";
	}

	abbr[title]::after {
		content: " (" attr(title) ")";
	}

	pre {
		white-space: pre-wrap !important;
	}

	pre,
	blockquote {
		border: 1px solid #999;
		page-break-inside: avoid;
	}

	thead {
		display: table-header-group;
	}

	tr,
	img {
		page-break-inside: avoid;
	}

	p,
	h2,
	h3 {
		orphans: 3;
		widows: 3;
	}

	h2,
	h3 {
		page-break-after: avoid;
	}

	.site-header,
	.site-footer,
	.sidebar,
	.skip-link {
		display: none;
	}
}
