/*
============================================================
  style.css – główny arkusz stylów serwisu Alichja

  Opis kluczowych klas i sekcji:
  - .background-fixed – warstwa tła dynamicznego (zmieniana przez JS)
  - .section-dark – ciemne, półprzezroczyste tło sekcji/kontenera (okno na treść)
  - .default-container – główny kontener sekcji, ogranicza szerokość i dodaje padding
  - .default-section-title, .default-page-title – standaryzowane tytuły sekcji i stron
  - .nav-main – główna nawigacja (menu)
  - .default-btn – przycisk akcji
  - .gallery-flex, .gallery-item, .gallery-thumbnail – układ i styl galerii zdjęć
  - .fade-in – animacja pojawiania się sekcji przy przewijaniu
  - Bloki body.[nazwa-strony] ... – ustawienia przeźroczystości tła i kontenerów dla każdej podstrony

  Zmiana wartości w blokach body.[nazwa-strony] .background-fixed lub .section-dark
  wpływa na widoczność tła i czytelność treści na danej podstronie.
============================================================
 */

/*
============================================================
  style.css – główny arkusz stylów serwisu Alichja

  Opis kluczowych klas i sekcji:
  - .background-fixed – warstwa tła dynamicznego (zmieniana przez JS)
  - .section-dark – ciemne, półprzezroczyste tło sekcji/kontenera (okno na treść)
  - .default-container – główny kontener sekcji, ogranicza szerokość i dodaje padding
  - .default-section-title, .default-page-title – standaryzowane tytuły sekcji i stron
  - .nav-main – główna nawigacja (menu)
  - .default-btn – przycisk akcji
  - .gallery-flex, .gallery-item, .gallery-thumbnail – układ i styl galerii zdjęć
  - .fade-in – animacja pojawiania się sekcji przy przewijaniu
  - Bloki body.[nazwa-strony] ... – ustawienia przeźroczystości tła i kontenerów dla każdej podstrony
  - .regulations-section, .regulations-list – dedykowane style dla podstrony Regulaminu, Polityki Prywatności i RODO
  – Pływający pasek ikon sociali (z lewej strony)
    - .floating-social-bar – kontener z ikonami
    - .floating-social-bar a – pojedyncze przyciski 
  Zmiana wartości w blokach body.[nazwa-strony] .background-fixed lub .section-dark
  wpływa na widoczność tła i czytelność treści na danej podstronie.
============================================================
*/

/* === Styl sekcji regulaminu i polityki prywatności === */
body.Regulations-page .regulations-section {
  background: rgba(0,0,0,0.55);
  border-radius: 12px;
  margin: 2.5rem 0;
  padding: 2.5rem 2rem 2rem 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}
body.Regulations-page .regulations-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
body.Regulations-page .regulations-list li {
  margin-bottom: 2.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,1.08);
}
body.Regulations-page .regulations-list li:last-child {
  border-bottom: none;
}
body.Regulations-page .regulations-list strong {
  color: #87CEEB;
  font-size: 1.08em;
  font-weight: 600;
  display: block;
  margin-bottom: 0.4em;
}
body.Regulations-page .regulations-list div {
  color: #eee;
  font-size: 1em;
  line-height: 1.6;
}
/* === Przycisk regulacji w prawym dolnym rogu === */
.floating-regulations-btn {
  position: fixed;
  right: 2vw;
  bottom: 2vw;
  z-index: 1000;
  background: rgba(30, 30, 30, 0.92);
  color: #fff;
  border-radius: 2em;
  padding: 0.7em 1.6em;
  font-size: 1.05em;
  font-family: inherit;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  gap: 0.5em;
  cursor: pointer;
}
.floating-regulations-btn:hover, .floating-regulations-btn:focus {
  background: #fff;
  color: #222;
  box-shadow: 0 4px 18px rgba(0,0,0,0.22);
  text-decoration: underline;
}
@media (max-width: 600px) {
  .floating-regulations-btn {
    font-size: 0.98em;
    padding: 0.6em 1.2em;
    top: 50px; /* ZMIANA: Ustawienie na stałe 50px od góry (dostosuj do wysokości menu) */
    right: 20vw;
    bottom: auto;
    left: auto;
    /* bottom: 3vw; */
  }
}

