/* Modern Landing Page Styles with Contemporary Design System */

/* CSS Custom Properties for Modern Color Scheme */
:root {
    /* Modern Blue Color Palette */
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #1d4ed8;
    --accent: #0ea5e9;
    --success: #10b981;
    --neutral-50: #fafafa;
    --neutral-100: #f4f4f5;
    --neutral-200: #e4e4e7;
    --neutral-300: #d4d4d8;
    --neutral-400: #a1a1aa;
    --neutral-500: #71717a;
    --neutral-600: #52525b;
    --neutral-700: #3f3f46;
    --neutral-800: #27272a;
    --neutral-900: #18181b;

    /* Glass Morphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

    /* Modern Blue Gradients */
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    --gradient-mesh: radial-gradient(at 27% 37%, hsla(215, 98%, 61%, 1) 0px, transparent 0%),
        radial-gradient(at 97% 21%, hsla(200, 98%, 72%, 0.3) 0px, transparent 50%),
        radial-gradient(at 52% 99%, hsla(220, 98%, 61%, 0.3) 0px, transparent 50%),
        radial-gradient(at 10% 29%, hsla(210, 96%, 67%, 0.3) 0px, transparent 50%),
        radial-gradient(at 97% 96%, hsla(195, 60%, 74%, 0.3) 0px, transparent 50%),
        radial-gradient(at 33% 50%, hsla(222, 67%, 73%, 0.3) 0px, transparent 50%),
        radial-gradient(at 79% 53%, hsla(205, 68%, 79%, 0.3) 0px, transparent 50%);

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', system-ui, sans-serif;
    --font-display: 'Inter', var(--font-sans);
    --font-serif: 'Merriweather', Georgia, 'Times New Roman', serif;
}

/* Google Fonts are now loaded asynchronously via functions.php for better performance */

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

/* Focus management for better accessibility */
.skip-link:focus {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 999999;
    color: white;
    background: #000;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
}

.landing-container {
    width: 100vw;
    max-width: none;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    font-family: var(--font-sans);
}

/* Modern Hero Section with Animated Mesh Gradient */
.hero-section {
    background: #ffffff;
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 140px 0;
}

/* Animated Mesh Gradient Background */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-mesh);
    background-size: 200% 200%;
    animation: meshGradient 15s ease infinite;
    opacity: 0.6;
    z-index: 1;
}

/* Subtle Pattern Overlay */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 2;
    opacity: 0.4;
}

@keyframes meshGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 10;
    position: relative;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out;
    line-height: 1.1;
    letter-spacing: -0.02em;

    /* Modern Gradient Text */
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;

    /* Fallback for older browsers */
    color: var(--primary);

    /* Subtle text shadow for depth */
    filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.2));
}

/* Enhanced Glass Morphism Search Bar */
.hero-search {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 60px;
    padding: 6px;
    box-shadow:
        0 25px 80px -15px rgba(59, 130, 246, 0.2),
        0 15px 60px -10px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.02);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Enhanced shimmer effect */
.search-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.4) 50%,
            transparent 100%);
    transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: inherit;
}

.search-form:focus-within {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 35px 100px -15px rgba(59, 130, 246, 0.3),
        0 25px 80px -10px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 0 0 1px rgba(59, 130, 246, 0.4);
    border-color: rgba(59, 130, 246, 0.5);
}

.search-form:focus-within::before {
    left: 100%;
}

.search-input {
    flex: 1;
    border: none;
    padding: 20px 32px;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 50px;
    outline: none;
    background: transparent;
    color: var(--neutral-800);
    box-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-family: var(--font-sans);
    position: relative;
    z-index: 2;
}

.search-input::placeholder {
    color: var(--neutral-500);
    font-weight: 400;
    font-size: 1.05rem;
}

.search-input:focus {
    color: var(--neutral-900);
}

.search-input:focus::placeholder {
    color: var(--neutral-400);
    opacity: 0.7;
}

.search-button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border: none;
    padding: 18px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow:
        0 8px 25px rgba(59, 130, 246, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    z-index: 2;
}

