/* ========================================
   GREG MEYER UNIFIED DESIGN SYSTEM
   Additional Styles & Overrides
   ======================================== */

/* ========================================
   ENHANCED TYPOGRAPHY OVERRIDES
   ======================================== */

/* Ensure consistent font rendering across browsers */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Enhanced heading styles for better hierarchy */
.wp-block-heading h1,
.wp-block-heading h2,
.wp-block-heading h3,
.wp-block-heading h4,
.wp-block-heading h5,
.wp-block-heading h6 {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* ========================================
   ENHANCED CARD INTERACTIONS
   ======================================== */

/* Improved hover states for cards */
.wp-block-group.has-shadow:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
}

/* Card content spacing */
.wp-block-group.has-shadow .wp-block-paragraph:last-child {
    margin-bottom: 0;
}

/* ========================================
   HOME PAGE EXPERTISE CARDS GLOW UP
   ======================================== */

/* Enhanced expertise cards */
body.home .expertise-card {
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    overflow: hidden !important;
    background: #ffffff !important;
    height: 200px !important;
}

body.home .expertise-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.15) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Enhanced card header */
body.home .expertise-card .card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    height: 40% !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 1rem 2rem !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

body.home .expertise-card:hover .card-header {
    background: linear-gradient(135deg, #f1f5f9 0%, #dbeafe 100%) !important;
}

/* Enhanced card title */
body.home .expertise-card .card-header h4 {
    margin: 0 !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #1e293b !important;
    text-align: left !important;
    transition: color 0.2s ease !important;
}

body.home .expertise-card .card-header h4 a {
    text-decoration: none !important;
    color: inherit !important;
    transition: color 0.2s ease !important;
}

body.home .expertise-card:hover .card-header h4 a {
    color: #3b82f6 !important;
}

/* Enhanced icon styling */
body.home .expertise-card .expertise-card-icon {
    position: absolute !important;
    background: white !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border: 2px solid rgba(59, 130, 246, 0.1) !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    top: 1rem !important;
    right: 1rem !important;
    z-index: 10 !important;
}

body.home .expertise-card:hover .expertise-card-icon {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25) !important;
    border-color: rgba(59, 130, 246, 0.2) !important;
    transform: scale(1.1) !important;
    top: 0.75rem !important;
    right: 0.75rem !important;
}

body.home .expertise-card .expertise-card-icon img {
    width: 22px !important;
    height: 22px !important;
    transition: all 0.3s ease !important;
    filter: brightness(0) saturate(100%) invert(30%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0.3) contrast(1) !important;
}

body.home .expertise-card:hover .expertise-card-icon img {
    filter: brightness(0) saturate(100%) invert(40%) sepia(100%) saturate(1000%) hue-rotate(200deg) brightness(0.8) contrast(1) !important;
}

