/* =========================================================
   Mzansi Varsity Finder — Professional Stylesheet
   ========================================================= */

:root {
  --primary: #0a2540;
  --primary-light: #1565c0;
  --primary-dark: #051624;
  --secondary: #00a86b;
  --secondary-light: #00c47a;
  --accent: #f59e0b;
  --danger: #dc2626;
  --text: #1e293b;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --bg: #f8fafc;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow: 0 4px 20px rgba(2, 8, 20, 0.06);
  --shadow-md: 0 8px 30px rgba(2, 8, 20, 0.1);
  --shadow-lg: 0 16px 50px rgba(2, 8, 20, 0.14);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

img { max-width: 100%; height: auto; display: block; }

button { font-family: var(--font); cursor: pointer; transition: var(--transition); }

::selection { background: var(--primary-light); color: #fff; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--border-light); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* Navigation */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-container {
  max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between; height: 70px;
}

.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--primary); }
.nav-logo i { color: var(--secondary); font-size: 1.5rem; }

.nav-menu { display: flex; align-items: center; gap: 0.25rem; list-style: none; }

.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 600; color: var(--text-light);
}

.nav-link:hover, .nav-link.active { background: rgba(21,101,192,0.08); color: var(--primary-light); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--primary); border-radius: 999px; transition: var(--transition); }

/* Hero */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #0d47a1 100%);
  color: #fff; padding-top: 70px; overflow: hidden;
}

.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(0,168,107,0.12) 0%, transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(245,158,11,0.08) 0%, transparent 40%);
}

.hero .container { position: relative; z-index: 1; }

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

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px; font-size: 0.8rem; font-weight: 700; margin-bottom: 1.5rem;
}

.hero-title { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 900; line-height: 1.1; margin-bottom: 1.25rem; }

.hero-title .accent { color: var(--accent); }

.hero-subtitle { font-size: 1.15rem; opacity: 0.85; margin-bottom: 2rem; max-width: 600px; line-height: 1.8; }

.hero-search { display: flex; gap: 0.75rem; margin-bottom: 2rem; max-width: 600px; flex-wrap: wrap; }

.search-box {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: var(--radius-sm); padding: 0.5rem 0.75rem;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}

.search-box i { color: var(--text-muted); }
.search-box input { flex: 1; border: none; outline: none; font-size: 0.95rem; background: transparent; }

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-stats { display: flex; gap: 3rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 2rem; }

.hero-stat { text-align: center; }
.hero-stat .number { display: block; font-size: 2rem; font-weight: 900; color: var(--accent); }
.hero-stat .label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.7; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm); font-size: 0.92rem; font-weight: 700;
  border: 2px solid transparent; text-decoration: none; white-space: nowrap;
}

.btn-primary { background: var(--secondary); color: #fff; box-shadow: 0 4px 15px rgba(0,168,107,0.3); }
.btn-primary:hover { background: var(--secondary-light); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,168,107,0.35); }

.btn-secondary { background: var(--primary-light); color: #fff; }
.btn-secondary:hover { background: var(--primary); transform: translateY(-2px); }

.btn-outline { background: transparent; border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.btn-outline-dark { background: transparent; border-color: var(--primary-light); color: var(--primary-light); }
.btn-outline-dark:hover { background: var(--primary-light); color: #fff; }

.btn-sm { padding: 8px 16px; font-size: 0.82rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

.btn-block { width: 100%; }

/* Sections */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-alt { background: var(--bg-white); }
.section-dark { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; }

.section-header { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: 0.75rem; }
.section-header p { color: var(--text-light); font-size: 1.05rem; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }

.card {
  background: var(--bg-card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow); transition: var(--transition);
  display: flex; flex-direction: column;
}

.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }

.card-image { position: relative; height: 200px; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-image img { transform: scale(1.05); }

.card-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,37,64,0.5) 0%, transparent 50%);
}

.card-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }

.card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }

.card-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.25rem; line-height: 1.3; }
.card-subtitle { font-size: 0.8rem; color: var(--primary-light); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; }

