
html {
  position: relative;
  min-height: 100%;
}
body {
  margin-bottom: 0; /* Footer is now relative, not absolute */
  padding-bottom: 0;
}
.d-block {
  object-fit: none; /* Do not scale the image */
  object-position: center; /* Center the image within the element */
  width: 100%;
  max-height: 400px;
  margin-bottom: 1rem;
  font-size: 100;
}

#card-top-detail {
  object-fit: cover; /* Do not scale the image */
  object-position: center; /* Center the image within the element */
  width: 100%;
  max-height: 250px;
  margin-bottom: 1rem;
}

#aboutimgtop {
  object-fit: cover; /* Do not scale the image */
  object-position: center; /* Center the image within the element */
  width: 100%;
  max-height: 300px;
  margin-bottom: 1rem;
}

#imgblock {
  object-fit: none; /* Do not scale the image */
  object-position: center; /* Center the image within the element */
  vertical-align: middle;
  width: 100%;
  max-height: 300px;


}
table {
  width: 100%;
  max-height: 250px;
  vertical-align: middle;
  text-align: center;
  border-radius: 5px 5px 5px 5px;
}
table td, table th {
        font-size: 50px;
    }
#carouselExampleSlidesOnly {
  margin-top: 1rem;
}
#logopedic {
  text-align: center !important;
  color: grey;
  white-space: nowrap;
  margin: 0;
  padding: 0.5rem 1rem;
}
#logoped {
  text-align: center !important;
}
#jumbowithpic {
  margin-top: 1rem;
}

/* Modern Feature Cards */
.feature-card-link {
  text-decoration: none;
  display: block;
  height: 100%;
}

.feature-card-link:hover {
  text-decoration: none;
}

.feature-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #28a745, #007bff, #6f42c1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: #e0e0e0;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
  line-height: 1.5;
  letter-spacing: 0.3px;
}

@media (max-width: 768px) {
  .feature-card {
    padding: 2rem 1.5rem;
  }
  
  .feature-title {
    font-size: 1rem;
  }
}

/* Navbar height adjustment for larger logo */
.navbar {
  min-height: 60px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.navbar-brand {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  display: flex;
  align-items: center;
}

.jumbotron {
  background: transparent !important;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19) !important;
}

/* ============================================
   Modern Footer Styles (Atomic Design)
   ============================================ */

/* Footer Organism */
.modern-footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: #ecf0f1;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
  position: relative;
  width: 100%;
}

.modern-footer .container {
  max-width: 1200px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

/* Footer Brand Section */
.footer-brand-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.footer-brand-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #bdc3c7;
  margin: 0;
}

/* Footer Link Groups (Molecule) */
.footer-link-group {
  display: flex;
  flex-direction: column;
}

.footer-link-group-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link-item {
  margin-bottom: 0.75rem;
}

.footer-link {
  color: #bdc3c7;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-link:hover {
  color: #3498db;
  transform: translateX(5px);
  text-decoration: none;
}

.footer-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.external-link-icon {
  width: 14px;
  height: 14px;
  margin-left: 0.25rem;
  vertical-align: middle;
  display: inline-block;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

.footer-copyright {
  text-align: center;
  color: #95a5a6;
  font-size: 0.9rem;
  margin: 0;
}

.footer-copyright p {
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .modern-footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-link-group-title {
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .footer-content {
    gap: 1.5rem;
  }
  
  .footer-brand-title {
    font-size: 1.5rem;
  }
}

/* ============================================
   Service Card Styles (Molecule)
   ============================================ */

.service-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.service-card-image {
  width: 100%;
  overflow: hidden;
}

.service-card-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.service-card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.service-card-description {
  color: #7f8c8d;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.service-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.service-card-feature {
  padding: 0.5rem 0;
  color: #34495e;
  font-size: 0.95rem;
  padding-left: 1.5rem;
  position: relative;
}

.service-card-feature:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #27ae60;
  font-weight: bold;
}

.service-card-action {
  margin-top: auto;
}

.service-card-btn {
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

/* AMLPod Services Section */
.amlpod-services-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid #ecf0f1;
}

.amlpod-services-header {
  text-align: center;
  margin-bottom: 3rem;
}

.amlpod-services-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.amlpod-services-header p {
  font-size: 1.1rem;
  color: #7f8c8d;
  max-width: 700px;
  margin: 0 auto;
}

.amlpod-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .amlpod-services-grid {
    grid-template-columns: 1fr;
  }
  
  .amlpod-services-header h2 {
    font-size: 2rem;
  }
}
