/* 
Theme Name: Fasteners Theme
Description: Szablon potomny Fasteners – styling wpisów blogowych
Author: Piotr Mazik
Template: hello-elementor
Version: 3.0
*/

/* ---------------------
   BLOG TECHNICZNY – WPISY
------------------------ */

.single-post .elementor-widget-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  font-family: sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: #1e1e1e;
}

.single-post .elementor-widget-container h2 {
  font-size: 1.75rem; /* 28px */
  margin: 2rem 0 1rem;
  color: #004080;
  line-height: 1.4;
}

.single-post .elementor-widget-container h3 {
  font-size: 1.4rem;
  margin: 1.5rem 0 0.5rem;
  color: #0055aa;
  line-height: 1.4;
}

.single-post .elementor-widget-container ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.single-post .elementor-widget-container ul li {
  margin-bottom: 0.5rem;
}

.single-post .elementor-widget-container strong {
  color: #000;
  font-weight: 600;
}

/* ---------------------
   STICKY HEADER – JetMenu
------------------------ */

.jet-menu-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: none;
}

body.scrolled .jet-menu-container {
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ---------------------
   NAPRAWA ZASŁANIANIA TYTUŁU
------------------------ */

.single-post .elementor-section:first-of-type {
  margin-top: 160px;
}

/* ---------------------
   LISTING GRID – TYTUŁ I ZAJAWKA (desktop + mobile)
------------------------ */

.post-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  min-height: 3.2em;
}

.post-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 15px;
  line-height: 1.6;
  min-height: 4.8em;
}

/* ---------------------
   RESPONSYWNOŚĆ – MOBILE
------------------------ */

@media (max-width: 768px) {
  .single-post .elementor-widget-container {
    padding: 1.5rem 1rem;
    font-size: 15px;
  }

  .single-post .elementor-widget-container h2 {
    font-size: 1.5rem;
  }

  .single-post .elementor-widget-container h3 {
    font-size: 1.2rem;
  }

  .single-post .elementor-section:first-of-type {
    margin-top: 120px;
  }

  .post-title {
    font-size: 18px;
    line-height: 1.4;
  }

  .post-excerpt {
    font-size: 14px;
    line-height: 1.5;
  }
}
/* === Header layout (desktop) === */
.header-logo {
  flex: 0 0 auto;
  justify-content: flex-start;
}

.header-menu {
  flex: 1 1 auto;
  justify-content: center;
}

.header-search {
  flex: 0 0 auto;
  justify-content: flex-end;
}
