/* ============================================
   COOB — Centar za obrazovanje odraslih
   Design System & Complete Styles
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Primary — Dark Blue */
  --blue-900: #0a1128;
  --blue-950: #050814; /* Deep Space Navy */
  --blue-800: #0f1b3d;
  --blue-700: #162044;
  --blue-600: #1d2b5a;
  --blue-500: #2a3f7e;
  --blue-400: #3b5998;
  --blue-300: #6b8cce;

  /* Accent — Red */
  --red-600: #c41e24;
  --red-500: #dc2626;
  --red-400: #ef4444;
  --red-300: #f87171;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Gradients */
  --gradient-blue: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-900) 100%);
  --gradient-red: linear-gradient(135deg, var(--red-500) 0%, var(--red-600) 100%);
  --gradient-hero: linear-gradient(135deg, rgba(10, 17, 40, 0.92) 0%, rgba(15, 27, 61, 0.85) 50%, rgba(196, 30, 36, 0.6) 100%);
  --gradient-accent: linear-gradient(135deg, var(--red-500), var(--blue-500));

  /* Glass */
  --glass-bg: rgba(15, 27, 61, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  --container-padding: 0 24px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.3);
  --shadow-glow-red: 0 0 30px rgba(220, 38, 38, 0.3);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  line-height: 1.2;
  font-weight: 700;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

/* ---------- Utility Classes ---------- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red-500);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--red-500);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--blue-800);
  margin-bottom: 20px;
}

.section-title--light {
  color: var(--white);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 600px;
  line-height: 1.8;
}

.section-subtitle--light {
  color: var(--gray-300);
}

/* Scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
  background: var(--blue-950);
  color: var(--gray-300);
  font-size: 0.8125rem;
  height: 40px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.top-bar__left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.top-bar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition-fast);
}

.top-bar__item:hover {
  color: var(--white);
}

.top-bar__item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.7;
}

.top-bar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  transition: all var(--transition-fast);
}

.top-bar__social:hover {
  background: var(--red-500);
  transform: translateY(-2px);
}

.top-bar__social svg {
  width: 14px;
  height: 14px;
  fill: var(--gray-300);
}

.top-bar__social:hover svg {
  fill: var(--white);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 17, 40, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--transition-base), border var(--transition-base), box-shadow var(--transition-base);
}

.navbar.scrolled {
  position: fixed;
  top: 0;
  background: rgba(10, 17, 40, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-bottom: 1.5px solid rgba(196, 30, 36, 0.8);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.navbar__logo-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.navbar__logo-text {
  display: flex;
  flex-direction: column;
}

.navbar__logo-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--white);
  line-height: 1.2;
}

.navbar__logo-desc {
  font-size: 0.6875rem;
  color: var(--gray-400);
  letter-spacing: 0.5px;
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar__item {
  position: relative;
}

.navbar__link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-300);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.navbar__link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.navbar__link svg {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.navbar__item:hover .navbar__link svg {
  transform: rotate(180deg);
  color: var(--red-400);
}

/* Dropdown */
.navbar__dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 230px;
  background: rgba(10, 17, 40, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 3px solid var(--red-600);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
}

.navbar__item:hover .navbar__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar__dropdown-link {
  display: block;
  padding: 10px 16px;
  font-size: 0.875rem;
  color: var(--gray-300);
  border-left: 0px solid transparent;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.navbar__dropdown-link:hover {
  color: var(--white);
  background: rgba(196, 30, 36, 0.1);
  padding-left: 20px;
  border-left: 3px solid var(--red-600);
}

/* CTA Button in nav */
.navbar__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--gradient-red);
  color: var(--white);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  margin-left: 12px;
  transition: all var(--transition-base);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.navbar__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(220, 38, 38, 0.5), 0 0 0 4px rgba(220, 38, 38, 0.15);
}

/* Mobile toggle */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
}

.navbar__toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.navbar__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--blue-900);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 20% center;
  transform: scale(1.1);
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 2;
}

/* Animated particles/shapes background */
.hero__shapes {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.hero__shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  animation: float 20s infinite ease-in-out;
}

