/* Styles specific to the AI Act information page */

/* Layout */
.act-main {
  padding: 2rem 0;
}


.act-section {
  max-width: 1100px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
  line-height: 1.6;
  opacity: 0;
  animation: fade-in-up 0.6s ease forwards;
}

.act-section h2 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin-bottom: 1rem;
  color: var(--brand2);
}

.act-section p {
  margin-bottom: 1rem;
}

/* Hero */
.hero-ai-act {
  position: relative;
  background: radial-gradient(circle at center, rgba(1, 10, 29, 0.4), rgba(1, 10, 29, 0.9)),
    url('../assets/EUAI.png') center/cover no-repeat;
  text-align: center;
  padding: clamp(6rem, 20vw, 10rem) 1rem;
  color: #fff;
}
.hero-ai-act::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(1, 10, 29, 0.6);
  z-index: 0;
}
.hero-ai-act .hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  z-index: 1;
}
.hero-ai-act h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 1rem;
  color: var(--brand3);
}
.hero-ai-act p {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  line-height: 1.7;
  color: #fff;
}

/* Overview and obligation layout with imagery */
.overview-grid,
.obligations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.overview-image,
.obligations-image {
  text-align: center;
}
.overview-image img,
.obligations-image img {
  max-width: 420px;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  -webkit-mask-image: radial-gradient(circle, #000 60%, transparent 100%);
  mask-image: radial-gradient(circle, #000 60%, transparent 100%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.overview-image img:hover,
.obligations-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* Risk category cards */
.risk-grid {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.risk-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.risk-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.risk-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

/* Timeline for deadlines */
.act-timeline {
  position: relative;
  margin: 2rem auto;
  padding-left: 2rem;
  border-left: 3px solid var(--brand1);
  max-width: 600px;
}

.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
  transition: background 0.3s ease, padding-left 0.3s ease;
}

.timeline-item:hover {
  background: var(--bg-light);
  padding-left: 0.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.35rem;
  top: 0.3rem;
  width: 1rem;
  height: 1rem;
  background: var(--brand1);
  border-radius: 50%;
}

.timeline-item strong {
  color: var(--brand3);
  display: block;
  margin-bottom: 0.25rem;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .hero-ai-act {
    padding: 6rem 1rem;
  }
  .hero-ai-act h1 {
    font-size: 2rem;
  }
}
