:root {
  --primary: #082f49;
  --primary-600: #2c5282;
  --primary-700: #2a4365;
  --accent: #3b82f6;
  --dark: #003d4c;
  --text: #ffffff;
  --text-dark: #082f49;
  --muted: #5b6b73;
  --bg: #ffffff;
  --bg-light-blue: #eff6ff;
  --section: #f6f9fa;
  --radius: 6px;
  --radius-md: 15px;
  --radius-lg: 30px;
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base */
html,
body {
  font-family: "Poppins", "HelveticaCustom", Arial, sans-serif;
  color: var(--text-dark);
  background: var(--bg);
}

a {
  text-decoration: none;
  color: inherit;
}

.top-header {
  background-color: var(--primary);
  font-size: 0.875rem;
  padding: 0.5rem 12.5%;
  height: 65px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-header a {
  color: var(--text) !important;
  font-size: 1rem;
  font-weight: 500;
}

@media screen and (max-width: 1200px) {
  .top-header {
    display: none;
  }
}

.contact-info-header {
  display: flex;
  gap: 1.25rem;
}

.social-links-header {
  display: flex;
  gap: 0;
}

.social-links-header a {
  color: var(--text) !important;
  font-size: 1.25rem;
}

.social-links-header button {
  margin-left: 35px;
  padding-left: 5px;
  padding-right: 5px;
  background: #fff;
  color: var(--primary) !important;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 5px;
}

.header-area {
  position: relative;
  background-image: url("img/HeroBackground.png");
  overflow: hidden;
}

.header-area::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(5, 96, 138, 0.15);
  pointer-events: none;
  z-index: 100;
}

.logo-text {
  color: var(--primary) !important;
  font-size: 1.5rem;
  padding-left: 10px;
  font-weight: bold;
  letter-spacing: 0.2px;
}
.menu a {
  color: var(--text-dark);
  background: transparent !important;
  padding: 0.5rem 0.875rem !important;
  border-radius: 999px !important;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.hamburger span {
  background-color: var(--text);
  width: 1.563rem;
  height: 0.188rem;
  margin: 0.125rem 0;
  transition: 0.4s;
  z-index: 999;
}

.topbar {
  display: flex;
  top: 0;
  width: 100%;
  padding-left: 12.5%;
  padding-right: 12.5%;
  justify-content: space-between;
  align-items: center;
  padding-top: 12.5px;
  color: var(--text-dark) !important;
  box-shadow: none !important;
  z-index: 1000;
}

.portal-header {
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.logo a:hover {
  color: inherit;
}
.logo img {
  height: 2.5rem;
  width: auto;
}
.menu {
  display: flex;
  list-style: none;
}
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.313rem;
  transition: all 0.3s ease;
}

.hamburger.active {
  transition: all 0.3s ease;
}

.hamburger.active span {
  background-color: var(--text);
}

/* Add hamburger animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -5px);
}

.appointment-top {
  display: block;
}

.appointment-top-mobile {
  display: none;
}

.top-header-mobile {
  display: none;
}

@media screen and (max-width: 1200px) {
  .hamburger {
    display: flex;
    color: var(--text-dark);
  }
  .hamburger span {
    background-color: #000;
  }

  .menu.active {
    display: flex;
  }

  .menu a {
    color: var(--text);
  }
  .menu li {
    transform: translateY(20px);
    animation: fadeIn 0.5s ease forwards;
  }
  @keyframes fadeIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .menu li:nth-child(1) {
    animation-delay: 0.1s;
  }
  .menu li:nth-child(2) {
    animation-delay: 0.2s;
  }
  .menu li:nth-child(3) {
    animation-delay: 0.3s;
  }
  .menu li:nth-child(4) {
    animation-delay: 0.4s;
  }

  .topbar {
    flex-direction: row; /* Changed from column to row */
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
  }
  .logo {
    margin-bottom: 0; /* Removed margin-bottom */
    z-index: 990;
  }
  .menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary);
    flex-direction: column;
    padding-top: 50px;
    padding-left: 10px;
    gap: 1.5rem;
    display: none;
    z-index: 991;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .menu a {
    font-weight: 500;
  }

  .appointment-top {
    display: none !important;
  }

  .appointment-top-mobile {
    align-self: center;
    width: 95%;
    padding: 12px 0;
    text-align: center;
    border-radius: 8px;
    display: block;
    background-color: var(--text);
    bottom: 20px;
    right: 20px;
    z-index: 999;
  }

  .appointment-top-mobile a {
    color: var(--primary) !important;
  }

  .top-header-mobile {
    display: block;
    border-top: 1px solid #fff;
    padding: 2rem 0.5rem;
    width: 100%;
    margin: 0 auto;
  }

  .contact-info-header-mobile {
    padding-bottom: 20px;
  }
}
@media screen and (max-width: 768px) {
  .h1 {
    font-size: 2rem;
  }
  .h2 {
    font-size: 1.5rem;
  }
}
@media screen and (max-width: 480px) {
  body {
    padding: 0px;
  }
  .h1 {
    font-size: 1.5rem;
  }
  .h2 {
    font-size: 1.2rem;
  }
  .header {
    padding: 1rem 0.5rem;
  }
}
/* Parallax Header */
.parallax-header {
  position: relative;
  width: 100%;
  padding-top: 12.5%;
  padding-bottom: 12.5%;
  padding-left: 11%;
  overflow: hidden;
  z-index: 1;
}
.header-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 2.5rem;
}

