.sidebar-x {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 50%;
  transition: background 0.2s;
}

.sidebar-x:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Theme & layout variables */
:root {
  --bg: #0b0b0f;
  --surface-1: #111317;
  --surface-2: #171a1f;
  --text: #c6c8ca;
  --text-muted: #a6acb8;
  --brand: #7a0e84;
  --accent: #06b6d4;
  --member-col: 300px;
  --member-gap: 48px;
}

/* Base */
.custom-font {
  font-weight: bold !important;
}

body,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Raleway", sans-serif;
}

h3, h4 {
  color:rgb(239, 236, 236)
}

html { scroll-behavior: smooth; }
#home, #about, #work, #recruitment, #partnership, #rent, #contact {
  scroll-margin-top: 90px;
}
body {
  min-height: 100vh;
  height: 100%;
  line-height: 1.8;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Global paragraph justification */
.section p,
.section--light p,
.section-inner p,
.div-content p,
.div-text p,
.section-text p,
.partner p,
.card-body p,
footer p {
  text-align: justify;
  text-justify: inter-word;
}

/* Hero background */
.bgimg-1 {
  background-position: center;
  background-size: cover;
  background-image: url('../images/other/background.jpg');
  min-height: 100%;
}

/* Navbar */
.logo {
  height: 50px;
  width: auto;
  vertical-align: middle;
  transition: background 0.2s, box-shadow 0.2s;
}

/* Bajer logo hover effect (same as nav-link) */
.navbar-brand:hover .logo {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

.navbar-inner {
  max-width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 18px;
  height: 80px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  gap: 10px;
  margin-left: auto;
  justify-content: flex-end;
  flex: 1 1 auto;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 8px;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.navbar-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.navbar-toggle {
  display: none;
  background: transparent;
  color: #fff;
  border: 0;
  font-size: 24px;
  padding: 8px;
}

/* Sidebar (mobile) */
.sidebar {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: #000;
  padding: 16px;
  display: none;
  z-index: 2000;
  transition: opacity 0.2s;
}

.sidebar[style*="display: block"] {
  display: block !important;
  opacity: 1;
}

.sidebar-link,
.sidebar-close {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-close {
  text-align: right;
  font-weight: bold;
  border-bottom: 0;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.6) 70%);
}

.hero-content {
  position: relative;
  align-items: center;
}

.hero-content .logo {
  height: 350px;
  width: auto;
  margin-bottom: -10px;
}

.hero .logo {
  transition: transform 0.18s ease, filter 0.18s ease;
}

.hero .logo:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.35));
}

.text-white {
  color: #fff;
}

.hero-title {
  font-size: 2.5rem;
  margin: 0;
  line-height: 1.1;
}

/* Sections */
.section {
  padding: 70px 0;
  margin: 0 auto;
}

.section+.section {
  padding-top: 0;
}

.section--light {
  background: var(--surface-1);
}

.section-inner {
  padding: 0;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.div-content {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.div-text {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  text-align: left;
  color: var(--text);
}

.div-image {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  align-self: flex-start;
  height: auto;
  padding-top: 0;
}

.div-image img {
  width: 100%;
  max-width: 600px;
  border-radius: 15px;
  object-fit: cover;
}

#about .about-subsection {
  margin-top: 48px;
}

#about #members .member-columns {
  display: grid;
  grid-template-columns: var(--member-col) var(--member-col) var(--member-col);
  column-gap: var(--member-gap);
  justify-content: center;
  margin: 16px auto 0 auto;
  width: calc(var(--member-col) * 3 + var(--member-gap) * 2);
  max-width: 100%;
}

#about #members .member-columns ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#about #members .member-columns li {
  margin-bottom: 6px;
  text-align: center;
}

@media (max-width: 1100px) {
  #about #members .member-columns {
    grid-template-columns: var(--member-col) var(--member-col);
    width: calc(var(--member-col) * 2 + var(--member-gap));
  }
}

@media (max-width: 768px) {
  #about #members .member-columns {
    grid-template-columns: 1fr;
    width: 100%;
  }
}

#about .div-image,
#rent .div-image {
  margin-top: 20px;
}

#about .div-image {
  margin-left: 40px;
}

#about .div-image,
#rent .div-image {
  margin-top: 20px;
}

#about .div-image {
  margin-left: 40px;
}

#rent .div-image img {
  display: block;
  margin: 0 auto;
}

#rent .surface-box {
  display: block;
  margin: 30px auto 24px auto;
  width: fit-content;
}

#partnership .div-content {
  margin-bottom: 50px;
}

