/* ==========================================================================
   Reference Sections Styles (Under Hero Slider)
   Colors adapted from KRC Logo:
   - Primary Accent: #f0b310 (Golden Yellow / Amber)
   - Primary Hover: #d99e05
   - Secondary Brand: #9d9fa2 (Steel / Platinum Slate)
   - Dark Slate / Graphite: #1e2429
   ========================================================================== */

:root {
  --ref-text-main: #111827;
  --ref-text-muted: #59616a;
  --ref-text-light: #9d9fa2;
  --ref-border-pill: #d1d5db;
  --ref-border-subtle: #f0f0f0;
  --ref-radius-card: 22px;
  --ref-radius-pill: 9999px;
  --ref-radius-sm: 14px;
  --ref-primary: #f0b310;
  --ref-primary-hover: #d99e05;
  --ref-primary-dark: #b88300;
  --ref-steel: #9d9fa2;
  --ref-dark: #1e2429;
}

/* Mobil menü butonları masaüstünde kesinlikle gizli */
@media (min-width: 993px) {

  .mobile-menu-toggle,
  .mobile-menu-close,
  .mobile-menu-btn {
    display: none !important;
  }
}

.mobile-menu-toggle,
.mobile-menu-close {
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

/* Container for reference sections */
.ref-sections-wrapper {
  max-width: 1220px;
  margin: 0 auto;
  padding: 40px 24px 80px 24px;
}

/* ==========================================================================
   0. SECTION: PHILOSOPHY / ABOUT (DIRECTLY UNDER SLIDER)
   Matches reference image: Left rounded image, Right big display title & text
   ========================================================================== */
.ref-section-philosophy {
  padding: 30px 0 70px 0;
  border-bottom: 1px solid var(--ref-border-subtle);
  margin-bottom: 70px;
}

.ref-philosophy-tag {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ref-steel);
  margin-bottom: 22px;
}

.ref-philosophy-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 56px;
}

.ref-philosophy-img-wrapper {
  position: relative;
  width: 100%;
}

/* Görselin Arkasındaki Net, Keskin ve Hareketli Turuncu Katman (Blursuz & Bulanıklıksız) */
.ref-philosophy-img-wrapper::after {
  content: '';
  position: absolute;
  top: -14px;
  left: -14px;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f0b310, #ff8c00, #ffb81c, #ea580c, #f0b310);
  background-size: 300% 300%;
  border-radius: 28px;
  z-index: 1;
  animation: orangeGradientMove 5s ease infinite, orangeSubtleFloat 4s ease-in-out infinite alternate;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(240, 179, 16, 0.2);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ref-philosophy-img-wrapper:hover::after {
  top: -18px;
  left: -18px;
  box-shadow: 0 12px 28px rgba(240, 179, 16, 0.3);
}

.ref-philosophy-img-box {
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  background: #f1f2f4;
  position: relative;
  z-index: 2;
  border: 2px solid #ffffff;
}

@keyframes orangeGradientMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes orangeSubtleFloat {
  0% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-3px, -3px);
  }

  100% {
    transform: translate(0, 0);
  }
}

.ref-philosophy-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ref-philosophy-img-box:hover img {
  transform: scale(1.04);
}

.ref-philosophy-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ref-philosophy-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-bottom: 22px;
}

.ref-philosophy-desc {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #59616a;
  margin-bottom: 22px;
}

.ref-philosophy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 30px;
  background: var(--ref-primary);
  color: #1e2429;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--ref-primary);
  transition: all 0.28s ease;
  width: fit-content;
  box-shadow: 0 4px 14px rgba(240, 179, 16, 0.25);
  margin-top: 4px;
}

.ref-philosophy-btn:hover {
  background: #1e2429;
  border-color: #1e2429;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(30, 36, 41, 0.2);
}

.ref-philosophy-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ref-dark);
  text-decoration: none;
  transition: all 0.25s ease;
  width: fit-content;
}

.ref-philosophy-link i {
  color: var(--ref-primary);
  transition: transform 0.25s ease;
}

.ref-philosophy-link:hover {
  color: var(--ref-primary-dark);
}

.ref-philosophy-link:hover i {
  transform: translateX(4px);
}

