* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  height: 100%;
}

body {
  min-height: 100vh;
  min-width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 0;
}
body.menu-open {
  overflow: hidden;
  position: fixed;
}
.navbar-left,
.navbar-links {
  margin-top: -15px;
}
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: url("/images/bg.png");
  background-size: cover;
  background-position: center;
  opacity: 0.2;
}
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;

  background: #1a53e4;
  border: none;

  width: 42px;
  height: 42px;

  border-radius: 10px;

  cursor: pointer;

  z-index: 3000;
  position: relative;
}


.menu-overlay {
  position: fixed;

  top: 0;
  left: 0;

  width: 100%;
  height: 100vh;

  background: rgba(0, 0, 0, 0.35);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  opacity: 0;
  visibility: hidden;

  transition: 0.3s ease;

  z-index: 1500;
}



.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}
.hamburger span {
  width: 20px;
  height: 2.5px;

  background: #ffffff;

  border-radius: 5px;

  transition: 0.3s ease;

  display: block;
  margin: 0 auto;
}
.navbar {
  background: #fff;
  padding: 0.625rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 110px;
  position: fixed;
  top: 0;
  z-index: 2500;
  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --tw-shadow-colored:
    0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
  box-shadow:
    var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000),
    var(--tw-shadow);
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.switch-language {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: none;
  background-color: white;
}

.switch-language img {
  width: 42px;
  height: 42px;

  border-radius: 50%;
  padding: 6px;

  border: 2px solid #c5c5c5;

  object-fit: cover;
  display: block;
}
.switch-language img:hover {
  border-color: #1a53e4;
  transition: border-color 0.3s;
}
.navbar-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  z-index: 2000;
}
.navbar-links li {
  display: flex;
  align-items: center;
}
.navbar-links a {
  text-decoration: none;
  color: #ffff;
  background: #1a53e4;
  padding: 0.7rem 1.7rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 1.15rem;
  transition:
    background 0.2s,
    color 0.2s;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
  border: none;
  font-family: "Inter", sans-serif;
  font-weight: 600;
}

.navbar-links a.active,
.navbar-links a:hover {
  background: #1e40af;
  color: #fff;
}
ul li {
  list-style: none;
}

.hamburger:hover {
  background: #1e40af;
  transform: scale(1.05);
}

.hero-section {
  margin-top: 6rem;
  background: #0d3f7a;
  padding: 30px;
  display: flex;
  justify-content: center;
}

.hero-image-committees {
  width: 95%;

  height: 500px;

  background-image:
    linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
    url("images/hero-comite.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: scale(0.96);
  margin-top: 1.25rem;
}

.hero-content-comittes {
  text-align: center;
  color: white;
  text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.6);
  animation: fadeUp 1.5s ease-out;
  margin-bottom: 160px;
}

.welcome-text-committes {
  font-family: "Montserrat", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  margin: 10px 0;
}

h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 5rem;
  font-weight: 700;
  margin: 10px 0;
}

.slogan-committes {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  line-height: 1.9;
}

p {
  line-height: 1.6;
  font-family: "Montserrat", sans-serif;
}

.cards-container,
.cards-container2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 60px 5%;
  background: #f0f4ff;          
}

.committee-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.09);
  overflow: hidden;              
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0 28px;             
  transition: transform 0.3s, border 0.3s;
}

.committee-card:hover {
  transform: translateY(-8px);
  border: 2px solid #0d3f7a;
}

.committee-image {
  width: 100%;                   
  height: 220px;
  object-fit: cover;
  display: block;                
  border-radius: 0;              
}

.committee-card h2 {
  color: #1c1c1c;
  font-size: 1rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  margin: 18px 16px 16px;
  line-height: 1.4;
}

.read-more-btn {
  display: inline-block;
  margin-top: auto;
  padding: 9px 28px;
  border: 1.5px solid #1a1a1a;
  border-radius: 30px;
  color: #1a1a1a !important;
  background: transparent;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}

.read-more-btn:hover {
  background: #0d3f7a;
  color: white !important;
  border-color: #0d3f7a;
}


.navbar-links a.nav-outline {
  background: transparent;
  color: #1a53e4 !important;
  border: 2px solid #1a53e4;
}
.navbar-links a.nav-outline:hover {
  background: #1a53e4;
  color: white !important;
}

.foot {
  background-color: #0d3f7a;
  padding: 0 0 20px;
  width: 100%;
  margin: 0;
}
.foot-blue {
  color: white;
  text-align: center;
  padding: 20px;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  width: 100%;
}
#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0d3f7a;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition:
    opacity 0.5s ease,
    visibility 0.5s;
}

.loader {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.2);
  border-top: 5px solid #ffcc00;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

#loader-wrapper p {
  color: white;
  margin-top: 15px;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 2px;
}
.foot-logo {
  height: 70px;
  width: auto;
}
.foot-gray {
  color: #c5c5c5;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
  gap: clamp(60px, 11vw, 160px);
  align-items: center;
  background-color: #202936;
  width: 100%;
  min-height: 143px;
  margin: 0;
  padding: 10px 80px 14px;
  position: relative;
}

