.hero-media {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.oyku-hero-play-fallback {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 9;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  background: rgba(0,0,0,0.22);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease;
  transform: translate(-50%, calc(-50% - 4px)) scale(0.96);
}

.oyku-hero-play-fallback svg {
  font-size: 1.4rem;
  margin-left: 1px;
}

.oyku-hero-play-fallback:active {
  background: rgba(0,0,0,0.36);
}

.hero-video-embed {
  width: 100%;
  height: 100%;
  border: 0;
}

.hero-video-ratio {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Ensure hero background video sits behind the content */

.hero .hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero .hero-content {
  position: relative;
  z-index: 3;
}

/* =========================
   Cinematic Hero (Phase 1)
   ========================= */

.oyku-hero-cinematic {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  isolation: isolate;
}

/* TV power-on / reveal intro overlay (covers the WHOLE page including header)
   Important: do NOT autoplay the animation on initial CSS load.
   We keep it black until JS marks "ready", then we animate. */

#oykuTvIntro {
  position: fixed;
  inset: 0;
  z-index: 5000;
  pointer-events: none;
  opacity: 1;
  background: linear-gradient(#000 0 0) top / 100% 50% no-repeat, linear-gradient(#000 0 0) bottom / 100% 50% no-repeat;
  background-size: 100% 50%, 100% 50%;
}

/* Scanline */

#oykuTvIntro::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  opacity: 0;
}

/* Start animation only when body has this class (set by JS) */

body.oyku-tv-play #oykuTvIntro {
  animation: oyku-tv-reveal 1400ms cubic-bezier(.2,.9,.2,1) 100ms forwards;
}

body.oyku-tv-play #oykuTvIntro::after {
  animation: oyku-tv-scan 650ms ease 220ms forwards;
}

body.oyku-tv-play {
  --oyku-hero-char-duration: 1300ms;
}

/* After animation ends, keep it gone */

body.oyku-tv-done #oykuTvIntro {
  opacity: 0;
  visibility: hidden;
}

/* (Hero-specific TV overlay disabled; now handled on body) */

.oyku-hero-cinematic::before, .oyku-hero-cinematic::after {
  content: none !important;
}

@keyframes oyku-tv-reveal {
  0% {
    background-size: 100% 50%, 100% 50%;
  }
  70% {
    background-size: 100% 6%, 100% 6%;
  }
  100% {
    background-size: 100% 0%, 100% 0%;
    opacity: 0;
  }
}

@keyframes oyku-tv-scan {
  0% {
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #oykuTvIntro, #oykuTvIntro::after {
    animation: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #oykuTvIntro {
    opacity: 0 !important;
    visibility: hidden !important;
  }
}

/* Editor / debugging kill-switch:
   Body attribute disables the intro overlay everywhere */

body[data-oyku-no-intro="1"] #oykuTvIntro, body[data-oyku-no-intro="1"] #oykuTvIntro::after {
  animation: none !important;
}

body[data-oyku-no-intro="1"] #oykuTvIntro {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Color grading + vignette overlay (sits above video, below content) */

.oyku-hero-cinematic .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(1200px 700px at 20% 15%, rgba(20, 170, 255, 0.10), transparent 60%), radial-gradient(1200px 700px at 80% 35%, rgba(255, 166, 60, 0.10), transparent 62%), radial-gradient(900px 650px at 50% 50%, rgba(0,0,0,0.25), transparent 60%), linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 100%);
  mix-blend-mode: multiply;
}

/* Subtle film grain overlay (calm + safe) */

.oyku-hero-cinematic .hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  background-size: 260px 260px;
  animation: oyku-grain 14s steps(6) infinite;
  will-change: transform;
}

@keyframes oyku-grain {
  0% {
    transform: translate3d(0,0,0);
  }
  25% {
    transform: translate3d(-0.6%, 0.35%, 0);
  }
  50% {
    transform: translate3d(0.45%, -0.55%, 0);
  }
  75% {
    transform: translate3d(0.35%, 0.55%, 0);
  }
  100% {
    transform: translate3d(0,0,0);
  }
}

/* Ensure video is slightly desaturated/filmic (more subtle + no motion) */

.oyku-hero-cinematic .hero-video {
  filter: saturate(0.98) contrast(1.02) brightness(0.92);
  transform: none;
}

/* Title letter animation (JS will wrap letters in spans) */

.oyku-hero-title {
  letter-spacing: 0.02em;
  text-shadow: 0 12px 40px rgba(0,0,0,0.45);
  font-size: clamp(0.9rem, min(4.5vw, calc((100vw - 48px) / 16)), 3.25rem);
  line-height: 1.15;
  white-space: normal;
  display: block;
  max-width: 100%;
  overflow: visible;
  text-align: center;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
  text-overflow: initial;
}

/* Prevent full raw title from flashing before cinematic split animation starts */
.oyku-hero-title[data-oyku-split]:not([data-oyku-split-done="true"]) {
  opacity: 0;
}

