.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

/* Refined spacing between mobile header elements */
@media (max-width: 768px) {
    /* Container with increased overall padding */
    .site-header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        position: relative;
    }
    
    /* Logo with increased right margin */
    .site-logo {
        order: 1;
        flex: 0 0 auto;
        margin-right: 25px;
    }
    
    /* Language switcher with balanced margins */
    .language-switcher {
        order: 2;
        position: static;
        flex: 0 0 auto;
        margin: 0 25px;
    }
    
    /* Toggle with increased left margin */
    .nav-toggle {
        order: 3;
        flex: 0 0 auto;
        margin-left: 25px;
        position: static;
        transform: none;
    }
}  .site-logo {
      padding: 10px 0;
  }

  .site-logo img {
      max-height: 70px;
      width: auto;
      display: block;
  }

  /* For responsive behavior */
  @media (max-width: 768px) {
      .site-logo img {
          max-height: 50px;
      }
  }
.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #009688;
}

.language-switcher {
    display: flex;
    gap: 10px;
}

.language-switcher a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.language-switcher a.active,
.language-switcher a:hover {
    color: #009688;
}

@media (max-width: 768px) {
    /* Base mobile menu styling - hide by default */
    .main-nav {
        display: none;
    }
    
    /* When activated via JavaScript */
    .main-nav.active {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #fff;
        z-index: 1000;
        padding: 60px 20px 20px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        overflow-y: auto;
    }
    
    /* Vertical stacking for mobile menu items */
    .main-nav.active ul {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .main-nav.active ul li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .main-nav.active ul li a {
        display: block;
        padding: 15px 0;
        font-size: 16px;
    }
}

/* Professional mobile toggle styling */
.nav-toggle {
    display: none; /* Hidden by default, shown in media query */
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

/* The three lines of the hamburger icon */
.nav-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 25px;
    background: #333;
    border-radius: 3px;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

/* Position each line */
.nav-toggle span:nth-child(1) {
    top: 10px;
}

.nav-toggle span:nth-child(2) {
    top: 19px;
}

.nav-toggle span:nth-child(3) {
    top: 28px;
}

/* Show the toggle button on mobile */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
}

/* Arabic-specific logo positioning on mobile */
@media (max-width: 768px) {
    html[lang="ar"] .site-logo {
        margin-right: 0;
        margin-left: 10px;
    }
}

/* Creating left offset for toggle button on mobile */
@media (max-width: 768px) {
    html[lang="en"] .nav-toggle {
        margin-right: 35px;
    }
}