/* === PRZEŹROCZYSTOŚĆ TŁA I KONTENERÓW DLA KAŻDEJ STRONY === */


/* STRONA GŁÓWNA */
body.home-page .background-fixed { opacity: 0.6; }
body.home-page .section-dark, body.home-page main, body.home-page .default-container { background-color: rgba(0,0,0,0.4); }

/* GALERIA */
body.gallery-page .background-fixed { opacity: 0.6; }
body.gallery-page .section-dark, body.gallery-page main, body.gallery-page .default-container { background-color: rgba(0,0,0,0.4); }


/* REGULAMIN / REGULATIONS */
body.Regulations-page .background-fixed { opacity: 0.4; }
body.Regulations-page .section-dark, body.Regulations-page main, body.Regulations-page .default-container { background-color: rgba(0,0,0,0.6); }

/* FAQ */
body.faq-page .background-fixed { opacity: 0.5; }
body.faq-page .section-dark, body.faq-page main, body.faq-page .default-container { background-color: rgba(0,0,0,0.4); }

/* BLOG */
body.blog-page .background-fixed { opacity: 0.6; }
body.blog-page .section-dark, body.blog-page main, body.blog-page .default-container { background-color: rgba(0,0,0,0.6); }

/* HISTORIA */
body.historia-page .background-fixed { opacity: 0.5; }
body.historia-page .section-dark, body.historia-page main, body.historia-page .default-container { background-color: rgba(0,0,0,0.4); }

/* DZIEKUJE */
body.dziekuje-page .background-fixed { opacity: 0.5; }
body.dziekuje-page .section-dark, body.dziekuje-page main, body.dziekuje-page .default-container { background-color: rgba(0,0,0,0.4); }

/* === KONIEC BLOKÓW PRZEŹROCZYSTOŚCI === */
/* === Sekcje główne === */
main {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 2rem 0;
}

.section-dark {
  /* Uwaga: przezroczystość tła zmniejszona, by dynamiczne tło galerii było widoczne */
  background-color: rgba(0, 0, 0, 0.6);
  color: #ddd;
  padding: 4rem 2rem;
}


/* === Kontener domyślny (standaryzowany) === */
.default-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

/* === Tytuły sekcji i stron (standaryzowane) === */
.default-section-title {
  text-align: center;
  margin: 2rem 0;
}

.default-page-title {
  text-align: center;
  margin: 3rem 0 2rem 0;
  font-size: 2.2rem;
  font-weight: bold;
  letter-spacing: 1px;
}

/* === Nawigacja === */
/* === Nawigacja główna (standaryzowana) === */
.nav-main {
  position: sticky;
  top: 0;
  background: #000;
  z-index: 999;
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

.nav-main ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-main ul li.zapisy {
  width: 100%;
  text-align: center;
  margin-top: 0rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-main a {
  color: #eee;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-main ul li.zapisy a{
  color: #eee;
  font-size: 1.0rem;
  font-weight: bold;
}

.nav-main ul li.zapisy a:hover {
  color: #87CEEB;
}

.nav-main a:hover,
.nav-main a.active {
  color: #87CEEB;
  border-bottom: 2px solid #87CEEB;
}

/* MIOKO!!!!!!   Nowa sekcja media query dla menu mobilnego */
@media (max-width: 500px) { /* lub 600px, w zależności, gdzie menu przestaje się mieścić */
  .nav-main ul {
    gap: 0.5rem; /* ZMNIEJSZONY odstęp między elementami menu */
    flex-wrap: wrap; /* POZWALA elementom przechodzić do następnej linii, jeśli się nie mieszczą */
    justify-content: space-around; /* Rozkłada elementy równomiernie */
    padding: 0.5rem; /* Dodatkowy padding dla ul, aby elementy nie przylegały do krawędzi */
  }

  .nav-main a {
    font-size: 0.9rem; /* ZMNIEJSZONY rozmiar czcionki */
    padding: 0.5rem 0.8rem; /* ZMNIEJSZONY padding wokół tekstu linku */
  }

  .nav-main {
    padding: 0.5rem 0; /* ZMNIEJSZONY padding góra/dół dla całego menu */
  }
}
/* MIOKO!!!!!!   Nowa sekcja media query dla menu mobilnego */




/* === Przycisk domyślny (standaryzowany) === */
.default-btn {
  padding: 1rem 2.2rem;
  background-color: #87CEEB;
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  font-size: 1.1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.default-btn:hover {
  background-color: #6dbdd5;
  color: #fff;
}

/* === Sekcja Hero === */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding: 2rem;
}

.hero-overlay {
  background-color: rgba(0, 0, 0, 0.1);
  padding: 2rem;
  border-radius: 12px;
}

.hero-overlay h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.hero-overlay p {
  font-size: clamp(1rem, 2vw, 1.5rem);
  margin: 0;
}

/* === Portfolio === */
.portfolio .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

.gallery-item p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #ccc;
}

/* === Lista Dlaczego Alichja === */
.why-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto;
}

