:root {
  /* Primitive Color Tokens */
  --color-white: rgba(255, 255, 255, 1);
  --color-black: rgba(0, 0, 0, 1);
  --color-cream-50: rgba(252, 252, 249, 1);
  --color-cream-100: rgba(255, 255, 253, 1);
  --color-gray-200: rgba(245, 245, 245, 1);
  --color-gray-300: rgba(167, 169, 169, 1);
  --color-gray-400: rgba(119, 124, 124, 1);
  --color-slate-500: rgba(98, 108, 113, 1);
  --color-brown-600: #0f3a6f;
  --color-charcoal-700: rgba(31, 33, 33, 1);
  --color-charcoal-800: rgba(38, 40, 40, 1);
  --color-slate-900: rgb(43, 115, 131);
  --color-teal-300: #0f3a6f;
  --color-teal-400: #0f3a6f;
  --color-teal-500: #0f3a6f;
  --color-teal-600: #0f3a6f;
  --color-teal-700: #0f3a6f;
  --color-teal-800: rgba(41, 150, 161, 1);
  --color-red-400: #e8b339;
  --color-red-500: #e8b339;
  --color-orange-400: #e8b339;
  --color-orange-500: #e8b339;

  /* RGB versions for opacity control */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;
  --color-slate-500-rgb: 98, 108, 113;
  --color-red-500-rgb: 192, 21, 47;
  --color-red-400-rgb: 255, 84, 89;
  --color-orange-500-rgb: 168, 75, 47;
  --color-orange-400-rgb: 230, 129, 97;

  /* Background color tokens (Light Mode) */
  --color-bg-1: rgba(59, 130, 246, 0.08); /* Light blue */
  --color-bg-2: rgba(245, 158, 11, 0.08); /* Light yellow */
  --color-bg-3: rgba(34, 197, 94, 0.08); /* Light green */
  --color-bg-4: rgba(239, 68, 68, 0.08); /* Light red */
  --color-bg-5: rgba(147, 51, 234, 0.08); /* Light purple */
  --color-bg-6: rgba(249, 115, 22, 0.08); /* Light orange */
  --color-bg-7: rgba(236, 72, 153, 0.08); /* Light pink */
  --color-bg-8: rgba(6, 182, 212, 0.08); /* Light cyan */

  /* Semantic Color Tokens (Light Mode) */
  --color-background: #ffffff;
  --color-surface: #f5f1e8;
  --color-text: #0b2240;
  --color-text-secondary: #243b63;
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);
  --color-select-caret: rgba(var(--color-slate-900-rgb), 0.8);

  /* Common style patterns */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for opacity control */
  --color-success-rgb: 33, 128, 141;
  --color-error-rgb: 192, 21, 47;
  --color-warning-rgb: 168, 75, 47;
  --color-info-rgb: 98, 108, 113;

  /* Typography */
  --font-family-base: "FKGroteskNeue", "Geist", "Inter", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo,
    Monaco, Consolas, monospace;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
  --font-size-4xl: 30px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 550;
  --font-weight-bold: 600;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --letter-spacing-tight: -0.01em;

  /* Spacing */
  --space-0: 0;
  --space-1: 1px;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-base: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04),
    0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);

  /* Animation */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
}

/* Dark mode colors */
@media (prefers-color-scheme: dark) {
  :root {
    /* RGB versions for opacity control (Dark Mode) */
    --color-gray-400-rgb: 119, 124, 124;
    --color-teal-300-rgb: 50, 184, 198;
    --color-gray-300-rgb: 167, 169, 169;
    --color-gray-200-rgb: 245, 245, 245;

    /* Background color tokens (Dark Mode) */
    --color-bg-1: rgba(29, 78, 216, 0.15); /* Dark blue */
    --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
    --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
    --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
    --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
    --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
    --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
    --color-bg-8: rgba(8, 145, 178, 0.15); /* Dark cyan */

    /* Semantic Color Tokens (Dark Mode) */
    --color-background: #ffffff;
    --color-surface: #f5f1e8;
    --color-text: #0b2240;
    --color-text-secondary: #243b63;
    --color-primary: var(--color-teal-300);
    --color-primary-hover: var(--color-teal-400);
    --color-primary-active: var(--color-teal-800);
    --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
    --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
    --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
    --color-border: rgba(var(--color-gray-400-rgb), 0.3);
    --color-error: var(--color-red-400);
    --color-success: var(--color-teal-300);
    --color-warning: var(--color-orange-400);
    --color-info: var(--color-gray-300);
    --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
    --color-btn-primary-text: var(--color-slate-900);
    --color-card-border: rgba(var(--color-gray-400-rgb), 0.2);
    --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
    --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    --button-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

    /* Common style patterns - updated for dark mode */
    --focus-ring: 0 0 0 3px var(--color-focus-ring);
    --focus-outline: 2px solid var(--color-primary);
    --status-bg-opacity: 0.15;
    --status-border-opacity: 0.25;
    --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

    /* RGB versions for dark mode */
    --color-success-rgb: var(--color-teal-300-rgb);
    --color-error-rgb: var(--color-red-400-rgb);
    --color-warning-rgb: var(--color-orange-400-rgb);
    --color-info-rgb: var(--color-gray-300-rgb);
  }
}

/* Data attribute for manual theme switching */
[data-color-scheme="dark"] {
  /* RGB versions for opacity control (dark mode) */
  --color-gray-400-rgb: 119, 124, 124;
  --color-teal-300-rgb: 50, 184, 198;
  --color-gray-300-rgb: 167, 169, 169;
  --color-gray-200-rgb: 245, 245, 245;

  /* Colorful background palette - Dark Mode */
  --color-bg-1: rgba(29, 78, 216, 0.15); /* Dark blue */
  --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
  --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
  --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
  --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
  --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
  --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
  --color-bg-8: rgba(8, 145, 178, 0.15); /* Dark cyan */

  /* Semantic Color Tokens (Dark Mode) */
  --color-background: #ffffff;
  --color-surface: #f5f1e8;
  --color-text: #0b2240;
  --color-text-secondary: #243b63;
  --color-primary: var(--color-teal-300);
  --color-primary-hover: var(--color-teal-400);
  --color-primary-active: var(--color-teal-800);
  --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
  --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
  --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
  --color-border: rgba(var(--color-gray-400-rgb), 0.3);
  --color-error: var(--color-red-400);
  --color-success: var(--color-teal-300);
  --color-warning: var(--color-orange-400);
  --color-info: var(--color-gray-300);
  --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
  --color-btn-primary-text: var(--color-slate-900);
  --color-card-border: rgba(var(--color-gray-400-rgb), 0.15);
  --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
  --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

  /* Common style patterns - updated for dark mode */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for dark mode */
  --color-success-rgb: var(--color-teal-300-rgb);
  --color-error-rgb: var(--color-red-400-rgb);
  --color-warning-rgb: var(--color-orange-400-rgb);
  --color-info-rgb: var(--color-gray-300-rgb);
}

[data-color-scheme="light"] {
  /* RGB versions for opacity control (light mode) */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;

  /* Semantic Color Tokens (Light Mode) */
  --color-background: #ffffff;
  --color-surface: #f5f1e8;
  --color-text: #0b2240;
  --color-text-secondary: #243b63;
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);

  /* RGB versions for light mode */
  --color-success-rgb: var(--color-teal-500-rgb);
  --color-error-rgb: var(--color-red-500-rgb);
  --color-warning-rgb: var(--color-orange-500-rgb);
  --color-info-rgb: var(--color-slate-500-rgb);
}

