/* ==========================================================================
   Kampanyalar — kampanya kartları, blog kartlarıyla aynı dilde (bkz.
   bl-grid.css) ama gerçek banner görselleriyle. "Detaylı Bilgi" butonu tek
   bir paylaşılan modalı (.campaign-modal) açar, içeriğini tıklanan karttan
   alır (bkz. main.js, initCampaignModal). Sayfa başlığı firsatlar-hero'da.
   ========================================================================== */

.frsat {
  background: var(--white);
}

.frsat__inner {
  padding-top: 72px;
  padding-bottom: 100px;
}

.frsat__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.frsat__card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.frsat__cover {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.frsat__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frsat__body {
  padding: 26px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.frsat__body .frsat__card-title {
  font-weight: 800;
  font-size: 19px;
  line-height: 1.24;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 10px;
  text-wrap: pretty;
}

.frsat__excerpt {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 20px;
  flex: 1;
  text-wrap: pretty;
}

.frsat__detailBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  color: var(--indigo);
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
}

.frsat__detailBtn:hover {
  text-decoration: underline;
}

/* --- kampanya detay modalı -------------------------------------------------
   Merkezi, contact-modal ile aynı temel yapı (bkz. footer.css). */
.campaign-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility 0s linear .2s;
}

.campaign-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  transition: opacity .2s ease, visibility 0s linear 0s;
}

.campaign-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 16, 96, .45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.campaign-modal__panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card-lg);
  transform: translateY(14px);
  transition: transform .25s cubic-bezier(.22, 1, .36, 1);
}

.campaign-modal[aria-hidden="false"] .campaign-modal__panel {
  transform: translateY(0);
}

.campaign-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: none;
  border-radius: 50%;
  color: var(--muted-2);
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.campaign-modal__close svg {
  width: 16px;
  height: 16px;
}

/* Shallower than the 3/2 card cover: the panel is capped at 90vh and the
   image is the one part that can give height back to the copy below it. */
.campaign-modal__cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}

.campaign-modal__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.campaign-modal__body {
  padding: 24px 26px 26px;
}

.campaign-modal__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 12px;
}

.campaign-modal__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 14px;
}

.campaign-modal__text[hidden] {
  display: none;
}

.campaign-modal__list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.campaign-modal__list[hidden] {
  display: none;
}

.campaign-modal__list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}

.campaign-modal__list li:last-child {
  margin-bottom: 0;
}

/* Tick drawn in CSS so the bullets need no markup of their own — the panel
   builds each row from a plain string (see initCampaignModal). */
.campaign-modal__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 15px;
  height: 9px;
  border-left: 2px solid var(--indigo);
  border-bottom: 2px solid var(--indigo);
  transform: rotate(-45deg) scale(.82);
  transform-origin: center;
}

.campaign-modal__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--indigo);
  color: var(--white);
  text-decoration: none;
  border: none;
  border-radius: var(--r-pill);
  padding: 14px 24px;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease;
}

.campaign-modal__cta:hover {
  background: var(--pink-deep);
}

@media (max-width: 860px) {
  .frsat__inner {
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .frsat__grid {
    grid-template-columns: 1fr;
  }
}
