* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
  }
  
  body, html {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  
  header {
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 10;
    width: 100%;
    padding-left: 37%;
  }
  
  .logo {
    height: 350px;
  }
  
  .carousel {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    filter: opacity(39%);
  }
  
  .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fade 25s infinite;
  }
  
  .slide1 { background-image: url('../img/slide1.jpg'); animation-delay: 0s;  }
  .slide2 { background-image: url('../img/slide2.jpg'); animation-delay: 5s;  }
  .slide3 { background-image: url('../img/slide3.jpg'); animation-delay: 10s; }
  .slide4 { background-image: url('../img/slide4.jpg'); animation-delay: 15s; }
  .slide5 { background-image: url('../img/slide5.jpg'); animation-delay: 20s; }
  
  @keyframes fade {
    0% { opacity: 0; }
    4% { opacity: 1; }
    20% { opacity: 1; }
    24% { opacity: 0; }
    100% { opacity: 0; }
  }
  
  .overlay {
    width: 100%;
    height: 100%;
    display: flex;
    padding-top: 180px;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap:60px;
    z-index: 2;
  }
  
  .link-box {
    background: rgba(255, 255, 255, 0.9);
    width: 450px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 500px;
  }
  
  .link-box img {
    width: 450px;
    height: 280px;
    margin-bottom: 10px;
  }
  
  .link-box p {
    padding: 20px;
    font-size: 18px;
    color: #333;
  }
  
  .link-box .btn {
    background: #6F6F6F;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
    margin-bottom: 10px;
  }
  
  .link-box .btn:hover {
    background: #B72727;
  }

  .text-card{
    text-align: justify;
  }
  
  footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #fff;
    padding: 10px 0;
    text-align: center;
    z-index: 10;
  }
  
  .footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 200px;
  }
  
  .footer-logos img {
    height: 80px;
    transition: transform 0.3s;
  }
  
  .footer-logos img:hover {
    transform: scale(1.1);
  }

@media(max-width: 1440px){
  header{
    padding-left: 30%;
  }
  
  .logo {
    height: 400px;
  }

  .link-box {
    width: 28%;
  }

  .link-box img {
    width: 100%;
    height: 260px;
  }

  .footer-logos {
    gap: 180px;
  }
}

@media (max-width: 940px) {
  header {
    position: relative;
    padding-left: 20%;
  }

  .logo {
    height: 180px;
  }

  .overlay {
    flex-direction: column;
    padding: 80px 20px;
    gap: 30px;
    justify-content: flex-start;
    overflow-y: auto;
  }

  .link-box {
    width: 90%;
    max-width: 600px;
  }

  .link-box img {
    width: 100%;
    height: 100%;
    margin-bottom: 10px;
  }

  .link-box p {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .footer-logos {
    gap: 40px;
  }
  
  .footer-logos img {
    height: 30px;
  }
}