/* Dark mode styles */
html, body {
    overflow-x: clip;
}

body {
    background-color: #0a0a0a;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 1.1rem;
}

main {
    flex: 1 0 auto;
}

.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: radial-gradient(ellipse at top, #1a1a2e 0%, #0a0a0a 50%);
    position: relative;
    overflow: hidden;
    /* Ensure the section doesn't create horizontal scroll */
    max-width: 100vw;
}

/* Homepage hero with consistent top spacing */
.hero-section-home {
    padding-top: 5rem;
    align-items: flex-start;
}

/* Smaller hero for pages without showcase */
.hero-section-sm {
    min-height: 40vh;
    align-items: flex-start;
    padding-top: 0;
}

/* Medium hero for 404 page */
.hero-section-md {
    min-height: 60vh;
    align-items: flex-start;
    padding-top: 0;
}

/* Grid pattern overlay */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.15) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.8;
    z-index: 0;
    pointer-events: none;
    /* WebKit fixes for iOS */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

/* Animated accent */
.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.product-showcase {
    position: relative;
    z-index: 1;
}

.showcase-container {
    background: #0f0f0f;
    border: 1px solid #1a1a1a;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    /* 3D perspective tilt */
    transform: perspective(1000px) rotateY(-5deg);
}

.showcase-container:hover {
    box-shadow: 0 30px 70px rgba(59, 130, 246, 0.3);
    border-color: #2a2a2a;
    transform: perspective(1000px) rotateY(-3deg);
}

.showcase-container img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}

@media (max-width: 768px) {
    .showcase-container {
        aspect-ratio: 1 / 1;
    }
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.showcase-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}

.video-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
    pointer-events: none;
}

.shadow-xl {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
}

.features-showcase {
    background-color: #0a0a0a;
}

.feature-visual {
    background: #0f0f0f;
    border: 1px solid #1a1a1a;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    aspect-ratio: 16 / 10;
    position: relative;
    overflow: hidden;
}

/* Square aspect ratio for how-it-works images */
.how-it-works .feature-visual {
    aspect-ratio: 1 / 1;
}

.feature-visual:hover {
    /* Removed translateY effect */
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
    border-color: #2a2a2a;
}

.feature-visual video,
.feature-visual img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}

@media (max-width: 768px) {
    .feature-visual {
        aspect-ratio: 1 / 1;
    }
}

.badge {
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.bg-primary-subtle {
    background-color: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
}

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

/* Updated button styles */
.btn-primary {
    background-color: #3b82f6;
    border-color: #3b82f6;
    font-weight: 500;
    color: #ffffff !important;
}

/* Extra padding for non-nav primary buttons */
.btn-primary:not(.btn-sm) {
    padding: 0.75rem 2rem;
}

.btn-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #ffffff !important;
}

.btn-outline-light {
    border-color: #404040;
    color: #e0e0e0;
}

.btn-outline-light:hover {
    background-color: #1a1a1a;
    border-color: #404040;
    color: #fff;
}

/* Card styles */
.card {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    transition: all 0.3s ease;
}

.card:hover {
    /* Removed translateY effect */
    border-color: #3a3a3a;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.card-body {
    color: #e0e0e0;
    padding: 1rem !important;
}

/* Text colors */
.text-muted {
    color: #9ca3af !important;
}

.text-primary {
    color: #3b82f6 !important;
}

/* Section backgrounds */
section.py-5 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
    background-color: #0a0a0a;
}

section.py-5:nth-child(even) {
    background-color: #0f0f0f;
}

/* Feature items */
.feature-item {
    padding: 2rem;
    border-radius: 0.5rem;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    text-align: center;
    height: 100%;
    transition: border-color 0.3s ease;
}

.feature-item:hover {
    border-color: #3a3a3a;
}

/* Custom shadow utilities */
.shadow-sm {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4) !important;
}

.shadow {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4) !important;
}

.shadow-lg {
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5) !important;
}

/* Universal hover glow effect */
.btn:hover,
.card:hover,
img:hover,
.feature-visual:hover,
.showcase-container:hover,
.testimonial-item:hover,
.accordion-item:hover {
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3) !important;
    transition: box-shadow 0.3s ease;
}

/* Enhanced glow for larger elements */
.shadow-lg:hover {
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.35) !important;
}

/* Ensure smooth transitions */
.btn,
.card,
.testimonial-item,
.accordion-item {
    transition: box-shadow 0.3s ease;
}

