/*=======================================================
    DIP'S LAB — Modern Design Enhancements
    Minimalistic, mobile-first, fluid animations
========================================================*/

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --primary: #2B96CC;
  --primary-dark: #1a7aad;
  --accent: #0DCAF0;
  --dark: #1a1a2e;
  --text: #3a3a4a;
  --text-light: #6c6c7e;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --bg-card: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.10);
  --shadow-hover: 0 12px 48px rgba(43,150,204,0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== SMOOTH SCROLL ===== */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== GLOBAL BODY ===== */
body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* ===== MODERN TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  color: var(--dark);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(28px, 5vw, 48px); }
h2 { font-size: clamp(24px, 4vw, 36px); }
h3 { font-size: clamp(20px, 3.5vw, 30px); }
h4 { font-size: clamp(18px, 3vw, 26px); }
h5 { font-size: clamp(16px, 2.5vw, 22px); }
h6 { font-size: clamp(14px, 2vw, 16px); font-weight: 600; }

p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 400;
}

/* ===== MODERN TOP BAR ===== */
.top-bar {
  display: none !important;
}
.top-bar p {
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.top-bar .social-icons a {
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  line-height: 32px;
  font-size: 13px;
  margin-left: 4px;
  transition: var(--transition);
  color: rgba(255,255,255,0.7);
}
.top-bar .social-icons a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== MODERN HEADER ===== */
header {
  background: #fff !important;
  padding: 15px 0 !important;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  z-index: 999;
}
header.is-sticky .sticky {
  box-shadow: var(--shadow-md) !important;
  background: rgba(255,255,255,0.98) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
header .logo img {
  max-height: 50px;
  transition: var(--transition);
}
header .navbar li a {
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dark) !important;
  padding: 8px 16px !important;
  margin: 4px 2px;
  border-radius: 6px;
  position: relative;
  transition: var(--transition);
}
header .navbar li a::after {
  display: none;
}
header .navbar li a:hover {
  color: var(--primary) !important;
  background: rgba(43, 150, 204, 0.08);
}
header .navbar li.active a {
  color: #fff !important;
  background: var(--primary);
  border-radius: 6px;
}

/* ===== MODERN BUTTONS ===== */
.btn {
  background: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 8px;
  padding: 12px 32px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(43,150,204,0.3);
}
.btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(43,150,204,0.4);
}
.btn:active {
  transform: translateY(0);
}
.btn-inverse {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-inverse:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== SECTION SPACING ===== */
.p-t-b-150 {
  padding: 80px 0 !important;
}
.padding-bottom-100 {
  padding-bottom: 60px !important;
}
.padding-bottom-0 {
  padding-bottom: 0 !important;
}

/* ===== MODERN HEADING BLOCKS ===== */
.heading-block {
  margin-bottom: 60px;
}
.heading-block h2,
.heading-block h4 {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.heading-block hr {
  width: 40px;
  height: 3px;
  background: var(--primary);
  border: none;
  margin: 16px auto;
  border-radius: 3px;
}
.heading-block hr::before,
.heading-block hr::after {
  display: none;
}
.heading-block span {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.7;
  max-width: 620px;
}

/* ===== MODERN SUB BANNER ===== */
.sub-bnr {
  padding: 100px 0 80px;
  background: url(../images/imported%20images/lab-technician-using-microscope-side-view.jpeg) center center / cover no-repeat !important;
  position: relative;
}
.sub-bnr::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 46, 0.85) 0%,
    rgba(22, 33, 62, 0.75) 100%
  );
  z-index: 0;
}
.sub-bnr::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--bg), transparent);
  z-index: 0;
}
.sub-bnr h1 {
  color: #fff;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.sub-bnr h3 {
  color: var(--primary);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.sub-bnr .breadcrumb {
  background: none;
  padding: 0;
  margin-top: 20px;
}
.sub-bnr .breadcrumb li,
.sub-bnr .breadcrumb li a {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 500;
}
.sub-bnr .breadcrumb li a:hover {
  color: var(--primary);
}
.sub-bnr .breadcrumb > .active {
  color: rgba(255,255,255,0.5);
}
.sub-bnr .position-center-center {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  z-index: 1;
}

/* ===== MODERN SERVICES CARDS ===== */
.services article {
  background: var(--bg-card);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  padding: 30px 24px;
  margin-bottom: 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.services article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--primary);
  transition: height var(--transition);
  border-radius: 0 3px 3px 0;
}
.services article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.services article:hover::before {
  height: 100%;
}
.services article .icon {
  font-size: 36px;
  color: var(--primary);
  background: transparent;
  width: auto;
  height: auto;
  line-height: 1;
  border: none;
  margin-bottom: 12px;
  transition: var(--transition);
}
.services article:hover .icon {
  transform: scale(1.1);
  color: var(--accent);
}
.services article h6 {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--dark);
}