.hero__shape--1 {
  width: 400px;
  height: 400px;
  background: var(--red-500);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.hero__shape--2 {
  width: 300px;
  height: 300px;
  background: var(--blue-400);
  bottom: -50px;
  left: -50px;
  animation-delay: -5s;
}

.hero__shape--3 {
  width: 200px;
  height: 200px;
  background: var(--red-400);
  top: 50%;
  right: 20%;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(20px, 10px) scale(1.02); }
}

.hero__content {
  position: relative;
  z-index: 4;
  max-width: 700px;
  padding: 120px 0;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 50px;
  color: var(--red-300);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero__badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--red-400);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero__title {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.1;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero__title span {
  background: linear-gradient(135deg, var(--red-400), var(--red-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__description {
  font-size: 1.1875rem;
  color: var(--gray-300);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 550px;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  cursor: pointer;
}

.btn--primary {
  background: var(--gradient-red);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.35);
  border: none;
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(220, 38, 38, 0.5);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

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

.btn svg {
  width: 18px;
  height: 18px;
}

/* Hero scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gray-400);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeInUp 0.8s ease 1s both;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--red-500), transparent);
  animation: scroll-line 2s infinite ease-in-out;
}

@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

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

/* ============================================
   STATS / ABOUT SECTION (REDESIGNED)
   ============================================ */
.stats {
  padding: var(--section-padding);
  background: var(--white);
  position: relative;
}

/* Tier 1: School Grid (60/40) */
.school-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: stretch;
  margin-bottom: 64px;
}

.school-grid__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.school-grid__text {
  font-size: 1.0625rem;
  color: var(--gray-600);
  line-height: 1.9;
  margin-bottom: 24px;
}

.school-grid__text:last-child {
  margin-bottom: 0;
}

/* Registry Card */
.registry-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--red-600);
  border-radius: var(--radius-md);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.registry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
  border-left-color: var(--red-600);
}

.registry-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.registry-card__icon {
  background: rgba(220, 38, 38, 0.08);
  color: var(--red-600);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.registry-card__icon svg {
  width: 22px;
  height: 22px;
}

.registry-card__title {
  font-size: 1.3rem;
  color: var(--blue-800);
  font-weight: 700;
  margin: 0;
}

.registry-card__text {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 24px;
}

.registry-card__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  border-top: 1px solid var(--gray-200);
  padding-top: 24px;
}

.registry-card__meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.registry-card__meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  font-weight: 600;
}

.registry-card__meta-value {
  font-size: 1rem;
  color: var(--blue-900);
  font-weight: 700;
}

/* Tier 2: Stats Ribbon */
.stats-ribbon {
  background: var(--blue-900);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 64px;
  box-shadow: var(--shadow-lg);
}

.stats-ribbon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(22, 32, 68, 0) 100%);
  pointer-events: none;
}

.stats-ribbon__item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.stats-ribbon__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -16px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

/* We preserve stat-card__number classes for javascript compatibility */
.stat-card__number {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card__number span {
  color: var(--red-500);
}

.stats-ribbon__label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Tier 3: License Grid */
.license-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.license-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 4px solid var(--blue-800);
  border-radius: var(--radius-md);
  padding: 40px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.license-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-200);
  border-top-color: var(--red-600);
}

.license-card__header {
  margin-bottom: 24px;
}

.license-card__tag {
  display: inline-block;
  background: rgba(15, 27, 61, 0.05);
  color: var(--blue-800);
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.license-card:hover .license-card__tag {
  background: rgba(220, 38, 38, 0.08);
  color: var(--red-600);
}

.license-card__title {
  font-size: 1.3rem;
  color: var(--blue-800);
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 10px 0;
}

.license-card__date {
  font-size: 0.8125rem;
  color: var(--gray-400);
  font-weight: 600;
}

.license-card__text {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 24px;
  flex-grow: 1;
}

.license-card__list {
  margin: 0;
  padding-left: 20px;
  list-style-type: disc;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--gray-600);
}

.license-card__list li {
  line-height: 1.7;
}

.license-card__list li strong {
  color: var(--blue-900);
}

