/* 
 * Modern Doctor Page Navigation - Mobile First with Desktop Support
 * Add to doctorpage.css - Uses existing color variables from styles.css/doctors.css
 */

/* ============================================================
   DOCTOR NAVIGATION HEADER - Enhanced
=============================================================== */

.doctor-nav-header {
    background: var(--bg-card);
    box-shadow: 0 2px 16px rgba(var(--primary-rgb), 0.08);
    z-index: 1030;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
}

/* Top bar within doctor nav */
.doctor-nav-header .top-bar {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 0.75rem 0;
}

.doctor-nav-header .bg-light {
    background: var(--bg-card) !important;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.08);
}

.doctor-status .badge-pill {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.375rem 0.875rem;
}

/* ============================================================
   MODERN TAB NAVIGATION - Mobile First
=============================================================== */

.doctor-tabs-nav {
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
    background: var(--bg-card);
    position: sticky;
    top: 0;
    z-index: 1025;
}

.doctor-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: var(--bg-card);
}

.doctor-tab {
    all: unset;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: .75rem 0.5rem;
    min-height: 60px;
    color: var(--text-muted);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: transparent;
    border: none;
    outline: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.doctor-tab i {
    font-size: 1.25rem;
    margin-bottom: 0.375rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.doctor-tab span {
    font-weight: var(--font-weight-medium);
    line-height: 1.2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover States */
.doctor-tab:hover {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.04);
}

.doctor-tab:hover i {
    transform: translateY(-2px);
}

/* Active State - Modern Approach */
.doctor-tab.active {
    color: var(--primary);
    font-weight: var(--font-weight-semibold);
    background: rgba(var(--primary-rgb), 0.06);
}

.doctor-tab.active i {
    transform: translateY(-2px);
    color: var(--primary);
}

/* Modern Active Indicator */
.doctor-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 2px 2px 0 0;
    transform: scaleX(1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.doctor-tab:not(.active)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus State for Accessibility */
.doctor-tab:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
    background: rgba(var(--primary-rgb), 0.08);
}


/* ============================================================
   SECTION MANAGEMENT - Enhanced
=============================================================== */

.doctor-section {
    display: block;
}


/* ============================================================
   DESKTOP BEHAVIOR - 1024px and above
=============================================================== */

@media (min-width: 1024px) {
    /* Transform tabs into horizontal nav */
    .doctor-tabs-nav {
        background: var(--bg-card);
        border-top: 1px solid rgba(var(--primary-rgb), 0.1);
        border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
        position: static;
    }
    
    .doctor-tabs {
        display: flex;
        justify-content: center;
        max-width: 800px;
        margin: 0 auto;
        gap: 2rem;
        padding: 0 2rem;
    }
    
    .doctor-tab {
        flex: 0 1 auto;
        min-height: 60px;
        padding: 1rem 1.5rem;
        border-radius: 8px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .doctor-tab i {
        font-size: 1.125rem;
        margin-bottom: 0.25rem;
    }
    
    .doctor-tab span {
        font-size: var(--font-size-sm);
    }
    
    /* Desktop hover effects */
    .doctor-tab:hover {
        background: rgba(var(--primary-rgb), 0.08);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.15);
    }
    
    .doctor-tab.active {
        background: var(--primary);
        color: var(--text-on-primary);
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.25);
    }
    
    .doctor-tab.active i,
    .doctor-tab.active span {
        color: var(--text-on-primary);
    }
    
    /* Remove bottom border indicator on desktop */
    .doctor-tab::after {
        display: none;
    }
    
    /* Show all sections on desktop by default */
    .doctor-section {
        display: block;
        opacity: 1;
        transform: translateY(0);
        padding: 3rem 0;
    }
    
    /* Smooth scroll behavior for desktop navigation */
    html {
        scroll-behavior: smooth;
    }
    
    /* Desktop section spacing */
    .doctor-section:not(:last-child) {
        border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
    }
}

/* ============================================================
   TABLET ADJUSTMENTS - 768px to 1023px
=============================================================== */

@media (min-width: 768px) and (max-width: 1023px) {
    .doctor-tabs {
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .doctor-tab {
        padding: 0.875rem 0.75rem;
        min-height: 68px;
    }
    
    .doctor-tab span {
        font-size: var(--font-size-xs);
    }
}

/* ============================================================
   LARGE MOBILE - 480px to 767px
=============================================================== */

@media (min-width: 480px) and (max-width: 767px) {
    .doctor-tab {
        padding: 1rem 0.75rem;
    }
    
    .doctor-tab i {
        font-size: 1.375rem;
    }
    
    .doctor-tab span {
        font-size: var(--font-size-xs);
    }
}

/* ============================================================
   SMALL MOBILE - up to 479px
=============================================================== */

@media (max-width: 479px) {
    .doctor-nav-header .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .doctor-tab {
        padding: 0.875rem 0.25rem;
        min-height: 70px;
    }
    
    .doctor-tab i {
        font-size: 1.125rem;
        margin-bottom: 0.25rem;
    }
    
    .doctor-tab span {
        font-size: 0.625rem;
        font-weight: var(--font-weight-semibold);
    }
    
    /* Tighter active indicator for small screens */
    .doctor-tab.active::after,
    .doctor-tab:not(.active)::after {
        left: 25%;
        right: 25%;
    }
}

/* ============================================================
   ACCESSIBILITY ENHANCEMENTS
=============================================================== */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .doctor-tab,
    .doctor-tab i,
    .doctor-tab span,
    .doctor-tab::after,
    .doctor-section {
        transition: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .doctor-tab {
        border: 1px solid transparent;
    }
    
    .doctor-tab.active {
        border-color: var(--primary);
    }
    
    .doctor-tab:focus-visible {
        outline-width: 3px;
    }
}

/* ============================================================
   LOADING STATES
=============================================================== */

.doctor-nav-header.loading .doctor-tab {
    pointer-events: none;
    opacity: 0.6;
}

.doctor-nav-header.loading .doctor-tab::after {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}
  /* ============================================================
     DOCTOR IMAGE STYLING
  =============================================================== */
  
  .doctor-image-wrapper {
    max-width: 280px;
    margin: 0 auto;
  }
  
  .doctor-status {
    font-size: var(--font-size-xs);
  }
  
  .doctor-images-stack {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .doctor-images-stack img:first-child {
    width: 100%;
    border-radius: var(--border-radius-lg);
  }
  
  .doctor-images-stack img:nth-child(2) {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 50%;
    border-radius: var(--border-radius-lg);
    border: 3px solid #fff;
    box-shadow: var(--shadow-md);
  }
  
  /* ============================================================
     FLOATING ACTIONS (Only positioning needed)
  =============================================================== */
  
  .floating-actions {
    z-index: 1020;
  }
  
  .floating-actions .btn {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
  }
  
  .floating-actions .btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  }
  
  /* ============================================================
     RESPONSIVE BEHAVIOR
  =============================================================== */
  
  /* Mobile optimizations */
  @media (max-width: 767px) {
    .doctor-nav-header .container-fluid {
      padding-left: 1rem;
      padding-right: 1rem;
    }
    
    .metrics-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 0.75rem;
    }
    
    .floating-actions {
      display: flex;
    }
    /*
    .doctor-images-stack img:nth-child(2) {
      position: static;
      width: 60%;
      margin-top: 1rem;
    }
      */
  }
  
  /* Desktop: Hide mobile tabs and floating buttons */
  @media (min-width: 1024px) {
    .doctor-tabs-nav {
      display: none;
    }
    
    .doctor-section {
      display: block;
      padding: 2rem 0;
    }
    
    .floating-actions {
      display: none;
    }
    
    .metrics-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }
  
  /* ============================================================
     LOADING OVERLAY
  =============================================================== */
  
  #loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  
  .fa-spinner {
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }


/* ============================================================
   MODERN SERVICES SECTION - Mobile First
=============================================================== */

/* Services Grid Container */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0;
    margin-bottom: 3rem;
        /* Add enhanced styling */
        padding: 2rem;
        background: var(--gray-50);
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.04);
        border: 1px solid rgba(var(--primary-rgb), 0.08);
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Individual Service Card */
.service-card {
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 2px solid rgba(var(--primary-rgb), 0.1);
    box-shadow: 0 8px 32px rgba(var(--primary-rgb), 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, var(--bg-card), var(--gray-200));

}