.why-list li {
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.why-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #87CEEB;
}

/* === CTA i Formularz kontaktowy === */
.cta-contact,
.contact-form {
  text-align: center;
}

.contact-form form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  margin-bottom: 1rem;
  background-color: #222;
  color: #eee;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #87CEEB;
}

.contact-form button {
  padding: 1rem;
  background-color: #87CEEB;
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background-color: #6dbdd5;
}

/* === FAQ i Blog === */
.faq-list {
  list-style: none;
  max-width: 800px;
  margin: 0 auto 2rem auto;
  padding: 0;
}

.faq-list li {
  margin-bottom: 2rem;
}

.faq-list strong {
  display: block;
  color: #eee;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.faq-list div {
  color: #ccc;
  font-size: 0.95rem;
}

#mini-faq .faq-list div {
  white-space: pre-line;
}

.blog-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.blog-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.blog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-entry {
  display: flow-root;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 1.5rem;
  overflow: hidden;
}

.blog-image {
  float: left;
  width: 16.666%;
  height: auto;
  margin-right: 1.5rem;
  margin-bottom: 0.5rem;
  object-fit: contain;
}

.blog-content a {
  color: #87CEEB;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
}

.blog-content a:hover {
  text-decoration: underline;
}

.blog-content p {
  margin-top: 0.5rem;
  color: #ccc;
  font-size: 1rem;
  line-height: 1.5;
  white-space: pre-line;
}

/* === Animacje === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Tło === */
body::before {
  /* Usunięcie domyślnego tła na podstronach galerii, by nie przykrywało dynamicznego tła JS */
  content: "";
  display: none;
}

body:not(.gallery-page)::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("https://placehold.co/1500x800/111111/eeeeee/png?text=Alichja.ink +-+TWOJA+opowieść");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  opacity: 0.0;
}

.message-wrapper {
  display: flex;
  flex-direction: column;
  font-family: Calibri, sans-serif;
  border: 1px solid #444;
  border-radius: 6px;
  overflow: hidden;
  background-color: #222;
}

#summary,
#user-message {
  font-family: Calibri, sans-serif;
  padding: 0.75rem 1rem;
  border: none;
  background-color: transparent;
  color: #eee;
  font-size: 1rem;
  resize: none;
  width: 100%;
  box-sizing: border-box;
}

#summary {
  border-bottom: none;
  background-color: transparent;
  overflow: hidden;
  min-height: 2em;
  margin-bottom: 0;
}

#user-message {
  border-top: none;
  margin-top: 0;
}

#summary:focus,
#user-message:focus {
  outline: none;
  box-shadow: none;
  background-color: transparent;
}

#summary:focus-visible,
#user-message:focus-visible {
  outline: none;
}

#summary {
  cursor: default;
}