.foot-gray-left,
.foot-gray-middle,
.foot-gray-right {
  flex: 1 1 0;
  min-width: 0;
}

.foot-gray-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: none;
  text-align: center;
}

.foot-gray-left .foot-logo {
  margin-bottom: 8px;
}

.foot-gray-left h3 {
  width: 100%;
  text-align: center;
}

.foot-gray-left p {
  width: 100%;
  text-align: center;
}

.foot-gray h3 {
  color: #ffffff;
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.foot-gray p,
.foot-gray li {
  line-height: 1.35;
}

.foot-gray ul {
  list-style: none;
}

.foot-links a,
.foot-links a:visited {
  color: #ffffff;
  text-decoration: underline;
  transition: color 0.3s;
}
a {
  color: #ffffff;
}
.foot-gray li a {
  color: #c5c5c5;
  text-decoration: underline;
  transition: color 0.3s;
}

.footer-bottom {
  width: 100%;
  background-color: transparent;
}
.theme-btn {
  border: 1px solid #111;
  background: transparent;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
  margin-left: 20px;
  transition: 0.3s;
}

.theme-btn:hover {
  background: #111;
  color: #fff;
}

.rendere {
  width: 100%;
  background-color: black;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 116.5px;
  padding: 50px;
  position: relative;
}
.rendere > div:nth-child(2) {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}
.renderlinks {
  gap: 20px;
  display: flex;
}
.rlogo {
  width: 200px;
}
h3 {
  color: white;
  font-family: "Inter", sans-serif;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loader-hidden {
  opacity: 0;
  visibility: hidden;
}
.rendere {
  width: 100%;
  background-color: black;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 116.5px;
  padding: 50px;
  position: relative;
}
.rendere > div:nth-child(2) {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}
.renderlinks {
  gap: 20px;
  display: flex;
}
.rlogo {
  width: 200px;
}
h3 {
  color: white;
  font-family: "Inter", sans-serif;
}
.scroll-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: #1a53e4;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(26, 83, 228, 0.35);
  z-index: 4000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    background 0.2s ease;
}
.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top-btn:hover {
  background: #1e40af;
  transform: translateY(-3px);
}
.scroll-top-btn svg {
  width: 22px;
  height: 22px;
  stroke: white;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.8rem 1rem;
    height: 90px;
  }
  .hero-section{
    margin-top: 4rem;
  }
  .navbar-logo {
    height: 55px;
  }

  .hamburger {
    display: flex;
  }

  .navbar-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 50%;
    height: 100vh;

    background: rgb(255, 255, 255);
    backdrop-filter: blur(18px);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    transition: right 0.4s ease;
    z-index: 999;

    padding: 0;
    margin: 0;
  }

  .navbar-links.active {
    right: 0;
  }

  .navbar-links a {
    font-size: 1.2rem;

    border-radius: 3rem;

    background: #1a53e4;
    color: white;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  }

  .navbar-links li {
    width: auto;
  }

  

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(12px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-12px);
  }

  

  .switch-language img {
    height: 2.5rem;
    padding: 0.4rem;
  }

  .hero-image-committees {
    height: 300px;
    scale: 1.11;
  }
  .slogan-committes {
    font-size: 0.7rem;
    padding: 0 10px;
    font-family: "Montserrat", sans-serif;
  }
  .welcome-text-committes {
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 10px;
  }

  h1 {
    font-size: 2.5rem;
  }

  .switch-language img {
    height: 2.5rem;
    padding: 0.4rem;
  }
  .floating-logo {
    float: none;
    display: block;
    margin: 0 auto 20px auto;
    width: 200px;
  }
  .content-section {
    font-size: 1rem;
  }
  h2 {
    font-size: 2rem;
  }

  .foot-gray {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    text-align: center;
  }

  .footer-bottom {
    width: 100%;
  }

  .foot-blue {
    font-size: 0.9rem;
    padding: 15px;
  }

  .foot-logo {
    height: 50px;
  }

  .foot-gray-left,
  .foot-gray-middle,
  .foot-gray-right {
    width: 100%;
    max-width: none;
  }

  .foot-gray-left {
    display: block;
  }
  .foot-gray h3 {
    justify-self: center;
  }
  .rendere {
    height: auto;
    padding: 24px 16px;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    text-align: center;
  }

  .rendere > div:nth-child(2) {
    position: static;
    transform: none;
    order: 2;
  }

  .renderelogo {
    order: 1;
  }

  .renderlinks {
    order: 3;
    justify-content: center;
    gap: 18px;
  }

  .rlogo {
    width: min(180px, 75vw);
  }

  .rendere h3 {
    font-size: 0.85rem;
    line-height: 1.4;
  }
   .cards-container,
  .cards-container2 {
    grid-template-columns: repeat(2, 1fr);
  }

  
}
@media (max-width: 600px) {
  .cards-container,
  .cards-container2 {
    grid-template-columns: 1fr;
    padding: 30px 5%;
  }

  .committee-image {
    height: 180px;
  }
}