:root {
	--purple: #9d75b3;
	--pink: #e583b4;
	--metallic_pink: #eab0bc;
	--pastel_green: #cfdfc4;
	--yellow: #fceab8;
	--pale_yellow: #fbf5e9;
	--bs-dark: #000000;
	--blue: #5a30a9;
	--border: #e1e2e3;
	--shadow: 0 8px 24px color-mix(in srgb, #363f40, transparent 90%);
}
body, p {
	font-family: "Barlow", sans-serif;
	font-weight: 400;
	margin-bottom: 1rem;
}
@font-face {
  font-family: 'FontAwesome';
  src: url('https://www.thedfmc.com/assets/public/css/fonts/fontawesome-webfont.woff2?v=4.7.0') format('woff2'),
       url('https://www.thedfmc.com/assets/public/css/fonts/fontawesome-webfont.woff?v=4.7.0') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'revicons';
  src: url('https://www.thedfmc.com/assets/public/css/fonts/revicons/revicons.woff?5510888') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;  /* ✅ same here */
}

.container-fluid {
	padding: 0;
}
img, svg {
	max-width: 100%;
}
.btn-link:hover {
	text-decoration: none;
}
.navbar-nav > li > a {
	padding: 26px 4px 26px !important;
    margin: 0 6px;	
    font-size: 17px;
}
.dropdown > li > a:hover,
.navbar-nav > li > a.active, .navbar-nav > li > a:hover {
	color: var(--purple)!important;
}
a.button-one {
    border: 1px solid var(--purple);
    border-radius: 4px;
}
a.button-one:hover {
    background: var(--purple);
}
a.button-two,
.navbar-collapse a.button-two {
	font-family: "Zilla Slab", serif;
	background: var(--purple);
	border-radius: 4px;
}
a.button-two:hover,
.navbar-collapse a.button-two:hover {
	background: var(--blue);
	color: var(--white)!important;
}
.navbar-collapse a.button-two {
	padding: 10px 18px;
}
.dropdown {
	border-top: 2px solid var(--purple);
}
#slide-672-layer-2 {
	position: absolute;
	top: 15px;
}
#slide-672-layer-3 {
	position: absolute;
	top: 30px;
}
#slide-675-layer-3 {
	position: absolute;
	top: 10px;
}
.timer {
	color: var(--purple);
}
ul.page-ban-list {
	border-bottom: 1px solid var(--border);
}
section.about-section .about-box {
    margin-bottom: 0;
}
.about-section .content-holder h2 {
    color: var(--blue);
    display: flex;
	align-items: baseline;
}
.about-section .content-holder img {
	margin-left: 14px;
}
.about-section .about-box .content-holder img {
	height: 40px;
}
.statistic-section {
	margin-top: 60px;
}
section.testimonial-section {
	background: var(--pastel_green) url(../img/DFMC_pattern.svg) left top repeat;
	background-size: auto;
	background-blend-mode: luminosity;
	padding: 50px 0;
}
section.testimonial-section .testimonial-post {
	border-radius: 8px;
	min-height: 95vh;
}
section.testimonial-section .testimonial-post img {
	border-radius: 0;
    max-width: max-content;
}
section.banner-section2 {
    background: #111 url(../img/schedule_bg.webp) center center no-repeat;
    background-size: cover;
}
section.news-section {
  background: var(--pastel_green);
}
section.news-section .news-box .news-post img {
    aspect-ratio: 16 / 9;
}
section.news-section .news-box .news-post .news-content h3 a:hover {
    color: var(--purple);
}
.footer-widget ul {
	padding-left: 0;
}
.footer-widget ul li {
	list-style: none;
	padding-bottom: 6px;
}
.footer-widget ul li a {
	color: var(--bs-dark);
}
.contact-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.contact-widget li {
    margin-bottom: 4px;
    display: flex;
    align-items: flex-start;
}
.contact-widget i {
    margin-right: 8px;
    font-size: 18px;
    min-width: 20px;
    margin-top: 4px;
}
.contact-widget a {
    text-decoration: none;
}
.social-widget img {
	filter: brightness(0);
}
section.page-banner-section {
    background: #fff url(../img/DFMC_pattern.svg);
    background-blend-mode: hard-light;
}
section.page-banner-section h1 {
    color: var(--blue);
    text-shadow: 0px 2px 4px rgb(255 255 255 / 75%)
}
section.page-banner-section span {
    color: var(--black);
}
/*Contact*/
section.contact-section2 .contact-info .info-post span {
	color: var(--purple);
	border: 1px solid var(--purple);
}
section.contact-section2 .contact-info .info-post span:after {
	border: 1px solid var(--purple);
}
section.contact-section2 .contact-info .info-post span:hover,
section.contact-section2 .contact-info .info-post span:hover:after {
	background: var(--purple);
}
#contact-form input[type="submit"], #reservation-form input[type="submit"] {
	background: var(--purple);
	border: 1px solid;
}
#contact-form input[type="submit"]:hover, #reservation-form input[type="submit"]:hover {
	color: var(--purple);
}
.whatsapp {
    position: fixed;
    bottom: 8%;
    right: 3%;
}
.whatsapp:hover {
    transform: scale(1.2);
}
/*Meet Our doctors*/
.doctor-grid {
  display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  align-items: start;    
}
.doctor-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.doctor-card .doctor-media {
    position: relative;
    overflow: hidden;
}
.doctor-card .doctor-media img {
    width: 100%;
    object-fit: cover;
    display: block;
}
.doctor-card .doctor-media .tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--purple);
    color: var(--white);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
}
.doctor-card .doctor-content {
    padding: 0 20px 20px;
}
.doctor-card .doctor-name {
	margin: 0px;
	font-size: 21px;
    line-height: 1.25;	
}
.doctor-card .doctor-content .doctor-title {
    font-family: 'Zilla Slab';
    font-size: 14px;
    margin: 6px 0 10px;
    line-height: 1.25;
}
.doctor-card .button-two {
	font-size: 14px;
    padding: 8px 18px;	
        font-weight: 400;
}
#single-doctor {
	background: var(--pastel_green);
	padding: 130px 0 50px;
}
.single-profile .profile-media {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.single-profile .profile-media .availability {
	position: absolute;
    left: 12px;
    bottom: 12px;
    background: var(--white);
    color: var(--blue);
    border: 1px solid var(--border);
    padding: 6px 10px;
    border-radius: 10px;
    font-weight: 600;	
}
.single-profile .profile-content .badge {
	background: var(--purple);
	color: var(--white);
	font-weight: 400;
	padding: 6px 10px;
	margin-right: 1%;
}
.department-details .details-content .care-features .feature-row {
	display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}
.department-details .details-content p {
	    margin-bottom: 2.5rem;
}
.department-details .details-content .care-features .feature-row i {
	color: var(--purple);
    font-size: 1.2rem;
    flex-shrink: 0;
}
.department-details .info-sidebar .info-card {
	padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;	
    box-shadow: var(--shadow);
}
.department-details .info-sidebar .info-card .hours-list .hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}
.ivf, .icsi, .iui, .fet, .ovulation_tracking, .ffp, .mfp {
	height: 91vh;
	display: flex;
	align-items: center;
	padding: 0!important;
}
.ivf {
	background: url(../img/ivf-banner.jpg) no-repeat top/cover !important ;
}
.icsi {
    background: url(../img/ICSI_banner.webp) no-repeat top/cover !important ;
}
.iui {
    background: url(../img/IUI_banner.webp) no-repeat top/cover !important ;
}
.fet {
    background: url(../img/fet_banner.webp) no-repeat top/cover !important ;
}
.ovulation_tracking {
    background: url(../img/ovulation_tracking_banner.webp) no-repeat top/cover !important ;
}
.ffp {
	background: url(../img/Female-Fertility-Preservation.jpg) no-repeat top/cover !important ;
}
.mfp {
	background: url(../img/Male-Fertility-Preservation.jpg) no-repeat top/cover !important ;
}
.preservation {
    background: var(--pastel_green);
    padding: 80px 0;
}
.preservation .card {
    height: 302px;
    overflow: hidden;
    z-index: 0;
}