/* Gradient top accent line */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--doctors-primary), var(--brand-orange));
    z-index: 1;
}


.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(var(--primary-rgb), 0.2);
    border-color: rgba(var(--primary-rgb), 0.2);
}

/* Service Image */
.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
    transition: transform 0.4s ease;
}

.service-card:hover .service-image {
    transform: scale(1.05);
}


/* Service Content */
.service-content {
    padding: 2rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    position: relative;
    z-index: 2;
}

.service-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.service-description {
    font-size: var(--font-size-base);
    color: var(--text-body);
    line-height: 1.5;
    margin: 0;
}

/* No Image State */
.service-card--no-image .service-content {
    padding: 3rem 2rem;
    text-align: center;
    min-height: 240px;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(var(--primary-rgb), 0.03) 100%);
}

.service-card--no-image .service-title {
    font-size: var(--font-size-xl);
    margin-bottom: 1.5rem;
}
/* ============================================================
   CONSULTATION INFO - Modern Clean Design
=============================================================== */

.consultation-info {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
}

.consultation-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .consultation-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.consultation-item {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.06);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(var(--primary-rgb), 0.08);
}

.consultation-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.12);
}

.consultation-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-on-primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.consultation-icon--success {
    background: linear-gradient(135deg, var(--bs-success), #16a085);
}

.consultation-icon--info {
    background: linear-gradient(135deg, var(--bs-info), #2980b9);
}

.consultation-content {
    flex-grow: 1;
}

.consultation-label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.consultation-value {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--text-heading);
    line-height: 1.4;
}

/* Mobile Optimization */
@media (max-width: 767px) {
    .consultation-item {
        padding: 1.25rem;
    }
    
    .consultation-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .consultation-label {
        font-size: var(--font-size-xs);
    }
    
    .consultation-value {
        font-size: var(--font-size-sm);
    }
}

/* ============================================================
   Services header etc .. could be used for any sectin start and header later 
=============================================================== */
/* Services Header Container */
.services-header {
    position: relative;
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.03), rgba(var(--doctors-primary-rgb), 0.02));
    border-radius: 16px;
    /* margin-bottom: 1.5rem; */
}

