html{
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
.navbar-nav {
  gap: 1.8rem;
}
.nav-link {
  font-size: 1.2rem;
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-weight: 200;
  color: #fff !important;
  transition: color 0.18s;
}
.nav-link:hover,
.nav-link:focus {
  color: #fff !important;
  text-decoration: underline;
}
#nav-home .nav-link {
  font-weight: 500;
}
.navbar-brand img {
  height: 62px;
  margin-right: 12px;
  transition: opacity ease-in-out 0.3s;
}

.navbar-brand img:hover {
  opacity: 0.7;
  transition: opacity ease-in-out 0.3s;
}
#nav-join .nav-link {
  background: white;
  color: #036 !important;
  font-weight: 300;
  border-radius: 0px;
  padding: 5px 15px;
  transition: background-color 0.3s, color 0.3s;
  text-align: center;
}

.navbar-nav .nav-link,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link:hover,
.nav-item.dropdown.show > .nav-link.dropdown-toggle {
  text-decoration: none !important;
}

.navbar-nav .dropdown {
  position: relative;
}

/* --- DROPDOWN MENU OVERRIDE --- */

.dropdown-menu {
  background: none !important; /* let .custom-dropdown control background */
  border-radius: 0 !important;
  color: transparent;
  margin: 0;
  font-size: large;
  opacity: 1 !important;
  box-shadow: none;
  min-width: 20px;
  left: auto !important;
  right: auto !important;
  z-index: 100;
}
/* --- CUSTOM DROPDOWN --- */
.custom-dropdown {
  background: rgba(255,255,255,0.61) !important;
  backdrop-filter: blur(14px) !important;
  border-radius: 3px !important;
  box-shadow: 0 6px 32px rgba(0,51,102,0.13);
  min-width: 50px;
  max-width: 330px;
  margin-top: 10px !important;
  padding: 0;
  border: none !important;
  animation: dropdownFade 0.3s ease;
  opacity: 0;
}

@media (min-width: 992px){
  .custom-dropdown{
    margin-right: 20px !important;
  }

  #dropdown-lang{
    margin-right: 100%;
  }
}

/* Softer dropdown fade-in */
@keyframes dropdownFade {
  from {
    transform: translateY(-14px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* --- DROPDOWN ITEM --- */
.custom-dropdown .dropdown-item {
  color: #555 !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.95em;
  padding: 0.82em 1.4em;
  background: transparent !important;
  border-radius: 0;
  margin: 0;
  border: none;
  border-bottom: 1px solid #777777;
  width: 100%; /* 80% width for separator */
  display: block;
  transition: background 0.16s, color 0.13s;
  line-height: 1.18;
  border-radius: 3px;
}

.custom-dropdown .dropdown-item:last-child {
  border-bottom: none;
}

.custom-dropdown .dropdown-item:hover,
.custom-dropdown .dropdown-item:focus {
  background: rgba(255,255,255,0.7) !important;
  backdrop-filter: blur(14px) !important;
  color: #003366 !important;
  border-radius: 3px;
}

.custom-dropdown .dropdown-item:not(:last-child) {
  border-bottom: 1px solid #777777;
}

/* --- RESPONSIVE: 90vw on mobile/collapsed navbar --- */
@media (max-width: 1200px) {
  .custom-dropdown {
    position: absolute !important;
    min-width: 90vw !important;
    max-width: 98vw;
    margin-top: 13px !important;
    border-radius: 3px !important;
    padding: 0;
    right: -4% !important;
    left: -4% !important;
  }

  .custom-dropdown .dropdown-item {
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
  }
  
}

/* --- Retain transition and shadow for nav when scrolling --- */
#div-header {
  transition: background-color 200ms ease-out, box-shadow 300ms ease-out;
}
#side-right{
background: linear-gradient(180deg, rgba(0,0,0,0.8) -5%, transparent 13%);
}

#section-first-team {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.left-team-panel {
  background-image: url('assets/background/imagini/sar/DSC_0333.JPG');
  background-size: cover;
  background-position: center;
  min-height: 480px;
  position: relative;
}
.left-team-panel .overlay-bg {
  position: absolute;
  top:0;left:0;width:100%;height:100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 1;
}
.left-team-panel h1,
.left-team-panel .scroll-btn {
  position: relative;
  z-index: 2;
}

