/* Propozycja B – Contemporary Flow (homepage sections) */

.hero-b {
  position: relative;
  min-height: 50vh;
  min-height: 50dvh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}
.hero-b-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 19, 38, 0.55) 0%, rgba(0, 75, 146, 0.82) 100%),
    url("../images/hero-default.jpg") center / cover no-repeat;
  background-attachment: fixed;
}
.hero-b .inner {
  position: relative;
  z-index: 1;
  padding: 2rem 1.25rem;
  max-width: 720px;
}
.hero-b h1 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 5.5vw + 0.5rem, 4rem);
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: 1.25rem;
  color: #fff;
  overflow-wrap: break-word;
  hyphens: auto;
  text-wrap: balance;
}
.hero-b p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}
.hero-b-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.flow-section { padding: 4.5rem 0; }
.flow-head { margin-bottom: 2.5rem; }
.flow-head .line {
  width: 48px;
  height: 3px;
  background: var(--cyan);
  margin-bottom: 1rem;
}
.flow-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-primary);
}
.flow-head.light h2 { color: var(--white); }
.flow-head.light .line { background: rgba(255, 255, 255, 0.6); }
.flow-head--center { text-align: center; }
.flow-head--center .line { margin-left: auto; margin-right: auto; }
.about-b-v3 {
  background: var(--white);
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--gray-border);
}
.about-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.about-stat {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--gray-light);
  border-radius: 6px;
  border-top: 3px solid var(--cyan);
}
.about-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 400;
  color: var(--blue-primary);
  margin-bottom: 0.35rem;
}
.about-stat span { font-size: 0.82rem; line-height: 1.4; color: var(--text-muted); }
.about-v3-lead {
  max-width: 780px;
  margin: 0 auto 2.5rem;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--blue-medium);
}
.about-v3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.about-v3-card {
  padding: 1.5rem;
  border: 1px solid var(--gray-border);
  border-radius: 6px;
  background: var(--white);
}
.about-v3-card h3 {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-primary);
  margin-bottom: 0.65rem;
}
.about-v3-card p { font-size: 0.92rem; line-height: 1.55; color: var(--blue-dark); }
.about-v3-initiatives {
  background: var(--blue-primary);
  color: var(--white);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
}
.about-v3-initiatives-label {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}
.about-v3-initiatives ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  justify-content: space-evenly;
}
.about-v3-initiatives li {
  font-size: 1rem;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}
.mission-b { background: var(--blue-primary); color: var(--white); padding: 4rem 0 4.5rem; }
.mission-grid-b { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.mission-item-b {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(19, 110, 191, 0.6);
  border-radius: 4px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.mission-item-b img { height: 64px; width: auto; margin-bottom: 1rem; object-fit: contain; }
.mission-item-b p { font-size: 0.92rem; line-height: 1.45; color: rgba(255, 255, 255, 0.95); }
.history-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  width: 100%;
}
.history-split-photo {
  background: url("../images/history-photo.jpg") center / cover no-repeat;
  min-height: 320px;
}
.history-split-text {
  background: var(--blue-dark);
  color: var(--white);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.history-split-text h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  color: #fff;
}
.history-split-text p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1rem;
}
.history-split-text p:last-child { margin-bottom: 0; }
.history-split-link {
  color: var(--cyan);
  font-weight: 600;
  margin-top: 0.5rem;
}
.history-split-link:hover { color: var(--white); }
.members-b { background: var(--blue-medium); color: var(--white); padding: 4rem 0; }
.members-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.members-split .content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.45;
  margin-bottom: 1rem;
  color: #fff;
}
.members-split .content p, .members-split .content li { font-size: 0.95rem; line-height: 1.5; margin-bottom: 0.75rem; }
.members-split .content ul { list-style: none; margin: 1rem 0; }
.members-split .content li { padding-left: 1rem; position: relative; }
.members-split .content li::before { content: "•"; position: absolute; left: 0; }
.members-cta { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 1.5rem; }
.members-cta a {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--white);
  border-bottom: 2px solid var(--white);
  padding-bottom: 4px;
}
.members-split .photo img { width: 100%; border-radius: 6px; box-shadow: 0 16px 48px rgba(0, 19, 38, 0.3); }
.news-b-v2 { background: var(--white); padding: 4.5rem 0; }
.news-b-v2-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.news-b-v2-all {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue-primary);
  padding-bottom: 4px;
  border-bottom: 2px solid var(--cyan);
}
.news-b-v2-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0;
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: var(--blue-dark);
}
.news-b-v2-hero-media { position: relative; display: block; min-height: 280px; }
.news-b-v2-hero-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.news-b-v2-hero-body {
  padding: 2rem;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-b-v2-hero-body .label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}