/* Enhanced button effects */
.search-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 100%);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    border-radius: inherit;
    pointer-events: none;
}

.search-button:hover {
    transform: scale(1.05) translateY(-1px);
    box-shadow:
        0 15px 40px rgba(59, 130, 246, 0.35),
        0 5px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.search-button:hover::before {
    left: 100%;
}

.search-button:active {
    transform: scale(0.98) translateY(0);
    transition: all 0.1s ease-out;
}

.search-button svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.search-button:hover svg {
    transform: scale(1.1) rotate(5deg);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    box-shadow:
        0 30px 80px -15px rgba(0, 0, 0, 0.15),
        0 15px 40px -10px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    margin-top: 16px;
    max-height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 30;
    display: none;
    animation: suggestionsFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom scrollbar for suggestions */
.search-suggestions::-webkit-scrollbar {
    width: 6px;
}

.search-suggestions::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.search-suggestions::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 3px;
}

.search-suggestions::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}

@keyframes suggestionsFadeIn {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.search-suggestion {
    padding: 20px 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-weight: 500;
}

/* Enhanced liquid glass hover effect */
.search-suggestion::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(59, 130, 246, 0.08) 50%,
            transparent 100%);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-suggestion::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
}

.search-suggestion:hover {
    background: rgba(59, 130, 246, 0.03);
    padding-left: 40px;
    color: var(--primary);
    transform: translateX(4px);
}

.search-suggestion:hover::before {
    left: 100%;
}

.search-suggestion:hover::after {
    width: 400px;
    height: 400px;
}

.search-suggestion:first-child {
    border-radius: 24px 24px 0 0;
}

.search-suggestion:last-child {
    border-bottom: none;
    border-radius: 0 0 24px 24px;
}

.search-suggestion:only-child {
    border-radius: 24px;
}

.search-suggestion strong {
    color: var(--neutral-900);
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.search-suggestion small {
    color: var(--neutral-600);
    font-size: 0.9rem;
    line-height: 1.4;
    display: block;
}

/* Liquid Glass Floating Elements */
.hero-bg-element {
    position: absolute;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.2) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 8px 32px 0 rgba(31, 38, 135, 0.15),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    animation: liquidFloat 8s ease-in-out infinite;
    overflow: hidden;
}

/* Liquid Glass Shimmer Effect */
.hero-bg-element::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle,
            rgba(255, 255, 255, 0.3) 0%,
            transparent 70%);
    animation: liquidShimmer 4s linear infinite;
}

/* Morphing Liquid Shapes */
.hero-bg-element:nth-child(1) {
    width: 150px;
    height: 150px;
    top: 15%;
    left: 8%;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: liquidFloat 10s ease-in-out infinite, liquidMorph 15s ease-in-out infinite;
}

.hero-bg-element:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 10%;
    border-radius: 40% 60% 70% 30% / 40% 70% 30% 60%;
    animation: liquidFloat 12s ease-in-out infinite reverse, liquidMorph 18s ease-in-out infinite;
    animation-delay: 2s;
}

.hero-bg-element:nth-child(3) {
    width: 120px;
    height: 120px;
    bottom: 15%;
    left: 75%;
    border-radius: 70% 30% 50% 50% / 30% 70% 50% 50%;
    animation: liquidFloat 8s ease-in-out infinite, liquidMorph 12s ease-in-out infinite reverse;
    animation-delay: 4s;
}

/* Liquid Glass Animations */
@keyframes liquidFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    33% {
        transform: translateY(-20px) rotate(120deg) scale(1.05);
    }

    66% {
        transform: translateY(15px) rotate(240deg) scale(0.95);
    }
}

@keyframes liquidMorph {

    0%,
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    25% {
        border-radius: 40% 60% 70% 30% / 40% 70% 30% 60%;
    }

    50% {
        border-radius: 70% 30% 50% 50% / 30% 70% 50% 50%;
    }

    75% {
        border-radius: 30% 70% 40% 60% / 70% 40% 60% 30%;
    }
}

