/* RESET */
body {
  font-family: "Rubik";
  font-weight: 400;
  line-height: 26px;
  color: #333;
  font-size: 14px;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html, body {
  overflow-x: hidden;
}

/* ========================= */
/* HEADER BASE */
/* ========================= */
.top-header {
  padding: 15px 0;
}

.top-header .row {
  display: flex;
  grid-template-columns: auto;
  align-items: center;
}

/* ========================= */
/* TABLET + MOBILE (≤ 992px) */
/* ========================= */
@media (max-width: 992px) {

  /* HIDE EXTRA SECTIONS */
  .top-header .address,
  .top-header .right-image {
    display: none !important;
  }


  /* FORCE 2 COLUMN LAYOUT */
  .top-header .row {
    flex-wrap: nowrap !important;
  }

  /* LOGO */
  .top-header .logo {
    flex: 0 0 50%;
    max-width: 50%;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  /* APPOINTMENT */
  .top-header .appointment {
    flex: 0 0 50%;
    max-width: 50%;
    justify-content: flex-end !important;
    text-align: right !important;
  }

}

/* ========================= */
/* MOBILE (≤ 768px) */
/* ========================= */
@media (max-width: 768px) {

  /* GAP BETWEEN LOGO & PHONE */
  .top-header .row {
    padding: 0 25px;
  }

  .top-header img {
    max-height: 60px;
  }

  .top-header .appointment{
    display: none !important;
  }

  .top-header .fw-bold,
  .top-header .fw-semibold {
    font-size: 14px;
  }

}

/* ========================= */
/* SMALL MOBILE (≤ 576px) */
/* ========================= */
@media (max-width: 576px) {

  /* SMALLER GAP */
  .top-header .row {
    padding: 0 15px;
  }

  .top-header img {
    max-height: 50px;
  }

  .top-header .fw-bold,
  .top-header .fw-semibold {
    font-size: 13px;
  }

}



/* ========================= */
/* NAVBAR BASE (DESKTOP) */
/* ========================= */

/* NAVBAR */
.navbar {
  padding: 14px 0;
  font-size: 14px;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 9999;
  margin-bottom: 0 !important;
}

.navbar .nav-link {
  font-weight: 600;
  color: #fff !important;
  margin: 0 12px;
  font-size: 14px;
  position: relative;
}


/* ========================= */
/* TABLET (≤ 992px) */
/* ========================= */


@media (max-width: 992px) {

  .navbar { 
    padding: 10px 0; 
  }

  .navbar .nav-link {
    font-size: 13px;
    margin: 0 8px;
  }

  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100% !important;   /* ✅ updated from 30% → 40% */
    background: #0a3d91;
    z-index: 9999;
  }

}


@media (max-width: 768px) {

  /* FULL WIDTH NAVBAR */
  .navbar {
    padding: 5px 10px;
    width: 100%;
    
  }

  .nav-link{
    font-size: 8px;
  }

  /*LEFT ALIGN */
  .navbar .container-fluid {
    justify-content: right !important;
  }

  /* TOGGLER LEFT */
  .navbar-toggler {
    margin: 0;
    padding: 4px;
  }

  .navbar-toggler-icon {
    width: 18px;
    height: 18px;
    
  }

  /* COLLAPSE MENU */
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;              /* 👈 KEY: not full width */
    background: #0a3d91;
    padding: 10px;
    text-align: left;
    

  }

  /* NAV LINKS */
  .navbar .nav-link {
    font-size: 12px;
    padding: 2px 4px;
    margin: 2px 0;
    text-align: left;
  }

  /* DROPDOWN */
  .dropdown-menu {
    position: static;
    width: 100%;
    background: #0a3d91;
    box-shadow: none;
  }

}


/* ========================= */
/* SMALL MOBILE (≤ 576px) */
/* ========================= */
@media (max-width: 576px) {

  .navbar {
    padding: 2px 0;
  }

  .navbar .nav-link {
    font-size: 12px;
  }

  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    width: 50%;              /* 👈 KEY: not full width */
    background: #0a3d91;
    padding: 10px;
    text-align: left;
    
  }

}

