/* MODERN, ANİMASYONLU VE TAM RESPONSIVE STİLLER */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  background: #f6fafd;
  color: #222;
  line-height: 1.6;
}

header {
  position: fixed;
  z-index: 99;
  top: 0;
  left: 0;
  width: 100vw;
  background: #ffffffcc;
  box-shadow: 0 4px 24px rgba(32, 60, 119, .07);
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2vw;
  backdrop-filter: blur(8px);
  border-bottom: 2px solid #d5eaff44;
  transition: background 0.3s;
}

.logo img {
  height: 56px;
  transition: filter 0.3s;
}

.menu {
  display: flex;
  list-style: none;
  gap: 1.8vw;
  align-items: center;
  flex-wrap: nowrap;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

.text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.menu li a {
  color: #2e5090;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.10em;
  padding: 7px 17px;
  border-radius: 20px;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
  box-shadow: 0 2px 6px 0 transparent;
  position: relative;
  white-space: nowrap;
}

.menu li a:hover,
.menu li a.active {
  background: #e9f3ff;
  color: #136cfb;
  box-shadow: 0 1px 10px 0 #dbe9fa55;
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  width: 44px;
  height: 44px;
  gap: 6px;
  border-radius: 8px;
  align-items: center;
  z-index: 100;
  transition: transform .2s ease;
}

.hamburger-menu span {
  display: block;
  height: 5px;
  border-radius: 3px;
  width: 100%;
  background: #2e5090;
  transition: transform .4s cubic-bezier(.22,1,.36,1), opacity .3s ease, background-color .2s ease;
}

.hamburger-menu.active span:nth-child(1) {
  transform: translateY(11px) rotate(-45deg);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-11px) rotate(45deg);
}
.hamburger-menu:hover { transform: scale(1.05); }

