/* ============================================================
   1. CSS RESET & VARIABLES
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red: #CC0000;
  --red-dark: #990000;
  --white: #FFFFFF;
  --navy: #1A1A2E;
  --navy-light: #16213E;
  --gray: #F5F5F5;
  --gray-mid: #E8E8E8;
  --text: #333333;
  --text-light: #666666;
  --border: #E0E0E0;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.18);
  --radius: 12px;
  --radius-sm: 6px;
  --transition: all 0.3s ease;
  --font: 'Inter', sans-serif;
  --container: 1200px;
  --header-h: 72px;
}

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================================
   2. BASE / TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p {
  color: var(--text);
  line-height: 1.75;
}

strong { font-weight: 700; }

/* ============================================================
   3. HEADER & NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.nav-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.2;
  flex-shrink: 0;
}

.logo-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: -0.3px;
}

.logo-tagline {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links li a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links li a:hover {
  color: var(--red);
  background: rgba(204, 0, 0, 0.07);
}

.nav-links li a.active {
  color: var(--red);
  background: rgba(204, 0, 0, 0.1);
}

/* "Yeni" badge */
.badge-new {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 50px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  flex-shrink: 0;
}

.hamburger:hover {
  background: var(--gray);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ============================================================
   4. HERO SECTION
   ============================================================ */
.hero {
  min-height: 90vh;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 35%, var(--navy) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 5rem 1.5rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-content {
  max-width: 820px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-weight: 700;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero for sub-pages */
.hero-sub {
  min-height: 50vh;
  padding: 4rem 1.5rem 5rem;
}

.hero-sub h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  letter-spacing: 0.2px;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 3px solid rgba(204, 0, 0, 0.5);
  outline-offset: 3px;
}

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

.btn-primary:hover {
  background: transparent;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}

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

.btn-red:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(204, 0, 0, 0.35);
}

.btn-red:active {
  transform: translateY(0);
}

/* ============================================================
   6. LAYOUT / CONTAINER
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 1.5rem;
}

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
}

.section-tag {
  display: inline-block;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

/* ============================================================
   7. CARDS & SECTIONS
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

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

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

.card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--red) 0%, var(--navy) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.25) 0%, transparent 60%);
}

.card-img-lise {
  background: linear-gradient(135deg, #CC0000 0%, #1A1A2E 100%);
}

.card-img-ortaokul {
  background: linear-gradient(135deg, #990000 0%, #16213E 100%);
}

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

.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(204, 0, 0, 0.1);
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 1.5rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--red);
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}

.card-link:hover {
  gap: 0.65rem;
  color: var(--red-dark);
}

.card-link svg,
.card-link .arrow {
  transition: var(--transition);
}

/* Feature boxes */
.feature-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(204, 0, 0, 0.15);
}

.feature-icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-box h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.feature-box p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.stat-item {
  padding: 2rem 1rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--red);
  display: block;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 600;
}

/* Section alternating background */
.section-gray {
  background: var(--gray);
}

.section-navy {
  background: var(--navy);
  color: var(--white);
}

.section-navy h2,
.section-navy h3 {
  color: var(--white);
}

.section-navy p {
  color: rgba(255, 255, 255, 0.78);
}

/* ============================================================
   8. CURRICULUM TABLE
   ============================================================ */
.curriculum-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  font-size: 0.9rem;
}

.curriculum-table thead {
  background: var(--navy);
  color: var(--white);
}

.curriculum-table thead th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.curriculum-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}

.curriculum-table tbody tr:last-child {
  border-bottom: none;
}

.curriculum-table tbody tr:hover {
  background: rgba(204, 0, 0, 0.04);
}

.curriculum-table tbody td {
  padding: 0.9rem 1.25rem;
  color: var(--text);
}

.curriculum-table tbody td:first-child {
  font-weight: 700;
  color: var(--navy);
}

.hours-badge {
  display: inline-block;
  background: rgba(204, 0, 0, 0.1);
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
}

.tech-badge {
  background: rgba(26, 26, 46, 0.1);
  color: var(--navy);
}

/* ============================================================
   9. TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
  transition: var(--transition);
}

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

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 1.25rem;
  left: 1.75rem;
  font-size: 4rem;
  color: var(--red);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-text {
  font-size: 0.97rem;
  color: var(--text);
  font-style: italic;
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red) 0%, var(--navy) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.author-info .name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
}

.author-info .role {
  font-size: 0.8rem;
  color: var(--text-light);
}

.stars {
  color: #f59e0b;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* ============================================================
   10. FORMS
   ============================================================ */
.form-section {
  background: var(--gray);
}

.form-wrapper {
  max-width: 780px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.form-label .required {
  color: var(--red);
  margin-left: 0.15rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.12);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--red);
  background: rgba(204, 0, 0, 0.03);
}