/* ============================================
   PROGRAMS SECTION
   ============================================ */
.programs {
  padding: var(--section-padding);
  background: var(--blue-900);
  position: relative;
  overflow: hidden;
}

.programs::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.programs__header {
  text-align: center;
  margin-bottom: 64px;
}

.programs__header .section-subtitle {
  margin: 0 auto;
}

.programs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.program-card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 44px 32px 36px;
  transition: all var(--transition-slow);
  overflow: hidden;
}

.program-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.3), transparent, rgba(59, 89, 152, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  background: rgba(15, 27, 61, 0.85);
}

.program-card:hover::before {
  opacity: 1;
}

.program-card__icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), rgba(220, 38, 38, 0.05));
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  transition: all var(--transition-base);
}

.program-card:hover .program-card__icon {
  background: var(--gradient-red);
  border-color: transparent;
  box-shadow: var(--shadow-glow-red);
}

.program-card__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--red-400);
  fill: none;
  stroke-width: 2;
  transition: stroke var(--transition-base);
}

.program-card:hover .program-card__icon svg {
  stroke: var(--white);
}

.program-card__title {
  font-size: 1.375rem;
  color: var(--white);
  margin-bottom: 16px;
}

.program-card__text {
  font-size: 0.9375rem;
  color: var(--gray-400);
  line-height: 1.8;
  margin-bottom: 28px;
}

.program-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--red-400);
  transition: all var(--transition-fast);
}

.program-card__link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.program-card__link:hover {
  color: var(--red-300);
}

.program-card__link:hover svg {
  transform: translateX(4px);
}

/* ============================================
   INSTITUTIONS SECTION
   ============================================ */
.institutions {
  padding: var(--section-padding);
  background: var(--gray-50);
  position: relative;
}

.institutions__header {
  text-align: center;
  margin-bottom: 64px;
}

.institutions__header .section-subtitle {
  margin: 0 auto;
}

.institutions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.institution-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-slow);
  display: flex;
  flex-direction: column;
}

.institution-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--red-300);
}

.institution-card__image {
  height: 180px;
  background: var(--gradient-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

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

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

.institution-card__image--placeholder {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 2px;
}

.institution-card__body {
  padding: 28px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.institution-card__title {
  font-size: 1.1875rem;
  color: var(--blue-800);
  margin-bottom: 12px;
}

.institution-card__text {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 24px;
  flex: 1;
}

.institution-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--red-500);
  transition: all var(--transition-fast);
  align-self: flex-start;
}

.institution-card__link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.institution-card__link:hover {
  color: var(--red-600);
}

.institution-card__link:hover svg {
  transform: translateX(4px);
}

/* ============================================
   MAP / CONTACT SECTION
   ============================================ */
.location {
  padding: var(--section-padding);
  background: var(--white);
}

.location__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.location__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 450px;
  border: 1px solid var(--gray-200);
}

.location__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.location__info {
  padding: 20px 0;
}

.location__info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.location__info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.location__info-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.location__info-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--red-500);
  fill: none;
  stroke-width: 2;
}

.location__info-label {
  font-size: 0.8125rem;
  color: var(--gray-400);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.location__info-value {
  font-size: 1rem;
  color: var(--gray-800);
  font-weight: 500;
}

.location__info-value a {
  color: var(--blue-600);
  transition: color var(--transition-fast);
}

.location__info-value a:hover {
  color: var(--red-500);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
  padding: 80px 0;
  background: var(--gradient-red);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.cta::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.cta .container {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--white);
  margin-bottom: 16px;
}

.cta__text {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.btn--white {
  background: var(--white);
  color: var(--red-600);
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn--white:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--blue-900);
  color: var(--gray-300);
  padding: 80px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__brand {
  max-width: 320px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer__logo-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.footer__logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--white);
}

.footer__desc {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--gray-400);
  margin-bottom: 24px;
}