/* Responsivity for Texts and Logos */
#header-meet-our-team {
  font-size: 4.5rem;
  line-height: 4.2rem;
  letter-spacing: 5px;
  padding: 0 4vw;
}
.text-nova p {
  font-size: 1.4em;
  line-height: 1.35;
  font-weight: 400 !important;
  font-family: Montserrat, Arial, sans-serif;
}
.partner-logo {
  max-width: 100px;
  min-width: 55px;
  width: 5em;
  height: auto;
  display: inline-block;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px #eee);
}
.main-nova-logo {
  max-width: 100px;
  min-width: 70px;
  height: auto;
  object-fit: contain;
  align-self: flex-start;
}

.paragraph-nova {
  font-size: 1.5em;
  line-height: 1.4;
  font-weight: 400 !important;
  font-family: Montserrat, Arial, sans-serif;
  margin-bottom: 1.15em;
}

#span-text-nova {
  font-size: 1.12em;
  letter-spacing: 0.06em;
  padding-top: 24px;
  border-top: 1px solid #036;
  color: #003366;
  text-align: left;
  display: block;
}

/* Responsive font and logo scaling */
@media (max-width: 1200px) {
  .paragraph-nova { font-size: 1.05em; }
  #span-text-nova { font-size: 1em; }
  .partner-logo { max-width: 56px; }
}
@media (max-width: 988px) {
  .paragraph-nova { font-size: 0.95em; text-align: center; }
  #span-text-nova { font-size: 0.92em; text-align: center; }
  .partner-logo { max-width: 44px; }
}
@media (max-width: 600px) {
  .paragraph-nova { font-size: 0.88em; }
  #span-text-nova { font-size: 0.83em; }
  .partner-logo { max-width: 36px; }
}

/* Always left-align the logos */
.logos-row {
  justify-content: flex-start !important;
  gap: 1em;
  width: 100%;
}

.partner-logo {
  display: inline-block;
  object-fit: contain;
  vertical-align: middle;
  height: auto;
  transition: max-width 0.25s;
}


/* Responsive Tweaks */
@media (max-width: 1200px) {
  #header-meet-our-team { font-size: 3.6rem; line-height: 3.2rem; }
  .main-nova-logo { max-width: 120px; }
}
@media (max-width: 988px) {
  #section-first-team, #section-first-team .row { flex-direction: column !important; min-height:unset;}
  .left-team-panel, .right-team-panel { min-height: 320px; height: unset;}
  .right-team-panel { padding: 1.8em 0.7em !important; }
  #header-meet-our-team { font-size: 2.4rem; line-height: 2.5rem;}
  .text-nova p { font-size: 0.8em; }
  .partner-logo { max-width: 54px; min-width: 16px; width: 24vw; }
  .main-nova-logo { max-width: 120px; }
}
@media (max-width: 600px) {
  #header-meet-our-team { font-size: 2rem; line-height: 1.6rem;}
  .text-nova p { font-size: 0.96em; }
  .partner-logo { max-width: 68px; width: 30vw; }
  .main-nova-logo { max-width: 80px; }
}