/* Tablet (768-991.98): also keep it clean (less awkward sizing) */

@media (min-width: 768px) and (max-width: 991.98px) {
  #hero .hero-cta-wrapper {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 0;
    padding-right: 0;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  #hero .hero-cta-card {
    border-radius: 0;
    padding-top: 0.95rem;
    padding-left: clamp(16px, 3vw, 44px);
    padding-right: clamp(16px, 3vw, 44px);
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  #hero .oyku-hero-title {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    font-size: clamp(1.05rem, 3.1vw, 2.15rem);
    line-height: 1.05;
    text-align: left;
  }
}

/* Mobile autoplay/compositing reliability:
   Some mobile GPUs/browser pipelines can freeze hero videos on the first frame
   when CSS filters + animated grain overlays are applied on top. Keep the same
   layout, but reduce the heaviest effects on touch devices. */
@media (hover: none) and (pointer: coarse), (max-width: 767.98px) {
  .oyku-hero-cinematic .hero-video,
  .hero-wrapper .hero-media .hero-video,
  #hero .hero-video {
    filter: none !important;
    transform: none !important;
  }

  .hero-wrapper .hero-media::after {
    animation: none !important;
    opacity: 0.18 !important;
  }

  .oyku-hero-play-fallback.is-visible {
    display: inline-flex;
    opacity: 0.82;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Desktop+: keep slogan on ONE line, but never trim */

@media (min-width: 992px) {
  #hero .oyku-hero-title {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    font-size: clamp(1.15rem, 2.7vw, 3.1rem);
    line-height: 1.05;
  }
}

/* Safety: never allow the hero CTA area to create horizontal scroll on mobile */

@media (max-width: 767.98px) {
  #hero .hero-cta-panel, #hero .hero-cta-wrapper, #hero .hero-cta-card {
    max-width: 100vw;
    overflow-x: clip;
  }
}

/* center the contents of the CTA card on mobile/tablet */

@media (max-width: 767.98px) {
  #hero .hero-cta-card {
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 767.98px) {
  #hero .hero-cta-card .cta-group {
    justify-content: center;
  }
}

.oyku-split-char {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 10px, 0) scale(0.98);
  filter: blur(8px);
  animation: oyku-char-in var(--oyku-hero-char-duration, 650ms) cubic-bezier(.2,.8,.2,1) forwards;
}

/* Mobile fit: allow split chars to flow like text so the line can shrink without overflow */

@media (max-width: 575.98px) {
  .oyku-hero-title[data-oyku-split] .oyku-split-char {
    display: inline;
  }
}

@keyframes oyku-char-in {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@media (max-width: 420px) {
  .oyku-hero-title {
    font-size: clamp(0.55rem, calc((100vw - 40px) / 28), 1.75rem);
  }
}

@media (max-width: 420px) {
  #hero .hero-cta-card {
    padding-left: clamp(0.75rem, 6vw, 1rem);
    padding-right: clamp(0.75rem, 6vw, 1rem);
  }
}

/* Button shine sweep (site-wide) */

/* Targets:
   - Bootstrap buttons (.btn)
   - Your custom link-buttons: .service-btn, .emergency-btn, .scroll-top
   - Floating WhatsApp button (it's also .btn)
   - Keeps compatibility with .oyku-btn-shine */

:where(.btn, .oyku-btn-shine, .service-btn, .emergency-btn, .scroll-top) {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Diagonal shine */

:where(.btn, .oyku-btn-shine, .service-btn, .emergency-btn, .scroll-top)::after {
  content: "";
  position: absolute;
  top: -45%;
  left: -70%;
  width: 52%;
  height: 210%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

/* Tiny sparkle (subtle glow pulse near the top-left) */

:where(.btn, .oyku-btn-shine, .service-btn, .emergency-btn, .scroll-top)::before {
  content: "";
  position: absolute;
  left: 18%;
  top: 22%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,0.65), rgba(255,255,255,0) 70%);
  filter: blur(0.2px);
  opacity: 0;
  transform: scale(0.8);
  z-index: 1;
  pointer-events: none;
}

:where(.btn, .oyku-btn-shine, .service-btn, .emergency-btn, .scroll-top):hover::after, :where(.btn, .oyku-btn-shine, .service-btn, .emergency-btn, .scroll-top):focus-visible::after {
  opacity: 1;
  animation: oyku-shine 920ms ease forwards;
}

:where(.btn, .oyku-btn-shine, .service-btn, .emergency-btn, .scroll-top):hover::before, :where(.btn, .oyku-btn-shine, .service-btn, .emergency-btn, .scroll-top):focus-visible::before {
  animation: oyku-sparkle 740ms ease-out forwards;
}

@keyframes oyku-shine {
  from {
    left: -70%;
  }
  to {
    left: 135%;
  }
}

@keyframes oyku-sparkle {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  20% {
    opacity: 0.75;
    transform: scale(1.15);
  }
  55% {
    opacity: 0.25;
    transform: scale(1.4);
  }
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}