.form-select {
  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='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  padding-right: 2.75rem;
  cursor: pointer;
}

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

.form-error {
  font-size: 0.8rem;
  color: var(--red);
  font-weight: 600;
  display: none;
  align-items: center;
  gap: 0.3rem;
}

.form-error.visible {
  display: flex;
}

.form-submit-row {
  margin-top: 1.75rem;
  text-align: center;
}

.form-submit-row .btn {
  padding: 1rem 3rem;
  font-size: 1rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #16a34a;
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 360px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ============================================================
   11. MAP & CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
  max-width: var(--container);
  margin: 0 auto;
}

.contact-info h3 {
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.contact-icon {
  width: 42px;
  height: 42px;
  background: rgba(204, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item-text .label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  display: block;
  margin-bottom: 0.15rem;
}

.contact-item-text a,
.contact-item-text span {
  font-size: 0.95rem;
  color: var(--text);
  transition: color 0.2s;
}

.contact-item-text a:hover {
  color: var(--red);
}

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.map-wrapper iframe {
  display: block;
}

/* ============================================================
   12. FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 1.5rem 0;
}

.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo-name {
  color: var(--white);
  font-size: 1.4rem;
}

.footer-brand .logo-tagline {
  color: rgba(255, 255, 255, 0.5);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 280px;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-contact-item .icon {
  font-size: 1rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
}

.footer-contact-item a:hover {
  color: var(--white);
}

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.25rem;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: var(--white);
}

/* ============================================================
   13. UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-red    { color: var(--red); }
.text-navy   { color: var(--navy); }
.text-light  { color: var(--text-light); }
.fw-600      { font-weight: 600; }
.fw-700      { font-weight: 700; }
.mt-1        { margin-top: 0.5rem; }
.mt-2        { margin-top: 1rem; }
.mt-3        { margin-top: 1.5rem; }
.mb-1        { margin-bottom: 0.5rem; }
.mb-2        { margin-bottom: 1rem; }
.mb-3        { margin-bottom: 1.5rem; }
.d-flex      { display: flex; }
.gap-1       { gap: 0.5rem; }
.gap-2       { gap: 1rem; }
.align-center { align-items: center; }
.flex-wrap   { flex-wrap: wrap; }
.justify-center { justify-content: center; }

/* Fade-in animation */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}

[data-animate][data-delay="1"] { transition-delay: 0.1s; }
[data-animate][data-delay="2"] { transition-delay: 0.2s; }
[data-animate][data-delay="3"] { transition-delay: 0.3s; }
[data-animate][data-delay="4"] { transition-delay: 0.4s; }

/* Divider */
.divider {
  width: 60px;
  height: 4px;
  background: var(--red);
  border-radius: 2px;
  margin: 1rem auto 0;
}

.divider-left {
  margin: 1rem 0 0;
}

/* ============================================================
   14. MEDIA QUERIES — Mobile-first
   ============================================================ */

/* ---- Small / mobile base (max 767px) ---- */
@media (max-width: 767px) {
  :root {
    --header-h: 64px;
  }

  section {
    padding: 3.5rem 1.25rem;
  }

  /* Nav */
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1.25rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    gap: 0.15rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding-top: 0;
    padding-bottom: 0;
  }

  .nav-links.open {
    max-height: 400px;
    padding: 0.75rem 1rem 1.25rem;
  }

  .nav-links li a {
    padding: 0.7rem 0.75rem;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }

  /* Hero */
  .hero {
    min-height: 80vh;
    padding: 4rem 1.25rem 5rem;
  }

  .hero::after {
    height: 50px;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .hero-btns .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  /* Cards */
  .cards-grid,
  .cards-grid-2,
  .cards-grid-4 {
    grid-template-columns: 1fr;
  }

  /* Form */
  .form-wrapper {
    padding: 2rem 1.25rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: 1;
  }

  /* Contact grid */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  /* Stats */
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Toast */
  .toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }

  /* Curriculum table */
  .curriculum-table {
    font-size: 0.82rem;
  }

  .curriculum-table thead th,
  .curriculum-table tbody td {
    padding: 0.7rem 0.85rem;
  }
}

/* ---- Tablet (768px – 1199px) ---- */
@media (min-width: 768px) and (max-width: 1199px) {
  .cards-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ---- Desktop (1200px+) ---- */
@media (min-width: 1200px) {
  .cards-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr 1.4fr;
  }
}

/* ============================================================
   15. PRINT
   ============================================================ */
@media print {
  .site-header,
  .hero,
  .site-footer,
  .hamburger {
    display: none;
  }

  body { font-size: 12pt; }
  a { color: inherit; }
}