/* Button hover */
#btn-scroll-members:hover{
  transition: all 200ms ease-in-out;
  opacity: 0.8;
  color: white;
}
.team-card {
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 6px 24px rgba(0,51,102,0.13);
  transition: box-shadow 180ms;
}
.team-card:hover {
  box-shadow: 0 8px 32px rgba(0,51,102,0.19);
}
.team-name {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 300;
  font-size: 1.38rem;
  color: #003366;
  text-align: center;
  margin-top: 5px;
}
.team-role {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 400;
  font-size: 0.98rem;
  color: #888;
  text-align: center;
  margin-top: 2px;
  letter-spacing: .01em;
}
.team-photo {
  border-radius: 4px;
  width: 192px;
  max-height: 192px;
  max-width: 100%;
  object-fit: cover;
  object-position: top;
  background: radial-gradient(white 0%, rgba(200, 200, 200, 0.4) 90%);
  border: 2px solid #f4f5f9;
}
/* Responsive tweaks for side-by-side columns */
@media (max-width: 991.98px) {
  #team-members-section .col-lg-6 { margin-bottom: 3rem; }
  #team-chiefs-section .col-lg-6 { margin-bottom: 3rem; }
  .team-photo { width: 140px; height: 140px; }
}
@media (max-width: 576px) {
  .team-card { padding: 1.0rem 0.7rem !important; }
  .team-photo { width: 122px; height: 122px; }
  .team-name { font-size: 0.99rem; }
  .team-role { font-size: 0.85rem; }
}
@media (min-width: 992px) {
  #team-members-section .col-lg-6 {
    padding-right: 36px;
  }
  #team-members-section .col-lg-6:last-child {
    padding-left: 36px;
    padding-right: 0;
  }
}
@media (min-width: 992px) {
  #team-chiefs-section .col-lg-6 {
    padding-right: 36px;
  }
  #team-chiefs-section .col-lg-6:last-child {
    padding-left: 36px;
    padding-right: 0;
  }
}
/* Make the content side by side, stack on mobile */
    #btn-contact-us:hover{
      transition: all 200ms ease-in-out;
      opacity: 0.8;
      color: white;
    }
    #join-us-section {
      gap: 0;
      vertical-align: middle;
    }
    #join-us-section p{
      font-size: 0.98em;
    }
    #card-text-join-us {
      /* Prevents card from shrinking in grid */
      min-width: 110%;
    }
    @media (max-width: 989px){
      #join-us-section {
        display: block !important;
        position: relative !important;
      }
      #image-join-us {
        padding-top: 20%;
        max-height: 480px;
        min-height: 240px;  /* keep some presence for small screens */
        object-fit: cover;
      }
      #gradient-1,
      #gradient-2 {
        margin-top: 20%;
        height: 100% !important;
        border-radius: 0 !important;
        display: block;
      }
      #card-text-join-us {
        position: absolute;
        left: 50%;
        top: -18%;
        transform: translate(-50%, 0);
        width: 88vw !important;
        min-width: 0;
        height: auto !important;
        margin: 0 !important;
        padding: 28px 6vw !important;
        border-radius: 8px;
        background: rgba(255,255,255,0.98);
        z-index: 10;
        box-shadow: 0 8px 32px rgba(0,51,102,0.15);
        align-items: center;
        text-align: center;
      }
      #card-text-join-us h2,
      #card-text-join-us p {
        text-align: center;
        width: 100%;
      }
      #join-us-section h2{
        font-size: large;
      }
      #join-us-section p{
        font-size: small;
    }
}
body{
    height: 100%;
    margin: 0;
}
#div-header {
  font-weight: bold;
  background-color: transparent;
  color: white;
  opacity: 0.9;
  width: 100%;
  position: fixed;
  padding: 10px 20px;
  z-index: 100;
  top: 0;
}

button:hover {
  background-color: transparent;
  color: white;
  size: 20em;
}

li {
  color: #ccc;
}

.nav-link:hover {
  background-color: transparent;
  color: black;
}

.nav-link:not(#join-link) {
  border-bottom: 1px solid transparent;
  transition: border-bottom 300ms ease-in-out;
}

.nav-link:hover:not(#join-link) {
  border-bottom: 1px solid white;
}

#join-link:hover {
  background-color: rgba(255, 255, 255, 0.3);
  color: white;
}

#btn-meet-the-team:hover {
  transition: all 200ms ease-in-out;
  opacity: 0.8;
  color: white;
}

#btn-discover-projects:hover{
  transition: all 200ms ease-in-out;
  opacity: 0.8;
  color: white;
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  margin: 0;
  height: 100%;
}

/* Titles/headings */
h1 {
  font-family:'Montserrat', Arial, sans-serif;
  font-size:32px;
  text-align:center;
  color:#003366;
  font-weight:400;
  margin-bottom:40px;
}

.nova-footer {
  background: #003366;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
}

.nova-footer h5 {
  color: #fff;
}

.nova-link {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease-out;
}

.nova-link:hover,
.nova-link:focus {
  border-color: #fff;
  transition: border-color 0.3s ease-in;
}

.nova-social {
  color: #fff;
  font-size: 2rem;
  transition: color 0.2s;
}

.nova-social:hover,
.nova-social:focus {
  color: #d4d4d4;
}

.nova-logo {
  height: 90px;
  width: 110px;
  object-fit: contain;
}

.nova-footer hr {
  border-top: 2px solid #fff;
  opacity: 0.5;
}

.nova-footer .fw-bold {
  font-weight: 700 !important;
}

