/* Modern Carousel Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700&display=swap');

:root {
  --card-width: 300px;
  --card-height: 400px;
  --gap: 20px;
  --color-accent: #5a189a;
  --color-accent-hover: #7b2cbf;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Outfit', sans-serif;
  background: transparent;
}

.carousel-container {
  width: 100%;
  height: 100vh;
  /* Full iframe height */
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.carousel {
  display: flex;
  gap: var(--gap);
  padding: 20px 50px;
  /* Space for buttons */
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.article {
  min-width: var(--card-width);
  height: var(--card-height);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: white;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(93, 17, 144, 0.96);
}

.article::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.1) 100%);
  transition: background 0.3s;
}

.article:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(90, 24, 154, 0.4);
  border-color: var(--color-accent);
}

.article:hover::before {
  background: linear-gradient(to top, rgba(90, 24, 154, 0.9) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.article-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 25px;
  z-index: 2;
  transform: translateY(20px);
  transition: transform 0.4s;
}

.article:hover .article-content {
  transform: translateY(0);
}

.category-tag {
  background: var(--color-accent);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.article h3 {
  margin: 10px 0;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
}

.article p {
  font-size: 0.95rem;
  color: #e0e0e0;
  margin-bottom: 15px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s 0.1s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article:hover p {
  opacity: 1;
  transform: translateY(0);
}

.read-more {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0;
  transition: all 0.4s 0.2s;
}

.article:hover .read-more {
  opacity: 1;
}

/* Buttons */
.prev-button,
.next-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  font-size: 1.2rem;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prev-button:hover,
.next-button:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-50%) scale(1.1);
}

.prev-button {
  left: 10px;
}

.next-button {
  right: 10px;
}

@media (max-width: 768px) {
  .article {
    min-width: 260px;
    height: 350px;
  }

  .article p,
  .read-more {
    opacity: 1;
    transform: none;
  }

  .article-content {
    transform: none;
  }
}