/* ===== MODERN INTRO SECTION ===== */
.intro-main .text-sec h5 {
  color: var(--primary);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}
.intro-main .text-sec p {
  line-height: 1.8;
}
.intro-main .text-sec ul li h6 {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.intro-main .text-sec ul li h6 i {
  color: var(--primary);
  margin-right: 8px;
}
.intro-main .intro-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ===== MODERN DEPARTMENT TABS ===== */
.department .dep-sec-nav .nav-tabs {
  border: none;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.department .dep-sec-nav .nav-tabs li {
  flex: 1;
  min-width: 120px;
}
.department .dep-sec-nav .nav-tabs li a {
  border: none !important;
  border-radius: 8px !important;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  padding: 12px 16px;
  color: var(--text);
  transition: var(--transition);
  background: transparent;
}
.department .dep-sec-nav .nav-tabs li.active a,
.department .dep-sec-nav .nav-tabs li a:hover {
  background: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(43,150,204,0.3);
}
.department .dep-sec-txt {
  padding: 40px 30px;
  background: var(--bg-card);
  border-radius: 0 0 var(--radius) var(--radius);
  border: 1px solid rgba(0,0,0,0.06);
  border-top: none;
}
.department .dep-sec-txt h5 {
  font-weight: 700;
  color: var(--dark);
}
.department .dep-sec-txt h5 span {
  color: var(--primary);
}

/* ===== LIST CHECK STYLE ===== */
.list-style-check li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 500;
}
.list-style-check li::before {
  content: '\f00c';
  font-family: FontAwesome;
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 14px;
}

/* ===== MODERN DOCTOR LIST ===== */
.doct-list .item img {
  border-radius: var(--radius);
  transition: var(--transition);
}
.doct-list .item:hover img {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

/* ===== MODERN ACCORDION ===== */
.accordion .panel {
  border: 1px solid rgba(0,0,0,0.06) !important;
  border-radius: var(--radius) !important;
  margin-bottom: 12px;
  box-shadow: none;
  overflow: hidden;
}
.accordion .panel-heading {
  background: var(--bg-alt) !important;
  border: none !important;
  padding: 0;
}
.accordion .panel-title a {
  display: block;
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  transition: var(--transition);
}
.accordion .panel-title a i {
  margin-right: 12px;
  color: var(--primary);
  width: 20px;
  text-align: center;
}
.accordion .panel-title a:not(.collapsed) {
  color: var(--primary);
  background: rgba(43,150,204,0.05);
}
.accordion .panel-body {
  padding: 20px 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-light);
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* ===== MODERN APPOINTMENT FORM ===== */
.appointment.bg {
  background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%) !important;
  border-radius: var(--radius-lg);
  padding: 40px !important;
}
.appointment-form .form-control {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  height: 48px;
  color: #fff;
  font-size: 14px;
  padding: 10px 16px;
  transition: var(--transition);
}
.appointment-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43,150,204,0.15);
  background: rgba(255,255,255,0.1);
}
.appointment-form textarea.form-control {
  height: 120px;
  resize: vertical;
}
.appointment-form .selectpicker,
.appointment-form select {
  height: 48px;
  border-radius: 8px;
}

/* Main appointment form (non-dark bg) */
.main-oppoiment .appointment-form .form-control {
  background: var(--bg-alt);
  border: 1px solid rgba(0,0,0,0.08);
  color: var(--text);
}
.main-oppoiment .appointment-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43,150,204,0.1);
}

