:root {
  --color-primary: #0033b3;
  --color-primary-dark: #132b93;
  --color-primary-light: #2450be;
  --color-secondary: #fd9843;
  --color-text-dark: #040308;
  --color-text-light: #f5f5f5;
  --color-text-muted: #3b3d3f;
  --color-background: #ffffff;
  --color-surface: #fdfeff;
  --color-border: #b6c5e9;
  --color-border-light: #dfe6f5;
  --font-main: 'Rubik', sans-serif;
  /* Additional colors from mebi-landing-2 */
  --color-white: #ffffff;
  --color-text-primary: #040308;
  --color-text-secondary: #3b3d3f;
  --color-text-subtle: #868b91;
  --color-accent: #0284c7;
  --color-border-medium: #b6c5e9;
}

html {
  overflow-x: hidden; /* prevent horizontal scroll at root level */
  max-width: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-background);
  color: var(--color-text-dark);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100%; /* prevent any horizontal overflow */
  position: relative;
  background-image: url('images/bg-lines.svg');
  background-repeat: repeat-y;
  background-position: center top;
}

/* Scroll Animation Styles */
.scroll-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation for child elements */
.scroll-animate-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate-stagger.animate-in > *:nth-child(1) {
  transition-delay: 0.1s;
}

.scroll-animate-stagger.animate-in > *:nth-child(2) {
  transition-delay: 0.2s;
}

.scroll-animate-stagger.animate-in > *:nth-child(3) {
  transition-delay: 0.3s;
}

.scroll-animate-stagger.animate-in > *:nth-child(4) {
  transition-delay: 0.4s;
}

.scroll-animate-stagger.animate-in > *:nth-child(5) {
  transition-delay: 0.5s;
}

.scroll-animate-stagger.animate-in > *:nth-child(6) {
  transition-delay: 0.6s;
}

.scroll-animate-stagger.animate-in > * {
  opacity: 1;
  transform: translateY(0);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .scroll-animate,
  .scroll-animate-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

/* Remove default focus outline and tap highlights */
button,
a,
input,
select,
textarea,
[role="button"],
[tabindex] {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  outline: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Keep text selectable in inputs and textareas */
input,
textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Optional: Add custom focus styles for accessibility (keyboard navigation) */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
}

section {
  width: 100%;
  padding: 80px 0;
  overflow: hidden;
}

@media (max-width: 1024px) {
  section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  section {
    padding: 40px 0;
  }
}

@media (max-width: 480px) {
  section {
    padding: 32px 0;
  }
}

/* CSS for section section:header */
.site-header-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-top: 5px;
  transition: all 0.3s ease;
}

/* Mobil cihazlarda da sticky navigation ama absolute olarak */
@media (max-width: 768px) {
  .site-header-wrapper {
    position: absolute; /* hero'nun üzerine gelsin, aşağı itmesin */
    top: 0;
    background-color: transparent; /* başlangıçta transparan */
    backdrop-filter: none;
    box-shadow: none;
    z-index: 100;
  }
  
  /* Scroll edildiğinde sticky ve opak olsun */
  .site-header-wrapper.scrolled {
    position: fixed;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0px 2px 10px rgba(0, 51, 179, 0.08);
  }
}

.site-header-wrapper.scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding-top: 10px;
  padding-bottom: 10px;
  box-shadow: 0px 2px 10px rgba(0, 51, 179, 0.1);
}

.site-header-wrapper .container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 28px;
  width: 100%;
  max-width: 1240px;
  margin: 0px auto 10px 0px;
  padding: 0 60px;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .top-bar {
    padding: 0 40px;
  }
}

@media (max-width: 768px) {
  .top-bar {
    padding: 0 20px;
    height: 24px;
    margin: 0px auto 0px 0px;
  }
  
  /* Mobilde hero üzerinde olduğu için text renklerini beyaz yapalım */
  .site-header-wrapper:not(.scrolled) .top-bar-nav a,
  .site-header-wrapper:not(.scrolled) .top-bar-nav span {
    color: var(--color-text-light);
  }
  
  .site-header-wrapper:not(.scrolled) .top-bar-nav span {
    color: rgba(255, 255, 255, 0.6);
  }
}

@media (max-width: 480px) {
  .top-bar {
    padding: 0 16px;
    height: 20px;
    max-width: 100%;
    overflow: hidden;
  }
}

.top-bar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-nav a,
.top-bar-nav span {
  font-size: 10px;
  line-height: 20px;
  text-decoration: none;
  color: var(--color-text-light);
}

.top-bar-nav span {
  color: var(--color-border);
}

.socials {
  display: flex;
  gap: 8px;
}

.socials img {
  height: 11px;
}

.main-nav {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  box-shadow: 0px 4px 10px 0px rgba(0, 51, 179, 0.16);
  display: flex;
  padding: 0 10px 0 15px;
  margin: 30px 60px 0 60px;
  height: 62px;
  max-width: 1240px;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  transition: margin 0.3s ease;
}

.site-header-wrapper.scrolled .main-nav {
  margin-top: 0;
  margin-bottom: 0;
  box-shadow: none;
  border: none;
}

@media (max-width: 1200px) {
  .main-nav {
    padding-right: 10px;
    margin: 30px 40px 0 40px;
  }
  
  .site-header-wrapper.scrolled .main-nav {
    margin: 0 40px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    margin: 20px 20px 0 20px;
    height: 56px;
    padding: 0 8px 0 12px;
  }
  
  /* Hero üzerinde olduğu için yarı-transparan */
  .site-header-wrapper:not(.scrolled) .main-nav {
    background-color: rgba(253, 254, 255, 0.85);
    backdrop-filter: blur(8px);
  }
  
  .site-header-wrapper.scrolled .main-nav {
    margin: 0 20px;
    background-color: var(--color-surface);
  }
}