.menu.active {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100vw;
  background: #fff;
  height: calc(100vh - 70px);
  justify-content: flex-start;
  align-items: flex-start;
  padding: 40px 20px;
  gap: 20px;
  box-shadow: 0 2px 24px #adcfff55;
  transform: translateY(-8px);
  opacity: 0;
  animation: slideDownMenu .28s cubic-bezier(.22,1,.36,1) both;
}
@keyframes slideDownMenu { from { transform: translateY(-8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (max-width: 700px) {
  .menu.active li { opacity: 0; transform: translateY(8px); animation: menuItemIn .28s cubic-bezier(.22,1,.36,1) forwards; }
  .menu.active li:nth-child(1){ animation-delay: .05s; }
  .menu.active li:nth-child(2){ animation-delay: .09s; }
  .menu.active li:nth-child(3){ animation-delay: .13s; }
  .menu.active li:nth-child(4){ animation-delay: .17s; }
  .menu.active li:nth-child(5){ animation-delay: .21s; }
}
@keyframes menuItemIn { to { opacity: 1; transform: translateY(0); } }

/* Prevent background scroll when menu is open */
body.no-scroll {
  overflow: hidden;
}

main {
  margin-top: 70px;
}

section {
  margin-bottom: 2.5rem;
  animation: fadeInY 1.1s cubic-bezier(.22, 1, .36, 1) both;
}

/* Add global inner breathing space for sections */
.second {
  padding: 18px 14px;
}

@media (min-width: 768px) {
  .second {
    padding: 26px 22px;
  }
}

@media (min-width: 1100px) {
  .second {
    padding: 34px 28px;
  }
}

@keyframes fadeInY {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 330px;
  background: linear-gradient(110deg, #e5f2ffcc 65%, #e0ecfdbb 95%), url('assets/banner.jpg') center/cover no-repeat;
  position: relative;
  padding: 5vw 3vw 5vw 1vw;
  border-radius: 0 0 30px 30px;
  box-shadow: 0 2px 18px #c3e2ff24;
  overflow: hidden;
}

.bacground-overlay {
  pointer-events: none;
  background-color: #010033bb;
  opacity: .40;
  border-radius: inherit;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 0;
}

.banner h2 {
  /* font-size: 2rem; */
  font-weight: 800;
  color: #136cfb;
  /* margin-bottom: 20px; */
  letter-spacing: 2px;
  backdrop-filter: blur(1px);
  text-shadow: 0 2px 16px #fafdff66;
}

.banner-right-container {
  z-index: 1;
  display: flex;
  gap: 18px;
  align-items: center;
}

.axiostat-img {
  width: 190px;
  height: auto;
  filter: drop-shadow(0 4px 18px #136cfb33);
  border-radius: 18px;
  background: transparent;
  padding: 0;
  animation: fadeInY 1.25s .3s both;
}

.axiostat-info {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  padding: 6px 12px;
  border-radius: 25px;
  color: #fff;
  font-weight: 600;
  box-shadow: none;
  font-size: 0.9rem;
}

.section-title {
  font-size: 1.5rem;
  color: #093771;
  font-weight: 700;
}

.second-main-container,
.third-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2vw;
  align-items: center;
  justify-content: space-between;
}

.axios-second-image {
  max-width: 350px;
  width: 90vw;
  border-radius: 18px;
  box-shadow: 0 3px 18px #8dc2ff1a;
  animation: fadeInY 1.15s .2s both;
}

.second-textInfo-container {
  max-width: 550px;
  margin: 0 auto;
  background: #f9fbffdd;
  padding: 26px 36px;
  border-radius: 18px;
  box-shadow: 0 1px 6px #d7e8fa44;
  animation: fadeInY 1.2s .25s both;
}

/* Give the second section a gentle surface feel */
.second .second-main-container {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 3px 16px #cfe4fd44;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 22px;
}

@media (max-width: 900px) {
  .second .second-main-container {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 700px) {
  .second .second-main-container {
    padding: 12px;
  }
}

/* New tilt-in animation for a premium entrance */
@keyframes tiltInSoft {
  0% {
    opacity: 0;
    transform: perspective(900px) rotateX(6deg) translateY(26px) scale(.985);
    filter: blur(2px);
  }

  60% {
    opacity: 1;
    filter: blur(.3px);
  }

  100% {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

.second.show-on-scroll.visible .axios-second-image {
  animation: tiltInSoft .7s .05s cubic-bezier(.22, 1, .36, 1) both;
}

.second.show-on-scroll.visible .second-textInfo-container {
  animation: tiltInSoft .8s .12s cubic-bezier(.22, 1, .36, 1) both;
}

/* Directional slide-ins for side-by-side layout */
@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-28px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(28px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.second.show-on-scroll.visible .axios-second-image {
  animation: slideInLeft .6s .02s cubic-bezier(.22, 1, .36, 1) both;
}

.second.show-on-scroll.visible .second-textInfo-container {
  animation: slideInRight .6s .10s cubic-bezier(.22, 1, .36, 1) both;
}

/* Animate the container as well for a cohesive reveal */
.second.show-on-scroll.visible .second-main-container {
  animation: tiltInSoft .7s .0s cubic-bezier(.22, 1, .36, 1) both;
}

.second-textInfo-pbt {
  color: #136cfb;
  font-size: 1.3em;
  font-weight: 700;
  margin-bottom: 12px;
}

.second-textInfo-content {
  font-size: 1em;
  color: #374151;
  margin-bottom: 2px;
}

.third-section .left img {
  width: 65%;
  border-radius: 20px;
  box-shadow: 0 2px 17px #cbe1fe55;
}

.right {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Prevent horizontal scroll caused by hover transforms inside third section */
.third-section {
  /* overflow: hidden; */
  padding-left: 8px;
  padding-right: 8px;
}

.third-section .left {
  display: flex;
  justify-content: center;
}

/* Make the image crisp, centered and responsive */
.third-section .left img {
  width: 100%;
  max-width: 520px;
  height: auto !important;
  object-fit: contain;
  image-rendering: auto;
}

.icon-container {
  padding: 20px 12px;
  border-radius: 15px;
  background: #eaf4ff;
  box-shadow: 0 2px 7px #9fd1ff11;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background .15s, transform .21s cubic-bezier(.18, .87, .43, 1.38);
  cursor: pointer;
}

.icon-container i {
  font-size: 2.7em;
  color: #136cfb;
}

.icon-container:hover {
  background: #cbe7ff;
  transform: translateY(-8px) scale(1.03) rotate(-3deg);
}

.icon-title {
  color: #222e63;
  font-size: 1.2em;
  font-weight: 700;
  margin-top: 0.5em;
}

.icon-content {
  color: #446;
  font-size: 1em;
  margin-top: 0.2em;
}

/* Center text blocks inside the cards */


.forth-section {
  background-image: linear-gradient(120deg, #cddff7dd, #eaf4ffbb), url('assets/banner-second.jpg');
  background-size: cover;
  background-position: center;
  min-height: 450px;
  display: flex;
  align-items: center;
  /* border-radius: 30px; */
  box-shadow: 0 2px 14px #cde3f955;
  position: relative;
  margin: 22px 0 28px 0;
  padding: 28px 18px;
}

.forth-content {
  display: flex;
  gap: 2vw;
  width: 90vw;
  max-width: 1250px;
  padding: 8px 6px;
  z-index: 1;
  color: #123;
  font-size: 1.1rem;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}

.forth-section-title {
  color: #093771;
  font-weight: 800;
  margin-bottom: 16px;
  font-size: 2.0em;
}

.accordion {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 8px #bedafd33;
  margin: 10px 0 13px 0;
  overflow: hidden;
  transition: box-shadow 0.22s;
}

.accordion-header {
  font-size: 1.08em;
  color: #136cfb;
  font-weight: 700;
  cursor: pointer;
  padding: 19px;
  background: #f7fbff;
  transition: background 0.22s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 4px solid #136cfb22;
}

.accordion-header:hover {
  background: #ecf6ff;
}

.accordion-content {
  padding: 0 19px 16px 19px;
  display: none;
  color: #122;
  animation: fadeInY 0.35s;
}

.accordion-content.active {
  display: block;
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
  color: #0080e0;
}

.accordion-icon {
  margin-left: 10px;
  transition: transform 0.3s;
}

/* Content section (explanatory block) polished design */
.content-section {
  max-width: 1100px;
  margin: 0 auto 28px auto;
  background: #ffffff;
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: 0 3px 16px #cfe4fd44;
}

.content-section h2 {
  font-size: 1.6rem;
  color: #093771;
  font-weight: 800;
  margin-bottom: 12px;
}

.content-section p {
  color: #374151;
  margin-bottom: 10px;
}

.content-section ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
  display: grid;
  gap: 10px;
}

.content-section li {
  position: relative;
  padding-left: 28px;
  color: #123;
}

.content-section li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0.85em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #136cfb;
  box-shadow: 0 0 0 3px #e9f3ff;
}

/* Subtle stagger on list reveal */
.content-section.show-on-scroll.visible li {
  animation: fadeInY .45s cubic-bezier(.22, 1, .36, 1) both;
}

.content-section.show-on-scroll.visible li:nth-child(1) {
  animation-delay: .02s;
}

.content-section.show-on-scroll.visible li:nth-child(2) {
  animation-delay: .06s;
}

.content-section.show-on-scroll.visible li:nth-child(3) {
  animation-delay: .10s;
}

.content-section.show-on-scroll.visible li:nth-child(4) {
  animation-delay: .14s;
}

.content-section.show-on-scroll.visible li:nth-child(5) {
  animation-delay: .18s;
}

@media (max-width: 700px) {
  .content-section {
    padding: 18px 14px;
    border-radius: 14px;
  }

  .content-section h2 {
    font-size: 1.3rem;
  }
}

/* Dark mode for content section */
[data-theme="dark"] .content-section {
  background: #0f1a31;
  box-shadow: 0 3px 16px #00000077;
}

[data-theme="dark"] .content-section h2 {
  color: #9fc4ff;
}

[data-theme="dark"] .content-section p {
  color: #c9dbff;
}

[data-theme="dark"] .content-section li {
  color: #dbe7ff;
}

[data-theme="dark"] .content-section li::before {
  background: #85b7ff;
  box-shadow: 0 0 0 3px #102446;
}

/* Etken Madde section styling */
#etken-madde {
  max-width: 1100px;
  margin: 0 auto 28px auto;
  background: #ffffff;
  border-radius: 18px;
  padding: 24px 22px;
  box-shadow: 0 3px 16px #cfe4fd44;
}

#etken-madde>h2 {
  font-size: 1.6rem;
  color: #093771;
  font-weight: 800;
  margin: 2px 6px 12px 6px;
}

#etken-madde .accordion {
  margin: 10px 6px 13px 6px;
  border-radius: 14px;
}

#etken-madde .accordion-header {
  padding: 18px;
  font-size: 1.02em;
}

#etken-madde .accordion-content {
  padding: 0 18px 16px 18px;
  font-size: 0.98em;
}

/* Enter animation when revealed */
#etken-madde.show-on-scroll.visible {
  animation: fadeInY 0.7s cubic-bezier(.22, 1, .36, 1) both;
}

@media (max-width: 700px) {
  #etken-madde {
    padding: 16px 12px;
    border-radius: 14px;
  }

  #etken-madde>h2 {
    font-size: 1.35rem;
    margin: 2px 2px 10px 2px;
  }
}