@keyframes liquidShimmer {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes liquidShine {
    0% {
        transform: translateX(-100%) rotate(-45deg);
    }

    100% {
        transform: translateX(100%) rotate(-45deg);
    }
}

/* Blog Grid Section with Subtle Gradient */
.blog-grid-section {
    padding: 100px 40px 0;
    background: linear-gradient(180deg,
            var(--neutral-50) 0%,
            rgba(246, 248, 250, 0.8) 50%,
            var(--neutral-100) 100%);
    position: relative;
    margin-bottom: 0;
}

/* Subtle background pattern */
.blog-grid-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.6;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--neutral-800);
    margin-bottom: 80px;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-family: var(--font-display);
    position: relative;
    z-index: 2;

    /* Subtle gradient text effect */
    background: linear-gradient(135deg, var(--neutral-800) 0%, var(--neutral-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;

    /* Fallback */
    color: var(--neutral-800);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.post-card {
    background: #ffffff !important;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: slideInUp 0.6s ease-out;
    height: auto;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.08),
        0 4px 10px rgba(0, 0, 0, 0.04);
    border-color: #d0d9e4;
}

.post-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    flex-shrink: 0;
    aspect-ratio: 16/10;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Subtle gradient overlay at bottom of image for depth */
.post-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.06), transparent);
    pointer-events: none;
    z-index: 2;
}

.post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(37, 99, 235, 0.88) 0%,
            rgba(79, 70, 229, 0.82) 100%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.post-overlay::before {
    display: none;
}

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

.read-more {
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 12px 24px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    transform: translateY(8px);
    opacity: 0;
}

.post-card:hover .read-more {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(0);
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.9);
}

.read-more::before {
    display: none;
}

.post-content {
    padding: 20px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.post-title {
    color: #111827 !important;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    letter-spacing: -0.02em;
    transition: color 0.25s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.post-title a {
    color: #111827 !important;
    text-decoration: none !important;
}

.post-title a:visited {
    color: #111827 !important;
}

.post-card:hover .post-title,
.post-card:hover .post-title a {
    color: #2563eb !important;
}

.post-excerpt {
    color: #475569 !important;
    font-size: 0.875rem;
    line-height: 1.65;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    font-weight: 400;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    gap: 10px;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    min-width: 0;
}

.post-author span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #475569;
    font-weight: 600;
    font-size: 0.8rem;
}

.author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #f1f5f9;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: border-color 0.25s ease;
}

.post-card:hover .author-avatar {
    border-color: #bfdbfe;
}

.post-date {
    font-weight: 500;
    color: #94a3b8;
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.78rem;
}

/* Modern Liquid Glass Pagination */
.modern-pagination {
    text-align: center;
    padding: 80px 20px;
    background: transparent;
    position: relative;
    z-index: 2;
    margin-bottom: 0;
}

/* Override WordPress default pagination and ensure ours shows */
.wp-pagenavi,
.page-links,
.posts-navigation,
.navigation.pagination:not(.modern-pagination .pagination) {
    display: none !important;
}

/* Ensure our custom pagination is visible */
.modern-pagination .pagination {
    display: inline-flex !important;
    visibility: visible !important;
}

/* Additional pagination selector overrides for WordPress themes */
.ast-pagination-wrapper,
.ast-row .ast-col-12 .navigation {
    display: none !important;
}

.pagination {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    align-items: center;
}

/* Target ALL pagination elements */
.pagination a,
.pagination span,
.pagination .page-number,
.pagination .current,
.pagination .prev,
.pagination .next,
.pagination .dots {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #000000;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    margin: 0 !important;
}

/* Fix WordPress default pagination list styles */
.pagination ul,
.pagination li {
    display: inline-flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pagination ul {
    gap: 12px;
}

/* Liquid Glass Shimmer Effect for Pagination */
.pagination a::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 40%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 60%);
    transform: rotate(-45deg);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.pagination a:hover::before {
    opacity: 1;
    animation: liquidShine 0.8s ease-out;
}