@media screen and (max-width: 1150px) {
  #about .div-image,
  #rent .div-image {
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0 !important;
    display: flex;
    justify-content: center;
    width: 100%;
  }
  #about .div-image img,
  #rent .div-image img {
    display: block;
    margin: 0 auto;
  }
}

/* Cards & partners */
.partners {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.partner {
  background-color: var(--surface-2);
  color: var(--text);
  padding: 20px 24px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  text-align: left;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}

.partner-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

/* Partner logos grid */
#partners {
  margin-top: 72px;
}

#partners .partner-grid {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

#partners .partner-grid--square {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

#partners .partner-grid--rect {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

#partners .partner-tile {
  background: #4f5764;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

#partners .partner-tile:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
}

#partners .partner-tile img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
}

@media (max-width: 768px) {
  #partners .partner-grid--square {
    grid-template-columns: repeat(2, 1fr);
  }

  #partners .partner-grid--rect {
    grid-template-columns: 1fr;
  }

  #partners .partner-tile {
    padding: 14px;
    min-height: 100px;
  }

  #partners .partner-tile img {
    max-height: 70px;
  }
}

/* Section cards (e.g. DJ, techniczna, Prolight) hover effect like partner tiles */
.section-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 36px auto;
  display: grid;
  grid-template-columns: 360px 1fr;
  column-gap: 36px;
  align-items: start;
  background: var(--surface-2);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.section-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
}

.section-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 16px;
  margin: 0;
}

/* Prolight card hover effect */
.section-card--two-sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  padding: 32px 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.section-card--two-sides:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
}

.section-card--two-sides .section-card-title {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 1.6em;
  margin: 0 0 16px 0;
}

.section-card--two-sides .section-text {
  grid-column: 1 / -1;
  text-align: left;
  margin-bottom: 20px;
}

.section-card--two-sides img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 16px;
}

.section-images {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-text {
  text-align: left;
  max-width: unset;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-left: 4px;
}

.section-text h4 {
  font-size: 1.6em;
  margin: 0 0 12px 0;
}

.section-text p {
  margin: 0 0 14px 0;
  line-height: 1.7;
}

.section>*:first-child {
  margin-top: 0;
}

.section>*:last-child {
  margin-bottom: 0;
}

.section h1,
.section h2,
.section h3,
.section h4,
.section h5,
.section h6 {
  margin-top: 0;
  margin-bottom: 20px;
}

.section>h3 {
  font-size: 2.0em;
  font-weight: 600;
  padding-top: 80px;
}

.section>h4 {
  font-size: 1.4em;
}

#sections .section-inner>h3,
#about #board>h3,
#about #members>h3,
#partners>h3 {
  font-size: 1.5em;
  font-weight: 600;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: auto;
}

.video-container iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.btn-light {
  background: var(--surface-1);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-rounded {
  border-radius: 12px;
}

.btn-lg {
  font-size: 1.25rem;
  padding: 14px 18px;
}

.btn:hover {
  filter: brightness(1.08);
}

.m-10 {
  margin: 10px;
}

.bg-dark {
  background: #000;
  color: #fff;
}

.pad-xxl {
  padding: 64px 16px;
}

.text-center {
  text-align: center;
}

.text-lg {
  font-size: 1.125rem;
}

.icon-lg {
  font-size: 24px;
}

.muted {
  color: var(--text-muted);
}

.email-link {
  color: var(--text);
  text-decoration: none;
}

footer {
  margin-top: -50px;
}

footer {
  background: #000;
  margin: 0;
  width: 100vw;
  min-height: 120px;
  box-sizing: border-box;
  padding-left: 0;
  padding-right: 0;
}

footer .btn .fa-arrow-up {
  margin-right: 8px;
}

.footer .btn {
  background: var(--surface-2);
  color: var(--text);
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
  border: none;
  display: inline-block;
  padding: 12px 20px;
  margin-bottom: 24px;
}

.social-links a.icon-link {
  text-decoration: none;
  margin: 0 10px;
  display: inline-block;
  color: #fff !important;
  transition: color 0.2s, background 0.2s;
  padding: 8px;
  border-radius: 8px;
}

.social-links i {
  font-size: 32px;
  vertical-align: middle;
}

.social-links {
  margin-top: 32px;
}

.social-links a.icon-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.surface-box {
  margin: 16px 0 24px 0;
  background: var(--surface-2);
  border-radius: 20px;
  padding: 12px 20px;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  transform-origin: center;
}

.surface-box:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
}

.board-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  justify-content: space-between;
  padding: 0;
}

.board-item {
  flex: 1 1 0;
  min-width: 0;
}

.card {
  background: var(--surface-2);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 18px 18px 18px;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
}

