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

* {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-height: 90vh;
  max-width: 90vw;
  border-radius: 0.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.3);
  color: white;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
  transform: rotate(90deg);
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

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

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #fbbf24;
  transition: width 0.3s ease;
}

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

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-menu.active {
  max-height: 500px;
}

.section-title {
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #4f46e5, #fbbf24);
  border-radius: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(251, 191, 36, 0.4);
}

#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

#back-to-top:hover {
  transform: translateY(-3px);
}

.fc-day {
  aspect-ratio: 1;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #312e81;
}

.fc-day:hover {
  background: #eef2ff;
}

.fc-day.has-course {
  background: #fde68a;
  font-weight: 700;
}

.fc-day.selected {
  outline: 2px solid #4f46e5;
  outline-offset: -2px;
}

.fc-day.outside {
  color: #d1d5db;
}

section[id] {
  scroll-margin-top: 7rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 42%, #6d28d9 100%);
  padding: 3.25rem 1.25rem 4.75rem;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.16) 1px, transparent 0);
  background-size: 22px 22px;
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 72rem;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(2.05rem, 4vw, 3.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.page-hero .lead {
  margin-top: 0.85rem;
  max-width: 42rem;
  color: #e0e7ff;
  font-size: 1.125rem;
  line-height: 1.65;
}

.page-hero .lead a {
  color: #fde68a;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-hero .crumb {
  margin-bottom: 0.85rem;
  font-size: 0.875rem;
  color: #fde68a;
}

.page-hero .crumb a {
  color: #fde68a;
  text-decoration: none;
}

.page-hero .crumb a:hover {
  text-decoration: underline;
}

.page-hero .badge {
  display: inline-block;
  margin-bottom: 0.9rem;
  background: #fbbf24;
  color: #1e1b4b;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

.page-sheet {
  position: relative;
  z-index: 2;
  margin-top: -2.25rem;
}

.article-card {
  position: relative;
  z-index: 2;
  max-width: 48rem;
  margin: -2.4rem auto 0;
  background: #fff;
  border-radius: 1.35rem;
  box-shadow: 0 22px 55px rgba(30, 27, 75, 0.14);
  padding: 1.75rem 1.25rem 2.25rem;
}

.article-card h2 {
  margin-top: 2.15rem;
  margin-bottom: 0.7rem;
  color: #312e81;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
}

.article-card p,
.article-card li {
  color: #374151;
  line-height: 1.7;
}

.article-card p + p {
  margin-top: 0.9rem;
}

.article-card ul,
.article-card ol {
  margin: 0.6rem 0 0.4rem;
  padding-left: 1.25rem;
}

.article-card li + li {
  margin-top: 0.45rem;
}

.article-card a:not(.btn-primary) {
  color: #4338ca;
  font-weight: 600;
}

.article-card a:not(.btn-primary):hover {
  text-decoration: underline;
}

.article-card a.btn-primary {
  color: #fff;
  text-decoration: none;
}

.article-card .callout {
  margin-top: 1rem;
  background: #fffbeb;
  border-left: 4px solid #fbbf24;
  border-radius: 0 0.85rem 0.85rem 0;
  padding: 1rem 1.1rem;
}

.hero-dots {
  position: relative;
  overflow: hidden;
}

.hero-dots::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.14) 1px, transparent 0);
  background-size: 22px 22px;
  pointer-events: none;
}

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

@media (min-width: 768px) {
  .article-card {
    padding: 2.6rem 3rem 2.8rem;
  }
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  max-width: 46rem;
  margin: 0 auto;
  background: #142b45;
  color: #fff;
  border-radius: 1rem;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.cookie-banner p {
  margin: 0;
  line-height: 1.5;
}

.cookie-banner a {
  color: #fde68a;
  font-weight: 700;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.cookie-actions button {
  border-radius: 0.6rem;
  padding: 0.55rem 1rem;
  font-weight: 700;
  cursor: pointer;
}

.cookie-accept {
  background: #fbbf24;
  color: #142b45;
  border: 2px solid #fbbf24;
}

.cookie-refuse {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