.doctor-details p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: clamp(0.95rem, 1.8vw, 1.125rem);
  color: #2d3748;
}

.header-image {
  position: absolute;
  top: 50%;
  left: 65%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translate(-50%, -50%);
  opacity: 1;
  z-index: -1;
}

.header-bg-ring {
  position: absolute;
  top: 53.5%;
  left: 68.5%;
  width: 60%;
  height: 60%;
  object-fit: contain;
  transform: translate(-50%, -50%);
  opacity: 1;
  z-index: -2;
}

@media screen and (max-width: 1075px) {
  .parallax-header {
    padding-top: 0;
    padding-left: 0;
    height: 650px;
  }

  .doctor-details {
    position: relative; /* Make parent positioned */
    width: 100%;
    text-align: center;
  }

  .header-content {
    padding: 30px 1rem;
  }

  .doctor-details img {
    padding: 0 30px;
  }

  .doctor-details p {
    padding: 0 40px;
    display: flex;
    flex-direction: column;
  }

  .hide-mobile {
    display: none;
  }

  .doctor-details .spbutton {
    display: block;
    width: 100%;
    position: relative;
  }

  .header-image {
    height: 450px !important;
    width: 450px !important;
    left: 50%;
    top: 67.5%;
    min-height: 450px !important;
    max-height: 450px !important;
    min-width: 450px !important;
    max-width: 450px !important;
  }

  .header-bg-ring {
    left: 60%;
    height: 300px !important;
    width: 300px !important;
    top: 80%;
    padding: 0;
    min-height: 300px !important;
    max-height: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
  }
}

/* Update Bengali font sizes */
[data-lang="bn"] .doctor-name {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
}

[data-lang="bn"] .doctor-degree {
  font-size: clamp(1.3rem, 2.8vw, 2.3rem);
}

[data-lang="bn"] .doctor-specialty {
  font-size: clamp(1.1rem, 2.3vw, 1.8rem);
}

/* Bengali Font Setup */
@font-face {
  font-family: "Kalpurush";
  src: url("fonts/Kalpurush.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  unicode-range: U+0980-09FF; /* Bengali unicode range */
}

/* Apply Kalpurush font to Bengali text */
[lang="bn"] {
  font-family: sans-serif, "Kalpurush";
}

/* Specific Bengali text elements */
[lang="bn"] h1,
[lang="bn"] h2,
[lang="bn"] h3,
[lang="bn"] h4,
[lang="bn"] h5,
[lang="bn"] p,
[lang="bn"] li,
[lang="bn"] span {
  font-family: sans-serif, "Kalpurush" !important;
}

/* English Font Setup */
@font-face {
  font-family: "HelveticaCustom";
  src: url("fonts/Helvetica.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  unicode-range: U+0000-00FF; /* Basic Latin + Latin-1 Supplement */
}

/* Apply Helvetica to English text */
[lang="en"] {
  font-family: "HelveticaCustom", Helvetica, Arial, sans-serif;
}

/* Specific English text elements */
[lang="en"] h1,
[lang="en"] h2,
[lang="en"] h3,
[lang="en"] h4,
[lang="en"] h5,
[lang="en"] p,
[lang="en"] li,
[lang="en"] span {
  font-family: "Poppins", "HelveticaCustom", Helvetica, Arial, sans-serif !important;
}

.cbholder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(325px, 1fr));
  gap: 1.25rem;
  width: min(1450px, 100%);
  padding: 25px 1.25rem;
  margin: 0 auto;
  color: white;
}

.custombutton {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-light-blue);
  padding: 10px 20px;
  border: 0px;
  border-radius: 20px;
  max-width: 40rem;
  width: 100%;
  font-size: 1.125rem;
}

.custombutton a {
  font-size: 1.375rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--primary);
}

.diagonal-arrow::after {
  content: "↗";
  margin-left: 0.1rem;
  font-size: 1rem;
  color: var(--text);
}

.diagonal-arrow-white::after {
  content: "↗";
  margin-left: 0.1rem;
  font-size: 1rem;
  color: var(--primary);
}

@media screen and (max-width: 28.125rem) {
  .custombutton {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .custombutton a {
    padding: 0.5rem 0 0.5rem 3%;
    font-size: 1.2rem;
  }

  .custombutton i {
    font-size: 1.5rem;
    padding: 2%;
  }
}
.custombutton i {
  font-size: 2.188rem;
  padding: 4%;
}

.custombutton:hover {
  border-color: #0d7d9e;
  box-shadow: 0 0 0.125rem #0d7d9e;
}

.headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

.headline img {
  max-width: 100%;
  height: auto;
}
.single-service-holder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.25rem;
  align-items: center;
  justify-content: center;
  width: min(1450px, 100%);
  padding: 0 1.25rem;
  margin: 0 auto;
}

.service-card {
  display: flex;
  max-width: 40rem;
  width: 100%;
  height: 100%;
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
  border-radius: 30px;
  background: var(--bg-light-blue);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* .service-card {
  max-width: 40rem;
  width: 100%;
} */

.service-card img {
  align-self: center;
}

.service-card img {
  position: relative;
  margin-bottom: 25px;
  width: 100%;
  height: 225px;
  border-radius: 30px;
  flex-shrink: 0;
}

.service-info {
  padding-right: 50px;
}

.service-info h3 {
  color: #082f49;
  font-size: 1.5rem;
  padding-right: 25px;
  font-weight: 700;
}

ul.brxe-list {
  list-style: none;
  padding-left: 0;
}

ul.brxe-list li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.75em;
}

