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

html {
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

table {
  border-collapse: collapse;
}

/* Header styles */
/* Base Styles & Variables */
    :root {
        --primary-color: #2e1a47;
        --secondary-color: #7b4c94;
        --accent-color: #e6b422;
        --dark-color: #1a0c29;
        --light-color: #f0e6ff;
        --text-color: #e6e0f0;
        --header-height: 80px;
        --header-padding: 0 2rem;
        --logo-size: 40px;
        --border-radius: 6px;
        --transition-speed: 0.3s;
        --shadow-subtle: 0 2px 10px rgba(0, 0, 0, 0.1);
        --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
        --shadow-strong: 0 8px 30px rgba(0, 0, 0, 0.2);
        --glow-effect: 0 0 15px rgba(230, 180, 34, 0.6);
    }

    /* Header Structure */
    .heroes-header {
        position: relative;
        width: 100%;
        height: var(--header-height);
        background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
        color: var(--text-color);
        overflow: hidden;
        z-index: 100;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .header-backdrop {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        z-index: -1;
    }

    .mystical-orb {
        position: absolute;
        border-radius: 50%;
        opacity: 0.15;
        background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    }

    .left-orb {
        width: 200px;
        height: 200px;
        top: -100px;
        left: -50px;
    }

    .right-orb {
        width: 300px;
        height: 300px;
        top: -150px;
        right: -100px;
    }

    .header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 100%;
        padding: var(--header-padding);
        position: relative;
    }

    /* Logo Styles */
    .logo-container {
        display: flex;
        align-items: center;
    }

    .logo-link {
        display: flex;
        align-items: center;
        text-decoration: none;
        color: var(--text-color);
        transition: transform var(--transition-speed) ease;
    }

    .logo-link:hover {
        transform: scale(1.05);
    }

    .logo-emblem {
        display: flex;
        align-items: center;
        justify-content: center;
        width: var(--logo-size);
        height: var(--logo-size);
        position: relative;
        margin-right: 0.75rem;
    }

    .logo-icon {
        width: 100%;
        height: 100%;
        fill: var(--accent-color);
        filter: drop-shadow(0 0 3px rgba(230, 180, 34, 0.7));
    }

    .logo-text {
        font-family: 'Cinzel', serif;
        font-weight: 700;
        font-size: 1.5rem;
        letter-spacing: 0.5px;
        color: var(--accent-color);
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    /* Navigation Styles */
    .desktop-nav {
        display: flex;
        height: 100%;
    }

    .nav-list {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
        height: 100%;
    }

    .nav-item {
        height: 100%;
        position: relative;
    }

    .nav-link {
        display: flex;
        align-items: center;
        height: 100%;
        padding: 0 1.2rem;
        color: var(--text-color);
        text-decoration: none;
        font-family: 'Montserrat', sans-serif;
        font-weight: 500;
        font-size: 0.95rem;
        letter-spacing: 0.5px;
        transition: color var(--transition-speed) ease;
        position: relative;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 3px;
        background-color: var(--accent-color);
        transition: all var(--transition-speed) ease;
        transform: translateX(-50%);
        border-radius: 3px 3px 0 0;
    }

    .nav-link:hover {
        color: var(--accent-color);
    }

    .nav-link:hover::after {
        width: 60%;
    }

    .nav-link.active {
        color: var(--accent-color);
    }

    .nav-link.active::after {
        width: 80%;
        box-shadow: var(--glow-effect);
    }

    /* Header Actions */
    .header-actions {
        display: flex;
        align-items: center;
    }

    .search-toggle, .mobile-toggle {
        background: none;
        border: none;
        color: var(--text-color);
        cursor: pointer;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all var(--transition-speed) ease;
        margin-left: 0.5rem;
    }

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

    .search-toggle svg {
        width: 20px;
        height: 20px;
        fill: var(--text-color);
    }

    .mobile-toggle {
        display: none;
        flex-direction: column;
    }

    .toggle-line {
        width: 22px;
        height: 2px;
        background-color: var(--text-color);
        margin: 2px 0;
        border-radius: 2px;
        transition: all var(--transition-speed) ease;
    }

    /* Mobile Menu */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform var(--transition-speed) ease;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }

    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-logo {
        display: flex;
        align-items: center;
        color: var(--accent-color);
        font-family: 'Cinzel', serif;
        font-weight: 700;
        font-size: 1.3rem;
    }

    .logo-icon-mobile {
        width: 30px;
        height: 30px;
        fill: var(--accent-color);
        margin-right: 0.5rem;
    }

    .close-menu {
        background: none;
        border: none;
        color: var(--text-color);
        cursor: pointer;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all var(--transition-speed) ease;
    }

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

    .close-menu svg {
        width: 24px;
        height: 24px;
        fill: var(--text-color);
    }

    .mobile-nav {
        padding: 2rem 1.5rem;
        flex: 1;
    }

    .mobile-nav-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mobile-nav-item {
        margin-bottom: 1rem;
    }

    .mobile-nav-link {
        display: block;
        padding: 1rem;
        color: var(--text-color);
        text-decoration: none;
        font-family: 'Montserrat', sans-serif;
        font-weight: 500;
        font-size: 1.1rem;
        letter-spacing: 0.5px;
        border-radius: var(--border-radius);
        transition: all var(--transition-speed) ease;
        border-left: 3px solid transparent;
    }

    .mobile-nav-link:hover {
        background-color: rgba(255, 255, 255, 0.05);
        border-left-color: var(--accent-color);
        padding-left: 1.5rem;
    }

    .mobile-nav-link.active {
        background-color: rgba(123, 76, 148, 0.2);
        color: var(--accent-color);
        border-left-color: var(--accent-color);
        padding-left: 1.5rem;
    }

    .mobile-menu-footer {
        display: flex;
        justify-content: space-around;
        padding: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .faction-emblem {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.1);
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    }

    .castle {
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23e6b422" d="M12,2L2,7v15h20V7L12,2z M12,4.4l4,2.3V9H8V6.7L12,4.4z M7,20H4V8h3V20z M13,20H11V12h2V20z M17,20h-2v-8h2V20z M20,20h-2V8h2V20z"/></svg>');
    }

    .rampart {
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23e6b422" d="M12,2C6.48,2,2,6.48,2,12c0,5.52,4.48,10,10,10c5.52,0,10-4.48,10-10C22,6.48,17.52,2,12,2z M13,17h-2v-6h2V17z M13,9h-2V7h2V9z"/></svg>');
    }

    .tower {
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23e6b422" d="M12,2L4,5v6.09c0,5.05,3.41,9.76,8,10.91c4.59-1.15,8-5.86,8-10.91V5L12,2z M15,15h-2v2h-2v-2H9v-2h2v-2h2v2h2V15z"/></svg>');
    }

    .inferno {
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23e6b422" d="M12,3c0,0-6.186,5.34-6.186,11.5C5.814,20.66,8.85,22,12,22s6.186-1.34,6.186-7.5C18.186,8.34,12,3,12,3z M15,17h-2v2h-2v-2H9v-2h2v-2h2v2h2V17z"/></svg>');
    }

    /* Responsive Styles */
    @media (max-width: 1024px) {
        .nav-link {
            padding: 0 0.8rem;
            font-size: 0.85rem;
        }
    }

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

        .mobile-toggle {
            display: flex;
        }

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

        .logo-text {
            font-size: 1.3rem;
        }

        .logo-emblem {
            width: 35px;
            height: 35px;
        }
    }

    /* Animation for Mobile Menu */
    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    /* Font imports */
    @import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Montserrat:wght@400;500;600&display=swap');

