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

:root {
  --primary-blue: #1e40af;
  --secondary-blue: #3b82f6;
  --accent-purple: #7c3aed;
  --dark-purple: #5b21b6;
  --success-green: #059669;
  --warning-amber: #d97706;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --surface-white: #ffffff;
  --surface-gray: #f9fafb;
  --surface-light: #f3f4f6;
  --border-color: #e5e7eb;
  --border-dark: #d1d5db;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--surface-gray);
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Styles */
.main-header {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
}

.logo-section h1 {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--surface-white);
  letter-spacing: -0.025em;
}

.logo-number {
  color: var(--warning-amber);
  font-weight: 700;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--surface-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease;
}

.mobile-menu-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.desktop-nav {
  display: flex;
  gap: 0.5rem;
}

.nav-link {
  color: var(--surface-white);
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-lg);
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.nav-link:hover::before {
  left: 100%;
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface-white);
  box-shadow: var(--shadow-xl);
  border-top: 1px solid var(--border-color);
}

.mobile-nav.active {
  display: block;
}

.mobile-nav-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-nav-link {
  color: var(--text-primary);
  text-decoration: none;
  padding: 1rem;
  border-radius: var(--radius-lg);
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid var(--border-color);
}

.mobile-nav-link:hover {
  background-color: var(--surface-light);
  border-color: var(--secondary-blue);
  color: var(--secondary-blue);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--dark-purple) 100%);
  color: var(--surface-white);
  padding: 1.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.hero-highlight {
  color: var(--warning-amber);
  position: relative;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 3rem 0;
}

.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.content-card {
  background: var(--surface-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 2rem;
}

/* Promo Card */
.promo-card {
  background: linear-gradient(135deg, var(--success-green) 0%, #047857 100%);
  color: var(--surface-white);
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.promo-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: rotate 20s linear infinite;
}

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

.promo-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.promo-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.promo-text {
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

.cta-button {
  display: inline-block;
  background: var(--surface-white);
  color: var(--success-green);
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 1.125rem;
  margin-top: 1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--surface-light);
}

/* Content Sections */
.content-section {
  padding: 3rem;
  border-bottom: 1px solid var(--border-color);
}

.content-section:last-child {
  border-bottom: none;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 4rem;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-purple), var(--warning-amber));
  border-radius: var(--radius-sm);
}

.section-text {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.section-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Navigation Grid */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.nav-card {
  background: var(--surface-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-purple));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-card:hover {
  background: var(--surface-white);
  border-color: var(--secondary-blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.nav-card:hover::before {
  transform: scaleX(1);
}

.nav-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-blue);
}

/* Sidebar Layout for Subpages */
.sidebar-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.sidebar {
  background: var(--surface-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  height: fit-content;
  position: sticky;
  top: 6rem;
}

.sidebar-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: var(--surface-light);
  color: var(--primary-blue);
  border-left-color: var(--accent-purple);
}

.main-content-area {
  background: var(--surface-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* Footer */
.main-footer {
  background: var(--text-primary);
  color: var(--surface-white);
  padding: 2.5rem 0;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.footer-text {
  font-size: 0.9375rem;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--surface-white);
  text-decoration: none;
  font-size: 0.9375rem;
  opacity: 0.8;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.25rem 0;
}

.footer-link:hover {
  opacity: 1;
  color: var(--secondary-blue);
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--secondary-blue);
  transition: width 0.3s ease;
}

.footer-link:hover::after {
  width: 100%;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .sidebar-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .sidebar {
    position: static;
    order: -1;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-section {
    padding: 1.25rem 1.5rem;
  }

  .content-container {
    padding: 0 1.5rem;
  }

  .promo-card,
  .content-section {
    padding: 2rem;
  }

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

  .header-container {
    padding: 0 1.5rem;
  }

  .footer-links {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.875rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .promo-card,
  .content-section {
    padding: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .content-container {
    padding: 0 1rem;
  }

  .main-content {
    padding: 2rem 0;
  }

  .hero-section {
    padding: 1rem 1rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}