/* Desktop styles (990px and above) */
:root {
  --header-height: 90px;
}

/* Base desktop styles */
body {
  margin: 0 !important;
  padding-top: 0 !important;
}

/* Main content spacing */
main, .main-content, #main-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
  position: relative;
  z-index: 1;
}

/* Homepage specific styles - no top spacing */
.homepage #main-content,
.homepage .hero,
.homepage .hero-slideshow {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Specific pages that need header spacing */
.about-page,
.testimonials-page,
.blog-page {
  padding-top: var(--header-height) !important;
}

/* Ensure first section on specific pages has proper spacing */
.about-page #main-content > section:first-child,
.testimonials-page #main-content > section:first-child,
.blog-page #main-content > section:first-child {
  padding-top: 30px !important;
  margin-top: 0 !important;
}

/* Make sure page headers have proper spacing */
.page-header {
  margin-top: 0 !important;
  padding-top: 60px !important;
}

/* Reset any conflicting styles */
.about-page .page-header,
.testimonials-page .page-header,
.blog-page .page-header {
  padding-top: 30px !important;
}

/* Hide mobile header and menu on desktop */
.mobile-header,
.mobile-menu-overlay,
.mobile-close-btn,
.mobile-menu-modal,
.mobile-menu-toggle,
.mobile-nav,
.mobile-menu-container,
.mobile-menu {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  position: absolute !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}

/* Desktop header styles */
.mainHeader.desktop-header {
    display: block;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mainHeader.desktop-header.hide-header {
    transform: translateY(-100%);
}

/* Staff image styling for desktop */
.staff-image {
    height: 300px;
    overflow: hidden;
}

.staff-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 20%;
    transition: transform 0.5s ease;
}

/* Hero section background image cropping for desktop */
.hero-slideshow .slide:first-child {
    background-position: 50% 20% !important;
    background-size: cover;
    background-repeat: no-repeat;
}

.featured-doctor-header {
    display: none; /* Hide mobile header on desktop */
}

/* Mobile header is hidden in desktop view */
.featured-doctor-header {
    display: none;
}

.featured-doctor-image {
    flex: 1;
    max-width: 50%;
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center; /* Center the image vertically */
    justify-content: center; /* Center the image horizontally */
    background: #f8f9fa; /* Light background for any empty space */
}

.featured-doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the container while maintaining aspect ratio */
    display: block;
    transition: transform 0.3s ease;
    object-position: 50% 30%; /* Adjusted to crop higher up */
}

.featured-doctor-image img:hover {
    transform: scale(1.03);
}

.featured-doctor-content {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
}

/* Doctor's header in content area */
.featured-doctor-content h1 {
    font-size: 2.2rem;
    margin: 0 0 10px 0;
    color: #2c3e50;
    display: block;
}

.featured-doctor-content .specialty {
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 500;
    margin: 0 0 10px 0;
    display: block;
}

.featured-doctor-content .doctor-title {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin: 0 0 25px 0;
    display: block;
}

.doctor-bio {
    margin: 0 0 25px 0;
    line-height: 1.7;
    color: #555;
    font-size: 1.05rem;
}

.doctor-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 30px 0;
    padding: 0;
    list-style: none;
}

.doctor-specialties li {
    background: #f5f5f5;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    color: #333;
    transition: all 0.3s ease;
}

.doctor-specialties li:hover {
    background: #e8e8e8;
    transform: translateY(-2px);
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 25px 0;
    border: none;
}

/* Ensure main content doesn't hide behind fixed header */
#main-content {
  padding-top: var(--header-height);
}

/* Adjust hero section positioning to remove white space */
.homepage #main-content {
  padding-top: 0;
  overflow: visible;
}

.homepage .hero {
  position: relative;
  top: 0;
  margin-top: 0 !important;
  padding-top: 0 !important;
  min-height: 100vh;
  z-index: 1;
}

.homepage .hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  z-index: 0;
}

/* Hide mobile menu toggle on desktop */
.mobileMenuToggle,
.mobileMenuOverlay {
  display: none !important;
}

/* Ensure desktop navigation is visible */
.mainNav {
  display: block !important;
}

/* Small desktops (1024px - 1199.98px) */
@media (min-width: 1024px) and (max-width: 1199.98px) {
  /* Adjust header padding */
  .topBar {
    padding: 0.75rem 2rem;
  }
  
  .contact-info {
    gap: 1.25rem;
  }
  
  .contact-item {
    font-size: 0.9rem;
  }
}

/* Standard desktops (1200px - 1439.98px) */
@media (min-width: 1200px) and (max-width: 1439.98px) {
  /* Standard desktop styles */
  .topBar {
    padding: 0.75rem 2.5rem;
  }
  
  .contact-info {
    gap: 1.5rem;
  }
}

/* Large desktops (1440px and above) */
@media (min-width: 1440px) {
  /* Large desktop styles */
  .topBar {
    padding: 0.75rem 3rem;
  }
  
  .contact-info {
    gap: 2rem;
  }
}

/* Extra large screens (1920px and above) */
@media (min-width: 1920px) {
  /* Extra large screen styles */
  .topBar {
    padding: 1rem 4rem;
  }
  
  .logo-img {
    height: 50px;
  }
  
  .contact-info {
    gap: 2.5rem;
  }
  
  .contact-item {
    font-size: 1rem;
  }
}
