/* Quick Care Connect Custom Styles */
/*
 * This file contains legacy custom styles and will be gradually migrated to use
 * the new design system. Import design-system.css before this file.
 *
 * New styles should use design system tokens and classes from design-system.css
 */

/* Legacy Brand Colors - Kept for backwards compatibility */
:root {
  /* These are now aliases to design system tokens */
  --qcc-primary: var(--qcc-primary-700, #1e2f49);
  --qcc-secondary: var(--qcc-secondary-500, #F85647);
  --qcc-primary-rgb: 30, 47, 73;
  --qcc-secondary-rgb: 248, 86, 71;
}

/* Override Bootstrap Primary Colors */
.btn-primary {
  background-color: var(--qcc-primary);
  border-color: var(--qcc-primary);
}

.btn-primary:hover {
  background-color: #152436;
  border-color: #152436;
}

.btn-outline-primary {
  color: var(--qcc-primary);
  border-color: var(--qcc-primary);
}

.btn-outline-primary:hover {
  background-color: var(--qcc-primary);
  border-color: var(--qcc-primary);
}

.text-primary {
  color: var(--qcc-primary) !important;
}

.bg-primary {
  background-color: var(--qcc-primary) !important;
}

/* Secondary Color Classes */
.btn-secondary {
  background-color: var(--qcc-secondary);
  border-color: var(--qcc-secondary);
}

.btn-secondary:hover {
  background-color: #e64a3d;
  border-color: #e64a3d;
}

.text-secondary {
  color: var(--qcc-secondary) !important;
}

.bg-secondary {
  background-color: var(--qcc-secondary) !important;
}

.qcc-alert .btn {
    padding: 0.75rem 1rem !important;
    --bs-btn-line-height: 8px;
}

/* Navigation Styles */
.navbar {
  min-height: 70px;
}

.navbar-brand img {
  max-height: 40px;
}

/* Hero Section - Legacy (kept for backwards compatibility) */
.hero {
  background: linear-gradient(135deg, var(--qcc-primary) 0%, #2a3f5f 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  background-size: cover;
  opacity: 0.1;
}

/* ================================================
   HERO SECTION - MODERN IMPLEMENTATION
   ================================================ */

/* Common Hero Section Styles */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Hero Background Container */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

/* Hero Image - Ensure proper sizing and filling */
.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Hero Overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, rgba(30, 47, 73, 0.8) 0%, rgba(99, 102, 241, 0.7) 100%);
}

body.page-template .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  color: white;
  padding: 4rem 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Hero Text Styling */
.hero-text {
  color: white;
}

.hero-title {
  color: white !important;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.25rem;
  line-height: 1.6;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Hero Trust Indicators */
.hero-trust {
  margin-top: 2rem;
}

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

.trust-number {
  color: var(--qcc-secondary) !important;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.trust-label {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hero Visual Content */
.hero-visual {
  position: relative;
  z-index: 3;
}

.hero-visual img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Page-specific Hero Overlays */
.employee-hero .hero-overlay {
  background: linear-gradient(135deg, rgba(30, 47, 73, 0.8) 0%, rgba(99, 102, 241, 0.7) 100%);
  z-index: 2;
}

.agency-hero .hero-overlay {
  background: linear-gradient(135deg, rgba(30, 47, 73, 0.8) 0%, rgba(139, 92, 246, 0.7) 100%);
}

.facility-hero .hero-overlay {
  background: linear-gradient(135deg, rgba(30, 47, 73, 0.8) 0%, rgba(34, 197, 94, 0.7) 100%);
}

.patient-hero .hero-overlay {
  background: linear-gradient(135deg, rgba(30, 47, 73, 0.8) 0%, rgba(59, 130, 246, 0.7) 100%);
}

/* Form Containers in Hero */
.job-search-container,
.search-form-container {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Full-width hero for agency page */
.agency-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Responsive Hero Adjustments */
@media (max-width: 1200px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .hero-content {
    min-height: 90vh;
    padding: 3rem 0;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .hero-content {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 2.5rem !important;
  }
  
  .hero-subtitle {
    font-size: 1.1rem !important;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
    margin-right: 0 !important;
  }
  
  .hero-visual {
    margin-top: 2rem;
  }
  
  .agency-hero {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
  
  .hero-trust {
    margin-top: 1.5rem;
  }
  
  .trust-number {
    font-size: 1.5rem !important;
  }
  
  .trust-label {
    font-size: 0.8rem !important;
  }
}

@media (max-width: 576px) {
  .hero-section {
    min-height: 70vh;
  }
  
  .hero-content {
    min-height: 70vh;
    padding: 1.5rem 0;
  }
  
  .hero-title {
    font-size: 2rem !important;
  }
  
  .hero-subtitle {
    font-size: 1rem !important;
  }
  
  .trust-item {
    margin-bottom: 1rem;
  }
}

/* Ensure proper aspect ratio maintenance */
@supports (aspect-ratio: 16/9) {
  .hero-image {
    aspect-ratio: 16/9;
  }
}

/* Fallback for browsers that don't support aspect-ratio */
@supports not (aspect-ratio: 16/9) {
  .hero-image {
    height: 100vh;
    min-height: 600px;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Card Hover Effects */
.hover-shadow {
  transition: all 0.3s ease;
}

.hover-shadow:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(var(--qcc-primary-rgb), 0.1);
}

/* Role Cards - Enhanced with design system integration */
.role-card {
  border: 2px solid transparent;
  transition: var(--qcc-transition-base, all 0.3s ease);
  border-radius: var(--qcc-radius-lg, 0.5rem);
}

.role-card:hover {
  border-color: var(--qcc-primary);
  box-shadow: var(--qcc-shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
  transform: translateY(-2px);
}

.role-card .icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--qcc-radius-full, 50%);
  background: rgba(var(--qcc-primary-rgb), 0.1);
  color: var(--qcc-primary);
  font-size: var(--qcc-font-size-2xl, 1.5rem);
  margin: 0 auto var(--qcc-space-4, 1rem);
}

/* KPI Cards */
.kpi-card {
  border-left: 4px solid var(--qcc-primary);
}

.kpi-card .icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(var(--qcc-primary-rgb), 0.1);
  color: var(--qcc-primary);
}

/* Form Styles - Enhanced with design system */
.form-control:focus,
.form-select:focus {
  border-color: var(--qcc-form-border-focus, var(--qcc-primary));
  box-shadow: 0 0 0 0.25rem rgba(var(--qcc-primary-rgb), 0.25);
  transition: var(--qcc-transition-fast, 150ms ease-in-out);
}

.form-control {
  border-radius: var(--qcc-radius-md, 0.375rem);
  border-color: var(--qcc-form-border, #d1d5db);
}

.form-floating > label {
  color: var(--qcc-form-placeholder, #6c757d);
}

/* Status Badges - Enhanced with design system */
.badge-status-active {
  background-color: var(--qcc-success-600, #28a745);
  color: white;
  padding: var(--qcc-space-1, 0.25rem) var(--qcc-space-2, 0.5rem);
  border-radius: var(--qcc-radius-base, 0.25rem);
  font-size: var(--qcc-font-size-xs, 0.75rem);
  font-weight: var(--qcc-font-weight-medium, 500);
}

.badge-status-pending {
  background-color: var(--qcc-warning-500, #ffc107);
  color: var(--qcc-warning-900, #000);
  padding: var(--qcc-space-1, 0.25rem) var(--qcc-space-2, 0.5rem);
  border-radius: var(--qcc-radius-base, 0.25rem);
  font-size: var(--qcc-font-size-xs, 0.75rem);
  font-weight: var(--qcc-font-weight-medium, 500);
}

.badge-status-inactive {
  background-color: var(--qcc-gray-500, #6c757d);
  color: white;
  padding: var(--qcc-space-1, 0.25rem) var(--qcc-space-2, 0.5rem);
  border-radius: var(--qcc-radius-base, 0.25rem);
  font-size: var(--qcc-font-size-xs, 0.75rem);
  font-weight: var(--qcc-font-weight-medium, 500);
}

/* Footer - Global Styles */
footer {
  background-color: #0f1419 !important;
  font-family: inherit;
}

/* Ensure footer links are visible by default */
footer a {
  color: #6c757d !important;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--qcc-secondary) !important;
  text-decoration: none;
}

/* Footer logo standardization */
footer img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
}

/* Light footer text for better visibility on dark backgrounds */
footer .text-light-muted {
  color: #c5c5c5 !important;
}

footer .text-light-muted:hover {
  color: #ffffff !important;
}

/* Footer responsive design */
@media (max-width: 768px) {
  footer img {
    max-height: 32px;
  }
  
  footer .d-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  footer .d-flex img {
    margin-bottom: 0.5rem;
    margin-right: 0;
  }
}

/* Responsive Tables */
@media (max-width: 767px) {
  .table-responsive table,
  .table-responsive thead,
  .table-responsive tbody,
  .table-responsive th,
  .table-responsive td,
  .table-responsive tr {
    display: block;
  }
  
  .table-responsive thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  
  .table-responsive tr {
    margin-bottom: 10px;
    border: 1px solid #ddd;
  }
  
  .table-responsive td {
    border: none;
    position: relative;
    padding-left: 50%;
  }
  
  .table-responsive td:before {
    content: attr(data-label);
    position: absolute;
    left: 6px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    font-weight: bold;
  }
}

/* Loading States */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Utility Classes */
.min-vh-60 {
  min-height: 60vh;
}

.min-vh-75 {
  min-height: 75vh;
}

.opacity-10 {
  opacity: 0.1;
}

.opacity-25 {
  opacity: 0.25;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-75 {
  opacity: 0.75;
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  .navbar,
  footer {
    display: none !important;
  }
  
  .container {
    width: 100%;
    max-width: none;
  }
}

/* ================================================
   DESIGN SYSTEM INTEGRATION NOTES
   ================================================ */

/*
 * MIGRATION GUIDE:
 *
 * 1. Import Order:
 *    - design-system.css (first)
 *    - themes/[theme-name].css (second)
 *    - custom.css (third - this file)
 *
 * 2. New Development:
 *    - Use design system classes (.qcc-button, .qcc-card, etc.)
 *    - Use design system tokens (--qcc-primary-600, --qcc-space-4, etc.)
 *    - Avoid hardcoded values in favor of tokens
 *
 * 3. Legacy Code:
 *    - Existing styles have been enhanced with design system fallbacks
 *    - Gradually migrate to design system classes
 *    - Remove custom styles that duplicate design system functionality
 *
 * 4. Examples:
 *    - Old: <button class="btn btn-primary">
 *    - New: <button class="qcc-button qcc-button--primary">
 *
 *    - Old: style="color: #1e2f49"
 *    - New: class="qcc-text-primary" or style="color: var(--qcc-primary-700)"
 *
 * 5. Theming:
 *    - Design system supports multiple themes (default, dark, healthcare)
 *    - Use CSS custom properties for colors to support theme switching
 *    - Avoid hardcoded color values
 */


 .text-light-muted {
    color: #c5c5c5 !important; /* More visible than default text-muted */
}

.text-light-muted:hover {
    color: #ffffff !important; /* White on hover for better contrast */
}

.social-links a {
    transition: color 0.3s;
    color: #c5c5c5 !important; /* Ensure social links are visible */
}

.social-links a:hover {
    color: #F85647 !important;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer ul li a {
    transition: color 0.3s;
    color: #c5c5c5 !important; /* Ensure all footer links are visible */
}

footer ul li a:hover {
    color: #F85647 !important;
}

footer h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Logo styling */
footer img {
    max-height: 40px;
    width: auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    footer .col-md-6 {
        text-align: center !important;
    }

    footer .list-inline {
        justify-content: center;
        margin-top: 1rem;
    }

    /* Make logo smaller on mobile */
    footer img {
        max-height: 32px;
    }
}

/* Skip Link for Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only-focusable:focus {
    position: absolute;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 0.25rem;
    z-index: 100000;
    top: 1rem;
    left: 1rem;
}

/* Custom styles for this header */
.navbar-brand img {
    transition: transform 0.2s;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #1e2f49 !important;
    padding: 0.5rem 1.5rem;
    margin: 0 0.25rem;
    transition: color 0.3s, background-color 0.3s;
    border-radius: 0.25rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #F85647 !important;
    background-color: rgba(248, 86, 71, 0.1);
}

.btn-primary {
    background-color: #F85647;
    border-color: #F85647;
}

.btn-primary:hover {
    background-color: #e74536;
    border-color: #e74536;
}

.btn-outline-primary {
    color: #1e2f49;
    border-color: #1e2f49;
}

.btn-outline-primary:hover {
    background-color: #1e2f49;
    border-color: #1e2f49;
}

/* Mobile Menu Styles */
@media (max-width: 991px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background-color: white;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s;
        padding: 2rem 1rem;
        overflow-y: auto;
        z-index: 1050;
    }

    .navbar-collapse.show {
        right: 0;
    }

    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        display: none;
        z-index: 1040;
    }

    .mobile-menu-open .mobile-menu-overlay {
        display: block;
    }

    .navbar-nav {
        padding-top: 2rem;
    }

    .navbar-nav .nav-item {
        margin-bottom: 0.5rem;
    }

    .navbar-nav .btn {
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* Dropdown Animation */
.dropdown-menu {
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Homepage Specific Styles */
.testimonials-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card .card {
    border-radius: 1rem;
}

.stars {
    font-size: 1.1rem;
}

.stat-icon {
    font-size: 3rem;
}

body.home .feature-icon {
    font-size: 3rem;
}

.feature-card {
    padding: 2rem 1rem;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.cta-section {
    background: linear-gradient(135deg, var(--qcc-primary-700) 0%, var(--qcc-secondary-500) 100%);
}

/* Blog Section Styles */
.blog-section {
    background: #ffffff;
}

.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.blog-card .card {
    border-radius: 1rem;
    overflow: hidden;
}

.blog-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .card-img-top {
    transform: scale(1.05);
}

.blog-meta {
    display: flex;
    align-items: center;
}

.blog-card .card-title {
    font-weight: 600;
    color: var(--qcc-primary-600);
    margin-bottom: 0.75rem;
}

.blog-card .card-text {
    color: #6c757d;
    line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .testimonial-card {
        margin-bottom: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .cta-section .col-lg-4 {
        text-align: center;
        margin-top: 2rem;
    }

    .blog-card {
        margin-bottom: 2rem;
    }

    .blog-card .card-img-top {
        height: 180px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .testimonial-card,
    .feature-card,
    .blog-card {
        transition: none;
    }

    .testimonial-card:hover,
    .feature-card:hover,
    .blog-card:hover {
        transform: none;
    }

    .blog-card:hover .card-img-top {
        transform: none;
    }
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    width:100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;        
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 47, 73, 0.9) 0%, rgba(248, 86, 71, 0.8) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 4rem 0;
}

.hero-title {
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-actions .btn {
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #F85647;
    border-color: #F85647;
}

.btn-primary:hover {
    background-color: #e74536;
    border-color: #e74536;
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(248, 86, 71, 0.3);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(255, 255, 255, 0.2);
}

/* Trust Indicators */
.hero-trust {
    opacity: 0.9;
}

.trust-number {
    color: #F85647 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.trust-label {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    padding: 2rem;
}

.hero-card-stack {
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    animation: float 6s ease-in-out infinite;
}

.floating-card.card-1 {
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.floating-card.card-2 {
    top: 40%;
    right: 0;
    transform: translateY(-50%);
    animation-delay: 2s;
}

.floating-card.card-3 {
    bottom: 20px;
    left: 20%;
    transform: translateX(-50%);
    animation-delay: 4s;
}

.floating-card .card {
    border: none;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.icon-circle {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-down {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.scroll-down:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateX(-50%) translateY(-5px);
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 90vh;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .hero-actions .btn:last-child {
        margin-bottom: 0;
    }

    .hero-visual {
        display: none;
    }

    .trust-number {
        font-size: 2rem;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-content {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-trust .col-4 {
        margin-bottom: 1rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .floating-card,
    .scroll-down {
        animation: none;
    }

    .btn:hover {
        transform: none;
    }
}

/* Role Cards Styles */
.role-cards-section {
    background-color: #f8f9fa;
}

.role-card {
    position: relative;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.role-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.role-card-inner {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    z-index: 2;
    background: #ffffff;
    transition: opacity 0.3s ease;
}

.role-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto;
    background: linear-gradient(135deg, #F85647 0%, #e74536 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.role-card[data-role="patient"] .role-icon {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.role-card[data-role="employee"] .role-icon {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.role-card[data-role="provider"] .role-icon {
    background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
}

.role-card[data-role="agency"] .role-icon {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
}

.role-title {
    color: #1e2f49;
    font-weight: 600;
    margin-bottom: 1rem;
}

.role-description {
    color: #6c757d;
    line-height: 1.6;
    flex-grow: 1;
}

.role-features {
    text-align: left;
    margin-bottom: 2rem;
}

.role-features li {
    padding: 0.25rem 0;
    font-size: 0.875rem;
    color: #6c757d;
}

.role-action {
    margin-top: auto;
}

.role-action .btn {
    font-weight: 500;
    border-width: 2px;
    transition: all 0.3s ease;
}

/* Role Overlay */
.role-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e2f49 0%, #F85647 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.role-card:hover .role-overlay {
    opacity: 1;
}

.role-card:hover .role-card-inner {
    opacity: 0;
}

.role-overlay-content {
    padding: 2rem;
}

.role-overlay-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.role-overlay-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.role-overlay-text {
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.5;
}

.role-overlay .btn-light {
    background-color: white;
    color: #1e2f49;
    border: none;
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.role-overlay .btn-light:hover {
    background-color: #f8f9fa;
    transform: scale(1.05);
}

/* Specific Role Card Colors */
.role-card[data-role="patient"]:hover .role-overlay {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.role-card[data-role="employee"]:hover .role-overlay {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.role-card[data-role="provider"]:hover .role-overlay {
    background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
}

.role-card[data-role="agency"]:hover .role-overlay {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
}

/* Animation */
.role-card {
    animation: fadeInUp 0.6s ease-out;
}

.role-card:nth-child(1) { animation-delay: 0.1s; }
.role-card:nth-child(2) { animation-delay: 0.2s; }
.role-card:nth-child(3) { animation-delay: 0.3s; }
.role-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .role-card-inner {
        padding: 1.5rem;
    }

    .role-icon {
        width: 4rem;
        height: 4rem;
        font-size: 1.75rem;
    }

    .role-title {
        font-size: 1.25rem;
    }

    .role-description {
        font-size: 0.875rem;
    }

    /* Disable hover effects on mobile */
    .role-card:hover {
        transform: none;
    }

    .role-overlay {
        display: none;
    }
}

@media (max-width: 576px) {
    .role-cards-section .col-lg-3 {
        margin-bottom: 2rem;
    }

    .role-card-inner {
        padding: 1rem;
    }

    .role-features {
        font-size: 0.8rem;
    }
}

/* Accessibility */
.role-card:focus {
    outline: 3px solid #F85647;
    outline-offset: 2px;
}

/* temporarily disable non-menu links */
ul#primary-menu li.menu-item.menu-item-qcc {
    display:none;
}

@media (prefers-reduced-motion: reduce) {
    .role-card {
        animation: none;
        transition: none;
    }

    .role-card:hover {
        transform: none;
    }
}

/* Auth Page Styles */
body.qcc-auth .auth-page {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.qcc-auth .auth-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

body.qcc-auth .auth-background-image {
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, #1e2f49 0%, #F85647 100%);
}

body.qcc-auth .auth-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 47, 73, 0.8);
}

body.qcc-auth .auth-container {
    height: 100vh;
    position: relative;
    z-index: 1;
}

/* Branding Side */
body.qcc-auth .auth-branding {
    background: transparent;
    padding: 4rem;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

body.qcc-auth .branding-content {
    max-width: 500px;
}

body.qcc-auth .branding-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

body.qcc-auth .branding-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
}

body.qcc-auth .feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* Form Side */
body.qcc-auth .auth-form-side {
    background: #ffffff;
    padding: 2rem;
}

body.qcc-auth .auth-card {
    width: 100%;
    max-width: 450px;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

body.qcc-auth .auth-card-body {
    padding: 3rem 2.5rem;
}

body.qcc-auth .auth-title {
    color: #1e2f49;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

body.qcc-auth .auth-subtitle {
    font-size: 1rem;
    line-height: 1.5;
}

body.qcc-auth .auth-footer a {
    color: #F85647;
    transition: color 0.3s ease;
}

body.qcc-auth .auth-footer a:hover {
    color: #e74536;
}

body.qcc-auth .auth-back a {
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

body.qcc-auth .auth-back a:hover {
    color: #F85647;
}

/* Loading Overlay */
body.qcc-auth .loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

body.qcc-auth .loading-spinner {
    text-align: center;
}

body.qcc-auth .loading-spinner .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    body.qcc-auth .auth-form-side {
        padding: 1rem;
    }

    body.qcc-auth .auth-card {
        box-shadow: none;
        border-radius: 0;
        height: 100vh;
        max-width: none;
        display: flex;
        align-items: center;
    }

    body.qcc-auth .auth-card-body {
        padding: 2rem 1.5rem;
    }

    body.qcc-auth .auth-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 575.98px) {
    body.qcc-auth .auth-card-body {
        padding: 1.5rem 1rem;
    }

    body.qcc-auth .auth-title {
        font-size: 1.5rem;
    }
}

/* Custom Form Overrides */
body.qcc-auth .login-form .form-control:focus {
    border-color: #F85647;
    box-shadow: 0 0 0 0.2rem rgba(248, 86, 71, 0.25);
}

body.qcc-auth .login-form .btn-primary {
    background-color: #F85647;
    border-color: #F85647;
}

body.qcc-auth .login-form .btn-primary:hover {
    background-color: #e74536;
    border-color: #e74536;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    body.qcc-auth .auth-card,
    body.qcc-auth .branding-content {
        transition: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    body.qcc-auth .auth-card {
        border: 2px solid #000;
    }

    body.qcc-auth .feature-icon {
        border: 1px solid rgba(255, 255, 255, 0.5);
    }
}

/* Login Form Styles */
body.qcc-auth .login-form {
  max-width: 400px;
  margin: 0 auto;
}

body.qcc-auth .form-label {
  font-weight: 500;
  color: #1e2f49;
  margin-bottom: 0.5rem;
}

body.qcc-auth .form-control {
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

body.qcc-auth .form-control:focus {
  border-color: #F85647;
  box-shadow: 0 0 0 0.2rem rgba(248, 86, 71, 0.25);
}

body.qcc-auth .input-group-text {
  background-color: #f8f9fa;
  border-color: #ced4da;
  color: #6c757d;
}

body.qcc-auth .input-group .form-control {
  border-left: none;
}

body.qcc-auth .input-group .form-control:focus {
  border-left: 1px solid #F85647;
}

body.qcc-auth .btn-primary {
  background-color: #F85647;
  border-color: #F85647;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
}

body.qcc-auth .btn-primary:hover {
  background-color: #e74536;
  border-color: #e74536;
}

body.qcc-auth .btn-primary:disabled {
  background-color: #6c757d;
  border-color: #6c757d;
}

body.qcc-auth .form-check-input:checked {
  background-color: #F85647;
  border-color: #F85647;
}

body.qcc-auth .form-check-label {
  color: #6c757d;
  font-size: 0.875rem;
}

body.qcc-auth .invalid-feedback {
  display: block;
  font-size: 0.875rem;
  color: #dc3545;
  margin-top: 0.25rem;
}

body.qcc-auth .form-control.is-invalid {
  border-color: #dc3545;
}

body.qcc-auth .form-control.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

body.qcc-auth .alert {
  border-radius: 0.375rem;
  border: none;
}

body.qcc-auth .alert-danger {
  background-color: rgba(220, 53, 69, 0.1);
  color: #721c24;
}

/* Social Login Buttons */
body.qcc-auth .btn-outline-danger {
  color: #dc3545;
  border-color: #dc3545;
}

body.qcc-auth .btn-outline-danger:hover {
  background-color: #dc3545;
  border-color: #dc3545;
  color: #fff;
}

body.qcc-auth .btn-outline-primary {
  color: #0d6efd;
  border-color: #0d6efd;
}

body.qcc-auth .btn-outline-primary:hover {
  background-color: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
}

/* Loading State */
body.qcc-auth .btn:disabled {
  cursor: not-allowed;
}

/* Mobile Responsive */
@media (max-width: 576px) {
  body.qcc-auth .login-form {
      padding: 0 1rem;
  }

  body.qcc-auth .form-control {
      font-size: 0.875rem;
  }

  body.qcc-auth .btn {
      padding: 0.5rem 1rem;
  }
}

body.qcc-auth .registration-progress {
    margin-bottom: 2rem;
}

body.qcc-auth .progress-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    position: relative;
}

body.qcc-auth .progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 25%;
    right: 25%;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

body.qcc-auth .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

body.qcc-auth .step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

body.qcc-auth .step-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-align: center;
    transition: color 0.3s ease;
}

body.qcc-auth .registration-card {
    max-width:600px;
}

body.qcc-auth .step.active .step-number {
    background: #F85647;
    color: white;
}

body.qcc-auth .step.active .step-label {
    color: #F85647;
    font-weight: 600;
}

body.qcc-auth .step.completed .step-number {
    background: #28a745;
    color: white;
}

body.qcc-auth .step.completed .step-label {
    color: #28a745;
}

body.qcc-auth .step.completed .step-number::after {
    content: '?';
    font-size: 0.75rem;
}

/* Role Selector */
body.qcc-auth .role-selector {
    margin-bottom: 2rem;
}

body.qcc-auth .role-card {
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

body.qcc-auth .role-card:hover {
    border-color: #F85647;
    box-shadow: 0 4px 15px rgba(248, 86, 71, 0.1);
    transform: translateY(-2px);
}

body.qcc-auth .role-card.active {
    border-color: #F85647;
    background: rgba(248, 86, 71, 0.05);
    box-shadow: 0 4px 15px rgba(248, 86, 71, 0.2);
}

body.qcc-auth .role-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.25rem;
    color: #6c757d;
    transition: all 0.3s ease;
}

body.qcc-auth .role-card.active .role-icon {
    background: #F85647;
    color: white;
}

body.qcc-auth .role-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e2f49;
    margin-bottom: 0.5rem;
}

body.qcc-auth .role-description {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.4;
}

body.qcc-auth .role-features {
    text-align: left;
}

body.qcc-auth .role-features small {
    display: block;
    margin-bottom: 0.25rem;
}

/* Form Elements */
body.qcc-auth .form-group {
    margin-bottom: 1rem;
}

body.qcc-auth .form-label {
    font-weight: 500;
    color: #1e2f49;
    margin-bottom: 0.5rem;
}

body.qcc-auth .form-control,
body.qcc-auth .form-select {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

body.qcc-auth .form-control:focus,
body.qcc-auth .form-select:focus {
    border-color: #F85647;
    box-shadow: 0 0 0 0.2rem rgba(248, 86, 71, 0.25);
}

body.qcc-auth .form-control.is-valid {
    border-color: #28a745;
}

body.qcc-auth .form-control.is-invalid {
    border-color: #dc3545;
}

body.qcc-auth .invalid-feedback {
    display: block;
    font-size: 0.875rem;
    color: #dc3545;
    margin-top: 0.25rem;
}

/* Password Strength */
body.qcc-auth .password-strength {
    margin-top: 0.5rem;
}

body.qcc-auth .strength-bar {
    width: 100%;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

body.qcc-auth .strength-fill {
    height: 100%;
    width: 0%;
    background: #dc3545;
    transition: all 0.3s ease;
}

body.qcc-auth .strength-text {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Step Actions */
body.qcc-auth .step-actions {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

body.qcc-auth .btn-primary {
    background-color: #F85647;
    border-color: #F85647;
    font-weight: 500;
    padding: 0.75rem 2rem;
}

body.qcc-auth .btn-primary:hover {
    background-color: #e74536;
    border-color: #e74536;
}

body.qcc-auth .btn-primary:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
}

/* Registration Summary */
body.qcc-auth .registration-summary {
    margin-bottom: 2rem;
}

body.qcc-auth .summary-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

body.qcc-auth .summary-header h5 {
    color: #1e2f49;
    font-weight: 600;
}

body.qcc-auth .summary-body .row {
    margin-bottom: 0.5rem;
}

body.qcc-auth .summary-body strong {
    color: #495057;
}

/* Terms Section */
body.qcc-auth .terms-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e9ecef;
}

body.qcc-auth .form-check-input:checked {
    background-color: #F85647;
    border-color: #F85647;
}

body.qcc-auth .form-check-label {
    color: #495057;
    font-size: 0.875rem;
    line-height: 1.5;
}

body.qcc-auth .form-check-label a {
    color: #F85647;
}

/* Success Modal */
body.qcc-auth .success-icon {
    font-size: 4rem;
    color: #28a745;
}

body.qcc-auth .modal-title {
    color: #1e2f49;
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    body.qcc-auth .auth-form-side {
        padding: 1rem;
        height: 100vh;
    }

    body.qcc-auth .auth-card {
        margin: 0.5rem auto;
        box-shadow: none;
        border-radius: 0;
    }

    body.qcc-auth .branding-title {
        font-size: 2rem;
    }

    body.qcc-auth .auth-branding {
        height: auto;
        min-height: 200px;
        overflow: visible;
        padding: 2rem;
    }

    /* Mobile stacking - the branding is hidden in mobile via Bootstrap's d-none d-lg-flex */
    body.qcc-auth .auth-container .container-fluid {
        height: 100vh;
    }
}

@media (max-width: 767.98px) {
    body.qcc-auth .auth-card-body {
        padding: 1.5rem;
    }

    body.qcc-auth .auth-title {
        font-size: 1.75rem;
    }

    body.qcc-auth .progress-steps {
        gap: 1rem;
    }

    body.qcc-auth .step-label {
        font-size: 0.7rem;
    }

    body.qcc-auth .role-card {
        padding: 1rem;
    }

    body.qcc-auth .role-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }

    body.qcc-auth .auth-form-side {
        height: 100vh;
        padding: 1rem;
    }
}

@media (max-width: 575.98px) {
    body.qcc-auth .auth-card-body {
        padding: 1rem;
    }

    body.qcc-auth .auth-title {
        font-size: 1.5rem;
    }

    body.qcc-auth .progress-steps::before {
        left: 20%;
        right: 20%;
    }

    body.qcc-auth .step-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    body.qcc-auth .step-actions .btn {
        width: 100%;
    }

    body.qcc-auth .auth-form-side {
        height: 100vh;
        padding: 0.5rem;
    }

    body.qcc-auth .auth-card {
        margin: 0.25rem auto;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    body.qcc-auth .role-card,
    body.qcc-auth .step-number,
    body.qcc-auth .form-control,
    body.qcc-auth .auth-card,
    body.qcc-auth .branding-content {
        transition: none;
    }

    body.qcc-auth .role-card:hover {
        transform: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    body.qcc-auth .auth-card {
        border: 2px solid #000;
    }

    body.qcc-auth .role-card {
        border-width: 3px;
    }

    body.qcc-auth .step-number {
        border: 2px solid currentColor;
    }
}

/* ================================================
   PHOTO UPLOAD FUNCTIONALITY STYLES
   ================================================ */

/* Photo Upload Drop Zone */
.photo-drop-zone {
    position: relative;
    transition: all 0.3s ease;
    min-height: 200px;
}

.photo-drop-zone.drag-over {
    border-color: #007bff !important;
    background-color: #f8f9ff !important;
    transform: scale(1.02);
}

/* Profile Image Upload Container */
.profile-image-upload {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

#profile-preview {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid #dee2e6;
    border-radius: 50%;
    display: none;
    transition: all 0.3s ease;
}

#profile-preview:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

#upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border: 2px dashed #dee2e6;
    border-radius: 50%;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

#upload-placeholder:hover {
    border-color: #007bff;
    background-color: #f0f8ff;
}

#upload-placeholder i {
    color: #6c757d;
    transition: color 0.3s ease;
}

#upload-placeholder:hover i {
    color: #007bff;
}

#upload-placeholder .text-muted {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Choose Photo Button */
#choose-photo-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#choose-photo-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#choose-photo-btn:active {
    transform: translateY(0);
}

/* Upload Progress Overlay */
.photo-upload-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 8px;
    z-index: 10;
    backdrop-filter: blur(2px);
}

.photo-upload-progress .spinner-border {
    width: 2rem;
    height: 2rem;
    border-width: 0.25em;
}

.upload-progress-text {
    font-size: 0.875rem;
    color: #495057;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.photo-upload-progress .progress {
    height: 6px;
    border-radius: 3px;
    background-color: #e9ecef;
    overflow: hidden;
}

.photo-upload-progress .progress-bar {
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Form Text Enhancement */
.profile-image-upload .form-text {
    font-size: 0.8rem;
    color: #6c757d;
    text-align: center;
    margin-top: 0.5rem;
}

/* Error States */
.photo-upload-error {
    border-color: #dc3545 !important;
    background-color: #fef2f2 !important;
}

.photo-upload-error #upload-placeholder {
    border-color: #dc3545;
    background-color: #fef2f2;
}

.photo-upload-error #upload-placeholder i {
    color: #dc3545;
}

/* Success States */
.photo-upload-success {
    border-color: #28a745 !important;
    background-color: #f0fff4 !important;
}

.photo-upload-success #choose-photo-btn {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.photo-upload-success #choose-photo-btn:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .photo-drop-zone {
        min-height: 150px;
    }
    
    .profile-image-upload {
        width: 80px;
        height: 80px;
    }
    
    #profile-preview,
    #upload-placeholder {
        width: 80px;
        height: 80px;
    }
    
    #upload-placeholder i {
        font-size: 1.5rem;
    }
    
    #upload-placeholder .text-muted {
        font-size: 0.7rem;
    }
    
    .photo-upload-progress .spinner-border {
        width: 1.5rem;
        height: 1.5rem;
    }
}

@media (max-width: 576px) {
    .photo-drop-zone {
        min-height: 120px;
    }
    
    .profile-image-upload {
        width: 70px;
        height: 70px;
    }
    
    #profile-preview,
    #upload-placeholder {
        width: 70px;
        height: 70px;
    }
    
    #choose-photo-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .photo-drop-zone,
    #profile-preview,
    #upload-placeholder,
    #choose-photo-btn,
    .photo-upload-progress .progress-bar {
        transition: none;
    }
    
    .photo-drop-zone.drag-over {
        transform: none;
    }
    
    #choose-photo-btn:hover {
        transform: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    #upload-placeholder {
        border-width: 3px;
    }
    
    #profile-preview {
        border-width: 4px;
    }
    
    #choose-photo-btn {
        border-width: 2px;
    }
}

/* Focus States for Keyboard Navigation */
.photo-drop-zone:focus-within {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

#choose-photo-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Dark Mode Support (if implemented) */
@media (prefers-color-scheme: dark) {
    .photo-drop-zone {
        background-color: #2d3748;
        border-color: #4a5568;
    }
    
    #upload-placeholder {
        background-color: #2d3748;
        border-color: #4a5568;
    }
    
    #upload-placeholder .text-muted {
        color: #a0aec0;
    }
    
    .photo-upload-progress {
        background: rgba(45, 55, 72, 0.95);
    }
    
    .upload-progress-text {
        color: #e2e8f0;
    }
}

/* About Page Specific Styles */
body.page-template-template-about .about-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

body.page-template-template-about .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

body.page-template-template-about .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.page-template-template-about .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 47, 73, 0.8) 0%, rgba(248, 86, 71, 0.6) 100%);
    z-index: -1;
}

body.page-template-template-about .stat-item {
    padding: 1rem;
}

body.page-template-template-about .stat-number {
    color: #F85647 !important;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

body.page-template-template-about .stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

body.page-template-template-about .icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Timeline Styles */
body.page-template-template-about .timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

body.page-template-template-about .timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #1e2f49, #F85647);
    border-radius: 2px;
}

body.page-template-template-about .timeline-item {
    position: relative;
    margin: 3rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

body.page-template-template-about .timeline-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

body.page-template-template-about .timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
    padding-right: 4rem;
    margin-right: 2rem;
    max-width: 45%;
    margin-left: auto;
}

body.page-template-template-about .timeline-item:nth-child(even) .timeline-content {
    text-align: left;
    padding-left: 4rem;
    margin-left: 2rem;
    max-width: 45%;
    margin-right: auto;
}

body.page-template-template-about .timeline-icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

body.page-template-template-about .timeline-year {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1e2f49;
    margin-bottom: 0.5rem;
}

body.page-template-template-about .timeline-content h4 {
    color: #1e2f49;
    margin-bottom: 1rem;
}

/* Team Card Styles */
body.page-template-template-about .team-card {
    transition: transform 0.3s ease;
}

body.page-template-template-about .team-card:hover {
    transform: translateY(-10px);
}

body.page-template-template-about .team-avatar img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid #f8f9fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.page-template-template-about .social-links a {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

body.page-template-template-about .social-links a:hover {
    color: #F85647 !important;
}

/* Value Card Styles */
body.page-template-template-about .value-card {
    padding: 2rem 1rem;
    transition: transform 0.3s ease;
}

body.page-template-template-about .value-card:hover {
    transform: translateY(-5px);
}

body.page-template-template-about .value-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Award Card Styles */
body.page-template-template-about .award-card {
    transition: transform 0.3s ease;
}

body.page-template-template-about .award-card:hover {
    transform: translateY(-5px);
}

body.page-template-template-about .award-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* CTA Section */
body.page-template-template-about .cta-buttons .btn {
    padding: 1rem 2rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

body.page-template-template-about .cta-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body.page-template-template-about .about-hero {
        min-height: 50vh;
        text-align: center;
    }
    
    body.page-template-template-about .hero-stats .col-6 {
        margin-bottom: 1rem;
    }
    
    body.page-template-template-about .stat-number {
        font-size: 2rem;
    }
    
    body.page-template-template-about .timeline::before {
        left: 2rem;
    }
    
    body.page-template-template-about .timeline-item:nth-child(odd) .timeline-content,
    body.page-template-template-about .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
        padding-left: 4rem;
        margin-left: 0;
        margin-right: 0;
        padding-right: 1rem;
        max-width: 100%;
    }
    
    body.page-template-template-about .timeline-icon {
        left: 2rem;
    }

    body.page-template-template-about .team-avatar img {
        width: 100px;
        height: 100px;
    }

    body.page-template-template-about .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    body.page-template-template-about .cta-buttons .btn:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    body.page-template-template-about .timeline-content {
        padding-left: 3rem !important;
    }
    
    body.page-template-template-about .timeline-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    body.page-template-template-about .stat-number {
        font-size: 1.5rem;
    }
    
    body.page-template-template-about .value-icon {
        width: 60px;
        height: 60px;
    }
}

/* Employee-specific styles with enhanced QCC design system integration */

/* Job Categories Section - Enhanced with Secondary Color Theming */
body.page-template-template-employees .job-categories-section {
    background: linear-gradient(135deg,
        var(--qcc-gray-50) 0%,
        var(--qcc-primary-50) 100%);
}

body.page-template-template-employees .category-card {
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #ffffff 0%, #fdfdfd 100%);
}
        
body.page-template-template-employees .category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(var(--qcc-secondary-rgb), 0.1) 50%,
        transparent 100%);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}
        
body.page-template-template-employees .category-card:hover::before {
    left: 100%;
}
        
body.page-template-template-employees .category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(var(--qcc-primary-rgb), 0.12),
        0 8px 16px rgba(var(--qcc-secondary-rgb), 0.08);
    border-color: var(--qcc-secondary-200);
    background: linear-gradient(135deg,
        var(--qcc-secondary-50) 0%,
        #ffffff 100%);
}
        
body.page-template-template-employees .category-card:hover .category-icon i {
    color: var(--qcc-secondary-600);
    transform: scale(1.1) rotate(5deg);
}

body.page-template-template-employees .category-card:hover .card-title {
    color: var(--qcc-secondary-700);
}

body.page-template-template-employees .category-card:hover .job-count .badge {
    background-color: var(--qcc-secondary-500);
    color: white;
    transform: scale(1.05);
}

body.page-template-template-employees .category-card .card-body {
    position: relative;
    z-index: 2;
}

body.page-template-template-employees .category-icon {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body.page-template-template-employees .category-icon i {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body.page-template-template-employees .card-title {
    transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body.page-template-template-employees .job-count .badge {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Enhanced Benefits Section */
body.page-template-template-employees .benefit-card {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--qcc-gray-200);
}

body.page-template-template-employees .benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(var(--qcc-primary-rgb), 0.12);
    border-color: var(--qcc-primary-200);
}

body.page-template-template-employees .benefit-card:hover .benefit-icon i {
    color: var(--qcc-secondary-600);
    transform: scale(1.1);
}

body.page-template-template-employees .benefit-icon i {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Story Cards */
body.page-template-template-employees .story-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--qcc-gray-200);
}

body.page-template-template-employees .story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(var(--qcc-primary-rgb), 0.12);
    border-color: var(--qcc-primary-200);
}

body.page-template-template-employees .story-profile img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.page-template-template-employees .story-card:hover .story-profile img {
    transform: scale(1.1);
}

/* Enhanced Back to Top Button */
body.page-template-template-employees .back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg,
        var(--qcc-secondary-500) 0%,
        var(--qcc-secondary-600) 100%);
    border: none;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 0.25rem 0.5rem rgba(var(--qcc-secondary-rgb), 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.page-template-template-employees .back-to-top.show {
    opacity: 1;
    visibility: visible;
}

body.page-template-template-employees .back-to-top:hover {
    background: linear-gradient(135deg,
        var(--qcc-secondary-600) 0%,
        var(--qcc-secondary-700) 100%);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 0.75rem 1.5rem rgba(var(--qcc-secondary-rgb), 0.4);
}

/* Star Rating Enhancement */
body.page-template-template-employees .story-rating .fas.fa-star {
    color: var(--qcc-warning-500);
    transition: color 0.3s ease;
}

body.page-template-template-employees .story-card:hover .story-rating .fas.fa-star {
    color: var(--qcc-warning-600);
}
        
/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    body.page-template-template-employees .category-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
            
    body.page-template-template-employees .benefit-card:hover {
        transform: translateY(-3px);
    }
            
    body.page-template-template-employees .story-card:hover {
        transform: translateY(-2px);
    }

    body.page-template-template-employees .blog-card {
        margin-bottom: 2rem;
    }
            
    body.page-template-template-employees .blog-card .card-img-top {
        height: 180px;
    }
            
    body.page-template-template-employees .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
            
    body.page-template-template-employees .cta-buttons .btn:last-child {
        margin-bottom: 0;
    }
}
        
/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    body.page-template-template-employees .category-card:active {
        transform: translateY(-4px) scale(0.98);
        box-shadow: 0 8px 20px rgba(var(--qcc-primary-rgb), 0.15);
    }
            
    body.page-template-template-employees .benefit-card:active {
        transform: translateY(-3px) scale(0.98);
    }
            
    body.page-template-template-employees .story-card:active {
        transform: translateY(-2px) scale(0.98);
    }
}
        
/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    body.page-template-template-employees .category-card {
        border-width: 3px;
    }
            
    body.page-template-template-employees .category-card:hover {
        border-color: var(--qcc-secondary-700);
    }
            
    body.page-template-template-employees .benefit-card,
    body.page-template-template-employees .story-card {
        border-width: 2px;
    }
}
        
/* Blog Section Styles */
body.page-template-template-employees .blog-section {
    background: #ffffff;
}

body.page-template-template-employees .blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.page-template-template-employees .blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

body.page-template-template-employees .blog-card .card {
    border-radius: 1rem;
    overflow: hidden;
}

body.page-template-template-employees .blog-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

body.page-template-template-employees .blog-card:hover .card-img-top {
    transform: scale(1.05);
}

body.page-template-template-employees .blog-meta {
    display: flex;
    align-items: center;
}

body.page-template-template-employees .blog-card .card-title {
    font-weight: 600;
    color: var(--qcc-primary-600);
    margin-bottom: 0.75rem;
}

body.page-template-template-employees .blog-card .card-text {
    color: #6c757d;
    line-height: 1.6;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    body.page-template-template-employees .category-card,
    body.page-template-template-employees .benefit-card,
    body.page-template-template-employees .story-card,
    body.page-template-template-employees .back-to-top,
    body.page-template-template-employees .blog-card,
    body.page-template-template-employees .category-icon i,
    body.page-template-template-employees .benefit-icon i,
    body.page-template-template-employees .story-profile img,
    body.page-template-template-employees .job-count .badge {
        transition: none;
    }
            
    body.page-template-template-employees .category-card::before {
        display: none;
    }
            
    body.page-template-template-employees .blog-card:hover {
        transform: none;
    }
            
    body.page-template-template-employees .blog-card:hover .card-img-top {
        transform: none;
    }
}

/* Patient-specific styles */
body.page-template-template-patients .patient-hero .hero-overlay {
    background: linear-gradient(135deg, rgba(30, 47, 73, 0.8) 0%, rgba(72, 187, 120, 0.7) 100%);
}

body.page-template-template-patients .search-form-container {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.page-template-template-patients .provider-avatar img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

body.page-template-template-patients .provider-badges .badge {
    font-size: 0.75rem;
    margin: 0.25rem;
}

body.page-template-template-patients .benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.page-template-template-patients .provider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.page-template-template-patients .back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: #F85647;
    border: none;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

body.page-template-template-patients .back-to-top.show {
    opacity: 1;
    visibility: visible;
}

body.page-template-template-patients .back-to-top:hover {
    background-color: #e74536;
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
}

body.page-template-template-patients .rating .fas.fa-star {
    color: #ffc107;
}

/* Blog Section Styles */
body.page-template-template-patients .blog-section {
    background: #ffffff;
}

body.page-template-template-patients .blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.page-template-template-patients .blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

body.page-template-template-patients .blog-card .card {
    border-radius: 1rem;
    overflow: hidden;
}

body.page-template-template-patients .blog-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

body.page-template-template-patients .blog-card:hover .card-img-top {
    transform: scale(1.05);
}

body.page-template-template-patients .blog-meta {
    display: flex;
    align-items: center;
}

body.page-template-template-patients .blog-card .card-title {
    font-weight: 600;
    color: var(--qcc-primary-600);
    margin-bottom: 0.75rem;
}

body.page-template-template-patients .blog-card .card-text {
    color: #6c757d;
    line-height: 1.6;
}

@media (max-width: 768px) {
    body.page-template-template-patients .hero-visual {
        margin-top: 2rem;
    }

    body.page-template-template-patients .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    body.page-template-template-patients .cta-buttons .btn:last-child {
        margin-bottom: 0;
    }

    body.page-template-template-patients .blog-card {
        margin-bottom: 2rem;
    }

    body.page-template-template-patients .blog-card .card-img-top {
        height: 180px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    body.page-template-template-patients .blog-card {
        transition: none;
    }

    body.page-template-template-patients .blog-card:hover {
        transform: none;
    }

    body.page-template-template-patients .blog-card:hover .card-img-top {
        transform: none;
    }
}

/* Agency-specific styles with enhanced QCC design system integration */

/* Enhanced Feature Cards with Secondary Color Theming */
body.page-template-template-agencies .feature-card {
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #ffffff 0%, #fdfdfd 100%);
}

body.page-template-template-agencies .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(var(--qcc-secondary-rgb), 0.1) 50%,
        transparent 100%);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

body.page-template-template-agencies .feature-card:hover::before {
    left: 100%;
}

body.page-template-template-agencies .feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(var(--qcc-primary-rgb), 0.12),
        0 8px 16px rgba(var(--qcc-secondary-rgb), 0.08);
    border-color: var(--qcc-secondary-200);
    background: linear-gradient(135deg,
        var(--qcc-secondary-50) 0%,
        #ffffff 100%);
}

body.page-template-template-agencies .feature-card:hover .feature-icon i {
    color: var(--qcc-secondary-600);
    transform: scale(1.1) rotate(5deg);
}

body.page-template-template-agencies .feature-card:hover .card-title {
    color: var(--qcc-secondary-700);
}

body.page-template-template-agencies .feature-card .card-body {
    position: relative;
    z-index: 2;
}

body.page-template-template-agencies .feature-icon {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body.page-template-template-agencies .feature-icon i {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Pricing Cards */
body.page-template-template-agencies .pricing-card {
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid var(--qcc-gray-200);
}

body.page-template-template-agencies .pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(var(--qcc-primary-rgb), 0.12);
    border-color: var(--qcc-primary-300);
}

body.page-template-template-agencies .pricing-card.border-primary {
    transform: translateY(-10px);
    border-color: var(--qcc-secondary-500);
    background: linear-gradient(135deg,
        var(--qcc-secondary-50) 0%,
        #ffffff 100%);
}

body.page-template-template-agencies .pricing-card.border-primary:hover {
    transform: translateY(-12px);
    box-shadow:
        0 25px 50px rgba(var(--qcc-secondary-rgb), 0.15),
        0 10px 20px rgba(var(--qcc-primary-rgb), 0.1);
    border-color: var(--qcc-secondary-600);
}

/* Enhanced Customization Examples */
body.page-template-template-agencies .customization-example {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--qcc-gray-200);
}

body.page-template-template-agencies .customization-example:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(var(--qcc-primary-rgb), 0.12);
    border-color: var(--qcc-primary-200);
}

/* Enhanced Success Stories */
body.page-template-template-agencies .success-story {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--qcc-gray-200);
}

body.page-template-template-agencies .success-story:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(var(--qcc-primary-rgb), 0.12);
    border-color: var(--qcc-primary-200);
}

