:root {
  --mg-dark-bg: #0d2b2e;
  --mg-accent: #4ecdc4;
  --mg-text-light: #ffffff;
  --mg-text-muted: rgba(255, 255, 255, 0.75);
  --mg-overlay: rgba(0, 0, 0, 0.45);
}

/* ─── HELPERS ───────────────────────────────────────── */
@media (min-width: 993px) {
  .mobile-only {
    display: none !important;
  }
}

@media (max-width: 992px) {
  .desktop-only {
    display: none !important;
  }
}

/* ─── VİDEO BANNER ──────────────────────────────────── */
.mg-video-banner {
  position: relative;
  width: 100%;
  height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}

.mg-video-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
}

.mg-video-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.mg-play-btn {
  position: relative;
  z-index: 5;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  animation: mg-play-pulse 2s infinite;
}

@keyframes mg-play-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }

  70% {
    box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.mg-play-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
  border-color: #fff;
}

.mg-play-btn svg {
  width: 32px;
  height: 32px;
  fill: #fff;
  margin-left: 5px;
}

/* ─── VİDEO TETİKLEYİCİ BUTON (Global Stil) ─────────── */
.video-trigger-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  width: auto;
  min-width: 50px;
  height: 50px;
  padding: 0 20px;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  text-decoration: none;
}

.video-trigger-btn span {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.video-trigger-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.video-trigger-btn svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

/* ─── FULLSCREEN CARD SECTION ────────────────────────── */
.mg-fc {
  position: relative;
  width: 100%;
  height: 650px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.mg-fc__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
}

.mg-fc__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.18) 55%, transparent 100%);
}

.mg-fc__text {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 8vw 60px;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.mg-fc__text.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mg-fc__heading {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--mg-text-light);
  margin-bottom: 20px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.mg-fc__heading-big {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--mg-text-light);
  margin-bottom: 20px;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.mg-fc__body {
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--mg-text-muted);
  max-width: 640px;
  margin: 0 auto;
}

.mg-fc__heading--mobile {
  display: none;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--mg-text-light);
  margin-bottom: 0;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.mg-fc__body--mobile {
  display: none;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--mg-text-muted);
  max-width: 640px;
  margin: 8px auto 0;
}

/* ─── SPLIT SECTION ──────────────────────────────────── */
.mg-split {
  display: flex;
  min-height: 650px;
  gap: 0;
}

.mg-split__half {
  flex: 1;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 50px 5%;
  margin: 0;
  overflow: hidden;
}

.mg-split__half:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.6);
}

.mg-split__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
}

.mg-split__content {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.mg-split__content.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mg-split__content h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--mg-text-light);
  margin-bottom: 12px;
}

.mg-split__content p {
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--mg-text-muted);
  margin: 0;
}

.mg-split__content p.mobile-only {
  display: none;
}

/* ─── 3'LÜ KARTLAR SECTION ───────────────────────────── */
.mg-grid-3 {
  position: relative;
  width: 100%;
  min-height: 950px;
  padding: 350px 4% 80px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.mg-grid-3__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: cover;
  background-position: center;
}

.mg-grid-3__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.2) 100%);
  pointer-events: none;
}

.mg-grid-3__content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.mg-grid-3__top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 60px;
}

.mg-grid-3__top-text {
  max-width: 600px;
  text-align: right;
  color: #fff;
}

.mg-grid-3__heading {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.mg-grid-3__body {
  font-size: 19px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.mg-grid-3__cards-wrap {
  position: relative;
}

.mg-grid-3__cards {
  display: flex;
  gap: 30px;
  overflow: hidden;
  scroll-behavior: smooth;
}

.mg-grid-3__card {
  flex: 0 0 calc(33.333% - 20px);
  display: flex;
  flex-direction: column;
}

.mg-grid-3__arrow {
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background .2s, opacity .2s;
  line-height: 1;
}

.mg-grid-3__arrow:hover {
  background: rgba(0, 0, 0, 0.75);
}

.mg-grid-3__arrow--left {
  left: -22px;
}

.mg-grid-3__arrow--right {
  right: -22px;
}

.mg-grid-3__arrow[disabled] {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.mg-grid-3__card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  margin-bottom: 24px;
}

.mg-grid-3__card-heading {
  font-size: 23px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.mg-grid-3__card-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--mg-text-muted);
}

.mg-grid-3--dark-text .mg-grid-3__top-text,
.mg-grid-3--dark-text .mg-grid-3__card-heading,
.mg-grid-3--dark-text .mg-grid-3__heading {
  color: #242422 !important;
}

.mg-grid-3--dark-text .mg-grid-3__body,
.mg-grid-3--dark-text .mg-grid-3__card-body {
  color: rgba(36, 36, 34, 0.85) !important;
}

.mg-grid-3--dark-text .mg-grid-3__overlay {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.1) 100%) !important;
}