/* Background holder (hidden initially) */
.preservation .card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; /* hidden by default */
    transform: scale(1);
    transition: transform 0.5s ease, opacity 0.5s ease;
    z-index: -1;
    border-radius: 10px;
}

/* Text should always be above */
.preservation .card h4,
.preservation .card p {
    position: relative;
    z-index: 2;
}

/* Different images for each card */
.preservation .col-md-3:nth-child(1) .card::before {
    background-image: url("../img/consultation.jpg");
}
.preservation .col-md-3:nth-child(2) .card::before {
    background-image: url("../img/assesment.jpg");
}
.preservation .col-md-3:nth-child(3) .card::before {
    background-image: url("../img/collection.jpg");
}
.preservation .col-md-3:nth-child(4) .card::before {
    background-image: url("../img/ongoing_support.jpg");
}

/* Hover effect → show + zoom background */
.preservation .card:hover::before {
    opacity: 1;
    transform: scale(1.1);
background: #00000050;
    background-blend-mode: color-dodge;    
}


.preservation .card:hover h4 {
    color: var(--white);
}
.card-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
	border: 1px solid var(--purple);
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
	padding: 16px 24px;
	transition: all 0.3s ease;
}
.card span {
	margin-bottom: 15px;
}
.card h3 {
	font-size: 32px;
	color: var(--purple);
}
.card:hover {
    background: var(--purple);
    color: var(--white);
    border: 1px solid var(--border);
}
.card:hover span {
	color: var(--yellow);
}
.card:hover h3,
.card:hover p {
	color: var(--white);
}
/*female_fertility*/
.female_fertility {
	background: var(--purple) url(../img/DFMC_pattern.svg);
    background-blend-mode: multiply;	
    padding: 80px 0;
}
.female_fertility h2, .female_fertility p {
	color: var(--white);
}
.fertility_factors {
	background: var(--pastel_green);
}
.fertility_factors .bg-image {
  background: url('../img/pregnant-brunette-woman-with-red-heart-candy.jpg') no-repeat center center;
  background-size: cover;
}
.men_fertility_accordion .bg-image {
  background: url('../img/men_fertility_accordion.jpg') no-repeat center center;
  background-size: cover;
}
.text-overlay {
  padding: calc((100vw - 150px) * 0.10);
  color: var(--white);
}
.text-overlay h3, .text-overlay p {
	color: var(--white);
}
.accordion {
	padding: 0 7%;
}
.accordion .card {
	background: transparent;
	box-shadow: none;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, .125)!important;
    padding: 0;
    border-radius: 0;	
}
.accordion .card:hover {
	color: var(--bs-dark);
}
.accordion .card-header {
	background-color: transparent;
	border: 0;
}
.accordion .card-header .btn-link {
	font-size: 24px;
	border: 0;
    background: transparent;
    color: var(--blue);	
    cursor: pointer;
}
.accordion .btn:focus,
.accordion .btn:active,
.accordion .card-header button:focus {
    outline: none !important;
    box-shadow: none !important;
}
.safeguarding {
	padding: 80px 0;
}
.safeguarding h3 {
	color: var(--purple);
	font-weight: bold;
}
    /* Masonry Grid */
    .masonry {
      column-count: 4; 
      column-gap: 15px;
    }
    .masonry-item {
      margin-bottom: 10px; 
    }
    .masonry-item img {
      width: 100%;
      display: block;
      border-radius: 6px;
    }
    
    @media (max-width: 991px) {
      .masonry { column-count: 3; }
    }
    @media (max-width: 767px) {
      .masonry { column-count: 2; }
    }    
    