.card img {
  width: 100%;
  max-width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin: 18px auto 14px auto;
  display: block;
}

.card-body {
  padding: 0 0 12px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card-body h3 {
  font-size: 1.15em;
  margin-bottom: 6px;
}

.card-body .muted {
  font-size: 1em;
  margin-bottom: 8px;
}

.card-body .btn {
  margin-top: 8px;
  font-size: 1em;
  padding: 8px 14px;
}

.board-grid .card-body p {
  display: flex;
  justify-content: center;
}

.board-grid .btn-block {
  display: inline-flex;
  width: auto;
  align-items: center;
  justify-content: center;
}

.board-grid .btn i {
  margin-right: 15px;
  margin-top: 0;
}

.board-grid .card img {
  width: 100%;
}

.card-body h3 span {
  display: block;
}

.section,
.section--light,
.section-inner,
.div-content,
.board-grid,
.partners,
.video-container,
.map-container {
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
  box-sizing: border-box;
}

.section-contact {
  max-width: 100% !important;
  width: 100%;
  margin: 0;
  padding-left: 0 !important;
  padding-right: 0 !important;
  border-radius: 0;
  background: var(--surface-1);
  padding-top: 80px;
  min-height: 100vh;
  position: relative;
}

.section-contact::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background: var(--surface-1);
  z-index: -1;
}

.section-contact .section-inner {
  max-width: 100vw;
  margin: 0;
  padding: 60px 0 60px 0;
}

.section-contact h3 {
  padding-top: 80px;
}

.section-contact iframe,
.section-contact .map-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-radius: 0;
  display: block;
}

.contact-info-wrapper {
  max-width: 600px;
  margin: 0 auto 32px auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-address-box {
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  gap: 15px;
  margin-bottom: 10px;
}

.contact-address-box .icon-lg {
  min-width: 24px;
  flex-shrink: 0;
}

.contact-address-box p {
  margin: 0;
}

.contact-email {
  display: inline-flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  gap: 15px;
  margin-left: 20px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  border-radius: 12px;
  padding: 6px 8px;
}

.contact-email .icon-lg {
  min-width: 24px;
  flex-shrink: 0;
  margin-left: 0;
}

.contact-email .email-link {
  text-decoration: none;
}

.contact-email:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
  background: rgba(255, 255, 255, 0.04);
}

.contact-map {
  width: 100%;
  max-width: 1100px;
  margin: 32px auto 48px auto;
}

.contact-map iframe {
  border: 0;
}

#sections .section-inner>p {
  margin-bottom: 56px;
  text-align: center;
  text-justify: auto;
}

#work>p {
  text-align: center;
  text-justify: auto;
}

#about #board>p.text-center {
  text-align: center;
  text-justify: auto;
}

#work>.text-center+.text-center {
  margin-top: 40px;
}

#work .text-center .btn {
  margin: 10px 10px 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  white-space: nowrap;
  padding: 12px 20px;
}

#work .text-center .btn i {
  margin-right: 10px;
}

#work .btn-facebook {
  background: #1877F2;
  color: white;
}

#work .btn-instagram {
  background: #cc2366;
  color: white;
}

#work .btn-tiktok {
  background: #301f26;
  color: white;
}

#work .video-container {
  margin-top: 40px;
}

#partnership .section-card--two-sides {
  margin-top: 32px;
}

#partnership .div-content {
  display: block;
  text-align: center;
}

#partnership .div-content>p {
  text-align: center;
  text-justify: auto;
  margin-left: auto;
  margin-right: auto;
}

#recruitment .two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 36px;
  align-items: start;
}

#recruitment .two-col p {
  margin: 0;
}

#recruitment .two-col>div>.text-center {
  margin-top: 20px;
  margin-bottom: 20px;
}

#recruitment .btn-recruitment {
  background: #4f5764;
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px 15px 15px;
}

#recruitment .btn-recruitment img {
  height: 30px;
  width: auto;
}

@media screen and (max-width: 1150px) {
  .div-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 32px;
  }

  #about .div-image,
  #rent .div-image {
    margin-left: 0 !important;
    margin-top: 0 !important;
  }
}