/* ===== UNIFORM FORM STYLES (no white backgrounds) ===== */
.form-control,
#contact_form li .form-control,
#contact_form li textarea,
.contact-form .form-control,
.comments .comment-form .form-control,
.comments .comment-form textarea,
.newsletter .form-control {
  background: var(--bg-alt) !important;
  border: 1px solid rgba(0,0,0,0.1) !important;
  border-radius: 8px !important;
  color: var(--text) !important;
  box-shadow: none !important;
  font-size: 14px;
}
.form-control:focus,
#contact_form li .form-control:focus,
.contact-form .form-control:focus,
.comments .comment-form .form-control:focus,
.newsletter .form-control:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(43,150,204,0.1) !important;
  background: var(--bg-alt) !important;
}
.form-control::placeholder {
  color: #999;
}
/* Dark-bg forms (appointment overlay, footer) */
.appointment.bg .form-control,
.appointment.bg textarea,
.appointment.bg input,
.footer-contact .form-control,
.footer-contact #contact_form li input,
.footer-contact #contact_form li textarea {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  color: #fff !important;
}
.appointment.bg .form-control:focus,
.footer-contact .form-control:focus {
  border-color: var(--primary) !important;
  background: rgba(255,255,255,0.12) !important;
}
.appointment-form label i {
  background: rgba(0,0,0,0.06) !important;
  border-radius: 8px 0 0 8px;
}
.bootstrap-select .btn,
.bootstrap-select .btn:focus {
  background: var(--bg-alt) !important;
  border: 1px solid rgba(0,0,0,0.1) !important;
  border-radius: 8px !important;
  color: var(--text) !important;
  box-shadow: none !important;
}

/* ===== MODERN NEWS CARDS ===== */
.news .row {
  display: flex;
  flex-wrap: wrap;
}
.news .row > [class*="col-"] {
  display: flex;
}
.news-post {
  background: var(--bg-card);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 30px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  width: 100%;
}
.news-post:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.news-post .post-img {
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  position: relative;
  height: 200px;
}
.news-post .post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.news-post:hover .post-img img {
  transform: scale(1.05);
}
.news-post .date {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--primary);
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 14px;
  color: #fff;
  z-index: 1;
}
.news-post .tittle {
  font-weight: 700;
  font-size: 17px;
  color: var(--dark);
  display: block;
  padding: 28px 36px 0;
  line-height: 1.4;
  min-height: 68px;
}
.news-post .by {
  padding: 8px 36px;
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  display: block;
}
.news-post > p {
  padding: 0 36px 24px;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  flex: 1;
}
.news-post .post-info {
  padding: 16px 36px;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 13px;
  margin-top: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.news-post .post-info span {
  margin-right: 8px;
  font-size: 12px;
  color: #888;
}
.news-post .post-info span i {
  color: var(--primary);
}
.news-post .post-info a {
  color: var(--primary);
  font-weight: 600;
  margin-left: auto;
  white-space: nowrap;
}

/* ===== MODERN TESTIMONIALS ===== */
.testimonial {
  background: var(--bg-alt) !important;
}
.testimonial .slider-sec {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.testimonial .slider-sec p {
  font-size: 17px;
  font-style: italic;
  line-height: 1.8;
  color: var(--text);
  position: relative;
  padding: 0 20px;
}
.testimonial .slider-sec p::before {
  content: '\201C';
  font-size: 60px;
  color: var(--primary);
  opacity: 0.3;
  position: absolute;
  top: -20px;
  left: -10px;
  font-family: serif;
}
.testimonial .icon-avatar {
  margin: 20px auto 12px;
}
.testimonial .icon-avatar img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  object-fit: cover;
}
.testimonial .avatar-info h6 {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
}
.testimonial .avatar-info span {
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
}

/* ===== MODERN FUN FACTS ===== */
.fun-fact {
  background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%) !important;
  padding: 60px 0 !important;
}
.fun-fact .counters li {
  text-align: center;
  padding: 20px;
}
.fun-fact .counters .media-left {
  float: none;
  display: block;
  margin-bottom: 12px;
}
.fun-fact .counters .media-left i {
  font-size: 36px;
  color: var(--primary);
}
.fun-fact .counters .media-body {
  display: block;
}
.fun-fact .counters .media-body .counter,
.fun-fact .counters .media-body span {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  display: block;
}
.fun-fact .counters .media-body p {
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-top: 6px;
}

