/* ============================================================
   School Website CMS — Main Stylesheet
   ============================================================ */

/* --- CSS Variables / Themes --- */
:root {
  --primary: #1a56a6;
  --primary-dark: #0d3d7a;
  --primary-light: #4a90d9;
  --secondary: #f39c12;
  --accent: #e74c3c;
  --success: #2ecc71;
  --text: #1a1a2e;
  --text-light: #555;
  --text-muted: #999;
  --bg: #fff;
  --bg-light: #f5f7fa;
  --bg-card: #fff;
  --border: #e0e0e0;
  --shadow: 0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.12);
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --taskbar-h: 52px;
  --transition: all .25s ease;
}

[data-theme="dark"] {
  --primary: #4a90d9;
  --primary-dark: #2271c4;
  --text: #e8eaf6;
  --text-light: #b0bec5;
  --text-muted: #78909c;
  --bg: #0f1117;
  --bg-light: #1a1d27;
  --bg-card: #1e2130;
  --border: #2d3148;
}

[data-theme="school-blue"] {
  --primary: #1565c0;
  --primary-dark: #0d47a1;
  --secondary: #ffd600;
  --bg-light: #e3f2fd;
}

[data-theme="nature-green"] {
  --primary: #2e7d32;
  --primary-dark: #1b5e20;
  --secondary: #f9a825;
  --bg-light: #e8f5e9;
}

[data-theme="purple"] {
  --primary: #6a1b9a;
  --primary-dark: #4a148c;
  --secondary: #f57f17;
  --bg-light: #f3e5f5;
}

[data-theme="midnight"] {
  --primary: #64b5f6;
  --primary-dark: #42a5f5;
  --text: #e0e6ff;
  --text-light: #9fa8da;
  --bg: #0a0a1a;
  --bg-light: #0f1030;
  --bg-card: #12153a;
  --border: #1a1f4a;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  padding-bottom: calc(var(--taskbar-h) + 20px);
  line-height: 1.6;
  transition: background .3s, color .3s;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* --- Typography --- */
h1,h2,h3,h4,h5 { font-family: var(--font-heading); color: var(--text); line-height: 1.25; }
h1 { font-size: clamp(1.8rem,4vw,3rem); }
h2 { font-size: clamp(1.4rem,3vw,2.2rem); }
h3 { font-size: 1.25rem; }

/* --- Utilities --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section.bg-light { background: var(--bg-light); }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { margin-bottom: 12px; }
.section-label { display: inline-block; background: var(--primary); color: #fff; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 4px 14px; border-radius: 20px; margin-bottom: 12px; }
.section-cta { text-align: center; margin-top: 40px; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-family: var(--font); font-size: .95rem; font-weight: 600;
  border: 2px solid transparent; cursor: pointer;
  transition: var(--transition); text-decoration: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: .85rem; }
.btn-full { width: 100%; justify-content: center; }

/* --- Topbar --- */
.topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.85);
  font-size: .78rem;
  padding: 6px 0;
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.topbar-right { margin-left: auto; display: flex; gap: 10px; }
.btn-topbar {
  color: rgba(255,255,255,.9); background: rgba(255,255,255,.12);
  padding: 3px 10px; border-radius: 4px; font-size: .78rem;
  transition: background .2s;
}
.btn-topbar:hover { background: rgba(255,255,255,.25); text-decoration: none; }

/* --- Site Header --- */
.site-header {
  background: var(--bg-card);
  border-bottom: 2px solid var(--border);
  position: sticky; top: 0; z-index: 900;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.school-logo { width: 52px; height: 52px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--primary); line-height: 1.2; }
.brand-motto { font-size: .72rem; color: var(--text-muted); }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a {
  padding: 8px 14px; border-radius: var(--radius-sm);
  color: var(--text); font-weight: 500; font-size: .9rem;
  transition: var(--transition);
}
.main-nav a:hover, .main-nav a.active {
  background: var(--primary); color: #fff; text-decoration: none;
}
.mobile-toggle {
  display: none; background: none; border: none; font-size: 1.5rem;
  cursor: pointer; color: var(--text); margin-left: auto;
}

