
  :root {
    --primary: #2a1a5e;
    --secondary: #7b4dff;
    --accent: #ff6b35;
    --light: #f0e6ff;
    --dark: #1a0f33;
    --text: #333;
    --text-light: #f0f0f0;
    --background: #f9f7ff;
    --castle: #3b82f6;
    --necropolis: #475569;
    --dungeon: #8b5cf6;
    --rampart: #10b981;
  }

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

  body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark);
  }

  h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }

  h2 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
  }

  h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--accent);
  }

  h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  p {
    margin-bottom: 1rem;
  }

  img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  .section-intro {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
  }

  /* Hero Section */
  .hero-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light);
    padding: 2rem;
    overflow: hidden;
  }

  .hero-section .bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.4);
  }

  .hero-section .content {
    position: relative;
    z-index: 1;
    max-width: 900px;
  }

  .hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }

  .subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--light);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  }

  /* Intro Section */
  .intro-section {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }

  .intro-section .content {
    flex: 1;
  }

  .intro-section img {
    flex: 1;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: rotate(2deg);
  }

  /* Faction Heroes Section */
  .faction-heroes {
    padding: 5rem 2rem;
    background-color: var(--light);
  }

  .faction-heroes h2 {
    text-align: center;
    margin-bottom: 3rem;
  }

  .faction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }

  .faction-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
  }

  .faction-card:hover {
    transform: translateY(-10px);
  }

  .faction-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
  }

  .faction-content {
    padding: 1.5rem;
  }

  .faction-content h3 {
    margin-bottom: 0.5rem;
  }

  .hero-skills {
    list-style: none;
    margin-top: 1rem;
  }

  .hero-skills li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
  }

  .hero-skills li i {
    margin-right: 0.5rem;
    color: var(--secondary);
  }

  /* Legendary Heroes Section */
  .legendary-heroes {
    position: relative;
    padding: 5rem 2rem;
    color: var(--text-light);
    overflow: hidden;
  }

  .legendary-heroes .bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.3);
    opacity: 0.9;
  }

  .legendary-heroes .content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
  }

  .legendary-heroes h2 {
    text-align: center;
    color: var(--light);
    margin-bottom: 3rem;
  }

  .hero-spotlight {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
  }

  .hero-spotlight.reverse {
    flex-direction: row-reverse;
  }

  .hero-info {
    flex: 1;
  }

  .hero-info h3 {
    color: var(--light);
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .hero-title {
    color: var(--accent);
    font-style: italic;
    margin-bottom: 1rem;
  }

  .hero-quote {
    position: relative;
    margin-top: 1.5rem;
    padding-left: 2rem;
  }

  .hero-quote i {
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-size: 1.5rem;
  }

  .hero-quote blockquote {
    font-style: italic;
    font-size: 1.1rem;
  }

  .hero-spotlight img {
    flex: 0 0 40%;
    max-width: 350px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    box-shadow: 0 0 30px rgba(123, 77, 255, 0.3);
  }

  /* Hero Abilities Section */
  .hero-abilities {
    padding: 5rem 2rem;
    background-color: white;
    text-align: center;
  }

  .abilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }

  .ability-card {
    background-color: var(--light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
  }

  .ability-card:hover {
    transform: translateY(-5px);
  }

  .ability-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
  }

  /* Hero Strategies Section */
  .hero-strategies {
    padding: 5rem 2rem;
    background-color: var(--background);
  }

  .hero-strategies h2 {
    text-align: center;
    margin-bottom: 3rem;
  }

  .strategy-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }

  .strategy-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  }

  .strategy-card h3 {
    padding: 1.5rem;
    margin: 0;
    background-color: var(--primary);
    color: white;
  }

  .strategy-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
  }

  .strategy-card p {
    padding: 1.5rem;
    padding-bottom: 0;
  }

  .strategy-tips {
    padding: 1.5rem;
  }

  .strategy-tips h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
  }

  .strategy-tips ul {
    list-style: none;
  }

  .strategy-tips li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
  }

  .strategy-tips li i {
    margin-right: 0.5rem;
    color: var(--accent);
  }

  /* Community Favorites Section */
  .community-favorites {
    padding: 5rem 2rem;
    background-color: var(--dark);
    color: var(--light);
  }

  .community-favorites h2 {
    text-align: center;
    color: var(--light);
    margin-bottom: 3rem;
  }

  .community-favorites h2::after {
    background-color: var(--accent);
  }

  .ranking-container {
    max-width: 800px;
    margin: 0 auto;
  }

  .ranking-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
  }

  .rank {
    flex: 0 0 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent);
    color: white;
    font-size: 2rem;
    font-weight: bold;
  }

  .rank-content {
    padding: 1rem 1.5rem;
  }

  .rank-content h3 {
    color: var(--light);
    margin-bottom: 0.5rem;
  }

  /* CTA Section */
  .cta-section {
    padding: 5rem 2rem;
    background-color: var(--primary);
    color: var(--light);
    text-align: center;
  }

  .cta-content {
    max-width: 800px;
    margin: 0 auto;
  }

  .cta-section h2 {
    color: var(--light);
  }

  .cta-section h2::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 1.5rem;
    transition: background-color 0.3s ease;
  }

  .cta-button:hover {
    background-color: #e55a2a;
  }

  /* Utility Classes */
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }

  /* Responsive Styles */
  @media (max-width: 1024px) {
    .hero-section h1 {
      font-size: 3rem;
    }

    .subtitle {
      font-size: 1.3rem;
    }

    .hero-spotlight {
      flex-direction: column;
      gap: 2rem;
    }

    .hero-spotlight.reverse {
      flex-direction: column;
    }

    .hero-spotlight img {
      max-width: 300px;
    }
  }

  @media (max-width: 768px) {
    .hero-section h1 {
      font-size: 2.5rem;
    }

    .subtitle {
      font-size: 1.1rem;
    }

    .intro-section {
      flex-direction: column;
      gap: 2rem;
    }

    h2 {
      font-size: 1.8rem;
    }

    h3 {
      font-size: 1.3rem;
    }

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

    .strategy-container {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 480px) {
    .hero-section h1 {
      font-size: 2rem;
    }

    .subtitle {
      font-size: 1rem;
    }

    .hero-section {
      min-height: 400px;
    }

    h2 {
      font-size: 1.5rem;
    }

    .rank {
      flex: 0 0 60px;
      height: 60px;
      font-size: 1.5rem;
    }
  }