@media (max-width: 992px) {
  .mg-grid-3 {
    min-height: 850px;
    padding-top: 350px;
  }

  .mg-grid-3__top {
    justify-content: center;
    margin-bottom: 40px;
  }

  .mg-grid-3__top-text {
    text-align: center;
    max-width: 100%;
  }

  .mg-grid-3__heading {
    font-size: 36px;
  }

  .mg-grid-3__body {
    font-size: 16px;
  }

  .mg-grid-3__cards {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    scrollbar-width: none;
  }

  .mg-grid-3__cards::-webkit-scrollbar {
    display: none;
  }

  .mg-grid-3__arrow { 
    display: flex;
    width: 36px;
    height: 36px;
    font-size: 18px;
    top: 30%;
  }
  .mg-grid-3__arrow--left { left: 5px; }
  .mg-grid-3__arrow--right { right: 5px; }
  .mg-grid-3__card {
    flex: 0 0 82%;
    max-width: 300px;
    scroll-snap-align: center;
  }

  .mg-grid-3__card-heading {
    font-size: 18px;
  }

  .mg-grid-3__card-body {
    font-size: 14px;
  }
}

/* ─── METİN & GÖRSEL SECTION ───────────────────────── */
.mg-image-text {
  display: flex;
  min-height: 500px;
  background-color: #fff;
}

.mg-image-text__image {
  flex: 0 0 50%;
  max-width: 50%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
}

.mg-image-text__content {
  flex: 0 0 50%;
  max-width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 4%;
}

.mg-image-text__inner {
  max-width: 500px;
  width: 100%;
}

.mg-image-text__subheading {
  font-size: 19px;
  font-weight: 700;
  color: #115F73;
  margin-bottom: 16px;
  text-align: center;
}

.mg-image-text__heading {
  font-size: 48px;
  font-weight: 700;
  color: #242422;
  margin-bottom: 24px;
  line-height: 1.2;
  text-align: center;
}

.mg-image-text__body {
  font-size: 19px;
  line-height: 1.6;
  color: #242422;
  text-align: center;
  margin: 0;
}

.mg-image-text--img-right {
  flex-direction: row-reverse;
}

/* Dark theme */
.mg-image-text--dark {
  background-color: #071a1e;
}

.mg-image-text--dark .mg-image-text__subheading {
  color: #4ecdc4;
}

.mg-image-text--dark .mg-image-text__heading,
.mg-image-text--dark .mg-image-text__body {
  color: #ffffff;
}

@media (max-width: 992px) {
  .mg-image-text {
    flex-direction: column;
  }

  .mg-image-text--img-right {
    flex-direction: column;
  }

  .mg-image-text__image {
    flex: none;
    max-width: 100%;
    min-height: 350px;
    width: 100%;
  }

  .mg-image-text__content {
    flex: none;
    max-width: 100%;
    width: 100%;
    padding: 40px 5%;
  }

  .mg-image-text__heading {
    font-size: 32px;
  }

  .mg-image-text__subheading {
    font-size: 16px;
  }

  .mg-image-text__body {
    font-size: 16px;
  }
}

/* ─── METİN BLOĞU SECTION ────────────────────────────── */
.mg-text-block {
  padding: 80px 4%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mg-text-block__heading {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 24px;
  max-width: 900px;
  line-height: 1.2;
}

.mg-text-block__body {
  font-size: 19px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0;
}

.mg-text-block--light {
  background-color: #ffffff;
}

.mg-text-block--light .mg-text-block__heading,
.mg-text-block--light .mg-text-block__body {
  color: #071a1e;
  /* Lacivert */
}

.mg-text-block--dark {
  background-color: #071a1e;
  /* Lacivert */
}

.mg-text-block--dark .mg-text-block__heading,
.mg-text-block--dark .mg-text-block__body {
  color: #ffffff;
}

@media (max-width: 992px) {
  .mg-text-block {
    padding: 50px 5%;
    text-align: left;
    align-items: flex-start;
  }

  .mg-text-block__heading {
    font-size: 32px;
    margin-bottom: 16px;
  }

  .mg-text-block__body {
    font-size: 16px;
  }
}

/* ─── SLIDER SECTION ─────────────────────────────────── */
.mg-slider-indicators {
  grid-column: 1 !important;
  grid-row: 2 !important;
  position: relative !important;
  display: flex !important;
  justify-content: center !important;
  padding: 8px 0 0 !important;
  margin: 0 !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;
  z-index: 2 !important;
}

.mg-slider-indicators button {
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  background-color: #ccc !important;
  border: none !important;
  margin: 0 6px !important;
  opacity: 1 !important;
}

.mg-slider-indicators button.active {
  background-color: #559da3 !important;
}

.mg-slider--dark {
  background-color: #0c2b2a !important;
}

.mg-slider--dark .mg-slider-indicators button {
  background-color: rgba(255, 255, 255, 0.5) !important;
}

.mg-slider--dark .mg-slider-indicators button.active {
  background-color: #559da3 !important;
}

/* ─── GALERI (GRID) SECTION ──────────────────────────── */
.mg-gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.mg-gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  min-height: 350px;
  grid-column: span 2;
}