/* Nav dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown .dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; z-index: 999;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  min-width: 200px; padding: 8px 0;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.nav-dropdown .dropdown-menu a {
  display: block; padding: 8px 16px; color: var(--text);
  font-size: .88rem; border-radius: 0;
}
.nav-dropdown .dropdown-menu a:hover { background: var(--bg-light); color: var(--primary); }

/* --- Hero --- */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  min-height: 92vh; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  background-size: cover; background-position: center; background-attachment: fixed;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.7) 100%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center; padding: 60px 20px 40px;
  max-width: 900px;
}
.hero-logo { width: 100px; height: 100px; object-fit: contain; margin: 0 auto 24px; border-radius: 50%; background: rgba(255,255,255,.15); padding: 8px; }
.hero-title { font-size: clamp(2rem,5vw,4rem); color: #fff; margin-bottom: 12px; text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.hero-motto { font-size: clamp(1rem,2vw,1.4rem); color: rgba(255,255,255,.85); font-style: italic; margin-bottom: 12px; }
.hero-desc { font-size: 1.05rem; color: rgba(255,255,255,.75); margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  position: relative; z-index: 2; display: flex;
  background: rgba(0,0,0,.4); backdrop-filter: blur(10px);
}
.hero-stat {
  flex: 1; padding: 20px; text-align: center;
  color: #fff; border-right: 1px solid rgba(255,255,255,.1);
}
.hero-stat:last-child { border-right: none; }
.stat-num { display: block; font-size: 2rem; font-weight: 800; color: var(--secondary); }

/* --- Page Hero --- */
.page-hero {
  padding: 80px 20px; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,.85); font-size: 1.1rem; }
.page-hero-sm { padding: 50px 20px; }
.page-hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); z-index: 0; }
.club-hero { background-size: cover; background-position: center; }
.club-hero .container { position: relative; z-index: 1; }

/* --- Section Grid --- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.section-grid { display: grid; }

/* --- About Section --- */
.about-text h2 { margin-bottom: 16px; }
.about-text p { color: var(--text-light); margin-bottom: 24px; }
.about-values { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.value-item { display: flex; align-items: center; gap: 8px; background: var(--bg-light); padding: 8px 14px; border-radius: 20px; font-weight: 500; font-size: .9rem; }
.about-image-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about-img, .about-img-placeholder { border-radius: var(--radius); overflow: hidden; }
.about-img { height: 200px; object-fit: cover; width: 100%; }
.about-img-1 { grid-column: span 2; height: 250px; }
.about-img-placeholder { background: var(--bg-light); height: 200px; }
.about-img-placeholder.about-img-1 { height: 250px; }

/* --- Clubs Grid --- */
.clubs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.club-card {
  background: var(--bg-card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); transition: var(--transition); text-decoration: none;
  display: flex; flex-direction: column;
}
.club-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.club-card-img { height: 160px; background: var(--bg-light); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.club-card-img img { width: 100%; height: 100%; object-fit: cover; }
.club-img-placeholder { width: 60px; height: 60px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; }
.club-card-body { padding: 20px; flex: 1; }
.club-card-body h3 { margin-bottom: 6px; font-size: 1rem; color: var(--text); }
.club-card-body p { font-size: .85rem; color: var(--text-muted); }
.club-card-body small { display: block; margin-top: 8px; color: var(--primary); font-size: .8rem; }

/* --- Clubs Full Grid --- */
.clubs-full-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.club-full-card {
  display: flex; flex-direction: column; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border); background: var(--bg-card);
  transition: var(--transition); text-decoration: none; color: var(--text);
}
.club-full-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); text-decoration: none; }
.club-full-img { height: 200px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.club-full-img img { width: 100%; height: 100%; object-fit: cover; }
.club-placeholder-icon { font-size: 3rem; font-weight: 800; color: rgba(255,255,255,.8); }
.club-full-body { padding: 24px; flex: 1; }
.club-full-body h2 { font-size: 1.3rem; margin-bottom: 10px; }
.club-full-body p { color: var(--text-light); font-size: .9rem; margin-bottom: 12px; }
.club-patron { color: var(--primary); font-size: .85rem; margin-bottom: 16px; }
.btn-sm { padding: 8px 18px; font-size: .85rem; border-radius: 6px; background: var(--primary); color: #fff; display: inline-block; }

/* --- Club Show Layout --- */
.club-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; }
.club-description { background: var(--bg-card); border-radius: var(--radius); padding: 32px; border: 1px solid var(--border); margin-bottom: 24px; }
.club-description h2 { margin-bottom: 16px; }
.club-posts h2 { margin-bottom: 20px; }
.club-post-card { background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; margin-bottom: 20px; }
.post-img { width: 100%; max-height: 300px; object-fit: cover; }
.post-body { padding: 24px; }
.post-body h3 { margin-bottom: 8px; }
.post-meta { color: var(--text-muted); font-size: .85rem; margin-bottom: 12px; }
.post-content { color: var(--text-light); line-height: 1.7; }
.club-sidebar {}
.sidebar-card { background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); padding: 20px; margin-bottom: 16px; }
.sidebar-card h3 { font-size: 1rem; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.info-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .88rem; }
.info-item:last-child { border-bottom: none; }
.other-club-link { display: block; padding: 6px 0; color: var(--primary); font-size: .88rem; border-bottom: 1px solid var(--border); }
.btn-full { width: 100%; text-align: center; justify-content: center; }