/* Enhanced Liquid Glass Hover Effect for Pagination */
.pagination a:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border-color: var(--primary);
    transform: translateY(-4px) scale(1.08);
    box-shadow:
        0 15px 35px rgba(59, 130, 246, 0.3),
        0 0 30px rgba(59, 130, 246, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.pagination .current {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border-color: var(--primary);
    box-shadow:
        0 8px 25px rgba(59, 130, 246, 0.35),
        0 0 20px rgba(59, 130, 246, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    position: relative;
}

.pagination .current::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    border-radius: inherit;
    pointer-events: none;
}

/* Navigation arrows enhancement */
.pagination .prev,
.pagination .next {
    font-size: 1.2rem;
    font-weight: 400;
}

.pagination .dots {
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--neutral-400);
    cursor: default;
}

.pagination .dots:hover {
    transform: none;
    background: transparent;
    color: var(--neutral-400);
    box-shadow: none;
}


/* Category Badge — Clean Pill */
.post-category {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.25s ease;
    margin-bottom: 10px;
}

.post-card:hover .post-category {
    background: #dbeafe;
    color: #1d4ed8;
}

/* Read Time Badge */
.post-read-time {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-read-time svg {
    width: 13px;
    height: 13px;
    opacity: 0.5;
}

/* ── Premium Placeholder Card Variants ── */

/* Shared fallback styles */
.post-image-fallback {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.post-image-fallback .post-title-on-image {
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.45;
    font-family: var(--font-serif);
    font-weight: 700;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    max-width: 90%;
}

/* Logo Watermark */
.post-fallback-logo {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    opacity: 0.18;
    z-index: 2;
    pointer-events: none;
    border-radius: 50%;
}

/* Variant 1 — Navy Geometric Lines */
.placeholder-v1 {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
}

.placeholder-v1::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 20px),
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 20px);
    z-index: 1;
}

/* Variant 2 — Slate Blue Radial */
.placeholder-v2 {
    background: radial-gradient(ellipse at 30% 50%, #334155 0%, #1e293b 60%, #0f172a 100%);
}

.placeholder-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.12) 0%, transparent 50%);
    z-index: 1;
}

/* Variant 3 — Teal Gradient */
.placeholder-v3 {
    background: linear-gradient(160deg, #134e4a 0%, #0f766e 40%, #115e59 100%);
}

.placeholder-v3::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    z-index: 1;
}

/* Variant 4 — Deep Ocean */
.placeholder-v4 {
    background: linear-gradient(135deg, #0c4a6e 0%, #075985 50%, #082f49 100%);
}

.placeholder-v4::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 80% 30%, rgba(56, 189, 248, 0.08) 0%, transparent 40%);
    z-index: 1;
}

/* Variant 5 — Charcoal Wave */
.placeholder-v5 {
    background: linear-gradient(170deg, #27272a 0%, #3f3f46 50%, #18181b 100%);
}

.placeholder-v5::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent 0px, transparent 38px, rgba(255, 255, 255, 0.025) 38px, rgba(255, 255, 255, 0.025) 40px);
    z-index: 1;
}

/* Variant 6 — Midnight Blue Glow */
.placeholder-v6 {
    background: linear-gradient(140deg, #172554 0%, #1e3a5f 60%, #0c1428 100%);
}

.placeholder-v6::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(56, 189, 248, 0.08) 0%, transparent 60%);
    z-index: 1;
}

/* Enhanced Animations with Micro-Interactions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
        filter: blur(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes liquidShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Magnetic Cursor Effect for Interactive Elements */