/* ===== MODERN TEAM CARDS ===== */
.our-team .team-part article {
  margin-bottom: 30px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(0,0,0,0.06);
  transition: var(--transition);
}
.our-team .team-part article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.our-team .team-img {
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.our-team .team-img img {
  transition: transform 0.6s ease;
}
.our-team .team-part article:hover .team-img img {
  transform: scale(1.05);
}
.our-team .team-name {
  padding: 20px;
  text-align: center;
}
.our-team .team-name h6 {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.our-team .team-name p {
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
}
.our-team .team-hover {
  background: rgba(43,150,204,0.9);
  border-radius: var(--radius);
}
.our-team .team-hover a {
  color: #fff;
  font-size: 16px;
  margin: 0 8px;
  transition: var(--transition);
}
.our-team .team-hover a:hover {
  transform: scale(1.2);
}

/* ===== MODERN CONTACT ===== */
.contact .form-control {
  background: var(--bg-alt);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  height: 48px;
  font-size: 14px;
  padding: 12px 16px;
  transition: var(--transition);
  color: var(--text);
}
.contact .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43,150,204,0.1);
  background: #fff;
}
.contact textarea.form-control {
  height: auto;
  min-height: 120px;
  resize: vertical;
}

.contact-box .boxes-in {
  background: var(--bg-card);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 24px;
}
.contact-box .boxes-in h6 {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  font-size: 16px;
}
.contact-box .location li {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.contact-box .location li i {
  color: #fff;
  background: var(--primary);
  width: 42px;
  height: 42px;
  line-height: 42px;
  text-align: center;
  border-radius: 50%;
  font-size: 16px;
  min-width: 42px;
  flex-shrink: 0;
}

/* ===== MODERN GALLERY ===== */
.portfolio-filter li a {
  border-radius: 6px;
  padding: 8px 18px;
  font-weight: 600;
  font-size: 13px;
  margin: 4px;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.08);
}
.portfolio-filter li a.active,
.portfolio-filter li a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.portfolio-item {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.portfolio-image {
  border-radius: var(--radius);
  overflow: hidden;
}
.portfolio-image img {
  transition: transform 0.6s ease;
}
.portfolio-item:hover .portfolio-image img {
  transform: scale(1.08);
}
.portfolio-overlay {
  border-radius: var(--radius);
  background: rgba(43,150,204,0.85) !important;
}

/* ===== MODERN VIDEO SECTION ===== */
.video-part a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.video-part a img {
  border-radius: var(--radius);
  transition: transform 0.6s ease;
}
.video-part a:hover img {
  transform: scale(1.03);
}

/* ===== MODERN FOOTER ===== */
footer {
  background: var(--dark) !important;
  padding: 60px 0 40px !important;
}
footer h5 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
footer p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  line-height: 1.7;
}
footer .small-info img {
  max-height: 45px;
  margin-bottom: 20px;
}
footer .small-info form {
  margin-top: 16px;
  display: flex;
  gap: 8px;
}
footer .small-info form input {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 10px 16px;
  color: #fff;
  font-size: 14px;
  transition: var(--transition);
}
footer .small-info form input:focus {
  border-color: var(--primary);
  outline: none;
}
footer .small-info form button {
  background: var(--primary);
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}
footer .small-info form button:hover {
  background: var(--primary-dark);
}
footer .latest-tweet ul li {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 14px;
  margin-bottom: 14px;
}
footer .latest-tweet ul li p {
  font-size: 13px;
  line-height: 1.6;
}
footer .latest-tweet ul li p span {
  color: var(--primary);
  font-weight: 600;
}
footer .latest-tweet ul li .date {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
footer .links ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  padding: 4px 0;
  display: inline-block;
  transition: var(--transition);
}
footer .links ul li a:hover {
  color: var(--primary);
  transform: translateX(-4px);
}
footer .links .timing p {
  font-size: 13px;
}
footer .links .timing p span {
  color: var(--primary);
}
footer .social_icons li a {
  transition: var(--transition);
}
footer .social_icons li a:hover {
  transform: translateY(-3px);
}

/* Modern Rights bar */
.rights {
  background: rgba(0,0,0,0.2);
  padding: 16px 0;
}
.rights p {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  margin: 0;
}

/* ===== GO TO TOP BUTTON ===== */
.cd-top {
  background: var(--primary) !important;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(43,150,204,0.4);
  transition: var(--transition);
}
.cd-top:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(43,150,204,0.5);
}
.cd-top i {
  color: #fff;
  font-size: 18px;
  line-height: 44px;
}

/* ===== MAP ===== */
.map-block {
  margin-top: 0 !important;
  border-radius: 0;
  overflow: hidden;
}
.map-block iframe,
.map-wrapper {
  border-radius: 0;
  filter: saturate(0.8) contrast(1.05);
}