ul.brxe-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 1em;
  height: 1em;
  background-repeat: no-repeat;
  background-image: url("data:image/svg+xml;utf8,<?xml version='1.0' encoding='utf-8'?><svg aria-hidden='true' focusable='false' data-prefix='fas' data-icon='check-circle' class='svg-inline--fa fa-check-circle fa-w-16' role='img' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path fill='%230369a1' d='M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z'></path></svg>");
}

.special-card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  padding: 0 1.25rem;
  width: min(1450px, 100%);
  margin: 25px auto;
}

.special-card-container > :first-child {
  grid-column: span 2;
}

.special-card {
  padding: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 30px;
  background: var(--bg-light-blue);
  transition: transform 0.3s ease;
}

.endoscopy-description {
  color: var(--primary);
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 800px;
}

.special-card-btn {
  flex-shrink: 0;
}

.special-message {
  font-size: 1rem;
  color: #fff;
  background: var(--primary);
  padding: 3.5rem;
  border-radius: 30px;
}

.service-info-text-mobile {
  display: none;
}

@media screen and (max-width: 800px) {
  .special-card-container {
    grid-template-columns: 1fr;
  }

  .special-card-container > :first-child {
    grid-column: span 1;
  }
  .special-card {
    width: 100%;
    flex-direction: column;
    padding: 1rem 1rem 2rem 1rem;
    align-items: flex-start;
  }

  .service-info {
    font-size: 0.75rem;
    margin-bottom: 1rem;
    padding-right: 0;
  }

  .service-info-text-mobile {
    display: block;
  }

  .service-info-text-pc {
    display: none;
  }

  .special-message {
    padding: 1.5rem;
    font-size: 14px;
  }
}

.guidelines-section {
  max-width: min(1400px, 100%);
  margin: 75px auto;
}

.guidelines-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.guidelines-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--primary);
  font-weight: 700;
}