.card-meta { display: flex; gap: 1rem; font-size: 0.8rem; color: var(--text-light); margin-bottom: 0.75rem; flex-wrap: wrap; }
.card-meta span { display: flex; align-items: center; gap: 4px; }
.card-meta i { color: var(--accent); font-size: 0.75rem; }

.card-text { font-size: 0.9rem; color: var(--text-light); margin-bottom: 1rem; flex: 1; line-height: 1.6; }

.card-footer { display: flex; gap: 0.5rem; margin-top: auto; }
.card-footer .btn { flex: 1; }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px; font-size: 0.68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.05em;
}

.badge-nsfas { background: var(--secondary); color: #fff; }
.badge-private { background: var(--danger); color: #fff; }
.badge-university { background: var(--primary); color: #fff; }
.badge-university-of-technology { background: #7c3aed; color: #fff; }
.badge-tvet { background: #ea580c; color: #fff; }
.badge-private-college { background: #475569; color: #fff; }
.badge-private-university { background: #be123c; color: #fff; }
.badge-open { background: #dcfce7; color: #166534; }
.badge-limited { background: #fef9c3; color: #854d0e; }

/* Quick actions */
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }

.quick-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 1.75rem; border: 1px solid var(--border);
  cursor: pointer; transition: var(--transition); text-align: center;
}
.quick-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.quick-card .icon { width: 60px; height: 60px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; font-size: 1.5rem; color: #fff; }
.quick-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.5rem; }
.quick-card p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 1rem; line-height: 1.6; }
.quick-card .link { font-size: 0.85rem; font-weight: 700; color: var(--primary-light); display: inline-flex; align-items: center; gap: 4px; }
.quick-card:hover .link { color: var(--primary); }

/* Page hero */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff; padding: 8rem 0 4rem; margin-top: 70px; text-align: center; position: relative; overflow: hidden;
}
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 70% 20%, rgba(0,168,107,0.1), transparent 40%); }
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; margin-bottom: 0.75rem; position: relative; }
.page-hero p { color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto; position: relative; }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--text-light); margin-bottom: 1.5rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--primary-light); }
.breadcrumb a:hover { text-decoration: underline; }

/* Filters */
.filters-bar {
  background: var(--bg-card); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow);
  border: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 1.5rem;
  position: sticky; top: 80px; z-index: 100;
}

.filter-search { flex: 1.5; min-width: 220px; display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.6rem 1rem; }
.filter-search i { color: var(--text-muted); }
.filter-search input { flex: 1; border: none; outline: none; background: transparent; font-size: 0.9rem; }

.filter-group { display: flex; gap: 0.75rem; flex-wrap: wrap; flex: 1; }
.filter-group select, .filter-group input {
  padding: 0.6rem 2rem 0.6rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); font-size: 0.88rem; color: var(--text); outline: none; min-width: 150px;
  appearance: none; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 8px center; background-size: 16px;
}
.filter-group select:focus, .filter-group input:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(21,101,192,0.1); }

.results-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; font-size: 0.9rem; color: var(--text-light); flex-wrap: wrap; gap: 1rem; }
.results-info strong { color: var(--primary); }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; background: var(--bg-card); }
.table th, .table td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.table th { background: var(--primary); color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.75rem; }
.table tbody tr:hover { background: var(--bg); }
.table td a { color: var(--primary-light); font-weight: 600; }
.table td a:hover { text-decoration: underline; }