/* ===== MODERN PAGE LOADER ===== */
#loader {
  background: var(--bg);
}

/* ===== POPUP STYLES ===== */
.pop-open-style {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pop-open-style .doctor-in {
  padding: 30px;
}
.pop-open-style .doctor-in h5 {
  font-weight: 700;
  color: var(--dark);
}
.pop-open-style .personal-info ul {
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children delay */
.stagger-children > *:nth-child(1) { transition-delay: 0s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.4s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.5s; }

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,0.5);
}
.whatsapp-float i {
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

/* ===== MOBILE RESPONSIVE OVERRIDES ===== */
@media (max-width: 991px) {
  .p-t-b-150 {
    padding: 50px 0 !important;
  }
  .heading-block {
    margin-bottom: 40px;
  }
  .services article {
    padding: 24px 20px;
  }
  .intro-main .intro-img {
    margin-top: 30px;
  }
  .department .dep-sec-nav .nav-tabs li {
    min-width: 80px;
  }
  .department .dep-sec-txt {
    padding: 24px 20px;
  }
  .sub-bnr {
    padding: 80px 0 60px;
  }
}

@media (max-width: 767px) {
  .p-t-b-150 {
    padding: 40px 0 !important;
  }
  .padding-bottom-100 {
    padding-bottom: 30px !important;
  }
  .heading-block {
    margin-bottom: 30px;
  }
  .heading-block h2,
  .heading-block h4 {
    font-size: 22px;
  }
  .heading-block span {
    font-size: 14px;
  }
  
  /* Mobile top bar */
  .top-bar {
    padding: 6px 0;
  }
  .top-bar p {
    font-size: 11px;
    text-align: center;
  }
  .top-bar .social-icons {
    text-align: center;
    float: none;
  }
  .top-bar .col-sm-6 {
    width: 100%;
    float: none;
    text-align: center;
  }
  
  /* Mobile header */
  header {
    padding: 10px 0 !important;
  }
  header .logo {
    text-align: center;
    margin-bottom: 0 !important;
  }
  header .logo img {
    max-height: 40px;
  }
  
  /* Mobile nav toggle */
  .navbar-toggle {
    background: var(--primary) !important;
    border: none !important;
    border-radius: 8px !important;
    width: 42px;
    height: 42px;
    padding: 0 !important;
    margin: 0 !important;
    top: -5px !important;
    right: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .navbar-toggle span i {
    font-size: 18px;
    color: #fff;
  }
  
  /* Mobile nav menu */
  .navbar-collapse {
    background: #fff;
    border: none !important;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-md);
    margin-top: 10px !important;
    padding: 10px 0 !important;
  }
  .navbar-collapse .nav li {
    border-bottom: 1px solid rgba(0,0,0,0.04);
  }
  .navbar-collapse .nav li a {
    padding: 14px 20px !important;
    font-size: 14px !important;
  }
  .navbar-collapse .nav li.active a {
    background: var(--primary);
    color: #fff !important;
    border-radius: 6px;
  }
  
  /* Mobile services */
  .services article {
    padding: 20px 16px;
    margin-bottom: 16px;
  }
  
  /* Mobile news cards */
  .news .row {
    flex-direction: column;
  }
  .news-post .post-img {
    height: 180px;
  }
  .news-post .tittle {
    font-size: 16px;
    min-height: auto;
    padding: 16px 16px 0;
  }
  .news-post .by {
    padding: 4px 16px;
  }
  .news-post > p {
    padding: 0 16px 12px;
    font-size: 13px;
  }
  .news-post .post-info {
    padding: 10px 16px;
  }
  
  /* Mobile sub-banner */
  .sub-bnr {
    padding: 60px 0 50px;
  }
  .sub-bnr h1 {
    font-size: 24px;
  }
  .sub-bnr h3 {
    font-size: 13px;
  }
  
  /* Mobile tabs */
  .department .dep-sec-nav .nav-tabs {
    flex-direction: column;
  }
  .department .dep-sec-nav .nav-tabs li {
    width: 100%;
  }
  .department .dep-sec-txt {
    padding: 20px 16px;
  }
  
  /* Mobile accordion */
  .accordion .panel-title a {
    padding: 14px 16px;
    font-size: 14px;
  }
  .accordion .panel-body {
    padding: 16px;
  }
  
  /* Mobile appointment form */
  .appointment.bg {
    padding: 24px !important;
    border-radius: var(--radius);
  }
  .appointment-form .form-control {
    height: 44px;
    font-size: 13px;
  }
  
  /* Mobile news cards */
  .news-post .tittle {
    font-size: 15px;
    padding: 16px 16px 0;
  }
  .news-post .by {
    padding: 4px 16px;
  }
  .news-post > p {
    padding: 0 16px 12px;
  }
  .news-post .post-info {
    padding: 10px 16px;
  }
  
  /* Mobile contact */
  .contact-box .boxes-in {
    padding: 20px;
    margin-bottom: 16px;
  }
  
  /* Mobile footer */
  footer {
    padding: 40px 0 30px !important;
    text-align: center;
  }
  footer .links {
    text-align: center !important;
  }
  footer .small-info {
    padding: 0 !important;
    margin-bottom: 30px;
  }
  footer .small-info form {
    flex-direction: column;
  }
  footer .latest-tweet {
    margin-bottom: 30px;
  }
  
  /* Mobile fun facts */
  .fun-fact {
    padding: 40px 0 !important;
  }
  .fun-fact .counters li {
    width: 50% !important;
    margin-bottom: 20px;
  }
  .fun-fact .counters .media-body .counter,
  .fun-fact .counters .media-body span {
    font-size: 28px;
  }
  
  /* Mobile gallery */
  .portfolio-filter li a {
    padding: 6px 12px;
    font-size: 11px;
    margin: 2px;
  }
  
  /* Mobile doctor popup */
  .pop-open-style .doctor-in {
    padding: 20px;
  }
  
  /* WhatsApp button mobile */
  .whatsapp-float {
    bottom: 16px;
    left: 16px;
    width: 50px;
    height: 50px;
  }
  .whatsapp-float i {
    font-size: 24px;
  }
  
  /* Mobile team */
  .our-team .team-part .col-sm-4 {
    width: 100%;
    margin-bottom: 16px;
  }
  
  /* Better touch targets */
  .btn {
    padding: 14px 28px;
    font-size: 13px;
    min-height: 48px;
  }
}

@media (max-width: 480px) {
  .heading-block h2,
  .heading-block h4 {
    font-size: 20px;
  }
  .fun-fact .counters li {
    width: 100% !important;
  }
  .sub-bnr h1 {
    font-size: 20px;
  }
  .services article {
    text-align: center;
  }
  .services article .media-left {
    float: none;
    display: block;
    margin-bottom: 12px;
  }
}

/* ===== LIGHT BACKGROUND SECTIONS FOR CONTRAST ===== */
section:nth-child(even) {
  background: var(--bg-alt);
}
.light-gry-bg {
  background: var(--bg-alt) !important;
}

/* ===== SMOOTH SECTION TRANSITIONS ===== */
section {
  position: relative;
}

/* ===== NEW HERO SECTION ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 650px;
  max-height: 1100px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Background Slides */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.2s ease, transform 6s ease;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* Overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 30, 0.88) 0%,
    rgba(20, 60, 100, 0.65) 50%,
    rgba(10, 10, 30, 0.85) 100%
  );
}