.nova-footer ul {
  padding-left: 0;
  margin-bottom: 0;
}

.nova-footer li {
  list-style: none;
}

.nova-footer a {
  outline: none;
}

.nova-copyright {
  font-size: 1rem;
  text-align: left;
}

@media (max-width: 1260px){
  .nova-logo {
    height: 70px;
    width: 80px;
    object-fit: contain;
  }
}

@media (max-width: 988px){
  #container-foote{
    max-width: 90%;
  }
  .nova-logo {
    height: 60px;
    width: 70px;
    object-fit: contain;
  }
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
  .nova-footer {
    text-align: center;
  }
  .nova-footer .col-md-5,
  .nova-footer .col-md-4,
  .nova-footer .col-md-3 {
    margin-bottom: 2rem;
  }
}  
    /* Make the content side by side, stack on mobile */
    #btn-discover-us:hover{
      transition: all 200ms ease-in-out;
      opacity: 0.8;
      color: white;
    }
    #aim-section {
      margin-top: 4%;
      gap: 0;
      vertical-align: middle;
    }
    #aim-section p{
      font-size: 0.98em;
    }
    #card-text-aim {
      /* Prevents card from shrinking in grid */
      min-width: 110%;
    }
    @media (max-width: 760px){
      #aim-section {
        display: block !important;
        position: relative !important;
        margin-top: 23%;
      }
      #image-aim {
        padding-top: 20%;
        max-height: 480px;
        min-height: 240px;  /* keep some presence for small screens */
        object-fit: cover;
      }
      #gradient-1-aim,
      #gradient-2-aim {
        margin-top: 20%;
        height: 100% !important;
        border-radius: 0 !important;
        display: block;
      }
      #card-text-aim {
        position: absolute;
        left: 50%;
        top: -18%;
        transform: translate(-50%, 0);
        width: 88vw !important;
        min-width: 0;
        height: auto !important;
        margin: 0 !important;
        padding: 28px 6vw !important;
        border-radius: 8px;
        background: rgba(255,255,255,0.98);
        z-index: 10;
        box-shadow: 0 8px 32px rgba(0,51,102,0.15);
        align-items: center;
        text-align: center;
      }
      #card-text-aim h2,
      #card-text-aim p {
        text-align: center;
        width: 100%;
      }
      #aim-section h2{
        font-size: large;
      }
      #aim-section p{
        font-size: small;
      }
    }
    #aeros-section {
      margin-top: 4%;
      gap: 0;
      vertical-align: middle;
    }
    #aeros-section p{
      font-size: 0.98em;
    }
    #card-text-aeros {
      /* Prevents card from shrinking in grid */
      min-width: 110%;
    }
    @media (max-width: 760px){
      #aeros-section {
        display: block !important;
        position: relative !important;
        margin-top: 23%;
      }
      #image-aeros {
        padding-top: 20%;
        max-height: 480px;
        min-height: 240px;  /* keep some presence for small screens */
        object-fit: cover;
      }
      #gradient-1-aeros,
      #gradient-2-aeros {
        margin-top: 20%;
        height: 100% !important;
        border-radius: 0 !important;
        display: block;
      }
      #card-text-aeros {
        position: absolute;
        left: 50%;
        top: -18%;
        transform: translate(-50%, 0);
        width: 88vw !important;
        min-width: 0;
        height: auto !important;
        margin: 0 !important;
        padding: 28px 6vw !important;
        border-radius: 8px;
        background: rgba(255,255,255,0.98);
        z-index: 10;
        box-shadow: 0 8px 32px rgba(0,51,102,0.15);
        align-items: center;
        text-align: center;
      }
      #card-text-aeros h2,
      #card-text-aeros p {
        text-align: center;
        width: 100%;
      }
      #aeros-section h2{
        font-size: large;
      }
      #aeros-section p{
        font-size: small;
      }
    }

#section-our-gallery{
    padding: 60px 0px 0px 0px; 
    background: #fff; 
    align-items: center; 
}

