/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', Arial, sans-serif;
}

/* Body Styling */
body {
    background-color: #f8fbff; /* Very soft light blue */
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Header Styling */
header {
    background: linear-gradient(135deg, #65a4e3, #c1d7a7);
    color: #fff;
    text-align: center;
    padding: 40px 10px;
    font-size: 2.2rem;
    letter-spacing: 1px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 30px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

/* Section Styling */
.info-section {
    max-width: 1200px;
    margin: 50px auto;
    background-color: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: rgba(0, 188, 212, 0.15);
    border-radius: 50%;
    z-index: 0;
}

.info-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(0, 115, 230, 0.15);
    border-radius: 50%;
    z-index: 0;
}

.info-section:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

/* Section Heading */
.info-section h2 {
    color: #002366;
    margin-bottom: 15px;
    font-size: 2.2rem;
    text-transform: capitalize;
    text-align: center;
    position: relative;
    z-index: 1;
}

.info-section h2::after {
    content: '';
    width: 80px;
    height: 5px;
    background: #002366;
    display: block;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Section Content */
.info-section p {
    color: #555;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* Card Container */
.card-container {
  display: flex;
  gap: 25px;
  justify-content: center;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.card {
  flex: 1;
  height: 400px; /* Fixed height */
  background: linear-gradient(135deg, #65a4e3, #c1d7a7);
  padding: 15px; /* Adjust padding as needed */
  border-radius: 15px;
  text-align: center;
  font-weight: bold;
  font-size: 1.2rem;
  color: #638F32;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease-in-out;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  width: 100px;
  height: 100px;
  background: rgba(0, 188, 212, 0.2);
  border-radius: 50%;
  z-index: 0;
}

.card:hover {
  background: linear-gradient(135deg, #65a4e3, #c1d7a7);
  color: #fff;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-10px);
}

.card-image {
  width: 100%; /* Makes the image fill the card's width */
  height: 100%; /* Ensures the image fits the card's height */
  object-fit: cover; /* Scales the image to cover the area without distortion */
  border-radius: 10px; /* Optional: Match the border-radius of the card */
}




/* Decorative Dotted Lines */
.decor-line {
    margin: 20px auto;
    width: 50%;
    border: none;
    border-top: 2px dashed #00bcd4;
    position: relative;
    z-index: 1;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .card-container {
        flex-direction: column;
    }

    .info-section h2 {
        font-size: 1.8rem;
    }

    header {
        font-size: 1.8rem;
        padding: 20px;
    }
}














/* Top Bar */
.custom-top-bar {
  border-bottom: 1px solid #ddd;
}

/* Primary Text Color */
.custom-text-primary {
  color: #003366 !important;
}

/* Icon Styling */
.custom-phone-info i, 
.custom-location-info i {
  font-size: 1.2rem;
}

/* Ensure content is aligned as required */
.custom-logo-container {
  display: flex;
  align-items: center;
  position: relative; /* Add relative positioning */
  left: -20px; /* Increase the negative value to move the logo further left */
}

.custom-logo-container .custom-logo-image {
  margin-right: 5px; /* Space between logo and text */
}

/* Container Styling */
.custom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Flexbox Utility */
.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.text-center {
  text-align: center;
}

/* Move right items further right */
.custom-right-content {
  position: relative;
  right: -20px; /* Move right items further to the right */
}

.custom-phone-info {
  margin-right: 15px;
}

.custom-location-info {
  margin-left: 15px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .custom-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .custom-logo-container {
    left: 0; /* Reset left positioning */
    justify-content: center;
    margin-bottom: 10px;
  }

  .custom-right-content {
    flex-direction: column;
    right: 0; /* Reset right positioning */
    text-align: center;
  }

  .custom-phone-info,
  .custom-location-info {
    margin: 5px 0;
  }
}

@media (max-width: 768px) {
  .custom-logo-image {
    height: 40px; /* Adjust logo size for smaller screens */
  }

  .custom-text-primary {
    font-size: 0.9rem;
  }

  .custom-phone-info i, 
  .custom-location-info i {
    font-size: 1.1rem;
  }
}

/* Navbar Styles */
.navbar {
  display: flex;
  align-items: center;
  padding: 10px 0;
}

.navbar-dark {
  background-color: #003366; /* Navy Blue */
}

.navbar-nav {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: 600;
}

.nav-link:hover {
  color: #f8f9fa;
}

/* Dropdown Styles */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 0;
  margin: 0;
  list-style: none;
  z-index: 1000;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.dropdown-item {
  padding: 10px 20px;
  font-size: 14px;
  color: #333;
  white-space: nowrap;
  text-decoration: none;
  display: block;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  color: #000;
}

/* Show Dropdown on Hover */
.nav-item:hover > .dropdown-menu {
  display: block;
}

/* Preventive Cardiology Submenu */
.preventive-dropdown .dropdown-menu {
  position: absolute;
  top: 0;
  left: 100%; /* Align to the right of the parent */
  margin-left: 0;
  border-radius: 5px;
}

.preventive-dropdown:hover > .dropdown-menu {
  display: block;
}

/* Submenu Items */
.preventive-dropdown .dropdown-item {
  padding: 10px 16px;
  font-size: 14px;
}

.preventive-dropdown .dropdown-item:hover {
  background-color: #f1f1f1;
  color: #000;
}

/* Nested Dropdowns */
.dropdown-item.dropdown {
  position: relative;
}
.dropdown-item.dropdown .dropdown-menu {
  position: absolute;
  top: 0;
  left: 100%; /* Aligns submenu to the right */
  margin-top: -10px; /* Slight alignment adjustment */
  border-radius: 5px;
  display: none;
  z-index: 1; /* Ensure submenu appears above other elements */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); /* Add subtle shadow */
}

.dropdown-item.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-link {
  text-decoration: none; /* Remove underline */
  color: #333; /* Set the color to dark gray or another color */
  transition: color 0.3s ease; /* Smooth hover transition */
}

.dropdown-link:hover {
  color: #003366; /* Change hover color (optional) */
}

/* Responsive Navbar */
@media (max-width: 768px) {
  .navbar-nav {
    flex-direction: column;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    margin-top: 5px;
  }

  .preventive-dropdown .dropdown-menu {
    position: static;
    margin-left: 0;
  }
}

/* Specific Padding for the Parent Div */
.d-flex.align-items-center {
  padding: 0 15px; /* Add padding to move items away from edges */
  width: auto; /* Ensure it doesn't stretch unnecessarily */
}

/* Appointment Button Custom Style */
.btn-appointment {
  background-color: #638F32; /* custom green background */
  color: #fff; /* White text */
  font-weight: bold; /* Bold text */
  font-family: 'Poppins', sans-serif; /* Poppins font */
  border: 2px solid #638F32; 
  border-radius: 4px; /* Rounded corners */
  padding: 10px 20px; /* Padding for a clean appearance */
  font-size: 1rem; /* Font size */
  transition: background-color 0.3s ease, color 0.3s ease; /* Smooth hover transition */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); /* Add subtle shadow */
  margin-left: 10px; /* Fine-tune spacing if needed */
}

/* Hover Effect */
.btn-appointment:hover {
  background-color: #638F32;
  color: #fff; /* text white */
  border-color: #638F32; 
}

/* Focus State */
.btn-appointment:focus {
  box-shadow: 0 0 5px rgba(131, 174, 67, 0.6); /* Subtle green glow on focus */
  outline: none; 
}
/* Training Button Custom Style */
.btn-training {
  background-color: #638F32; /* custom green background */
  color: #fff; /* White text */
  font-weight: bold; /* Bold text */
  font-family: 'Poppins', sans-serif; /* Poppins font */
  border: 2px solid #002366; 
  border-radius: 4px; /* Rounded corners */
  padding: 10px 20px; /* Padding for a clean appearance */
  font-size: 1rem; /* Font size */
  transition: background-color 0.3s ease, color 0.3s ease; /* Smooth hover transition */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); /* Add subtle shadow */
  margin-left: 10px; /* Fine-tune spacing if needed */
}

/* Hover Effect */
.btn-training:hover {
  background-color: #7f9664;
  color: #fff; /* text white */
  border-color: #002366; 
}

/* Focus State */
.btn-training:focus {
  box-shadow: 0 0 5px rgba(67, 74, 174, 0.6); /* Subtle green glow on focus */
  outline: none; 
}


  /* Banner */
  .banner2-section {
    position: relative;
    background-image: url('../assets/p/appointment-banner.jpg');
    background-size: cover;
    background-position: center;
    padding: 50px 0;
    color: #002366; /* Dark blue text color */
  
    /* Add a subtle box shadow to the banner edges */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  
    /* Optional: Add a gradient overlay for a softer look */
    background: linear-gradient(
        rgba(0, 0, 0, 0.1), 
        rgba(0, 0, 0, 0.1)
      ),
      url('../assets/images/appointment-banner.jpg');
    background-size: cover;
    background-position: center;
  }
  
  /* Add text-shadow for the banner text */
  .banner2-section h1, 
  .banner2-section p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Subtle shadow */
  }
  
  .banner2-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8); /* White overlay with transparency */
  }
  .banner2-content {
    position: relative;
    z-index: 1;
    text-align: left;
  }
  .banner2-content h1 {
    font-size: 2.5rem;
    font-weight: bold;
  }
  .breadcrumb1 {
    background: transparent;
    padding: 0;
    margin-bottom: 0.5rem;
  }
  .breadcrumb1 a {
    color: #002366;
    text-decoration: none;
  }
  .breadcrumb1 a:hover {
    text-decoration: underline;
  }


/* Footer Section */
.footer-section {
    background-color: #003366; /* Dark blue background */
    
  }
  
  .footer-section h5,
  .footer-section h6 {
    font-size: 1.25rem;
    font-weight: bold;
  }
  
  .footer-section p,
  .footer-section ul {
    font-size: 0.9rem;
    color: #eaeaea;
  }
  
  .footer-section a {
    color: #eaeaea;
    transition: color 0.3s ease;
  }
  
  .footer-section a:hover {
    color: #003366;
  }
  
  .footer-section .input-group .form-control {
    border: none;
    border-radius: 0;
    font-size: 0.9rem;
  }
  
  .footer-section .input-group .btn {
    background-color: #003366; /* Light blue button */
    border: black;
    color: #fff;
    border-radius: 0;
    transition: background-color 0.3s ease;
  }
  
  .footer-section .input-group .btn:hover {
    background-color: #003366;
    border:#002366;
  }
  
  .footer-section hr {
    border-top: 1px solid #eaeaea;
    opacity: 0.2;
  }




/* Global Styling */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #f4f7fc;
  color: #333;
}