@media (hover: hover) and (pointer: fine) {

    .search-button,
    .read-more,
    .pagination a {
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .search-button:hover,
    .read-more:hover {
        transform: scale(1.05);
    }
}

/* Staggered Animation for Cards */
.post-card {
    animation-fill-mode: both;
}

/* Parallax Effect on Scroll */
@supports (transform-style: preserve-3d) {
    .hero-bg-element {
        transform-style: preserve-3d;
        will-change: transform;
    }
}

/* 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;
        scroll-behavior: auto !important;
    }

    .hero-bg-element {
        animation: none;
    }
}

/* Enhanced Responsive Design with Liquid Glass Effects */
@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        max-width: 1000px;
    }

    .post-card {
        min-height: 400px;
    }

    .hero-bg-element:nth-child(3) {
        display: none;
        /* Hide third element on smaller screens */
    }
}

@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 700px;
    }

    .blog-grid-section {
        padding: 60px 20px;
    }

    .post-card {
        min-height: 380px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0;
        min-height: 75vh;
    }

    .hero-title {
        font-size: clamp(2rem, 6vw, 2.5rem);
        margin-bottom: 32px;
    }

    .hero-search {
        max-width: 95%;
    }

    .search-form {
        flex-direction: column;
        gap: 12px;
        padding: 18px;
    }

    .search-button {
        width: 100%;
        justify-content: center;
        padding: 18px 32px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 15px;
    }

    .section-title {
        font-size: clamp(1.75rem, 5vw, 2rem);
        margin-bottom: 60px;
    }

    .blog-grid-section {
        padding: 80px 20px;
    }

    .post-card {
        min-height: 360px;
        /* Enhanced touch interactions */
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .post-card:active {
        transform: scale(0.98);
    }

    /* Hide liquid glass elements on mobile for performance */
    .hero-bg-element:nth-child(2),
    .hero-bg-element:nth-child(3) {
        display: none;
    }

    .post-card::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 80px 0;
        min-height: 70vh;
    }

    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2rem);
        margin-bottom: 28px;
    }

    .search-input {
        font-size: 1rem;
        padding: 14px 24px;
    }

    .search-button {
        padding: 16px 28px;
        font-size: 0.9rem;
    }

    .post-content {
        padding: 20px;
    }

    .post-title {
        font-size: 1.05rem;
        line-height: 1.4;
    }

    .post-image {
        height: 200px;
    }

    .blog-grid-section {
        padding: 60px 15px;
    }

    .pagination a,
    .pagination span {
        width: 44px;
        height: 44px;
        font-size: 0.9rem;
    }

    /* Optimize touch targets */
    .search-suggestion {
        padding: 18px 24px;
        min-height: 48px;
    }

    /* Touch-friendly interactions */
    .post-card {
        min-height: 360px;
    }

    .post-card:active {
        transform: scale(0.97);
        transition: transform 0.1s ease-out;
    }
}

/* Print Styles */
@media print {

    .hero-bg-element,
    .search-form,
    .modern-pagination {
        display: none;
    }

    .post-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .hero-section {
        background: white;
        color: black;
        padding: 40px 0;
    }

    .hero-title {
        color: black !important;
        background: none !important;
        -webkit-text-fill-color: black !important;
    }
}

/* Staggered Card Animations with Performance Optimization */
.post-card:nth-child(1) {
    animation-delay: 0.05s;
}

.post-card:nth-child(2) {
    animation-delay: 0.1s;
}

.post-card:nth-child(3) {
    animation-delay: 0.15s;
}

.post-card:nth-child(4) {
    animation-delay: 0.2s;
}

.post-card:nth-child(5) {
    animation-delay: 0.25s;
}

.post-card:nth-child(6) {
    animation-delay: 0.3s;
}

.post-card:nth-child(7) {
    animation-delay: 0.35s;
}

.post-card:nth-child(8) {
    animation-delay: 0.4s;
}

.post-card:nth-child(9) {
    animation-delay: 0.45s;
}

.post-card:nth-child(10) {
    animation-delay: 0.5s;
}

.post-card:nth-child(11) {
    animation-delay: 0.55s;
}

.post-card:nth-child(12) {
    animation-delay: 0.6s;
}

.post-card:nth-child(13) {
    animation-delay: 0.65s;
}

.post-card:nth-child(14) {
    animation-delay: 0.7s;
}