/* --- Gallery --- */
.album-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.album-btn {
  padding: 8px 20px; border-radius: 20px; font-size: .88rem;
  border: 1px solid var(--border); background: var(--bg-card); cursor: pointer;
  transition: var(--transition); font-weight: 500; text-decoration: none; color: var(--text);
}
.album-btn.active, .album-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); text-decoration: none; }
.gallery-masonry {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.gallery-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); opacity: 0; transition: .3s; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; font-size: .85rem; padding: 16px; text-align: center; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { font-weight: 600; }
.gallery-overlay small { margin-top: 4px; opacity: .8; }

/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 9999; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox-inner { position: relative; max-width: 90vw; max-height: 90vh; text-align: center; }
.lightbox-inner img { max-width: 90vw; max-height: 80vh; border-radius: var(--radius); }
.lightbox-inner p { color: rgba(255,255,255,.8); margin-top: 12px; }
.lightbox-close { position: absolute; top: -16px; right: -16px; background: rgba(255,255,255,.15); border: none; color: #fff; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1rem; }

/* --- News --- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.news-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: var(--transition); }
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.news-card-img { height: 200px; overflow: hidden; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-body { padding: 20px; }
.news-meta { font-size: .78rem; color: var(--text-muted); margin-bottom: 8px; }
.news-card-body h3 { margin-bottom: 8px; font-size: 1rem; }
.news-card-body h3 a { color: var(--text); }
.news-card-body h3 a:hover { color: var(--primary); text-decoration: none; }
.news-card-body p { font-size: .88rem; color: var(--text-light); margin-bottom: 12px; }
.read-more { color: var(--primary); font-size: .88rem; font-weight: 600; }

/* News full list */
.news-full-grid { display: grid; gap: 28px; }
.news-full-card { display: grid; grid-template-columns: 300px 1fr; gap: 24px; background: var(--bg-card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.nfc-img { height: 200px; overflow: hidden; }
.nfc-img img { width: 100%; height: 100%; object-fit: cover; }
.nfc-body { padding: 24px; }
.nfc-body h2 { font-size: 1.3rem; margin-bottom: 8px; }
.nfc-body h2 a { color: var(--text); }

/* Article */
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; }
.article-hero-img { width: 100%; border-radius: var(--radius); margin-bottom: 28px; }
.article-content { line-height: 1.85; color: var(--text-light); }
.article-content br { line-height: 3; }
.article-footer { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); }
.related-link { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); }
.related-link strong { display: block; color: var(--text); font-size: .9rem; }
.related-link small { color: var(--text-muted); font-size: .8rem; }
.event-mini { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .88rem; }
.em-date { font-weight: 700; color: var(--primary); min-width: 45px; }