/* AFIC Contact Section */
.afic-contact-section {
  background: linear-gradient(135deg, #ffffff, #f5f7fa);
  padding: 60px 20px;
  max-width: 1200px;
  margin: 50px auto;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
}

/* Grid Styling */
.afic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 Cards in One Row */
  gap: 20px;
  justify-content: center;
  align-items: stretch;
}

/* Individual Item Styling */
.afic-item {
  background: linear-gradient(135deg, #e1f5fe, #79aac1); /* Default Light Blue Gradient */
  border-radius: 12px;
  padding: 25px 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.afic-item:nth-child(2) {
  background: linear-gradient(135deg, #e4eafc, #bbdff8); /* Light Pink Gradient */
}

.afic-item:nth-child(3) {
  background: linear-gradient(135deg, #e8e5f5, #bee7d6); /* Light Purple Gradient */
}

.afic-item:nth-child(4) {
  background: linear-gradient(135deg, #b2faa5, #c8e6c9); /* Light Green Gradient */
}

.afic-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Icon Styling */
.afic-icon {
  font-size: 3rem;
  color: #004080;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.afic-item:hover .afic-icon {
  transform: scale(1.2);
}

/* Text Styling */
.afic-item h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 10px;
}

.afic-item p {
  font-size: 1rem;
  color: #444;
  margin: 0;
}

.afic-item a {
  color: #004080;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.afic-item a:hover {
  color: #006699;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .afic-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 Cards Per Row */
  }
}

@media (max-width: 768px) {
  .afic-grid {
    grid-template-columns: 1fr; /* 1 Card Per Row */
  }

  .afic-item {
    padding: 20px;
  }
}






    /* Table Container */
    .table-container {
      width: 100%;
      max-width: 1500px;
      overflow: hidden;
      border-radius: 10px;
      box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
      background-color: #fff;
      animation: fadeIn 1s ease-in-out;
    }

    /* Table Styles */
    table {
      width: 100%;
      border-collapse: collapse;
      text-align: center;
      overflow: hidden;
    }

    thead {
      background: linear-gradient(135deg, #4c87b5, #6fa3c7);
      color: #fff;
    }

    th, td {
      padding: 12px 15px;
      font-size: 16px;
      border: 1px solid #e6e6e6;
    }

    tbody tr:nth-child(even) {
      background-color: #f2f7fb;
    }

    tbody tr:nth-child(odd) {
      background-color: #ffffff;
    }

    tbody tr {
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    tbody tr:hover {
      background-color: #e6f2ff;
      transform: scale(1.02);
      box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    }

    th {
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    /* Table Animation */
    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }