/* Global Styles */
:root {
  --primary: #2A5C82;
  --secondary: #5DA9E9;
  --accent: #FF6B6B;
  --light: #F8FAFC;
  --dark: #1A1A1A;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: white;
   overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Navigation */
.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Header */

header {
  background: #fff;
  padding: 1rem 5%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.whatsapp-icon {
  margin-top: 10px;
  font-size: 32px;
  color: #25D366;
  transition: color 0.3s ease;
}

.whatsapp-icon:hover {
  color: #128C7E;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo img {
  height: 50px;
  width: auto;
}

/* Slider Styles */
.slider-container {
  position: relative;
  width: 100%;
  height: 70vh;
  margin-top: 60px;
  overflow: hidden;
}

.slider {
  display: flex;
  width: 400%;
  height: 100%;
  animation: slide 20s infinite;
}

.slide {
  position: relative;
  width: 40%;
  height: 100%;
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
}

.slide-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(58, 58, 58, 0.5);
}

.slide-content p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 58, 138, 0.5);
  z-index: 1;
}

@keyframes slide {
  0% { margin-left: 0; }
  25% { margin-left: 0; }
  30% { margin-left: -100%; }
  50% { margin-left: -100%; }
  55% { margin-left: -200%; }
  75% { margin-left: -200%; }
  80% { margin-left: -300%; }
  100% { margin-left: -300%; }
}

/* Dummy Images - Replace these URLs with your clinic images */
#slide1 { background: url('images/kumarib1.jpg') center/cover; }
#slide2 { background: url('images/kumarib2.jpg') center/cover; }
#slide3 { background: url('images/kumarib3.jpg') center/cover; }
#slide4 { background: url('images/kumarib4.jpg') center/cover; }

/* Hamburger Menu Icon */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 2; /* Ensures the button remains clickable */
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: #e16f6f;
  margin: 4px 0;
  transition: 0.3s;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 60px;
    left: 0;
    flex-direction: column;
    width: 100%;
    background-color: hsla(210, 16%, 65%, 0.918);
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }

  .slider-container {
    height: 50vh;
  }

  .slide-content h1 {
    font-size: 1.5rem;
  }

  .slide-content p {
    font-size: 1rem;
  }
}

/* Index Page Styles */


  
  .index-container {
  max-width: 1200px;
  margin: auto;
  }
  
  .index-frame {
  display: flex;
  flex-direction: row; /* Default to row layout */
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  }
  
  .index-column {
  flex: 1;
  margin: 0 10px;
  }
  
  .background-details {
  margin-right: 20px; /* Add spacing between columns */
  }
  
  .quick-message {
  margin-left: 20px; /* Add spacing between columns */
  }
  
  .index-message-form {
  display: flex;
  flex-direction: column;
  }
  
  .index-message-form label {
  margin: 10px 0 5px;
  }
  
  .index-message-form input,
  .index-message-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  }
  
  .index-message-form button {
  margin-top: 10px;
  padding: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  }
  
  .index-message-form button:hover {
  background-color: #0056b3;
  }
  
  .index-photo-gallery {
  margin-top: 20px;
  }
  
  .index-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  }
  
  .index-photos figure {
  text-align: center;
  }
  
  .index-photos img {
  width: 100%;
  border-radius: 4px;
  }
  
  .dental-info {
    margin: 1rem 0; /* Set margin */
    line-height: 1.2; /* Set line height */
}

.services-list {
  margin: 1rem 0; /* Set margin */
  list-style: none; /* Remove default list style */
}

.services-list li i {
  color: #3b82f6; /* Set icon color */
}


  /* Media Queries for Responsiveness */
@media (max-width: 768px) {
  .index-frame {
      flex-direction: column; /* Stack columns on top of each other */
  }

  .background-details,
  .quick-message {
      margin-right: 0; /* Reset right margin */
      margin-left: 0; /* Reset left margin */
      margin-bottom: 20px; /* Add spacing between stacked columns */
  }
}
  
  
  /* Right Column - Booking Form */
  
  /* CSS style for appointment form */
  
  form {
  max-width: 500px;
  margin: 20px auto;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  }
  form label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
  }
  form input, form select, form textarea {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  box-sizing: border-box;
  }
  form input[type="submit"] {
  margin-top: 20px;
  background-color: #007BFF;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 16px;
  }
  form input[type="submit"]:hover {
  background-color: #0056b3;
  }
  
  /* Form Styles */
  .form-group {
  margin-bottom: 1.5rem;
  }
  input, select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  margin-top: 0.5rem;
  }
  button {
  background: #3b82f6;
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  transition: 0.3s;
  }
  button:hover {
  background: #2563eb;
  }
  @media (max-width: 768px) {
  .main-container {
  flex-direction: column;
  }
  }
  
  /* Media Queries for Responsiveness */
  
  @media (max-width: 768px) {
    
  .h-frame {
  flex-direction: column; /* Stack columns on top of each other */
  }
  
  .background-details,
  .quick-message {
  margin-right: 0; /* Reset right margin /
  margin-left: 0; / Reset left margin /
  margin-bottom: 20px; / Add spacing between stacked columns */
  }
  }
  