/* Ensure the effect stays above the button background but doesn't block content clicks */

:where(.btn, .oyku-btn-shine, .service-btn, .emergency-btn, .scroll-top) > * {
  position: relative;
  z-index: 2;
}

/* Respect reduced motion + keep hero safe on touch devices */

@media (prefers-reduced-motion: reduce) {
  .oyku-hero-cinematic .hero-media::before {
    animation: none !important;
    opacity: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oyku-split-char {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(.btn, .oyku-btn-shine, .service-btn, .emergency-btn, .scroll-top):hover::after, :where(.btn, .oyku-btn-shine, .service-btn, .emergency-btn, .scroll-top):focus-visible::after, :where(.btn, .oyku-btn-shine, .service-btn, .emergency-btn, .scroll-top):hover::before, :where(.btn, .oyku-btn-shine, .service-btn, .emergency-btn, .scroll-top):focus-visible::before {
    animation: none !important;
    opacity: 0 !important;
  }
}

/* Header logo size override (template limits it to max-height: 36px) */

.header .logo img {
  max-height: none !important;
  width: auto !important;
  display: block;
}

/* also make sure the header itself isn't constraining the logo */

.header {
  padding: 0 !important;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 320ms ease, opacity 320ms ease;
}

.header .header-container {
  padding-top: 10px;
  padding-bottom: 10px;
}

.header .logo {
  align-items: center;
}

/* Prevent wrapping on small screens by scaling the font size responsively */

.header .logo .sitename {
  white-space: nowrap;
  font-size: clamp(18px, 4.2vw, 33px);
  line-height: 1.1;
}

/* Put subtitle under the heading + control indentation */

.header .logo .logo-textwrap {
  display: flex;
  flex-direction: column;
}

.header .logo .logo-subtitle {
  margin-left: 10px;
  margin-top: 2px;
  line-height: 1.1;
}

/* Subtitle: always smaller than heading, responsive with clamp, never wraps */

.header .logo .logo-subtitle .logo-subtitle-text {
  display: inline-block;
  white-space: nowrap;
  font-size: clamp(12px, 3.2vw, 18px) !important;
  line-height: 1.1;
}

/* In case the <strong> inside gets its own font-size from the theme */

.header .logo .logo-subtitle .logo-subtitle-text strong {
  font-size: inherit !important;
}

.header.is-visible {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1199px) {
  body.mobile-nav-active #header,
  body.mobile-nav-active #header .header-container {
    overflow: visible !important;
  }
}

/* Footer heart pulse (Designed with ...) */

.footer .credits .heart-pulse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform-origin: center;
  animation: heart-pulse 0.85s ease-in-out infinite;
}

.footer .credits .heart-pulse svg {
  display: block;
  transform-origin: center;
}

/* Scroll-to-top: fix positioning + prevent half-outside layout issues */

.scroll-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-color, #0d6efd);
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s;
}

/* If WhatsApp button exists on the left, no conflict; keep spacing on very small screens */

@media (max-width: 575.98px) {
  .scroll-top {
    right: 12px;
    bottom: 12px;
  }
}

.scroll-top:hover, .scroll-top:focus {
  color: #ffffff !important;
}

.scroll-top svg {
  width: 28px;
  height: 28px;
  fill: currentColor !important;
  display: block;
}

/* Floating buttons (WhatsApp + Scroll-top): hide at top, show after scroll */

.oyku-float-hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
}

.oyku-float-hide.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s;
}

/* Add spacing only for the E-mail badge icon */

.info-badges .badge-item .bi-envelope-fill {
  flex-shrink: 0;
}

/* Improve spacing between label (span) and value (strong) inside badges */

.info-badges .badge-content span {
  display: block;
  margin-bottom: 4px;
  line-height: 1.2;
}

.info-badges .badge-content strong {
  display: block;
  line-height: 1.2;
}

@keyframes heart-pulse {
  0% {
    transform: scale(1);
  }
  12% {
    transform: scale(1.35);
  }
  24% {
    transform: scale(1);
  }
  36% {
    transform: scale(1.18);
  }
  48% {
    transform: scale(1);
  }
  100% {
    transform: scale(1);
  }
}

/* Swiper cards (replacement for İşitme cihazları slider) */

.oyku-swiper-cards {
  position: relative;
  padding: 10px 54px 18px 54px;
}

.oyku-swiper-cards .swiper-wrapper {
  align-items: stretch;
}

.oyku-swiper-cards .swiper-slide {
  height: auto;
}

.oyku-sw-card {
  height: 100%;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.oyku-sw-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.36);
}

.oyku-sw-imgwrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #f3f6fb;
}

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

.oyku-sw-body {
  padding: 18px 18px 16px 18px;
}

.oyku-sw-body h3 {
  font-size: 1rem;
  line-height: 1.25;
  margin: 0 0 10px 0;
  font-weight: 600;
}