/* Base styles */
html {
  font-size: var(--font-size-base);
  font-family: var(--font-family-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  letter-spacing: var(--letter-spacing-tight);
}

h1 {
  font-size: var(--font-size-4xl);
}
h2 {
  font-size: var(--font-size-3xl);
}
h3 {
  font-size: var(--font-size-2xl);
}
h4 {
  font-size: var(--font-size-xl);
}
h5 {
  font-size: var(--font-size-lg);
}
h6 {
  font-size: var(--font-size-md);
}

p {
  margin: 0 0 var(--space-16) 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

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

code,
pre {
  font-family: var(--font-family-mono);
  font-size: calc(var(--font-size-base) * 0.95);
  background-color: var(--color-secondary);
  border-radius: var(--radius-sm);
}

code {
  padding: var(--space-1) var(--space-4);
}

pre {
  padding: var(--space-16);
  margin: var(--space-16) 0;
  overflow: auto;
  border: 1px solid var(--color-border);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-base);
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  border: none;
  text-decoration: none;
  position: relative;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

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

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

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

.btn--secondary {
  background: var(--color-secondary);
  color: var(--color-text);
}

.btn--secondary:hover {
  background: var(--color-secondary-hover);
}

.btn--secondary:active {
  background: var(--color-secondary-active);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn--outline:hover {
  background: var(--color-secondary);
}

.btn--sm {
  padding: var(--space-4) var(--space-12);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
}

.btn--lg {
  padding: var(--space-10) var(--space-20);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-md);
}

.btn--full-width {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form elements */
.form-control {
  display: block;
  width: 100%;
  padding: var(--space-8) var(--space-12);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  transition: border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

textarea.form-control {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
}

select.form-control {
  padding: var(--space-8) var(--space-12);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: var(--select-caret-light);
  background-repeat: no-repeat;
  background-position: right var(--space-12) center;
  background-size: 16px;
  padding-right: var(--space-32);
}

/* Add a dark mode specific caret */
@media (prefers-color-scheme: dark) {
  select.form-control {
    background-image: var(--select-caret-dark);
  }
}

/* Also handle data-color-scheme */
[data-color-scheme="dark"] select.form-control {
  background-image: var(--select-caret-dark);
}

[data-color-scheme="light"] select.form-control {
  background-image: var(--select-caret-light);
}

.form-control:focus {
  border-color: var(--color-primary);
  outline: var(--focus-outline);
}

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

.form-group {
  margin-bottom: var(--space-16);
}

/* Card component */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--duration-normal) var(--ease-standard);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card__body {
  padding: var(--space-16);
}

.card__header,
.card__footer {
  padding: var(--space-16);
  border-bottom: 1px solid var(--color-card-border-inner);
}

/* Status indicators - simplified with CSS variables */
.status {
  display: inline-flex;
  align-items: center;
  padding: var(--space-6) var(--space-12);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.status--success {
  background-color: rgba(
    var(--color-success-rgb, 33, 128, 141),
    var(--status-bg-opacity)
  );
  color: var(--color-success);
  border: 1px solid
    rgba(var(--color-success-rgb, 33, 128, 141), var(--status-border-opacity));
}

.status--error {
  background-color: rgba(
    var(--color-error-rgb, 192, 21, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-error);
  border: 1px solid
    rgba(var(--color-error-rgb, 192, 21, 47), var(--status-border-opacity));
}

.status--warning {
  background-color: rgba(
    var(--color-warning-rgb, 168, 75, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-warning);
  border: 1px solid
    rgba(var(--color-warning-rgb, 168, 75, 47), var(--status-border-opacity));
}

.status--info {
  background-color: rgba(
    var(--color-info-rgb, 98, 108, 113),
    var(--status-bg-opacity)
  );
  color: var(--color-info);
  border: 1px solid
    rgba(var(--color-info-rgb, 98, 108, 113), var(--status-border-opacity));
}

/* Container layout */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--space-16);
  padding-left: var(--space-16);
}

@media (min-width: 640px) {
  .container {
    max-width: var(--container-sm);
  }
}
@media (min-width: 768px) {
  .container {
    max-width: var(--container-md);
  }
}
@media (min-width: 1024px) {
  .container {
    max-width: var(--container-lg);
  }
}
@media (min-width: 1280px) {
  .container {
    max-width: var(--container-xl);
  }
}

/* Utility classes */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-4 {
  gap: var(--space-4);
}
.gap-8 {
  gap: var(--space-8);
}
.gap-16 {
  gap: var(--space-16);
}

.m-0 {
  margin: 0;
}
.mt-8 {
  margin-top: var(--space-8);
}
.mb-8 {
  margin-bottom: var(--space-8);
}
.mx-8 {
  margin-left: var(--space-8);
  margin-right: var(--space-8);
}
.my-8 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

.p-0 {
  padding: 0;
}
.py-8 {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}
.px-8 {
  padding-left: var(--space-8);
  padding-right: var(--space-8);
}
.py-16 {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}
.px-16 {
  padding-left: var(--space-16);
  padding-right: var(--space-16);
}

.block {
  display: block;
}
.hidden {
  display: none;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

/* Dark mode specifics */
[data-color-scheme="dark"] .btn--outline {
  border: 1px solid var(--color-border-secondary);
}

@font-face {
  font-family: 'FKGroteskNeue';
  src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2')
    format('woff2');
}

/* END PERPLEXITY DESIGN SYSTEM */
/* =====================================================
   KL SCHOOL WEBSITE - UNIFIED MASTER STYLESHEET
   Updated to match Design System
   ===================================================== */

/* === UNIVERSAL COLOR VARIABLES (Updated to Design System) === */
:root {
    /* Use Design System Colors */
    --primary-navy: var(--color-primary);
    --navy-dark: var(--color-primary-active);
    --navy-light: var(--color-primary-hover);
    
    --golden-yellow: var(--color-warning);
    --golden-dark: var(--color-warning);
    --golden-light: var(--color-warning);
    
    --cream: var(--color-background);
    --cream-light: var(--color-surface);
    --cream-dark: var(--color-secondary);
    
    --white: var(--color-surface);
    --text-dark: var(--color-text);
    --text-medium: var(--color-text-secondary);
    --text-light: var(--color-text-secondary);
    --text-light-2: var(--color-text-secondary);
    
    /* Updated spacing to match design system */
    --space-xs: var(--space-4);
    --space-sm: var(--space-8);
    --space-md: var(--space-12);
    --space-lg: var(--space-16);
    --space-xl: var(--space-24);
    --space-2xl: var(--space-32);
    --space-3xl: calc(var(--space-32) * 1.5);
    
    /* Use design system radius */
    --radius-sm: var(--radius-sm);
    --radius-md: var(--radius-base);
    --radius-lg: var(--radius-lg);
    --radius-xl: var(--radius-lg);
    
    /* Use design system shadows */
    --shadow-sm: var(--shadow-xs);
    --shadow-md: var(--shadow-sm);
    --shadow-lg: var(--shadow-md);
    --shadow-xl: var(--shadow-lg);
}

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

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
    font-family: var(--font-family-base);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background-color: var(--color-background);
}

body {
    font-family: var(--font-family-base);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background-color: var(--color-background);
}

.container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* === TYPOGRAPHY === */
h1 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
}

h2 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
}

h3 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
    line-height: var(--line-height-tight);
}

h4 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
    line-height: var(--line-height-normal);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-standard);
}