/* ========================= */
/* very SMALL MOBILE (≤ 400px) */
/* ========================= */
@media (max-width: 400px) {

  .navbar {
    padding: 2px 0;
  }

  .navbar .nav-link {
    font-size: 12px;
  }

  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;              /* 👈 KEY: not full width */
    background: #0a3d91;
    padding: 4px;
    text-align: left;
    
  }

}


/* ========================= */
/* HOVER + ACTIVE */
/* ========================= */
.navbar .nav-link:hover {
  color: #cfe2ff !important;
}

.navbar .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
}


/* ========================= */
/* CURSOR + ICON */
/* ========================= */
.navbar .nav-link,
.navbar .dropdown-toggle,
.dropdown-item {
  cursor: pointer;
}

.location-icon {
  font-size: 14px;
  color: #0f54ab;
  margin-top: 4px;
}


/* ========================= */
/* DESKTOP DROPDOWN HOVER */
/* ========================= */
@media (min-width: 992px) {
  .nav-item.dropdown:hover .dropdown-menu {
    display: block;
  }
}


/* ========================= */
/* DROPDOWN HOVER */
/* ========================= */
.dropdown-item:hover {
  background-color: #f5f7fb;
}

/* ========================= */
/* DOCTOR SECTION FINAL FIX  */
/* ========================= */

.doctor-section {
  /* softer grey like original */
  padding: 60px 0;
  position: relative;
}

/* RIGHT SIDE DOT PATTERN (LIGHT & CLEAN) */
.doctor-section::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 180px;
  height: 100%;
  background: radial-gradient(#d6d6d6 1px, transparent 1px);
  background-size: 12px 12px;
  opacity: 0.3;
}

/* MAIN TITLE */
.clinic-title {
  text-align: center;
  font-size: 38px;
  font-weight: 700;
  color: #1c5db6;
  /* exact blue tone */
  margin-bottom: 5px;
}

/* SUBTITLE */
.clinic-text {
  text-align: center;
  font-weight: 700;
  color: #333;
  font-size: 15px;
  margin-bottom: 45px;
}

/* LEFT TEXT SPACING */
.doctor-section .col-lg-8 {
  padding-right: 35px;
}

/* IMAGE */
.sticky-img img {
  width: 100%;
  border-radius: 10px;
}

/* DOCTOR NAME */
.doctor-section h3 {
  font-size: 28px;
  font-weight: 700;
  color: #000;
  margin-bottom: 10px;
}

/* EDUCATION */
.edu-text {
  font-weight: 700;
  color: #333;
  font-size: 15px;
  margin-bottom: 20px;
}

/* PARAGRAPH */
.doctor-text {
  color: #1e1d1d;
  line-height: 1.9;
  font-size: 15px;
  margin-bottom: 20px;
}

/* ---------------- MOBILE FIX ---------------- */

@media (max-width: 768px) {

  /* Stack properly */
  .doctor-section .row {
    flex-direction: column-reverse;
  }

  /* Remove extra padding */
  .doctor-section .col-lg-8 {
    padding-right: 0;
  }

  /* Center image */
  .sticky-img {
    text-align: center;
    margin-bottom: 20px;
  }

  .sticky-img img {
    width: 80%;
  }

  /* Reduce text size */
  .doctor-section h3 {
    font-size: 20px;
    text-align: center;
  }

  .edu-text {
    font-size: 14px;
    text-align: center;
  }

  .doctor-text {
    font-size: 14px;
    text-align: center;
  }
}

