body {
  padding-top: 56px;
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  margin: 0;
  padding: 0;
}

.carousel-item {
  height: 65vh;
  min-height: 300px;
  background: no-repeat center center scroll;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

.masthead {
  height: 50vh;
  min-height: 500px;
  background-image: url('img/porownywarka_ubezpieczeniowa.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: white;
}

.font-weight-light {
  font-size: 34px;
  font-weight: 600 !important;
  background-color: #000A;
  padding: 20px;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .font-weight-light {
      font-size: 26px;
  }
}

.lead {
  font-size: 1.5rem;
  font-weight: 600;
  background-color: #000A;
  padding: 10px;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .lead {
      font-size: 16px;
  }
}

.navbar-brand {
  font-size: 1rem;
  font-weight: bold;
}

.portfolio-item {
  margin-bottom: 30px;
}

.card-img-top {
  border-bottom: 1px solid #ddd;
  max-width: 300px;
  max-height: 250px;
}

.card-body {
  background: #fff;
}

.titlebox {
  color: black;
}

.ostrzezenie {
  font-style: italic;
}

.m-0.text-left.text-white {
  font-size: 13px;
}

h2 {
  font-size: 24px;
  font-weight: bold;
  padding-top: 15px;
  padding-bottom: 5px;
}

h3, h4 {
  padding: 5px 0;
  margin: 5px 0;
}

h3 {
  font-size: 20px;
  font-weight: bold;
}

h4 {
  font-size: 18px;
  font-weight: bold;
}

.photo {
  vertical-align: middle;
  border-style: none;
  max-width: 100%;
  height: auto;
}

.row.counter {
  margin: 10px auto;
  text-align: center;
  color: black;
  padding: 20px;
}

.highlight {
  color: #ffdb00;
  padding: 20px 0;
  font-weight: bold;
  display: block;
  overflow: hidden;
  margin-bottom: 0;
  font-size: 26px;
}

.stat i {
  color: #f7c221;
}

.milestone-details {
  font-weight: bold;
  font-size: 18px;
}

.page-header {
  font-size: 22px;
}

.bg-dark {
  background-color: #080808 !important;
}

.linkfooter {
  color: #fff;
}

footer a {
  font-size: 14px;
  text-decoration: none;
}

.stopka {
  font-size: 12px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
}

.btn a {
  color: white;
  text-decoration: none;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 5px;
}

.banner_disclaimer {
  font-size: 14px;
  color: grey;
  text-align: center;
  font-style: italic;
}

.btn-block {
  background-color: #ffc107;
  font-size: 22px;
  color: #000;
  font-weight: bold;
  border-radius: 8px;
  padding: 15px 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  margin: 10px 0;
}

.emoji {
  display: block;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 5px;
}

.btn-secondary:hover {
  color: #fff;
  background-color: #00275d;
  border-color: #00275d;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  .btn-block {
      font-size: 18px;
      padding: 10px 15px;
  }

  .emoji {
      font-size: 2rem;
  }

  body {
      padding-top: 100px;
  }

  header.masthead {
      padding-top: 100px;
  }
}

/* Ogólne ustawienia dla navbar */
.navbar .container {
  max-width: 100vw;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  padding-left: 15px;
  padding-right: 15px;
  overflow: hidden;
  text-align: center;
}

/* Ustawienia dla emotikonek */
.navbar .emojis {
  display: flex;
  align-items: center;
}

.navbar .emojis a {
  color: #fff;
  margin-right: 10px;
}

/* Ustawienia dla przycisku na końcu */
.navbar .btn {
  flex-shrink: 0;
  margin-left: auto;
}

/* Ustawienia dla ekranów mobilnych */
@media (max-width: 767.98px) {
  .navbar .container {
      flex-direction: column;
      align-items: center;
      text-align: center;
  }

  .navbar .brand {
      margin-bottom: 10px;
  }

  .navbar .emojis {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
  }

  .navbar .emojis a {
      margin: 5px;
  }

  .navbar .btn {
      width: 100%;
      margin: 10px 0;
  }
}

/* Content Rows */
.content-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.content-row.reverse {
  flex-direction: row-reverse;
}

.content-row, .content-row.reverse {
  margin-top: 20px;
}

.content-row .text {
  width: 48%;
}

.content-row .image {
  width: 48%;
  text-align: center;
}

.content-row .image img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .content-row {
      flex-direction: column;
  }

  .content-row.reverse {
      flex-direction: column;
  }

  .content-row .text, .content-row .image {
      width: 100%;
  }

  .content-row .image {
      order: 1; /* Ensure image is displayed first */
  }

  .content-row .text {
      order: 2; /* Ensure text is displayed after image */
  }

  .content-row .image img {
      margin-bottom: 10px;
  }
}

#insuranceBoxContainer {
    max-width: 800px;
    margin: 20px auto;
    padding: 10px;
    background-color: #ffc107;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0);
    text-align: center;
}

.searchBoxRow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.searchBoxLabel {
    flex: 0 0 auto;
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
    color: #000;
}

.searchBoxRow select {
    flex: 1 1 300px;
    max-width: 300px;
    padding: 14px;
    font-size: 18px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.searchBoxRow button {
    flex: 0 0 auto;
    padding: 14px 20px;
    font-size: 16px;
    border-radius: 8px;
    background-color: #ff0000;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.searchBoxRow button:hover {
    background-color: #00275d;
}

.banner_disclaimer {
    font-size: 12px;
    color: #555;
    text-align: center;
    margin-top: 10px;
}

.col-md-12 > h2 {
text-align: center;
}

#searchBoxContainer select,
#searchBoxContainer button {
font-weight: bold;
}

@media (max-width: 600px) {
.searchBoxRow {
    flex-direction: column;
    align-items: stretch;
}

.searchBoxLabel, .searchBoxRow button {
    width: 100%;
    max-width: 100%;
    text-align: center;
}

.searchBoxRow select {
    width: 100%;
    max-width: 100%;
    max-height: 54px; /* to dodaj */
    /* Usuń text-align */
    text-align: left;
    box-sizing: border-box; /* dodaj to, żeby padding nie rozszerzał */
}
}