.news-b-v2-hero-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}
.news-b-v2-hero-body h3 a {
  color: var(--white);
  text-decoration: none;
}
.news-b-v2-hero-body h3 a:hover { color: var(--cyan); }
.news-b-v2-hero-body .meta {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 1.25rem;
}
.news-b-v2-hero-body .meta a {
  color: var(--white);
  text-decoration: underline;
}
.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 185, 247, 0.92);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 1rem;
  padding-left: 3px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s;
  pointer-events: none;
}
.news-b-v2-hero-media:hover .play-badge,
.news-b-v2-card-media:hover .play-badge {
  transform: translate(-50%, -50%) scale(1.08);
}
.news-b-v2-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.news-b-v2-grid--4 { grid-template-columns: repeat(4, 1fr); }
.news-b-v2-grid--3 { grid-template-columns: repeat(3, 1fr); }
.news-b-v2-grid--large { gap: 1.35rem; }
.news-b-v2-card--large .news-b-v2-card-body { padding: 1rem 1rem 1.15rem; }
.news-b-v2-card--large .news-b-v2-card-body h4 { font-size: 0.95rem; }
.news-b-v2-card--large .news-b-v2-card-media { aspect-ratio: 16 / 10; }
.news-b-v2-card {
  border: 1px solid var(--gray-border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.news-b-v2-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 8px 24px rgba(0, 75, 146, 0.1);
}
.news-b-v2-card-media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--gray-light); }
.news-b-v2-card-media img { width: 100%; height: 100%; object-fit: cover; }
.news-b-v2-card-media .play-badge {
  width: 40px;
  height: 40px;
  font-size: 0.75rem;
}
.news-b-v2-card-body { padding: 0.85rem 0.9rem 1rem; }
.news-b-v2-card-body h4 {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--blue-primary);
  margin-bottom: 0.35rem;
}
.news-b-v2-card-body h4 a {
  color: inherit;
  text-decoration: none;
}
.news-b-v2-card-body h4 a:hover { color: var(--cyan); }
.news-b-v2-card-body time { font-size: 0.72rem; color: var(--text-muted); }