.oyku-sw-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  text-decoration: none;
  color: #1a4372;
  font-weight: 500;
}

.oyku-sw-link:hover {
  text-decoration: underline;
}

.oyku-swiper-cards .swiper-button-prev, .oyku-swiper-cards .swiper-button-next {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
  color: rgba(0,0,0,0.65);
}

.oyku-swiper-cards .swiper-button-prev::after, .oyku-swiper-cards .swiper-button-next::after {
  font-size: 16px;
  font-weight: 700;
}

.oyku-swiper-cards .swiper-pagination-bullet {
  background: rgba(0,0,0,0.35);
  opacity: 1;
}

.oyku-swiper-cards .swiper-pagination-bullet-active {
  background: #1a4372 !important;
}

/* Responsive paddings (similar to your old track) */

@media (max-width: 991.98px) {
  .oyku-swiper-cards {
    padding-left: 52px;
    padding-right: 52px;
  }
}

@media (max-width: 575.98px) {
  .oyku-swiper-cards {
    padding-left: 46px;
    padding-right: 46px;
  }
}

/* Multi-card (Swiper-like) carousel */

.oyku-multicarousel {
  position: relative;
}

.oyku-mc-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 10px 56px 14px 56px;
}

.oyku-mc-track::-webkit-scrollbar {
  height: 10px;
}

.oyku-mc-track::-webkit-scrollbar-track {
  background: transparent;
}

.oyku-mc-track::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 999px;
}

.oyku-mc-card {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: calc((100% - (18px * 3)) / 4);
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.oyku-mc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
}

.oyku-mc-imgwrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #f3f6fb;
}

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

.oyku-mc-body {
  padding: 18px 18px 16px 18px;
}

.oyku-mc-body h3 {
  font-size: 1rem;
  line-height: 1.25;
  margin: 0 0 10px 0;
  font-weight: 600;
}

.oyku-mc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  text-decoration: none;
  color: #b1002c;
  font-weight: 500;
}

.oyku-mc-link:hover {
  text-decoration: underline;
}

.oyku-mc-btn {
  position: absolute;
  top: calc(50% - 18px);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
  cursor: pointer;
  z-index: 5;
}

.oyku-mc-btn:hover {
  background: #ffffff;
}

.oyku-mc-btn span {
  font-size: 22px;
  line-height: 1;
  color: rgba(0,0,0,0.65);
}

.oyku-mc-btn-prev {
  left: 8px;
}

.oyku-mc-btn-next {
  right: 8px;
}

/* Responsive: reduce visible cards */

@media (max-width: 1199.98px) {
  .oyku-mc-card {
    width: calc((100% - (18px * 2)) / 3);
  }
}

@media (max-width: 991.98px) {
  .oyku-mc-track {
    padding-left: 52px;
    padding-right: 52px;
  }
}

@media (max-width: 991.98px) {
  .oyku-mc-card {
    width: calc((100% - 18px) / 2);
  }
}

@media (max-width: 575.98px) {
  .oyku-mc-track {
    padding-left: 46px;
    padding-right: 46px;
  }
}

@media (max-width: 575.98px) {
  .oyku-mc-card {
    width: 100%;
  }
}

/* About (2-col) async/parallax movement */

.oyku-parallax-cols {
  overflow: visible;
}

.oyku-parallax-col {
  will-change: transform;
  transform: translate3d(0, 0, 0);
  transition: none !important;
}

#home-about .about-image {
  position: relative;
  overflow: visible;
}

#home-about .experience-badge {
  z-index: 3;
}

/* Manual control: make the left photo show more from the top (stronger effect) */

#home-about .oyku-parallax-col--left .about-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: 50% 10%;
  display: block;
}

/* Crop only the photo (not the badge) */

#home-about .oyku-parallax-col--left .about-image .img-fluid.rounded-3 {
  overflow: hidden;
}

/* Particles background section */

.oyku-particles-section {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  background: radial-gradient(1200px 600px at 20% 10%, rgba(15,61,129,0.3), transparent 55%), radial-gradient(900px 500px at 80% 30%, rgba(152,138,124,0.4), transparent 60%), #0b0f1a;
  color: #ffffff;
}

.oyku-particles-section .oyku-particles-canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: calc(100% + var(--oyku-particles-parallax-pad, 260px));
  /*key: the canvas is larger than the section, and we slide it behind like a "window";*/
  transform: translate3d( 0, calc(var(--oyku-particles-parallax-offset, 0px) - (var(--oyku-particles-parallax-pad, 260px) / 2)), 0 );
  display: block;
  z-index: 0;
  will-change: transform;
  pointer-events: none;
}

.oyku-particles-section > .container {
  position: relative;
  z-index: 1;
}

.oyku-particles-section h2, .oyku-particles-section p {
  color: #ffffff;
}

.oyku-particles-section p {
  opacity: 0.9;
}

/* Ensure Bootstrap modals are always above floating buttons (e.g., WhatsApp) */

/* =========================================
   Preloader overlay (initial load + navigation)
   ========================================= */