.our-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 100%;
  gap: 0px;
}
.our-gallery-logo {
  margin-left: 0px;
  max-width: 100%;
  height: auto;
  align-content: center;
  vertical-align: middle;
  background-image: url(assets/background/imagini/PozaDeGrupConcurs.jpeg);
}
.our-gallery-content {
  padding-left: 50px;
  padding-right: 18px;
}
#our-gallery-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 3em;
  color: #003366;
  font-weight: 300;
  margin-bottom: 18px;
  letter-spacing: 2px;
}
#our-gallery-description {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2em;
  color: #444;
  font-weight: 400;
  margin-bottom: 35px;
  line-height: 1.35;
}

@media (max-width: 1242px) {
  #section-our-gallery{
        padding: 40px 80px; 
  }

  .our-gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 0;
  }
  .our-gallery-logo {
    margin-left: 0;
    width: 100%;
  }
  .our-gallery-content {
    padding-left: 0;
    padding-top: 8px;
    padding-bottom: 10px;
  }
}

@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}
.carousel-inner {
  width: 100%;
}
.carousel-card {
  width: 500px;         /* increased width */
  height: 300px;        /* you can adjust height to your preference */
  background: transparent;
  border-radius: 1px;
  display: block;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  font-weight: 600;
  color: #111;
  margin: 0 5px;
  overflow: hidden;
}
.carousel-inner > .carousel-item {
  transition: transform 0.6s ease-in-out;
}
@media (max-width: 900px) {
  .carousel-card { width: 214px; height: 204px; font-size: 1.4rem; }
}
@media (max-width: 600px) {
  .carousel-card { width: 95vw; max-width: 350px; margin: 0 auto 10px auto; }
  .carousel-item .d-flex { flex-direction: column !important; gap: 10px !important; }
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1) brightness(0.2); /* Makes the arrow dark */
}

.carousel-control-prev,
.carousel-control-next {
  background: rgba(10,20,35,0.10);  /* semi-dark round bg when hovered */
  border-radius: 50%;
  width:42px;
  height:42px;
  top: 50%;
  transform: translateY(-50%);
  opacity:0.82;
  transition: background 0.2s, opacity 0.2s;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(8px);
  opacity:1;
}

.card-img-inside {
  width: 100%;
  object-fit: cover;  
  display: block;
  color: rgba(0,0,0,0.4);
}

#section-first-projects {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.left-projects-panel {
  background-image: url('assets/background/imagini/Cover-Carpathian\ Shadow.png');
  background-size: cover;
  background-position: center;
  min-height: 480px;
  position: relative;
}
.left-projects-panel .overlay-bg {
  position: absolute;
  top:0;left:0;width:100%;height:100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 1;
}
.left-projects-panel h1,
.left-projects-panel .scroll-btn {
  position: relative;
  z-index: 2;
}

/* Responsivity for Texts and Logos */
#header-meet-our-projects {
  font-size: 4.5rem;
  line-height: 4.2rem;
  letter-spacing: 5px;
  padding: 0 4vw;
}
.partner-logo {
  max-width: 100px;
  min-width: 55px;
  width: 16vw;
  height: auto;
  display: inline-block;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px #eee);
}
.paragraph-nova {
  font-size: 1.1em;
  line-height: 1.4;
  font-weight: 400 !important;
  font-family: Montserrat, Arial, sans-serif;
  margin-bottom: 1.05em;
}

#span-text-nova {
  font-size: 1em;
  letter-spacing: 0.06em;
  padding-top: 24px;
  border-top: 1px solid #036;
  color: #003366;
  text-align: left;
  display: block;
}

/* Responsive Tweaks */
@media (max-width: 1200px) {
  #header-meet-our-projects { font-size: 3.6rem; line-height: 3.2rem; }
  .main-nova-logo { max-width: 120px; }
}
@media (max-width: 988px) {
  #section-first-projects, #section-first-projects .row { flex-direction: column !important; min-height:unset;}
  .left-projects-panel, .right-projects-panel { min-height: 320px; height: unset;}
  .right-projects-panel { padding: 1.8em 0.7em !important; }
  #header-meet-our-projects { font-size: 2.4rem; line-height: 2.5rem;}
  .text-nova p { font-size: 0.8em; }
  .partner-logo { max-width: 54px; min-width: 16px; width: 24vw; }
  .main-nova-logo { max-width: 120px; }
}
@media (max-width: 600px) {
  #header-meet-our-projects { font-size: 2rem; line-height: 1.6rem;}
  .text-nova p { font-size: 0.96em; }
  .partner-logo { max-width: 68px; width: 30vw; }
  .main-nova-logo { max-width: 80px; }
}