.services-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var( --brand-orange), var(--doctors-primary));
    border-radius: 2px;
}

/* Services Title */
.services-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: var(--font-weight-bold);
    background: linear-gradient(135deg, var(--doctors-primary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Services Subtitle */
.services-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-muted);
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .services-header {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .services-header::before {
        width: 60px;
        height: 3px;
    }
}


.doctor-section {
    /* Keep existing display/opacity rules */
    display: block;
    opacity: 1;
    transform: translateY(0);
    
    /* Add unified section styling 
    margin: 3rem 0;
    padding: 4rem 0;
    */
    position: relative;
    background: var(--gray-200);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(var(--primary-rgb), 0.06);
    border: 4px solid rgba(var(--primary-rgb), 0.08);
}

/* Alternating section backgrounds */
.doctor-section:nth-child(even) {
    background: var(--gray-200);
}

/* Section accent line */
.doctor-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem;
    right: 2rem;
    height: 3px;
    background: var(--gray-200);
    border-radius: 2px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .doctor-section {
        margin: 2rem 0;
        padding: 3rem 0;
        border-radius: 16px;
    }
    
    .doctor-section::before {
        left: 1rem;
        right: 1rem;
    }
}

/* ============================================================
   POSTS PAGE NAVIGATION & HERO
=============================================================== */

.posts-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.posts-nav .nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.posts-nav .nav-logo img {
    height: 40px;
    width: auto;
}

.posts-nav .nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#auth-widget-container {
    display: inline-flex;
}

.posts-hero {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(107, 79, 163, 0.03) 0%,
        rgba(107, 79, 163, 0.01) 50%,
        white 100%);
    padding: 3rem 0;
    border-bottom: 1px solid #e9ecef;
    overflow: hidden;
}

.posts-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: linear-gradient(120deg, 
        rgba(107, 79, 163, 0.15) 0%, 
        rgba(195, 101, 48, 0.08) 50%,
        rgba(107, 79, 163, 0.05) 100%);
    transform: rotate(-15deg);
    z-index: 0;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Credentials Bar */
.credentials-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.credentials-bar span {
    color: var(--doctors-primary);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

.credentials-bar span:not(:last-child)::after {
    content: "•";
    position: absolute;
    right: -0.75rem;
    color: #cbd5e0;
}

/* Stats Row */
.stats-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: rgba(107, 79, 163, 0.02);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(107, 79, 163, 0.05);
}

.stat-item i {
    color: var(--doctors-primary);
    font-size: 1rem;
}

