/* Home page hero: full-width photo slides, navy shade on the left for the text. */

.as-giris { position: relative; overflow: hidden; background: var(--as-lacivert); color: #fff; font-family: var(--as-font);
  height: clamp(620px, 86vh, 880px); isolation: isolate; }
.as-giris * { box-sizing: border-box; }
.as-giris-kap { max-width: var(--as-ust-genislik); margin: 0 auto; padding: 0 clamp(24px, 3vw, 48px); height: 100%; }

.as-giris-slayt { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.as-giris-slayt.aktif { opacity: 1; visibility: visible; transition: opacity .9s ease; z-index: 1; }
.as-giris-foto { position: absolute; inset: 0; z-index: -2; }
.as-giris-foto img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transform-origin: 70% 40%; will-change: transform; }
.as-giris-slayt::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 28, 44, .94) 0%, rgba(5, 28, 44, .82) 34%, rgba(5, 28, 44, .35) 64%, rgba(5, 28, 44, .15) 100%),
    linear-gradient(0deg, rgba(5, 28, 44, .85) 0%, rgba(5, 28, 44, 0) 32%); }
.as-giris-slayt.maddeli::after { background: linear-gradient(90deg, rgba(5, 28, 44, .95) 0%, rgba(5, 28, 44, .86) 50%, rgba(5, 28, 44, .7) 100%), linear-gradient(0deg, rgba(5, 28, 44, .85), rgba(5, 28, 44, 0) 32%); }