/* Dark theme for Etken Madde */
[data-theme="dark"] #etken-madde {
  background: #0f1a31;
  box-shadow: 0 3px 16px #00000077;
}

[data-theme="dark"] #etken-madde>h2 {
  color: #9fc4ff;
}

/* KART/SECTION ANİMASYONLARI: Animasyonlar section ve .show-on-scroll ile tetiklenir */
.show-on-scroll {
  opacity: 0;
  transform: translateY(48px);
  transition: all .8s cubic-bezier(.22, 1, .37, 1);
}

.show-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.carousel-inner,
.carousel-wrapper-hemostaz {
  display: flex;
  transition: transform 0.6s cubic-bezier(.22, 1, .35, 1);
}

.carousel-item,
.carousel-card {
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 3px 12px #cfe4fd44;
  padding: 26px;
  margin: 10px;
  color: #124;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), box-shadow .28s, opacity .28s;
}

/* Hemostaz slider layout */
.carousel-container-hemostaz {
  position: relative;
  overflow: hidden;
}

.carousel-wrapper-hemostaz {
  will-change: transform;
}

.carousel-card {
  flex: 0 0 320px;
}

@media (max-width: 900px) {
  .carousel-card {
    flex-basis: 280px;
  }
}

@media (max-width: 520px) {
  .carousel-card {
    flex-basis: 85vw;
  }
}