@media (max-width: 991px) {
  .ref-philosophy-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ref-philosophy-title {
    font-size: 32px;
  }

  .ref-section-philosophy {
    padding: 20px 0 50px 0;
    margin-bottom: 45px;
  }
}

/* Section Header Typography */
.ref-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 16px;
}

.ref-section-title {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ref-text-main);
  margin: 0;
}

.ref-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 22px;
  border-radius: var(--ref-radius-pill);
  border: 1px solid var(--ref-border-pill);
  background: #ffffff;
  color: var(--ref-text-main);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.ref-pill-btn:hover {
  background: var(--ref-primary);
  border-color: var(--ref-primary);
  color: var(--ref-dark);
  box-shadow: 0 4px 12px rgba(240, 179, 16, 0.25);
  transform: translateY(-1px);
}

/* ==========================================================================
   1. SECTION: HİZMETLERİMİZ (ROTATING 4-CARD CAROUSEL)
   Matches reference image: Tall rounded cards with h2 heading & subtext
   ========================================================================== */
.ref-section-hizmetler {
  margin-bottom: 75px;
}

.ref-hizmetler-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 26px;
  flex-wrap: wrap;
  gap: 20px;
}

.ref-hizmetler-header-left {
  max-width: 680px;
}

.ref-hizmetler-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ref-text-main);
  margin-bottom: 8px;
}

.ref-hizmetler-subtext {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ref-text-muted);
  margin: 0;
}

.ref-hizmetler-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ref-carousel-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ref-border-pill);
  background: #ffffff;
  color: var(--ref-dark);
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.ref-carousel-arrow:hover {
  background: var(--ref-primary);
  border-color: var(--ref-primary);
  color: var(--ref-dark);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(240, 179, 16, 0.25);
}

.ref-carousel-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 8px 4px 14px 4px;
  margin: 0 -4px;
}

.ref-carousel-track {
  display: flex;
  gap: 22px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.ref-card-item {
  flex: 0 0 calc((100% - 66px) / 4);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.38s ease;
}

.ref-card-item:hover {
  transform: translateY(-8px);
}

.ref-card-img-box {
  width: 100%;
  aspect-ratio: 1 / 1.25;
  border-radius: var(--ref-radius-card);
  overflow: hidden;
  background: #e9ecef;
  margin-bottom: 14px;
  position: relative;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.38s cubic-bezier(0.16, 1, 0.3, 1), transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.ref-card-item:hover .ref-card-img-box {
  box-shadow: 0 16px 32px rgba(240, 179, 16, 0.2), 0 6px 14px rgba(0, 0, 0, 0.08);
}

.ref-card-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ref-card-item:hover .ref-card-img-box img {
  transform: scale(1.06);
}

.ref-card-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ref-text-main);
  line-height: 1.35;
  margin-bottom: 4px;
  transition: color 0.2s ease;
}

.ref-card-item:hover .ref-card-title {
  color: var(--ref-primary-dark);
}

.ref-card-subtitle {
  font-size: 13px;
  color: var(--ref-text-light);
  font-weight: 400;
}

@media (max-width: 1100px) {
  .ref-card-item {
    flex: 0 0 calc((100% - 44px) / 3);
  }
}

@media (max-width: 768px) {
  .ref-hizmetler-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .ref-hizmetler-title {
    font-size: 28px;
  }

  .ref-card-item {
    flex: 0 0 calc((100% - 22px) / 2);
  }
}

@media (max-width: 480px) {
  .ref-card-item {
    flex: 0 0 100%;
  }
}


.ref-dest-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ref-dest-card:hover .ref-dest-img-box img {
  transform: scale(1.06);
}

.ref-dest-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ref-text-main);
  line-height: 1.35;
  margin-bottom: 4px;
  transition: color 0.2s ease;
}

.ref-dest-card:hover .ref-dest-title {
  color: var(--ref-primary-dark);
}

.ref-dest-subtitle {
  font-size: 13px;
  color: var(--ref-text-light);
  font-weight: 400;
}

/* ==========================================================================
   2. SECTION: LATEST STORIES (ASYMMETRIC BENTO GRID)
   ========================================================================== */
.ref-section-stories {
  margin-bottom: 80px;
}

.ref-stories-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 38px;
  margin-top: 10px;
}