/* Make the content side by side, stack on mobile */
#btn-discover-us:hover{
    transition: all 200ms ease-in-out;
    opacity: 0.8;
    color: white;
}
#aeroatlas-section {
    margin-top: 4%;
    gap: 0;
    vertical-align: middle;
}
#aeroatlas-section p{
    font-size: 0.98em;
}
#card-text-aeroatlas {
    /* Prevents card from shrinking in grid */
    min-width: 110%;
}
@media (max-width: 760px){
    #aeroatlas-section {
    display: block !important;
    position: relative !important;
    margin-top: 23%;
    }
    #image-aeroatlas {
    padding-top: 20%;
    max-height: 480px;
    min-height: 240px;  /* keep some presence for small screens */
    object-fit: cover;
    }
    #gradient-1-aeroatlas,
    #gradient-2-aeroatlas {
    margin-top: 20%;
    height: 100% !important;
    border-radius: 0 !important;
    display: block;
    }
    #card-text-aeroatlas {
    position: absolute;
    left: 50%;
    top: -18%;
    transform: translate(-50%, 0);
    width: 88vw !important;
    min-width: 0;
    height: auto !important;
    margin: 0 !important;
    padding: 28px 6vw !important;
    border-radius: 8px;
    background: rgba(255,255,255,0.98);
    z-index: 10;
    box-shadow: 0 8px 32px rgba(0,51,102,0.15);
    align-items: center;
    text-align: center;
    }
    #card-text-aeroatlas h2,
    #card-text-aeroatlas p {
    text-align: center;
    width: 100%;
    }
    #aeroatlas-section h2{
    font-size: large;
    }
    #aeroatlas-section p{
    font-size: small;
    }
}

.gallery-row {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(4, 1fr); /* Default: 4 columns */
  justify-content: center;
  align-items: stretch;
  width: 100%;
}

@media (max-width: 998px) {
  .gallery-row {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for tablet */
  }
}

@media (max-width: 600px) {
  .gallery-row {
    grid-template-columns: 1fr; /* 1 column for mobile */
  }
  .gallery-item { 
    height: 36vw; 
    min-height: 210px;
  }
}

.gallery-item {
  min-width: 70px;
  max-width: 100%;
  height: 300px;
  background: #e4e7ec;
  border-radius: 2px;
  overflow: hidden;
  transition: 
    box-shadow 1.2s cubic-bezier(.25,.8,1.54,1),
    opacity 1.2s cubic-bezier(.25,.8,1.54,1),
    transform 1.2s cubic-bezier(.25,.8,1.54,1);
  box-shadow: 0 2px 14px rgba(0,51,102,0.08);
  cursor: pointer;
  position: relative;
  opacity: 0.92;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 
    transform 1.2s cubic-bezier(.25,.8,1.54,1),
    opacity 0.7s cubic-bezier(.25,.8,1.54,1);
  display: block;
  opacity: 0.97;
}

.gallery-item:hover {
  z-index: 2;
  box-shadow: 0 24px 120px rgba(0,51,102,0.21), 0 8px 48px rgba(0,0,0,0.21);
  opacity: 1;
}
    #donate-section {
      gap: 0;
      vertical-align: middle;
    }
    #donate-section p{
      font-size: 0.98em;
    }
    #card-text-donate {
      /* Prevents card from shrinking in grid */
      min-width: 110%;
    }
    @media (max-width: 989px){
      #donate-section {
        display: block !important;
        position: relative !important;
      }
      #image-donate {
        padding-top: 20%;
        max-height: 480px;
        min-height: 240px;  /* keep some presence for small screens */
        object-fit: cover;
        object-position: center;
      }
      #gradient-1,
      #gradient-2 {
        margin-top: 20%;
        height: 100% !important;
        border-radius: 0 !important;
        display: block;
      }
      #card-text-donate {
        position: absolute;
        left: 50%;
        top: -18%;
        transform: translate(-50%, 0);
        width: 88vw !important;
        min-width: 0;
        height: auto !important;
        margin: 0 !important;
        padding: 28px 6vw !important;
        border-radius: 8px;
        background: rgba(255,255,255,0.98);
        z-index: 10;
        box-shadow: 0 8px 32px rgba(0,51,102,0.15);
        align-items: center;
        text-align: center;
      }
      #card-text-donate h2,
      #card-text-donate p {
        text-align: center;
        width: 100%;
      }
      #donate-section h2{
        font-size: large;
      }
      #donate-section p{
        font-size: small;
      }
    }
    @media (max-width: 475px){
        #image-donate {
        padding-top: 50%;
        max-height: 480px;
        min-height: 240px;  /* keep some presence for small screens */
        object-fit: cover;
      }
      #gradient-1,
      #gradient-2 {
        margin-top: 50%;
        height: 100% !important;
        border-radius: 0 !important;
        display: block;
      }
    }