/* Content */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 15px;
}
.hero-content .container {
  max-width: 900px;
}

/* Badge */
.hero-badge {
  display: inline-block;
  background: rgba(43, 150, 204, 0.2);
  border: 1px solid rgba(43, 150, 204, 0.4);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 24px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
  animation: heroFadeUp 0.8s ease both;
  animation-delay: 0.2s;
}
.hero-badge i {
  margin-right: 8px;
  color: var(--primary);
}

/* Heading */
.hero-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 56px;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 20px;
  letter-spacing: -0.5px;
  text-shadow: 0 3px 30px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.5);
  animation: heroFadeUp 0.8s ease both;
  animation-delay: 0.4s;
}
.hero-heading span {
  color: #7dd8ff;
  display: inline-block;
  text-shadow: 0 0 40px rgba(125, 216, 255, 0.5), 0 3px 20px rgba(0, 0, 0, 0.5);
}

/* Description */
.hero-text {
  font-family: 'Raleway', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: #fff;
  font-weight: 400;
  margin-bottom: 36px;
  max-width: 640px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4);
  animation: heroFadeUp 0.8s ease both;
  animation-delay: 0.6s;
}

/* Buttons */
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
  animation: heroFadeUp 0.8s ease both;
  animation-delay: 0.8s;
}
.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--primary) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  padding: 14px 36px !important;
  border-radius: 50px !important;
  border: 2px solid var(--primary) !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 25px rgba(43, 150, 204, 0.4);
}
.hero-btn-primary:hover,
.hero-btn-primary:focus {
  background: #248ab8 !important;
  border-color: #248ab8 !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(43, 150, 204, 0.5);
}
.hero-btn-outline {
  display: inline-flex;
  align-items: center;
  background: transparent !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  padding: 14px 36px !important;
  border-radius: 50px !important;
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}
.hero-btn-outline:hover,
.hero-btn-outline:focus {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: #fff !important;
  color: #fff !important;
  transform: translateY(-2px);
}