@media (max-width: 768px) {
	.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col-auto, .col-lg, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-auto, .col-md, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md-auto, .col-sm, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-auto, .col-xl, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl-auto {
		padding: 15px;
	}	
	.navbar-nav {
		max-height: max-content;
	}
	.navbar-nav > li > a {
		padding: 14px 8px!important
	}
	.navbar .button-two {
		display: block;
	}
	.Concept-Title {
		font-size: 36px!important;
		line-height: 1!important;
	}
	.Concept-SubTitle {
		font-size: 18px;
		line-height: 1.33;
	}
	#slide-672-layer-2 {
	    top: 50px;
	}
	#slide-672-layer-3 {
		position: absolute;
		top: 60px;
	}
	.tp-bgimg {
		background-position: 60%!important;
	}
	#slide-673-layer-1 {
		position: absolute;
		top: -15px!important;
	}
	#slide-674-layer-2 {
		position: absolute;
		top: 15px!important;
	}	
	#slide-675-layer-1 {
		position: absolute;
		top: -60px!important;
	}
	.ivf, .icsi, .iui, .fet, .ovulation_tracking, .ffp, .mfp  {
        background-position: 85% 0%!important
    }
	.iui  {
        background-position: 71% 0%!important
    }
	.ffp  {
        background-position: 80% 0%!important
    } 
	.mfp  {
        background-position: 74% 0%!important
    }    
	.statistic-box .statistic-post {
		padding: 0;
	}	
	.about-section .content-holder h2 {
		margin-top: 25px;
	}
	section.testimonial-section .testimonial-post {
		height: 179vh;
	}
	.doctor-grid {
	    grid-template-columns: repeat(1, 1fr);
	}
	.profile-content {
	    margin: 3% 0;
	}	
	.single-profile .profile-content .badge {
		margin: 1%;
	}
	.info-sidebar {
	    margin-top: 8%;
	}	
	.card-list {
		grid-template-columns: 1fr;
	}
	.accordion {
	    padding: 0;
	}
    section.gallery-section a {
        width: 100%;
    }	
}