/* Fix for feature visual images - prevent hover interference */
.feature-visual img {
    transition: none !important;
}

/* Preserve showcase container image positioning */
.showcase-container img {
    transition: none !important;
    /* Keep the centering transform */
}

/* Update specific backgrounds */
.bg-light {
    background-color: #1a1a1a !important;
}

.bg-dark {
    background-color: #0a0a0a !important;
}

.bg-primary {
    background-color: #3b82f6 !important;
}

.bg-primary.text-white .btn-light {
    background-color: #fff;
    color: #0a0a0a;
}

.bg-primary.text-white .btn-light:hover {
    background-color: #f0f0f0;
    color: #0a0a0a;
}

/* Fix contrast for white text on blue background */
.bg-primary.text-white p.text-white {
    color: #ffffff !important;
    opacity: 1 !important;
}

.bg-primary.text-white .text-white-50 {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Border colors */
.border-primary {
    border-color: #3b82f6 !important;
}

.border-0 {
    border: 0 !important;
}

/* Rounded backgrounds */
.bg-dark.bg-opacity-10 {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Link styles */
a {
    color: #3b82f6;
}

/* Headers */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
}

.lead {
    color: #9ca3af;
}

/* Display classes */
.display-4, .display-5, .display-6 {
    font-weight: 600;
}

/* Testimonials carousel */
.testimonials-section {
    background: linear-gradient(to bottom, #0a0a0a, #0f0f0f);
}


.testimonial-card {
    max-width: 600px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 1rem;
    padding: 3rem;
    margin: 2rem auto;
    text-align: center;
    transition: all 0.3s ease;
}

.testimonial-text {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #ffffff;
    font-weight: 400;
}

.testimonial-author {
    border-top: 1px solid #2a2a2a;
    padding-top: 1.5rem;
}

/* Testimonial card navigation buttons */
.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    opacity: 0.8;
    cursor: pointer;
}

.testimonial-nav-prev {
    left: -24px;
}

.testimonial-nav-next {
    right: -24px;
}

.testimonial-nav:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.05);
}

.testimonial-nav:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Hide overflow on smaller screens */
@media (max-width: 768px) {
    .testimonial-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .testimonial-nav-prev {
        left: 10px;
    }
    
    .testimonial-nav-next {
        right: 10px;
    }
}

/* Smooth transitions */
#testimonialCarousel .carousel-item {
    transition: transform 0.6s ease-in-out;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .testimonial-card {
        padding: 2rem 1.5rem;
        margin: 1rem auto;
    }
    
    .testimonial-text {
        font-size: 1.1rem;
    }
}

/* Simplify button styles */
.btn-lg {
    font-size: 1.25rem;
    padding: 1.1rem 2.75rem;
}

/* Button with icon styles */
.btn-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-with-icon svg {
    height: 1.8em;
    width: auto;
    display: inline-block;
}