/* Engineering the Sky Header */
#header-engineering-the-sky {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 82px;
  letter-spacing: 7px;
  line-height: 75px;
  opacity: 0;
  text-align: center;
  color: white;
  position: absolute;
  bottom: 15%;
  width: 100%;
  padding: 0 10px; /* prevents text clipping on small widths */
  box-sizing: border-box;
  transition: all 0.3s ease;
  text-shadow: -4px 4px 10px rgba(0, 0, 0, 0.8);
  z-index: 10; /* make sure it's above background */
}

/* Large screens */
@media (max-width: 1200px) {
  #header-engineering-the-sky {
    font-size: 80px;
    line-height: 74px;
    letter-spacing: 5px;
  }
}

/* Medium screens */
@media (max-width: 768px) {
  #header-engineering-the-sky {
    font-size: 60px;
    line-height: 56px;
    letter-spacing: 3px;
    bottom: 15%;
    padding: 0 8px;
  }
}

/* Small screens */
@media (max-width: 500px) {
  #header-engineering-the-sky {
    font-size: 48px;
    line-height: 50px;
    letter-spacing: 3px;
    bottom: 20%;
    padding: 0 6px;
  }
}

/* Extra small screens */
@media (max-width: 400px) {
  #header-engineering-the-sky {
    font-size: 39px;
    line-height: 44px;
    letter-spacing: 2px;
    bottom: 17%;
    padding: 0 5px;
    word-break: break-word;
  }
}

.stats-united-block {
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 4px 38px rgba(0,0,0,0.11);
  min-height: 220px;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: stretch;
  width: 100%; /* Wide box */
  margin: 0 auto;
  padding: 0;
}
.stat-item {
  padding: 60px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 22%;
}
.stat-value {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 5.5em;
  font-weight: 800;
  color: #003366;
  letter-spacing: 2px;
  transition: font-size 0.3s;
  line-height: 1.1;
}
.stat-label {
  font-size: 2.1em;
  color: #003366;
  margin-top: 18px;
  font-weight: 400;
  letter-spacing: 1px;
  opacity: 0.8;
}
.stat-separator {
  border-left: 3px solid #eee;
  margin: 60px 0;
  width: 1px;
  height: 112px;
  align-self: center;
}
@media (max-width: 1200px) {
  .stat-value { font-size: 3.6em; }
  .stat-label { font-size: 1.2em; }
  .stats-united-block { min-height: 150px; border-radius: 5px; }
  .stat-separator { height: 70px; margin: 40px 0; }
  .stat-item { padding: 28px 8px; }
  .stats-united-block { max-width: 90%; }
}
@media (max-width: 760px) {
  .stats-united-block { flex-direction: column; }
  .stat-separator {
    border-left: none;
    border-top: 3px solid #eee;
    margin: 0 8px;
    width: 85%;
    height: 2px;
  }
  .stat-item { padding: 34px 0 22px 0; }
}
/* Sponsors roller heading */
#section-partners-slider {
  padding-top: 40px;
  padding-bottom: 60px;
  position: relative;
  align-items: center;
  vertical-align: middle;
  display: flex;
  flex-direction: column;
  z-index: 0;
}

#logoCarousel .carousel-item {
  transition: transform 20s linear;
}

#section-partners-slider h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 42px;
  color: #003366;
  font-weight: 400;
  margin-bottom: 80px;
  text-align: center;
  line-height: 44px;
  transition: font-size 0.3s ease;
}

@media (max-width: 768px) {
  #section-partners-slider h1 {
    font-size: 28px;
    margin-bottom: 40px;
    line-height: 32px;
  }
}