/* --- Events --- */
.events-list { display: grid; gap: 16px; }
.event-item {
  display: flex; gap: 20px; align-items: center;
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 20px; transition: var(--transition);
}
.event-item:hover { box-shadow: var(--shadow); }
.event-date-box { text-align: center; min-width: 60px; }
.event-day { display: block; font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.event-month { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); }
.event-details { flex: 1; }
.event-details h3 { margin-bottom: 4px; }
.event-thumb { width: 80px; height: 60px; object-fit: cover; border-radius: 8px; }

.events-full-list { display: grid; gap: 20px; }
.event-full-card {
  display: flex; gap: 24px; background: var(--bg-card);
  border-radius: var(--radius); border: 1px solid var(--border);
  padding: 24px; transition: var(--transition);
}
.event-full-card.past { opacity: .7; }
.event-full-card:hover { box-shadow: var(--shadow); }
.efc-date { text-align: center; min-width: 70px; }
.efc-day { display: block; font-size: 2.5rem; font-weight: 800; color: var(--primary); line-height: 1; }
.efc-month { display: block; font-size: .85rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); }
.efc-year { display: block; font-size: .75rem; color: var(--text-muted); }
.efc-body { flex: 1; }
.efc-body h2 { margin-bottom: 8px; font-size: 1.3rem; }
.efc-img { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; }
.badge-upcoming { background: #e8f5e9; color: #2e7d32; padding: 2px 8px; border-radius: 10px; font-size: .72rem; font-weight: 600; display: inline-block; margin-top: 6px; }
.badge-past { background: var(--bg-light); color: var(--text-muted); padding: 2px 8px; border-radius: 10px; font-size: .72rem; display: inline-block; margin-top: 6px; }

/* --- About page --- */
.about-section { display: flex; gap: 28px; background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); padding: 32px; margin-bottom: 28px; }
.about-icon { font-size: 2.5rem; min-width: 60px; }
.about-content { flex: 1; }
.about-content h2 { margin-bottom: 12px; }
.vision-box { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding: 24px 28px; border-radius: var(--radius-sm); font-size: 1.1rem; font-style: italic; }
.mission-list { list-style: disc; padding-left: 20px; color: var(--text-light); }
.mission-list li { padding: 4px 0; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 16px; }
.value-card { background: var(--bg-light); border-radius: var(--radius-sm); padding: 20px; text-align: center; border: 1px solid var(--border); }
.vc-icon { font-size: 2rem; margin-bottom: 8px; }
.value-card h3 { font-size: .95rem; margin-bottom: 4px; }
.value-card p { font-size: .82rem; color: var(--text-muted); }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.admin-card { background: var(--bg-light); border-radius: var(--radius-sm); padding: 20px; text-align: center; border: 1px solid var(--border); }
.admin-avatar { font-size: 2.5rem; margin-bottom: 10px; }
.admin-card h3 { font-size: .9rem; margin-bottom: 4px; }
.admin-card p { font-size: .8rem; color: var(--text-muted); }