.stat-item span {
    font-weight: 600;
    color: var(--text-heading);
    font-size: 1.125rem;
}

.stat-item small {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-left: 0.25rem;
}

/* Social Links */
.social-links-row {
    display: flex;
    gap: 0.75rem;
}

.social-links-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e9ecef;
    color: var(--gray-600);
    transition: all 0.3s ease;
}

.social-links-row a:hover {
    background: var(--doctors-primary);
    color: white;
    border-color: var(--doctors-primary);
    transform: translateY(-2px);
}

/* Hero Image */
.hero-image {
    width: 200px;
    height: 200px;
    position: relative;
}

.doctor-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    background: white;
    padding: 6px;
    box-shadow: 0 8px 24px rgba(107, 79, 163, 0.12);
}

.doctor-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--doctors-primary), var(--doctors-accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(107, 79, 163, 0.12);
}

.doctor-initials {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
}

.unified-doctor-hero {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #333;
    min-height: 40vh;
    border-bottom: 3px solid #6B4FA3;
}

/* Hero Header Section */
.hero-header {
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.hero-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.hero-logo img {
    /* Keep original HealthOK orange logo on white background */
    filter: none;
    height: 50px;
}

.hero-nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-back-link {
    color: #6B4FA3;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-back-link:hover {
    color: #4A2E71;
    text-decoration: none;
}

.hero-book-btn {
    background: #6B4FA3;
    color: white;
    border: 1px solid #6B4FA3;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-book-btn:hover {
    background: #4A2E71;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.hero-breadcrumb .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.hero-breadcrumb .breadcrumb-item {
    color: #666;
}

.hero-breadcrumb .breadcrumb-item a {
    color: #6B4FA3;
    text-decoration: none;
}

.hero-breadcrumb .breadcrumb-item a:hover {
    color: #4A2E71;
    text-decoration: underline;
}

.hero-breadcrumb .breadcrumb-item.active {
    color: #333;
    font-weight: 500;
}

/* Hero Content Section */
.hero-content-section {
    padding: 2rem 0;
}

/* Simplified hero content for posts page */
.hero-content-simple {
    text-align: center;
    padding: 1rem 0;
}

.hero-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.hero-mini-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--doctors-primary);
}

.hero-title {
    margin: 0;
    font-size: 1.75rem;
    color: var(--text-heading);
    font-weight: 600;
}

.hero-subtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
}

.hero-content-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}

.hero-main-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-main-content .hero-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Hero Doctor Card */
.hero-doctor-card {
    background: white;
    border: 2px solid #6B4FA3;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    min-width: 240px;
    box-shadow: 0 4px 20px rgba(107, 79, 163, 0.1);
}

.hero-doctor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #6B4FA3;
    margin: 0 auto 1rem;
    object-fit: cover;
}

.hero-doctor-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.hero-doctor-specialty {
    font-size: 1rem;
    color: #6B4FA3;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.hero-doctor-location {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.hero-consultation-btn {
    background: #C36530;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    width: 100%;
}

.hero-consultation-btn:hover {
    background: #A55429;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(195, 101, 48, 0.3);
}

/* Hero Stats Section - Simple Icons */
.hero-stats-section {
    padding: 1.5rem 0;
    border-top: 1px solid #e9ecef;
}

.hero-stats-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.95rem;
}

.hero-stat-icon {
    color: #C36530;
    font-size: 1.1rem;
}

.hero-stat-number {
    font-weight: 600;
    color: #333;
}

.hero-stat-label {
    color: #666;
}