body.oyku-preloader-lock {
  overflow: hidden;
}

#preloader {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  min-height: 100vh;
  background: #000;
  gap: 24px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 320ms ease, visibility 0s linear 320ms;
  isolation: isolate;
  overflow: hidden;
  touch-action: none;
}

#preloader::before {
  content: "";
  position: absolute;
  width: clamp(140px, 24vw, 260px);
  height: clamp(140px, 24vw, 260px);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  border-top-color: rgba(229,157,2,0.9);
  border-right-color: rgba(229,157,2,0.35);
  left: 50%;
  top: 50%;
  transform-origin: center;
  opacity: 0.85;
  z-index: 0;
  animation: oyku-preloader-spin 1.4s linear infinite;
}

#preloader .preloader-logo {
  width: min(240px, 60vw);
  max-width: 280px;
  height: auto;
  display: block;
  z-index: 1;
  filter: drop-shadow(0 14px 35px rgba(0,0,0,0.55));
  animation: oyku-preloader-glow 1.8s ease-in-out infinite;
}

#preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 320ms ease, visibility 0s linear 320ms;
}

#preloader.is-hidden::before, #preloader.is-hidden .preloader-logo {
  animation-play-state: paused;
}

@keyframes oyku-preloader-glow {
  0% {
    opacity: 0.6;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0.6;
    transform: scale(0.96);
  }
}

@keyframes oyku-preloader-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  #preloader::before, #preloader .preloader-logo {
    animation: none !important;
  }
}

.modal {
  z-index: 2000;
}

.modal-backdrop {
  z-index: 1990;
}

/* Modals: always vertically + horizontally centered on ALL screen sizes */

.modal.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.modal.show .modal-dialog {
  margin: 0 auto;
  width: calc(100% - 24px);
  max-width: var(--bs-modal-width);
}

@media (max-width: 575.98px) {
  .modal.show .modal-dialog {
    width: calc(100% - 24px);
    max-width: 520px;
  }
}

/* Featured Services: make the service boxes more compact + use horizontal space better */

#featured-services .service-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px;
}

/* =========================================
   Cinematic hover for selected service boxes
   (override template .featured-services styles)
   ========================================= */

.featured-services .service-card, #featured-services .service-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 16px;
  border: 1px solid rgba(26, 67, 114, 0.16);
  background: #ffffff !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
  transition: transform 260ms cubic-bezier(.2,.8,.2,1), box-shadow 260ms cubic-bezier(.2,.8,.2,1), border-color 260ms ease, background 260ms ease;
}

/* Kill template top strip so it doesn't interfere with our hover background */

.featured-services .service-card::before, #featured-services .service-card::before {
  content: none !important;
}

/* Diagonal “swipe” sheen for cinematic feel */

.featured-services .service-card::after, #featured-services .service-card::after {
  content: "";
  position: absolute;
  top: -35%;
  left: -80%;
  width: 70%;
  height: 220%;
  z-index: 1;
  opacity: 0;
  transform: rotate(18deg);
  transition: opacity 240ms ease, left 650ms cubic-bezier(.2,.9,.2,1);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.16), rgba(152,138,124,0.12), transparent);
  mix-blend-mode: screen;
  pointer-events: none;
}

/* Subtle animated grain (only on hover) */

.featured-services .service-card::marker, #featured-services .service-card::marker {
  content: none;
}

.featured-services .service-card .oyku-grain, #featured-services .service-card .oyku-grain {
  display: none;
}

/* Use ::before for grain (since template strip is disabled) */

.featured-services .service-card::before, #featured-services .service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  mix-blend-mode: overlay;
  filter: contrast(115%) brightness(105%);
  will-change: transform, opacity;
}

.featured-services .service-card:hover::before, .featured-services .service-card:focus-within::before, #featured-services .service-card:hover::before, #featured-services .service-card:focus-within::before {
  opacity: 0.08;
  animation: oyku-card-grain 1.6s steps(6) infinite;
}

@keyframes oyku-card-grain {
  0% {
    transform: translate3d(0,0,0);
  }
  25% {
    transform: translate3d(-0.8%, 0.4%, 0);
  }
  50% {
    transform: translate3d(0.6%, -0.7%, 0);
  }
  75% {
    transform: translate3d(0.7%, 0.6%, 0);
  }
  100% {
    transform: translate3d(0,0,0);
  }
}

/* Keep actual content above overlays */

.featured-services .service-card > *, #featured-services .service-card > * {
  position: relative;
  z-index: 2;
}

/* Ensure all text inside turns light on hover (template keeps some dark) */

.featured-services .service-card:hover, .featured-services .service-card:hover :where(h1, h2, h3, h4, h5, h6, p, li, span, a, i), #featured-services .service-card:hover, #featured-services .service-card:hover :where(h1, h2, h3, h4, h5, h6, p, li, span, a, i) {
  color: rgba(255,255,255,0.92) !important;
}