/* === HEADER & NAVIGATION === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--color-surface);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    padding: 0;
}

.navbar {
    padding: var(--space-8) 0;
}

.nav-container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo h2 {
    color: var(--color-primary);
    font-size: var(--font-size-2xl);
    margin: 0;
}

.logo span {
    color: var(--color-warning);
}

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: all var(--duration-normal) var(--ease-standard);
    filter: drop-shadow(0 2px 4px rgba(var(--color-primary-rgb), 0.1));
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(var(--color-warning-rgb), 0.2));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
    align-items: center;
}

.nav-link {
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-base);
    transition: color var(--duration-normal) var(--ease-standard);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-warning);
    transition: width var(--duration-normal) var(--ease-standard);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-warning);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-surface);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--duration-normal) var(--ease-standard);
    list-style: none;
    margin-top: 10px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: var(--space-10) var(--space-16);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    transition: all var(--duration-normal) var(--ease-standard);
}

.dropdown-menu a:hover {
    background: var(--color-secondary);
    color: var(--color-warning);
    padding-left: var(--space-20);
}

.contact-btn {
    background: linear-gradient(135deg, var(--color-warning) 0%, var(--color-warning) 100%);
    color: var(--color-primary) !important;
    padding: var(--space-10) var(--space-24);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    font-weight: var(--font-weight-semibold);
}

.contact-btn:hover {
    background: var(--color-warning);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-btn::after {
    display: none !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger .bar {
    width: 28px;
    height: 3px;
    background: var(--color-primary);
    transition: all var(--duration-normal);
    border-radius: 3px;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: var(--space-8) var(--space-16);
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-base);
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all var(--duration-normal) var(--ease-standard);
    text-transform: capitalize;
    font-family: var(--font-family-base);
}

.btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-btn-primary-text);
    box-shadow: var(--shadow-md);
}

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

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

.btn-secondary {
    background: var(--color-warning);
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

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

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-btn-primary-text);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.btn-link {
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
    display: inline-flex;
    align-items: center;
    gap: var(--space-6);
    padding: 0;
    background: none;
    border: none;
}

.btn-link:hover {
    color: var(--color-warning);
    gap: var(--space-12);
}

.btn-large {
    padding: var(--space-16) var(--space-32);
    font-size: var(--font-size-lg);
}

/* === HERO SECTION === */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 50%, var(--color-warning) 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1.5" fill="%23ffffff" opacity="0.08"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(var(--color-primary-rgb), 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.hero-text {
    max-width: 700px;
}

.hero-text h1 {
    color: var(--color-surface);
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.8s ease;
}

.hero-text h1 span {
    color: var(--color-warning);
    display: block;
}

.tagline {
    color: var(--color-warning);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-xl);
    line-height: var(--line-height-normal);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-stats {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-3xl);
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.stat-box {
    background: rgba(var(--color-primary-rgb), 0.1);
    backdrop-filter: blur(10px);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(var(--color-warning-rgb), 0.3);
    min-width: 150px;
}

.stat-box i {
    font-size: var(--font-size-3xl);
    color: var(--color-warning);
    margin-bottom: var(--space-sm);
}

.stat-box h3 {
    color: var(--color-surface);
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-xs);
}

.stat-box p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: var(--font-size-sm);
}

/* === SECTION LABELS === */
.section-label {
    display: inline-block;
    color: var(--color-warning);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-sm);
    padding-left: 40px;
    position: relative;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 2px;
    background: var(--color-warning);
}

/* === SECTION HEADERS === */
.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: var(--space-md);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--color-warning) 0%, var(--color-warning) 100%);
    border-radius: 2px;
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--color-text-secondary);
    font-size: var(--font-size-lg);
}

/* === ABOUT PREVIEW === */
.about-preview {
    padding: var(--space-3xl) 0;
    background: var(--color-surface);
}

.about-preview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-preview-image {
    position: relative;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-surface);
    box-shadow: var(--shadow-xl);
}

.image-placeholder i {
    font-size: 5rem;
    margin-bottom: var(--space-md);
    opacity: 0.3;
}

.image-placeholder p {
    color: var(--color-surface);
    margin: 0;
    opacity: 0.7;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: 30px;
    background: linear-gradient(135deg, var(--color-warning) 0%, var(--color-warning) 100%);
    color: var(--color-primary);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.experience-badge h3 {
    font-size: var(--font-size-3xl);
    color: var(--color-primary);
    margin: 0;
    line-height: 1;
}

.experience-badge p {
    color: var(--color-primary);
    margin: 0;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
}

.about-preview-text h3 {
    color: var(--color-warning);
    font-size: var(--font-size-xl);
    margin-top: var(--space-lg);
}

.mission-points {
    margin: var(--space-lg) 0;
}

.point {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.point i {
    color: var(--color-warning);
    font-size: var(--font-size-lg);
}

.point span {
    color: var(--color-text);
    font-weight: var(--font-weight-medium);
}

/* === PROGRAMS SECTION === */
.programs-section {
    padding: var(--space-3xl) 0;
    background: var(--color-background);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.program-card {
    background: var(--color-surface);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all var(--duration-normal) var(--ease-standard);
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, var(--color-warning) 0%, var(--color-warning) 100%);
}

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

.program-card.featured {
    border: 2px solid var(--color-warning);
    box-shadow: var(--shadow-lg);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--color-warning) 0%, var(--color-warning) 100%);
    color: var(--color-primary);
    padding: var(--space-6) var(--space-16);
    border-radius: 20px;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
}

.program-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
}

.program-icon i {
    font-size: var(--font-size-3xl);
    color: var(--color-surface);
}

.program-card h3 {
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.age-group {
    color: var(--color-warning);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-base);
    margin-bottom: var(--space-md);
}

.program-features {
    list-style: none;
    text-align: left;
    margin: var(--space-lg) 0;
}

.program-features li {
    padding: var(--space-sm) 0;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.program-features i {
    color: var(--color-warning);
    font-size: var(--font-size-sm);
}

/* === SAFETY & FACILITIES === */
.safety-facilities {
    padding: var(--space-3xl) 0;
    background: var(--color-surface);
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.facility-card {
    background: var(--color-background);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--duration-normal) var(--ease-standard);
}

.facility-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: var(--color-surface);
}

.facility-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-warning) 0%, var(--color-warning) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.facility-icon i {
    font-size: var(--font-size-2xl);
    color: var(--color-primary);
}

.facility-card h3 {
    color: var(--color-primary);
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-sm);
}

.facility-card p {
    margin: 0;
    font-size: var(--font-size-base);
}

/* === ACTIVITIES === */
.activities-features {
    padding: var(--space-3xl) 0;
    background: var(--color-background);
}

.activities-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.tab-button {
    padding: var(--space-12) var(--space-24);
    background: var(--color-surface);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-md);
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-standard);
    font-family: var(--font-family-base);
}

.tab-button:hover,
.tab-button.active {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: var(--color-btn-primary-text);
    border-color: var(--color-primary-active);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.activity-item {
    background: var(--color-surface);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--duration-normal) var(--ease-standard);
    box-shadow: var(--shadow-sm);
}

.activity-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.activity-item i {
    font-size: var(--font-size-3xl);
    color: var(--color-warning);
    margin-bottom: var(--space-md);
}

.activity-item h4 {
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-lg);
}

.activity-item p {
    margin: 0;
    font-size: var(--font-size-sm);
}

/* === GALLERY PREVIEW === */
.gallery-preview {
    padding: var(--space-3xl) 0;
    background: var(--color-surface);
}

.gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.gallery-preview-item {
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--duration-normal) var(--ease-standard);
}

