/* Dark Purple Theme */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #e0e0e0;
  background: linear-gradient(135deg, #1a0b2e 0%, #2d1b69 50%, #1a0b2e 100%);
  min-height: 100vh;
}

/* Header Styles */
.header {
  background: linear-gradient(135deg, #2d1b69 0%, #1a0b2e 100%);
  box-shadow: 0 4px 20px rgba(45, 27, 105, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: bold;
  transition: color 0.3s ease;
}

.logo:hover {
  color: #a78bfa;
}

.logo img {
  width: 80px;
  height: 40px;
  border-radius: 8px;
}

.nav {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav a {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.nav a:hover {
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.1);
  transform: translateY(-2px);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #a78bfa;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav a:hover::after {
  width: 80%;
}

/* Register Button */
.register-btn {
  display: inline-block;
  background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(167, 139, 250, 0.3);
  text-align: center;
  white-space: nowrap;
}

.register-btn:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(167, 139, 250, 0.5);
}

.register-btn:active {
  transform: translateY(0);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #e0e0e0;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Main Content */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Banner Styles */
.banner {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: 0 8px 32px rgba(45, 27, 105, 0.3);
  transition: transform 0.3s ease;
}

.banner:hover {
  transform: scale(1.02);
}

.banner-first {
  margin-top: 0;
}

/* Banner Carousel Styles */
.banner-carousel {
  position: relative;
  width: 100%;
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(45, 27, 105, 0.3);
  background: #1a0b2e;
}

.banner-carousel-link {
  display: block;
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 30%; /* Maintain aspect ratio for banners (approximately 3.33:1) */
  overflow: hidden;
}

.banner-carousel-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  will-change: opacity;
  display: block;
}

.banner-carousel-img.active {
  opacity: 1;
  z-index: 1;
}

.banner-carousel:hover .banner-carousel-img.active {
  transform: scale(1.02);
  transition: opacity 1s ease-in-out, transform 0.3s ease;
}

/* Article Styles */
article {
  background: rgba(45, 27, 105, 0.2);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(167, 139, 250, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

h1 {
  color: #ffffff;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, #a78bfa 0%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  color: #a78bfa;
  font-size: 1.8rem;
  margin: 2rem 0 1rem 0;
  border-left: 4px solid #a78bfa;
  padding-left: 1rem;
}

h3 {
  color: #c4b5fd;
  font-size: 1.4rem;
  margin: 1.5rem 0 1rem 0;
}

p {
  margin-bottom: 1rem;
  color: #e0e0e0;
  font-size: 1.1rem;
  line-height: 1.7;
}

ul, ol {
  color: #e0e0e0;
}

li {
  margin-bottom: 0.5rem;
}

/* FAQ Styles */
dl {
  background: rgba(45, 27, 105, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem 0;
}

dt {
  color: #a78bfa;
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

dd {
  color: #e0e0e0;
  margin-bottom: 1rem;
  margin-left: 1rem;
}

/* Footer Styles */
.footer {
  background: linear-gradient(135deg, #1a0b2e 0%, #2d1b69 100%);
  margin-top: 4rem;
  padding: 3rem 0 2rem 0;
  border-top: 1px solid rgba(167, 139, 250, 0.2);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.footer-content {
  color: #e0e0e0;
  font-size: 1rem;
  line-height: 1.6;
}

.footer-content p {
  margin-bottom: 1rem;
}

.footer-content a {
  color: #a78bfa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-content a:hover {
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    padding: 0 1rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2d1b69 0%, #1a0b2e 100%);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(45, 27, 105, 0.3);
  }
  
  .nav.active {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .register-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .main-content {
    padding: 1rem;
  }
  
  article {
    padding: 1.5rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .banner {
    margin: 1rem 0;
  }
  
  .banner-carousel {
    margin: 1rem 0;
  }
  
  .banner-carousel-link {
    padding-bottom: 30%; /* Adjust for mobile */
  }
}

@media (max-width: 480px) {
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    font-size: 1.2rem;
    margin: 0;
  }
  
  .mobile-menu-toggle {
    margin: 0;
  }
  
  .register-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.3rem;
  }
  
  article {
    padding: 1rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Offset for fixed header when scrolling to anchors */
section[id] {
  scroll-margin-top: 100px;
}

/* Loading animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

article {
  animation: fadeIn 0.6s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a0b2e;
}

::-webkit-scrollbar-thumb {
  background: #a78bfa;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #c4b5fd;
}

/* Promo banner */
.promo-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #2d1b69 0%, #1a0b2e 100%);
  border-top: 2px solid rgba(167, 139, 250, 0.3);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 -4px 20px rgba(45, 27, 105, 0.5);
  z-index: 999;
  animation: slideUp 0.3s ease-out;
}

.promo-banner.hidden {
  display: none;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.promo-banner-text {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 500;
  flex: 1;
  text-align: center;
}

.promo-banner-button {
  background: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 100%);
  color: #ffffff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

.promo-banner-button:hover {
  background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(167, 139, 250, 0.5);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 100%);
  border: none;
  border-radius: 50%;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(167, 139, 250, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(167, 139, 250, 0.6);
  background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 100%);
}

.back-to-top.show {
  display: flex;
}

.back-to-top::before {
  content: '↑';
  font-weight: bold;
}

/* Footer padding for promo banner */
body.has-promo-banner .footer {
  padding-bottom: 80px;
}

@media (max-width: 768px) {
  .promo-banner {
    flex-direction: row;
    padding: 0.6rem 1rem;
    gap: 0.75rem;
  }
  
  .promo-banner-text {
    font-size: 0.85rem;
    text-align: left;
    line-height: 1.3;
  }
  
  .promo-banner-button {
    width: auto;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .back-to-top {
    bottom: 90px;
  }
  
  body.has-promo-banner .footer {
    padding-bottom: 70px;
  }
}

@media (max-width: 480px) {
  .promo-banner {
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
  }
  
  .promo-banner-text {
    font-size: 0.8rem;
  }
  
  .promo-banner-button {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }
  
  body.has-promo-banner .footer {
    padding-bottom: 65px;
  }
  
  .banner-carousel-link {
    padding-bottom: 35%; /* Adjust for small mobile */
  }
}