@media (max-width: 480px) {
  .main-nav {
    margin: 30px 16px 0 16px;
    height: 52px;
    padding: 0 8px 0 10px;
    max-width: calc(100vw - 32px); /* ekran genişliğini aşmasın */
    overflow: hidden;
  }
  
  .site-header-wrapper.scrolled .main-nav {
    margin: 0 16px;
    max-width: calc(100vw - 32px);
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 1; /* mobilde küçülmeye izin ver */
  min-width: 0; /* içeriğin taşmaması için */
}

@media (max-width: 480px) {
  .logo {
    gap: 8px;
    max-width: 60%; /* logo'nun çok geniş olmasını engelle */
  }
}

.logo img {
  height: 42px;
}

@media (max-width: 768px) {
  .logo img {
    height: 36px;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 32px;
  }
}

.logo span {
  color: var(--color-primary);
  font-size: 10px;
  line-height: 16px;
  font-weight: 400;
  flex-shrink: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .logo span {
    font-size: 9px;
    line-height: 14px;
    max-width: 150px; /* mobilde metni sınırla */
  }
}

@media (max-width: 480px) {
  .logo span {
    font-size: 8px;
    line-height: 12px;
    max-width: 120px; /* daha küçük ekranlarda daha da sınırla */
  }
}

.main-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav-links a {
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-text-dark);
  font-size: 14px;
  line-height: 24px;
  font-weight: 400;
  transition: background-color 0.3s;
}

@media (max-width: 992px) {
  .main-nav-links a[href="#faq"], .main-nav-links a[href="#kanka"] {
    display: none;
  }
}

@media (max-width: 876px) {
  .main-nav-links a[href="#modules"] {
    display: none;
  }
}

@media (max-width: 640px) {
  .main-nav-links a {
    display: none;
  }
}

@media (max-width: 1024px) {
  .main-nav-links a {
    padding: 10px 16px;
    font-size: 13px;
  }
}

.main-nav-links a:hover {
  color: var(--color-primary);
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  border-radius: 42px;
  text-decoration: none;
  font-size: 14px;
  line-height: 24px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .btn {
    padding: 8px 16px;
    font-size: 13px;
    line-height: 20px;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 7px 14px;
    font-size: 12px;
    line-height: 18px;
  }
}



.btn-primary {
  background: linear-gradient(180deg, #0033b3 0%, #132b93 100%);
  color: var(--color-text-light);
  box-shadow: 0px 0px 0px 1px #132b93, inset 0px 4px 12px 0px #2450be, inset 0px 1px 0.5px 0px rgba(109, 138, 212, 0.64), inset 0px -1px 1px 0px #132b93;
  text-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.12);
}

