/* Glassy Header Styles */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all .3s ease;
  background-color: rgba(218, 231, 209, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  /* Force LTR direction for header */
  direction: ltr !important;
}

#site-header.scrolled {
  background-color: rgba(218, 231, 209, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-inner {
  margin-right: 10%;
  padding-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  /* Ensure LTR layout */
  direction: ltr !important;
}

.logo {
  margin-left: 10%;
  flex: 0 0 auto;
  text-align: left;
  direction: ltr !important;
}

.logo a {
  text-decoration: none;
  display: inline-block;
}

.logo img {
  width: 90px;
  height: auto;
}

.menu-container {
  flex: 1;
  margin: 0 10%;
  text-align: center;
  position: relative;
  direction: ltr !important;
}

.main-navigation ul {
  list-style: none;
  display: inline-flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  direction: ltr !important;
}

.main-navigation li {
  display: inline-block;
}

.main-navigation a {
  text-decoration: none;
  color: #009A6E;
  font-weight: 600;
  font-family: 'Yekan', sans-serif;
  transition: color .2s ease;
}

.main-navigation a:hover {
  color: #000;
}

.hamburger-toggle {
  display: none;
  cursor: pointer;
  font-size: 2rem;
  margin-left: 1rem;
}

.cta-area {
  flex: 0 0 auto;
  text-align: right;
  direction: ltr !important;
}

.cta-button {
  background-color: #009A6E;
  color: #fff;
  font-family: 'Yekan', sans-serif;
  font-weight: 700;
  padding: .8rem 1.5rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color .2s ease;
}

.cta-button-text {
  color: #fff;
  font-family: 'Yekan', sans-serif;
  font-weight: 700;
}

.cta-button-text:hover {
  color: #C2EFB3;
}

/* Responsive header adjustments */
@media (max-width: 768px) {
  .header-inner {
    margin-right: 5%;
    margin-left: 5%;
  }
  
  .logo {
    margin-left: 5%;
  }
  
  .menu-container {
    margin: 0 5%;
  }
  
  .hamburger-toggle {
    display: block;
  }
  
  .main-navigation ul {
    display: none;
  }
}

/* Remove body padding since header will overlay first section */
body {
  padding-top: 0;
  margin: 0;
}

/* Remove Astra theme default margins */
#primary {
  margin: 0;
  padding: 0;
}

/* Remove any default margins from Astra theme */
.ast-container {
  margin: 0;
  padding: 0;
}

/* Global margin and padding reset for all sections */
section {
  margin: 0;
  padding: 0;
}

/* Remove any default margins from WordPress/Astra */
.entry-content {
  margin: 0;
  padding: 0;
}

/* Ensure no margins on the main content area */
.ast-primary-content-area {
  margin: 0;
  padding: 0;
}

/* RTL Override: Force header to always be LTR regardless of page direction */
[dir="rtl"] #site-header,
.rtl #site-header,
body.rtl #site-header,
html[dir="rtl"] #site-header {
  direction: ltr !important;
}

[dir="rtl"] #site-header *,
.rtl #site-header *,
body.rtl #site-header *,
html[dir="rtl"] #site-header * {
  direction: ltr !important;
}