/* Enhanced card content */
body.home .expertise-card .card-content {
    padding: 1.25rem 2rem 2rem 2rem !important;
    height: 60% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.home .expertise-card .card-content p {
    margin: 0 !important;
    line-height: 1.6 !important;
    color: #64748b !important;
    font-size: 0.95rem !important;
    text-align: center !important;
    transition: color 0.2s ease !important;
}

body.home .expertise-card:hover .card-content p {
    color: #475569 !important;
}

/* Card grid improvements */
body.home .expertise-cards-grid {
    gap: 2.5rem !important;
}

/* Responsive adjustments for expertise cards */
@media (max-width: 768px) {
    body.home .expertise-card {
        height: 180px !important;
    }
    
    body.home .expertise-card .card-header h4 {
        font-size: 1rem !important;
    }
    
    body.home .expertise-card .card-content p {
        font-size: 0.9rem !important;
    }
    
    body.home .expertise-cards-grid {
        gap: 1.5rem !important;
    }
}

/* ========================================
   ENHANCED BUTTON STYLES
   ======================================== */

/* Secondary button variant */
.wp-block-button__link:not(.has-primary-background-color) {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.wp-block-button__link:not(.has-primary-background-color):hover {
    background-color: #e5e7eb;
    color: #1f2937;
    border-color: #9ca3af;
}

/* Button group spacing */
.wp-block-buttons .wp-block-button:not(:last-child) {
    margin-right: 0.75rem;
}

/* ========================================
   ENHANCED FORM ELEMENTS
   ======================================== */

/* Input and form styling */
input[type="text"],
input[type="email"],
input[type="search"],
textarea,
select {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #0EA5E9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* ========================================
   ENHANCED LIST STYLES
   ======================================== */

/* Improved list styling */
ul, ol {
    padding-left: 1.5rem;
}

ul li, ol li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Custom list markers */
ul li::marker {
    color: #0EA5E9;
}

/* ========================================
   ENHANCED TABLE STYLES
   ======================================== */

/* Table styling */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.5rem 0;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
}

tr:hover {
    background-color: #f9fafb;
}

/* ========================================
   ENHANCED BLOCKQUOTE STYLES
   ======================================== */

/* Blockquote styling */
blockquote {
    border-left: 4px solid #0EA5E9;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6b7280;
    background-color: #f8fafc;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

/* ========================================
   ENHANCED CODE STYLES
   ======================================== */

/* Inline code */
code {
    background-color: #f3f4f6;
    padding: 0.125rem 0.25rem;
    border-radius: 4px;
    font-size: 0.875em;
    color: #dc2626;
    font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;
}

/* Code blocks */
pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

/* ========================================
   ENHANCED IMAGE STYLES
   ======================================== */

/* Image styling */
.wp-block-image img {
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.wp-block-image figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* ========================================
   ENHANCED SEPARATOR STYLES
   ======================================== */

/* Separator styling */
.wp-block-separator {
    border: none;
    height: 1px;
    background-color: #e5e7eb;
    margin: 2rem 0;
}

.wp-block-separator.is-style-wide {
    max-width: none;
}

.wp-block-separator.is-style-dots {
    background: none;
    text-align: center;
}

.wp-block-separator.is-style-dots::before {
    content: "•••";
    color: #9ca3af;
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
}

/* ========================================
   ENHANCED PULLQUOTE STYLES
   ======================================== */

/* Pullquote styling */
.wp-block-pullquote {
    border: none;
    padding: 2rem;
    background-color: #f8fafc;
    border-radius: 8px;
    margin: 2rem 0;
}

.wp-block-pullquote blockquote {
    border-left: none;
    padding-left: 0;
    margin: 0;
    background-color: transparent;
    padding: 0;
}

.wp-block-pullquote cite {
    font-size: 0.875rem;
    color: #6b7280;
    font-style: normal;
    margin-top: 1rem;
    display: block;
}

/* ========================================
   ENHANCED GALLERY STYLES
   ======================================== */

/* Gallery styling */
.wp-block-gallery {
    gap: 1rem;
}

.wp-block-gallery .blocks-gallery-item {
    margin: 0;
}

.wp-block-gallery .blocks-gallery-item img {
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.wp-block-gallery .blocks-gallery-item img:hover {
    transform: scale(1.02);
}

/* ========================================
   ENHANCED EMBED STYLES
   ======================================== */

/* Embed styling */
.wp-block-embed {
    margin: 2rem 0;
}

.wp-block-embed iframe {
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* ========================================
   ENHANCED SEARCH STYLES
   ======================================== */

/* Search form styling */
.search-form {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.search-form input[type="search"] {
    flex: 1;
}

.search-form input[type="submit"] {
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.search-form input[type="submit"]:hover {
    background-color: #374151;
}

/* ========================================
   BLOCKSY SEARCH MODAL ENHANCEMENTS
   ======================================== */

/* Enhanced search modal styling */
#search-modal {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Search modal content container */
#search-modal .ct-panel-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Enhanced search form styling */
.ct-search-form {
    position: relative;
    margin-bottom: 2rem;
}

/* Search input field enhancements */
.ct-search-form .modal-field {
    width: 100%;
    padding: 1.25rem 1.5rem;
    font-size: 1.125rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    color: #374151;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.ct-search-form .modal-field:focus {
    outline: none;
    border-color: #0EA5E9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.ct-search-form .modal-field::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* Search button enhancements */
.ct-search-form-controls {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
}

.ct-search-form button[type="submit"] {
    background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.ct-search-form button[type="submit"]:hover {
    background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
}

.ct-search-form button[type="submit"]:active {
    transform: translateY(0);
}

/* Search icon styling */
.ct-search-button-content {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Loading animation */
.ct-ajax-loader {
    display: none;
    width: 18px;
    height: 18px;
}

.ct-ajax-loader svg {
    width: 100%;
    height: 100%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Search modal close button */
.ct-toggle-close {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.ct-toggle-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.ct-toggle-close .ct-icon {
    width: 16px;
    height: 16px;
    fill: #374151;
}

/* ========================================
   SEARCH RESULTS ENHANCEMENTS
   ======================================== */

/* Search results page styling */
.search-results .hero-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.search-results .page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Search results count */
.search-results .page-title::after {
    content: " found";
    color: #6b7280;
    font-weight: 400;
    -webkit-text-fill-color: #6b7280;
}

/* Enhanced search results grid */
.search-results .entries {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Individual search result card */
.search-results .entry-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.search-results .entry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.search-results .entry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.search-results .entry-card:hover::before {
    transform: scaleX(1);
}

/* Search result title */
.search-results .entry-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.search-results .entry-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.search-results .entry-title a:hover {
    color: #0EA5E9;
}

/* Search result excerpt */
.search-results .entry-excerpt {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Search result meta */
.search-results .entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.search-results .entry-meta a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.search-results .entry-meta a:hover {
    color: #0EA5E9;
}

/* Search result categories */
.search-results .meta-categories a {
    background: rgba(14, 165, 233, 0.1);
    color: #0EA5E9;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.search-results .meta-categories a:hover {
    background: rgba(14, 165, 233, 0.2);
    transform: translateY(-1px);
}

/* Search result featured image */
.search-results .ct-media-container {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.search-results .ct-media-container:hover {
    transform: scale(1.02);
}

.search-results .ct-media-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Search result read more button */
.search-results .entry-button {
    background: linear-gradient(135deg, #000000 0%, #374151 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.search-results .entry-button:hover {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

/* ========================================
   SEARCH PAGINATION ENHANCEMENTS
   ======================================== */

/* Enhanced pagination for search results */
.search-results .ct-pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.search-results .ct-pagination .page-numbers {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 44px;
    text-align: center;
}

.search-results .ct-pagination .page-numbers:hover {
    border-color: #0EA5E9;
    color: #0EA5E9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

.search-results .ct-pagination .page-numbers.current {
    background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
    color: white;
    border-color: #0EA5E9;
}

.search-results .ct-pagination .page-numbers.dots {
    border: none;
    background: none;
    color: #9ca3af;
}

.search-results .ct-pagination .page-numbers.dots:hover {
    background: none;
    color: #6b7280;
    transform: none;
    box-shadow: none;
}

/* Next/Previous buttons */
.search-results .ct-pagination .next,
.search-results .ct-pagination .prev {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.search-results .ct-pagination .next svg,
.search-results .ct-pagination .prev svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.search-results .ct-pagination .next:hover svg {
    transform: translateX(2px);
}

.search-results .ct-pagination .prev:hover svg {
    transform: translateX(-2px);
}

/* ========================================
   SEARCH HEADER BUTTON ENHANCEMENTS
   ======================================== */

/* Enhanced search button in header */
.ct-header-search {
    background: rgba(14, 165, 233, 0.1);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 0.5rem;
    color: #0EA5E9;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.ct-header-search:hover {
    background: rgba(14, 165, 233, 0.2);
    border-color: #0EA5E9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.ct-header-search .ct-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.ct-header-search:hover .ct-icon {
    transform: scale(1.1);
}

/* ========================================
   RESPONSIVE SEARCH DESIGN
   ======================================== */

/* Mobile search optimizations */
@media (max-width: 768px) {
    #search-modal .ct-panel-content {
        padding: 2rem 1rem;
    }
    
    .ct-search-form .modal-field {
        font-size: 1rem;
        padding: 1rem 1.25rem;
    }
    
    .search-results .entries {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .search-results .page-title {
        font-size: 2rem;
    }
    
    .search-results .entry-card {
        padding: 1.25rem;
    }
    
    .search-results .ct-pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .search-results .ct-pagination .page-numbers {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* ========================================
   SEARCH ACCESSIBILITY IMPROVEMENTS
   ======================================== */

/* Focus states for accessibility */
.ct-search-form .modal-field:focus,
.ct-search-form button[type="submit"]:focus,
.ct-header-search:focus {
    outline: 2px solid #0EA5E9;
    outline-offset: 2px;
}

/* Screen reader text */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   SEARCH ANIMATIONS
   ======================================== */

/* Search modal entrance animation */
@keyframes searchModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#search-modal {
    animation: searchModalSlideIn 0.3s ease-out;
}

/* Search results fade in */
@keyframes searchResultFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-results .entry-card {
    animation: searchResultFadeIn 0.4s ease-out;
}

/* Stagger animation for multiple results */
.search-results .entry-card:nth-child(1) { animation-delay: 0.1s; }
.search-results .entry-card:nth-child(2) { animation-delay: 0.2s; }
.search-results .entry-card:nth-child(3) { animation-delay: 0.3s; }
.search-results .entry-card:nth-child(4) { animation-delay: 0.4s; }
.search-results .entry-card:nth-child(5) { animation-delay: 0.5s; }
.search-results .entry-card:nth-child(6) { animation-delay: 0.6s; }

/* ========================================
   ENHANCED PAGINATION STYLES
   ======================================== */

/* Pagination styling */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.pagination .current {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
}

/* ========================================
   ENHANCED COMMENT STYLES
   ======================================== */

/* Comment styling */
.comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f9fafb;
    border-radius: 8px;
}

.comment-author {
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
}

.comment-meta {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.comment-content {
    line-height: 1.6;
}

/* ========================================
   ENHANCED SIDEBAR STYLES
   ======================================== */

/* Sidebar widget styling */
.widget {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f9fafb;
    border-radius: 8px;
}

.widget-title {
    font-weight: 600;
    color: #000000;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #374151;
    text-decoration: none;
    transition: color 0.2s ease;
}

.widget ul li a:hover {
    color: #0EA5E9;
}

/* ========================================
   WIDGET ENHANCEMENTS
   ======================================== */

/* Category Header Widget */
.category-header-widget {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    padding: 4rem 2rem;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-header-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-header-widget:hover::before {
    opacity: 1;
}

.category-header-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.category-header-widget .category-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: linear-gradient(135deg, #1a1a1a 0%, #374151 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.category-header-widget .category-description {
    font-size: 1.25rem;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.category-header-widget .category-post-count {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    display: inline-block;
    border: 1px solid rgba(59, 130, 246, 0.2);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.category-header-widget .category-post-count:hover {
    background: rgba(59, 130, 246, 0.15);
    transform: scale(1.05);
}

/* Category Header Icon Styling */
.category-header-widget .heroicon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.category-header-widget:hover .heroicon-container {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
}

.category-header-widget .heroicon-container svg {
    width: 40px;
    height: 40px;
    fill: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Recent Posts Widget */
.recent-posts-widget {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 2rem 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.recent-posts-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(6, 182, 212, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recent-posts-widget:hover::before {
    opacity: 1;
}

.recent-posts-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.recent-posts-widget h3 {
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.recent-posts-widget h3::before {
    content: '📝';
    font-size: 1.25rem;
    filter: grayscale(0.3);
    transition: filter 0.3s ease;
}

.recent-posts-widget:hover h3::before {
    filter: grayscale(0);
    transform: scale(1.1);
}

.recent-posts-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

.recent-posts-widget li {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 1rem;
    margin: 0 -1rem 1rem -1rem;
}

.recent-posts-widget li:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateX(4px);
    border-radius: 8px;
}

.recent-posts-widget li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-posts-widget a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    line-height: 1.4;
}

.recent-posts-widget a:hover {
    color: #3b82f6;
    transform: translateX(4px);
}

.recent-posts-widget span {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    background: rgba(107, 114, 128, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.recent-posts-widget li:hover span {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.recent-posts-widget p {
    color: #4b5563;
    font-size: 0.95rem;
    margin: 0.75rem 0 0 0;
    line-height: 1.6;
    opacity: 0.9;
}

/* Recent Posts Widget Footer */
.recent-posts-widget .widget-footer {
    margin: 2rem 0 0 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.recent-posts-widget .widget-footer a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(107, 114, 128, 0.2);
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.recent-posts-widget .widget-footer a:hover {
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-1px);
}

.recent-posts-widget .widget-footer a::after {
    content: '→';
    transition: transform 0.3s ease;
}

.recent-posts-widget .widget-footer a:hover::after {
    transform: translateX(4px);
}

/* Widget Responsive Design */
@media (max-width: 768px) {
    .category-header-widget {
        padding: 3rem 1.5rem;
        margin: 1.5rem 0;
    }
    
    .category-header-widget .category-title {
        font-size: 2.5rem;
    }
    
    .category-header-widget .category-description {
        font-size: 1.125rem;
    }
    
    .category-header-widget .heroicon-container {
        width: 64px;
        height: 64px;
    }
    
    .category-header-widget .heroicon-container svg {
        width: 32px;
        height: 32px;
    }
    
    .recent-posts-widget {
        padding: 2rem 1.5rem;
        margin: 1.5rem 0;
    }
    
    .recent-posts-widget h3 {
        font-size: 1.25rem;
    }
    
    .recent-posts-widget a {
        font-size: 1rem;
    }
    
    .recent-posts-widget li {
        padding: 0.75rem;
        margin: 0 -0.75rem 1rem -0.75rem;
    }
}

/* Widget Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .category-header-widget {
        background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .category-header-widget .category-title {
        background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .category-header-widget .category-description {
        color: #d1d5db;
    }
    
    .category-header-widget .category-post-count {
        background: rgba(59, 130, 246, 0.2);
        border-color: rgba(59, 130, 246, 0.3);
        color: #e5e7eb;
    }
    
    .recent-posts-widget {
        background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .recent-posts-widget h3 {
        color: #f9fafb;
    }
    
    .recent-posts-widget a {
        color: #e5e7eb;
    }
    
    .recent-posts-widget a:hover {
        color: #60a5fa;
    }
    
    .recent-posts-widget span {
        color: #9ca3af;
        background: rgba(156, 163, 175, 0.2);
    }
    
    .recent-posts-widget li:hover {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .recent-posts-widget li:hover span {
        background: rgba(96, 165, 250, 0.2);
        color: #60a5fa;
    }
    
    .recent-posts-widget p {
        color: #d1d5db;
    }
    
    .recent-posts-widget .widget-footer a {
        color: #9ca3af;
        border-color: rgba(156, 163, 175, 0.3);
    }
    
    .recent-posts-widget .widget-footer a:hover {
        color: #60a5fa;
        border-color: rgba(96, 165, 250, 0.4);
        background: rgba(96, 165, 250, 0.1);
    }
}

/* Widget Animation Enhancements */
@keyframes widgetFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-header-widget,
.recent-posts-widget {
    animation: widgetFadeIn 0.6s ease-out;
}

.recent-posts-widget li {
    animation: widgetFadeIn 0.4s ease-out;
}

.recent-posts-widget li:nth-child(1) { animation-delay: 0.1s; }
.recent-posts-widget li:nth-child(2) { animation-delay: 0.2s; }
.recent-posts-widget li:nth-child(3) { animation-delay: 0.3s; }
.recent-posts-widget li:nth-child(4) { animation-delay: 0.4s; }
.recent-posts-widget li:nth-child(5) { animation-delay: 0.5s; }

/* Widget Focus States for Accessibility */
.category-header-widget:focus-within,
.recent-posts-widget:focus-within {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.recent-posts-widget a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Widget Loading States */
.widget-loading {
    opacity: 0.7;
    pointer-events: none;
}

.widget-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ========================================
   ENHANCED PRINT STYLES
   ======================================== */

/* Print styles */
@media print {
    .wp-block-group.has-shadow {
        box-shadow: none;
        border: 1px solid #d1d5db;
    }
    
    .wp-block-button {
        display: none;
    }
    
    .ct-trending-block {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .wp-block-heading h1 {
        font-size: 18pt;
    }
    
    .wp-block-heading h2 {
        font-size: 16pt;
    }
    
    .wp-block-heading h3 {
        font-size: 14pt;
    }
}

/* ========================================
   ENHANCED DARK MODE SUPPORT
   ======================================== */

/* Dark mode styles (if user prefers dark mode) */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1f2937;
        color: #f9fafb;
    }
    
    .wp-block-heading {
        color: #f9fafb;
    }
    
    .wp-block-paragraph {
        color: #d1d5db;
    }
    
    .has-shadow {
        background-color: #374151;
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    }
    
    .has-light-gray-background-color {
        background-color: #374151 !important;
    }
    
    .has-white-background-color {
        background-color: #1f2937 !important;
    }
    
    a {
        color: #60a5fa;
    }
    
    a:hover {
        color: #93c5fd;
    }
    
    .main-navigation a {
        color: #d1d5db;
    }
    
    .main-navigation a:hover {
        color: #60a5fa;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="search"],
    textarea,
    select {
        background-color: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
    
    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="search"]:focus,
    textarea:focus,
    select:focus {
        border-color: #60a5fa;
        box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
    }
}

/* ========================================
   ENHANCED HIGH CONTRAST MODE SUPPORT
   ======================================== */

/* High contrast mode support */
@media (prefers-contrast: high) {
    .wp-block-button__link {
        border: 2px solid currentColor;
    }
    
    .has-shadow {
        border: 2px solid #000000;
    }
    
    a {
        text-decoration: underline;
    }
    
    .wp-block-button__link:focus,
    .wp-block-heading:focus,
    a:focus {
        outline: 3px solid #000000;
        outline-offset: 2px;
    }
}

/* ========================================
   ENHANCED REDUCED MOTION SUPPORT
   ======================================== */

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .wp-block-group.has-shadow:hover {
        transform: none;
    }
    
    .wp-block-button__link:hover {
        transform: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}