
body {
  font-family: 'Segoe UI', 'Arial', sans-serif;
  background-color: #121212;
  color: #e0e0e0;
  margin: 0;
}

  #logo
    {
      transition: 0.3s;
      top: 0px;
      left: 0px;
      position: absolute;
      width: 15%;
       
  }
      #logo:hover
{
    filter: brightness(0.6);
   
}


main {
  padding: 2em;
  max-width: 70%;
  margin: auto;
  margin-left: 15%;
}

h1 {
	
  font-size: 2.2em;
  color: #fafafa;
  margin-bottom: 1em;
  letter-spacing: 0.02em;
  background-color: #222227;
  text-align: center;
  padding: 10px;
}

.katalog-kursow {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: flex-start;
}

.dostep-dni {
  background: #222;
  color: #48df6e;
  border-radius: 0 0 8px 8px;
  font-size: 1.07em;
  font-weight: 500;
  text-align: center;
  padding: 4px 0 4px 0;
  box-shadow: 0 1px 6px #191;
  margin-top: 2px;
}

.kurs-card {
  position: relative;
  background: #222227;
  border-radius: 18px;
  box-shadow: 0 6px 24px #0006;
  overflow: hidden;
  width: 280px;
  margin-top: 3em;

  display: flex;
  flex-direction: column;
  transition: transform 0.17s, box-shadow 0.18s;
  border: 1px solid #222;
  margin-bottom: 0.5em;

}
.kurs-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 10px 36px #000b;
  border: 1px solid #282878;
}

/* Kwadratowa miniaturka */
.kurs-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #191919;
  display: block;

}

.kurs-card h2 {
	padding-left: 20px;
  color: #f8e6ff;
  font-size: 1.3em;
  margin: 0.5em 0 0.2em 0;
  font-weight: 600;
  letter-spacing: 0.01em;

}

.kurs-card p {
	padding-left: 30px;
  color: #bdbdbd;
  font-size: 1em;
  line-height: 1.5;
  margin: 0.2em 0 0.7em 0;

}

.kurs-card a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.kurs-card > div {
  padding: 1em 1.2em 1.1em 1.2em;
  flex: 1;
}


.kurs-wykupiony {
  border: 2.5px solid #48df6e !important;
  box-shadow: 0 0 16px #39b36b38, 0 6px 24px #0006;
  position: relative;


}
.wykupiony-badge {
 

  left: 0; right: 0; bottom: 8px;
  margin: auto;
  width: 100%;
  background: linear-gradient(90deg, #48df6e 10%, #59ffae 90%);
  color: #0b3b15;
  border-radius: 8px 8px 0px 0px;
  font-size: 1.04em;
  font-weight: 600;
  text-align: center;
  padding: 7px 0 6px 0;
  box-shadow: 0 2px 7px #191;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
 

}
.wykupiony-badge .ptaszek {
  font-size: 1.4em;
  color: #168a38;
  margin-right: 7px;
}

.ukonczono-badge {
 

  width: 100%;
  height: 38%;
  background-color: transparent;
  backdrop-filter: brightness(60%) blur(4px);
 
  text-align: center;
  padding-top: 30%;
  font-size: 1.4em;
  font-weight: 600;
  color: white;


  position: absolute;

}
.ukonczono-badge .ptaszek {
  font-size:1.5em;
  margin-right:7px;
  color: white;
}

#kurs-modal {
  /* ...Twój dotychczasowy kod... */
  scrollbar-width: thin;
  scrollbar-color: #444 #23223a;
}

/* Chrome, Edge, Safari */
#kurs-modal::-webkit-scrollbar {
  width: 10px;
  background: #23223a;
  border-radius: 8px;
}
#kurs-modal::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 8px;
  border: 2px solid #23223a;
}
#kurs-modal::-webkit-scrollbar-thumb:hover {
  background: #666;
}
.kurs-opis-short {
  display: -webkit-box;
  -webkit-line-clamp: 3; /* ile linijek */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 3.6em; /* żeby karty były równe */
  position: relative;
  padding: 20px;
}

.kurs-opis-more {
  color: #ccc;
  font-size: 0.97em;
  margin-left: 2px;
  font-style: italic;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline dotted;
  transition: color 0.2s;
}
.kurs-opis-more:hover { color: #fff; }

/* --- RESPONSYWNOŚĆ NA MOBILKI --- */

@media (max-width: 650px) {
	body
	{
			
	}
  main { padding: 1em 2vw; 
max-width: 90%;
margin-left: 3%;
  }
  .katalog-kursow {

    flex-direction: column;
    gap: 1.5em;
    align-items: center;
  }
  .kurs-card {
    width: 90%;
    min-width: unset;
    margin: 0 auto;
    margin-top: 50px;


  }
  .kurs-card img {
    aspect-ratio: 1 / 1;
    /* Zostawiamy domyślną wysokość przez aspect-ratio */
  }
  header {
    padding: 1em 1vw;
    flex-direction: column;
    text-align: center;
  }
  h1 {
  	margin-top: 50%;

    font-size: 1.5em;
    margin-bottom: 0.8em;
  }
  
   #logo
    {
      top: 0px;
      left: 0px;
      position: absolute;
      width: 40% !important;


    }
    
    #logo:hover
{
    filter: brightness(0.6);

}

.ukonczono-badge {
height: 41.2%;
}


}