/* Status badges */
.status { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--radius-sm); font-size: 0.75rem; font-weight: 700; }
.status-open { background: #dcfce7; color: #166534; }
.status-closed { background: #fee2e2; color: #991b1b; }
.status-upcoming { background: #fef9c3; color: #854d0e; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(5,22,36,0.75); z-index: 2000;
  display: none; align-items: center; justify-content: center; padding: 1rem; backdrop-filter: blur(6px);
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--bg-card); border-radius: var(--radius-lg); max-width: 860px; width: 100%;
  max-height: 90vh; overflow-y: auto; position: relative; box-shadow: var(--shadow-lg);
}
.modal-close { position: absolute; top: 1rem; right: 1rem; background: rgba(0,0,0,0.5); color: #fff; border: none; width: 36px; height: 36px; border-radius: 50%; font-size: 1.1rem; z-index: 10; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--danger); transform: rotate(90deg); }
.modal-header { position: relative; height: 240px; }
.modal-header img { width: 100%; height: 100%; object-fit: cover; }
.modal-header-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,22,36,0.9) 0%, transparent 60%); display: flex; flex-direction: column; justify-content: flex-end; padding: 1.75rem; color: #fff; }
.modal-header-overlay h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 0.5rem; }
.modal-header-meta { display: flex; gap: 1.25rem; font-size: 0.85rem; opacity: 0.9; flex-wrap: wrap; }
.modal-body { padding: 1.75rem; }
.modal-tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 1.5rem; gap: 0; overflow-x: auto; }
.modal-tab { padding: 0.75rem 1.25rem; border: none; background: none; font-weight: 700; font-size: 0.85rem; color: var(--text-light); border-bottom: 3px solid transparent; white-space: nowrap; }
.modal-tab.active, .modal-tab:hover { color: var(--primary-light); border-bottom-color: var(--primary-light); }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn 0.3s ease; }

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