.footer__slogan {
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--red-400);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer__socials {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.footer__social-link {
  color: var(--gray-400);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__social-link:hover {
  color: var(--white);
  background: var(--red-600);
  border-color: var(--red-500);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer__heading {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link {
  font-size: 0.9375rem;
  color: var(--gray-400);
  transition: all var(--transition-fast);
}

.footer__link:hover {
  color: var(--white);
  padding-left: 6px;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9375rem;
}

.footer__contact-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--red-400);
  fill: none;
  stroke-width: 2;
  margin-top: 4px;
  flex-shrink: 0;
}

.footer__bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copyright {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.footer__bottom-links {
  display: flex;
  gap: 24px;
}

.footer__bottom-link {
  font-size: 0.8125rem;
  color: var(--gray-500);
  transition: color var(--transition-fast);
}

.footer__bottom-link:hover {
  color: var(--white);
}

/* Footer data section */
.footer__data {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.footer__data-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__data-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.footer__data-value {
  font-size: 0.9375rem;
  color: var(--gray-300);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .school-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .license-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

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

  .institutions__grid .institution-card:last-child {
    grid-column: span 2;
    max-width: 50%;
    justify-self: center;
  }

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

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer__brand {
    grid-column: span 2;
    max-width: 100%;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-padding: 64px 0;
    --container-padding: 0 20px;
  }

  /* Top bar */
  .top-bar {
    display: none;
  }

  /* Navbar */
  .navbar {
    position: fixed !important;
    top: 0 !important;
    background: rgba(10, 17, 40, 0.98) !important;
    transform: none !important;
    animation: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
  }

  .navbar__toggle {
    display: flex;
    z-index: 1002;
  }

  .navbar__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - 100%);
    background: var(--blue-900);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    overflow-y: auto;
    z-index: 1001;
    box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.25);
  }

  .navbar__menu.active {
    transform: translateX(0);
  }

  .navbar__link {
    padding: 14px 16px;
    font-size: 1rem;
  }

  .navbar__dropdown {
    position: static;
    opacity: 0;
    visibility: hidden;
    transform: none;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    border-top: none !important;
    box-shadow: none;
    margin-top: 0;
    border-radius: var(--radius-sm);
    display: block;
    max-height: 0;
    overflow: hidden;
    padding: 0 8px;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding 0.35s ease, margin 0.35s ease, visibility 0.35s;
  }

  .navbar__item.dropdown-open .navbar__dropdown {
    max-height: 250px;
    opacity: 1;
    visibility: visible;
    margin-top: 8px;
    padding: 8px;
  }

  .navbar__item.dropdown-open .navbar__link svg {
    transform: rotate(180deg);
    color: var(--red-400);
  }

  .navbar__cta {
    margin-left: 0;
    margin-top: 12px;
    justify-content: center;
  }

  .hero__bg img {
    object-position: 20% center;
  }

  /* Hero */
  .hero {
    min-height: 90vh;
  }

  .hero__content {
    padding: 80px 0;
    text-align: center;
    max-width: 100%;
  }

  .hero__badge {
    font-size: 0.6875rem;
    padding: 6px 14px;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
  }

  .hero__title {
    font-size: 2.25rem;
    line-height: 1.2;
  }

  .hero__description {
    font-size: 1rem;
    line-height: 1.65;
  }

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

  .hero__scroll {
    display: none;
  }

  /* Stats / About Redesign */
  .school-grid {
    gap: 32px;
  }

  .registry-card {
    padding: 32px 24px;
  }

  .stats-ribbon {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
    padding: 32px 20px;
    margin-bottom: 48px;
  }

  .stats-ribbon__item:not(:last-child)::after {
    display: none;
  }

  .stat-card__number {
    font-size: 2.25rem;
  }

  .license-card {
    padding: 32px 24px;
  }

  /* Programs */
  .programs__grid {
    grid-template-columns: 1fr;
  }

  /* Institutions */
  .institutions__grid {
    grid-template-columns: 1fr;
  }

  .institutions__grid .institution-card:last-child {
    grid-column: span 1;
    max-width: 100%;
  }

  /* Location */
  .location__map {
    height: 300px;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__brand {
    grid-column: span 1;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

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

/* Small mobile */
@media (max-width: 480px) {
  .hero__title {
    font-size: 2rem;
  }

  .stats-ribbon {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .btn {
    padding: 14px 28px;
    font-size: 0.9375rem;
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   PRELOADER (Optional)
   ============================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--blue-900);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader__spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--red-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   SUBPAGES (Prekvalifikacija, Dokvalifikacija, Osposobljavanje)
   ============================================ */
.subpage-hero {
  position: relative;
  padding: 120px 0 60px;
  background: var(--blue-900);
  background-image: linear-gradient(135deg, rgba(10, 17, 40, 0.95) 0%, rgba(15, 27, 61, 0.9) 100%), url('assets/hero.jpg');
  background-size: cover;
  background-position: 15% center;
  border-bottom: 2px solid var(--red-500);
  text-align: center;
}

.subpage-hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--white);
  margin-bottom: 12px;
}

.subpage-hero__breadcrumbs {
  font-size: 0.875rem;
  color: var(--gray-400);
  display: flex;
  justify-content: center;
  gap: 8px;
}

.subpage-hero__breadcrumbs a {
  color: var(--red-400);
}

.subpage-hero__breadcrumbs a:hover {
  color: var(--white);
}

.subpage-content {
  padding: 80px 0;
  background: var(--white);
}

.subpage-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

.subpage-section {
  margin-bottom: 48px;
}

.subpage-section__title {
  font-size: 1.75rem;
  color: var(--blue-800);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 10px;
}

.subpage-section__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--red-500);
  border-radius: 2px;
}

.doc-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.doc-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.doc-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  color: var(--gray-700);
}

.doc-item svg {
  width: 20px;
  height: 20px;
  stroke: var(--red-500);
  fill: none;
  stroke-width: 2.5;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Elegant Table */
.elegant-table-container {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  margin-top: 24px;
}

.elegant-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}

.elegant-table th, .elegant-table td {
  padding: 16px 24px;
}

.elegant-table th {
  background: var(--blue-800);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 1px;
}

.elegant-table tr {
  border-bottom: 1px solid var(--gray-200);
  transition: background var(--transition-fast);
}

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

.elegant-table tr:nth-child(even) {
  background: var(--gray-50);
}

.elegant-table tr:hover {
  background: rgba(220, 38, 38, 0.03);
}

.elegant-table td strong {
  color: var(--blue-800);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-item {
  background: rgba(15, 27, 61, 0.06);
  color: var(--blue-800);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.tag-item:hover {
  background: var(--red-500);
  color: var(--white);
}

/* Sidebar Flyers */
.sidebar-box {
  background: var(--blue-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.sidebar-box--cta {
  background: var(--gradient-red);
}

.sidebar-box__title {
  font-size: 1.375rem;
  margin-bottom: 16px;
  color: var(--white);
}

.flyers-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.flyer-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.flyer-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--red-500);
}

.flyer-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(220, 38, 38, 0.3);
  box-shadow: var(--shadow-md);
}

.flyer-item__badge {
  align-self: flex-start;
  background: var(--red-600);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.flyer-item__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
}

.flyer-item__action {
  font-size: 0.875rem;
  color: var(--red-400);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.flyer-item__action svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.flyer-item:hover .flyer-item__action svg {
  transform: translateX(3px);
}

@media (max-width: 1024px) {
  .subpage-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Mobile Subpage Layout Adjustments */
@media (max-width: 768px) {
  .elegant-table-container {
    border: none;
    box-shadow: none;
    margin-top: 16px;
    overflow: visible;
  }

  .elegant-table, 
  .elegant-table tbody, 
  .elegant-table tr, 
  .elegant-table td, 
  .elegant-table th {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
  }

  .elegant-table thead {
    display: none;
  }

  .elegant-table tr {
    background: var(--gray-50);
    border: 1px solid var(--gray-200) !important;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
  }

  .elegant-table tr:nth-child(even) {
    background: var(--white);
  }

  .elegant-table td {
    padding: 0 !important;
    border: none !important;
  }

  .elegant-table td:first-child {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blue-800);
    margin-bottom: 12px;
    border-bottom: 1px solid var(--gray-200) !important;
    padding-bottom: 8px !important;
  }
  
  .subpage-content {
    padding: 48px 0;
  }
}


