* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: #222;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)),
    url("Pictures_background/3.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Top header */
.header {
  border-bottom: 1px solid rgba(229, 229, 229, 0.8);
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  color: inherit;
}

.logo img {
  height: 44px;
  width: auto;
  display: block;
}

.lang-switch {
  display: flex;
  gap: 12px;
}

.lang-switch a {
  text-decoration: none;
  color: #666;
}

.lang-switch a.active {
  color: #000;
  font-weight: 700;
  text-decoration: underline;
}

/* Main two-column layout */
.layout {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  gap: 32px;
  flex: 1; /* Pushes footer to the bottom */
}

/* Left sidebar */
.sidebar {
  width: 220px;
  flex-shrink: 0;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav a {
  text-decoration: none;
  color: #333;
  padding: 10px 14px;
  border-radius: 6px;
}

.nav a:hover,
.nav a.active {
  background-color: rgba(240, 240, 240, 0.9);
  font-weight: 600;
}

/* Contact block with icons in sidebar */
.contact-block {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(229, 229, 229, 0.8);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.contact-title {
  padding: 0 14px 4px;
  font-weight: 600;
  color: #555;
}

.nav a.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  color: #222;
}

.nav a.contact-item svg {
  flex-shrink: 0;
  color: #555;
}

.nav a.contact-item:hover {
  background-color: rgba(240, 240, 240, 0.9);
  text-decoration: underline;
  font-weight: 400; /* Keeps text from jumping on hover */
}

/* Right main content column */
.content {
  flex: 1;
  max-width: 900px;
}

.content h1 {
  margin-top: 0;
}

/* Partners grid */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  grid-auto-rows: 148px; /* Equal row height for logos up to 128px */
  column-gap: 6px;        /* Minimal horizontal spacing */
  row-gap: 10px;          /* Vertical spacing between rows */
  margin-top: 20px;
}

.partner-card {
  display: flex;
  align-items: center;     /* Vertical centering */
  justify-content: center; /* Horizontal centering */
  height: 100%;
  padding: 10px 14px;
  background-color: rgba(255, 255, 255, 0.35); /* Semi-transparent card background */
  border: 1px solid rgba(229, 229, 229, 0.6);
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.partner-card:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border-color: #ccc;
}

.partner-card img {
  max-width: 100%;
  max-height: 128px;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply; /* Makes white background inside images transparent */
}

/* Site footer */
.footer {
  border-top: 1px solid rgba(229, 229, 229, 0.8);
  background-color: rgba(250, 250, 250, 0.88);
  backdrop-filter: blur(6px);
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: flex-end;
}

.copyright {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}

/* Mobile and tablet responsiveness */
@media (max-width: 768px) {
  .header-inner {
    padding: 14px 16px;
  }

  .layout {
    flex-direction: column;
    padding: 20px 16px;
    gap: 20px;
  }

  .sidebar {
    width: 100%;
  }

  .nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .contact-block {
    width: 100%;
    margin-top: 8px;
    padding-top: 12px;
  }

  .partners-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    grid-auto-rows: 120px;
  }

  .partner-card img {
    max-height: 100px;
  }

  .footer-inner {
    padding: 14px 16px;
    justify-content: center;
  }
}