/* Info grids */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.info-item { display: flex; gap: 0.75rem; align-items: flex-start; padding: 1rem; background: var(--bg); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.info-item i { color: var(--primary-light); font-size: 1.1rem; margin-top: 2px; }
.info-item strong { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.25rem; }
.info-item span, .info-item a { font-size: 0.88rem; font-weight: 600; }
.info-item a { color: var(--primary-light); }
.info-item a:hover { text-decoration: underline; }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag { background: rgba(21,101,192,0.08); color: var(--primary-light); padding: 0.35rem 0.75rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; border: 1px solid rgba(21,101,192,0.12); }

/* APS Calculator */
.aps-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.aps-box { background: var(--bg-card); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); border: 1px solid var(--border); }
.aps-result { text-align: center; padding: 2rem; background: var(--bg); border-radius: var(--radius); margin: 1.5rem 0; border: 1px solid var(--border); }
.aps-result .score { font-size: 4rem; font-weight: 900; color: var(--primary-light); line-height: 1; }
.aps-result .label { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.5rem; }
.aps-bar { height: 12px; background: var(--border); border-radius: 999px; overflow: hidden; margin: 1rem 0; }
.aps-bar-fill { height: 100%; background: var(--secondary); transition: width 0.4s ease; }
.aps-guide { background: var(--bg-card); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); border: 1px solid var(--border); }
.aps-guide h3 { font-size: 1rem; font-weight: 800; margin-bottom: 1rem; }
.aps-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.aps-table th, .aps-table td { padding: 0.6rem; border-bottom: 1px solid var(--border); }
.aps-table th { background: var(--primary); color: #fff; text-align: left; }
.aps-table td:last-child { font-weight: 800; color: var(--primary-light); }

.subject-row { display: grid; grid-template-columns: 1fr 100px 70px auto; gap: 0.75rem; align-items: center; margin-bottom: 0.75rem; }
.subject-row select, .subject-row input { padding: 0.6rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.88rem; outline: none; }
.subject-row select:focus, .subject-row input:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(21,101,192,0.1); }
.point-display { background: var(--bg); padding: 0.6rem; border-radius: var(--radius-sm); text-align: center; font-weight: 800; color: var(--primary-light); font-size: 0.85rem; border: 1px solid var(--border); }
.remove-row { background: #fee2e2; color: var(--danger); border: none; border-radius: var(--radius-sm); padding: 0.6rem; }
.remove-row:hover { background: var(--danger); color: #fff; }

/* Course finder */
.cf-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; background: var(--bg); padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 1.5rem; }
.cf-filters label { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.4rem; display: block; }
.cf-filters input, .cf-filters select { width: 100%; padding: 0.6rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.88rem; outline: none; background: #fff; }
.cf-filters input:focus, .cf-filters select:focus { border-color: var(--primary-light); }
.cf-results { min-height: 300px; }
.cf-placeholder { text-align: center; padding: 4rem 2rem; color: var(--text-muted); }
.cf-placeholder i { font-size: 3rem; margin-bottom: 1rem; display: block; opacity: 0.3; }
.course-result { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; transition: var(--transition); }
.course-result:hover { border-color: var(--primary-light); box-shadow: var(--shadow); transform: translateY(-3px); }
.course-result h4 { font-size: 1rem; font-weight: 800; margin-bottom: 0.25rem; }
.course-result .uni { font-size: 0.8rem; color: var(--primary-light); font-weight: 700; cursor: pointer; margin-bottom: 0.75rem; display: inline-block; }
.course-result .uni:hover { text-decoration: underline; }
.course-result .meta { display: flex; gap: 0.75rem; font-size: 0.8rem; color: var(--text-light); margin-bottom: 0.75rem; flex-wrap: wrap; }
.course-result .match { font-size: 0.8rem; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.course-result .match.qualify { color: var(--secondary); }
.course-result .match.not-qualify { color: var(--danger); }

/* Toggle switch */
.toggle { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.toggle input { display: none; }
.toggle-slider { width: 44px; height: 24px; background: var(--border); border-radius: 999px; position: relative; transition: var(--transition); }
.toggle-slider::after { content: ''; position: absolute; width: 18px; height: 18px; background: #fff; border-radius: 50%; top: 3px; left: 3px; transition: var(--transition); }
.toggle input:checked + .toggle-slider { background: var(--secondary); }
.toggle input:checked + .toggle-slider::after { left: 23px; }

/* Apply page */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.step { background: var(--bg-card); border-radius: var(--radius); padding: 1.75rem; text-align: center; border: 1px solid var(--border); box-shadow: var(--shadow); transition: var(--transition); }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.step-number { width: 48px; height: 48px; background: var(--primary-light); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.1rem; margin: 0 auto 1rem; }
.step h4 { font-size: 1rem; font-weight: 800; margin-bottom: 0.5rem; }
.step p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 1rem; }

.apply-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }

/* Compare */
.compare-empty { text-align: center; padding: 5rem 2rem; }
.compare-empty i { font-size: 4rem; color: var(--border); margin-bottom: 1rem; }
.compare-actions { display: flex; justify-content: flex-end; gap: 1rem; margin-bottom: 1.5rem; }
.compare-table th:first-child, .compare-table td:first-child { background: var(--bg); font-weight: 800; color: var(--text-light); }
.compare-table img { width: 80px; height: 55px; object-fit: cover; border-radius: var(--radius-sm); }
.compare-yes { color: var(--secondary); font-weight: 700; }
.compare-no { color: var(--danger); font-weight: 700; }

/* Info / Feature sections */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.feature { background: var(--bg-card); border-radius: var(--radius); padding: 2rem; text-align: center; border: 1px solid var(--border); }
.feature .icon { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; font-size: 1.5rem; color: #fff; }
.feature h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.5rem; }
.feature p { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; }

.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split-section img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.split-section h2 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.split-section p { color: var(--text-light); margin-bottom: 1rem; line-height: 1.8; }

/* Article / Blog */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.article-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); transition: var(--transition); }
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.article-card .thumb { height: 180px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2.5rem; }
.article-card .body { padding: 1.25rem; }
.article-card .category { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--secondary); margin-bottom: 0.5rem; }
.article-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 0.5rem; line-height: 1.3; }
.article-card p { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; margin-bottom: 1rem; }
.article-card .meta { font-size: 0.75rem; color: var(--text-muted); }

