/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ===================== LOADER � PREMIUM ===================== */
#loader {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #0a2d5c 0%, #021F42 70%, #000000 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
  overflow: hidden;
}
#loader::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4"><rect width="4" height="4" fill="%23021433"/><rect x="0" y="0" width="1" height="1" fill="%23ffffff08"/><rect x="2" y="2" width="1" height="1" fill="%23ffffff08"/></svg>') repeat;
  opacity: 0.35;
  pointer-events: none;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-logo { width: 340px; height: 340px; opacity: 0; transform: scale(0.6); transition: opacity 1.4s ease-out, transform 1.4s ease-out; }
.loader-logo img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0); transition: filter 1.6s ease-out; }
.loader-logo.visible { opacity: 1; transform: scale(1); }
.loader-logo.visible img { filter: brightness(1); }
.loader-logo.fade-out { opacity: 0.25; transform: scale(0.92); transition: opacity 1s ease-out, transform 1s ease-out; }
.fade-page { opacity: 0; transition: opacity 0.5s ease-in; }
.fade-page.loaded { opacity: 1; }

/* ===================== OG�LNE ===================== */
body.dark-bg {
  background: #021F42;
  color: white;
  min-height: 100vh;
  font-family: 'Segoe UI', sans-serif;
  overflow-x: hidden;
}
.top-bar {
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3000;
}

.top-left {
  display: flex;
  align-items: left;
  gap: 12px; /* 👈 TU kontrolujesz odległość */
}

#langCorner {
  position: static;
  top: 20px; right: 25px;
  background: #ffffffee;
  color: #003d7a;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  z-index: 2100;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 0 12px #0004;
  cursor: pointer;
}
#langCorner img { width: 26px; height: 18px; border-radius: 3px; 
}
#hamburger {
  position: static;
  top: 20px; left: 20px;
  font-size: 38px;
  color: #ffffff;
  background: #003d7acc;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  z-index: 2300;
  box-shadow: 0 0 12px #0006;
}

/* ===================== LOGO W LEWYM GÓRNYM ROGU ===================== */
#homeLogo {
  position: static;
  width:  clamp(50px, 13vw, 65px);
  height: clamp(50px, 13vw, 65px);
  top: clamp(14px, 4vw, 20px);
  left: clamp(95px, 18vw, 120px);
  z-index: 2200;                  /* wyżej niż hamburger (2200) i langCorner (2100) */
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.95;
  background: #003d7acc;
  border-radius: 10px;
  box-shadow: 0 0 12px #0006; 
}

#homeLogo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;             /* opcjonalnie – lekkie zaokrąglenie */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.3s ease;
}

#homeLogo:hover {
  transform: scale(1.08);
  opacity: 1;
}

#homeLogo:hover img {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

/* Na małych ekranach (telefonach) – przesuń lekko, żeby nie nachodziło na hamburger */
@media (max-width: 768px) {
  /* Opcjonalnie: lekko przesuń hamburger, żeby nie nakładał się na logo */
  #hamburger {
    left: 80px;                   /* miejsce na logo + odstęp */
  }
}

#sideMenu {
  position: fixed;
  left: -260px;
  top: 0;
  width: 260px;
  height: 100%;
  background: #001a33;
  transition: 0.4s ease;
  padding-top: 100px;
  z-index: 1999;
}
#sideMenu a {
  display: block;
  color: #cfdfff;
  text-decoration: none;
  padding: 15px 30px;
  font-size: 1.2rem;
  transition: 0.3s;
  text-align:left;
}
#sideMenu a:hover { background: #0050a5; color: white; }
#menuOverlay {
  position: fixed;
  inset: 0;
  background: #00000088;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 1500;
}

/* Strona g��wna 
.section { height: 100vh; width: 100vw; display: flex; flex-direction: column; justify-content: center; align-items: center; font-size: 2rem; a{color:#ffffff}}
#section1 { background: #003d7a; }
#section2 { background: #f0f0f0; color: #002b55; }
#section3 { background: #dce6f2; color: #002b55; }
#section4 { background: #003d7a; }*/

/* ===================== NOWA SEKCJA AKTUALNOŚCI ===================== */
.news-main {
  padding: 120px 80px 80px; /* miejsce na fixed elementy (hamburger i lang) */
  max-width: 1400px;
  margin: 0 auto;
}

.news-main h1 {
  font-size: 3.8rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 80px;
  color: #ffffff;
}

.news-grid {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.news-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  display: flex;
  padding: 40px;
  gap: 40px;
  align-items: center;
}

.news-image {
  width: 380px;
  height: 240px;
  border-radius: 15px;
  overflow: hidden;
  flex-shrink: 0;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



.news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-date {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 14px;
  width: fit-content;
  margin-bottom: 15px;
}

.news-title {
  font-size: 32px;
  margin-bottom: 20px;
}

.news-text {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 30px;
  flex-grow: 1;
}

.more-btn {
  background-color: transparent;
  border: 2px solid #ffd700;
  color: #ffd700;
  padding: 12px 40px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  align-self: flex-end;
  transition: all 0.3s;
}

.more-btn:hover {
  background-color: #ffd700;
  color: #021F42;
}

/* Responsywność */
@media (max-width: 992px) {
  .news-item {
    flex-direction: column;
    text-align: center;
  }
  .news-image {
    width: 100%;
    height: 300px;
  }
  .more-btn {
    align-self: center;
  }
  .news-main h1 {
    font-size: 56px;
  }
}

@media (max-width: 768px) {
  .news-main {
    padding: 100px 20px 60px;
  }
  .news-main h1 {
    font-size: 48px;
    margin-bottom: 50px;
  }
  .news-item {
    padding: 30px;
  }
}

@media (max-width: 767px) {
  .news-main {
    padding: 95px 15px 50px;
  }
  .news-item {
    flex-direction: column;
    padding: 22px 18px;
  }
  .news-image {
    width: 100%;
    height: 200px;
  }
}

/* ==================== RESPONSIVE 768 PX ==================== */
@media (max-width: 420px) {
  html {
    font-size: 15px;           
  }

  body {
    overflow-x: hidden !important;
  }

  .top-bar {
    top: 10px !important;
    left: 10px !important;
    right: 10px !important;
    padding: 0 6px;
    height: 48px;
    align-items: center;
  }

  #hamburger {
    font-size: 28px !important;
    padding: 6px 10px !important;
    line-height: 1;
  }

  #homeLogo {
    width: 48px !important;
    height: 48px !important;
    margin-left: 4px !important;
  }

  #homeLogo img {
    height: 100%;
    width: 100%;
    object-fit: contain;
  }
}