.carousel-controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.carousel-controls .control-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
}

.carousel-controls #prev {
  left: 6px;
}

.carousel-controls #next {
  right: 6px;
}

/* Beautify Hemostaz cards */
.homestaz-section .carousel-card {
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  border: 1px solid #e6f0ff;
  opacity: .85;
}

.homestaz-section .carousel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px #cfe4fd77;
  opacity: 1;
}

.homestaz-section .carousel-card.is-active {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px #cfe4fd66;
  opacity: 1;
}

.homestaz-section .carousel-card h3 {
  color: #093771;
  margin-bottom: 8px;
}

.homestaz-section .carousel-card .card-content {
  color: #374151;
}

/* Dark theme for Hemostaz cards */
[data-theme="dark"] .homestaz-section .carousel-card {
  background: linear-gradient(180deg, #0f1a31, #0b1324);
  border-color: #1b2a48;
  box-shadow: 0 3px 12px #00000077;
  opacity: .9;
}

[data-theme="dark"] .homestaz-section .carousel-card:hover {
  box-shadow: 0 8px 24px #000000aa;
}

[data-theme="dark"] .homestaz-section .carousel-card h3 {
  color: #9fc4ff;
}

[data-theme="dark"] .homestaz-section .carousel-card .card-content {
  color: #c9dbff;
}

.carousel-item .author,
.carousel-card .author {
  margin-top: 12px;
  color: #4980be;
  font-weight: 600;
  font-size: .92em;
}

.carousel-buttons button,
.control-btn {
  background: #146cfb11;
  border: none;
  border-radius: 50%;
  font-size: 1.15em;
  cursor: pointer;
  padding: 10px;
  color: #136cfb;
  box-shadow: 0 1px 7px #136cfb22;
  margin: 0 3px;
  transition: background 0.22s, color 0.22s;
}

.carousel-buttons button:hover,
.control-btn:hover {
  background: #136cfb;
  color: #fff;
}

.contact-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: #f7fbff;
  padding: 36px 24px;
  border-radius: 19px;
  box-shadow: 0 2px 10px #93cdf544;
  gap: 20px;
}

.contact-info {
  min-width: 220px;
}