/* IMAGE CARD */
.doctor-card {
  background: #fff;
  padding: 15px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* IMAGE */
.doctor-card img {
  width: 100%;
  border-radius: 12px;
}

/* ========================= */
/* SERVICES SECTION FIX */
/* ========================= */

.service-section {
  background: #efefef;
}

/* BOX STYLE (LIKE IMAGE 1) */
.service-box {
  border: 1px dotted #bbb;
  padding: 35px 40px;
  height: 100%;
  transition: 0.3s;
}

/* ICON */
.service-icon {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 20px;
}

/* TEXT */
.service-box p {
  color: #1c5db6;
  font-weight: 600;
  font-size: 16px;
  margin: 0;
}

/* Default light gray background */
.service-item {
  background-color: #f2f2f2;
  transition: 0.3s;
}

/* Hover → darker gray */
.service-item:hover {
  background-color: #cccccc;
  cursor: pointer;
}




/* ========================= */
/* DROPDOWNS */
/* ========================= */

.dropdown-menu {
  border: none;
  border-radius: 0;
  padding: 10px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.dropdown-item {
  font-size: 14px;
  padding: 10px 20px;
}

.dropdown-item:hover {
  background: #f5f5f5;
  color: #0d6efd;
}

/* MEGA MENU */
.mega-menu {
  width: 700px;
  left: 0;
  border-radius: 0;
  border: none;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.mega-menu .dropdown-item {
  padding: 12px;
  border-bottom: 1px solid #ddd;
}

.mega-menu .dropdown-item:last-child {
  border-bottom: none;
}

/* SHOW DROPDOWN ON HOVER */
@media (min-width: 992px) {
  .navbar .dropdown:hover .dropdown-menu {
    display: block;
  }
}


/* ========================= */
/* MEGA MENU FIX (MOBILE) */
/* ========================= */
@media (max-width: 992px) {

  .mega-menu,
  .mega-center {
    width: 100% !important;
    left: 0 !important;
    transform: none !important;
    padding: 0 !important;
    background:  #fff;
  }

  .mega-menu .container,
  .mega-center .container {
    padding: 0;
  }

  /* REMOVE GRID */
  .mega-menu .row,
  .mega-center .row {
    display: block;
  }

  /* MAKE ITEMS LIKE DROPDOWN */
  .mega-menu .col-md-4,
  .mega-menu .col-md-3,
  .mega-center .col-md-4,
  .mega-center .col-md-3 {
    width: 100%;
    border: none !important;
    padding: 0 !important;
  }

  /* STYLE LIKE DENTIST MENU */
  .mega-menu a,
  .mega-center a {
    display: block;
    padding: 10px 15px;
    color: #0a3d91;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }


  .mega-menu a:hover,
  .mega-center a:hover {
    background: rgba(255,255,255,0.1);
  }

}



 .dropdown-menu .mega-center {
  width: 75%;
  left: 50% !important;
  transform: translateX(-50%) !important;
  position: absolute;
}

.navbar {
  width: 100%;
  z-index: 9999;
  transition: all 0.3s ease;
}

.fixed-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
}

body.nav-fixed {
  padding-top: 70px; /* adjust based on navbar height */
}



/* Desktop  */
.carousel-item {
  height: 100%;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right; /* adjust focus */
}

/* Tablet */
@media (max-width: 992px) {
  .carousel-item {
    height: 100% !important;
  }

  .carousel-item img {
  object-position: center; /* better balance */
    
  object-fit: contain;
  background: #0a3d91;

  }
}

/* Mobile */
@media (max-width: 768px) {
  .carousel-item {
    height: 100%;
  }

  .carousel-item img {
  object-fit: contain;
  background: #0a3d91;
}
}

/* Small Mobile */
@media (max-width: 576px) {
  .carousel-item {
    height: 100%;
  }

  .carousel-item img {
  object-fit: contain;
  background: #0a3d91;
}
}

/* ========================= */
/* TICKER */
/* ========================= */

.ticker-bg {
  background-color: #0a3d91;
  height: 40px;
}

.ticker-wrapper {
  overflow: hidden;
}

.ticker-text {
  white-space: nowrap;
  color: #fff;
  font-weight: 600;
  display: inline-block;
  padding-left: 100%;
  animation: tickerMove 35s linear infinite;
  font-size: 20px;
}

@keyframes tickerMove {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* REMOVE LOADER */
.page-transition-layer {
  display: none;
}

/* ========================= */
/* EXPERTISE FINAL FIX */
/* ========================= */

.expertise-section {
  background: #233b87;
}

/* CARD */
.expert-card {
  border: 1px solid rgb(255, 255, 255);
  padding: 20px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.3s;
}

/* ICON + TITLE ROW */
.expert-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

/* ICON CIRCLE */
.expert-icon {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.expert-icon img {
  width: 40px;
}

/* TITLE */
.expert-header h5 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

/* TEXT */
.expert-card p {
  font-size: 16px;
  line-height: 1.7;
  color: white;
}

/* READ MORE */
.expert-card a {
  color: white;
  font-weight: 600;
  text-decoration: none;
  margin-top: 10px;
}

/* CARD FIX */
.expert-card {
  border: 1px solid #fff;
  padding: 25px;
  color: white;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.3s;
}

/* HOVER */
.expert-card:hover {
  background: #1c2f6e;
  transform: translateY(-5px);
}

/* HEADER */
.expert-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* ICON */
.expert-icon {
  width: 65px;
  height: 65px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.expert-icon img {
  width: 32px;
}

/* MOBILE FIX */
@media (max-width: 768px) {

  .expert-card {
    text-align: center;
  }

  .expert-header {
    flex-direction: column;
  }

  .expert-icon {
    width: 55px;
    height: 55px;
  }

  .expert-icon img {
    width: 28px;
  }

  .expert-card p {
    font-size: 14px;
  }

}

/* Card */
.treatment-card {
  border: 1px solid rgb(181, 171, 171);
  padding: 30px 20px;
  text-align: center;
  color: #3b3b3b;
  height: 100%;
  min-height: 380px; /* IMPORTANT */
  background: #fff;
  transition: 0.3s;
}

/* Smooth hover */
.treatment-card:hover {
  border-color: #3b3b3b;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transform: translateY(-5px); /* SAFE */
}

/* Image */
.treatment-icon img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;
}

/* Title */
.header h5 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
}

.treatment-card p {
  font-size: 15px;
  line-height: 1.6;
  padding: 0 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .treatment-icon img {
    width: 175px;
    height: 175px;
  }

  .header h5 {
    font-size: 16px;
  }
}




.bg-custom-blue {
  background-color: #1c5db6;
}

.bg-black {
  background-color: #434343;
}

.bg-custom-gray {
  background-color: #efefef;
}

/* AUDIO SECTION FIX */
.audio-box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
}

/* MAKE AUDIO CLEAN */
audio {
  height: 35px;
}

/* RESPONSIVE FIX */
@media (max-width: 768px) {
  .audio-box {
    height: auto;
  }
}

/* FULL SECTION */


.footer-banner {
  
  height: 400px;
  background: linear-gradient(rgba(8, 42, 85, 0.85), rgba(8, 42, 85, 0.95));
  background-size: cover;
  background-position: center;
  color: white;
  margin-left: 0;
}

/* TEXT */
.banner-text {
 
  font-size: 20px;
  font-weight: 700;
}

/* RIGHT TEXT */
.appointment-text {
  color: #4CAF50;
  /* green */
  font-weight: 600;
}

/* SOCIAL ICONS */
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: #3b5cc4;
  color: white;
  border-radius: 50%;
  margin-left: 10px;
  text-decoration: none;
  font-size: 18px;
}

/* HOVER EFFECT */
.social-icons a:hover {
  background: #1c5db6;
}

.dental-treatment {
  height: 200px;
}


/* ABOUT SECTION (about.php) */

.about {
  margin-left: 50px;
}

/* IMAGE */
.doctor-img {
  width: 100%;
  max-width: 260px;
  border-radius: 4px;
}

/* NAME */
.doctor-name {
  font-size: 34px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

/* DEGREE */
.doctor-degree {
  font-weight: 700;
  color: #444;
  font-size: 15px;
  margin-bottom: 20px;
}

/* DESCRIPTION */
.doctor-desc {
  color: #555;
  line-height: 1.9;
  font-size: 15px;
}

/* BOX DESIGN */

.info-box {
  padding: 20px;
  background: #fff;
  height: 100%;
  margin-left: 0;
  /* remove extra push */
  width: 100%;
  /* responsive */
}

.info-box p {
  margin-bottom: 4px;
  font-size: 15px;
  width: 100%;
  /* remove 600px */
}

/* TITLE */
.box-title {
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
}

/* LIST STYLE */
.custom-list {
  padding-left: 18px;
  list-style: none;
  padding-left: 0;
}


/* OPTIONAL: diamond bullet like design */
.custom-list li::marker {
  color: #0f54ab;
}


.custom-separator {
  position: relative;
  margin: 40px auto;
  height: 1px;
  background-color: #000;
  width: 100%;
  overflow: hidden;
}


.separator-img {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: #fff;
  padding-left: 10px;
  height: 30px;
}



/* Gastroentrology Section (gastroentrology.php)*/

.page-header-section {
  padding: 40px 0;
}

.page-title {
  font-size: 36px;
  font-weight: 700;
  color: #2b6cb0;
  /* blue like reference */
  margin-bottom: 10px;
}

.page-subtitle {
  font-size: 16px;
  color: #333;
  margin-bottom: 10px;
}

.breadcrumb {
  font-size: 14px;
  color: #666;
}

.breadcrumb {
  color: #2b6cb0;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Active item like screenshot */
.active-service {
  border-left: 4px solid #0d6efd;
  /* blue line */
  font-weight: 600;
  background-color: #f8f9fa;
}

/* smooth spacing + positioning */
.service-item {
  position: relative;
  transition: all 0.3s ease;
}

/* HOVER EFFECT */
.service-item:hover {
  background-color: #f5f7fb;
}

/* LEFT BLUE LINE ON HOVER */
.service-item:hover::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background-color: #0d6efd;
}

.content-responsive {
  padding: 0;
}


.gallery-img {
  width: 100%;
  height: 250px;
  /* makes all images same size */
  object-fit: cover;
  /* crop nicely */
  border-radius: 5px;
}



.form-control,
.form-select {
  border-radius: 0;
  border: 1px solid #ccc;
}

.btn-success {
  border-radius: 25px;
  padding: 10px 30px;
}

.mega-center {
  width: 75%;
  left: 50%;
  transform: translateX(-50%);
  color: #0f54ab;
}




/* ========================= */
/* RESPONSIVE FIXES (SAFE)   */
/* ========================= */

/* Tablets */
@media (max-width: 992px) {

  .doctor-name {
    font-size: 28px;
  }

  .page-title {
    font-size: 30px;
  }

  .clinic-title {
    font-size: 30px;
  }

  .doctor-section .col-lg-8 {
    padding-right: 15px;
  }

  .about {
    margin-left: 0; /* remove side shift */
  }

}

/* Mobile */
@media (max-width: 768px) {

  /* STACK LAYOUT */
  .row {
    flex-direction: column;
  }

  /* TEXT ADJUST */
  .doctor-name {
    font-size: 24px;
  }

  .doctor-degree,
  .doctor-desc {
    font-size: 14px;
  }

  /* IMAGE CENTER */
  .doctor-img {
    display: block;
    margin: 0 auto 20px;
    max-width: 200px;
  }

  /* INFO BOX FIX */
  .info-box {
    margin-bottom: 20px;
  }

  /* REMOVE EXTRA SPACING */
  .about {
    margin-left: 0;
  }

  /* TABLE IMAGE SAFE */
  .custom-table-img {
    width: 100%;
    height: auto;
  }

  /* HEADER TEXT */
  .page-title {
    font-size: 24px;
  }

  /* CAROUSEL HEIGHT FIX */
  .carousel-item {
    height: 100%;
  }

}

/* Small Mobile */
@media (max-width: 576px) {

  .clinic-title {
    font-size: 24px;
  }

  .banner-text {
    font-size: 20px;
  }

  .expert-header h5 {
    font-size: 16px;
  }

  .expert-card p {
    font-size: 14px;
  }

}

a {
  text-decoration: none;   /* remove underline */
  color: black;          /* your custom color */
}


/*   */