.as-giris-slayt > .as-giris-kap { display: flex; align-items: center; gap: 48px; padding-bottom: 110px; }
.as-giris-icerik { max-width: 640px; }
.as-giris-ust { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.as-giris-ust::before { content: ''; width: 36px; height: 3px; border-radius: 3px; background: var(--as-kirmizi); flex: none; }
.as-giris-baslik { margin: 0 0 22px; font-family: var(--as-font); font-weight: 800; font-size: clamp(40px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -0.025em; color: #fff; text-wrap: balance; }
.as-giris-metin { margin: 0 0 32px; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.65; color: rgba(255, 255, 255, .86); max-width: 560px; }
.as-giris-butonlar { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.as-btn-buyuk { height: 54px !important; padding: 0 28px !important; font-size: 16px !important; gap: 12px; }
.as-btn-buyuk svg { width: 15px; height: 15px; fill: currentColor; transition: transform .2s; }
.as-btn-buyuk:hover svg { transform: translateX(4px); }
.as-btn-cerceve { display: inline-flex; align-items: center; height: 54px; padding: 0 28px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .7);
  color: #fff !important; font-weight: 700; font-size: 16px; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s; }
.as-btn-cerceve:hover { background: #fff; color: var(--as-lacivert) !important; border-color: #fff; }

/* Slide 3: the four reasons as cards on the right */
.as-giris-maddeler { list-style: none; margin: 0 0 0 auto; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 290px)); gap: 16px; }
.as-giris-maddeler li { display: flex; gap: 14px; padding: 20px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background-color .2s, border-color .2s; }
.as-giris-maddeler li:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }
.as-giris-maddeler img { width: 40px; height: 40px; flex: none; padding: 8px; border-radius: 12px; background: var(--as-kirmizi); }
.as-giris-maddeler h3 { margin: 2px 0 6px; font-family: var(--as-font); font-size: 16px; font-weight: 800; color: #fff; }
.as-giris-maddeler p { margin: 0; font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, .78); }

/* Tabs and arrows at the bottom */
.as-giris-alt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 110px; }
.as-giris-alt .as-giris-kap { display: flex; align-items: center; gap: 32px; }
.as-giris-sekmeler { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; flex: 1; max-width: 880px; }
.as-giris-sekme { all: unset; cursor: pointer; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 12px; align-items: baseline; color: rgba(255, 255, 255, .6); font-family: var(--as-font); transition: color .2s; }
.as-giris-sekme:hover, .as-giris-sekme.aktif { color: #fff; }
.as-giris-sekme:focus-visible { outline: 2px solid #fff; outline-offset: 6px; border-radius: 4px; }
.as-giris-no { font-size: 13px; font-weight: 800; letter-spacing: .06em; }
.as-giris-sekme-ad { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-giris-cubuk { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.as-giris-cubuk i { display: block; height: 100%; width: 100%; background: var(--as-kirmizi); transform: scaleX(0); transform-origin: left; }
.as-giris-sekme.aktif .as-giris-cubuk i { animation: as-giris-ilerle var(--sure, 7s) linear forwards; }
.as-giris.duraklat .as-giris-sekme.aktif .as-giris-cubuk i { animation-play-state: paused; }
.as-giris-sekme.gecti .as-giris-cubuk i { transform: scaleX(1); }
@keyframes as-giris-ilerle { to { transform: scaleX(1); } }
.as-giris-oklar { display: flex; gap: 10px; margin-left: auto; }
.as-giris-ok { all: unset; cursor: pointer; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .5); display: grid; place-items: center; color: #fff; transition: background-color .2s, color .2s, border-color .2s; }
.as-giris-ok svg { width: 16px; height: 16px; fill: currentColor; }
.as-giris-ok:hover { background: #fff; color: var(--as-lacivert); border-color: #fff; }
.as-giris-ok:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Before the script starts the entrance animation, keep the first slide visible */
.as-giris:not(.hazir) [data-gir], .as-giris:not(.hazir) [data-madde] { opacity: 1; }

/* Tablet and phone: photo on top (clear, no dark shade), text on a navy panel below it.
   All slides share one space so the page does not jump when the slide changes. */
@media (max-width: 1024px) {
  .as-giris { display: grid; grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; background: var(--as-lacivert); }
  .as-giris-slayt, .as-giris-alt, .as-giris-kap, .as-giris-icerik { min-width: 0; }
  .as-giris-slayt, .as-giris-slayt.aktif { position: relative; inset: auto; grid-area: 1 / 1; display: flex; flex-direction: column; }
  .as-giris-slayt::after { display: none; }
  .as-giris-foto { position: relative; z-index: 0; height: clamp(230px, 52vw, 380px); flex: none; }
  .as-giris-foto img { object-position: center 30%; }
  .as-giris-slayt.yanli .as-giris-foto img { object-position: center 25%; }
  .as-giris-slayt > .as-giris-kap { position: relative; z-index: 1; flex: 1; display: block; height: auto; min-height: 0;
    width: 100%; margin: -28px 0 0; padding: 30px 16px 92px; background: var(--as-lacivert); border-radius: 24px 24px 0 0; }
  .as-giris-icerik { max-width: 640px; }
  .as-giris-ust { font-size: 12px; margin-bottom: 12px; }
  .as-giris-ust::before { width: 24px; }
  .as-giris-baslik { font-size: clamp(32px, 8.5vw, 48px); margin-bottom: 14px; }
  .as-giris-metin { font-size: 15.5px; line-height: 1.6; margin-bottom: 22px; }
  .as-giris-butonlar { flex-direction: column; gap: 10px; margin-bottom: 18px; }
  .as-giris-butonlar a { width: 100%; justify-content: center; height: 52px !important; }
  /* The team photo is already on top, so the side card is not repeated */
  .as-giris-yan { display: none; }
  /* Slide 3: the four reasons as a 2 x 2 grid, every card fully visible (no sideways strip) */
  .as-giris-maddeler { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 4px 0 0; padding: 0; overflow: visible; }
  .as-giris-maddeler li { flex-direction: row; align-items: center; gap: 10px; padding: 10px 12px; min-width: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .as-giris-maddeler h3 { font-size: 13.5px; line-height: 1.3; margin: 0; min-width: 0; }
  .as-giris-maddeler p { display: none; }
  .as-giris-maddeler img { width: 30px; height: 30px; padding: 6px; flex: none; }
  /* Dots instead of tabs */
  .as-giris-alt { position: relative; grid-area: 1 / 1; align-self: end; height: 76px !important; }
  .as-giris-alt .as-giris-kap { padding: 0 16px; gap: 12px; }
  .as-giris-sekmeler { display: flex; gap: 4px; flex: 1; }
  /* Each dot is a 44px tall tap area with a thin bar in the middle; dots keep their width */
  .as-giris-sekme { display: flex; align-items: center; width: 36px; height: 44px; }
  .as-giris-no, .as-giris-sekme-ad { display: none; }
  .as-giris-cubuk { display: block; width: 100%; height: 4px; }
  .as-giris-ok { width: 44px; height: 44px; }
  .as-giris-ok svg { width: 14px; height: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .as-giris-slayt { transition: none; }
  .as-giris-sekme.aktif .as-giris-cubuk i { animation: none; transform: scaleX(1); }
}

/* The old theme styles every button; keep the hero's tabs and arrows clean */
.as-giris .as-giris-sekme, .as-giris .as-giris-ok { background: transparent !important; box-shadow: none !important; padding: 0 !important; min-height: 0 !important; text-transform: none !important; letter-spacing: normal !important; }
.as-giris .as-giris-sekme { border: 0 !important; border-radius: 0 !important; color: rgba(255, 255, 255, .6) !important; }
.as-giris .as-giris-sekme:hover, .as-giris .as-giris-sekme.aktif { color: #fff !important; }
.as-giris .as-giris-ok { border: 1.5px solid rgba(255, 255, 255, .5) !important; border-radius: 50% !important; color: #fff !important; }
.as-giris .as-giris-ok:hover { background: #fff !important; color: var(--as-lacivert) !important; }


/* Slide with the team photo: text on the left, the photo as a card on the right */
.as-giris-slayt.yanli::after { background: linear-gradient(90deg, rgba(5, 28, 44, .96) 0%, rgba(5, 28, 44, .9) 55%, rgba(5, 28, 44, .82) 100%), linear-gradient(0deg, rgba(5, 28, 44, .85), rgba(5, 28, 44, 0) 32%); }
.as-giris-yan { margin: 0 0 0 auto; flex: 0 1 620px; aspect-ratio: 3 / 2; border-radius: 22px; overflow: hidden; position: relative;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .18); }
.as-giris-yan img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.as-giris-yan::before { content: ''; position: absolute; left: -1px; top: 28px; width: 6px; height: 64px; border-radius: 0 4px 4px 0; background: var(--as-kirmizi); z-index: 1; }
@media (max-width: 1024px) {
  .as-giris-yan { margin: 0; width: 100%; flex: none; max-width: 520px; border-radius: 16px; }
}
/* Phone: leave room for the small cookie settings button in the bottom left corner */
@media (max-width: 1024px) { .as-giris-sekmeler { margin-left: 44px; } }

/* Tablet: buttons side by side instead of stretched across the screen */
@media (min-width: 600px) and (max-width: 1024px) {
  .as-giris-slayt > .as-giris-kap { padding-left: 32px; padding-right: 32px; }
  .as-giris-alt .as-giris-kap { padding: 0 32px; }
  .as-giris-butonlar { flex-direction: row; flex-wrap: wrap; }
  .as-giris-butonlar a { width: auto; padding: 0 30px !important; }
  .as-giris-maddeler { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .as-giris-maddeler li { flex-direction: column; align-items: flex-start; }
}
/* Narrow phones: icon above the title so long words ("Communication") never break */
@media (max-width: 374px) {
  .as-giris-maddeler li { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Tablet and phone: when a slide has less text than the tallest one, keep its text in the middle of the navy panel
   instead of leaving an empty band under the buttons */
@media (max-width: 1024px) {
  .as-giris-slayt > .as-giris-kap { display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 16px; }
}
/* Tablet: the dots sit next to the arrows on the right, clear of the cookie button in the bottom left corner */
@media (min-width: 600px) and (max-width: 1024px) {
  .as-giris-sekmeler { margin-left: auto; flex: none; justify-content: flex-end; }
  .as-giris-oklar { margin-left: 8px; }
}
/* Phone turned sideways: a short photo strip so the title and buttons are visible on the first screen */
@media (max-width: 1024px) and (orientation: landscape) and (max-height: 520px) {
  .as-giris-foto { height: clamp(110px, 30vh, 150px); }
}
