* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f4f6f9;
    color: #111;
}
.hero {
  height: 50vh;
  background:#1b345c;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff; 
}
.hero h1,
.hero h3 {
  font-family: 'Anton', sans-serif;
  color: white;
  margin: 0;
  text-transform: uppercase;
}
.hero h1 {
  font-size: 7rem;
  display: flex;
  gap: 10px;
}
.hero h3 {
  font-size: 4rem;
}
.newsroom{
    opacity: 0;
    transform: translateY(20px);
    animation: showNews 0.6 ease-out forwards;
    animation-delay: 0.9s;
}
@keyframes showNews {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
 .rmgc span {
  display: inline-block;
  transform: scale(0);
  animation: grow 0.6s ease-out forwards;
}
.rmgc span:nth-child(1) { animation-delay: 0.1s; }
.rmgc span:nth-child(2) { animation-delay: 0.4s; }
.rmgc span:nth-child(3) { animation-delay: 0.6s; }
.rmgc span:nth-child(4) { animation-delay: 0.8s; }
@keyframes grow {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  80% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}
@media (max-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}


.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}
.card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  margin-bottom: 15px;
}

.card h3 {
  font-family: 'Roboto', sans-serif; 
  font-size: 26px;
  line-height: 1.3;
  margin-bottom: 10px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.date {
  font-size: 14px;
  color: #999;
  font-family: Arial, sans-serif;
}

@media (max-width: 900px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .card h3 {
    font-size: 22px;
  }
}



#backToTop {
    position: fixed;
    bottom: 20px;
    right: 40px;
    background-color: #1b345c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: visible; 
    position: fixed;
}
#backToTop i {
    position: relative;
    z-index: 2;
}
#backToTop .ripple {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid #0e1827;
    border-radius: 50%;
    animation: ripple-animation 1.5s infinite;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0.5;
}
@keyframes ripple-animation {
    0% {
        transform: scale(0.8);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.5);
        opacity: 0;
    }
    100% {
        transform: scale(0.9);
        opacity: 0.6;
    }
}
#backToTop:hover {
    background-color: #c3c5c7;
}