/* Default (non-hover) icon visibility can stay subtle */

#featured-services .service-card .service-icon {
  background: rgba(26, 67, 114, 0.08);
  color: rgba(26, 67, 114, 0.92);
  transition: background-color 260ms ease, color 260ms ease, box-shadow 260ms ease, transform 260ms ease;
}

#featured-services .service-card .service-content h3, #featured-services .service-card .service-content p, #featured-services .service-card .service-features, #featured-services .service-card .service-features li {
  transition: color 260ms ease, opacity 260ms ease;
}

/* Hover state: premium cinematic mode (REAL background change) */

.featured-services .service-card:hover, .featured-services .service-card:focus-within, #featured-services .service-card:hover, #featured-services .service-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(152, 138, 124, 0.35);
  box-shadow: 0 22px 55px rgba(11, 15, 26, 0.55);
  background: radial-gradient(1200px 600px at 20% 10%, rgba(15,61,129,0.30), transparent 55%), radial-gradient(900px 500px at 80% 30%, rgba(152,138,124,0.26), transparent 60%), linear-gradient(145deg, #12375f, rgba(0,0,0,0.55)), #0b0f1a !important;
}

.featured-services .service-card:hover::before, .featured-services .service-card:focus-within::before, #featured-services .service-card:hover::before, #featured-services .service-card:focus-within::before {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Keep the cinematic swipe sheen, but apply to both selectors */

.featured-services .service-card:hover::after, .featured-services .service-card:focus-within::after, #featured-services .service-card:hover::after, #featured-services .service-card:focus-within::after {
  opacity: 1;
  left: 135%;
}

/* Text + icons turn whitish and “more visible” */

#featured-services .service-card:hover .service-content h3, #featured-services .service-card:focus-within .service-content h3 {
  color: rgba(255,255,255,0.96);
}

#featured-services .service-card:hover .service-content p, #featured-services .service-card:focus-within .service-content p {
  color: rgba(255,255,255,0.78);
}

#featured-services .service-card:hover .service-features li, #featured-services .service-card:focus-within .service-features li {
  color: rgba(255,255,255,0.86);
}

#featured-services .service-card:hover .service-features li i, #featured-services .service-card:focus-within .service-features li i {
  color: rgba(255,255,255,0.90);
}

#featured-services .service-card:hover .service-icon, #featured-services .service-card:focus-within .service-icon {
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.95);
  box-shadow: 0 14px 34px rgba(0,0,0,0.35);
  transform: translateY(-1px);
}

/* Reduced motion: keep the look but remove swipe movement */

@media (prefers-reduced-motion: reduce) {
  #featured-services .service-card, #featured-services .service-card::before, #featured-services .service-card::after, #featured-services .service-card .service-icon, #featured-services .service-card .service-content h3, #featured-services .service-card .service-content p, #featured-services .service-card .service-features li {
    transition: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #featured-services .service-card::after {
    display: none !important;
  }
}

#featured-services .service-card .service-icon {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
}

#featured-services .service-card .service-icon i {
  font-size: 38px;
  line-height: 1;
  display: block;
}

#featured-services .service-card .service-content {
  flex: 1 1 auto;
  min-width: 0;
}

#featured-services .service-card .service-content h3 {
  margin-bottom: 8px;
  line-height: 1.25;
}

#featured-services .service-card .service-content p {
  margin-bottom: 10px;
  line-height: 1.45;
}

#featured-services .service-card .service-features {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

#featured-services .service-card .service-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.25;
}

#featured-services .service-card .service-features li i {
  margin-top: 2px;
  flex: 0 0 auto;
}

/* Small screens: keep it compact but allow comfortable reading */

@media (max-width: 575.98px) {
  #featured-services .service-card {
    gap: 12px;
    padding: 16px 16px;
  }
}

@media (max-width: 575.98px) {
  #featured-services .service-card .service-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }
}

@media (max-width: 575.98px) {
  #featured-services .service-card .service-icon i {
    font-size: 32px;
  }
}

@media (max-width: 575.98px) {
  #featured-services .service-card .service-features {
    gap: 6px;
  }
}

/* Mobile-first UX fix for the selected CTA (emergency-alert) */

#call-to-action-1 .emergency-alert .row.align-items-center {
  --bs-gutter-y: 12px;
}

#call-to-action-1 .emergency-alert .emergency-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 999px;
  text-align: center;
  white-space: normal;
  line-height: 1.2;
}

#call-to-action-1 .emergency-alert .emergency-btn svg {
  flex-shrink: 0;
}

/* Stack layout on small screens (professional CTA card behavior) */

@media (max-width: 991.98px) {
  #call-to-action-1 .emergency-alert .row.align-items-center > [class*="col-"] {
    width: 100%;
  }
}

@media (max-width: 991.98px) {
  #call-to-action-1 .emergency-alert .col-lg-4.text-end {
    text-align: left !important;
  }
}

@media (max-width: 991.98px) {
  #call-to-action-1 .emergency-alert .emergency-content {
    gap: 12px;
  }
}

