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

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

body {
  font-family: system-ui, -apple-system, sans-serif;
  min-height: 100vh;
}

img, svg, video, canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  line-height: 1.2;
}

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

ul, ol {
  list-style: none;
}

table {
  border-collapse: collapse;
}

/* Header styles */
/* Base Styles & Variables */
    :root {
        --primary: #FF4D4D;
        --primary-dark: #CC3D3D;
        --secondary: #2B3F56;
        --accent: #3DCCB4;
        --background: #0E1621;
        --surface: #1A2634;
        --text-primary: #E6E6E6;
        --text-secondary: #9EAEC7;
        --header-height: 80px;
        --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    /* Header Base */
    .site-header {
        position: sticky;
        top: 0;
        z-index: 100;
        width: 100%;
        background-color: var(--background);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    .header-wrapper {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        height: var(--header-height);
        padding: 0 1.5rem;
        max-width: 1400px;
        margin: 0 auto;
        position: relative;
    }

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

    .logo-link {
        text-decoration: none;
    }

    .logo {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .logo-icon {
        display: block;
        filter: drop-shadow(0 0 8px rgba(255, 77, 77, 0.4));
        transition: var(--transition);
    }

    .logo-text {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--text-primary);
        letter-spacing: 0.05em;
        text-transform: uppercase;
        background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: 0 0 10px rgba(255, 77, 77, 0.2);
    }

    .logo:hover .logo-icon {
        transform: rotate(10deg);
        filter: drop-shadow(0 0 12px rgba(255, 77, 77, 0.6));
    }

    /* Desktop Navigation */
    .desktop-nav {
        justify-self: center;
        margin-left: 2rem;
    }

    .nav-list {
        display: flex;
        gap: 0.25rem;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .nav-item {
        position: relative;
    }

    .nav-link {
        display: block;
        padding: 0.75rem 1rem;
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 0.95rem;
        font-weight: 500;
        transition: var(--transition);
        border-radius: 4px;
        position: relative;
    }

    .nav-link:hover {
        color: var(--text-primary);
        background-color: rgba(255, 255, 255, 0.05);
    }

    .nav-item.active .nav-link {
        color: #ff6b6b;
        font-weight: 600;
    }

    .nav-item.active::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 6px;
        height: 6px;
        background-color: #ff6b6b;
        border-radius: 50%;
        box-shadow: 0 0 8px var(--primary);
    }

    /* Header Actions */
    .header-actions {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 1rem;
    }

    .search-toggle,
    .theme-toggle {
        background: none;
        border: none;
        cursor: pointer;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: var(--transition);
        background-color: rgba(255, 255, 255, 0.05);
    }

    .search-toggle:hover,
    .theme-toggle:hover {
        background-color: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
    }

    /* Mobile Toggle */
    .mobile-toggle {
        display: none;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    .toggle-line {
        width: 100%;
        height: 2px;
        background-color: var(--text-primary);
        transition: var(--transition);
        border-radius: 2px;
    }

    /* Mobile Menu */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--background);
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        display: flex;
        flex-direction: column;
        padding: 1.5rem;
        overflow-y: auto;
    }

    .mobile-menu.active {
        transform: translateX(0);
    }

    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
    }

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

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

    .mobile-nav-list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .mobile-nav-item {
        border-radius: 6px;
        overflow: hidden;
    }

    .mobile-nav-link {
        display: block;
        padding: 1rem 1rem;
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 1.1rem;
        font-weight: 500;
        transition: var(--transition);
        border-left: 3px solid transparent;
    }

    .mobile-nav-link:hover {
        background-color: rgba(255, 255, 255, 0.05);
        color: var(--text-primary);
    }

    .mobile-nav-item.active .mobile-nav-link {
        color: var(--primary);
        background-color: rgba(255, 77, 77, 0.1);
        border-left: 3px solid var(--primary);
    }

    .mobile-footer {
        margin-top: auto;
        padding-top: 2rem;
    }

    .mobile-search {
        display: flex;
        background-color: var(--surface);
        border-radius: 8px;
        overflow: hidden;
        margin-top: 1rem;
    }

    .mobile-search-input {
        flex: 1;
        background: none;
        border: none;
        padding: 0.75rem 1rem;
        color: var(--text-primary);
        font-size: 1rem;
    }

    .mobile-search-input:focus {
        outline: none;
    }

    .mobile-search-button {
        background: var(--primary);
        border: none;
        padding: 0.75rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }

    .mobile-search-button:hover {
        background: var(--primary-dark);
    }

    /* Responsive Styles */
    @media (max-width: 1024px) {
        .desktop-nav {
            margin-left: 1rem;
        }
        
        .nav-link {
            padding: 0.75rem 0.75rem;
            font-size: 0.9rem;
        }
    }

    @media (max-width: 768px) {
        .header-wrapper {
            grid-template-columns: auto auto;
            padding: 0 1rem;
        }
        
        .desktop-nav {
            display: none;
        }
        
        .mobile-toggle {
            display: flex;
        }
        
        .search-toggle, 
        .theme-toggle {
            display: none;
        }
    }

    @keyframes pulse {
        0% {
            box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.4);
        }
        70% {
            box-shadow: 0 0 0 10px rgba(255, 77, 77, 0);
        }
        100% {
            box-shadow: 0 0 0 0 rgba(255, 77, 77, 0);
        }
    }