/* Base dropdown (Level 2) */
.navbar-nav > li > .dropdown {
  position: absolute;
  top: 100%;   /* appear below parent */
  left: 0;
  background: #fff;
  list-style: none;
  margin: 0;
  display: none;
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 1000;
}

/* Show dropdown on hover */
.navbar-nav li:hover > .dropdown {
  display: block;
}

/* Nested dropdown (Level 3) */
.navbar-nav .dropdown li {
  position: relative;
}

.navbar-nav .dropdown li .dropdown {
  top: 0;
  left: 100%;    /* appear to the right of parent */
  margin-left: 2px;
  border-radius: 6px;
}


@media (max-width: 991px) {
  .navbar-nav .dropdown li .dropdown {
    position: static;   /* stack instead of absolute */
    display: none;      /* hidden by default */
  }

  .navbar-nav .dropdown li.open > .dropdown {
    display: block;     /* show when parent is toggled */
  }
}


/* Hide on desktop */
.mobile-nav {
  display: none;
}
@media (max-width: 991px) {
.desktop-nav {
	display: none;
}
  .mobile-nav {
    display: block;
    color: #fff;
    width: 100%;
  }

  .mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
  }
  .mobile-nav .logo {
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
  }
  .mobile-toggle {
    background: var(--purple);
    color: #fff;
    border: none;
    width: 40px;
    font-size: 24px;
    cursor: pointer;
  }

  /* Menu */
  .mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .mobile-menu.open {
    max-height: 1000px; /* enough space */
  }
  .mobile-menu li {
    border-bottom: 1px solid #222;
  }
  .mobile-menu a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    font-size: 18px;
    color: var(--bs-dark);
  }

  /* Submenu */
  .submenu {
    list-style: none;
    padding-left: 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .submenu.open {
    max-height: 1000px;
  }
  .has-submenu > a::after {
    content: "▾";
    float: right;
  }
  .has-submenu.open > a::after {
    content: "▴";
  }
}