/* Container */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
}
/* #ddbe16 */
/* Responsive containers */
@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
    padding-left: var(--spacing-2xl);
    padding-right: var(--spacing-2xl);
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
    padding-left: var(--spacing-3xl);
    padding-right: var(--spacing-3xl);
  }
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}
.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-col-span-2 {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }

  .grid-col-span-2 {
    grid-column: span 1;
  }
}

@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .sm\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .sm\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Flex Utilities */
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.flex-col {
  flex-direction: column;
}
.flex-row {
  flex-direction: row;
}
.flex-wrap {
  flex-wrap: wrap;
}
.flex-nowrap {
  flex-wrap: nowrap;
}
.items-start {
  align-items: flex-start;
}
.items-center {
  align-items: center;
}
.items-end {
  align-items: flex-end;
}
.justify-start {
  justify-content: flex-start;
}
.justify-center {
  justify-content: center;
}
.justify-end {
  justify-content: flex-end;
}
.justify-between {
  justify-content: space-between;
}
.gap-xs {
  gap: var(--spacing-xs);
}
.gap-sm {
  gap: var(--spacing-sm);
}
.gap-md {
  gap: var(--spacing-md);
}
.gap-lg {
  gap: var(--spacing-lg);
}
.gap-xl {
  gap: var(--spacing-xl);
}

/* Elegant header with backdrop blur */
.site-header {
  background-color: white;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: var(--spacing-md) 0;
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  width: auto;
  height: 53px;
  transition: transform var(--transition-fast);
}

.logo:hover img {
  transform: scale(1.02);
}

/* Improved mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
  background-color: transparent;
}

@media (max-width: 767px) {
  .mobile-menu-toggle {
    display: flex;
  }
}

.mobile-menu-toggle:hover {
  background-color: var(--bg-secondary);
}

.mobile-menu-toggle .menu-icon {
  width: 24px;
  height: 2px;
  background-color: var(--text-color);
  transition: all var(--transition-normal);
  border-radius: var(--radius-full);
}

.mobile-menu-toggle[aria-expanded="true"] .menu-icon:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  background-color: var(--primary-color);
}

.mobile-menu-toggle[aria-expanded="true"] .menu-icon:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.mobile-menu-toggle[aria-expanded="true"] .menu-icon:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  background-color: var(--primary-color);
}

/* Elegant navigation */
.main-nav .nav-list {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.main-nav .nav-list a {
  color: var(--text-color);
  font-weight: 500;
  font-size: var(--font-size-sm);
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
  position: relative;
}

.main-nav .nav-list a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-normal);
}

.main-nav .nav-list a:hover {
  color: var(--primary-color);
}

.main-nav .nav-list a:hover::after {
  width: 100%;
}

.has-dropdown {
  position: relative;
}

.dropdown-toggle {
  color: var(--text-color);
  font-weight: 500;
  font-size: var(--font-size-sm);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.dropdown-toggle:hover {
  color: var(--primary-color);
}

.dropdown-toggle .arrow {
  font-size: 0.625rem;
  transition: transform var(--transition-normal);
}

.has-dropdown:hover .dropdown-toggle .arrow,
.dropdown-toggle[aria-expanded="true"] .arrow {
  transform: rotate(180deg);
}

/* Beautiful dropdown menu */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  min-width: 220px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  max-height: 400px;
  overflow-y: auto;
  padding: 0.5rem;
}

.has-dropdown:hover .dropdown-menu,
.dropdown-toggle[aria-expanded="true"] + .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-color);
  font-size: var(--font-size-sm);
  transition: all var(--transition-fast);
  border-radius: var(--radius-md);
}

.dropdown-menu a:hover {
  background-color: var(--bg-secondary);
  color: var(--primary-color);
}

/* Updated footer to dark charcoal background matching design */
.site-footer {
  background: black;
  color: white;
  padding: var(--spacing-4xl) 0 var(--spacing-2xl);
  /* margin-top: var(--spacing-5xl); */
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-3xl);
  margin-bottom: var(--spacing-3xl);
}


.footer-section h3,
.footer-section h4 {
  color: white;
  font-family: var(--font-secondary);
  margin-bottom: var(--spacing-lg);
  font-size: var(--font-size-xl);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
  font-size: var(--font-size-sm);
}

.footer-section a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-2xl);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-size-sm);
}

.languages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns side by side */
  gap: 8px 0px; /* row-gap and column-gap */
  list-style: none;
  padding: 0;
  margin: 0;
}

.languages-grid li a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.languages-grid li a:hover {
  color: #fff;
}

/* Mobile responsive navigation */
@media (max-width: 768px) {
  .mobile-submenu {
  /* --- PROPERTY RESETS --- */
  /* This is the most important part. It neutralizes the desktop positioning. */
  position: static !important;
  left: auto !important;
  transform: none !important;

  /* --- VISIBILITY STYLES --- */
  display: none; /* Keep it hidden until the button is clicked */
  background: var(--bg-secondary); /* Your desired background color */
  padding: 0;
  width: 100% !important; /* Ensure it fills the parent container */
}

/* This rule makes the links inside readable */
.mobile-submenu a {
  color: var(--text-color) !important;
  padding-left: var(--spacing-2xl) !important;
}

/* This rule shows the menu when the button is active */
.dropdown-toggle[aria-expanded="true"] + .mobile-submenu {
  display: block;
}
  .site-header {
    padding: var(--spacing-md) 0;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--spacing-md) 0;
  }

  .main-nav .nav-list a {
    display: block;
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--border-light);
    font-size: var(--font-size-base);
  }

  .main-nav .nav-list a::after {
    display: none;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    display: none;
    background: var(--bg-secondary);
    padding: 0;
  }

  .dropdown-toggle[aria-expanded="true"] + .dropdown-menu {
    display: block;
  }

  .has-dropdown {
    width: 100%;
  }

  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--border-light);
    font-size: var(--font-size-base);
  }

  .dropdown-menu a {
    padding-left: var(--spacing-2xl);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }
}

[dir="rtl"] .dropdown-menu {
  left: auto;
  right: 0;
}

[dir="rtl"] .main-nav .nav-list {
  flex-direction: row-reverse;
}

/* Custom Header Menu Font */
.main-nav .nav-list a,
.dropdown-toggle,
.dropdown-menu a {
    font-family: 'Vidaloka', serif !important;
}

/* === Footer: apply Vidaloka font === */
.site-footer,
.site-footer p,
.site-footer a,
.site-footer li,
.site-footer h3,
.site-footer h4,
.languages-grid a,
.footer-bottom p {
    font-family: 'Vidaloka', serif;
}