/*
Theme Name: Hello Elementor Child
Template: hello-elementor
--e-global-color-primary: #660627;
--e-global-color-secondary: #FFBEC6;
--e-global-color-text: #191A1F;
--e-global-color-accent: #5C5F71;
--e-global-color-53de947: #F7F7F7;
--e-global-color-3e964ac: #FFFFFF;
*/
@import url("../hello-elementor/style.css");

.wp-theme-hello-elementor .page-header{
  background-color: var(--e-global-color-53de947, #F7F7F7);
  padding-top: 2rem;
  padding-bottom: 4rem;
}
.wp-theme-hello-elementor .page-header h1{
  font-size: 2rem;
  margin: 0 auto;
  text-align: center;
}

/* WPISY na głównej, oferta i problemy */
.offers-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 60px;
}
.offers-list .offers-list__item {
  padding: 24px;
  border-radius: 1rem;
  text-align: center;
}
.offers-list .offers-list__title {
  margin: 0 0 12px;
  font-size: 1.125rem;
  line-height: 1.4;
  font-weight: 700;
  font-family: "Titillium Web", Sans-serif;
}
.offers-list .offers-list__title a {
  color: var(--e-global-color-text, #191A1F);
  text-decoration: none;
}
.offers-list .offers-list__title a:hover{
    color: var(--e-global-color-primary, #660627);
}

.offers-list .offers-list__excerpt {
  margin: 0 0 16px;
  color: var(--e-global-color-accent, #5C5F71);
  line-height: 1.2;
  font-size: 0.875rem;
}

.offers-list__link {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
}

.offers-list__link:hover {
  opacity: 0.85;
}

@media (max-width: 1024px) {
  .offers-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .offers-list {
    grid-template-columns: 1fr;
  }
}
.gmoffers .offers-list__item:nth-child(odd){
    background-color: var(--e-global-color-secondary, #FFBEC6);
}
.gmproblems .offers-list__item{
    border: 1px solid  var(--e-global-color-primary, #660627);
}
/* OSTATNIE POSTY NA GŁÓWNEJ */

.latest-posts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.latest-post {
  height: 100%;
  text-align: center;
}

.latest-post__thumb {
  margin-bottom: 12px;
  width: 100%;
  height: 190px;
  overflow: hidden;
  border-radius: 1rem;
}

.latest-post__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;

}

.latest-post:hover .latest-post__thumb img {
  transform: scale(1.05);
}

.latest-post__title {
  margin: 20px 0;
  font-size: 1.125rem;
  font-weight: 700;
  padding-left: 30px;
  padding-right: 30px;
}

.latest-posts .latest-post__title a {
  color: var(--e-global-color-text, #191A1F);
  text-decoration: none;
}

.latest-posts .latest-post__title a:hover{
  color: var(--e-global-color-primary, #660627);
}
.latest-post__excerpt {
  margin-bottom: 20px;
  font-size: 0.875rem;
  line-height: 1.4;
  padding-left: 30px;
  padding-right: 30px;
  color: var(--e-global-color-accent, #5C5F71);
}

.latest-post__link {
  font-weight: 700;
  text-decoration: none;
}

.latest-posts__all {
  margin-top: 60px;
  text-align: center;
}

.latest-posts__all a {
  font-weight: 700;
  text-decoration: none;
}

/* responsive */
@media (max-width: 1024px) {
  .latest-posts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .latest-posts {
    grid-template-columns: 1fr;
  }
}

/* Tekst seo na głównej */
#gmmaintxt h1,#gmmaintxt h2,#gmmaintxt h3,#gmmaintxt h4,#gmmaintxt h5,#gmmaintxt h6{
    font-size: 1rem;
}

/* Strona Oferta i Twoje problemy */

.cpt-archive__container {
  max-width: 1540px;
  margin: 0 auto;
}

.cpt-archive__container .cpt-archive__list-section {
  padding: 56px 20px 80px;
}

.cpt-archive__container .cpt-list__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--e-global-color-53de947, #F7F7F7);
}

.cpt-archive__container .cpt-list__title {
  margin: 0 0 10px;
  font-size: 1.375rem;
  line-height: 1.4;
  font-weight: 700;
}

.cpt-archive__container .cpt-list__title a {

  text-decoration: none;
}

.cpt-archive__container .cpt-list__description {
  margin: 0;
  max-width: 1200px;
  line-height: 1.6;
}

.cpt-archive__container .cpt-list__action a {
  display: inline-block;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 700;
}

.cpt-archive__container .cpt-list__action a:hover,
.cpt-archive__container .cpt-list__title a:hover {
  opacity: 0.8;
}

@media (max-width: 767px) {
  .cpt-archive__container .cpt-archive__hero {
    padding: 48px 20px;
  }

  .cpt-archive__container.cpt-archive__list-section {
    padding: 40px 20px 60px;
  }

  .cpt-archive__container .cpt-list__item {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 0;
  }

  .cpt-archive__container .cpt-list__action a {
    white-space: normal;
  }
}