.portal-page {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  /* Yan boşluk .public-container (--container-side-gap) ile header ile aynı hizada kalır */
}

.portal-page--home {
  padding-top: 0.5rem;
}

/* Manşet (hero) ile alt satırlar aynı içerik genişliğinde — hero’daki ekstra padding/max-width kaldırılır */
.portal-page .hero-banner,
.portal-page .module-hero-banner {
  width: 100%;
  max-width: 100%;
  margin: 0 0 12px;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

.portal-page--home > .portal-row:first-child {
  margin-top: 0;
}

.portal-page .portal-row {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.portal-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.portal-page--home > .portal-row:first-child {
  margin-bottom: 1rem;
}

.portal-row--2col-equal {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}

.portal-row--2col-equal .portal-slot {
  min-width: 0;
  max-width: 100%;
}

.portal-row--2col-equal .portal-slot {
  display: flex;
  flex-direction: column;
}

.portal-slot-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.portal-row--2col-equal .portal-slot-stack > * {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.portal-row--2col-equal .portal-slot > .portal-slot-stack {
  flex: 1 1 auto;
  width: 100%;
}

/* Özel HTML (Borsa Linkleri vb.): slota tam genişlik, 2x2 buton grid */
.portal-row--2col-equal .module-custom-html {
  margin-top: 0;
  width: 100%;
  border: 1px solid #e0e0e0;
  background: #fff;
  padding: 10px 8px 8px;
}

.portal-row--2col-equal .module-custom-html-title {
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.portal-row--2col-equal .module-custom-html-body {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem;
  align-content: start;
}

.portal-row--2col-equal .module-custom-html-body p {
  display: contents;
  margin: 0;
}

.portal-row--2col-equal .module-custom-html-body a {
  display: block;
  min-width: 0;
}

.portal-row--2col-equal .module-custom-html-body img {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  display: block;
  object-fit: contain;
}

.portal-row--2col-equal .module-custom-html-body br {
  display: none;
}

.portal-row--2col-equal .module-custom-html-body [id="ckimgrsz"] {
  display: none !important;
}

.portal-row--3col {
  grid-template-columns: minmax(220px, 1fr) minmax(320px, 2fr) minmax(180px, 0.8fr);
}

.portal-row--3col-equal {
  grid-template-columns: repeat(3, 1fr);
}

.portal-row--4col {
  grid-template-columns: repeat(4, 1fr);
}

.portal-hero {
  min-height: 320px;
  border-radius: 12px;
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 45%, #f8fafc 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.portal-hero__caption {
  margin: 0;
  font-weight: 600;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.85);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}

.portal-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.portal-banner {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  border: 1px solid #e2e8f0;
}

.portal-banner__title {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

.portal-footer-block {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
}

.portal-slot--grid,
.portal-row--products .portal-slot {
  overflow: visible;
}

.portal-slot-stack .module-testimonials,
.portal-slot .module-testimonials {
  min-width: 0;
  max-width: 100%;
}

.portal-row--products .portal-slot--grid {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 767.98px) {
  .portal-row--products .portal-slot:has(.portal-slot-stack:empty) {
    display: none;
  }

  .portal-row--products:has(.portal-slot--grid .module-testimonials) {
    grid-template-columns: minmax(0, 1fr);
  }
}

.cms-html {
  line-height: 1.6;
  color: #334155;
}

.cms-html img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 992px) {
  .portal-row--2col-equal,
  .portal-row--3col,
  .portal-row--3col-equal,
  .portal-row--4col {
    grid-template-columns: 1fr;
  }

  .portal-hero {
    min-height: 220px;
  }

  .portal-row {
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }
}

@media (max-width: 576px) {
  .portal-row--2col-equal .module-custom-html-body {
    grid-template-columns: 1fr;
  }

  .portal-row--2col-equal .module-custom-html,
  .portal-row--2col-equal .module-cme-quotes {
    padding: 8px 6px;
  }
}