.view-all-btn {
  background: #082f49;
  color: #fff;
  padding: 0.65rem 3rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.view-all-btn:hover {
  background: #0d5885;
  transform: translateY(-2px);
}

.view-all-btn-mobile {
  display: none;
}

.guidelines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.guideline-card {
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.guideline-card img {
  width: 100%;
  height: 225px;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.guideline-content {
  padding: 1.5rem 0 1.5rem 0.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.guideline-content h3 {
  color: #082f49;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.guideline-content p {
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.guideline-content .read-more {
  color: #0d7d9e;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
}

.guideline-content .read-more::after {
  content: " →";
  margin-left: 0.25rem;
  transition: margin-left 0.3s ease;
}

.guideline-card:hover .read-more::after {
  margin-left: 0.5rem;
}

@media (max-width: 768px) {
  .guidelines-section {
    padding: 2rem 5%;
    margin: 25px auto;
  }

  .guidelines-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .guidelines-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.modern-treatments-header {
  text-align: center;
  margin-bottom: 0.5rem;
}

.modern-treatments-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0;
}

.modern-treatments-header p {
  color: #4a5568;
  font-size: 1.1rem;
}

/* Visual Highlights Section */
.visual-highlights-section {
  background: #0c4a6e;
  color: #fff;
  overflow: hidden;
  margin-top: 5rem;
}

.gallery-showcase {
  max-width: min(1400px, 100%);
  margin: 25px auto;
  padding: 25px 0;
}

.highlights-header {
  margin-bottom: 2.5rem;
  position: relative;
}

.highlights-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #fff;
  font-weight: 700;
}

.highlights-header p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.highlights-header .view-all-btn {
  background: #fff;
  color: var(--primary);
  position: absolute;
  right: 0;
  top: 0;
}

.highlights-header .view-all-btn:hover {
  background: #f0f0f0;
  color: var(--primary);
}

.highlights-slider-container {
  position: relative;
  /* overflow: hidden; */
}

.highlights-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(450px, 1fr);
  gap: 1.5rem;
  transition: transform 0.4s ease;
  will-change: transform;
}

.highlight-card {
  position: relative;
  border-radius: 12px;
  width: 100%;
  aspect-ratio: 1;
  /* min-width: 400px; */
  flex-shrink: 0;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.highlight-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.highlights-nav-buttons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 5px;
  gap: 10px;
  margin-top: 1rem;
}

.highlights-nav-btn {
  display: flex;
  width: 50px;
  height: 50px;
  cursor: pointer;
  background: none;
  border: none;
}

.highlights-nav-btn img {
  /* make the image white */
  filter: invert(1) brightness(2);
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .visual-highlights-section {
    padding: 0 5% 0 5%;
  }

  .highlights-header {
    margin-bottom: 0.5rem;
  }

  .gallery-showcase {
    padding: 0 0;
  }

  .highlights-header .view-all-btn {
    position: static;
    display: inline-block;
    margin-top: 0.25rem;
  }

  .highlights-slider-container {
    overflow: hidden;
    width: 100%;
  }

  .highlights-header p {
    margin-bottom: 0rem;
  }

  .highlights-grid {
    grid-auto-columns: 100%;
    width: 100%;
    gap: 0;
  }

  .highlight-card {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    min-height: 300px;
  }

  .highlight-card img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  .highlights-nav-buttons {
    justify-content: center;
  }

  .highlights-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .highlights-nav-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

/*======link button======*/
.linkbutton {
  position: relative;
  width: min(1400px, 90%);
  background: var(--bg-light-blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius-lg);
  height: 225px;
  margin: 3rem auto;
  padding: 0 6rem 0 4rem;
}

/* Responsive for mobile */
@media (max-width: 768px) {
  .linkbutton {
    text-align: center;
    padding: 15px;
    height: auto;
    gap: 1rem;
    margin: 2rem auto;
    flex-direction: column;
  }
}

/*======news-card======*/
.blog-holder {
  padding: 3rem 1rem;
}

.title-holder {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.5rem;
  text-align: center;
}

.title-holder h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.title-holder img {
  max-width: 12rem;
  height: auto;
}

.single-blog-holder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 2rem;
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.single-news {
  background: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.single-news:hover {
  transform: translateY(-0.25rem);
}

.news-head {
  height: 12rem;
  overflow: hidden;
}

.news-head img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-body {
  padding: 1.5rem;
}

.news-content h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.news-content .news-point {
  color: #666;
  line-height: 1.6;
  font-size: 0.9375rem;
}

@media screen and (max-width: 48rem) {
  .single-blog-holder {
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1.5rem;
  }

  .news-head {
    height: 10rem;
  }

  .news-body {
    padding: 1rem;
  }
}

/*=====gallery-video======*/
.galleryvid {
  width: min(1400px, 100%);
  background: #fff;
  margin: 50px auto;
}

.galleryvid h2 {
  color: var(--primary);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  text-align: center;
  position: relative;
  font-weight: 700;
}

.video-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 1rem; /* smaller gap */
  justify-content: space-between; /* pushes cards to edges */
  width: min(1450px, 100%);
  margin: 0 auto;
}

.video-card {
  /* max-width: 700px; */
  height: 100%;
  width: 100%; /* ensures it fills its grid cell */
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-card iframe {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-md);
}

@media screen and (max-width: 1048px) {
  .galleryvid {
    margin: 15px auto;
    padding: 2rem 5%;
  }

  .video-grid {
    justify-content: center;
  }

  .video-card {
    max-width: 100%;
  }

  .video-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    padding-left: 1rem;
  }

  .view-all-btn-mobile {
    display: inline-block;
    width: 50%;
    text-align: center;
    padding: 0.5rem 0;
    font-size: 1rem;
  }

  .view-all-btn-pc {
    display: none;
  }

  .galleryvid h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .galleryvid {
    padding: 1.5rem 0;
  }

  .galleryvid h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .video-header {
    margin-bottom: 5px;
  }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .video-card {
    position: relative;
    width: 95%;
    margin: 0 auto;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: var(--radius-md);
  }

  .video-card iframe,
  .video-card video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain; /* Ensures full video shows */
  }
}

.video-container-header {
  width: min(1450px, 100%);
  margin: 0 auto 2rem auto;
  font-size: 1.5rem;
}

.category-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.video-container {
  position: relative;
  display: grid;
  width: min(1450px, 100%);
  margin: 50px auto;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media screen and (max-width: 950px) {
  .video-container {
    grid-template-columns: 1fr;
  }
}

#contact-us {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  background: var(--bg-light-blue);
  margin: 0;
  max-width: 100%;
  min-height: 450px;
  align-items: center;
}

.contact-us-top {
  text-align: center;
  padding: 2rem 1rem 0 1rem;
}

.contact-us-top-details {
  display: flex;
  gap: 1rem;
}

.contact-us-bottom {
  width: min(1450px, 100%);
  margin: 0 auto 4rem auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.contact-us-container {
  width: min(1450px, 100%);
  display: flex;
  justify-content: space-between;
  padding: 4rem 1.5rem;
  margin: 0 auto;
  gap: 2rem;
}

.contact-us-left {
  flex: 1;
  /* max-width: 800px !important; */
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.googlemap {
  width: 100%;
  height: 350px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.googlemap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.googlemap_1 {
  width: 100%;
  height: 475px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.googlemap_1 iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.contact-us-right {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-us-form {
  text-align: left;
  width: 100%;
}

.contact-us-form h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 2rem;
  color: var(--primary);
  font-weight: 700;
}

.contact-us-form h3 {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin: 1.25rem 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #2d3748;
}

.contact-us-form i {
  font-size: 1.5rem;
  color: #0d7d9e;
  flex-shrink: 0;
  margin-top: 0.15rem;
}
@media screen and (max-width: 864px) {
  .contact-us-container {
    flex-direction: column;
    padding: 2rem 1rem;
  }

  .contact-us-left,
  .contact-us-right {
    width: 100%;
  }

  .googlemap {
    height: 250px;
    width: 100%;
  }

  .googlemap_1 {
    height: 300px;
    width: 90%;
    margin: auto;
  }

  .contact-us-form h2 {
    font-size: 1.75rem;
  }

  .contact-us-form h3 {
    font-size: 1.1rem !important;
    margin: 1rem auto;
  }

  .video-container-header h2 {
    padding-left: 15px;
  }
}

@media screen and (max-width: 480px) {
  .contact-us-form h2 {
    font-size: 1.5rem;
    text-align: start;
  }

  .contact-us-form i {
    font-size: 1.25rem;
  }
}
@media screen and (max-width: 450px) {
  .contact-us-form h2 {
    font-size: 1.5rem;
  }

  .contact-us-form h3 {
    font-size: 0.9rem !important;
    line-height: 1.4;
    margin: 0.75rem 0;
  }

  .contact-us-form i {
    font-size: 1rem;
  }
}

.footer {
  width: 100%;
  display: flex;
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
  background-color: var(--primary);
  color: #ffffff;
}

.footer-left {
  padding: 2rem 12.5%;
  width: 50%;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-info {
  display: flex;
  height: 50px;
  align-items: center;
  gap: 0.75rem;
}

.footer-info a img {
  width: 50px;
  filter: brightness(0) invert(1);
}

.footer-info-text {
  max-width: 350px;
  font-size: 1.15rem;
  line-height: 1.25;
  font-weight: 500;
}

.social-container {
  display: grid;
  grid-template-columns: 40px 40px;
  grid-template-rows: 40px 40px;
  text-align: center;
  padding: 0;
  gap: 10px;
  border-radius: 0;
  color: var(--text);
}
.social-container h2 {
  color: #fff;
  margin-bottom: 1.5rem;
  color: var(--primary) !important;
  padding-right: 1rem;
  position: relative;
}

.social-icon {
  display: inline-block;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--primary);
  width: 35px;
  height: 35px;
  line-height: 35px;
  border-radius: 50%;
  transition: transform 0.3s ease, background 0.3s ease;
  background: var(--bg);
}

.footer-copyright-pc {
  display: flex;
}

.footer-copyright-mobile {
  display: none;
}

.footer-right {
  color: #fff;
  display: flex;
  padding: 0 12.5%;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 1.125rem;
  font-weight: 500;
  margin-top: 50px;
}

.footer-links a {
  display: flex;
  gap: 3rem;
  color: #8f9fa3;
  z-index: 10;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  font-size: 1.125rem;
  gap: 0.5rem;
  font-weight: 500;
  padding-top: 20px;
}

.footer-location {
  display: flex;
  flex-direction: column;
  font-size: 1.125rem;
  gap: 0.5rem;
  font-weight: 500;
  padding-top: 20px;
}

/* Responsive Design */
@media screen and (max-width: 1000px) {
  .footer {
    flex-direction: column;
  }

  .footer-left {
    width: 100%;
    padding: 2.5rem 1rem 0 1rem;
  }

  .footer-right {
    width: 100%;
    padding: 0 1rem 1rem 1rem;
  }

  .footer-links {
    margin-top: 1rem;
    flex-wrap: wrap;
  }

  .social-container {
    grid-template-columns: repeat(4, 40px);
    grid-template-rows: auto;
  }

  .footer-copyright-pc {
    display: none;
  }

  .footer-copyright-mobile {
    display: block;
  }
}
/*======resume======*/
.resume-section {
  padding: 1rem;
  max-width: min(1450px, 100%);
  margin: 0 auto;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 400px;
  margin-bottom: 3rem;
  padding: 2rem 0.5rem 2rem 0.5rem;
  background: var(--bg-light-blue);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
}

.profile-image {
  transform: translateY(-53.5px) scaleX(-1);
}

.profile-image img {
  height: 510px;
  object-fit: contain;
}

.profile-title h1 {
  color: var(--primary);
  font-size: 2.5rem;
}

.profile-title {
  font-size: 1rem;
  color: #666;
}

.profile-header::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 127px;
  height: 100px;
  width: 100px;
  border-bottom-right-radius: var(--radius-lg);
  box-shadow: 20px 20px 0px var(--bg);
}

.profile-header::after {
  content: "";
  position: absolute;
  bottom: 127px;
  right: 0;
  height: 100px;
  width: 100px;
  border-bottom-right-radius: var(--radius-lg);
  box-shadow: 20px 20px 0px var(--bg);
}

.bio-logo {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 127px;
  height: 127px;
  padding: 15px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  z-index: 10;
}

.bio-logo img {
  width: 110%;
  height: 110%;
  object-fit: contain;
}

.resume-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.resume-card {
  display: flex;
  gap: 2rem;
  background: white;
  padding: 2rem 0 2rem 0;
  border-radius: 15px;
}

.resume-card p {
  font-size: 18px;
}

.Curriculum-Vitae-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.Curriculum-Vitae {
  background: var(--bg-light-blue);
  padding: 1.15rem 1.65rem;
  margin-bottom: 0.5rem;
  flex: 1 1 calc(50% - 20px);
  min-width: 300px;
  font-size: 18px;
  /* margin: 10px; */
  list-style: none;
  color: var(--text-dark);
  border-radius: var(--radius-md);
}

.card-content h2 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 28px;
}

.experience-list {
  height: 150px;
  background: var(--primary);
  color: var(--text);
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  gap: 2rem;
}

.experience-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  font-size: 18px;
}

.experience-item .count {
  font-size: 2.25rem;
}

.publication {
  display: flex;
  height: 500px;
}

.publication-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.publication-content h2 {
  color: var(--primary);
  font-size: 2rem;
}

.bio-publication-image,
.publication-list {
  padding-top: 2.5rem;
  flex: 0 0 50%;
}

.publication-list {
  margin-bottom: 50px;
}

.bio-publication-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

@media screen and (max-width: 950px) {
  .profile-title h1 {
    font-size: 2rem;
  }

  .profile-title {
    text-align: left;
    padding-left: 10px;
  }

  .experience-list {
    height: auto;
    flex-wrap: wrap;
    flex-direction: row;
    padding: 0.25rem !important;
  }

  .publication {
    height: auto;
  }

  .bio-publication-image {
    display: none;
  }

  .publication-content a {
    width: 100%;
    text-align: center;
  }
}

/* Responsive design */
@media screen and (max-width: 950px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    justify-content: space-between;
    gap: 5rem;
    overflow: hidden;
  }

  .profile-image {
    position: absolute;
    bottom: 0;
    width: 200px;
    height: 200px;
    overflow: hidden;
    transform: translateY(0px) translateX(-50px) scaleX(-1);
  }

  .profile-image img {
    height: 100%;
    object-fit: cover;
  }

  .resume-card {
    padding: 0.5rem 0 0.5rem 0;
  }

  .card-content li {
    padding-left: 0;
  }
}
#samplereport {
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
  position: relative;
}

.sample-report-holder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 0 auto;
}