.article-header { text-align: center; padding: 3rem 0; }
.article-header h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; margin-bottom: 0.75rem; }
.article-body { max-width: 800px; margin: 0 auto; font-size: 1.05rem; line-height: 1.85; color: var(--text); }
.article-body h2 { font-size: 1.5rem; font-weight: 800; margin: 2.5rem 0 1rem; color: var(--primary); }
.article-body h3 { font-size: 1.2rem; font-weight: 800; margin: 1.75rem 0 0.75rem; }
.article-body p { margin-bottom: 1.25rem; }
.article-body ul, .article-body ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body a { color: var(--primary-light); text-decoration: underline; }
.article-body a:hover { color: var(--primary); }
.article-body table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 0.75rem; font-size: 0.95rem; }
.article-body th { background: var(--bg); font-weight: 800; text-align: left; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; }
.contact-info { background: var(--primary); color: #fff; border-radius: var(--radius); padding: 2rem; }
.contact-info h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 1rem; }
.contact-info p { opacity: 0.85; margin-bottom: 1.5rem; line-height: 1.7; }
.contact-info .item { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 1rem; font-size: 0.9rem; }
.contact-info .item i { margin-top: 3px; color: var(--accent); }
.contact-form { background: var(--bg-card); border-radius: var(--radius); padding: 2rem; border: 1px solid var(--border); box-shadow: var(--shadow); }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--text-light); margin-bottom: 0.4rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.95rem; font-family: var(--font); outline: none; transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(21,101,192,0.1); }
.form-group textarea { min-height: 140px; resize: vertical; }

/* Footer */
.footer { background: var(--primary-dark); color: rgba(255,255,255,0.75); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer h3 { color: #fff; font-size: 1.1rem; font-weight: 800; margin-bottom: 1rem; display: flex; align-items: center; gap: 8px; }
.footer h4 { color: #fff; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.footer p { font-size: 0.88rem; line-height: 1.8; opacity: 0.8; margin-bottom: 1.25rem; }
.footer ul { list-style: none; }
.footer li { padding: 0.35rem 0; font-size: 0.85rem; }
.footer a { opacity: 0.8; }
.footer a:hover { opacity: 1; color: #fff; padding-left: 4px; }
.footer .social { display: flex; gap: 0.5rem; }
.footer .social a { width: 36px; height: 36px; background: rgba(255,255,255,0.08); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.footer .social a:hover { background: var(--primary-light); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 1.5rem 0; text-align: center; font-size: 0.8rem; opacity: 0.5; }

/* Toast */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.75rem; }
.toast { display: flex; align-items: center; gap: 0.75rem; background: #fff; border-left: 4px solid var(--primary-light); padding: 1rem 1.25rem; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); font-size: 0.88rem; font-weight: 600; transform: translateX(120%); transition: transform 0.4s ease; max-width: 360px; }
.toast.show { transform: translateX(0); }
.toast i { font-size: 1.1rem; color: var(--primary-light); }
.toast-success { border-left-color: var(--secondary); }
.toast-success i { color: var(--secondary); }
.toast-error { border-left-color: var(--danger); }
.toast-error i { color: var(--danger); }

/* Utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }
.flex { display: flex; } .gap-1 { gap: 1rem; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }

/* Responsive */
@media (max-width: 1024px) {
  .aps-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .split-section { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 1rem; box-shadow: var(--shadow-lg); border-top: 1px solid var(--border); }
  .nav-menu.active { display: flex; }
  .nav-link { width: 100%; }
  .hero { text-align: center; }
  .hero-content { display: flex; flex-direction: column; align-items: center; }
  .hero-subtitle { max-width: 100%; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .section { padding: 3rem 0; }
  .filters-bar { position: static; }
  .filter-group { width: 100%; }
  .filter-search { min-width: 100%; }
  .subject-row { grid-template-columns: 1fr 80px 60px auto; }
  .modal-header { height: 200px; }
  .modal-tabs { gap: 0; }
  .modal-tab { padding: 0.6rem 0.9rem; font-size: 0.8rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn { width: 100%; }
  .card-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .subject-row { grid-template-columns: 1fr 1fr; }
  .subject-row .point-display, .subject-row .remove-row { grid-column: span 1; }
  .toast-container { left: 1rem; right: 1rem; bottom: 1rem; }
}

/* Ad container (subtle) */
.ad-container { width: 100%; max-width: 1200px; margin: 1.5rem auto; text-align: center; min-height: 90px; }