.gallery-preview-item.large {
    grid-column: span 2;
}

.gallery-preview-item:hover {
    transform: scale(1.05);
}

.gallery-preview-item .image-placeholder {
    height: 100%;
    aspect-ratio: unset;
}

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

/* === TESTIMONIALS === */
.testimonials {
    padding: var(--space-3xl) 0;
    background: var(--color-background);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.testimonial-card {
    background: var(--color-surface);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 30px;
    font-size: 6rem;
    color: var(--color-warning);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.rating {
    display: flex;
    gap: 4px;
    margin-bottom: var(--space-md);
}

.rating i {
    color: var(--color-warning);
    font-size: var(--font-size-lg);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: var(--space-lg);
    color: var(--color-text);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar i {
    color: var(--color-surface);
    font-size: var(--font-size-xl);
}

.testimonial-author h4 {
    color: var(--color-primary);
    margin: 0;
    font-size: var(--font-size-lg);
}

.testimonial-author p {
    color: var(--color-text-secondary);
    margin: 0;
    font-size: var(--font-size-sm);
    font-style: normal;
}

/* === CONTACT TEASER === */
.contact-teaser {
    padding: var(--space-3xl) 0;
    background: var(--color-surface);
}

.contact-teaser-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
}

.contact-teaser-info h2 {
    margin-bottom: var(--space-md);
}

.contact-quick-info {
    margin-top: var(--space-xl);
}

.info-item {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.info-item i {
    font-size: var(--font-size-xl);
    color: var(--color-warning);
    min-width: 30px;
}

.info-item h4 {
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
    font-size: var(--font-size-lg);
}

.info-item p {
    margin: 0;
    line-height: var(--line-height-normal);
}

.contact-teaser-form {
    background: var(--color-background);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.contact-teaser-form h3 {
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-8) var(--space-12);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-base);
    font-size: var(--font-size-base);
    font-family: var(--font-family-base);
    transition: border-color var(--duration-normal) var(--ease-standard);
    background: var(--color-surface);
    color: var(--color-text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--focus-ring);
}

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

.form-group.checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: var(--space-lg) 0;
}

.form-group.checkbox input {
    width: auto;
    cursor: pointer;
}

.form-group.checkbox label {
    margin: 0;
    cursor: pointer;
}

.form-note {
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-top: var(--space-md);
}

/* === OTHER BRANCH === */
.other-branch {
    padding: var(--space-3xl) 0;
    background: var(--color-background);
}

.other-branch-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.other-branch-image {
    aspect-ratio: 3/4;
}

.branch-highlights {
    margin: var(--space-lg) 0;
}

.highlight {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.highlight i {
    color: var(--color-warning);
    font-size: var(--font-size-lg);
}

.highlight span {
    color: var(--color-text);
    font-weight: var(--font-weight-medium);
}

.branch-contact {
    margin: var(--space-lg) 0;
}

.branch-contact p {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.branch-contact i {
    color: var(--color-warning);
}

/* === PAGE HEADER === */
.page-header {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 50%, var(--color-warning) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

.page-header h1 {
    color: var(--color-surface);
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 2;
}

.breadcrumb {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-base);
    position: relative;
    z-index: 2;
}

.breadcrumb a {
    color: var(--color-warning);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* === VISION & MISSION === */
.vision-mission {
    padding: var(--space-3xl) 0;
    background: var(--color-background);
}

.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.vm-card {
    background: var(--color-surface);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.vm-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-warning) 0%, var(--color-warning) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.vm-icon i {
    font-size: var(--font-size-2xl);
    color: var(--color-primary);
}

.mission-list {
    list-style: none;
    margin-top: var(--space-lg);
}

.mission-list li {
    padding: var(--space-sm) 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.mission-list i {
    color: var(--color-warning);
}

/* === MESSAGES === */
.principal-message,
.management-message {
    padding: var(--space-3xl) 0;
    background: var(--color-surface);
}

.management-message {
    background: var(--color-background);
}

.message-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-3xl);
    align-items: start;
}

.message-content.reverse {
    grid-template-columns: 2fr 1fr;
}

.message-image .image-placeholder {
    aspect-ratio: 3/4;
}

.quote-icon {
    font-size: var(--font-size-4xl);
    color: var(--color-warning);
    opacity: 0.3;
    margin-bottom: var(--space-md);
}

.message-intro {
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
    font-size: var(--font-size-lg);
}

.signature {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 2px solid var(--color-secondary);
}

.signature h4 {
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.signature p {
    color: var(--color-text-secondary);
    margin: 0;
    font-style: italic;
}

/* === CORE VALUES === */
.core-values {
    padding: var(--space-3xl) 0;
    background: var(--color-surface);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.value-card {
    background: var(--color-background);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--duration-normal) var(--ease-standard);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: var(--color-surface);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.value-icon i {
    font-size: var(--font-size-2xl);
    color: var(--color-surface);
}

/* === TEAM === */
.team-section {
    padding: var(--space-3xl) 0;
    background: var(--color-background);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.team-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--duration-normal) var(--ease-standard);
}

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

.team-image .image-placeholder {
    aspect-ratio: 3/4;
    border-radius: 0;
}

.team-info {
    padding: var(--space-lg);
    text-align: center;
}

.team-info h3 {
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-lg);
}

.role {
    color: var(--color-warning);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-xs) !important;
}

.qualification,
.experience {
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-xs) !important;
}

/* === WHY CHOOSE === */
.why-choose {
    padding: var(--space-3xl) 0;
    background: var(--color-surface);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.why-item {
    background: var(--color-background);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    position: relative;
    padding-left: 100px;
    transition: all var(--duration-normal) var(--ease-standard);
}

.why-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: var(--color-surface);
}

.why-number {
    position: absolute;
    left: 30px;
    top: 30px;
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-warning);
    opacity: 0.3;
}

.why-item h3 {
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.why-item p {
    margin: 0;
}

/* === CTA SECTION === */
.cta-section {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 50%, var(--color-warning) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="stars" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
    opacity: 0.3;
}

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

.cta-content h2 {
    color: var(--color-surface);
    margin-bottom: var(--space-md);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-xl);
}

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

/* === FOOTER === */
.footer {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.9);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-section h3 {
    color: var(--color-surface);
    margin-bottom: var(--space-md);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-md);
    line-height: var(--line-height-normal);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--space-sm);
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--duration-normal) var(--ease-standard);
}

.footer-section ul li a:hover {
    color: var(--color-warning);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-surface);
    transition: all var(--duration-normal) var(--ease-standard);
}

.social-links a:hover {
    background: var(--color-warning);
    color: var(--color-primary);
    transform: translateY(-3px);
}

.contact-details p {
    display: flex;
    align-items: start;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    color: rgba(255, 255, 255, 0.8);
}

.contact-details i {
    color: var(--color-warning);
    margin-top: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-size-base);
}

.footer-bottom a {
    color: var(--color-warning);
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* === SCROLL TO TOP === */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-warning) 0%, var(--color-warning) 100%);
    color: var(--color-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--duration-normal) var(--ease-standard);
    z-index: 999;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.scroll-to-top.show {
    display: flex;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* === PROGRAM DETAIL PAGE === */
.program-detail {
    padding: var(--space-3xl) 0;
    background: var(--color-surface);
}

.program-detail.alternate {
    background: var(--color-background);
}

.program-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.program-detail-content.reverse {
    grid-template-columns: 1fr 1fr;
}

.program-detail-content.reverse .program-detail-image {
    order: 2;
}

.program-detail-content.reverse .program-detail-text {
    order: 1;
}

.program-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-warning) 0%, var(--color-warning) 100%);
    color: var(--color-primary);
    padding: var(--space-8) var(--space-20);
    border-radius: 20px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-md);
}