.sample-report-holder h1 {
  color: var(--primary);
  text-align: center;
  font-size: 2rem;
}

.sample-report img {
  max-height: 800px;
  width: auto;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 768px) {
  #samplereport {
    padding: 1rem;
  }

  .sample-report-holder h1 {
    font-size: 1.75rem;
  }

  .sample-report img {
    max-height: 500px;
    width: auto;
  }
}
/*------Online Portal-------*/
.portal-header {
  text-align: center;
  padding: 0 1rem;
}

.portal-header h1 {
  color: var(--primary);
  font-size: 2.5rem;
  margin: 0;
}

@media screen and (max-width: 768px) {
  .portal-header h1 {
    font-size: 2rem;
  }
}
.portal-cards {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.portal-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
}

.portal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 768px) {
  .portal-cards {
    gap: 1.5rem;
  }

  .portal-card {
    padding: 1.5rem;
  }

  .card-content i {
    font-size: 2.5rem;
  }
}

.expandable {
  cursor: pointer;
}

.expanded-content {
  overflow: hidden;
  transition: max-height 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  align-items: center;
  justify-content: center;
}
@keyframes clickPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
.expandable.active .expanded-content {
  max-height: 300px;
}

.health-card-content {
  max-width: min(500px, 80%);
  text-align: center;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
}