/* Logo animation styles */
.btn-with-icon .logo-shadow,
.navbar-brand .logo-shadow {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-with-icon .logo-depth,
.navbar-brand .logo-depth {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-with-icon .logo-main,
.navbar-brand .logo-main {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-with-icon:hover .logo-shadow,
.navbar-brand:hover .logo-shadow {
    transform: translate(3px, 3px);
}

.btn-with-icon:hover .logo-depth,
.navbar-brand:hover .logo-depth {
    transform: translate(0px, 0px);
}

.btn-with-icon:hover .logo-main,
.navbar-brand:hover .logo-main {
    transform: translate(-3px, -3px);
}

/* Navbar logo styles */
.navbar-brand svg {
    height: 32px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

/* Additional button hover effects */
.btn-with-icon:hover {
    /* Removed translateY effect */
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Light button specific styles */
.btn-light.btn-with-icon:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Add glow effect to all logo hovers */
.btn-with-icon:hover svg,
.navbar-brand:hover svg {
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.4));
}

/* Make logo colors adapt to button style */
.btn-primary .logo-shadow {
    fill: rgba(0, 0, 0, 0.2);
}

.btn-primary .logo-depth {
    fill: rgba(255, 255, 255, 0.6);
}

.btn-primary .logo-main rect {
    fill: #ffffff;
}

.btn-primary .logo-main text {
    fill: #3b82f6;
}

/* Improve feature visual spacing */
.features-showcase .row {
    margin-bottom: 6rem;
}

.features-showcase .row:last-child {
    margin-bottom: 0;
}

/* Accordion styles */
.features-accordion .accordion-item {
    background-color: transparent;
    border: 1px solid #2a2a2a;
    margin-bottom: 1rem;
    border-radius: 0.75rem !important;
    overflow: hidden;
}

.features-accordion .accordion-button {
    background-color: #1a1a1a;
    color: #e0e0e0;
    font-size: 1.1rem;
    padding: 1.25rem;
    border: none;
    box-shadow: none;
}

.features-accordion .accordion-button:not(.collapsed) {
    background-color: #2563eb;
    color: #ffffff;
}

.features-accordion .accordion-button:hover {
    background-color: #1e40af;
    color: #ffffff;
}

/* Ensure strong tags in accordion have sufficient contrast */
.features-accordion .accordion-button strong {
    color: inherit;
    font-weight: 600;
}

.features-accordion .accordion-button:focus {
    box-shadow: none;
    border: none;
}

.features-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23e0e0e0'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.features-accordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.features-accordion .accordion-body {
    background-color: #0f0f0f;
    padding: 2rem;
    border-top: 1px solid #2a2a2a;
}

.features-accordion .accordion-button i {
    font-size: 1.5rem;
}

/* Blog post table styles - Dark mode compatible */
.blog-content .table-container,
#table-container {
    font-family: Arial, sans-serif;
    height: 50vh;
    overflow: auto;
    margin: 20px 0;
    position: relative;
    width: 100%;
    background-color: #1a1a1a;
    border-radius: 0.5rem;
    border: 1px solid #2a2a2a;
}

.blog-content .table-wrapper,
.table-responsive {
    overflow-x: auto;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
}

.blog-content table,
#brandTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
    background-color: #1a1a1a;
    color: #e0e0e0;
}

.blog-content th,
.blog-content td {
    border: 1px solid #2a2a2a;
    padding: 8px 12px;
    text-align: left;
    white-space: nowrap;
    background-color: #1a1a1a;
    min-width: max-content;
}

.blog-content thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

.blog-content th,
.table-light th {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
    position: sticky;
    top: 0;
    font-weight: 600;
}

/* Sorting styles */
.blog-content th.sortable {
    cursor: pointer;
    user-select: none;
}

.blog-content th.sortable::after {
    content: '⇅';
    padding-left: 8px;
    opacity: 0.5;
    font-size: 0.8em;
}

.blog-content th.sortable.asc::after {
    content: '↑';
    opacity: 1;
    color: #3b82f6;
}

.blog-content th.sortable.desc::after {
    content: '↓';
    opacity: 1;
    color: #3b82f6;
}

.blog-content th.sortable:hover {
    background-color: #3a3a3a !important;
}

/* Table striping for dark mode */
.blog-content .table-striped tbody tr:nth-of-type(odd) td {
    background-color: #1f1f1f;
}

.blog-content .table-striped tbody tr:nth-of-type(even) td {
    background-color: #1a1a1a;
}

.blog-content .table-hover tbody tr:hover td {
    background-color: #2a2a2a;
}

/* Search input styling */
#searchInput {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 16px;
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 0.5rem;
    color: #e0e0e0;
}

#searchInput:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#searchInput::placeholder {
    color: #888;
}

/* Scrollbar styles for webkit browsers */
.blog-content .table-container::-webkit-scrollbar,
#table-container::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.blog-content .table-container::-webkit-scrollbar-thumb,
#table-container::-webkit-scrollbar-thumb {
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: padding-box;
    background-color: #3a3a3a;
}

.blog-content .table-container::-webkit-scrollbar-thumb:hover,
#table-container::-webkit-scrollbar-thumb:hover {
    background-color: #4a4a4a;
}

.blog-content .table-container::-webkit-scrollbar-track,
#table-container::-webkit-scrollbar-track {
    background-color: #1a1a1a;
    border-radius: 6px;
}

/* Links in table cells */
.blog-content table a {
    color: #60a5fa;
    text-decoration: none;
}

.blog-content table a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* Override Bootstrap table classes for dark mode */
.blog-content .table {
    --bs-table-bg: #1a1a1a;
    --bs-table-color: #e0e0e0;
    --bs-table-border-color: #2a2a2a;
    --bs-table-accent-bg: #1f1f1f;
    --bs-table-striped-bg: #1f1f1f;
    --bs-table-hover-bg: #2a2a2a;
    --bs-table-hover-color: #ffffff;
}