/* Big Story Left */
.ref-story-featured {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.ref-story-feat-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--ref-radius-card);
  overflow: hidden;
  background: #e9ecef;
  margin-bottom: 18px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.ref-story-feat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ref-story-featured:hover .ref-story-feat-img img {
  transform: scale(1.04);
}

.ref-story-badge {
  font-size: 13px;
  font-weight: 700;
  color: var(--ref-primary-dark);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ref-story-feat-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ref-text-main);
  line-height: 1.35;
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.ref-story-featured:hover .ref-story-feat-title {
  color: var(--ref-primary-dark);
}

.ref-story-feat-title a {
  color: inherit;
  text-decoration: none;
}

.ref-story-meta {
  font-size: 12.5px;
  color: var(--ref-text-light);
  margin-bottom: 10px;
}

.ref-story-feat-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ref-text-muted);
}

/* Right Stack of 3 Items */
.ref-stories-stack {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.ref-story-stack-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.ref-story-stack-item:hover {
  transform: translateX(4px);
}

.ref-story-stack-img {
  width: 110px;
  height: 100px;
  border-radius: var(--ref-radius-sm);
  overflow: hidden;
  background: #e9ecef;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.ref-story-stack-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ref-story-stack-item:hover .ref-story-stack-img img {
  transform: scale(1.06);
}

.ref-story-stack-content {
  display: flex;
  flex-direction: column;
}

.ref-story-stack-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ref-text-main);
  margin-bottom: 6px;
  transition: color 0.2s ease;
}

.ref-story-stack-item:hover .ref-story-stack-title {
  color: var(--ref-primary-dark);
}

/* ==========================================================================
   3. SECTION: TREKKER'S HIGHLIGHTS (BOYDAN BOYA LOGO SARISI / TURUNCU)
   ========================================================================== */
.ref-section-highlights {
  width: 100%;
  background-color: #f0b310;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
  padding: 75px 0;
  margin: 40px 0;
}

.ref-highlights-container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

.ref-sections-wrapper-bottom {
  padding-top: 40px !important;
}

.ref-section-highlights .ref-section-title {
  color: #111827;
}

.ref-section-highlights .ref-highlight-plain-title {
  color: #111827;
}

.ref-section-highlights .ref-highlight-plain-p {
  color: #1f2937;
  font-weight: 500;
}

.ref-section-highlights .ref-philosophy-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #111827;
  color: #ffffff;
  padding: 12px 26px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  font-size: 14.5px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  margin-top: 8px;
  width: fit-content;
}

.ref-section-highlights .ref-philosophy-link i {
  color: #f0b310;
  transition: transform 0.3s ease;
}

.ref-section-highlights .ref-philosophy-link:hover {
  background: #1f2937;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.ref-section-highlights .ref-philosophy-link:hover i {
  transform: translateX(4px);
}

.ref-section-highlights .ref-highlight-video-box {
  border: 3px solid #ffffff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.ref-section-highlights .ref-play-overlay-btn {
  background: #111827;
  color: #f0b310;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.ref-section-highlights .ref-highlight-video-box:hover .ref-play-overlay-btn {
  background: #ffffff;
  color: #111827;
  transform: translate(-50%, -50%) scale(1.1);
}

.ref-highlights-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  margin-top: 0;
  align-items: center;
}

/* Col 1: Plain Text / Content Block */
.ref-highlight-testimonial,
.ref-highlight-text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 20px 16px 0;
}

.ref-highlight-plain-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ref-text-main);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.ref-highlight-plain-p {
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ref-text-muted);
  margin-bottom: 14px;
}

.ref-highlight-plain-p:last-of-type {
  margin-bottom: 20px;
}

.ref-author-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.ref-author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: #ffffff;
  border: 2px solid var(--ref-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.ref-author-avatar img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.ref-author-name {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ref-text-main);
}

.ref-author-location {
  font-size: 13px;
  color: var(--ref-text-light);
  margin-top: 2px;
}

.ref-rating-stars {
  color: var(--ref-primary);
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.ref-testi-headline {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ref-text-main);
  line-height: 1.35;
  margin-bottom: 12px;
}

.ref-testi-quote {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ref-text-muted);
}

/* Col 2: Photo Card */
.ref-highlight-photo-card {
  width: 100%;
  height: 380px;
  border-radius: var(--ref-radius-card);
  overflow: hidden;
  background: #e9ecef;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.ref-highlight-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ref-highlight-photo-card:hover img {
  transform: scale(1.04);
}