.post-card:nth-child(15) {
    animation-delay: 0.75s;
}

.post-card:nth-child(16) {
    animation-delay: 0.8s;
}

.post-card:nth-child(17) {
    animation-delay: 0.85s;
}

.post-card:nth-child(18) {
    animation-delay: 0.9s;
}

.post-card:nth-child(19) {
    animation-delay: 0.95s;
}

.post-card:nth-child(20) {
    animation-delay: 1s;
}

/* Performance Optimizations */
.post-card {
    will-change: transform, opacity;
    contain: layout style paint;
}

.post-card:hover {
    will-change: transform;
}

/* GPU Acceleration for Smooth Animations */
.hero-bg-element,
.post-card,
.search-form,
.pagination a {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Focus States for Accessibility */
.search-input:focus,
.search-button:focus,
.pagination a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-color: var(--primary);
}

.post-card a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 20px;
}

/* Dark Mode Support (if theme supports it) */
@media (prefers-color-scheme: dark) {
    :root {
        --neutral-50: #18181b;
        --neutral-100: #27272a;
        --neutral-200: #3f3f46;
        --neutral-800: #f4f4f5;
        --neutral-600: #d4d4d8;
        --neutral-500: #a1a1aa;
        --neutral-400: #71717a;
    }

    .post-card {
        background: rgba(39, 39, 42, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .blog-grid-section {
        background: linear-gradient(180deg,
                var(--neutral-100) 0%,
                rgba(39, 39, 42, 0.8) 50%,
                var(--neutral-50) 100%);
    }
}

/* ============================================
   HOMEPAGE 2-COLUMN LAYOUT
   ============================================ */
.sph-homepage-layout {
    display: grid;
    grid-template-columns: 1000px 400px;
    gap: 40px;
    max-width: 1440px;
    margin: 0 auto;
    align-items: start;
    position: relative;
    z-index: 2;
}

.sph-blog-main .blog-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    max-width: none;
}

/* Product Sidebar */
.sph-sidebar {
    position: sticky;
    top: 40px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    scrollbar-width: none;
}

.sph-sidebar::-webkit-scrollbar {
    display: none;
}

.sph-sidebar-inner {
    background: #ffffff !important;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.03);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.sph-sidebar-heading {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a !important;
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #e2e8f0;
    letter-spacing: -0.01em;
}

/* Product Card in Sidebar */
.sph-sidebar-product {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 8px;
    text-decoration: none !important;
    color: #1e293b !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.sph-sidebar-product:hover {
    background: #f0f7ff;
    border-color: #bfdbfe;
    transform: translateX(4px);
}

.sph-sidebar-product-img {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sph-sidebar-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sph-sidebar-product-info h4 {
    margin: 0 0 4px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #111827 !important;
    line-height: 1.3;
}

.sph-sidebar-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: #2563eb !important;
}

.sph-sidebar-price--free {
    color: #16a34a !important;
}

/* Shop All CTA */
.sph-sidebar-cta {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 20px;
    padding: 12px 20px;
    background: #2563eb;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none !important;
    border-radius: 10px;
    letter-spacing: 0.3px;
    transition: background 0.25s ease;
    box-sizing: border-box;
}

.sph-sidebar-cta:hover {
    background: #1d4ed8;
}

/* Responsive: Homepage Layout */
@media (max-width: 1500px) {
    .sph-homepage-layout {
        grid-template-columns: 1fr 360px;
        padding: 0 20px;
    }
}

@media (max-width: 1100px) {
    .sph-homepage-layout {
        grid-template-columns: 1fr;
    }

    .sph-sidebar {
        position: relative;
        top: 0;
    }

    .sph-blog-main .blog-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .sph-blog-main .blog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .sph-sidebar-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .sph-sidebar-heading {
        grid-column: 1 / -1;
    }

    .sph-sidebar-cta {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .sph-blog-main .blog-grid {
        grid-template-columns: 1fr !important;
    }

    .sph-sidebar-inner {
        grid-template-columns: 1fr;
    }
}