.contact-info p,
.contact-info i {
  font-size: 1.06em;
  margin: 6px 0;
}

/* TABLE YENİ TASARIM */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  box-shadow: 0 2px 12px #cde3f955;
  border-radius: 15px 15px 0 0;
  overflow: hidden;
  background: #f9fbff;
}

th,
td {
  padding: 10px 16px;
  border-bottom: 1px solid #e3eefa77;
}

th {
  background: #e1eefb55;
  color: #136cfb;
  font-weight: 700;
}

tr:last-child td {
  border-bottom: none;
}

/* Polished layout for the dual-table section */
.content-seven-section {
  max-width: 1100px;
  margin: 0 auto 28px auto;
}

.content-seven-section .table-container {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 12px #cfe4fd44;
  padding: 10px;
}

.content-seven-section .table-container+.table-container {
  margin-top: 14px;
}

@media (min-width: 900px) {
  .content-seven-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .content-seven-section .table-container+.table-container {
    margin-top: 0;
  }
}

/* Subtle zebra and hover effects for better readability */
.content-seven-section table tr:nth-child(even) td {
  background: #f7fbff;
}

.content-seven-section table tr:hover td {
  background: #eef6ff;
}

/* Compact table on small screens */
@media (max-width: 520px) {

  .content-seven-section table th,
  .content-seven-section table td {
    padding: 9px 12px;
  }
}

/* Dark mode adjustments for the section */
[data-theme="dark"] .content-seven-section .table-container {
  background: #0f1a31;
  box-shadow: 0 2px 12px #00000088;
}

[data-theme="dark"] .content-seven-section table tr:nth-child(even) td {
  background: #0e192f;
}

[data-theme="dark"] .content-seven-section table tr:hover td {
  background: #12203e;
}

/* Content eight (image + references) side-by-side and carousel controls */
.content-eight-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 18px;
  padding: 25px;
}

@media (max-width: 900px) {
  .content-eight-section {
    grid-template-columns: 1fr;
  }
}

.right-eight-side .carousel {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 2px 12px #cfe4fd44;
  background: #fff;
}

.right-eight-side .carousel-inner {
  display: flex;
}

.right-eight-side .carousel-buttons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.right-eight-side .carousel-buttons button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
}

.right-eight-side .carousel-buttons button:first-child {
  left: 8px;
}

.right-eight-side .carousel-buttons button:last-child {
  right: 8px;
}

.right-eight-side .carousel-item {
  min-width: 100%;
  box-sizing: border-box;
}

.right-eight-side {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.left-eight-side img {
  border-radius: 16px;
  box-shadow: 0 2px 12px #cfe4fd44;
}

/* Improve touch on mobile */
.right-eight-side .carousel {
  touch-action: pan-y;
}

/* Dark mode for carousel container */
[data-theme="dark"] .right-eight-side .carousel {
  background: #0f1a31;
  box-shadow: 0 2px 12px #00000088;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .banner {
    flex-direction: column;
    gap: 12px;
    padding: 2em 0.5em;
  }

  .banner-right-container {
    flex-direction: row;
  }

  .main,
  .forth-content {
    flex-direction: column;
    align-items: center;
  }

  .forth-section {
    min-height: 560px;
    align-items: center;
    justify-content: center;
  }
  .forth-content { align-items: center; justify-content: center; text-align: center; }

  .second-main-container,
  .third-section {
    flex-direction: column;
    gap: 16px;
  }

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

@media (max-width: 700px) {
  header {
    padding: 0 1vw;
    min-height: 56px;
  }

  .logo img {
    height: 38px;
  }

  .hamburger-menu {
    display: flex;
  }

  .menu {
    display: none;
  }

  /* .banner h2 {
    font-size: 1.3em;
  } */

  .banner,
  .forth-section {
    border-radius: 0 0 14px 14px;
  }

  .section-title,
  .forth-section-title {
    font-size: 1.2em;
  }

  .second-main-container,
  .third-section,
  .forth-content {
    gap: 12px;
  }
  /* Contact section mobile improvements */
  .contact-section {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 22px 10px;
    gap: 14px;
  }
  .contact-logo img { max-width: 140px; height: auto; }
  .contact-info { width: 100%; }
  .contact-info p { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 1rem; }
  .contact-info .address { max-width: 92vw; word-break: break-word; }
}

/* Backdrop when mobile menu is open */
body.mobile-menu-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(2,10,30,.45);
  backdrop-filter: blur(2px);
  z-index: 90;
}