body.page-template-template-agencies .success-story:hover .card-header img {
    transform: scale(1.1);
}

body.page-template-template-agencies .story-stats .stat-number {
    font-weight: 700;
    line-height: 1;
    transition: color 0.3s ease;
}

body.page-template-template-agencies .success-story:hover .story-stats .stat-number {
    color: var(--qcc-secondary-600);
}

body.page-template-template-agencies .story-stats .stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

body.page-template-template-agencies .story-details h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

body.page-template-template-agencies .success-story:hover .story-details h6 {
    color: var(--qcc-secondary-700);
}

body.page-template-template-agencies .story-details p {
    line-height: 1.6;
}

body.page-template-template-agencies .story-details ul li {
    margin-bottom: 0.25rem;
}

body.page-template-template-agencies .metric-item {
    padding: 1rem;
    transition: all 0.3s ease;
}

body.page-template-template-agencies .metric-item:hover {
    transform: scale(1.05);
}

body.page-template-template-agencies .metric-number {
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

body.page-template-template-agencies .metric-item:hover .metric-number {
    color: var(--qcc-secondary-600);
}

body.page-template-template-agencies .metric-label {
    font-size: 1.125rem;
    opacity: 0.9;
}

body.page-template-template-agencies .success-story .card-header {
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

body.page-template-template-agencies .success-story .card-header img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* CTA Features Enhancement */
body.page-template-template-agencies .cta-feature {
    text-align: center;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

body.page-template-template-agencies .cta-feature:hover {
    transform: translateY(-2px);
}

body.page-template-template-agencies .cta-feature:hover i {
    color: var(--qcc-secondary-600);
    transform: scale(1.1);
}

body.page-template-template-agencies .cta-feature i {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.page-template-template-agencies .pricing-features li {
    margin-bottom: 0.5rem;
}

body.page-template-template-agencies footer.blockquote-footer,
body.page-template-template-agencies .blockquote-footer {
    background-color: none !important;
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    body.page-template-template-agencies .feature-card:hover {
        transform: translateY(-4px) scale(1.01);
    }

    body.page-template-template-agencies .pricing-card:hover {
        transform: translateY(-3px);
    }

    body.page-template-template-agencies .pricing-card.border-primary:hover {
        transform: translateY(-5px);
    }

    body.page-template-template-agencies .customization-example:hover {
        transform: translateY(-2px);
    }

    body.page-template-template-agencies .success-story:hover {
        transform: translateY(-2px);
    }

    body.page-template-template-agencies .blog-card {
        margin-bottom: 2rem;
    }

    body.page-template-template-agencies .blog-card .card-img-top {
        height: 180px;
    }

    body.page-template-template-agencies .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    body.page-template-template-agencies .cta-buttons .btn:last-child {
        margin-bottom: 0;
    }

    body.page-template-template-agencies .pricing-card.border-primary {
        transform: none;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    body.page-template-template-agencies .feature-card:active {
        transform: translateY(-4px) scale(0.98);
        box-shadow: 0 8px 20px rgba(var(--qcc-primary-rgb), 0.15);
    }

    body.page-template-template-agencies .pricing-card:active {
        transform: translateY(-3px) scale(0.98);
    }

    body.page-template-template-agencies .customization-example:active {
        transform: translateY(-2px) scale(0.98);
    }

    body.page-template-template-agencies .success-story:active {
        transform: translateY(-2px) scale(0.98);
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    body.page-template-template-agencies .feature-card,
    body.page-template-template-agencies .pricing-card {
        border-width: 3px;
    }

    body.page-template-template-agencies .feature-card:hover,
    body.page-template-template-agencies .pricing-card:hover {
        border-color: var(--qcc-secondary-700);
    }

    body.page-template-template-agencies .customization-example,
    body.page-template-template-agencies .success-story {
        border-width: 2px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    body.page-template-template-agencies .feature-card,
    body.page-template-template-agencies .pricing-card,
    body.page-template-template-agencies .customization-example,
    body.page-template-template-agencies .success-story,
    body.page-template-template-agencies .back-to-top,
    body.page-template-template-agencies .blog-card,
    body.page-template-template-agencies .feature-icon i,
    body.page-template-template-agencies .success-story .card-header img,
    body.page-template-template-agencies .story-stats .stat-number,
    body.page-template-template-agencies .story-details h6,
    body.page-template-template-agencies .metric-item,
    body.page-template-template-agencies .metric-number,
    body.page-template-template-agencies .cta-feature,
    body.page-template-template-agencies .cta-feature i {
        transition: none;
    }

    body.page-template-template-agencies .feature-card::before {
        display: none;
    }

    body.page-template-template-agencies .blog-card:hover {
        transform: none;
    }

    body.page-template-template-agencies .blog-card:hover .card-img-top {
        transform: none;
    }
}

/* Contact Page Specific Styles */
body.page-template-template-contact .contact-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

body.page-template-template-contact .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

body.page-template-template-contact .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.page-template-template-contact .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 47, 73, 0.8) 0%, rgba(248, 86, 71, 0.6) 100%);
    z-index: -1;
}

body.page-template-template-contact .contact-stat {
    padding: 1rem;
}

body.page-template-template-contact .contact-stat .stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

body.page-template-template-contact .contact-stat .stat-value {
    color: #F85647;
    font-size: 1.25rem;
    font-weight: 700;
}

body.page-template-template-contact .contact-option {
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

body.page-template-template-contact .contact-option.animate-in {
    opacity: 1;
    transform: translateY(0);
}

body.page-template-template-contact .contact-option:hover {
    transform: translateY(-5px);
}

body.page-template-template-contact .option-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.page-template-template-contact .contact-form-section .form-control:focus,
body.page-template-template-contact .contact-form-section .form-select:focus {
    border-color: #1e2f49;
    box-shadow: 0 0 0 0.2rem rgba(30, 47, 73, 0.1);
}

body.page-template-template-contact .contact-form-section .form-control.is-valid,
body.page-template-template-contact .contact-form-section .form-select.is-valid {
    border-color: #22c55e;
}

body.page-template-template-contact .contact-form-section .form-control.is-invalid,
body.page-template-template-contact .contact-form-section .form-select.is-invalid {
    border-color: #ef4444;
}

body.page-template-template-contact .contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

body.page-template-template-contact .contact-item {
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-20px);
}

body.page-template-template-contact .contact-item:hover {
    transform: translateX(5px);
}

body.page-template-template-contact .office-hours {
    font-size: 0.9rem;
}

.office-hours .fw-medium {
    color: #1e2f49;
}

body.page-template-template-contact .contact-page.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

body.page-template-template-contact .social-link {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #6b7280;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

body.page-template-template-contact .social-link:hover {
    color: #1e2f49;
    background-color: #f8f9fa;
    border-color: #1e2f49;
    transform: translateX(5px);
}

body.page-template-template-contact .social-link i {
    width: 24px;
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

body.page-template-template-contact .map-container {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 0.5rem 0.5rem;
}

body.page-template-template-contact .map-placeholder {
    position: relative;
}

body.page-template-template-contact .map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 47, 73, 0.7) 0%, rgba(248, 86, 71, 0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.page-template-template-contact .map-placeholder:hover .map-overlay {
    opacity: 1;
}

body.page-template-template-contact .map-info {
    text-align: center;
    padding: 2rem;
}

body.page-template-template-contact .accordion-item {
    border-radius: 0.75rem !important;
    overflow: hidden;
}

body.page-template-template-contact .accordion-button {
    font-weight: 600;
    border-radius: 0.75rem !important;
    padding: 1.25rem 1.5rem;
}

body.page-template-template-contact .accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    box-shadow: none;
}

body.page-template-template-contact .cta-buttons .btn {
    padding: 1rem 2rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

body.page-template-template-contact .cta-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Form Animations */
body.page-template-template-contact .form-control,
body.page-template-template-contact .form-select {
    transition: all 0.3s ease;
}

body.page-template-template-contact .form-control:focus,
body.page-template-template-contact .form-select:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 47, 73, 0.1);
}

/* Loading Button Animation */
body.page-template-template-contact .btn.loading {
    position: relative;
    color: transparent !important;
}

body.page-template-template-contact .btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body.page-template-template-contact .contact-hero {
        min-height: 50vh;
        text-align: center;
    }

    body.page-template-template-contact .contact-stat {
        margin-bottom: 1rem;
    }

    body.page-template-template-contact .contact-option {
        margin-bottom: 1rem;
    }

    body.page-template-template-contact .contact-form-section,
    body.page-template-template-contact .contact-info-section {
        margin-bottom: 2rem;
    }

    body.page-template-template-contact .contact-page.social-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    body.page-template-template-contact .social-link {
        flex: 1;
        justify-content: center;
        min-width: calc(50% - 0.25rem);
    }

    body.page-template-template-contact .social-link span {
        display: none;
    }

    body.page-template-template-contact .social-link i {
        margin-right: 0;
    }

    body.page-template-template-contact .map-info {
        padding: 1rem;
    }

    body.page-template-template-contact .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    body.page-template-template-contact .cta-buttons .btn:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    body.page-template-template-contact .contact-icon {
        width: 35px;
        height: 35px;
    }

    body.page-template-template-contact .option-icon {
        width: 60px;
        height: 60px;
    }

    body.page-template-template-contact .option-icon i {
        font-size: 1.5rem;
    }

    body.page-template-template-contact .accordion-button {
        padding: 1rem;
        font-size: 0.9rem;
    }

    body.page-template-template-contact .office-hours {
        font-size: 0.8rem;
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

body.page-template-template-contact .animate-in {
    animation: fadeIn 0.6s ease-out;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    body.page-template-template-contact .contact-option .card,
    body.page-template-template-contact .contact-form-section .card,
    body.page-template-template-contact .contact-info-section .card {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    body.page-template-template-contact .contact-option,
    body.page-template-template-contact .contact-item,
    body.page-template-template-contact .form-control,
    body.page-template-template-contact .form-select,
    body.page-template-template-contact .social-link,
    body.page-template-template-contact .map-overlay {
        transition: none;
        animation: none;
    }

    body.page-template-template-contact .contact-option:hover,
    body.page-template-template-contact .contact-item:hover,
    body.page-template-template-contact .social-link:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    body.page-template-template-contact .contact-hero,
    body.page-template-template-contact .map-section,
    body.page-template-template-contact .cta-buttons {
        display: none;
    }

    body.page-template-template-contact .contact-form-section .card,
    body.page-template-template-contact .contact-info-section .card {
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* Blog-specific styles */
body.archive .blog-header,
body.blog .blog-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Global link styling for blog */
body.archive .blog-posts a:not(.btn):not(.badge):not(.page-link),
body.blog .blog-posts a:not(.btn):not(.badge):not(.page-link) {
    color: #1e2f49;
    transition: color 0.2s ease;
}

body.archive .blog-posts a:not(.btn):not(.badge):not(.page-link):hover,
body.blog .blog-posts a:not(.btn):not(.badge):not(.page-link):hover {
    color: #F85647;
    text-decoration: underline;
}

body.archive .blog-search-form .input-group,
body.blog .blog-search-form .input-group {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body.archive .blog-search-form .form-control,
body.blog .blog-search-form .form-control {
    border-right: none;
}

body.archive .blog-search-form .btn,
body.blog .blog-search-form .btn {
    border-left: none;
}

body.archive .blog-categories .btn-group,
body.blog .blog-categories .btn-group {
    flex-wrap: wrap;
    gap: 0.5rem;
}

body.archive .post,
body.blog .post {
    transition: transform 0.2s ease;
}

body.archive .post:hover,
body.blog .post:hover {
    transform: translateY(-2px);
}

body.archive .entry-featured-image img,
body.blog .entry-featured-image img {
    transition: transform 0.3s ease;
}

body.archive .post:hover .entry-featured-image img,
body.blog .post:hover .entry-featured-image img {
    transform: scale(1.02);
}

body.archive .entry-title a:hover,
body.blog .entry-title a:hover {
    color: #F85647 !important;
}

body.archive .entry-meta a,
body.blog .entry-meta a {
    color: #1e2f49;
    transition: color 0.2s ease;
}

body.archive .entry-meta a:hover,
body.blog .entry-meta a:hover {
    color: #F85647;
}

body.archive .blog-sidebar .widget,
body.blog .blog-sidebar .widget {
    animation: fadeInUp 0.6s ease;
}

body.archive .newsletter-widget,
body.blog .newsletter-widget {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    border: 1px solid #e9ecef;
}

body.archive .popular-post:hover .popular-post-title a,
body.blog .popular-post:hover .popular-post-title a {
    color: #F85647 !important;
}

body.archive .categories-widget a,
body.blog .categories-widget a {
    color: #1e2f49;
    transition: all 0.2s ease;
}

body.archive .categories-widget a:hover,
body.blog .categories-widget a:hover,
body.archive .tags-widget a:hover,
body.blog .tags-widget a:hover {
    color: #F85647 !important;
    background-color: rgba(30, 47, 73, 0.1) !important;
}

body.archive .tags-widget a,
body.blog .tags-widget a {
    color: #1e2f49 !important;
    transition: all 0.2s ease;
}

.pagination .page-item.active .page-link {
    background-color: #1e2f49;
    border-color: #1e2f49;
}

.pagination .page-link {
    color: #1e2f49;
    transition: all 0.2s ease;
    border-color: rgba(30, 47, 73, 0.2);
}

.pagination .page-link:hover {
    color: #fff;
    background-color: #1e2f49;
    border-color: #1e2f49;
}

.pagination .page-item.active .page-link {
    color:#ffffff;
}

/* Enhanced Back to Top Button */
body.archive .back-to-top,
body.blog .back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg,
        var(--qcc-secondary-500) 0%,
        var(--qcc-secondary-600) 100%);
    border: none;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 0.25rem 0.5rem rgba(var(--qcc-secondary-rgb), 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.archive .back-to-top.show,
body.blog .back-to-top.show {
    opacity: 1;
    visibility: visible;
}

body.archive .back-to-top:hover,
body.blog .back-to-top:hover {
    background: linear-gradient(135deg,
        var(--qcc-secondary-600) 0%,
        var(--qcc-secondary-700) 100%);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 0.75rem 1.5rem rgba(var(--qcc-secondary-rgb), 0.4);
}

body.archive .post-thumbnail img,
body.single .post-thumbnail img,
body.blog .post-thumbnail img {
    width:100%;
    height:auto;
    border-radius: var(--bs-border-radius) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body.archive .blog-categories .btn-group,
    body.blog .blog-categories .btn-group {
        width: 100%;
    }

    body.archive .blog-categories .btn,
    body.blog .blog-categories .btn {
        flex: 1;
        margin-bottom: 0.5rem;
    }

    body.archive .entry-footer .d-flex,
    body.blog .entry-footer .d-flex {
        flex-direction: column;
        gap: 1rem;
    }

    body.archive .popular-post,
    body.blog .popular-post {
        flex-direction: column;
        text-align: center;
    }

    body.archive .popular-post-image,
    body.blog .popular-post-image {
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    body.blog .post,
    body.archive .post,
    body.archive .entry-featured-image img,
    body.blog .entry-featured-image img {
        transition: none;
    }
}

/* Print styles */
@media print {
    body.blog .blog-sidebar,
    body.archive .blog-sidebar,
    body.blog .blog-pagination,
    body.archive .blog-pagination,
    body.archive .back-to-top,
    body.blog .back-to-top {
        display: none !important;
    }

    body.archive .col-lg-8,
    body.blog .col-lg-8 {
        width: 100% !important;
    }

    body.archive .entry-featured-image img,
    body.blog .entry-featured-image img {
        max-height: 200px;
        object-fit: cover;
    }
}

/* Single post specific styles */
body.single .single-post .entry-title {
    color: #1e2f49;
    line-height: 1.2;
}

/* Global breadcrumb link styling */
body.single .breadcrumb a {
    color: #1e2f49;
    text-decoration: none;
    transition: color 0.2s ease;
}

body.single .breadcrumb a:hover {
    color: #F85647;
    text-decoration: underline;
}

/* Sidebar link styling */
body.single .single-post-sidebar a:not(.btn):not(.badge) {
    color: #1e2f49;
    transition: color 0.2s ease;
}

body.single .single-post-sidebar a:not(.btn):not(.badge):hover {
    color: #F85647;
}

body.single .entry-author-info .author-avatar {
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body.single .entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

body.single .entry-content h2 {
    color: #1e2f49;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

body.single .entry-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

body.single .article-intro {
    font-size: 1.25rem;
    color: #495057;
    border-left: 4px solid #1e2f49;
    padding-left: 1rem;
    background-color: #f8f9fa;
    padding: 1rem 1rem 1rem 2rem;
    border-radius: 0.25rem;
}

body.single .entry-content blockquote {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    font-style: italic;
}

/* Global link styling for single post */
body.single .entry-content a:not(.btn):not(.badge) {
    color: #1e2f49;
    transition: color 0.2s ease;
}

body.single .entry-content a:not(.btn):not(.badge):hover {
    color: #F85647;
    text-decoration: underline;
}

body.single .entry-tags .badge:hover {
    background-color: #1e2f49 !important;
    color: white !important;
}

body.single .social-sharing .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

body.single .author-bio {
    border-left: 4px solid #1e2f49;
}

body.single .author-bio a {
    color: #1e2f49;
    transition: color 0.2s ease;
}

body.single .author-bio a:hover {
    color: #F85647;
}

body.single .toc-widget {
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

body.single .toc-nav a {
    color: #1e2f49;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

body.single .toc-nav a:hover {
    color: #F85647;
    text-decoration: underline;
}

/* Comments Section Styles */
body.single .comments-area {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 0.5rem;
}

body.single .comments-area a:not(.btn) {
    color: #1e2f49;
    transition: color 0.2s ease;
}

body.single .comments-area a:not(.btn):hover {
    color: #F85647;
}

body.single .comment-list {
    list-style: none;
    padding: 0;
}

body.single .comment-body {
    background-color: #fff;
    transition: box-shadow 0.2s ease;
}

body.single .comment-body:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

body.single .children {
    list-style: none;
    padding-left: 2rem;
    margin-top: 1rem;
}

body.single .comment-reply-link:hover {
    background-color: #1e2f49;
    border-color: #1e2f49;
    color: white;
}

body.single .comment-form {
    background-color: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body.single .back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg,
        var(--qcc-secondary-500) 0%,
        var(--qcc-secondary-600) 100%);
    border: none;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 0.25rem 0.5rem rgba(var(--qcc-secondary-rgb), 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.single .back-to-top.show {
    opacity: 1;
    visibility: visible;
}

body.single .back-to-top:hover {
    background: linear-gradient(135deg,
        var(--qcc-secondary-600) 0%,
        var(--qcc-secondary-700) 100%);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 0.75rem 1.5rem rgba(var(--qcc-secondary-rgb), 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body.single .entry-content {
        font-size: 1rem;
    }

    body.single .toc-widget {
        position: relative !important;
        top: auto !important;
    }

    body.single .children {
        padding-left: 1rem;
    }

    body.single .comment-form {
        padding: 1rem;
    }
}

/* Print styles */
@media print {
    body.single .single-post-sidebar,
    body.single .comments-area,
    body.single .social-sharing,
    body.single .back-to-top {
        display: none !important;
    }

    body.single .col-lg-8 {
        width: 100% !important;
    }

    body.single .entry-content {
        font-size: 12pt;
        line-height: 1.4;
    }
}

footer .widget ul.menu {
    list-style: none;
    padding-left: 0;
}

body.single main a {
    color: #1e2f49;
}

body.single main a:hover {
    color: #F85647;
}

footer ul#footer-menu li {
    margin-bottom: 0.5rem;
    display: inline-block;
}

footer ul#footer-menu li:not(:last-child) {
    margin-right: .5rem;
}