/* General services Section Styles */

.main-container {
  margin-top: 40px; /* Adjust this value as needed to position correctly below the slider */
  padding: 20px; /* Add padding to the main container */
}

.service {
  display: flex; /* Maintain flexbox layout */
  align-items: center; /* Vertically center items */
  background-color: #f1f1f1;
  border-radius: 5px;
  margin-bottom: 20px;
  padding: 1rem; /* Add padding for spacing */
}

.services h2 {
  margin-bottom: 20px;
  font-size: 2em;
}

/* Grid Container for Service Items */
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 20px;
}

/* Each Service Item Styles */

.service-item {
  overflow: hidden;
  position: relative;
}

.service-item img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.service-item:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.service-caption {
  margin-top: 10px;
  font-size: 1.1em;
  color: #333;
}

.service-item a {
  text-decoration: none;
  color: inherit;
}


/* Container for the video */

.video {
  padding: 40px 20px;
  background-color: #f9f9f9;
  text-align: center;
  font-family: Arial, sans-serif;
  }
  
  .video-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  }

  /* Responsive iframe styling */
  .video-container iframe {
  width: 560px;
  height: 315px;
  max-width: 100%;
  border: none;
  }

  

/* Footer Styles */

.footer {
  background-color: #3b82f6; /* Blue background */
  color: white; /* White text */
  padding: 40px 20px; /* Padding */
  text-align: left; /* Align text to the left */
}

.footer-container {
  display: flex; /* Flexbox for layout */
  justify-content: space-between; /* Space out sections */
  flex-wrap: wrap; /* Allow wrapping for smaller screens */
}

.footer-section {
  flex: 1; /* Equal space for each section */
  margin: 0 20px; /* Margin between sections */
  min-width: 220px; /* Ensure a minimum width for smaller screens */
}

.footer-section h3 {
  margin-bottom: 15px; /* Space below headings */
}

.footer-section p, .footer-section ul {
  margin: 0; /* Remove default margin */
}

.footer-section ul {
  list-style: none; /* Remove bullet points */
  padding: 0; /* Remove padding */
}

.footer-section ul li {
  margin-bottom: 10px; /* Space between list items */
}

.footer-section a {
  color: white; /* White links */
  text-decoration: none; /* Remove underline */
}

.footer-section a:hover {
  text-decoration: underline; /* Underline on hover */
}

.social-media {
  display: flex; /* Flexbox for social media icons */
  gap: 10px; /* Space between icons */
}

.wrapper {
  width: 100%; /* Ensure the wrapper spans the full width */
  display: flex; /* Optional: if you are using flexbox */
  flex-direction: column;
}

.footer-bottom {
  display: flex; /* Use Flexbox */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Optional: center vertically if height is defined */
  width: 100%; /* Full width */
  margin-top: 10px; /* Space above bottom text */
  font-size: 14px; /* Smaller font size */
  padding: 10px; /* Add some padding */
  color: #f9f2f2; /* Dark gray text color for contrast */
}

/* About Page Styles */
.a-container {
  max-width: 1200px;
  margin: 20px auto;
}

.a-about-box {
  border: 1px solid #ccc; /* Border around the box */
  border-radius: 8px; /* Rounded corners */
  padding: 20px; /* Padding inside the box */
  background-color: #f9f9f9; /* Light background color */
  margin: 0 20px 20px; /* Side gaps and bottom margin */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Shadow effect */
}