/* Col 3: Video Card */
.ref-highlight-video-card-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.ref-highlight-video-box {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--ref-radius-card);
  overflow: hidden;
  position: relative;
  background: var(--ref-dark);
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  margin-bottom: 0;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.ref-highlight-video-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.ref-highlight-video-box:hover img {
  transform: scale(1.05);
  opacity: 0.95;
}

.ref-play-overlay-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ref-dark);
  font-size: 18px;
  padding-left: 3px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  animation: bayPlayPulse 2.4s ease-out infinite;
}

.ref-highlight-video-box:hover .ref-play-overlay-btn {
  transform: translate(-50%, -50%) scale(1.15);
  background: var(--ref-primary);
  color: var(--ref-dark);
  box-shadow: 0 0 0 12px rgba(240, 179, 16, 0.3), 0 10px 28px rgba(0, 0, 0, 0.3);
}

.ref-video-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ref-text-main);
  margin-bottom: 16px;
}

.ref-highlight-btn-wrap {
  margin-top: auto;
}

/* ==========================================================================
   VIDEO LIGHTBOX MODAL
   ========================================================================== */
.ref-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(8px);
}

.ref-modal-overlay.active {
  display: flex;
}

.ref-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 860px;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(240, 179, 16, 0.2);
}

.ref-modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 10;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.ref-modal-close-btn:hover {
  background: var(--ref-primary);
  color: var(--ref-dark);
}

.ref-modal-dialog video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1024px) {
  .ref-destinations-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ref-stories-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .ref-highlights-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    width: 100%;
    max-width: 100%;
  }

  .ref-highlight-photo-card,
  .ref-highlight-video-box {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: unset !important;
    max-height: none !important;
    aspect-ratio: 16 / 9 !important;
  }

  .ref-highlight-testimonial,
  .ref-highlight-text-block {
    padding: 0;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .ref-sections-wrapper {
    padding: 30px 16px 50px 16px;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .ref-section-highlights {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 45px 0 !important;
    margin: 20px 0 !important;
  }

  .ref-highlights-container {
    padding: 0 16px !important;
  }

  .ref-highlights-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .ref-highlight-text-block {
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .ref-highlight-plain-title {
    font-size: 22px !important;
    line-height: 1.35 !important;
  }

  .ref-highlight-plain-p {
    font-size: 14px !important;
    line-height: 1.65 !important;
  }

  .ref-highlight-video-card-wrap {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .ref-highlight-video-box {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: unset !important;
    max-height: none !important;
    aspect-ratio: 16 / 9 !important;
    border-radius: 16px !important;
  }

  .ref-section-title {
    font-size: 26px;
  }

  .ref-destinations-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .ref-story-stack-item {
    grid-template-columns: 90px 1fr;
    gap: 14px;
  }

  .ref-story-stack-img {
    width: 90px;
    height: 85px;
  }
}

@media (max-width: 480px) {
  .ref-destinations-grid {
    grid-template-columns: 1fr;
  }

  .ref-section-title {
    font-size: 23px;
  }
}

/* ==========================================================================
   BLOG VITRINI (LATEST POSTS - 2-COLUMN SPOTLIGHT)
   Left: Big featured card with overlay, Right: Vertical stack of 4 latest posts
   ========================================================================== */
.ref-section-blog {
  margin-top: 75px;
  margin-bottom: 75px;
}

.ref-blog-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 38px;
  align-items: stretch;
}

/* Left Featured Card */
.ref-blog-featured-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 440px;
  background: #1e2429;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

.ref-blog-featured-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.25s ease;
  will-change: transform, opacity;
}

.ref-blog-featured-card:hover .ref-blog-featured-bg {
  transform: scale(1.04);
}

.ref-blog-featured-overlay {
  position: relative;
  z-index: 2;
  padding: 38px 32px;
  background: linear-gradient(to top, rgba(15, 19, 22, 0.94) 0%, rgba(15, 19, 22, 0.6) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
}

.ref-blog-feat-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  margin: 0;
  transition: color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.ref-blog-featured-card:hover .ref-blog-feat-title {
  color: var(--ref-primary);
}

/* Güncelleme anında yumuşak solma */
.ref-blog-featured-card.is-updating .ref-blog-featured-bg {
  opacity: 0.3;
}

.ref-blog-featured-card.is-updating .ref-blog-feat-title {
  opacity: 0.3;
  transform: translateY(4px);
}

/* Right Latest Posts Column */
.ref-blog-right-col {
  display: flex;
  flex-direction: column;
}

.ref-blog-right-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}

.ref-blog-right-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--ref-text-main);
  margin: 0;
  letter-spacing: -0.01em;
}

