* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    color: #333;
    scroll-behavior: smooth;
}

body a {
    color: #333
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo img {
    width: 125px;
    height: auto;
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a,
.social-links a,
.big-part a {
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px
}

.nav-links a:hover,
.social-links a:hover, {
    color: #39b549;
}

.social-links {
    display: flex;
    gap: 0.25rem;
}

.social-links i {
    font-size: 2rem;
    transition: all 0.3s ease
}

.big-part {
    padding: 7.5px 20px;
    background-color: #39b349;
    border-radius: 50px;
    border: 1px solid #39b349;
    transition: all 0.3s ease
}

.big-part i {
    margin-right: 5px;
    font-size: 1.25rem;
    color: white
}

.big-part a {
    color: white;
    align-items: center;
    display: flex
}

.big-part:hover {
    background-color: #2ea03b
}

.social-links i:hover,
.nav-links a:hover {
    color: #39b349;
}

.cta-link {
  color: #39b349;
  font-weight: 700;
  position: relative;
}

.cta-link::after {
  content: "";
  position: absolute;
  left: 25%;
  bottom: 2px;
  width: 50%;
  height: 2px;
  background: #39b349;
  animation: fadeUnderline 2s infinite;
}

@keyframes fadeUnderline {
  0%   { opacity: 1; }
  50%  { opacity: 0.2; }
  100% { opacity: 1; }
}

@media (max-width: 1100px) {
  nav {
    flex-wrap: wrap;
    gap: 1rem;
    margin: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    align-content: flex-start;
  }

  .nav-links,
  .social-links,
  .big-part {
    flex-basis: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
    
    .big-part {
        flex-basis: 50%;
    }

  .big-part {
    justify-content: center;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .logo {
    align-self: center;
  }
}

@media (max-width: 600px) {
  .nav-links a,
  .social-links a,
  .big-part a {
    font-size: 0.9rem;
  }

  .social-links i {
    font-size: 1.75rem;
  }

  .big-part {
    padding: 6px 16px;
  }

  .logo img {
    width: 125px;
  }
 
  .big-part {
        flex-basis: 90%;
    }
}

/* ucz sie */

.ucz-sie {
  padding: 20px 20px;
}

.ucz-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
    margin-bottom: 1.25rem;
    color: #333;
    max-width: 80%;
    margin: 0 auto 1.25rem;
}

.highlight-pye {
  background: #39b349;
  color: white;
  padding: 5px 10px;
  border-radius: 6px;
}


.ucz-intro {
  font-size: 1.1rem;
  max-width: 80%;
  margin: 0 auto 20px auto;
  line-height: 1.6;
    color: #888;
    font-style: italic;
}

.search-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
    margin-bottom: 1rem;
}

.search-box input {
  padding: 12px 15px;
  font-size: 1rem;
  width: 500px;
  border: 2px solid #ddd;
  border-radius: 8px;
  outline: none;
}

.search-box input:focus {
  border-color: #39b349;
}

.search-box button {
  background: #39b349;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.search-box button:hover {
  background: #2c8a2e;
}

.highlight {
  background: #d7f5dd;
  padding: 2px 4px;
  border-radius: 4px;
}

.lesson {
  transition: opacity 0.6s ease, transform 0.6s ease;
  opacity: 1;
  transform: scale(1);
}

.lesson.hide {
  opacity: 0;
  transform: scale(0.97);
  pointer-events: none;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

}

a {
    text-decoration: none
}



#articles {
  gap: 1rem;
  margin: 30px auto;
  max-width: 1200px;
  padding: 0 30px;
}

/* Styl artykułu */
.lesson {
  background: #fff;
  border-radius: 14px;
  padding: 25px 30px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  border: 2px solid #eaeaea;
  transition: all 0.35s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  cursor: pointer;
    margin-bottom: 2rem
}

/* Efekt hover - mocniej wskazuje, że to wybór */
.lesson:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
  border-color: #39b349;
}

/* Tytuł artykułu */
.lesson h2 {
  font-size: 1.4rem;
  color: #222;
  margin-bottom: 12px;
  line-height: 1.4;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Podświetlenie tytułu na hover */
.lesson:hover h2 {
  color: #39b349;
}

/* Treść artykułu */
.lesson p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* Linki jako blokowe karty */
#articles a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

/* Efekt zielonego highlightu */
.lesson::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: rgba(57,179,73,0.08);
  transition: width 0.4s ease;
  z-index: 0;
}