/* Homepage Latest News — mixed sources, 2 × 4, dark blue band */
.home-latest-news {
  background: var(--blue-primary);
  padding: 4.5rem 0;
  color: var(--white);
}
.home-latest-news__head {
  margin-bottom: 2.25rem;
}
.home-latest-news .flow-head .line { background: rgba(255, 255, 255, 0.5); }
.home-latest-news__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.5rem;
}
.home-latest-news__column {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.home-latest-item {
  border-bottom: none;
}
.home-latest-item__link {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 1.1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.home-latest-item__link:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}
.home-latest-item__link:hover .home-latest-item__title { color: var(--cyan); }
.home-latest-item__thumb {
  width: 76px;
  height: 76px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(0, 19, 38, 0.25);
}
.home-latest-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-latest-item__logo {
  width: 76px;
  height: 76px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  padding: 0.65rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 4px solid var(--cyan);
  box-shadow: 0 4px 14px rgba(0, 19, 38, 0.2);
}
.home-latest-item__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.home-latest-item--intermanager-daily-news .home-latest-item__logo { border-left-color: var(--cyan); }
.home-latest-item--imo-updates .home-latest-item__logo { border-left-color: #8eb8e8; }
.home-latest-item--arc-maritime-security .home-latest-item__logo { border-left-color: #f0a06a; }
.home-latest-item--stats-review .home-latest-item__logo { border-left-color: #5fd9a0; }
.home-latest-item--dispatches .home-latest-item__logo { border-left-color: #b8d4f0; }
.home-latest-item__link:hover .home-latest-item__logo {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
}
.home-latest-item__link:hover .home-latest-item__logo img { opacity: 1; }
.home-latest-item__label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.22em 0.6em;
  border-radius: 3px;
  margin-bottom: 0.45rem;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}
.home-latest-item--intermanager-daily-news .home-latest-item__label {
  background: rgba(0, 185, 247, 0.22);
  color: #b8ecff;
  box-shadow: inset 3px 0 0 var(--cyan);
}
.home-latest-item--imo-updates .home-latest-item__label {
  background: rgba(126, 179, 232, 0.22);
  color: #d4e8ff;
  box-shadow: inset 3px 0 0 #8eb8e8;
}
.home-latest-item--arc-maritime-security .home-latest-item__label {
  background: rgba(240, 160, 106, 0.22);
  color: #ffe2cc;
  box-shadow: inset 3px 0 0 #f0a06a;
}
.home-latest-item--stats-review .home-latest-item__label {
  background: rgba(95, 217, 160, 0.2);
  color: #d4f5e6;
  box-shadow: inset 3px 0 0 #5fd9a0;
}
.home-latest-item--dispatches .home-latest-item__label {
  background: rgba(184, 212, 240, 0.2);
  color: #e8f2fc;
  box-shadow: inset 3px 0 0 #b8d4f0;
}
.home-latest-item__title {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.35;
  color: var(--white);
  margin-bottom: 0.35rem;
  transition: color 0.2s ease;
}
.home-latest-item__date {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 1024px) {
  .mission-grid-b { grid-template-columns: repeat(2, 1fr); }
  .history-split, .members-split, .news-b-v2-hero { grid-template-columns: 1fr; }
  .about-stats-row, .about-v3-grid { grid-template-columns: 1fr; }
  .news-b-v2-grid { grid-template-columns: repeat(2, 1fr); }
  .news-b-v2-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .news-b-v2-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .home-latest-news__grid { grid-template-columns: 1fr; gap: 0; }
  .contact-grid-b--4 { grid-template-columns: repeat(2, 1fr); }
  .press-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-b-bg { background-attachment: scroll; }
}
@media (max-width: 768px) {
  .hero-b { min-height: 55vh; min-height: 55dvh; }
  .hero-b .inner { padding: 1.5rem 1rem; }
  .hero-b h1 { font-size: clamp(1.5rem, 7.5vw, 2.35rem); line-height: 1.18; }
  .hero-b p { font-size: 0.95rem; }
  .hero-b-actions { flex-direction: column; align-items: stretch; }
  .hero-b-actions .btn { width: 100%; justify-content: center; }
  .flow-section { padding: 3rem 0; }
  .history-split-text { padding: 2rem 1.25rem; }
  .history-split-text h3 { font-size: clamp(0.95rem, 4vw, 1.1rem); }
  .members-split .content h3 { font-size: clamp(0.95rem, 4vw, 1.15rem); }
  .about-v3-initiatives ul { justify-content: flex-start; }
  .mission-b { padding: 3rem 0; }
  .members-b { padding: 3rem 0; }
  .mission-grid-b { grid-template-columns: 1fr; }
  .news-b-v2-grid { grid-template-columns: 1fr; }
  .news-b-v2-grid--4 { grid-template-columns: 1fr; }
  .news-b-v2-grid--3 { grid-template-columns: 1fr; }
  .daily-news-grid { grid-template-columns: 1fr; }
}