.program-section {
    margin: var(--space-xl) 0;
    padding: var(--space-lg);
    background: var(--color-background);
    border-radius: var(--radius-lg);
}

.program-section h4 {
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.program-section h4 i {
    color: var(--color-warning);
}

.program-list {
    list-style: none;
}

.program-list li {
    padding: var(--space-sm) 0;
    padding-left: var(--space-lg);
    position: relative;
    color: var(--color-text);
}

.program-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-warning);
    font-weight: bold;
}

/* === COMPARISON TABLE === */
.programs-comparison {
    padding: var(--space-3xl) 0;
    background: var(--color-background);
}

.comparison-table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-table thead {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: var(--color-surface);
}

.comparison-table th {
    padding: var(--space-lg);
    text-align: left;
    font-weight: var(--font-weight-semibold);
}

.comparison-table td {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.comparison-table tbody tr:hover {
    background: var(--color-secondary);
}

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

.table-note {
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-top: var(--space-md);
}

/* === GALLERY STYLES === */
.gallery-section {
    padding: var(--space-3xl) 0;
    background: var(--color-surface);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--space-12) var(--space-24);
    background: var(--color-background);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-md);
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-standard);
    font-family: var(--font-family-base);
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: var(--color-btn-primary-text);
    border-color: var(--color-primary-active);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-standard);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.gallery-item .image-placeholder {
    height: 100%;
    aspect-ratio: unset;
}

/* === VIDEO GALLERY === */
.video-gallery {
    padding: var(--space-3xl) 0;
    background: var(--color-background);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.video-item {
    aspect-ratio: 16/9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-standard);
}

.video-item:hover {
    transform: scale(1.02);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-surface);
    position: relative;
}

.video-placeholder i {
    font-size: 4rem;
    margin-bottom: var(--space-md);
    opacity: 0.8;
}

.video-placeholder::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all var(--duration-normal) var(--ease-standard);
}

.video-item:hover .video-placeholder::after {
    border-color: var(--color-surface);
}

/* === NEWS & EVENTS === */
.news-events {
    padding: var(--space-3xl) 0;
    background: var(--color-surface);
}

.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-2xl);
}

.column-title {
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 3px solid var(--color-warning);
}

.news-item {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-warning) 0%, var(--color-warning) 100%);
    color: var(--color-primary);
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    font-weight: var(--font-weight-semibold);
}

.news-date .day {
    font-size: var(--font-size-2xl);
}

.news-date .month {
    font-size: var(--font-size-xs);
}

.news-content h4 {
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.news-category {
    color: var(--color-warning);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-sm) !important;
}

.news-category i {
    margin-right: 4px;
}

.news-content p {
    margin-bottom: var(--space-md);
}

.read-more {
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
    display: inline-flex;
    align-items: center;
    gap: var(--space-6);
    transition: all var(--duration-normal) var(--ease-standard);
}

.read-more:hover {
    color: var(--color-warning);
    gap: var(--space-12);
}

.event-item {
    background: var(--color-background);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    display: flex;
    gap: var(--space-lg);
}

.event-item.upcoming {
    border-left: 4px solid var(--color-warning);
}

.event-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-surface);
    font-size: var(--font-size-xl);
    flex-shrink: 0;
}

.event-details h4 {
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.event-date {
    color: var(--color-warning);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-sm) !important;
}

.event-details p {
    margin-bottom: 0;
    font-size: var(--font-size-base);
}

.event-cta {
    text-align: center;
    padding: var(--space-lg);
    background: linear-gradient(135deg, var(--color-warning) 0%, var(--color-warning) 100%);
    border-radius: var(--radius-lg);
}

.event-cta p {
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-md);
}

/* === ANNOUNCEMENTS === */
.announcements-section {
    padding: var(--space-2xl) 0;
    background: var(--color-background);
}

.announcements-box {
    background: var(--color-surface);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border-left: 5px solid var(--color-warning);
    box-shadow: var(--shadow-md);
}

.announcements-box h3 {
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.announcements-box h3 i {
    color: var(--color-warning);
    font-size: var(--font-size-xl);
}

.announcements-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.announcement {
    background: var(--color-background);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
}

.announcement .label {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: var(--color-btn-primary-text);
    padding: var(--space-4) var(--space-12);
    border-radius: 12px;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-sm);
}

.announcement p {
    margin: 0;
    color: var(--color-text);
    font-size: var(--font-size-base);
}

/* === CONTACT PAGE === */
.contact-info {
    padding: var(--space-3xl) 0;
    background: var(--color-surface);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
}

.contact-info-card {
    background: var(--color-background);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--duration-normal) var(--ease-standard);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: var(--color-surface);
}

.info-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-warning) 0%, var(--color-warning) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.info-icon i {
    font-size: var(--font-size-2xl);
    color: var(--color-primary);
}

.contact-info-card h3 {
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.contact-info-card p {
    margin-bottom: var(--space-sm);
    color: var(--color-text-secondary);
}

.map-section {
    height: 450px;
    overflow: hidden;
}

.map-container {
    width: 100%;
    height: 100%;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-surface);
}

.map-placeholder i {
    font-size: 5rem;
    margin-bottom: var(--space-lg);
    opacity: 0.3;
}

.map-placeholder p {
    color: var(--color-surface);
    text-align: center;
    margin: 0;
}

.map-placeholder-small {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-surface);
}

.map-placeholder-small i {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-md);
    opacity: 0.3;
}

/* === CONTACT FORM === */
.contact-form-section {
    padding: var(--space-3xl) 0;
    background: var(--color-surface);
}

.contact-form-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-2xl);
}

