/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background-image: url('../assets/img/background/img-09.png');
  background-size: cover;            /* Scale image to cover full screen */
  background-repeat: no-repeat;      /* Prevent tiling */
  background-position: center center;/* Center the image */
  background-attachment: fixed;      /* Optional: for parallax effect */
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
  /*  padding-top: 70px; space for fixed navbar */
}
/* Scrollbar styling */
.scrollbar::-webkit-scrollbar {
  height: 8px;
}
.scrollbar::-webkit-scrollbar-thumb {
  background: #fff;
  border-radius: 4px;
}
.scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

/* Navbar */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #004080;
  padding: 0.8rem 2rem;
  color: #fff;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar .logo { font-size: 1.5rem; font-weight: bold; }
.nav-links { list-style: none; display: flex; gap: 1.5rem; }
.nav-links li a { text-decoration: none; color: #fff; transition: color 0.3s; }
.nav-links li a:hover { color: #ffcc00; }
.menu-toggle { display: none; font-size: 2rem; cursor: pointer; }

/* News Container */
.news-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.news-card { 
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  display: flex; 
  flex-direction: column; 
  justify-content: space-between; /* ensures content + button are spaced */ 
  height: 100% !important; /* make all cards equal height */ 
}

.news-card:hover { transform: translateY(-5px); }

.news-card img, .video-wrapper iframe, .pdf-wrapper iframe {
  width: 100%;
  display: block;
}

.news-content {
  padding: 1rem;
  height: 40%;
  color: #000;
}

.image-wrapper, .video-wrapper, .pdf-wrapper {
  width: 100%;
  height: 60%;
  overflow: hidden;
}

.news-content h2 {
  color: #004080;
  margin-bottom: 0.5rem;
  font-weight: bolder;
  font-size: 1.25rem;
}

.news-content p {
  margin-bottom: 1rem;
  line-height: 1.5;
}

.news-content a {
  text-decoration: none;
  background: #004080;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background 0.3s;
}

.news-content a:hover {
  background: #ffcc00;
  color: #000;
}

/* Responsive Navbar */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    background: #004080;
    flex-direction: column;
    width: 200px;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
  }
  .nav-links.open { height: auto; padding: 1rem 0; }
  .menu-toggle { display: block; }
}

/* News Ticker */
.news-ticker {
  position: sticky; /* or fixed */
  top: 60px;        /* directly under navbar */
  z-index: 999;
  display: flex;
  align-items: center;
  background: #004080;
  color: #fff;
  padding: 0.5rem 1rem;
  overflow: hidden;
  white-space: nowrap;
  font-size: 1rem;
}
.news-date {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.ticker-title {
  font-weight: bold;
  margin-right: 1rem;
  color: #ffcc00;
}

.ticker-wrap {
  overflow: hidden;
  flex: 1;
}

.ticker-move {
  display: inline-block;
  padding-left: 100%; /* start off-screen */
  animation: ticker 20s linear infinite;
  white-space: nowrap;
}

.ticker-move span {
  margin-right: 3rem;
  display: inline-block;
}

/* Animation keyframes */
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
/**NEWS ENDE HERE**/