.nav-login-button:hover {
  transform: scale(.97);
  background: linear-gradient(180deg, #132b93 0%, #132b93 100%);
}

@media (max-width: 640px) {
  .nav-login-button {
    padding: 8px 12px !important;
    font-size: 11px !important;
    line-height: 16px !important;
    white-space: nowrap;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .nav-login-button {
    padding: 6px 10px !important;
    font-size: 10px !important;
    line-height: 14px !important;
  }
}



.hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: unset;
  padding-bottom: unset;
  margin-top: 0; /* navigasyonun hemen arkasından başlasın */
}

@media (max-width: 768px) {
  .hero-section {
    margin-top: 0; /* mobilde üstten boşluk olmasın */
  }
}

.hero-bg {
  display: block;
  width: 100vw;
  max-width: 100vw;
  height: auto;
}
.hero-bg-mobile {
  display: none;
}

@media (max-width: 640px) {
  .hero-bg {
    display: none;
  }
  .hero-bg-mobile {
    display: block;
    width: 100vw;
    max-width: 100vw;
    height: auto;
  }

  .hero-section {
    height: auto; /* height matches mobile background image height */
    position: relative;
  }

  .hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end; /* align buttons to bottom */
    justify-content: center;
  }

  .hero-overlay .container {
    padding-bottom: 50px !important; /* 50px from bottom edge */
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-overlay .container {
    padding-bottom: 50px !important; /* maintain 50px bottom spacing */
  }
}

@media (max-width: 420px) {
  .hero-overlay .container {
    padding-bottom: 50px !important; /* maintain 50px bottom spacing */
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-overlay .container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 60px;
  /* distance from image bottom */
}

@media (max-width: 1024px) {
  .hero-overlay .container {
    padding-bottom: 50px;
  }
}

@media (max-width: 768px) {
  .hero-overlay .container {
    padding-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .hero-overlay .container {
    padding-bottom: 30px;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 1240px;
  /* keep content narrower so it aligns with other sections */
  padding: 0 20px;
  box-sizing: border-box;
  margin: 0 auto;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  /* center buttons horizontally within the hero-content container */
  margin-top: 4px;
  /* lift buttons away from the bottom edge */
  position: relative;
  z-index: 10;
  /* above the image */
}

@media (max-width: 768px) {
  .hero-buttons {
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin-top: 12px;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    max-width: 280px;
    gap: 10px;
  }
}

.btn-hero-primary {
  background-color: var(--color-surface);
  color: var(--color-primary);
  box-shadow: 0px 0px 0px 6px rgba(223, 230, 245, 0.37), 0px 0px 0px 5px rgba(57, 63, 136, 0.5);
  gap: 8px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 42px;
  min-width: 147px;
}

.btn-hero-primary:hover {
  background-color: var(--color-border-light);
}

.btn-hero-secondary {
  border: 1px solid var(--color-text-light);
  color: var(--color-text-light);
  border-radius: 42px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 400;
  min-width: 147px;
}

.btn-hero-secondary:hover {
  background-color: var(--color-border-light);
  color: var(--color-primary);
}

/* CSS for section section:about */
.about-section {
  background-color: var(--color-background);
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  max-width: 816px;
  margin: 0 auto 40px;
}

.tag {
  background: linear-gradient(180deg, #fdfeff 0%, #dfe6f5 100%);
  padding: 6px 12px;
  border-radius: 18px;
  box-shadow: inset 0px 1px 1px 0px #dfe6f5, inset 0px -1px 1px 0px #b6c5e9;
  color: #0284c7;
  font-size: 14px;
  font-weight: 400;
  display: inline-block;
}

.section-title {
  color: var(--color-text-dark);
  font-size: 35px;
  font-weight: 600;
  line-height: 48px;
  margin: 0;
}

@media (max-width: 1024px) {
  .section-title {
    font-size: 32px;
    line-height: 42px;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 28px;
    line-height: 36px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 24px;
    line-height: 32px;
  }
}

.section-description {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 20px;
  padding: 0 55px;
}

@media (max-width: 1024px) {
  .section-description {
    padding: 0 40px;
  }
}

@media (max-width: 768px) {
  .section-description {
    padding: 0 20px;
    font-size: 13px;
    line-height: 19px;
  }
}

@media (max-width: 480px) {
  .section-description {
    padding: 0 10px;
    font-size: 12px;
    line-height: 18px;
  }
}

.section-description strong {
  font-weight: 600;
  color: var(--color-text-dark);
}

.infographics-grid {
  /* mobile-first: single column under 640px */
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .infographics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 27px;
    padding: 0 40px;
  }
}

@media (min-width: 1024px) {
  .infographics-grid {
    padding: 0 60px;
  }
}

.infographic-card {
  position: relative;
  border-radius: 36px;
}

@media (max-width: 768px) {
  .infographic-card {
    border-radius: 28px;
  }
}

@media (max-width: 480px) {
  .infographic-card {
    border-radius: 24px;
  }
}

.infographic-card .about-graphic {
  display: block;
  width: 100%;
  height: auto;
  max-width: 90%;
  margin: 20px auto 0 auto;
}

.card-background {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #fdfeff 0%, #f4f9ff 100%);
  border: 1px solid var(--color-border);
  border-radius: 36px;
}

.card-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card-footer {
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 768px) {
  .card-footer {
    padding: 14px 20px;
  }
}

@media (max-width: 480px) {
  .card-footer {
    padding: 12px 16px;
  }
}

.card-footer h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 16px;
  margin: 0;
  color: var(--color-text-dark);
}

.card-footer p {
  font-size: 12px;
  line-height: 22px;
  margin: 0;
  color: var(--color-text-muted);
}

/* CSS for section section:resources */
.resources-section {
  padding-top: 0;
}

.resources-grid {
  /* mobile-first: single column under 640px */
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 0 40px;
  }
}

@media (min-width: 1200px) {
  .resources-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 27px;
    padding: 0 60px;
  }
}

.resource-card {
  background: linear-gradient(180deg, #fdfeff 0%, #f4f9ff 100%);
  border: 1px solid var(--color-border);
  border-radius: 36px;
  padding: 36px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
}

@media (max-width: 768px) {
  .resource-card {
    padding: 24px 16px 16px;
    border-radius: 24px;
  }
}

@media (max-width: 480px) {
  .resource-card {
    padding: 20px 12px 12px;
  }
}

.resource-image-stack {
  position: relative;
  width: 196px;
  height: 210px;
}

.resource-image-stack:hover img.left {
  transform: rotate(-6deg);
  left: 5px;
}

.resource-image-stack:hover img.right {
  transform: rotate(6deg);
  right: 5px;
}

.resource-image-stack:hover img.top {
  top: -20px;
}

.resource-image-stack img {
  border-radius: 18px;
  border: 1px solid var(--color-border);
  object-fit: cover;
  transition: all 0.3s;
}

.resource-image-stack img.left,
.resource-image-stack img.right,
.resource-image-stack img.top {
  position: absolute;
  display: block;
}

/* Default positions for the three-image stack (adjust here to affect all stacks at once) */
.resource-image-stack img.left {
  left: 16px;
  transform: rotate(-2deg);
}

.resource-image-stack img.right {
  right: 16px;
  transform: rotate(2deg);
}

.resource-image-stack img.right,
.resource-image-stack img.left {
  top: 0;
  width: 130px;
  height: auto;
}

.resource-image-stack img.top {
  top: -11.5px;
  left: 50%;
  transform: translateX(-50%) rotate(0deg);
  width: 130px;
  height: auto;
}

.resource-info h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 16px;
  margin: 0 0 8px;
  color: var(--color-text-dark);
}

.resource-info p {
  font-size: 12px;
  line-height: 22px;
  margin: 0;
  color: var(--color-text-muted);
}

/* CSS for section section:statistics */
.statistics-section {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  /* section has no extra vertical padding because image provides height */
  overflow: hidden;
  /* prevent any overflowing children from producing horizontal scroll */
}

.stats-background {
  width: 100vw;
  /* full-bleed across the viewport */
  margin-left: calc((100% - 100vw) / 2);
  /* center the full-bleed image when inside a constrained container */
  overflow: hidden;
}

.stats-background img {
  display: block;
  width: 100vw;
  /* ensure image always fills viewport width */
  max-width: 100vw;
  height: auto;
  /* preserve aspect ratio */
  object-fit: cover;
  /* cover for nicer edge-to-edge fill if image is larger */
}

/* CSS for section section:features */
.features-section .section-header {
  margin-bottom: 40px;
}

.features-section .section-title .highlight {
  color: #0033b3;
}

.features-content {
  display: flex;
  gap: 22px;
  padding: 0 60px;
  align-items: flex-start;
}

@media (max-width: 1200px) {
  .features-content {
    flex-direction: column;
    padding: 0 40px;
    gap: 32px;
    align-items: center;

  }
}

@media (max-width: 768px) {
  .features-content {
    padding: 0 20px;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .features-content {
    padding: 0 16px;
    gap: 20px;
  }
}

.feature-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  flex-shrink: 0;
}

@media (max-width: 1200px) {
  .feature-nav {
    flex-direction: row;
    overflow-x: auto;
    width: 100%;
    gap: 12px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }
  
  .feature-nav::-webkit-scrollbar {
    height: 6px;
  }
  
  .feature-nav::-webkit-scrollbar-thumb {
    background-color: var(--color-border);
    border-radius: 3px;
  }
}

.feature-nav-item {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: 32px;
  padding: 28px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-dark);
  cursor: pointer;
  width: 275px;
  box-sizing: border-box;
  text-align: left;
  transition: all 0.3s ease;
}