.a-about {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.a-column {
  width: 48%; /* Adjust width as needed */
}

.a-column h2 {
  text-align: center; /* Center the heading text */
}

.a-gallery {
  display: flex;
  justify-content: space-between;
}

.a-photo {
  width: 30%; /* Each photo takes up 30% of the row */
  text-align: center;
}

.a-photo img {
  width: 100%; /* Responsive image */
  height: auto;
  border-radius: 8px; /* Optional for rounded corners */
}

.a-photo p {
  margin-top: 10px; /* Space between image and caption */
}



/* Services Page Styles */

.card {
  width: 20rem;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.inner img {
  width: 100%;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.card-body {
  padding: 15px;
}

.card-title {
  margin: 0 0 10px;
}

.card-text {
  margin: 0;
}

.container {
  margin-top: 20px;
}


/* Service Section Styles */

.service-image {
  flex: 0 0 150px; /* Fixed width for the image */
  margin-right: 1rem; /* Add margin to the right of the image */
}

.service-image img {
  width: 100%;
  height: auto; /* Maintain aspect ratio */
  border-radius: 5px; /* Optional: round image corners */
}
.service-content {
  flex: 1;
  padding: 15px;
}

.service-content h5 {
  margin-bottom: 1 rem;
}

.service-content p {
  margin: 0;
}

a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}


.service-section {
  display: flex; /* Use flexbox */
  justify-content: space-around; /* Space between columns */
  gap: 2rem; /* Add gap between columns */
  margin-bottom: 2rem; /* Add margin below the section */
  
}

.about-section, .card-container {
  flex: 1; /* Each column takes equal space */
}

.card-container {
  text-align: center; /* Center the card */
}


/* ... other styles ... */

@media (max-width: 768px) {
  /* ... other mobile styles ... */
  .service-section {
    flex-direction: column; /* Stack items vertically on mobile */
    align-items: center; /* Center items horizontally */
  }

  .about-section, .card-container {
    width: 100%; /* Make each item full width */
    margin-bottom: 20px; /* Add spacing between items */
  }
}
/*



/* Dental Cases Styles */
.c-econtainer {
  max-width: 1200px;
  margin: 0 auto;
}

.c-egallery {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping to new lines */
  justify-content: space-between; /* Space between columns */
}

.c-egallery-item {
  width: 30%; /* Each item takes up 30% of the row */
  margin-bottom: 20px; /* Space below each item */
}

.c-eimage-frame {
  width: 100%; /* Full width of the parent */
  height: 450px; /* Set a specific height */
  border: 1px solid #ccc; /* Border around the frame */
  border-radius: 8px; /* Rounded corners */
  overflow: hidden; /* Hide overflow */
  position: relative; /* Positioning context for absolute elements */
}

.c-eimage-frame img {
  width: 100%; /* Make image responsive */
  height: 100%; /* Fill the frame height */
  object-fit: cover; /* Crop the image to fit while maintaining aspect ratio */
  position: absolute; /* Position the image absolutely */
  top: 0; /* Align to the top */
  left: 0; /* Align to the left */
}

/* Event Page Styles */
.econtainer {
  max-width: 1200px;
  margin: 0 auto;
}

.egallery {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping to new lines */
  justify-content: space-between; /* Space between columns */
}

.egallery-item {
  width: 30%; /* Each item takes up 30% of the row */
  margin-bottom: 20px; /* Space below each item */
}

.eimage-frame {
  width: 100%; /* Full width of the parent */
  height: 200px; /* Set a specific height */
  border: 1px solid #ccc; /* Border around the frame */
  border-radius: 8px; /* Rounded corners */
  overflow: hidden; /* Hide overflow */
  position: relative; /* Positioning context for absolute elements */
}

.eimage-frame img {
  width: 100%; /* Make image responsive */
  height: 100%; /* Fill the frame height */
  object-fit: cover; /* Crop the image to fit while maintaining aspect ratio */
  position: absolute; /* Position the image absolutely */
  top: 0; /* Align to the top */
  left: 0; /* Align to the left */
}

/* Contact Us Page Styles */
.cu-container {
  max-width: 1200px;
  margin: 0 auto;
}

.cu-contact-details {
  border: 1px solid #ccc; /* Border around the box */
  border-radius: 8px; /* Rounded corners */
  padding: 20px; /* Padding inside the box */
  background-color: #f9f9f9; /* Light background color */
  margin: 0 20px 20px; /* Side gaps and bottom margin */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Shadow effect */
  
  display: flex; /* Use flexbox for columns */
  justify-content: space-between; /* Space between columns */
  margin-bottom: 20px; /* Space below the columns */
}

.cu-column {
  width: 48%; /* Each column takes up 48% of the width */
}

.cu-map {
  margin-top: 20px; /* Space above the map */
  text-align: center; /* Center the map */
}

iframe {
  max-width: 100%; /* Make the map responsive */
  height: 450px; /* Set a height for the map */
}

p {
  border: 0px solid #ccc; /* Add border */
  padding: 10px; /* Add padding */
  max-width: 600px; /* Set a max width */
  word-wrap: break-word; /* Allow words to break */
}

a {
  text-decoration: none; /* Remove underline */
}

/* Mobile Styles */
@media (max-width: 768px) {
  .a-about {
      flex-direction: column; /* Stack columns vertically */
  }

  .a-column {
      width: 100%; /* Full width for each column */
      margin-bottom: 20px; /* Space between stacked columns */
  }

  .a-gallery {
      flex-direction: column; /* Stack photos vertically on mobile */
  }

  .a-photo {
      width: 100%; /* Full width for each photo */
      margin-bottom: 20px; /* Space between photos */
  }

  .c-egallery-item {
      width: 100%; /* Full width for each item on mobile */
  }

  .egallery-item {
      width: 100%; /* Full width for each item on mobile */
  }
}


#popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  background-color: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  color: #333; /* Dark text color for visibility */
}
#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

img {
  max-width: 100%; /* Responsive image */
  height: auto; /* Maintain aspect ratio */
}