/* Footer styles */
/* Main Footer Styles */
  .footer-main {
    width: 100%;
    background: linear-gradient(135deg, #1a1c2c 0%, #2d2b55 100%);
    color: #e0e0ff;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    overflow: hidden;
  }

  .footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(92, 70, 156, 0.2) 0%, rgba(28, 25, 51, 0) 70%);
    pointer-events: none;
  }

  .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    position: relative;
  }

  /* Footer Sections */
  .footer-section {
    position: relative;
  }

  .footer-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: -1.25rem;
    height: 90%;
    width: 1px;
    background: linear-gradient(to bottom, rgba(138, 116, 249, 0), rgba(138, 116, 249, 0.3) 50%, rgba(138, 116, 249, 0));
  }

  .footer-section:last-child::after {
    display: none;
  }

  .footer-heading {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #c3b1ff;
    position: relative;
    padding-bottom: 0.75rem;
  }

  .footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #a17bf5 0%, #5a4c8f 100%);
    border-radius: 3px;
  }

  /* Navigation Lists */
  .footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .footer-nav-list li {
    margin-bottom: 0.75rem;
  }

  .footer-link {
    color: #b8b5d9;
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
  }

  .footer-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #a17bf5 0%, #5a4c8f 100%);
    transition: width 0.3s ease;
  }

  .footer-link:hover {
    color: #ffffff;
    transform: translateX(5px);
  }

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

  /* Contact Section */
  .footer-contact-info {
    margin-bottom: 1.5rem;
  }

  .footer-contact-item {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
  }

  .footer-contact-item i {
    margin-right: 0.75rem;
    color: #8a74f9;
    font-size: 1rem;
  }

  /* Social Icons */
  .footer-social {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.75rem;
  }

  .footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #c3b1ff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }

  .footer-social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8a74f9 0%, #5e48d0 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
  }

  .footer-social-icon:hover {
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(90, 76, 143, 0.4);
  }

  .footer-social-icon:hover::before {
    opacity: 1;
  }

  /* Newsletter */
  .footer-newsletter {
    margin-top: 1.5rem;
  }

  .footer-newsletter-heading {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #c3b1ff;
  }

  .footer-newsletter-text {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #b8b5d9;
  }

  .footer-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .footer-newsletter-input {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(138, 116, 249, 0.3);
    background: rgba(43, 40, 79, 0.5);
    color: #ffffff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
  }

  .footer-newsletter-input:focus {
    outline: none;
    border-color: #8a74f9;
    box-shadow: 0 0 0 3px rgba(138, 116, 249, 0.2);
  }

  .footer-newsletter-button {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #8a74f9 0%, #5e48d0 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }

  .footer-newsletter-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
                              rgba(255, 255, 255, 0) 0%, 
                              rgba(255, 255, 255, 0.2) 50%, 
                              rgba(255, 255, 255, 0) 100%);
    transition: left 0.7s ease;
  }

  .footer-newsletter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(90, 76, 143, 0.4);
  }

  .footer-newsletter-button:hover::before {
    left: 100%;
  }

  /* Footer Bottom */
  .footer-bottom {
    background: rgba(20, 19, 38, 0.8);
    padding: 1.5rem 0;
    position: relative;
  }

  .footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
                              rgba(138, 116, 249, 0) 0%, 
                              rgba(138, 116, 249, 0.5) 50%, 
                              rgba(138, 116, 249, 0) 100%);
  }

  .footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
  }

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

  .footer-legal-link {
    color: #a097c9;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
  }

  .footer-legal-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #8a74f9;
    transition: width 0.3s ease;
  }

  .footer-legal-link:hover {
    color: #c3b1ff;
  }

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

  .footer-copyright {
    margin-top: 0.5rem;
  }

  .footer-copyright-text {
    color: #7a7596;
    font-size: 0.85rem;
  }

  /* Responsive Styles */
  @media (max-width: 1024px) {
    .footer-container {
      grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-section::after {
      display: none;
    }
  }

  @media (max-width: 768px) {
    .footer-container {
      grid-template-columns: 1fr;
      gap: 2rem;
    }
    
    .footer-section {
      padding-bottom: 2rem;
      border-bottom: 1px solid rgba(138, 116, 249, 0.2);
    }
    
    .footer-section:last-child {
      border-bottom: none;
    }
    
    .footer-bottom-container {
      flex-direction: column-reverse;
    }
    
    .footer-legal {
      flex-direction: column;
      gap: 1rem;
    }
  }


/* Cookie Banner styles */
#hmm-cookie-consent {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background-color: #1e2c42 !important;
    color: #e8d0a9;
    z-index: 9999 !important;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3) !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  .cookie-content-wrapper {
    max-width: 1200px !important;
    margin: 0 auto;
    padding: 18px 20px !important;
  }
  
  .cookie-message {
    margin: 0 0 16px 0;
    font-size: 15px;
    line-height: 1.5;
  }
  
  .cookie-buttons-container {
    display: flex !important;
    gap: 15px;
    margin-bottom: 12px !important;
  }
  
  .cookie-btn {
    padding: 10px 20px !important;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .cookie-reject {
    background-color: #5a6779 !important;
    color: #ffffff;
  }
  
  .cookie-reject:hover {
    background-color: #4a5669 !important;
  }
  
  .cookie-accept {
    background-color: #c39c38 !important;
    color: #1e2c42;
  }
  
  .cookie-accept:hover {
    background-color: #d3ac48 !important;
  }
  
  .cookie-policy-link {
    font-size: 13px;
    margin: 5px 0 0 0;
  }
  
  .cookie-policy-link a {
    color: #c39c38;
    text-decoration: underline;
  }
  
  .cookie-policy-link a:hover {
    color: #d3ac48;
  }
  
  @media (max-width: 768px) {
    .cookie-content-wrapper {
      padding: 15px !important;
    }
    
    .cookie-buttons-container {
      flex-direction: column;
      gap: 10px;
    }
    
    .cookie-btn {
      width: 100% !important;
    }
  }