@media (max-width: 1200px) {
  .feature-nav-item {
    width: auto;
    min-width: fit-content;
    white-space: nowrap;
    padding: 16px 24px;
    border-radius: 24px;
  }
  
  .feature-nav-item img {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .feature-nav-item {
    padding: 12px 20px;
    font-size: 13px;
  }
}

.feature-nav-item:hover:not(.active) {
  border: 2px solid #b6c5e9;
  background: linear-gradient(180deg, #fdfeff 0%, #f8fbff 100%);
  box-shadow: 0px 2px 6px 0px rgba(0, 51, 179, 0.08);
  padding: 27px 27px;
}

.feature-nav-item.active {
  border: 2px solid #92a8de;
  background: linear-gradient(180deg, #fdfeff 0%, #f4f9ff 100%);
  box-shadow: 0px 4px 10px 0px rgba(0, 51, 179, 0.16);
  padding: 27px 27px;
}

.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  flex-grow: 1;
}

@media (max-width: 768px) {
  .feature-cards-grid {
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .feature-cards-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 480px) {
  .feature-cards-grid {
    gap: 16px;
  }
}

.feature-card {
  border: 1px solid var(--color-border);
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (max-width: 768px) {
  .feature-card {
    border-radius: 24px;
  }
}

.feature-card-image {
  height: 190px;
  background-size: cover;
  background-position: top;
}

@media (max-width: 768px) {
  .feature-card-image {
    height: 160px;
  }
}

@media (max-width: 480px) {
  .feature-card-image {
    height: 140px;
  }
}

.feature-card-content {
  background-color: var(--color-surface);
  padding: 18px 22px;
  border-top: 1px solid var(--color-border);
  flex-grow: 1;
}

.feature-card-content h4 {
  font-size: 12px;
  font-weight: 600;
  line-height: 22px;
  margin: 0 0 4px;
}

.feature-card-content p {
  font-size: 11px;
  line-height: 20px;
  color: var(--color-text-muted);
  margin: 0;
}

/* CSS for section section:modules */
.modules-section {
  background-color: var(--color-background);
  padding-bottom: 0;
  padding-top: 0;
}

.modules-section .section-header {
  margin-bottom: 60px;
}

.modules-graphic {
  position: relative;
  width: 100%;
  height: 700px;
  background-image: url(images/modules.png);
  background-position: center 72%;
  background-size: 104%;
  background-repeat: no-repeat;
}

@media (max-width: 1200px) {
  .modules-graphic {
    transform: scale(1.1);
    margin-top: -100px;
    height: 600px;
  }
}

@media (max-width: 992px) {
  .modules-graphic {
    transform: scale(1);
    margin-top: -50px;
    height: 450px;
  }
}

@media (max-width: 768px) {
  .modules-graphic {
    margin-top: -70px;
    height: 400px;
  }
}

@media (max-width: 640px) {
  .modules-graphic {
    transform: scale(1.2);
    margin-top: -50px;
    height: 350px;
  }
}

@media (max-width: 480px) {
  .modules-graphic {
    height: 300px;
  }
}

/* CSS for section section:app-stores */
.app-stores-section {
  position: relative;
  padding: 55px 0 0;
  height: 700px;
  overflow: visible;
}

@media (min-width: 2120px) {
  .app-stores-section {
    padding-top: 150px;
    height: 1400px;
  }
}

@media (min-width: 1840px) and (max-width: 2119px) {
  .app-stores-section {
    padding-top: 150px;
    height: 1100px;
  }
}

@media (min-width: 1440px) and (max-width: 1839px) {
  .app-stores-section {
    padding-top: 150px;
    height: 950px;
  }
}

@media (max-width: 1024px) {
  .app-stores-section {
    height: 600px;
    padding: 50px 0 0;
  }
}

@media (max-width: 768px) {
  .app-stores-section {
    height: 500px;
    padding: 40px 0 0;
  }
}

@media (max-width: 480px) {
  .app-stores-section {
    height: 900px;
    padding: 32px 0 0;
  }
}

.bg-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-image: url(images/app-stores-bg.svg);
  background-size: cover;
  height: 1000px;
  z-index: -1;
}

@media (min-width: 2120px) {
  .bg-svg {
    height: 2150px;
  }
}

@media (min-width: 1840px) and (max-width: 2119px) {
  .bg-svg {
    height: 1650px;
  }
}

@media (min-width: 1440px) and (max-width: 1839px) {
  .bg-svg {
    height: 1450px;
  }
}

@media (max-width: 1024px) {
  .bg-svg {
    height: 750px;
  }
}

@media (max-width: 768px) {
  .bg-svg {
    height: 600px;
  }
}

@media (max-width: 480px) {
  .bg-svg {
    height: 800px;
  }
}

.bg-shadow {
  background-image: url(images/white-shadow.png);
  position: absolute;
  bottom: -50%;
  left: 0;
  width: 100%;
  height: 481px;
  background: linear-gradient(0deg, #fdfeff 36.06%, rgba(255, 255, 255, 0) 100%);
  z-index: -1;
}

.heading-gradient-text {
  background: linear-gradient(90deg, #f5f5f5 50.13%, #b6c5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.light-text {
  color: var(--color-border-light);
}

.bold-text {
  font-weight: 600;
}

.main-showcase {
  width: 100%;
  height: 600px;
  position: absolute;
  overflow: visible;
  left: 0;
  right: 0;
}

@media (max-width: 1024px) {
  .main-showcase {
    height: 500px;
  }
}

@media (max-width: 768px) {
  .main-showcase {
    height: 400px;
  }
}

@media (max-width: 480px) {
  .main-showcase {
    height: 320px;
  }
}


.app-stores-image {
  position: absolute;
  left: 0;
  right: 0;
  overflow: visible;
  top: -40%;
  max-width: 100%;
}

.app-stores-combined {
  display: block;
}

.app-stores-separate {
  display: none;
}

@media (max-width: 1024px) {
  .app-stores-image {
    top: -40%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .app-stores-image {
    top: -40%;

  }
}

@media (max-width: 640px) {
  .app-stores-image {
    top: -25%;
  }
}

@media (max-width: 480px) {
  .app-stores-combined {
    display: none;
  }
  
  .app-stores-separate {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 0px;
    position: absolute;
    left: 0;
    right: 0;
    top: -45%;
  }
  
  .app-stores-separate .store-screenshot {
    width: 100%;
    height: auto;
    margin-top: 30px;
    transform: scale(1.2) translateX(8%);
    margin-top: -30px;
  }

  .app-stores-separate .store-users {
    width: 100%;
    height: auto;
    transform: scale(1) translateX(0%);
    margin-top: 20px;
  } 
}

/* CSS for section section:global-access */
.global-access-section {
  padding: 60px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 1240px) {
  .global-access-section {
    padding-top: 150px;
  }
}

@media (max-width: 768px) {
  .global-access-section {
    padding: 40px 0 0;
  }
}

@media (max-width: 480px) {
  .global-access-section {
    padding: 32px 0 0;
  }
}

.map-container {
  position: relative;
  width: 100%;
  max-width: 1240px;
}

.map-image {
  width: 100%;
  height: auto;
}

.location-dots {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.location-dots img {
  position: absolute;
  width: 12px;
  height: 12px;
  animation: pulse 6s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1.3);
    opacity: 1;
  }

  70% {
    transform: scale(1.2);
    opacity: 0;
  }

  100% {
    transform: scale(1.3);
    opacity: 1;
  }
}

.location-dots img:nth-child(2) {
  animation-delay: 1.3s;
}

.location-dots img:nth-child(3) {
  animation-delay: 0.6s;
}

.location-dots img:nth-child(4) {
  animation-delay: 6.9s;
}

.location-dots img:nth-child(5) {
  animation-delay: 0s;
}

.location-dots img:nth-child(6) {
  animation-delay: 1.5s;
}

.location-dots img:nth-child(7) {
  animation-delay: 0.8s;
}

.location-dots img:nth-child(8) {
  animation-delay: 2.1s;
}

/* CSS for section section:ai-assistant */
.ai-assistant-section {
  padding-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -110px;
}

@media (max-width: 1024px) {
  .ai-assistant-section {
    margin-top: -80px;
  }
}

@media (max-width: 992px) {
  .ai-assistant-section {
    margin-top: -60px;
    padding-top: 40px;
  }
}

@media (max-width: 768px) {
  .ai-assistant-section {
    margin-top: -40px;
    padding-top: 60px;
  }
}

@media (max-width: 480px) {
  .ai-assistant-section {
    /* Avoid large negative offsets on very small screens so content remains visible */
    margin-top: 0;
    padding-top: 40px;
  }
}

.kanka-text {
  background: linear-gradient(180deg, #b6c5e9 0%, #0033b3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.visual-container {
  position: relative;
  width: 100%;
  height: auto;
  margin-top: -120px;
}

.visual-container img {
  width: 100%;
  margin-top: 90px;
}

@media (max-width: 1240px) {
  .visual-container {
    margin-top: -150px;
  }
}


@media (max-width: 992px) {
  .visual-container {
    margin-top: -150px;
    margin-bottom: 0px;
  }
}

@media (max-width: 480px) {
  .visual-container {
    /* keep visual in normal flow on very small screens */
    transform: none;
    margin-top: 0;
    margin-bottom: 24px;
    z-index: 1; /* ensure it sits above background elements */
    height: auto;
  }

  .visual-container img {
    margin-top: -20px;
  }
}


/* CSS for section section:feedback */
.feedback-section {
  padding: 0 0;
}

.testimonials-slider {
  display: flex;
  gap: 24px;
  padding: 0 100px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.testimonials-slider::-webkit-scrollbar {
  display: none;
}

@media (max-width: 1200px) {
  .testimonials-slider {
    padding: 0 60px;
  }
}

@media (max-width: 992px) {
  .testimonials-slider {
    padding: 0 40px;
  }
}

@media (max-width: 768px) {
  .testimonials-slider {
    padding: 0 20px;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .testimonials-slider {
    padding: 0 16px;
    gap: 12px;
  }
}

.testimonial-card {
  flex: 0 0 400px;
  background: linear-gradient(180deg, #fdfeff 0%, #f4f9ff 100%);
  border: 1px solid var(--color-border-medium);
  border-radius: 36px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
}

@media (max-width: 992px) {
  .testimonial-card {
    flex: 0 0 340px;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .testimonial-card {
    flex: 0 0 300px;
    border-radius: 24px;
    padding: 16px;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .testimonial-card {
    flex: 0 0 280px;
    padding: 14px;
  }
}

.testimonial-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.stars {
  display: flex;
  gap: 0;
}

.testimonial-card-body {
  font-size: 14px;
  line-height: 24px;
  color: var(--color-text-primary);
  margin: 0;
}

.testimonial-card .testimonial-card-footer {
  display: flex;
  align-items: center;
  gap: 7px;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.testimonial-card .testimonial-card-footer .separator {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.user-role {
  font-size: 14px;
  color: var(--color-text-subtle);
}

/* CSS for section section:faq */
.faq-section {
  padding: 50px 0;
}

.faq-section .section-header {
  margin-bottom: 24px;
  padding: 0 20px;
}

.faq-container {
  max-width: 816px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.faq-nav {
  display: flex;
  justify-content: center;
  gap: 0;
  border-bottom: 1px solid #dfe6f5;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.faq-nav::-webkit-scrollbar {
  height: 3px;
}

.faq-nav::-webkit-scrollbar-thumb {
  background-color: var(--color-border);
  border-radius: 2px;
}

.faq-nav-item {
  background-color: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 24px;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 14px;
  color: #868b91;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .faq-nav-item {
    padding: 12px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .faq-nav-item {
    padding: 10px 14px;
    font-size: 12px;
  }
}

.faq-nav-item.active {
  color: #0033b3;
  border-bottom: 2px solid #0033b3;
}

.faq-nav-item:hover:not(.active) {
  color: #3b3d3f;
  border-bottom: 1px solid #dfe6f5;
}

.faq-accordion {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accordion-item {
  background-color: #fdfeff;
  border: 1px solid var(--color-border-light);
  border-radius: 36px;
  overflow: hidden;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .accordion-item {
    border-radius: 24px;
  }
}

@media (max-width: 480px) {
  .accordion-item {
    border-radius: 20px;
  }
}

.accordion-question {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: #3b3d3f;
  font-size: 14px;
}

@media (max-width: 768px) {
  .accordion-question {
    padding: 16px 20px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .accordion-question {
    padding: 14px 16px;
    font-size: 12px;
  }
}

.accordion-question:hover {
  background-color: #f8fbff;
}

.accordion-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 32px;
}

.accordion-item.active .accordion-answer {
  max-height: 500px;
  padding: 0 32px 24px 32px;
}

@media (max-width: 768px) {
  .accordion-answer {
    padding: 0 24px;
  }
  
  .accordion-item.active .accordion-answer {
    padding: 0 24px 20px 24px;
  }
}

@media (max-width: 480px) {
  .accordion-answer {
    padding: 0 20px;
  }
  
  .accordion-item.active .accordion-answer {
    padding: 0 20px 16px 20px;
  }
}

.accordion-answer p {
  margin: 0;
  color: #0033b3;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

@media (max-width: 768px) {
  .accordion-answer p {
    font-size: 14px;
    line-height: 22px;
  }
}

@media (max-width: 480px) {
  .accordion-answer p {
    font-size: 13px;
    line-height: 20px;
  }
}


/* CSS for section section:contact */
.contact-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-form {
  width: 100%;
  max-width: 604px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  /* make inputs fill the form width */
  gap: 22px;
  margin: 0 auto;
  /* center the form horizontally inside the container */
  padding: 0 20px;
}

@media (max-width: 768px) {
  .contact-form {
    gap: 18px;
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .contact-form {
    gap: 16px;
  }
}

.form-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  padding-left: 16px;
}

.required {
  color: #ef4444;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background-color: var(--color-white);
  border: 1px solid var(--color-border-medium);
  border-radius: 36px;
  padding: 20px 32px;
  font-family: var(--font-main);
  font-size: 16px;
  color: var(--color-text-subtle);
}

@media (max-width: 768px) {
  .form-group input,
  .form-group textarea {
    padding: 16px 24px;
    font-size: 15px;
    border-radius: 28px;
  }
}

@media (max-width: 480px) {
  .form-group input,
  .form-group textarea {
    padding: 14px 20px;
    font-size: 14px;
    border-radius: 24px;
  }
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-subtle);
}

.form-group textarea {
  resize: vertical;
}

.required-notice {
  width: 100%;
  text-align: left;
  font-size: 16px;
  color: #ef4444;
  margin: 0;
}

.form-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.submit-btn {
  background-color: #f6f3f2;
  color: #b7bec6;
  border: none;
  border-radius: 100px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 400;
  cursor: not-allowed;
  width: 160px;
  height: 48px;
  transition: all 0.3s ease;
}

.submit-btn:not(:disabled) {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  cursor: pointer;
}

.submit-btn:not(:disabled):hover {
  background-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(19, 43, 147, 0.3);
}

.clear-btn {
  background-color: transparent;
  color: var(--color-text-muted);
  border: 2px solid var(--color-border);
  border-radius: 100px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  width: 160px;
  height: 48px;
  transition: all 0.3s ease;
}

.clear-btn:hover {
  background-color: #fef2f2;
  border-color: #ef4444;
  color: #ef4444;
}

.form-group.error input,
.form-group.error textarea {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.form-group .error-message {
  color: #ef4444;
  font-size: 14px;
  margin-top: 4px;
  display: none;
}

.form-group.error .error-message {
  display: block;
}

.contact-success-alert {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(-32px);
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.4);
  padding: 1.25rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  opacity: 0;
  z-index: 9999;
  transition: opacity 0.4s cubic-bezier(.4,0,.2,1), transform 0.4s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  min-width: 300px;
  max-width: 500px;
}
.contact-success-alert.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.contact-success-alert svg {
  flex-shrink: 0;
}

/* CSS for section section:footer */
.site-footer {
  padding: 12px;
}

.footer-container {
  position: relative;
  background: radial-gradient(173.07% 205.27% at 50% 50%, #2450be 0%, #191d56 100%);
  border-radius: 36px;
  padding: 50px 100px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 72px;
  overflow: hidden;
}

@media (max-width: 1200px) {
  .footer-container {
    padding: 50px 60px 24px;
    gap: 60px;
  }
}

@media (max-width: 992px) {
  .footer-container {
    padding: 40px 40px 24px;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .footer-container {
    padding: 32px 24px 20px;
    gap: 36px;
    border-radius: 24px;
  }
}

@media (max-width: 480px) {
  .footer-container {
    padding: 24px 16px 16px;
    gap: 28px;
    border-radius: 20px;
  }
}

.footer-bg-vector {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.footer-content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

@media (max-width: 1200px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .footer-content {
    gap: 36px;
  }
}

@media (max-width: 480px) {
  .footer-content {
    gap: 28px;
  }
}

.footer-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 1200px) {
  .footer-left {
    align-items: center;
    gap: 24px;
    flex-direction: row;
  }
}

@media (max-width: 768px) {
  .footer-left {
    gap: 20px;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .footer-left {
    gap: 16px;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 14px;
  line-height: 24px;
}

.ogm-logo {
  width: 173px;
  height: auto;
}

.social-links a {
  display: inline-block;
  margin-right: 20px;

}

.footer-right {
  display: flex;
  gap: 64px;
}

@media (max-width: 1200px) {
  .footer-right {
    width: 100%;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .footer-right {
    flex-direction: row;
    align-items: center;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .footer-right {
    gap: 24px;
  }
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 768px) {
  .footer-column {
    align-items: center;
  }
  
  .footer-heading {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-column {
    gap: 10px;
  }
}

.footer-heading {
  font-size: 14px;
  font-weight: 600;
  color: #dfe6f5;
  margin: 0;
  padding: 0 24px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links li a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 10px;
  transition: background-color 0.2s;
}

.footer-links li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.footer-store-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 12px;
}

.store-button-footer {
  display: flex;
  align-items: center;
  width: 130px;
}

.store-button-footer img {
  height: 40px;
  width: auto;
}

.copyright {
  position: relative;
  z-index: 1;
  color: #dfe6f5;
  font-size: 12px;
  text-align: center;
  margin: 0;
}

@media (max-width: 768px) {
  .copyright {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .copyright {
    font-size: 10px;
  }
}

/* Login Modal */
.login-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-modal.active {
  display: flex;
}

.login-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 3, 8, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1;
}

.login-modal-content {
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, #f8f9ff 0%, #e8eeff 100%);
  border-radius: 32px;
  padding: 48px 40px 40px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(0, 51, 179, 0.24);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
  color: var(--color-text-muted);
  transition: all 0.2s;
}

.login-modal-close:hover {
  background: rgba(0, 51, 179, 0.08);
  color: var(--color-primary);
}

.login-modal-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-modal-logo {
  height: 52px;
  margin-bottom: 16px;
}

.login-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin: 0 0 8px;
  letter-spacing: 0.5px;
}

.login-modal-subtitle {
  font-size: 15px;
  color: var(--color-text-muted);
  margin: 0;
  font-weight: 400;
}

.login-modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.login-option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-border-light);
  border-radius: 16px;
  padding: 16px 20px;
  text-decoration: none;
  color: var(--color-text-dark);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 51, 179, 0.04);
}

.login-option-btn:hover {
  background: #ffffff;
  border-color: var(--color-primary-light);
  box-shadow: 0 4px 16px rgba(0, 51, 179, 0.12);
  transform: translateY(-2px);
}

.login-option-btn:active {
  transform: translateY(0);
}

.login-option-icon {
  flex-shrink: 0;
  color: var(--color-primary);
  stroke: currentColor;
}

.login-modal-footer {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-light);
}

.login-modal-help {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.login-modal-help:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .login-modal {
    padding: 16px;
  }

  .login-modal-content {
    padding: 40px 24px 32px;
    border-radius: 24px;
    max-width: 100%;
  }

  .login-modal-logo {
    height: 44px;
  }

  .login-modal-title {
    font-size: 16px;
  }

  .login-modal-subtitle {
    font-size: 14px;
  }

  .login-option-btn {
    padding: 14px 16px;
    font-size: 14px;
    border-radius: 14px;
  }

  .login-modal-close {
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  .login-modal-content {
    padding: 36px 20px 28px;
  }

  .login-modal-logo {
    height: 40px;
    margin-bottom: 12px;
  }

  .login-modal-title {
    font-size: 15px;
  }

  .login-modal-subtitle {
    font-size: 13px;
  }

  .login-modal-buttons {
    gap: 10px;
    margin-bottom: 20px;
  }

  .login-option-btn {
    padding: 12px 14px;
    font-size: 13px;
  }

  .login-option-icon {
    width: 18px;
    height: 18px;
  }
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}
/* ===================================
   DISCOVER MODAL STYLES
   =================================== */

.discover-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.discover-modal.active {
  display: flex;
}

.discover-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.discover-modal-content {
  position: relative;
  background: white;
  border-radius: 24px;
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: discoverModalSlideIn 0.3s ease-out;
  padding: 40px;
}

@keyframes discoverModalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.discover-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #333;
  transition: all 0.2s ease;
  z-index: 1;
}

.discover-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
}

.discover-modal-header {
  margin-bottom: 32px;
  padding-right: 50px;
}

.discover-modal-header h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0 0 12px 0;
}

.discover-modal-header p {
  font-size: 16px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* Discover Navigation Tabs */
.discover-nav {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  border-bottom: 2px solid #e8eeff;
  overflow-x: auto;
  padding-bottom: 12px;
  /* prevent a vertical scrollbar and any right-side artifact */
  overflow-y: hidden;
  border-right: none;
  box-shadow: none;
}

.discover-nav::-webkit-scrollbar {
  height: 4px;
}

.discover-nav::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 2px;
}

.discover-nav::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 2px;
}

.discover-nav-item {
  background: transparent;
  border: none;
  padding: 12px 20px;
  font-family: 'Rubik', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
  white-space: nowrap;
  position: relative;
}

.discover-nav-item:focus {
  outline: none;
  box-shadow: none;
}

.discover-nav-item:hover {
  background: rgba(0, 51, 179, 0.05);
  color: var(--color-primary);
}

.discover-nav-item.active {
  color: var(--color-primary);
  background: rgba(0, 51, 179, 0.1);
}

.discover-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
}

/* Discover Content */
.discover-content {
  min-height: 300px;
}

.discover-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* Video Card */
.video-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 51, 179, 0.15);
  border-color: var(--color-primary);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-background) 0%, var(--color-background-light) 100%);
}

.video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 1; /* always visible */
  transition: background 0.18s ease, opacity 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* allow clicks to fall through to card */
}

.video-card .video-play-overlay {
  background: rgba(0,0,0,0.55);
  padding: 8px;
  border-radius: 50%;
}

.video-card:hover .video-play-overlay {
  background: rgba(0,0,0,0.35); /* lighter on hover */
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.video-info {
  padding: 20px;
}

.video-info h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.video-info p {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* Video download button */
.video-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

@media (max-width: 768px) {
  .download-btn {
    font-size: 12px;
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .download-btn {
    font-size: 11px;
    padding: 5px 8px;
    gap: 4px;
  }
}

/* Material Card (for Kurumsal Materyaller) */
.material-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  cursor: pointer;
}

.material-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 51, 179, 0.15);
  border-color: var(--color-primary);
}

.material-thumbnail {
  position: relative;
  width: 100%;
  padding-top: 70%; /* A4 ratio */
  overflow: hidden;
  background: linear-gradient(135deg, #e8eeff 0%, #f8f9ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.material-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

}

/* Download button improvements */
.material-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: linear-gradient(180deg, #0b57d0, #0033b3);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(3, 27, 85, 0.12);
  transition: all 0.3s ease;
}

.download-btn:hover {
  box-shadow: 0 6px 16px rgba(3, 27, 8, 0.5);
  background: linear-gradient(180deg, #0033b3, #0b57d0);

}

.download-btn svg {
  flex-shrink: 0;
}

.material-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.material-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.material-card:hover .material-overlay {
  opacity: 1;
}

.material-info {
  padding: 20px;
}

.material-info h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.material-info p {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* Responsive Design for Discover Modal */
@media (max-width: 768px) {
  .discover-modal {
    padding: 10px;
  }

  .discover-modal-content {
    padding: 24px;
    border-radius: 16px;
    max-height: 95vh;
  }

  .discover-modal-header h2 {
    font-size: 24px;
  }

  .discover-modal-header p {
    font-size: 14px;
  }

  .discover-nav {
    gap: 8px;
    margin-bottom: 24px;
  }

  .discover-nav-item {
    padding: 10px 16px;
    font-size: 14px;
  }

  .discover-video-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .discover-modal-content {
    padding: 20px;
  }

  .discover-modal-header {
    margin-bottom: 24px;
    padding-right: 40px;
  }

  .discover-modal-header h2 {
    font-size: 20px;
  }

  .discover-modal-close {
    width: 36px;
    height: 36px;
    top: 16px;
    right: 16px;
  }

  .discover-nav-item {
    padding: 8px 12px;
    font-size: 13px;
  }

  .video-info h3,
  .material-info h3 {
    font-size: 15px;
  }

  .video-info p,
  .material-info p {
    font-size: 13px;
  }
}

/* Video Player Styles */
.video-card.playing .video-thumbnail {
  padding-top: 56.25%; /* Maintain 16:9 aspect ratio */
}

.video-player-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Material Action Buttons */
.material-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.material-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  flex: 1;
  justify-content: center;
  cursor: pointer;
}

.material-action-btn svg {
  flex-shrink: 0;
}

/* Material card hover state adjustment */
.material-card:hover .material-overlay {
  opacity: 0.8;
}

/* Responsive adjustments for material actions */
@media (max-width: 480px) {
  .material-actions {
    flex-direction: column;
    gap: 6px;
  }
  
  .material-action-btn {
    font-size: 13px;
    padding: 7px 12px;
  }
  
  .material-action-btn svg {
    width: 18px;
    height: 18px;
  }
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 51, 179, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 1000;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 51, 179, 0.4);
}

.scroll-to-top:active {
  transform: translateY(-1px);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 20px;
    right: 12px; /* daha içeride konumlandır */
    width: 45px;
    height: 45px;
    max-width: calc(100vw - 24px); /* viewport genişliğini aşmaması için */
  }
  
  .scroll-to-top svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 480px) {
  .scroll-to-top {
    bottom: 16px;
    right: 10px; /* daha içeride konumlandır */
    width: 42px;
    height: 42px;
    max-width: calc(100vw - 20px); /* viewport genişliğini aşmaması için */
  }
  
  .scroll-to-top svg {
    width: 20px;
    height: 20px;
  }
}