/* --- Student Life Tabs --- */
.tab-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; border-bottom: 2px solid var(--border); padding-bottom: 0; }
.tab-btn {
  padding: 10px 22px; background: none; border: none; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  cursor: pointer; font-family: var(--font); font-size: .9rem; font-weight: 600;
  color: var(--text-muted); transition: var(--transition); margin-bottom: -2px; border-bottom: 2px solid transparent;
}
.tab-btn.active, .tab-btn:hover { color: var(--primary); border-bottom-color: var(--primary); background: var(--bg-light); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-content h2 { margin-bottom: 16px; }
.leadership-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 20px; }
.leader-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; }
.leader-icon { font-size: 2.5rem; margin-bottom: 10px; }
.leader-card h3 { font-size: .95rem; margin-bottom: 6px; }
.sports-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px; margin-top: 20px; }
.sport-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 16px; text-align: center; transition: var(--transition); }
.sport-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.sport-icon { display: block; font-size: 2.5rem; margin-bottom: 10px; }
.guidance-features { display: grid; gap: 16px; margin-top: 16px; }
.guidance-item { display: flex; gap: 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.gi-icon { font-size: 2rem; min-width: 50px; }
.guidance-contact { background: var(--primary); color: #fff; border-radius: var(--radius); padding: 16px 20px; margin-top: 16px; }
.activities-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 16px; }
.activity-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 18px; font-weight: 500; }

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: 1fr 400px; gap: 48px; }
.contact-form-wrap h2 { margin-bottom: 24px; }
.contact-form .form-group { margin-bottom: 16px; }
.contact-form label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: .95rem; transition: border .2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); }
.contact-items { display: grid; gap: 16px; margin-bottom: 24px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.ci-icon { font-size: 1.5rem; min-width: 40px; text-align: center; }
.contact-item strong { display: block; margin-bottom: 2px; }
.contact-item p, .contact-item a { color: var(--text-light); font-size: .9rem; }
.map-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.map-placeholder { background: var(--bg-light); border-radius: var(--radius-sm); padding: 40px; text-align: center; color: var(--text-muted); margin-top: 12px; }

/* Form styles */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: .9rem; transition: border .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary); }
.req { color: var(--accent); }