/* Prevent background scroll when menu is open */
body.no-scroll { overflow: hidden; }

@media (max-width: 520px) {

  .banner,
  .forth-section {
    padding: 2vw 2vw;
  }

  .second-textInfo-container,
  .carousel-item,
  .carousel-card,
  .forth-content {
    padding: 12px 7px;
  }

  .axiostat-img {
    width: 72vw;
  }

  .contact-section {
    flex-direction: column;
    padding: 18px 8px;
    border-radius: 7px;
  }

  .contact-logo img {
    max-width: 120px;
  }
  .contact-info p { font-size: 0.98rem; }
}

/* THEME TOGGLE BUTTON */
.theme-toggle {
  background: transparent;
  border: 1px solid #b8d3ff;
  color: #2e5090;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
  position: fixed;
  right: calc(16px + env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 2000;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .10);
}

.theme-toggle i {
  pointer-events: none;
  font-size: 1.2em;
}

@media (max-width: 700px) {
  .theme-toggle {
    width: 56px;
    height: 56px;
    right: calc(14px + env(safe-area-inset-right));
    bottom: calc(22px + env(safe-area-inset-bottom));
  }

  .theme-toggle i {
    font-size: 1.3em;
  }
}

.theme-toggle:hover {
  background: #e2f0ff;
  color: #136cfb;
  border-color: #9ec2ff;
}

/* DARK THEME OVERRIDES */
:root[data-theme="dark"] body,
[data-theme="dark"] body {
  background: #0b1220;
  color: #e7efff;
}

[data-theme="dark"] header {
  background: #0e1627cc;
  border-bottom-color: #1b2a48;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .35);
}

[data-theme="dark"] .logo img {
  filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
}

[data-theme="dark"] .menu li a {
  color: #c9dbff;
}

[data-theme="dark"] .menu li a:hover,
[data-theme="dark"] .menu li a.active {
  background: #142544;
  color: #85b7ff;
  box-shadow: 0 2px 16px 0 #081326;
}

[data-theme="dark"] .hamburger-menu span {
  background: #c9dbff;
}

[data-theme="dark"] .menu.active {
  background: #0e1627;
  box-shadow: 0 2px 24px #000;
}