/* Fix for table-light class in dark mode */
.blog-content .table-light,
.blog-content .table-light th,
.blog-content .table-light td {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
    border-color: #3a3a3a !important;
}

/* Ensure text in table cells is readable */
.blog-content .table tbody tr td {
    color: #e0e0e0 !important;
    border-color: #2a2a2a !important;
}

/* Enhanced focus states for accessibility */
.blog-content th.sortable:focus {
    outline: 2px solid #3b82f6;
    outline-offset: -2px;
}

#searchInput:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Blog post image styles */
.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2rem 0;
    border: 1px solid #2a2a2a;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.blog-content .img-fluid {
    border-radius: 0.5rem;
    border: 1px solid #2a2a2a;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

/* Center images in blog posts */
.blog-content p img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Data table specific classes */
.data-table-container {
    max-height: 50vh;
    overflow-y: auto;
    margin-bottom: 20px;
    background-color: #1a1a1a;
    border-radius: 0.5rem;
    border: 1px solid #2a2a2a;
    padding: 0;
}

.data-table-container table {
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.data-table-container .table {
    margin-bottom: 0 !important;
}

.data-table-container th,
.data-table-container td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 8px 12px;
    vertical-align: middle;
}

.data-search-input {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 16px;
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 0.5rem;
    color: #e0e0e0;
}

.data-search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.data-search-input::placeholder {
    color: #888;
}

/* Sellers table container - larger height */
.sellers-table-container {
    font-family: Arial, sans-serif;
    height: 50vh;
    overflow: auto;
    margin: 20px 0;
    position: relative;
    width: 100%;
    background-color: #1a1a1a;
    border-radius: 0.5rem;
    border: 1px solid #2a2a2a;
    padding: 0;
}

.sellers-table-container table {
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.sellers-table-container .table {
    margin-bottom: 0 !important;
}

.sellers-table-container th,
.sellers-table-container td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 8px 12px;
    vertical-align: middle;
}

/* Dark mode scrollbars for data tables */
.data-table-container::-webkit-scrollbar,
.sellers-table-container::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.data-table-container::-webkit-scrollbar-thumb,
.sellers-table-container::-webkit-scrollbar-thumb {
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: padding-box;
    background-color: #3a3a3a;
}

.data-table-container::-webkit-scrollbar-thumb:hover,
.sellers-table-container::-webkit-scrollbar-thumb:hover {
    background-color: #4a4a4a;
}

.data-table-container::-webkit-scrollbar-track,
.sellers-table-container::-webkit-scrollbar-track {
    background-color: #1a1a1a;
    border-radius: 6px;
}

.data-table-container::-webkit-scrollbar-corner,
.sellers-table-container::-webkit-scrollbar-corner {
    background-color: #1a1a1a;
}

/* Responsive table adjustments */
@media (max-width: 768px) {
    .blog-content .table-container,
    #table-container,
    .data-table-container,
    .sellers-table-container {
        height: 40vh;
        margin: 15px 0;
    }
    
    .blog-content th,
    .blog-content td {
        padding: 6px 8px;
        font-size: 0.9rem;
    }
    
    #searchInput,
    .data-search-input {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .blog-content img {
        margin: 1.5rem 0;
    }
}

/* Blog sidebar sticky positioning */
@media (min-width: 992px) {
    .blog-sidebar {
        position: sticky;
        top: 20px;
        height: max-content;
    }
    
    /* Ensure parent containers don't interfere */
    .container .row {
        align-items: flex-start;
    }
}

/* Anchor link scroll offset for fixed header */
h1[id], h2[id], h3[id], h4[id], h5[id], h6[id] {
    scroll-margin-top: 120px;
}

/* Anchor link styles */
.header-anchor {
    color: #3b82f6;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-left: 0.5rem;
    font-weight: normal;
}

/* Show anchor on header hover */
h1:hover .header-anchor,
h2:hover .header-anchor,
h3:hover .header-anchor,
h4:hover .header-anchor,
h5:hover .header-anchor,
h6:hover .header-anchor {
    opacity: 0.7;
}

/* Show anchor on anchor hover */
.header-anchor:hover {
    opacity: 1 !important;
    color: #60a5fa;
}

/* Focus states for accessibility */
.header-anchor:focus {
    opacity: 1;
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}