/* --- Alert --- */
.alert { padding: 12px 20px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 500; }
.alert-success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #2e7d32; }
.alert-error { background: #fce4ec; color: #c62828; border-left: 4px solid #c62828; }

/* --- Search --- */
.hero-search-form { display: flex; gap: 10px; max-width: 600px; margin: 20px auto 0; }
.hero-search-input { flex: 1; padding: 12px 18px; border-radius: var(--radius-sm); border: none; font-size: 1rem; }
.search-section { margin-bottom: 32px; }
.search-section h3 { margin-bottom: 12px; font-size: 1rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.search-result { padding: 12px 0; border-bottom: 1px solid var(--border); }
.search-result a { font-weight: 600; }
.search-result p { font-size: .88rem; color: var(--text-muted); margin-top: 2px; }

/* --- Docs --- */
.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; }
.docs-nav { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; height: fit-content; position: sticky; top: 80px; }
.docs-nav h3 { font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 12px; }
.docs-nav-link { display: block; padding: 8px 12px; color: var(--text-light); font-size: .9rem; border-radius: var(--radius-sm); margin-bottom: 2px; transition: var(--transition); }
.docs-nav-link:hover, .docs-nav-link.active { background: var(--primary); color: #fff; text-decoration: none; }
.docs-content h2 { margin-bottom: 20px; }
.docs-content h3 { margin: 24px 0 10px; }
.docs-content p { color: var(--text-light); margin-bottom: 12px; }
.docs-content ul { list-style: disc; padding-left: 20px; color: var(--text-light); }
.docs-content li { padding: 4px 0; }

/* --- Error --- */
.error-page { max-width: 500px; margin: 0 auto; }
.error-code { font-size: 8rem; font-weight: 900; color: var(--primary); opacity: .2; line-height: 1; }
.error-page h2 { margin-bottom: 12px; }
.error-page p { color: var(--text-muted); margin-bottom: 24px; }

/* --- Empty State --- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-icon { font-size: 3.5rem; margin-bottom: 12px; }
.empty-state h3 { margin-bottom: 8px; color: var(--text-light); }

/* ===== WINDOWS 8.1 TASKBAR ===== */
.win-taskbar {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--taskbar-h); background: rgba(15, 20, 40, .92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; align-items: center; gap: 12px;
  padding: 0 12px; z-index: 1000;
  border-top: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 -4px 20px rgba(0,0,0,.3);
}
.win-launcher {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none; color: #fff; font-size: 1.4rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.win-launcher:hover { transform: scale(1.08); box-shadow: 0 4px 16px rgba(var(--primary),.5); }
.win-search {
  display: flex; align-items: center; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius-sm);
  overflow: hidden; max-width: 280px; flex: 1;
}
.win-search input {
  background: none; border: none; padding: 8px 12px; color: #fff;
  font-family: var(--font); font-size: .85rem; flex: 1; outline: none; width: 0;
}
.win-search input::placeholder { color: rgba(255,255,255,.5); }
.win-search button {
  background: none; border: none; color: rgba(255,255,255,.7);
  padding: 8px 12px; cursor: pointer; font-size: .9rem;
}
.win-quicknav { display: flex; gap: 4px; margin-left: 4px; }
.win-quicknav a {
  color: rgba(255,255,255,.75); font-size: .78rem; padding: 6px 12px;
  border-radius: 4px; transition: background .2s;
}
.win-quicknav a:hover { background: rgba(255,255,255,.12); text-decoration: none; color: #fff; }
.win-clock { margin-left: auto; color: rgba(255,255,255,.8); font-size: .8rem; text-align: right; line-height: 1.4; }

/* ===== SIDE NAVIGATION ===== */
.nav-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 1001;
}
.nav-overlay.open { display: block; }
.side-nav {
  position: fixed; left: -340px; top: 0; bottom: 0; width: 320px;
  background: var(--bg-card); z-index: 1002; transition: left .3s ease;
  display: flex; flex-direction: column; box-shadow: 4px 0 40px rgba(0,0,0,.2);
  border-right: 1px solid var(--border);
}
.side-nav.open { left: 0; }
.side-nav-header {
  display: flex; align-items: center; gap: 12px; padding: 20px;
  border-bottom: 1px solid var(--border); background: var(--primary);
  color: #fff;
}
.side-logo { width: 44px; height: 44px; object-fit: contain; border-radius: 50%; background: rgba(255,255,255,.15); padding: 4px; }
.side-nav-header strong { display: block; font-size: .95rem; }
.side-nav-header small { font-size: .78rem; opacity: .8; }
.side-nav-close { margin-left: auto; background: rgba(255,255,255,.15); border: none; color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: .9rem; }
.side-nav-links { flex: 1; padding: 16px; overflow-y: auto; }
.side-nav-links a {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-radius: var(--radius-sm); color: var(--text); font-weight: 500;
  transition: var(--transition); margin-bottom: 2px;
}
.side-nav-links a:hover, .side-nav-links a.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; text-decoration: none;
}
.nav-icon { font-size: 1.1rem; }
.side-nav-footer { padding: 16px; border-top: 1px solid var(--border); display: flex; gap: 10px; }
.side-nav-footer a { color: var(--text-light); font-size: .85rem; padding: 6px 12px; border-radius: 4px; border: 1px solid var(--border); }

/* ===== ASSISTANT ===== */
.assistant-btn {
  position: fixed; right: -4px; top: 50%; transform: translateY(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none; color: #fff; padding: 14px 10px; border-radius: 12px 0 0 12px;
  cursor: pointer; z-index: 999; display: flex; flex-direction: column;
  align-items: center; gap: 4px; box-shadow: -4px 0 20px rgba(0,0,0,.2);
  transition: var(--transition);
}
.assistant-btn:hover { right: 0; }
.assistant-btn span:first-child { font-size: 1.3rem; }
.assistant-label { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; writing-mode: vertical-rl; }
.assistant-panel {
  position: fixed; right: -400px; top: 50%; transform: translateY(-50%);
  width: 360px; background: var(--bg-card); border-radius: var(--radius) 0 0 var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  z-index: 1003; transition: right .3s ease; max-height: 80vh;
  display: flex; flex-direction: column; overflow: hidden;
}
.assistant-panel.open { right: 0; }
.assistant-header {
  display: flex; align-items: center; gap: 12px; padding: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}
.assistant-avatar { width: 40px; height: 40px; background: rgba(255,255,255,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.assistant-header strong { display: block; font-size: .95rem; }
.assistant-header small { font-size: .78rem; opacity: .8; }
.assistant-close { margin-left: auto; background: rgba(255,255,255,.2); border: none; color: #fff; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; }
.assistant-body { padding: 16px; overflow-y: auto; flex: 1; }
.assistant-welcome { font-size: .9rem; color: var(--text-light); margin-bottom: 16px; padding: 12px; background: var(--bg-light); border-radius: var(--radius-sm); }
.assistant-options { display: grid; gap: 8px; }
.assistant-opt {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; font-family: var(--font); font-size: .88rem; font-weight: 500;
  color: var(--text); transition: var(--transition); text-decoration: none;
}
.assistant-opt:hover { background: var(--primary); color: #fff; border-color: var(--primary); text-decoration: none; }
.theme-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.theme-btn {
  padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-light); cursor: pointer; font-size: .82rem; font-family: var(--font);
  font-weight: 500; color: var(--text); transition: var(--transition);
}
.theme-btn:hover { border-color: var(--primary); color: var(--primary); }
.theme-back { background: none; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 16px; cursor: pointer; font-family: var(--font); font-size: .85rem; color: var(--text-muted); width: 100%; margin-top: 8px; }
.access-panel label { display: block; margin-bottom: 10px; font-size: .9rem; cursor: pointer; }
.tour-panel {}
#tourContent { padding: 12px; background: var(--bg-light); border-radius: var(--radius-sm); margin-bottom: 12px; font-size: .88rem; line-height: 1.6; }
.tour-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tour-controls button { padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); cursor: pointer; font-family: var(--font); font-size: .85rem; }

/* --- Footer --- */
.site-footer { background: var(--text); color: rgba(255,255,255,.8); margin-bottom: var(--taskbar-h); }
.footer-grid { max-width: 1200px; margin: 0 auto; padding: 60px 20px 40px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand .footer-logo { width: 60px; height: 60px; object-fit: contain; border-radius: 50%; background: rgba(255,255,255,.1); padding: 4px; margin-bottom: 12px; }
.footer-brand h3 { color: #fff; font-size: 1.1rem; margin-bottom: 6px; }
.footer-brand p { font-size: .88rem; opacity: .7; }
.footer-desc { margin-top: 10px; font-size: .82rem; line-height: 1.6; }
.footer-links h4, .footer-clubs h4, .footer-contact h4 { color: #fff; font-size: .9rem; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .08em; }
.footer-links ul li a, .footer-clubs ul li a { color: rgba(255,255,255,.65); font-size: .88rem; display: block; padding: 3px 0; transition: color .2s; }
.footer-links ul li a:hover, .footer-clubs ul li a:hover { color: #fff; text-decoration: none; }
.footer-contact p, .footer-contact a { color: rgba(255,255,255,.65); font-size: .88rem; margin-bottom: 8px; display: block; }
.footer-contact a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); text-align: center; padding: 20px; font-size: .82rem; opacity: .6; }
.footer-credit { margin-top: 6px; opacity: .5; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideUp { from { opacity:0; transform: translateY(30px) } to { opacity:1; transform: translateY(0) } }
.animate-fadeIn { animation: fadeIn .8s ease forwards; }
.animate-slideUp { animation: slideUp .6s ease forwards; animation-delay: .2s; opacity: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .mobile-toggle { display: flex; }
  .main-nav.mobile-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-card); padding: 16px; border-top: 1px solid var(--border); z-index: 900; box-shadow: var(--shadow); }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .news-full-card { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .club-layout { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .section { padding: 50px 0; }
  .hero-bg { min-height: 70vh; }
  .hero-stats { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .win-quicknav { display: none; }
  .tab-nav { gap: 4px; }
  .tab-btn { padding: 8px 12px; font-size: .82rem; }
  .assistant-panel { width: 100%; border-radius: var(--radius) var(--radius) 0 0; top: auto; bottom: var(--taskbar-h); transform: none; right: auto; left: 0; }
  .assistant-panel.open { right: auto; }
}