@media (max-width: 991.98px) {
  #call-to-action-1 .emergency-alert .emergency-icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
  }
}

/* Contact: ensure BOTH panels (İletişim Bilgileri + Map) always have equal side margins,
   both when side-by-side (desktop) and when stacked (mobile). */

#contact .contact-wrapper {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Side-by-side: keep the grid perfectly centered and use equal gutters */

@media (min-width: 992px) {
  #contact .contact-wrapper {
    max-width: 1280px;
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (min-width: 992px) {
  #contact .contact-wrapper > .contact-info-panel, #contact .contact-wrapper > .contact-form-panel {
    min-width: 0;
  }
}

/* Stacked: still centered, with equal margins and safe gutters */

@media (max-width: 991.98px) {
  #contact .contact-wrapper {
    max-width: 720px;
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 991.98px) {
  #contact .contact-wrapper > .contact-info-panel, #contact .contact-wrapper > .contact-form-panel {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
}

/* Map: never overflow horizontally (iframe can cause layout shift) */

#contact .contact-form-panel .map-container, #contact .contact-form-panel iframe {
  display: block;
  width: 100%;
  max-width: 100%;
}

.contact-card-value {
  white-space: nowrap;
  overflow-wrap: normal;
}

.contact-card, .info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-align: center;
  padding: 1rem 1rem 1.25rem;
}

.contact-card-icon, .icon-container {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.03);
  margin: 0;
  padding: 0.35rem;
}

.contact-card-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
}

.contact-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
}

.contact-card .contact-card-text, .contact-card .contact-card-label, .contact-card .contact-card-value, .info-card .card-content {
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 767.98px) {
  .contact-card, .info-card {
    text-align: left;
  }
}

@media (max-width: 767.98px) {
  .contact-card-icon, .icon-container {
    width: auto;
    height: auto;
    border-radius: 12px;
  }
}

/* Footer: match the SAME side gutters as the Contact section (equal margins on mobile) */

/* =========================================
   Footer - Dark theme (site consistent)
   ========================================= */

#footer.oyku-footer-dark {
  background: var(--heading-color, #1f2a37);
  color: rgba(255,255,255,0.85);
}

#footer.oyku-footer-dark h1, #footer.oyku-footer-dark h2, #footer.oyku-footer-dark h3, #footer.oyku-footer-dark h4, #footer.oyku-footer-dark h5, #footer.oyku-footer-dark h6, #footer.oyku-footer-dark .sitename, #footer.oyku-footer-dark strong {
  color: rgba(255,255,255,0.95);
}

#footer.oyku-footer-dark p, #footer.oyku-footer-dark span, #footer.oyku-footer-dark li {
  color: rgba(255,255,255,0.78);
}

#footer.oyku-footer-dark a {
  color: rgba(255,255,255,0.9);
  text-decoration-color: rgba(255,255,255,0.35);
}

#footer.oyku-footer-dark a:hover, #footer.oyku-footer-dark a:focus {
  color: #ffffff;
  text-decoration-color: rgba(255,255,255,0.8);
}

#footer.oyku-footer-dark .social-links a {
  color: rgba(255,255,255,0.92);
}

#footer.oyku-footer-dark .footer-top {
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

#footer.oyku-footer-dark .copyright {
  border-top: 1px solid rgba(255,255,255,0.10);
}

#footer.oyku-footer-dark .credits {
  color: rgba(255,255,255,0.7);
}

/* Apply gutters to the real Bootstrap containers inside the footer */

@media (max-width: 991.98px) {
  #footer .container.footer-top, #footer .container.copyright {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
  }
}

/* Safety: avoid any child columns causing horizontal overflow/edge touching */

@media (max-width: 991.98px) {
  #footer .container.footer-top > .row {
    margin-left: 0;
    margin-right: 0;
  }
}

/* video */

/* ===== HERO VIDEO CINEMATIC (FORCE) ===== */

.hero-wrapper .hero-media {
  position: relative !important;
  overflow: hidden !important;
}

/* video grading */

.hero-wrapper .hero-media .hero-video {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  filter: brightness(0.78) contrast(1.12) saturate(0.85) !important;
  transform: scale(1.03) !important;
}

/* dark overlay + vignette */

.hero-wrapper .hero-media::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  pointer-events: none !important;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 70%, rgba(0,0,0,0.75) 100%), linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0.65) 100%) !important;
}

/* grain layer */

