/* Streamsoft Partner Page Specific Styles
   Scope is namespaced with .partner- to avoid collisions
   ----------------------------------------------------- */

/* Header-based hero (overlay on header image) */
.partner-header {
  position: relative;
  background-image: url("../img/businessman.jpg");
  background-size: cover;
  background-position: center center;
  max-height: 520px; /* zmniejszone tylko dla strony partnera */
  color: #fff;
  overflow: hidden;
}

/* dark overlay to improve contrast */
.partner-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,30,57,0.55) 0%, rgba(12,30,57,0.45) 60%, rgba(12,30,57,0.55) 100%);
  z-index: 1;
}

/* ensure nav and its mobile menu sit above header overlay */
.partner-header .navbar {
  position: relative;
  z-index: 2600; /* podniesione, aby menu było zawsze nad hero */
}
.partner-header .navbar-collapse,
.partner-header .navbar-toggler,
.partner-header .navbar .nav {
  position: relative;
  z-index: 2605;
}
.partner-header .navbar .dropdown-menu {
  z-index: 2700; /* dropdowny mobilne powinny być najwyżej */
}

/* hero content positioned over header image */
.partner-header-hero {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2300;
  width: 100%;
  padding: 20px 12px; /* mniejsze paddingi dla tej strony */
  box-sizing: border-box;
  text-align: center;
}

/* container inside overlay to limit width */
.partner-header-hero .container {
  position: relative;
  z-index: 2310;
  max-width: 1100px;
  margin: 0 auto;
}

/* typography inside header overlay */
.partner-header-hero h1 {
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 10px;
  color: #ffffff;
}

.partner-header-hero .hero-lead {
  max-width: 820px;
  margin: 0 auto 14px;
  font-size: 0.98rem;
  color: #e6eefb;
}

/* fallback / legacy partner-hero kept for pages that don't use header image */
.partner-hero {
  background: linear-gradient(135deg, #0c1e39 0%, #18345d 70%);
  padding: 150px 0 70px;
  text-align: center;
}

.partner-hero h1 {
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 18px;
  color: #ffffff;
}

.partner-hero .hero-lead {
  max-width: 860px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
  font-weight: 400;
  color: #e2e8f3;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary-partner,
.btn-outline-partner {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 30px !important; /* override global a{ padding-left:0 !important } */
  line-height: 1.25;
  border-radius: 4px;
  box-sizing: border-box;
  transition: background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  gap: 6px;
  min-width: 140px;
}

.btn-primary-partner {
  background: #3e5da7;
  color: #fff;
  border: 2px solid #3e5da7;
}

.btn-primary-partner:hover,
.btn-primary-partner:focus {
  background: #2c4b8d;
  border-color: #2c4b8d;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 14px -4px rgba(20, 46, 90, 0.5);
}

.btn-outline-partner {
  background: transparent;
  color: #3e5da7;
  border: 2px solid #3e5da7;
}

.btn-outline-partner:hover,
.btn-outline-partner:focus {
  background: #3e5da7;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 14px -4px rgba(20, 46, 90, 0.4);
}

.btn-primary-partner:focus,
.btn-outline-partner:focus {
  outline: 3px solid #a8c2f4;
  outline-offset: 2px;
}

/* Generic Section Structure */
.partner-section {
  padding: 35px 0;
  position: relative;
}

.partner-section--alt {
  background: #f5f7fa;
}

.partner-section .section-title {
  font-size: 1.95rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: #0c1e39;
  position: relative;
}

.partner-section .section-title:after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #3e5da7;
  margin-top: 14px;
  border-radius: 2px;
}

.section-lead {
  font-size: 1rem;
  max-width: 920px;
  color: #2b2f35;
  margin-bottom: 28px;
}

/* About Partner */
.partner-about .partner-intro p {
  margin-bottom: 16px;
}

/* Certificates Grid */
.certs-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 35px 0 25px;
}

.cert-item {
  text-align: center;
  background: #fff;
  border: 1px solid #dde3ec;
  padding: 18px 18px 14px;
  border-radius: 6px;
  box-shadow: 0 3px 8px -4px rgba(12, 30, 57, 0.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.cert-item img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  margin: 0 auto 10px;
}

.cert-item figcaption {
  font-size: 0.78rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #3e5da7;
  font-weight: 600;
}

.cert-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px -6px rgba(12, 30, 57, 0.18);
}