/* Footer styles */
/* Base Footer Styles */
  .footer-container {
    width: 100%;
    background: linear-gradient(135deg, #1d1e22 0%, #0d1117 100%);
    color: #b8c4e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    overflow: hidden;
    padding: 4rem 2rem 2rem;
    border-top: 3px solid #2a9df4;
  }

  .footer-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff3c5f, #2a9df4, #9c27b0);
    opacity: 0.7;
  }

  .footer-main {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
  }

  .footer-section {
    position: relative;
  }

  .footer-about {
    grid-column: span 4;
  }

  .footer-quick-links {
    grid-column: span 2;
  }

  .footer-resources {
    grid-column: span 2;
  }

  .footer-newsletter {
    grid-column: span 4;
    position: relative;
    padding-left: 2rem;
  }

  .footer-newsletter::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #2a9df4, transparent);
  }

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

  .footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 3rem;
    height: 3px;
    background: #2a9df4;
    border-radius: 2px;
  }

  .footer-text {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 1.5rem;
  }

  .footer-contact {
    margin-top: 1.5rem;
  }

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

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

  .footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

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

  .footer-link {
    color: #b8c4e0;
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s ease;
    padding-left: 1.25rem;
    display: inline-block;
  }

  .footer-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #2a9df4;
    border-radius: 50%;
    transition: all 0.3s ease;
  }

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

  .footer-link:hover::before {
    background-color: #ff3c5f;
    box-shadow: 0 0 8px #ff3c5f;
  }

  .footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
  }

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

  .footer-social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #2a9df4, #9c27b0);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
  }

  .footer-social-icon i {
    position: relative;
    z-index: 1;
  }

  .footer-social-icon:hover {
    transform: translateY(-5px);
    color: #ffffff;
  }

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

  .footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .footer-legal-link:not(:last-child)::after {
    content: '•';
    position: absolute;
    right: -1.25rem;
    color: rgba(255, 255, 255, 0.3);
  }

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

  .footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
  }

  /* Responsive Design */
  @media (max-width: 1024px) {
    .footer-main {
      grid-template-columns: repeat(6, 1fr);
    }

    .footer-about {
      grid-column: span 6;
    }

    .footer-quick-links {
      grid-column: span 3;
    }

    .footer-resources {
      grid-column: span 3;
    }

    .footer-newsletter {
      grid-column: span 6;
      padding-left: 0;
      margin-top: 1rem;
    }

    .footer-newsletter::before {
      display: none;
    }
  }

  @media (max-width: 768px) {
    .footer-container {
      padding: 3rem 1.5rem 1.5rem;
    }

    .footer-main {
      grid-template-columns: 1fr;
      gap: 2rem;
    }

    .footer-about,
    .footer-quick-links,
    .footer-resources,
    .footer-newsletter {
      grid-column: span 1;
    }

    .footer-heading {
      margin-bottom: 1rem;
    }

    .footer-legal {
      flex-direction: column;
      gap: 1rem;
    }

    .footer-legal-link:not(:last-child)::after {
      display: none;
    }

    .footer-bottom {
      margin-top: 2.5rem;
    }
  }

/* Cookie Banner styles */
#dota2-cookie-consent {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background-color: #1a1e21 !important;
    color: #e6e6e6;
    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: 20px !important;
  }

  .cookie-message {
    margin: 0 0 15px 0;
    font-size: 15px;
    line-height: 1.5;
  }

  .cookie-message a {
    color: #a9cf54;
    text-decoration: none;
  }

  .cookie-message a:hover {
    text-decoration: underline;
  }

  .cookie-buttons-container {
    display: flex !important;
    justify-content: flex-end;
    gap: 15px;
  }

  .cookie-btn {
    padding: 10px 20px !important;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
  }

  .cookie-accept {
    background-color: #a9cf54 !important;
    color: #000000;
  }

  .cookie-accept:hover {
    background-color: #bfe066 !important;
    box-shadow: 0 2px 5px rgba(169, 207, 84, 0.4) !important;
  }

  .cookie-reject {
    background-color: #424950 !important;
    color: #ffffff;
  }

  .cookie-reject:hover {
    background-color: #535b64 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
  }

  @media (max-width: 768px) {
    .cookie-buttons-container {
      flex-direction: column !important;
    }

    .cookie-btn {
      width: 100% !important;
      margin-bottom: 10px !important;
    }
  }