.health-card-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.info-link {
  color: #0d7d9e;
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.info-link:hover {
  background: rgba(13, 125, 158, 0.1);
}

.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.popup-content {
  position: relative;
  background: #fff;
  margin: 15% auto;
  padding: 20px;
  width: 80%;
  max-width: 600px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-height: 500px;
  overflow-y: auto;
}

.close-popup {
  position: absolute;
  right: 6px;
  top: 10px;
  font-size: 28px;
  cursor: pointer;
  color: #666;
}

.close-popup:hover {
  color: #000;
}

.download-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: #0d7d9e;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
}
#popupContent {
  white-space: pre-wrap;
  line-height: 1.6;
}
#popupTitle {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #0d7d9e;
}

.download-btn {
  display: block !important;
  text-align: center;
  width: fit-content;
  margin: 20px auto 0;
}

.button-container {
  margin-bottom: 1rem;
}

.download-btn:hover {
  background: #0a6a87;
}

/* Add smooth scrolling for better user experience */
.popup-content::-webkit-scrollbar {
  width: 8px;
}

.popup-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.popup-content::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.popup-content::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Buttons */
.spbutton {
  cursor: pointer;
  background: var(--primary);
  color: #fff !important;
  border: 0 !important;
  border-radius: 8px;
  padding: 0.75rem 2.25rem;
  box-shadow: var(--shadow-sm);
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}
.spbutton:hover {
  background: #0d5885 !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(8, 47, 73, 0.3);
}

/* Gallery controls */
.prev,
.next {
  background: rgba(0, 0, 0, 0.6) !important;
}
.prev:hover,
.next:hover {
  background: var(--primary-600) !important;
}

.gallery-section {
  /* Gradient background */
  background: linear-gradient(#ffffff, var(--primary));
  padding-bottom: 50px;
  margin-bottom: 50px;
}

.gallery-container-header {
  text-align: center;
  font-size: 1.5rem;
}

.category-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-light-blue);
  color: var(--text-dark);
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--primary);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.filter-active {
  background: var(--primary);
  color: #fff;
}

.gallery-container {
  width: min(1450px, 100%);
  margin: 0 auto 3rem;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
}