.cert-note {
  font-size: 0.95rem;
  margin-top: 8px;
  color: #243142;
}

/* Lists with Icons */
.list-icon {
  list-style: none;
  padding: 0;
  margin: 0 0 15px;
}

.list-icon li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  line-height: 1.35;
}

.list-icon li:before {
  content: "\f058";
  font-family: "FontAwesome";
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 1rem;
  color: #3e5da7;
}

/* Service List */
.service-list {
  columns: 1;
  column-gap: 40px;
  max-width: 960px;
}

/* Module Layout */
.module-layout {
  display: grid;
  gap: 50px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  margin-top: 20px;
}

.module-col .sub-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 16px;
  color: #18345d;
}

/* Benefits Section */
.partner-why .benefits-list {
  max-width: 1000px;
  columns: 1;
  column-gap: 48px;
}

/* CTA */
.partner-cta {
  background: linear-gradient(115deg, #0c1e39 0%, #15325a 60%, #1d4172 100%);
  color: #fff;
}

.partner-cta .section-title {
  color: #fff;
}

.partner-cta .section-title:after {
  background: #fff;
  opacity: .9;
  margin-left: auto;
  margin-right: auto;
}

.cta-box {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.cta-box p {
  font-size: 1rem;
  margin-bottom: 22px;
}

.cta-contact p {
  margin-bottom: 8px;
}

.cta-contact a {
  color: #fff;
  text-decoration: underline;
}

.cta-contact a:hover {
  text-decoration: none;
}

.cta-actions {
  margin-top: 18px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Stronger overrides for anchor-buttons inside hero/cta to beat global `a` rules */
.hero-cta .btn-primary-partner,
.hero-cta .btn-outline-partner,
.cta-actions .btn-primary-partner,
.cta-actions .btn-outline-partner {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 12px 30px !important;
  text-align: center !important;
  box-sizing: border-box;
  gap: 6px;
  min-width: 140px;
}

/* Partner-header specific button colors for contrast on blue background */
.partner-header .btn-primary-partner {
  background: #ffffff !important;
  color: #0c1e39 !important;
  border-color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(12,30,57,0.08);
}
.partner-header .btn-primary-partner:hover,
.partner-header .btn-primary-partner:focus {
  background: #f0f4ff !important;
  color: #0c1e39 !important;
  border-color: #f0f4ff !important;
  box-shadow: 0 6px 18px rgba(12,30,57,0.12);
}

.partner-header .btn-outline-partner {
  background: transparent !important;
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.95) !important;
}
.partner-header .btn-outline-partner:hover,
.partner-header .btn-outline-partner:focus {
  background: #ffffff !important;
  color: #0c1e39 !important;
  border-color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(12,30,57,0.12);
}

/* Utility / Minor Enhancements */
.partner a.btn-primary-partner,
.partner a.btn-outline-partner {
  text-decoration: none !important;
}

.partner strong {
  font-weight: 600;
}

/* Focus visibility for keyboard users */
.partner a:focus,
.partner button:focus {
  outline: 3px solid #a8c2f4;
  outline-offset: 2px;
}

/* Small Animations (progressive enhancement) */
.partner-section,
.partner-hero .container {
  animation: fadeIn .6s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Tweaks */
@media (max-width: 992px) {
  .partner-hero {
    padding: 130px 0 60px;
  }
  .partner-hero h1 {
    font-size: 1.9rem;
  }
  .module-layout {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .partner-section {
    padding: 28px 0;
  }
  .partner-hero h1 {
    font-size: 1.65rem;
  }
  .partner-hero .hero-lead {
    font-size: 0.95rem;
  }
  .service-list {
    columns: 1;
  }
  .partner-why .benefits-list {
    columns: 1;
  }
  .btn-primary-partner,
  .btn-outline-partner {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .partner-section,
  .partner-hero .container {
    animation: none !important;
  }
  .cert-item,
  .btn-primary-partner,
  .btn-outline-partner {
    transition: none !important;
  }
}