[data-theme="dark"] .banner {
  background: linear-gradient(110deg, #0e1627cc 65%, #0b1324bb 95%), url('assets/banner.jpg') center/cover no-repeat;
  box-shadow: 0 2px 18px #00000055;
}

[data-theme="dark"] .bacground-overlay {
  background-color: #00051a;
  opacity: .55;
}

[data-theme="dark"] .banner h2 {
  color: #9fc4ff;
  text-shadow: none;
}

[data-theme="dark"] .axiostat-img {
  background: transparent;
  box-shadow: 0 4px 18px #00000066;
}

[data-theme="dark"] .axiostat-info {
  background: transparent;
  box-shadow: none;
}

[data-theme="dark"] .second-textInfo-container {
  background: #0e1627;
  box-shadow: 0 1px 6px #00000080;
}

/* Dark theme surface for second section */
[data-theme="dark"] .second .second-main-container {
  background: linear-gradient(180deg, #0f1a31 0%, #0b1324 100%);
  box-shadow: 0 3px 16px #00000077;
}

[data-theme="dark"] .second-textInfo-pbt {
  color: #85b7ff;
}

[data-theme="dark"] .second-textInfo-content {
  color: #c9dbff;
}

[data-theme="dark"] .right .icon-container {
  background: #0f1a31;
  box-shadow: 0 2px 7px #00000066;
}

[data-theme="dark"] .icon-container i {
  color: #85b7ff;
}

[data-theme="dark"] .icon-title {
  color: #e7efff;
}

[data-theme="dark"] .icon-content {
  color: #b4c6e8;
}

[data-theme="dark"] .icon-container:hover {
  background: #12203e;
}

[data-theme="dark"] .forth-section {
  background-image: linear-gradient(120deg, rgba(15, 26, 49, .78), rgba(11, 19, 36, .62)), url('assets/banner-second.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: 0 2px 14px #00000077;
}

[data-theme="dark"] .forth-content {
  color: #dbe7ff;
}

[data-theme="dark"] .forth-section-title {
  color: #9fc4ff;
}

[data-theme="dark"] .accordion {
  background: #0f1a31;
  box-shadow: 0 2px 8px #00000077;
}

[data-theme="dark"] .accordion-header {
  background: #0e192f;
  color: #9fc4ff;
  border-left-color: #24477f;
}

[data-theme="dark"] .accordion-header:hover {
  background: #12203e;
}

[data-theme="dark"] .accordion-content {
  color: #e7efff;
}

[data-theme="dark"] .carousel-item,
[data-theme="dark"] .carousel-card {
  background: #0f1a31;
  box-shadow: 0 3px 12px #00000077;
  color: #e7efff;
}

[data-theme="dark"] .carousel-item .author,
[data-theme="dark"] .carousel-card .author {
  color: #85b7ff;
}

[data-theme="dark"] .carousel-buttons button,
[data-theme="dark"] .control-btn {
  background: #102446;
  color: #9fc4ff;
  box-shadow: 0 1px 7px #00000066;
}

[data-theme="dark"] .carousel-buttons button:hover,
[data-theme="dark"] .control-btn:hover {
  background: #2a5fbd;
  color: #fff;
}

[data-theme="dark"] table {
  background: #0f1a31;
  box-shadow: 0 2px 12px #00000077;
}

[data-theme="dark"] th {
  background: #0e192f;
  color: #9fc4ff;
}

[data-theme="dark"] td,
[data-theme="dark"] th {
  border-bottom-color: #152544;
  color: #dbe7ff;
}

[data-theme="dark"] .contact-section {
  background: #0f1a31;
  box-shadow: 0 2px 10px #00000077;
}

[data-theme="dark"] .theme-toggle {
  border-color: #274678;
  color: #c9dbff;
}

[data-theme="dark"] .theme-toggle:hover {
  background: #102446;
  color: #85b7ff;
  border-color: #3763a7;
}

/* UNIVERSAL RESPONSIVE MEDIA FIXES */
img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

.logo img {
  max-height: 56px;
  height: auto;
}

/* Second section image should never overflow */
.axios-second-image {
  width: 100%;
  max-width: 450px;
  height: auto;
  object-fit: contain;
}

/* Third section left image: override inline height on mobile/any */
.third-section .left img {
  width: 100%;
  height: auto !important;
  max-height: 140px;
  object-fit: contain;
}

/* Eight section clinic image full width but keep ratio */
.left-eight-side img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Banner product image should scale gracefully */
.axiostat-img {
  max-width: 260px;
  width: 100%;
  height: auto;
}

@media (max-width: 700px) {
  .axiostat-img {
    max-width: 70vw;
  }
}

/* Axiostat info alignment fixes */
.banner-right-container {
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.axiostat-info {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
}

.axiostat-info-e {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.axiostat-info-e img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.axiostat-info-fda {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.15;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width:700px) {
  .banner-right-container {
    justify-content: center;
  }

  .axiostat-info {
    gap: 8px;
    padding: 5px 10px;
    font-size: 0.85rem;
  }

  .axiostat-info-e {
    width: 20px;
    height: 20px;
  }

  .axiostat-info-fda {
    font-size: 0.82rem;
  }
}

/* LEGACY BANNER LOOK (desktop) */
@media (min-width: 1024px) {
  .banner {
    border-radius: 0;
    box-shadow: none;
    background: url('assets/banner.jpg') center center/cover no-repeat;
    padding: 12em 6em 12em 3em;
  }

  .banner-right-container {
    flex-direction: column;
  }

  .axiostat-img {
    max-width: 350px;
  }
}

/* Restore stronger overlay like original */
.bacground-overlay {
  opacity: .62;
}

/* Restore legacy banner title styling */
.banner-left-test {
  color: #efefef;
  font-size: 32px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}
@media (max-width: 1024px) {
  .banner-left-test { text-align: center; display: block; margin: 0 auto; }
}
@media (max-width: 700px) {
  .banner-left-test { text-align: center; font-size: 28px; }
}