@media screen and (max-width: 950px) {
  .nav-links {
    display: none;
  }

  .navbar-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .section-card--two-sides img {
    height: 200px;
  }

  .div-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 50px;
  }

  /* Contact: add horizontal margins to map on tablet widths */
  .section-contact .contact-map {
    width: 94%;
    margin: 24px auto 44px auto;
  }

  .section-contact .contact-map iframe {
    border-radius: 12px;
  }

  .div-text {
    text-align: center;
    width: 100%;
    max-width: 100%;
    order: 1;
    margin-bottom: 0;
  }

  .div-image {
    align-self: center;
    width: 100%;
    order: 2;
    margin-top: 0 !important;
  }

  /* Override the desktop margin for mobile */
  #about .div-image,
  #rent .div-image {
    margin-top: 0 !important;
  }

  .div-image img {
    max-width: 90%;
    margin-top: 0;
  }

  .surface-box {
    margin: 16px 0 24px 0;
    display: inline-block;
    text-align: center;
  }

  /* Wrap board items on medium screens */
  .board-grid {
    flex-wrap: wrap;
    justify-content: center;
  }

  .board-item {
    flex: 0 0 auto;
    width: calc(50% - 10px);
    max-width: 320px;
  }
}

/* MOBILE: center everything */
@media (max-width: 768px) {

  .section,
  .section--light,
  .section-inner,
  .div-content,
  .board-grid,
  .partners,
  .video-container,
  .map-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 18px;
  }

  .section-card img {
    width: 100%;
    max-width: 520px;
    height: auto;
    margin: 0 0 14px 0;
  }

  /* Ensure two-sides variant stacks nicely on mobile */
  .section-card--two-sides {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
    padding: 20px 16px;
  }

  .section-card--two-sides .section-card-title {
    grid-column: 1 / -1;
    margin-bottom: 14px;
  }

  .section-card--two-sides .section-text {
    grid-column: 1 / -1;
    margin-bottom: 20px;
  }

  /* Two images side by side */
  .section-card--two-sides img {
    width: 100%;
    height: 180px;
  }

  /* Center the 'Prolight' title text */
  #partnership .section-card--two-sides .section-text h4 {
    text-align: center;
    width: 100%;
  }

  .section-text {
    align-items: center;
    text-align: center;
    padding-left: 0;
  }

  /* Center O nas and Wynajmy sections on mobile */
  #about .div-content,
  #rent .div-content {
    align-items: center;
    justify-content: center;
  }

  #about .div-text,
  #rent .div-text {
    text-align: center;
    max-width: 100%;
  }

  #about .div-image,
  #rent .div-image {
    justify-content: center;
    align-self: center;
  }

  .section p,
  .section--light p,
  .section-inner p,
  .div-content p,
  .div-text p,
  .section-text p,
  .partner p,
  .card-body p,
  footer p {
    text-align: center;
    text-justify: auto;
  }

  /* Wrap board items on mobile */
  .board-grid {
    flex-wrap: wrap;
    justify-content: center;
  }

  .board-item {
    flex: 0 0 auto;
    width: 100%;
    max-width: 320px;
  }

  /* Stack the two-column recruitment text on mobile */
  #recruitment .two-col {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Contact: left-align address and adjust map */
  .section-contact .contact-info-wrapper {
    align-items: center;
    text-align: left;
  }

  .section-contact .contact-address-box {
    justify-content: flex-start;
    text-align: left;
  }

  .section-contact .contact-address-box p {
    text-align: left;
  }

  /* Optional: keep email left-aligned too */
  .section-contact .contact-email {
    margin-left: 18px;
    text-align: left;
    align-items: center;
  }

  .section-contact .contact-map {
    width: 92%;
    margin: 24px auto 40px auto;
  }

  .section-contact .contact-map iframe {
    height: 320px;
    border-radius: 12px;
  }
}

/* TABLET-WIDE: when two-column wraps, center items and images */
@media screen and (max-width: 1280px) and (min-width: 951px) {

  /* Wrap board items on tablets */
  .board-grid {
    flex-wrap: wrap;
    justify-content: center;
  }

  .board-item {
    flex: 0 0 auto;
    width: calc(50% - 10px);
    max-width: 320px;
  }

  /* Stack text/image to full width and center for About and Rent */
  #about .div-content,
  #rent .div-content {
    justify-content: center;
  }

  #about .div-content>.div-text,
  #about .div-content>.div-image,
  #rent .div-content>.div-text,
  #rent .div-content>.div-image {
    flex: 1 1 100%;
  }

  /* Make text width match other sections (like section-inner: 1100px) */
  #about .div-content>.div-text,
  #rent .div-content>.div-text {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
  }

  #about .div-image,
  #rent .div-image {
    margin-left: 0 !important;
    display: flex;
    justify-content: center;
  }

  #about .div-image img,
  #rent .div-image img {
    margin: 0 auto;
  }
}

/* Align Sekcje card images slightly lower to match title baseline (desktop/tablet) */
@media (min-width: 769px) {
  #sections .section-card>img {
    margin-top: 12px;
  }
}