.mg-gallery-card--span-3 {
  grid-column: span 3;
}

.mg-gallery-card--span-6 {
  grid-column: span 6;
}

.mg-gallery-img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.mg-gallery-card:hover .mg-gallery-img {
  transform: scale(1.05);
}

.mg-gallery-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 24px;
  text-align: center;
  color: #fff;
  font-size: 23px;
  font-weight: 600;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

@media (max-width: 992px) {
  .mg-gallery-grid {
    grid-template-columns: 1fr;
  }

  .mg-gallery-card,
  .mg-gallery-card--span-3,
  .mg-gallery-card--span-6 {
    grid-column: span 1;
  }
}

/* ─── VİDEO GALERİ ───────────────────────────────────── */
.mg-video-gallery {
  position: relative;
  padding: 40px 4%;
}

.mg-video-gallery__track {
  display: flex;
  gap: 20px;
  overflow: hidden;
  scroll-behavior: smooth;
}

.mg-video-gallery__item {
  position: relative;
  flex: 0 0 calc(33.333% - 14px);
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

.mg-video-gallery__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.mg-video-gallery__item:hover .mg-video-gallery__bg {
  transform: scale(1.05);
}

.mg-video-gallery__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.mg-video-gallery__title {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 24px;
  text-align: center;
  color: #fff;
  font-size: 23px;
  font-weight: 600;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: 3;
}

.mg-video-gallery__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .25s;
  pointer-events: none;
}

.mg-video-gallery__item:hover .mg-video-gallery__play {
  background: rgba(255, 255, 255, 0.35);
}

.mg-video-gallery__play svg {
  width: 24px;
  height: 24px;
  fill: #fff;
  margin-left: 4px;
}

.mg-video-gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, opacity .2s;
  backdrop-filter: blur(4px);
  line-height: 1;
}

.mg-video-gallery__arrow:hover {
  background: rgba(0, 0, 0, 0.75);
}

.mg-video-gallery__arrow--left {
  left: calc(4% + 8px);
}

.mg-video-gallery__arrow--right {
  right: calc(4% + 8px);
}

.mg-video-gallery__arrow[disabled] {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 992px) {
  .mg-video-gallery {
    padding: 20px 4%;
  }

  .mg-video-gallery__track {
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .mg-video-gallery__track::-webkit-scrollbar {
    display: none;
  }

  .mg-video-gallery__item {
    flex: 0 0 82%;
    scroll-snap-align: center;
  }
  .mg-video-gallery__arrow {
    display: flex;
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .mg-video-gallery__arrow--left { left: 10px; }
  .mg-video-gallery__arrow--right { right: 10px; }

  .mg-video-gallery__title {
    font-size: 16px;
    padding: 16px;
  }

  .mg-video-gallery__play {
    width: 52px;
    height: 52px;
  }

  .mg-video-gallery__play svg {
    width: 20px;
    height: 20px;
  }
}

/* ─── MOBİL ──────────────────────────────────────────── */
@media (max-width: 768px) {

  .mg-video-banner {
    height: 420px;
  }

  /* FIX: height:auto + aspect-ratio birlikte içerik taşmasına yol açıyordu.
     min-height ile alt sınır sabitlendi, aspect-ratio içeriğe göre büyür. */
  .mg-fc {
    height: auto;
    min-height: 300px;
    aspect-ratio: 1 / 1;
  }

  .mg-fc__text {
    opacity: 1 !important;
    transform: none !important;
    padding: 0 5vw 7vw;
    text-align: left;
  }

  .mg-fc__heading,
  .mg-fc__heading-big {
    font-size: 1.25rem;
    line-height: 1.25;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
  }

  .mg-fc__body,
  .mg-fc__body--mobile {
    font-size: 0.875rem;
    line-height: 1.7;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  .mg-split {
    flex-direction: column;
    min-height: unset;
  }

  .mg-split__half {
    aspect-ratio: 1 / 1;
    border-right: none !important;
  }

  .mg-split__half:first-child {
    border-right: none !important;
    border-bottom: none !important;
  }

  .mg-split__content {
    opacity: 1 !important;
    transform: none !important;
    text-align: left;
    width: 100%;
  }

  .mg-split__content h3 {
    font-size: 1.25rem;
    margin-bottom: 0;
    text-align: left;
  }

  .mg-split__content p.desktop-only {
    display: none !important;
  }

  .mg-split__content p.mobile-only {
    display: block !important;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--mg-text-muted);
    margin: 6px 0 0;
    text-align: left;
  }

  #mgVideoModal .modal-dialog {
    margin: 0;
    max-width: 100%;
  }

  #mgVideoModal .modal-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 0;
    background: #000;
  }

  #mgVideoModal .modal-header {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    width: 100%;
  }

  #mgVideoModal .modal-body {
    width: 100%;
    flex: none;
  }
}