.highlight-card-gallery img {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.see-more-button-container {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 50px;
}

.see-more-button {
  background: #bae6fd;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

@media screen and (max-width: 1284px) {
  .gallery-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 860px) {
  .gallery-container {
    grid-template-columns: 1fr;
  }

  .gallery-section {
    padding-bottom: 10px;
  }

  .upload-date {
    font-size: 14px;
  }
}

.message-line {
  display: flex;
}

@media screen and (max-width: 1350px) {
  .message-line {
    font-size: 14px;
  }
}

/* Small tweaks */
.bio-top {
  margin-top: 90px !important;
  margin-bottom: 50px;
}

@media screen and (max-width: 950px) {
  .bio-top {
    margin-top: 10px !important;
  }
}
.title-holder h2,
.gallery-heading h2,
.contact-us-form h2 {
  color: var(--primary) !important;
}
.news-content h2 {
  color: var(--primary) !important;
}

.blog-container {
  max-width: min(1450px, 100%);
  margin: 1.25rem auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.25rem;
}

.blog-card {
  background: white;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  transition: transform 0.3s ease;
}

.blog-image {
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

/* Ensure read-more button stays at the bottom of the card */
.read-more-btn {
  margin-top: auto;
  display: inline-block;
  align-self: flex-start;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.read-more-btn:hover {
  color: #0d5885;
}

.read-more-btn::after {
  content: " →";
  margin-left: 0.15rem;
  transition: margin-left 0.3s ease;
}

.blog-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.blog-figure {
  display: flex;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.blog-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1200px) {
  .blog-figure {
    min-width: 0;
  }
  .blog-figure img {
    display: block;
  }
}

@media (max-width: 720px) {
  .blog-figure img {
    display: none;
  }
}

.publication-container {
  width: min(1450px, 100%);
  margin: 1.25rem auto;
  padding: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.publication-card {
  background: var(--bg-light-blue);
  display: flex;
  flex-direction: column;
  height: 100%;
  width: calc(33.333% - 0.833rem);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: transform 0.3s ease;
}

@media (max-width: 1200px) {
  .publication-card {
    width: calc(50% - 0.625rem);
  }
}
@media (max-width: 720px) {
  .publication-card {
    width: 100%;
  }
}

.publication-btn {
  width: fit-content;
}

.publication-read-more-btn {
  background: var(--accent);
}

.publication-card h3 {
  height: 50px;
}

.publication-image {
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.publication-image img {
  width: 100%;
  height: 250px;
  object-fit: fill;
  border-radius: var(--radius-md);
}

a.back-home {
  margin-top: 2rem;
  padding: 0.8rem 2rem;
  background: #2b6cb0;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

a.back-home:hover {
  background: #1f4e78;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.feature-slider {
  --btn-size: 44px;
  width: min(1400px, 90%);
  margin: 2rem auto;
  position: relative;
}
.feature-slider-viewport {
  overflow: hidden;
  border-radius: 14px;
}
.feature-slider-track {
  display: flex;
  will-change: transform;
  transition: transform 0.4s ease;
}
.feature-slide {
  flex: 0 0 100%;
  display: flex;
  /* grid-template-columns: 1fr 1fr; */
  flex-direction: row;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-light-blue);
  border-radius: var(--radius-lg);
  padding: 1rem;
  overflow: hidden;
}
.feature-slide-media img {
  position: relative;
  right: 0 !important;
  width: 100%;
  height: 475px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  display: block;
}
.feature-slide-body {
  padding: 1rem 1.25rem;
}
.feature-slide-title {
  margin: 0 0 2rem;
  color: var(--primary);
  font-size: 1.5rem;
}
.feature-slider::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 65px;
  width: 50px;
  height: 50px;
  background: transparent;
  border-bottom-left-radius: var(--radius-lg);
  box-shadow: -20px 20px 20px rgb(255, 255, 255);
  z-index: 2;
}

.feature-slider::after {
  content: "";
  position: absolute;
  left: 125px;
  bottom: 0px;
  width: 50px;
  height: 50px;
  background: transparent;
  border-bottom-left-radius: var(--radius-lg);
  box-shadow: -20px 20px 20px rgb(255, 255, 255);
  z-index: 2;
}

.navigation-dots {
  position: absolute;
  bottom: 0px;
  height: 65px;
  width: 125px;
  padding: 15px;
  border-top-right-radius: var(--radius-lg);
  background: var(--bg);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.feature-slider-btn {
  height: 42px;
  width: 42px;
  border: none;
  background: none;
  cursor: pointer;
}
.feature-slider-btn img {
  width: 100%;
  height: 100%;
}

.feature-slider-btn:hover {
  filter: brightness(1.05);
}
.feature-slider-btn:active {
  transform: scale(0.97);
}

.slider-indicators {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-top: 2.5rem;
  width: min(1450px, 100%);
}

.indicator {
  flex: 1;
  height: 4px;
  background: rgba(8, 47, 73, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: var(--primary);
}

.indicator:hover {
  background: rgba(8, 47, 73, 0.4);
}

/* Responsive */
@media (max-width: 900px) {
  .feature-slide {
    flex-direction: column-reverse;
    justify-content: flex-end;
    height: auto;
  }
  .feature-slide-media img {
    height: 220px;
  }

  .feature-slide-body {
    padding: 1rem 0 3rem 0;
  }

  ul.brxe-list li {
    margin-bottom: 0.25rem;
  }

  .feature-slider-viewport {
    position: relative;
  }

  .navigation-dots {
    padding: 8px;
    gap: 0.35rem;
    justify-content: center;
    align-items: center;
  }

  .feature-slider-btn {
    width: calc(var(--btn-size) * 0.85);
    height: calc(var(--btn-size) * 0.85);
    font-size: 1.25rem;
  }
}

/* Markdown content styling */
.markdown-container {
  max-width: min(1450px, 100%);
  margin: 2rem auto;
  padding: 1rem;
  background: #fff;
  border-radius: 6px;
}

/* Code block styling - formatted markdown with background */
.markdown-container .code-block {
  background: #eff6ff;
  border-radius: 15px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

/* Ensure all markdown elements inside code blocks are styled */
.markdown-container h1,
.markdown-container h2,
.markdown-container h3,
.markdown-container h4,
.markdown-container h5,
.markdown-container h6 {
  color: #082f49;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.markdown-container .code-block p {
  margin: 0.75rem 0;
  line-height: 1.6;
}

.markdown-container .code-block ul {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
}

.markdown-container .code-block li {
  margin: 0.5rem 0;
}

.markdown-container .code-block strong {
  font-weight: 600;
  color: #082f49;
}

.markdown-container .code-block hr {
  border: none;
  border-top: 2px solid #cbd5e1;
  margin: 1rem 0;
}

/* Inline code styling */
.markdown-container code {
  background: #eee;
  padding: 0.15rem 0.3rem;
  border-radius: 3px;
  font-family: "Courier New", Courier, monospace;
}

.markdown-title {
  margin-bottom: 1rem;
}

.view-blog-image {
  max-height: 500px;
  width: 100%;
  margin-bottom: 20px;
  border-radius: 8px;
}

@media screen and (max-width: 950px) {
  .view-blog-image {
    max-width: 100%;
  }
}

.middle-body {
  padding: 2rem 1rem;
  max-width: min(1450px, 100%);
  margin: 50px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.doctor-photo-container {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  height: 100%;
  width: 100%;
}

.doctor-photo {
  display: flex;
  align-items: flex-end;
  height: 100%;
  width: 100%;
  transform: rotateY(180deg);
}

.doctor-photo img {
  width: 100%;
  height: 90%;
  object-fit: contain;
}

.background {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 70%;
  border-radius: var(--radius-md);
  background: var(--primary);
  z-index: -1;
}

.contact-form-container {
  background: var(--bg-light-blue);
  padding: 2rem;
  border-radius: var(--radius-lg);
}

.contact-form-container form {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.contact-form-container form div {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
  width: 100%;
}

.contact-form-container form label {
  font-weight: 600;
  color: #431407;
}

.contact-form-container form label::after {
  content: " *";
  color: #431407;
}

.contact-form-container form input,
.contact-form-container form textarea {
  padding-top: 0.75rem;
  border: none;
  border-bottom: 1px solid black;
  background: var(--bg-light-blue);
  font-size: 1rem;
}

.contact-form-container form textarea {
  height: 80px;
}

.contact-form-container form input:focus,
.contact-form-container form textarea:focus {
  outline: none;
  border-bottom: 2px solid var(--primary);
  color: #000;
}

.contact-row {
  display: flex;
  flex-direction: row !important;
  gap: 2rem;
}

.consultation-submit {
  align-self: flex-start;
  background: var(--primary);
  width: 100%;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 0.75rem 2rem !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

.consultation-submit:hover {
  background: #0d5885 !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(8, 47, 73, 0.3);
}

@media screen and (max-width: 1000px) {
  .middle-body {
    grid-template-columns: 1fr;
    margin-top: 0;
    padding-top: 0;
  }
  .doctor-photo-container {
    justify-content: center;
    margin-bottom: 2rem;
  }

  .contact-form-container {
    width: 100%;
  }

  .contact-row {
    flex-direction: column !important;
  }

  .contact-us-top-details {
    flex-direction: column;
  }
}

.footer-location-container {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.footer-language-toggle {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-language-toggle-btn {
  display: flex;
  padding-left: 0.5rem;
  gap: 1.25rem;
  font-size: 1.5rem;
}

@media screen and (max-width: 1000px) {
  .footer-location-container {
    flex-direction: column;
    align-items: flex-start;
  }
}

.latest-video {
  position: relative;
  width: min(1450px, 100%);
  height: fit-content;
  padding: 3.5rem;
  margin: 0 auto;
  text-align: center;
  border-radius: var(--radius-lg);
  overflow: hidden; /* ensures corners are respected */
  background: transparent;
}

/* Top 75% background layer */
.latest-video::before {
  content: "";
  position: absolute;
  inset: 0; /* fill full container */
  height: 55%; /* only top 75% filled */
  background-color: var(--bg-light-blue);
  border-radius: var(--radius-lg);
  pointer-events: none; /* doesn’t block clicks */
  z-index: 0;
}

.latest-video > * {
  position: relative;
  z-index: 1; /* content above the pseudo background */
}

.video-nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  margin: 1rem auto 2rem;
  position: relative;
}

.nav-video-btn {
  background: var(--primary);
  color: white;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

#prevVideoBtn {
  margin-right: -22px;
}

#nextVideoBtn {
  margin-left: -22px;
}

.latest-video-holder {
  width: 100%;
  border-radius: var(--radius-lg);
  flex: 1;
}

.latest-video-holder iframe {
  border-radius: var(--radius-md);
}

@media screen and (max-width: 768px) {
  .latest-video {
    width: 95%;
    padding: 2rem 0;
  }
  .latest-video-holder {
    width: 100%;
    height: 150px;
    object-fit: contain;
  }

  .latest-video-holder {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: var(--radius-md);
  }

  .video-nav-buttons {
    width: 100%;
    margin: 0 auto 1rem;
  }

  .latest-video-holder iframe,
  .latest-video-holder video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain; /* Ensures full video shows */
  }

  .nav-video-btn {
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
  }

  #prevVideoBtn {
    margin-right: -18px;
  }

  #nextVideoBtn {
    margin-left: -18px;
  }
}