.ref-blog-more-link {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ref-primary-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease;
}

.ref-blog-more-link:hover {
  transform: translateX(3px);
}

.ref-blog-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
  height: 100%;
}

.ref-blog-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 14px;
  border-left: 3px solid transparent;
  transition: all 0.25s ease;
  cursor: pointer;
  background: transparent;
}

.ref-blog-list-item:hover {
  background: rgba(0, 0, 0, 0.03);
}

/* Aktif seçili yazı efekti */
.ref-blog-list-item.is-active {
  background: #ffffff;
  border-left-color: var(--ref-primary);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.ref-blog-list-item.is-active .ref-blog-list-title {
  color: var(--ref-primary-dark);
}

.ref-blog-list-img-wrap {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e9ecef;
}

.ref-blog-list-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.ref-blog-list-item:hover .ref-blog-list-img-wrap img {
  transform: scale(1.08);
}

.ref-blog-list-content {
  display: flex;
  flex-direction: column;
}

.ref-blog-list-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.38;
  color: var(--ref-text-main);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.ref-blog-list-item:hover .ref-blog-list-title {
  color: var(--ref-primary-dark);
}

@media (max-width: 991px) {
  .ref-blog-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ref-blog-featured-card {
    min-height: 360px;
  }
}

@media (max-width: 580px) {
  .ref-blog-featured-overlay {
    padding: 24px 20px;
  }

  .ref-blog-feat-title {
    font-size: 20px;
  }

  .ref-blog-list-img-wrap {
    width: 62px;
    height: 62px;
  }

  .ref-blog-list-title {
    font-size: 13.5px;
  }
}

/* ==========================================================================
   4. SECTION: REFERANSLARIMIZ (CLIENTS / LOGO GRID SECTION)
   Düz zemin, tıklanmayan logolar, fade in/out logo rotasyonu
   ========================================================================== */
.ref-section-clients {
  margin-top: 50px;
  margin-bottom: 30px;
}

.ref-clients-card {
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
  padding: 20px 0;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 52px;
  align-items: center;
}

.ref-clients-info {
  display: flex;
  flex-direction: column;
}

.ref-clients-badge {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ref-primary-dark);
  margin-bottom: 12px;
}

.ref-clients-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ref-text-main);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.ref-clients-desc {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ref-text-muted);
  margin: 0;
}

.ref-clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 22px;
  align-items: center;
}

.ref-client-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: transparent;
  border: none;
  box-shadow: none;
  min-height: 60px;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  transition: opacity 0.7s ease, transform 0.35s ease;
  will-change: opacity, transform;
}

/* Yavaşça gidiş / geliş (Fade Out / In) */
.ref-client-logo-box.is-swapping {
  opacity: 0;
  transform: scale(0.92);
}

/* Üstüne gelince çerçeve/kutu yok, sadece çok az büyüsün */
.ref-client-logo-box:hover {
  background: transparent;
  border: none;
  box-shadow: none;
  transform: scale(1.07);
}

.ref-client-logo-box img {
  width: 100%;
  max-width: 140px;
  height: auto;
  aspect-ratio: 300 / 143;
  object-fit: contain;
  transition: opacity 0.25s ease;
  opacity: 0.88;
}

.ref-client-logo-box:hover img {
  opacity: 1;
}

@media (max-width: 991px) {
  .ref-clients-card {
    grid-template-columns: 1fr;
    padding: 20px 0;
    gap: 36px;
  }

  .ref-clients-title {
    font-size: 30px;
  }
}

@media (max-width: 640px) {
  .ref-clients-card {
    padding: 10px 0;
  }

  .ref-clients-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
  }

  .ref-client-logo-box {
    min-height: 52px;
    padding: 6px 8px;
  }

  .ref-client-logo-box img {
    max-width: 125px;
  }
}