@media (max-width: 480px) {
  .contact-form button {
    font-size: 1.2rem;
    padding: 1.2rem;
  }
}

.consents {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 1rem 0 2rem;
  font-family: Calibri, sans-serif;
  font-size: 1rem;
}

.consents label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.4;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"] {
  border: 1px solid #444;
  background-color: #222;
  color: #eee;
  border-radius: 6px;
  font-family: Calibri, sans-serif;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus {
  outline: none;
  box-shadow: none;
  border-color: #444;
  background-color: #222;
}

.gallery-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.gallery-flex .gallery-item {
  flex: 1 1 280px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gallery-flex .gallery-thumbnail {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s;
}

.gallery-flex .gallery-thumbnail:hover {
  transform: scale(1.05);
}

.gallery-flex .gallery-item p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #ccc;
}

.gallery-page .gallery-wrapper {
  margin-top: 3rem; /* zwiększony odstęp */
}

body.gallery-page .section-dark {
  background-color: rgba(0, 0, 0, 0.6);
}

/* === Sekcja: Newsy === **/
.news-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.news-entry {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

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

.news-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #87CEEB;
  margin-bottom: 0.5rem;
}

.news-date {
  font-size: 0.85rem;
  color: #bbb;
  margin-bottom: 1rem;
}

.news-description {
  font-size: 1rem;
  color: #ddd;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .news-list {
    grid-template-columns: 1fr 1fr;
  }
}


/*.floating-social-bar {
  position: fixed;
  top: 40%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: transparent;
  z-index: 1000;
  padding-left: 0.3rem;
}

.floating-social-bar a {
  display: block;
  background-color: rgba(30, 30, 30, 0.9);
  color: #87CEEB;
  text-decoration: none;
  font-size: 1.5rem;
  padding: 0.5rem 0.6rem;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
  transition: transform 0.3s, background-color 0.3s;
}

.floating-social-bar a:hover {
  background-color: #fff;
  color: #000;
  transform: translateX(4px);
} */

.floating-social-bar {
  /* ZMIANA: Przesunięto na górę strony, pod menu, zachowano pionowy układ */
  position: fixed;/* Ten parametr sprawia, że pasek jest przypięty do okna przeglądarki, niezależnie od przewijania. */
  top: 70px; /* ZMIANA: Ustawienie na stałe 80px od góry (dostosuj do wysokości menu) */
  left: 0; /* left: 3vw; Przypina pasek do LEWEJ krawędzi okna przeglądarki. */
  transform: none; /* ZMIANA: Usunięto transform: translateY(-50%) */
  display: flex;
  flex-direction: column; /* ZMIANA: Pasek pionowo */
  gap: 0.4rem; /* Odstęp między ikonami. */
  background: transparent; /* Pasek sam w sobie przezroczysty, ikony mają własne tło */
  z-index: 1000;
  padding-left: 0.3rem; /* Mały padding od lewej krawędzi */
  bottom: auto; /* ZMIANA: Usunięto bottom */
}

.floating-social-bar a {
  display: block; /* Każda ikona jako blok */
  background-color: rgba(40, 40, 40, 0.9);
  color: #87CEEB;
  text-decoration: none;
  font-size: 1.5rem;
  padding: 0.5rem 0.6rem;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
  transition: transform 0.3s, background-color 0.3s;
}

.floating-social-bar a:hover {
  background-color: #fff;
  color: #000;
  transform: translateX(4px);
}

/*@media (max-width: 768px) {
  .floating-social-bar {
    flex-direction: row;
    top: auto;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background-color: rgba(0,0,0,0.8);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
  }

  .floating-social-bar a {
    border-radius: 50%;
    padding: 0.6rem 0.6rem;
  }
}*/