/* ============================================================
   MOBILE RESPONSIVE
=============================================================== */
@media (max-width: 768px) {
    /* Posts Navigation Mobile */
    .posts-nav .nav-content {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .posts-nav .nav-logo img {
        height: 35px;
    }
    
    .posts-nav .nav-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .posts-nav .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    /* Posts Hero Mobile */
    .posts-hero {
        padding: 2rem 0;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .credentials-bar {
        justify-content: center;
        gap: 1rem;
        font-size: 0.875rem;
    }
    
    .credentials-bar span:not(:last-child)::after {
        display: none;
    }
    
    .stats-row {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .stat-item {
        min-width: 70px;
    }
    
    .social-links-row {
        justify-content: center;
        margin-bottom: 2rem;
    }
    
    .hero-image {
        width: 150px;
        height: 150px;
        margin: 0 auto;
        order: -1; /* Move image to top on mobile */
    }
    
    .doctor-initials {
        font-size: 2.5rem;
    }
    
    .unified-doctor-hero {
        min-height: 35vh;
    }
    
    .hero-navbar {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .hero-nav-actions {
        justify-content: space-between;
        width: 100%;
    }
    
    .hero-content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .hero-doctor-card {
        order: -1;
        min-width: auto;
        margin: 0 auto;
        max-width: 280px;
    }
    
    .hero-main-content h2 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-main-content .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats-grid {
        gap: 1rem;
        justify-content: center;
    }
    
    .hero-stat-item {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-book-btn {
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
    }
    
    .hero-stats-grid {
        gap: 0.75rem;
    }
    
    .hero-doctor-card {
        padding: 1.25rem;
    }
    
    .hero-doctor-avatar {
        width: 70px;
        height: 70px;
    }
}
/* ============================================================
   POST CARDS SYSTEM
=============================================================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.post-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 340px; /* Fixed height for consistency */
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(var(--doctors-primary-rgb), 0.1);
    text-decoration: none;
    color: inherit;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(var(--doctors-primary-rgb), 0.2);
    text-decoration: none;
    color: inherit;
}

.post-card-banner {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.post-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.post-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.post-card-image {
    width: 100%;
    height: 180px; /* Fixed height for all visual elements */
    position: relative;
    overflow: hidden;
    flex-shrink: 0; /* Prevents shrinking */
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-banner-text {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    color: var(--text-on-dark);
}

.post-card-banner-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    margin: 0;
}

.post-card-content {
    padding: 1rem;
    height: 160px; /* Fixed content area height */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.post-card-title {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--text-heading);
    line-height: var(--line-height-snug);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-excerpt {
    font-size: var(--font-size-sm);
    color: var(--text-body);
    line-height: var(--line-height-body);
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Max 2 lines of excerpt */
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1; /* Takes available space */
    margin-bottom: 0.75rem;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.post-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-muted);
    font-size: var(--font-size-xs);
}

.post-card-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.post-card-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-card-stats i {
    font-size: 0.875rem;
    opacity: 0.7;
}

.post-card-category {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--doctors-primary);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Category gradient backgrounds for text-only posts */
.post-banner-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.post-banner-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.post-banner-insights {
    background: linear-gradient(135deg, var(--doctors-primary), var(--doctors-accent));
}

.post-banner-case-studies {
    background: linear-gradient(135deg, var(--doctors-secondary), var(--doctors-primary));
}

.post-banner-announcements {
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-light));
}

.post-banner-research {
    background: linear-gradient(135deg, var(--doctors-accent), var(--doctors-light));
    color: var(--doctors-dark);
}

.post-banner-general-health {
    background: linear-gradient(135deg, var(--doctors-light), var(--doctors-primary));
    color: var(--doctors-dark);
}

/* Default gradient for unmatched categories */
.post-banner-general {
    background: linear-gradient(135deg, var(--doctors-primary), var(--doctors-accent));
}

/* Featured post styling */
.featured-post {
    grid-column: 1 / -1;
    height: auto;
    margin-bottom: 1rem;
}

.featured-post .post-card {
    height: auto;
    flex-direction: row;
    max-height: 300px;
}

.featured-post .post-card-banner {
    width: 40%;
    height: 300px;
}

.featured-post .post-card-content {
    width: 60%;
    height: auto;
    padding: 2rem;
    justify-content: center;
}

.featured-post .post-card-title {
    font-size: var(--font-size-xl);
    -webkit-line-clamp: 3;
    margin-bottom: 1rem;
}

.featured-post .post-card-excerpt {
    font-size: var(--font-size-base);
    -webkit-line-clamp: 3;
    margin-bottom: 1rem;
}

/* Mobile featured post adjustments */
@media (max-width: 768px) {
    .featured-post .post-card {
        flex-direction: column;
        height: 420px;
    }
    
    .featured-post .post-card-banner {
        width: 100%;
        height: 200px;
    }
    
    .featured-post .post-card-content {
        width: 100%;
        height: 220px;
        padding: 1.5rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem; /* Add edge spacing on mobile */
    }
    
    .post-card {
        height: 340px; /* Keep consistent height on mobile */
        max-width: 100%;
    }
    
    .post-card-image,
    .post-card-banner {
        height: 180px; /* Keep consistent image height */
    }
    
    .post-card-content {
        height: 140px;
    }
}