/* Stats Bar */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 24px 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: heroFadeUp 0.8s ease both;
  animation-delay: 1s;
  max-width: 560px;
}
.hero-stat {
  flex: 1;
  text-align: center;
}
.hero-stat strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}
.hero-stat span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}
.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 8px;
  flex-shrink: 0;
}

/* Slide Indicators */
.hero-indicators {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}
.hero-dot:hover {
  border-color: #fff;
}
.hero-dot.active {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.25);
}

/* Scroll Down Indicator */
.hero-scroll-down {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.hero-scroll-down:hover,
.hero-scroll-down:focus {
  color: #fff;
  text-decoration: none;
}
.hero-scroll-down i {
  font-size: 20px;
  animation: scrollBounce 2s ease infinite;
}

/* Hero Animations */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes scrollBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
}

/* ===== HERO RESPONSIVE ===== */
@media (max-width: 991px) {
  .hero {
    min-height: 580px;
    height: 90vh;
  }
  .hero-heading {
    font-size: 42px;
  }
  .hero-text {
    font-size: 16px;
  }
  .hero-stats {
    padding: 20px 24px;
  }
  .hero-stat strong {
    font-size: 24px;
  }
  .hero-indicators {
    right: 20px;
  }
}
@media (max-width: 767px) {
  .hero {
    min-height: 100svh;
    height: 100svh;
    max-height: none;
    align-items: flex-end;
    padding-bottom: 80px;
  }
  .hero-content .container {
    text-align: left;
  }
  .hero-badge {
    font-size: 11px;
    padding: 6px 14px;
    margin-bottom: 18px;
    letter-spacing: 1px;
  }
  .hero-heading {
    font-size: 32px;
    margin-bottom: 14px;
    line-height: 1.2;
  }
  .hero-heading br {
    display: none;
  }
  .hero-text {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.8);
  }
  .hero-buttons {
    gap: 12px;
    margin-bottom: 32px;
  }
  .hero-btn-primary,
  .hero-btn-outline {
    font-size: 13px !important;
    padding: 12px 24px !important;
  }
  .hero-stats {
    padding: 16px 12px;
    max-width: 100%;
    border-radius: 12px;
  }
  .hero-stat strong {
    font-size: 20px;
  }
  .hero-stat span {
    font-size: 10px;
  }
  .hero-stat-divider {
    height: 30px;
  }
  .hero-indicators {
    right: 16px;
    gap: 10px;
  }
  .hero-dot {
    width: 10px;
    height: 10px;
  }
  .hero-scroll-down {
    bottom: 16px;
    font-size: 10px;
  }
}
@media (max-width: 480px) {
  .hero {
    padding-bottom: 70px;
  }
  .hero-heading {
    font-size: 26px;
  }
  .hero-text {
    font-size: 13px;
  }
  .hero-btn-primary,
  .hero-btn-outline {
    font-size: 12px !important;
    padding: 10px 20px !important;
    width: 100%;
    justify-content: center;
  }
  .hero-stats {
    padding: 14px 10px;
  }
  .hero-stat strong {
    font-size: 18px;
  }
  .hero-stat span {
    font-size: 9px;
    letter-spacing: 0;
  }
}

/* ===== INSIDE SPACE (split sections) ===== */
.inside-sapce {
  padding: 50px 40px;
}
@media (max-width: 767px) {
  .inside-sapce {
    padding: 30px 20px;
  }
}

/* ===== FOCUS STATES FOR ACCESSIBILITY ===== */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ===== SELECTION COLOR ===== */
::selection {
  background: var(--primary);
  color: #fff;
}
::-moz-selection {
  background: var(--primary);
  color: #fff;
}