.lesson:hover::after {
  width: 100%;
}

/* Tekst nad pseudo-elementem */
.lesson h2,
.lesson p {
  position: relative;
  z-index: 1;
}

/* --- TABLETY --- */
@media (max-width: 992px) {
  .ucz-title {
    font-size: 2rem;
    max-width: 90%;
  }

  .ucz-intro {
    font-size: 1rem;
    max-width: 90%;
  }

  .search-box input {
    width: 350px;
    font-size: 0.95rem;
  }

  .search-box button {
    padding: 10px 16px;
    font-size: 0.95rem;
  }

  #articles {
    padding: 0 15px;
  }

  .lesson {
    padding: 20px;
  }
}

/* --- TELEFONY --- */
@media (max-width: 600px) {
  .ucz-title {
    font-size: 1.6rem;
    line-height: 1.3;
      text-align: left
  }

  .ucz-intro {
    font-size: 0.9rem;
    line-height: 1.5;
      margin-bottom: 1rem
  }

  .search-box {
    flex-direction: column;
    gap: 8px;
  }

  .search-box input {
    width: 90%;
    font-size: 0.9rem;
      padding: 10px
  }

  .search-box button {
    width: 90%;
    font-size: 0.9rem;
    padding: 10px;
  }

  #articles {
    padding: 0 10px;
    margin: 20px auto;
  }

  .lesson {
    padding: 18px;
    margin-bottom: 1.2rem;
  }

  .lesson h2 {
    font-size: 1.1rem;
  }

  .lesson p {
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
    .ucz-title {
    font-size: 1.75rem;
    line-height: 1.6;

  }
    .ucz-intro {
    font-size: 0.8rem;
    line-height: 1.5;
      margin-bottom: 1rem
  }
}

/*dla dzieci*/

.lesson.kids {
  background: #e9fbef;
  border: 2px solid #b8f0ce;
  position: relative;
  box-shadow: 0 4px 14px rgba(57, 179, 73, 0.1);
  transition: all 0.35s ease;
}

.lesson.kids:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 10px 24px rgba(57, 179, 73, 0.2);
}

/* Znacznik „Dla dzieci” */
.kids-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #39b349;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  letter-spacing: 0.3px;
}

/* Drobny akcent w tytule */
.lesson.kids h2 {
  color: #2d8f3c;
  font-weight: 700;
}

/* Animacja „fun” */
.lesson.kids:hover .kids-badge {
  animation: bounce 1s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* ✅ RESPONSYWNA ETYKIETA DLA DZIECI */
@media (max-width: 930px) {
  .lesson.kids {
    padding-top: 1rem; /* miejsce na pasek */
  }

  .kids-badge {
    position: static;
    display: block;
    width: ;
    text-align: center;
    border-radius: 25px;
    background: linear-gradient(145deg, #39b349, #2d8f3c);
    font-size: 0.9rem;
    padding: 10px 0;
    margin-bottom: 0.8rem;
    box-shadow: none;
    animation: none;
  }
}

/* --- LEKCJE DLA DZIECI --- */

/* Styl dla footera */
footer {
    background-color: #333;
    color: #fff;
    padding: 40px 20px 20px;
    text-align: left;
    margin-top: 50px
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-container div {
    flex: 1;
    min-width: 200px;
}

.footer-container h4 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #fff;
}

.footer-container p, 
.footer-container ul li {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #ccc;
}

.footer-container a {
    text-decoration: none;
    color: #39b549;
    transition: color 0.3s ease;
}

.footer-container a:hover {
    color: #fff;
}

.footer-navigation ul {
    list-style: none;
    padding: 0;
}

.footer-navigation ul li {
    margin-bottom: 10px;
}

.footer-map iframe {
    width: 90%;
    height: 200px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.footer-map p {
    margin-bottom: 15px
}

.footer-socials {
    display: 
}

.footer-socials i {
    margin-right: 15px;
    font-size: 1.5rem;
    color: #39b349;
    transition: color 0.3s ease;
}

.footer-socials i:hover {
    color: #fff;
}

.socialek {
    margin: 10px 0
}

.socialek a{
    align-items: center;
    margin-left: auto;
    display: flex;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    align-content: center;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.85rem;
    color: #aaa;
    width: 60%;
    margin: auto
}

.footer-bottom p{
    color: #fff
}

.footer-bottom a {
    color: #39b349;
    text-decoration: none;
    
}

.orl img {
    width: 100px;
    margin-top: 25px
}


