/**
 * Cleaning Standards Professional Theme Styles
 */

:root {
    --cs-primary: #0d6efd;
    --cs-secondary: #6c757d;
    --cs-success: #198754;
    --cs-dark: #212529;
    --cs-light: #f8f9fa;
}

/* Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
}

/* Navigation */
.navbar-brand {
    font-family: 'Poppins', sans-serif;
}

.navbar .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    transition: color 0.2s ease;
}

.navbar .nav-link:hover {
    color: var(--cs-primary) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    border-radius: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1.25rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: var(--cs-light);
    color: var(--cs-primary);
}

/* Top Bar */
.top-bar {
    font-size: 0.875rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 0.5rem;
}

/* Cards */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-shadow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15) !important;
}

.card-header {
    border-bottom: none;
}

/* Services Section */
.services-section .icon-circle {
    transition: transform 0.3s ease;
}

.services-section .card:hover .icon-circle {
    transform: scale(1.1);
}

/* Accordion Styles */
.accordion-button {
    font-weight: 600;
    padding: 0.875rem 1rem;
}

.accordion-button:not(.collapsed) {
    background-color: #e7f1ff;
    color: var(--cs-primary);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,0.125);
}

.accordion-button .badge {
    font-weight: 500;
}

.list-group-item {
    transition: background-color 0.2s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

/* Post Content Styles */
.post-content h2 {
    color: var(--cs-primary);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.post-content h2:first-child {
    margin-top: 0;
}

.post-content ul {
    padding-left: 1.25rem;
}

.post-content ul li {
    margin-bottom: 0.5rem;
    position: relative;
}

.post-content ul li::marker {
    color: var(--cs-primary);
}

/* Breadcrumbs */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: var(--cs-secondary);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--cs-primary);
}

.breadcrumb-item.active {
    color: var(--cs-dark);
}

/* Pagination */
.pagination {
    gap: 0.25rem;
}

.pagination .page-link {
    border-radius: 0.375rem;
    border: none;
    padding: 0.5rem 0.875rem;
    color: var(--cs-dark);
}

.pagination .page-item.active .page-link {
    background-color: var(--cs-primary);
    color: #fff;
}

.pagination .page-link:hover {
    background-color: #e9ecef;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #212529 0%, #1a1d21 100%);
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.social-links a:hover {
    background: var(--cs-primary);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

/* Category Header */
.category-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

.category-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* Search Header */
.search-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

/* Sidebar Styles */
.sidebar .card-header {
    font-size: 0.9rem;
}

/* Quick Reference Card */
.card.bg-light {
    background-color: #f8f9fa !important;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 3rem 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .stat-item {
        padding: 0.25rem 0.5rem;
    }

    .navbar-collapse {
        padding: 1rem 0;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 0 !important;
    }
}

@media (max-width: 767.98px) {
    .hero-stats {
        justify-content: center;
    }

    .footer .col-lg-4,
    .footer .col-lg-2,
    .footer .col-lg-3 {
        text-align: center;
    }

    .footer .social-links {
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .top-bar,
    .sidebar,
    .cta-section,
    .footer,
    .pagination {
        display: none !important;
    }

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

    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}