.contact-form {
    background: var(--color-background);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

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

/* === FAQ === */
.faq-section {
    padding: var(--space-3xl) 0;
    background: var(--color-background);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.faq-item {
    background: var(--color-surface);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-warning);
    transition: all var(--duration-normal) var(--ease-standard);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.faq-item h4 {
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.faq-item h4 i {
    color: var(--color-warning);
    font-size: var(--font-size-xs);
}

.faq-item p {
    margin: 0;
    color: var(--color-text-secondary);
}

/* === BRANCH PAGES === */
.branch-intro {
    padding: var(--space-3xl) 0;
    background: var(--color-surface);
}

.branch-intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.branch-location {
    padding: var(--space-3xl) 0;
    background: var(--color-surface);
}

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

.location-details {
    margin-bottom: var(--space-lg);
}

.location-details h3 {
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.location-details h3 i {
    color: var(--color-warning);
}

.location-details p {
    margin-bottom: var(--space-xs);
    color: var(--color-text-secondary);
}

.branch-facilities {
    padding: var(--space-3xl) 0;
    background: var(--color-background);
}

.facilities-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
}

.facility-showcase-item {
    background: var(--color-surface);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--duration-normal) var(--ease-standard);
}

.facility-showcase-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.facility-showcase-item .facility-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
}

.facility-showcase-item .facility-icon i {
    font-size: var(--font-size-2xl);
    color: var(--color-surface);
}

.facility-showcase-item h3 {
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.branch-programs {
    padding: var(--space-3xl) 0;
    background: var(--color-background);
}

.programs-list-branch {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.program-list-item {
    background: var(--color-surface);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--duration-normal) var(--ease-standard);
}

.program-list-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.program-icon-small {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-warning) 0%, var(--color-warning) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.program-icon-small i {
    font-size: var(--font-size-xl);
    color: var(--color-primary);
}

.program-list-item h3 {
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
    font-size: var(--font-size-lg);
}

.program-list-item p {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

.branch-why {
    padding: var(--space-3xl) 0;
    background: var(--color-surface);
}

.why-branch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.why-branch-item {
    background: var(--color-background);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    position: relative;
    padding-left: 100px;
}

.why-number {
    position: absolute;
    left: 30px;
    top: 30px;
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-warning);
    opacity: 0.3;
}

.why-branch-item h3 {
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.virtual-tour {
    padding: var(--space-3xl) 0;
    background: var(--color-background);
}

.tour-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.tour-video {
    aspect-ratio: 16/9;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.video-placeholder-large {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-surface);
}

.video-placeholder-large i {
    font-size: 5rem;
    margin-bottom: var(--space-lg);
    opacity: 0.3;
}

.tour-description h3 {
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.tour-highlights {
    background: var(--color-surface);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin: var(--space-lg) 0;
}

.tour-highlights p {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.tour-highlights i {
    color: var(--color-warning);
}

/* === SIDEBAR === */
.form-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.sidebar-box {
    background: var(--color-background);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-warning);
}

.sidebar-box h3 {
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    font-size: var(--font-size-lg);
}

.sidebar-box ul {
    list-style: none;
}

.sidebar-box ul li {
    padding: var(--space-sm) 0;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.sidebar-box ul li i {
    color: var(--color-warning);
    font-size: var(--font-size-base);
}

.sidebar-box.social .social-links.large {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

.sidebar-box.social .social-links.large a {
    width: 50px;
    height: 50px;
    font-size: var(--font-size-lg);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .program-detail-content,
    .branch-intro-content,
    .location-content,
    .tour-content,
    .contact-form-container,
    .news-grid,
    .vm-grid,
    .about-preview-content,
    .contact-teaser-content,
    .other-branch-content,
    .message-content {
        grid-template-columns: 1fr;
    }

    .message-content.reverse {
        grid-template-columns: 1fr;
    }

    .message-content.reverse .message-text {
        order: 1;
    }

    .message-content.reverse .message-image {
        order: 2;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--color-surface);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: var(--space-lg) 0;
        gap: 0;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: var(--space-md) 0;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--color-secondary);
        margin-top: var(--space-sm);
    }

    h1 { font-size: var(--font-size-3xl); }
    h2 { font-size: var(--font-size-2xl); }
    h3 { font-size: var(--font-size-xl); }

    .hero-text h1 { font-size: var(--font-size-3xl); }

    .gallery-preview-item.large {
        grid-column: span 1;
    }

    .activities-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .tab-button {
        width: 100%;
    }

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

    .announcements-list {
        grid-template-columns: 1fr;
    }

    .logo-img {
        height: 55px;
    }
}

/* Mobile Portrait - 480px breakpoint as required */
@media (max-width: 480px) {
    html {
        font-size: var(--font-size-sm);
    }

    .container {
        padding: 0 var(--space-md);
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-text h1 {
        font-size: var(--font-size-2xl);
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .section-header h2 {
        font-size: var(--font-size-2xl);
    }

    .stat-box {
        min-width: 120px;
    }

    .why-item,
    .why-branch-item {
        padding-left: var(--space-xl);
    }

    .why-number {
        left: var(--space-20);
        font-size: var(--font-size-3xl);
    }

    .logo-img {
        height: 50px;
    }

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

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

    .gallery-preview-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: var(--space-8) var(--space-12);
        font-size: var(--font-size-sm);
    }

    .btn-large {
        padding: var(--space-12) var(--space-20);
        font-size: var(--font-size-base);
    }

    .nav-container {
        padding: 0 var(--space-md);
    }

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

    .facilities-grid,
    .programs-grid,
    .values-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================
   KL WORLD SCHOOL - FINAL ENHANCED THEME
   ============================= */

/* ---- GLOBAL RESETS ---- */
* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--cream);
  color: var(--navy);
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  margin: 0;
  overflow-x: hidden;
}

/* ---- SECTION STYLING ---- */
section {
  padding: 80px 0;
  position: relative;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  color: var(--navy);
  font-weight: 700;
  font-size: 2rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gold);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* ---- BUTTONS ---- */
.btn, .btn-primary, .btn-secondary, .btn-outline {
  border: none;
  border-radius: 8px;
  padding: 12px 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

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

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-outline {
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

/* ---- HERO SECTION ---- */
.hero {
  position: relative;
  background: linear-gradient(rgba(15, 58, 111, 0.4), rgba(15, 58, 111, 0.4)), url('images/hero-bg.jpg') center/cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 120px 20px;
}

.hero h1 span {
  color: var(--gold);
}

.hero-buttons {
  margin-top: 25px;
}

.hero .btn {
  margin: 5px;
}

/* ---- ACTIVITIES & FEATURES FIX ---- */
.activities-features {
  background: var(--cream);
}

.activities-tabs {
  text-align: center;
  margin-bottom: 30px;
}

.tab-button {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s;
}

.tab-button.active, .tab-button:hover {
  background: var(--gold);
  color: var(--white);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.6s ease-in-out;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.activity-item {
  background: var(--white);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.activity-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.activity-item i {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 10px;
}

/* ---- GALLERY FIX ---- */
.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.gallery-preview-item {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s;
}

.gallery-preview-item:hover {
  transform: scale(1.03);
}

/* ---- TESTIMONIALS FIX ---- */
.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: var(--white);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

/* ---- FOOTER ---- */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer a {
  color: var(--gold);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}

section {
  animation: fadeIn 0.6s ease;
}


/* =============================
   KL WORLD SCHOOL - HERO & FOOTER DARKENED
   ============================= */

/* ---- HERO SECTION DARKENED ---- */
.hero {
  background: linear-gradient(rgba(15, 58, 111, 0.7), rgba(10, 30, 60, 0.7)), 
              url('images/hero-bg.jpg') center/cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 120px 20px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ---- FOOTER DARKENED ---- */
.footer {
  background: linear-gradient(180deg, #0d2f5a 0%, #071b36 100%);
  color: #f5f1e8;
  padding: 60px 0 20px;
  box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.2);
}

.footer h3 {
  color: #ffffff;
}

.footer p {
  color: #f5f1e8;
}

.footer a {
  color: #e8b339;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #ffd966;
  text-decoration: underline;
}


/* =============================================
   KL WORLD SCHOOL - FINAL ENHANCED + VISIBILITY FIX
   ============================================= */

/* ---- BUTTON VISIBILITY IMPROVEMENTS ---- */
.btn, .btn-primary, .btn-secondary, .btn-outline {
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.btn-primary {
  background: var(--navy);
  color: #ffffff; /* Pure white for dark buttons */
}

.btn-primary:hover {
  background: var(--gold);
  color: #ffffff;
}

.btn-secondary {
  background: var(--gold);
  color: #ffffff; /* Keep white text for gold buttons for uniform look */
}

.btn-secondary:hover {
  background: var(--navy);
  color: #ffffff;
}

.btn-outline {
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
}

.btn-outline:hover {
  background: var(--gold);
  color: #ffffff;
}

/* ---- HEADINGS VISIBILITY IMPROVEMENTS ---- */
.section-header h2,
.section-header h3,
.activity-item h4,
.program-card h3,
.facility-card h3,
.testimonial-card h4,
.about-preview h2,
.about-preview h3 {
  color: #0a2343; /* Deep navy for readability */
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* ---- TEXT CONTRAST IMPROVEMENTS ---- */
.activity-item p,
.program-card p,
.facility-card p,
.about-preview p,
.gallery-preview p,
.testimonial-card p,
.footer p {
  color: #1b355d; /* Darker navy for body text */
}

/* ---- SECTION BACKGROUND TEXT BALANCE ---- */
.about-preview,
.activities-features,
.programs-section,
.safety-facilities,
.gallery-preview,
.testimonials {
  color: #0a2343;
}

/* ---- TABS & LABELS ---- */
.tab-button {
  font-weight: 600;
  color: #0a2343;
  background: #f5f1e8;
  border: 1px solid var(--navy);
}

.tab-button.active, .tab-button:hover {
  background: var(--gold);
  color: #ffffff;
}

/* ---- FOOTER ENHANCEMENT (RETAIN DARK TONE) ---- */
.footer {
  background: linear-gradient(180deg, #0c2a54 0%, #061833 100%);
  color: #f5f1e8;
}

.footer h3 {
  color: #ffffff;
}

.footer p {
  color: #e0e0e0;
}

.footer a {
  color: #e8b339;
}

.footer a:hover {
  color: #ffdf73;
}

/* ---- HERO TEXT IMPROVEMENT ---- */
.hero h1, .hero h2, .hero p {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}



/* =============================================
   KL WORLD SCHOOL - FINAL READABILITY UPGRADE
   ============================================= */

/* ---- BUTTON TEXT COLOR FIX ---- */
.btn, .btn-primary, .btn-secondary, .btn-outline {
  font-weight: 700;
  text-shadow: none;
}

.btn-primary {
  background: var(--navy);
  color: #ffffff; /* White text for dark navy buttons */
}

.btn-primary:hover {
  background: var(--gold);
  color: #0f3a6f; /* Navy text on gold hover */
}

.btn-secondary {
  background: var(--gold);
  color: #0f3a6f; /* Navy text for gold buttons */
}

.btn-secondary:hover {
  background: var(--navy);
  color: #ffffff; /* White text for hover */
}

.btn-outline {
  border: 2px solid var(--navy);
  color: #0f3a6f;
  background: transparent;
}

.btn-outline:hover {
  background: var(--gold);
  color: #ffffff;
}

/* ---- HEADINGS (TITLES, SECTIONS, ACTIVITIES) ---- */
.section-header h2,
.section-header h3,
.activity-item h4,
.program-card h3,
.facility-card h3,
.testimonial-card h4,
.about-preview h2,
.about-preview h3,
.tab-button {
  color: #0a2343; /* Deep navy for clear visibility */
  font-weight: 700;
  text-shadow: none;
}

/* ---- BODY TEXT & PARAGRAPHS ---- */
p, li, span, .activity-item p, .program-card p, .facility-card p, .about-preview p, .gallery-preview p, .testimonial-card p, .footer p {
  color: #1a2f4f; /* Slightly lighter navy-gray for readability */
}

/* ---- SECTION COLOR BALANCE ---- */
.about-preview,
.activities-features,
.programs-section,
.safety-facilities,
.gallery-preview,
.testimonials {
  color: #0a2343;
}

/* ---- TABS ---- */
.tab-button {
  font-weight: 600;
  color: #0a2343;
  background: #f5f1e8;
  border: 1px solid var(--navy);
}

.tab-button.active, .tab-button:hover {
  background: var(--gold);
  color: #0f3a6f; /* Navy text for contrast */
}

/* ---- FOOTER REMAINS DARK ---- */
.footer {
  background: linear-gradient(180deg, #0c2a54 0%, #061833 100%);
  color: #f5f1e8;
}

.footer h3 {
  color: #ffffff;
}

.footer p {
  color: #e0e0e0;
}

.footer a {
  color: #e8b339;
}

.footer a:hover {
  color: #ffdf73;
}

/* ---- HERO SECTION ---- */
.hero h1, .hero h2, .hero p {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* --- SCHOOL BUTTON COLOR PATCH (2025-10-28) --- */

/* HOME PAGE HERO BUTTONS: Enquiry, Our Programs, Learn More - always white */
.hero .btn,
.hero .btn-primary,
.hero .btn-secondary,
.hero .btn-outline {
  color: #fff !important;
}
.hero .btn:hover,
.hero .btn-primary:hover,
.hero .btn-secondary:hover,
.hero .btn-outline:hover {
  color: #fff !important;
}

/* HOME PAGE ABOUT US: Read More About Us - always blue */
.about-preview .btn,
.about-preview .btn-primary {
  color: #0f3a6f !important;
}
.about-preview .btn:hover,
.about-preview .btn-primary:hover {
  color: #0f3a6f !important;
}

/* HOME PAGE QUICK ENQUIRY: Submit Query - always blue */
.enquiry-form .btn,
.enquiry-form .btn-primary {
  color: #0f3a6f !important;
}
.enquiry-form .btn:hover,
.enquiry-form .btn-primary:hover {
  color: #0f3a6f !important;
}

/* HOME PAGE OTHER BRANCH: Visit Branch 2 website - always blue */
.other-branch .btn,
.other-branch .btn-primary {
  color: #0f3a6f !important;
}
.other-branch .btn:hover,
.other-branch .btn-primary:hover {
  color: #0f3a6f !important;
}

/* ABOUT US PAGE: Contact Us, View Programs - always white */
.about-page .btn,
.about-page .btn-primary,
.about-page .btn-outline {
  color: #fff !important;
}
.about-page .btn:hover,
.about-page .btn-primary:hover,
.about-page .btn-outline:hover {
  color: #fff !important;
}

/* PROGRAMS PAGE: Enroll Now, Register Now - always blue */
.programs-section .btn,
.programs-section .btn-primary {
  color: #0f3a6f !important;
}
.programs-section .btn:hover,
.programs-section .btn-primary:hover {
  color: #0f3a6f !important;
}

/* PROGRAMS PAGE: Request Information, Schedule a Tour - always white */
.programs-section .btn-outline,
.programs-section .btn-secondary {
  color: #fff !important;
}
.programs-section .btn-outline:hover,
.programs-section .btn-secondary:hover {
  color: #fff !important;
}

/* CONTACT PAGE: Send Inquiry - always blue */
.contact-form .btn,
.contact-form .btn-primary {
  color: #0f3a6f !important;
}
.contact-form .btn:hover,
.contact-form .btn-primary:hover {
  color: #0f3a6f !important;
}

/* CONTACT PAGE: Social Media Buttons - always blue */
.social-links a {
  background: #0f3a6f !important;
  color: #fff !important;
}
.social-links a:hover {
  background: #0f3a6f !important;
  color: #fff !important;
}

/* --- END PATCH --- */

/* --- EXTRA BUTTON COLOR PATCH (2025-10-28) --- */

/* Home: View Full Gallery btn - always blue */
.gallery-preview .btn-primary,
.gallery-preview .btn-primary:visited{
  color: #0f3a6f !important;
}
.gallery-preview .btn-primary:hover,
.gallery-preview .btn-primary:focus{
  color: #0f3a6f !important;
}

/* Home: Submit Enquiry in Contact Teaser - always blue */
.contact-teaser-form .btn-primary,
.contact-teaser-form .btn-primary:visited{
  color: #0f3a6f !important;
}
.contact-teaser-form .btn-primary:hover,
.contact-teaser-form .btn-primary:focus{
  color: #0f3a6f !important;
}

/* Programs page: All Enroll Now btns - always blue */
.program-detail .btn-primary,
.program-detail .btn-primary:visited {
  color: #0f3a6f !important;
}
.program-detail .btn-primary:hover,
.program-detail .btn-primary:focus {
  color: #0f3a6f !important;
}

/* Programs page: Register Now (if present) - always blue */
.program-detail .btn-primary.register-now,
.program-detail .btn-primary.register-now:visited {
  color: #0f3a6f !important;
}
.program-detail .btn-primary.register-now:hover,
.program-detail .btn-primary.register-now:focus {
  color: #0f3a6f !important;
}
/* --- PATCH FOR SPECIAL WHITE BUTTONS (2025-10-28) --- */

/* ABOUT US PAGE: Contact Us and View Programs should be white always */
.about-page .cta-buttons .btn,
.about-page .cta-buttons .btn-primary,
.about-page .cta-buttons .btn-outline,
.about-page .cta-buttons .btn-secondary {
  color: #fff !important;
}
.about-page .cta-buttons .btn:hover,
.about-page .cta-buttons .btn-primary:hover,
.about-page .cta-buttons .btn-outline:hover,
.about-page .cta-buttons .btn-secondary:hover {
  color: #fff !important;
}

/* PROGRAMS PAGE: Schedule a Tour and Request Information should be white always */
.cta-section .cta-buttons .btn-secondary,
.cta-section .cta-buttons .btn-primary,
.cta-section .cta-buttons .btn {
  color: #fff !important;
}
.cta-section .cta-buttons .btn-secondary:hover,
.cta-section .cta-buttons .btn-primary:hover,
.cta-section .cta-buttons .btn:hover {
  color: #fff !important;
}


/* Your original styles above remain untouched */

/* Prevent horizontal scroll */
html, body {
  overflow-x: hidden;
}

/* Hamburger visibility and style */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  outline: none;
}
.hamburger:focus {
  box-shadow: 0 0 0 3px #e8b339;
}
.hamburger .bar {
  width: 25px;
  height: 3px;
  background: var(--color-brown-600);
  border-radius: 3px;
  transition: all 0.3s ease;
}
.hamburger.open .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.open .bar:nth-child(2) {
  opacity: 0;
}
.hamburger.open .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Navigation menu responsive */
@media (max-width: 1024px) {
  .nav-menu {
    flex-direction: column;
    position: fixed;
    left: -100%;
    top: 60px;
    width: 100vw;
    background: var(--color-white);
    box-shadow: 0 4px 16px rgba(26, 73, 113, 0.15);
    padding: 20px 0;
    gap: 0;
    transition: left 0.3s ease-in-out;
    z-index: 999;
  }
  .nav-menu.active {
    left: 0;
  }
  .hamburger {
    display: flex;
  }
}

@media (max-width: 768px) {
  .header {
    height: 60px;
  }
  body {
    padding-top: 60px;
  }
  .container {
    padding: 0 8px;
  }
  .about-preview-content,
  .programs-grid,
  .facilities-grid,
  .gallery-preview-grid,
  .testimonials-slider {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .container {
    width: 98%;
    max-width: 100%;
  }
  .hero {
    padding: 70px 0 40px;
  }
  .hero-text h1 {
    font-size: 1.4rem;
  }
  .btn,
  .btn-primary,
  .btn-secondary {
    min-height: 44px;
    font-size: 1rem;
    width: 100%;
    margin-bottom: 8px;
  }
  img,
  .logo-img {
    max-width: 100%;
    height: auto;
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    font-size: 1rem;
  }
  .gallery-preview-item,
  .image-placeholder {
    width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .logo-img {
    max-width: 100px; /* Smaller size on mobile */
  }
}

.logo-img {
  max-width: 50px; /* Or any smaller value that fits well */
  height: auto; /* Maintains aspect ratio */
  /* Optionally add margin or padding */
  display: block;
}

.gallery-filter-menu {
  text-align: center;
  margin-bottom: var(--space-3xl);
}
.gallery-filter-menu .filter-btn {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border: none;
  cursor: pointer;
  font-weight: 600;
  margin: 0 0.25rem 0.5rem 0.25rem;
  border-radius: var(--radius-md);
  transition: background 0.3s ease;
}
.gallery-filter-menu .filter-btn:hover,
.gallery-filter-menu .filter-btn.active {
  background: var(--color-secondary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

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

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}



.gallery-item {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  background: #fff;
}
.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;          /* Crucial to fill height */
  object-fit: cover;     /* Fills box without distortion */
  object-position: center;
  display: block;
  margin: 0;             /* Remove default margins */
  padding: 2.5%;            /* Remove default padding */
}
.gallery-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.gallery-item-2x3 {
  aspect-ratio: 2 / 3;      /* Portrait (taller than wide) */
  grid-column: span 1;      /* Keeps it in same grid structure */
}
.gallery-item-2x3 img {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* Fills the grid cell */
  object-position: center;
  display: block;
  padding: 2.5%;
}
.gallery-item-3x2 {
  aspect-ratio: 3 / 2;      /* Wider than tall (landscape) */
  grid-column: span 1;      /* Keeps grid structure */
}
.gallery-item-3x2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* Crops to fill if original is not exact 3x2 */
  object-position: center;
  display: block;
  padding: 2.5%;
}

.image-placeholder {
  width: 450px; /* Exact width used by placeholder */
  height: 450px; /* Exact height used by placeholder */
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl); /* Matches placeholder rounding */
  box-shadow: var(--shadow-xl);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Prevent blank space, fills container */
  object-position: center;
  display: block;
  border-radius: inherit;
  margin: 0;
  padding: 1%;
}

/* Gallery preview grid - smaller than full gallery */
.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;              /* Smaller than 1000px full gallery */
  margin: 0 auto;
  gap: var(--space-lg);
}

.gallery-preview-item {
  aspect-ratio: 1;
  width: 100%;
  max-width: 250px;              /* Explicitly limit width */
  height: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin: 0 auto;
}

.gallery-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: inherit;
}

/* Remove the .large styling if it exists */
.gallery-preview-item.large {
  max-width: 250px;
  grid-column: span 1;
  aspect-ratio: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-preview-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
  }
}

@media (max-width: 480px) {
  .gallery-preview-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}

/* Gallery Preview - Force Smaller Size */
.gallery-preview-grid {
  max-width: 750px !important;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
}

.gallery-preview-item {
  max-width: 200px !important;
  width: 100% !important;
  aspect-ratio: 1 !important;
  margin: 0 auto !important;
}

.gallery-preview-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

.gallery-preview-item.large {
  max-width: 200px !important;
}

@media (max-width: 768px) {
  .gallery-preview-grid {
    max-width: 500px !important;
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .gallery-preview-grid {
    max-width: 100% !important;
    grid-template-columns: 1fr !important;
  }
}

.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 850px;
  margin: 0 auto var(--space-2xl);
  gap: var(--space-lg);
}

.gallery-preview-item {
  aspect-ratio: 1;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2.5%;
}

.gallery-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

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

@media (max-width: 480px) {
  .gallery-preview-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}

/* Add spacing between different gallery sections */
.gallery-grid {
  margin-bottom: 48px; /* Adds gap between sections */
}

/* Optional: Add a subtle divider line */
.gallery-grid:not(:last-child) {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-gray-200); /* or #e5e5e5 */
}

.about-preview-image {
  position: relative;
}

.image-placeholder {
  width: 100%;
  aspect-ratio: 3 / 2;  /* CHANGE FROM 4/3 to 3/2 */
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
}

.image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: inherit;
  margin: 0;
  padding: 1%;
}

/* Hide the icon when image is present */
.image-placeholder i {
  display: none;
}