@media (max-width: 768px) {
  .floating-social-bar {
    flex-direction: column; /* Ustawiamy z powrotem na kolumnę dla mobilnych */
    top: 70px; /* Nie używamy top */
    bottom: auto; /* Wartość procentowa: np. 12% wysokości widoku, dostosuj! */
    left: 0; /* Left: 3vw; Wartość procentowa: np. 3% szerokości widoku, dostosuj! */
    transform: none; /* Usuwamy transform: translateX(-50%) */
    padding: 0; /* Resetujemy padding, jeśli był ustawiony na poziomie paska dla mobilnych */
    background-color: transparent; /* Pasek ma być przezroczysty, ikony mają własne tło */
    border-radius: 0; /* Resetujemy zaokrąglenia */
    z-index: 1001; /* Upewniamy się, że jest na wierzchu */
    width: auto; /* Nie rozciągamy na całą szerokość */
    align-items: flex-start; /* Domyślnie align-items dla kolumny */
  }

  .floating-social-bar a {
    /* Wracamy do stylów desktopowych, ale z drobnymi modyfikacjami dla mobilnych */
    display: block; /* Każda ikona jako blok */
    background-color: rgba(40, 40, 40, 0.9); /* Dajemy im własne tło */
    color: #87CEEB;
    text-decoration: none;
    font-size: 1.5rem;
    padding: 0.5rem 0.6rem;
    border-top-right-radius: 8px; /* Zachowujemy zaokrąglenia z prawej strony */
    border-bottom-right-radius: 8px; /* Zachowujemy zaokrąglenia z prawej strony */
    box-shadow: 0 2px 6px rgba(0,0,0,0.6);
    transition: transform 0.3s, background-color 0.3s;
    /* Dodatkowy margines, żeby ikony były bardziej odstające od krawędzi */
    margin-bottom: 0.2rem; /* Zostawiamy rem, aby odstęp między ikonami był spójny */
  }

  /* Upewnijmy się, że hover działa tak jak na desktopie, gdy są w kolumnie */
  .floating-social-bar a:hover {
    background-color: #fff;
    color: #000;
    transform: translateX(4px);
  }
}



.floating-social-bar a img {
  width: 34px;
  height: 34px;
  display: block;
}

/* === BLOG TOGGLE – skracanie/rozwijanie wpisów === */
/* Uwaga: te style są używane w blogu, by umożliwić skracanie i rozwijanie treści wpisów. */
/* Wpisy blogowe mają dynamiczną wysokość, więc używamy max-height i overflow: hidden, by ukryć nadmiar treści. */
/* Przycisk dogłębienia wpisu jest umieszczony na dole wpisu, a jego stan (aria-expanded) kontroluje, czy treść jest rozwinięta czy skrócona. */
/* BLOG TOGGLE – skracanie/rozwijanie wpisów */

/* BLOG TOGGLE – skracanie/rozwijanie wpisów */

.blog-entry {
  position: relative;
  display: flow-root;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 1.5rem;
  overflow: hidden;
}

.blog-content {
  position: relative;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(.7,0,.3,1);
  max-height: 500px; /* fallback – zostanie nadpisane JS */
}

.blog-content.collapsed {
  /* Domyślna wysokość na desktopie */
  max-height: 220px; /* zmieniaj na wysokość obrazka, JS ustawi */
}

.blog-content.collapsed::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3em;
  background: linear-gradient(to bottom, rgba(17,17,17,0), #111 90%);
  pointer-events: none;
  z-index: 1;
}

/* Przycisk blog-toggle-btn – po blog-content */
.blog-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: transparent;
  color: #eee;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  margin: 0.5em 0 0 auto;
  z-index: 2;
  position: relative;
  transition: color 0.2s;
}

.blog-toggle-btn .btn-icon {
  margin-left: 0.3em;
  font-size: 1.1em;
  transition: transform 0.3s;
}

@media (max-width: 800px) {
  .blog-content.collapsed p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 3.2em;
  }
  .blog-content.collapsed {
    max-height: none !important;
  }
  .blog-content.collapsed::after {
    height: 2em;
  }
}

/* Guzik na mobile wyśrodkowany */
@media (max-width: 800px) {
  .blog-toggle-btn {
    justify-content: center;
    margin: 1em auto 0 auto;
    font-size: 1.1rem;
  }
}