@media (max-width: 400px) {
  #section-partners-slider h1 {
    font-size: 22px;
    margin-bottom: 30px;
    line-height: 28px;
  }
}

#section-about-nova{
    padding: 140px 180px; 
    background: #fff; 
    align-items: center; 
}

.about-nova-grid {
  display: grid;
  grid-template-columns: 1fr 12px 1fr;
  align-items: center;
  width: 100%;
  gap: 0;
}
.about-nova-logo {
  margin-left: 10px;
  min-height: 100%;
  max-width: 70%;
  min-width: 250px;
  height: auto;
  align-content: center;
  vertical-align: middle;
}
.about-nova-separator {
  border-left: 1px solid #003366;
  height: 80%;
  margin-left: 10px;
  transition: border 0.3s;
}
.about-nova-content {
  padding-left: 40px;
}
#about-nova-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 3em;
  color: #003366;
  font-weight: 300;
  margin-bottom: 18px;
  letter-spacing: 2px;
}
#about-nova-description {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2em;
  color: #444;
  font-weight: 400;
  margin-bottom: 35px;
  line-height: 1.35;
}

@media (max-width: 988px) {
  #section-about-nova{
        padding: 40px 80px; 
  }

  .about-nova-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 0;
    align-items: center;
  }
  .about-nova-logo {
    margin-left: 0;
    min-width: 100%;
    max-height: 180px;
    margin-bottom: 24px;
    align-items: center;
    vertical-align: middle;
  }
  .about-nova-separator {
    border-left: none;
    border-top: 2.5px solid #003366;
    width: 90%;
    height: 1px;
    margin: 0 auto 24px auto;
  }
  .about-nova-content {
    padding-left: 0;
    padding-top: 18px;
  }
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 18px;
}

/* LOGO GRID: Responsive grid replaces display:flex layout */
.logo-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 42px;
  justify-items: center;
  align-items: start;
  margin-bottom: 25px;
}
/* Each logo tile/card */
.outer-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 175px; max-width: 175px; width: 100%;
}

/* Logo image container styling */
.logo-box {
  width: 190px; height: 145px;
  background:#fff;
  box-shadow: 0 6px 32px rgba(0,51,102,0.14), 0 2px 10px rgba(0,51,102,0.07);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: box-shadow 0.18s;
}
.logo-box:hover {
  box-shadow: 0 14px 48px rgba(0,51,102,0.18), 0 4px 18px rgba(0,51,102,0.12);
}

/* Logo image itself */
.logo-img {
  height:115px; width:160px;
  max-width:160px; max-height:140px;
  object-fit: contain;
  transition: transform 0.18s;
}
.logo-box:hover .logo-img, .logo-img:hover {
  transform: scale(1.05);
}

/* Label below each logo */
.logo-label {
  font-family:'Montserrat', Arial, sans-serif;
  font-size:1.09em;
  color:#333;
  margin-top:5px;
  line-height:1.16;
  text-align:center;
}


/* Responsive design for tablets and smaller screens */
@media (max-width: 1200px) {
  .container { max-width: 99%; }
  .logo-row { gap:12px; }
}
@media (max-width: 900px) {
  .logo-row {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap:18px;
    margin-bottom:16px;
  }
  .outer-box {
    min-width:110px; max-width:110px; width: 100%;
  }
  .logo-box { width:110px; height:110px;}
  .logo-img { width:80px; height:80px; }
  h1 { font-size:18px; margin-bottom:16px; }
}
#section-first-contact {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.left-contact-panel {
  background-image: url('assets/background/imagini/DSC_0301.JPG');
  background-size: cover;
  background-position: center;
  min-height: 480px;
  position: relative;
}
.left-contact-panel .overlay-bg {
  position: absolute;
  top:0;left:0;width:100%;height:100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 1;
}
.left-contact-panel h1,
.left-contact-panel .scroll-btn {
  position: relative;
  z-index: 2;
}
#header-meet-our-contact {
  font-size: 4.5rem;
  line-height: 4.2rem;
  letter-spacing: 5px;
  padding: 0 4vw;
}
@media (max-width: 600px){
    #header-meet-our-contact {
    font-size: 2.9rem;
    line-height: 2.5rem;
    letter-spacing: 4px;
    padding: 0 4vw;
  }
}
button:hover{
  transition: all 200ms ease-in-out;
  opacity: 0.8;
  color: white;
}