.hero-wrapper .hero-media::after {
  content: "" !important;
  position: absolute !important;
  inset: -20% !important;
  z-index: 3 !important;
  pointer-events: none !important;
  background: repeating-linear-gradient(0deg, rgb(0,0,0) 0px, rgba(255,255,255,0.035) 1px, rgba(0,0,0,0.035) 2px, #3300ff 3px), repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 1px, rgba(0,0,0,0.025) 2px, rgba(0,0,0,0.025) 3px) !important;
  mix-blend-mode: overlay !important;
  opacity: 0.42 !important;
  animation: heroGrain 7s steps(10) infinite !important;
}

@keyframes heroGrain {
  0% {
    transform: translate(0,0) rotate(0deg);
  }
  20% {
    transform: translate(-4%, 2%) rotate(-1deg);
  }
  40% {
    transform: translate(2%, 3%) rotate(1deg);
  }
  60% {
    transform: translate(4%, 1%) rotate(0deg);
  }
  80% {
    transform: translate(-1%, 2%) rotate(-1deg);
  }
  100% {
    transform: translate(0,0) rotate(0deg);
  }
}

/* keep text above overlays */

.hero-wrapper .hero-content {
  position: relative !important;
  z-index: 4 !important;
}

/* HERO HEIGHT */

#hero.hero.section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

/* Ensure wrapper fills */

#hero .hero-wrapper, #hero .hero-slider, #hero .hero-media {
  position: absolute;
  inset: 0;
}

/* Video covers entire hero */

#hero .hero-video {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* Keep content above video */

#hero .hero-content {
  position: relative !important;
  z-index: 10 !important;
}

/* hero content position */

/* Make hero a positioning context */

#hero {
  position: relative;
}

/* Put hero content in a flexible vertical layout */

#hero .hero-content {
  position: relative;
  z-index: 10;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  padding-top: clamp(80px, 11vh, 870px);
  padding-bottom: clamp(24px, 6vh, 72px);
}

/* optional: keep container full width inside */

#hero .hero-content > .container {
  width: 70%;
  max-width: 960px;
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 40px);
  padding-right: clamp(16px, 4vw, 40px);
}

@media (max-width: 767.98px) {
  #hero .hero-content > .container {
    width: 100%;
  }
}

#hero .hero-cta-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  transform: none;
  width: 100%;
  display: flex;
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
  margin: 0;
}

#hero .hero-cta-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 clamp(12px, 4vw, 24px);
  box-sizing: border-box;
  min-width: 0;
}

/* Desktop+: true edge-to-edge */

@media (min-width: 992px) {
  #hero .hero-cta-wrapper {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 0;
    padding-right: 0;
  }
}

#hero .hero-cta-card {
  gap: 0.65rem;
  padding: clamp(1.4rem, 3.2vw, 1.9rem) clamp(1.25rem, 4vw, 3rem);
  margin: 0;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
  min-width: 0;
  padding-bottom: 2vh;
}

/* Desktop+: full-width footer cover (touch edges) + short height */

@media (min-width: 992px) {
  #hero .hero-cta-card {
    border-radius: 0;
    padding-top: 0.85rem;
    padding-left: clamp(16px, 3vw, 72px);
    padding-right: clamp(16px, 3vw, 72px);
  }
}

#hero .hero-cta-card .cta-group {
  width: 100%;
  justify-content: flex-start;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

#hero .hero-cta-card .cta-group .btn {
  margin-bottom: 0 !important;
}

/* Large screens: make it wider and a bit shorter (footer-cover feeling) */

@media (min-width: 992px) {
  #hero .hero-cta-card {
    padding-top: 0.95rem;
  }
}

/* 360px -> 768px: place CTA at the bottom of the hero and make it edge-to-edge */

@media (max-width: 767.98px) {
  #hero .hero-content {
    padding-bottom: 0;
  }
}

@media (max-width: 767.98px) {
  #hero .hero-cta-panel {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    transform: none;
    justify-content: stretch;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 767.98px) {
  #hero .hero-cta-wrapper {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0;
  }
}

@media (max-width: 767.98px) {
  #hero .hero-cta-card {
    width: 100%;
    border-radius: 0;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: max(2vh, env(safe-area-inset-bottom));
  }
}

/* ensure no extra margins add space below the button */

@media (max-width: 767.98px) {
  #hero .hero-cta-card .cta-group {
    margin-bottom: 0;
    padding-bottom: 0;
  }
}

@media (max-width: 767.98px) {
  #hero .hero-cta-card .cta-group .btn {
    margin-bottom: 0;
  }
}

/* ==============================
   HERO -> CONTACT SECTION DOCKING
   Make the contact cards "touch" the hero bottom (all sizes)
   without intersecting the next section.
   ============================== */

:root {
  --oyku-hero-contact-overlap: clamp(18px, 5.5vh, 56px);
}

/* Pull the contact section up so it visually docks to the hero bottom */

.hero-contact-section {
  position: relative;
  z-index: 20;
  margin-top: calc(var(--oyku-hero-contact-overlap) * -1);
}

/* IMPORTANT:
   Reserve REAL document-flow space so the next section (#home-about) never overlaps.
   margin-bottom affects layout flow reliably even when hero internals are absolute-positioned. */

#hero {
  margin-bottom: var(--oyku-hero-contact-overlap);
}

/* Remove top padding so the dock looks flush (no gap) */

.hero-contact-section.section {
  padding-top: 0;
}
