﻿/* Mobile Navbar */
.mobile-navbar {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1020;
}

    .mobile-navbar .nav-link.active,
    .mobile-navbar .nav-item:hover .nav-link {
        color: var(--tertiary-color) !important;
    }

    .mobile-navbar .nav-link.show {
        color: var(--tertiary-color) !important;
    }

/* Header */
.site-header.homepage {
    background: white;
    border-bottom: 3px solid var(--primary-color);
    padding: 8px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}

.site-logo {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.site-tagline {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 5px;
}

/* Slideshows */
/* ===================================
   Featured Carousel with 3D Tilt Effect
   =================================== */

/* Full-bleed carousel wrapper */
.carousel-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    padding: 12px 0; /* Only top and bottom padding, no left/right  */
    background: transparent;
}

/* Hide carousel until Glide is ready - prevents flash of unstyled content */
#featuredGlide {
    opacity: 0;
    visibility: hidden;
}

    #featuredGlide.not-ready * {
        transition: none !important;
    }

    #featuredGlide.glide--slider {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease;
    }

/* Glide container */
.glide {
    position: relative;
    width: 100%;
    overflow: visible;
}

.glide__track {
    overflow: visible;
}

.glide__slides {
    overflow: visible;
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.glide__slide {
    width: 33.333%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    transform-style: preserve-3d;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Slide content wrapper */
.slide-content {
    width: 100%;
    aspect-ratio: 800 / 440;
    position: relative;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-link {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    transition: transform 0.3s ease;
}

    .slide-link:hover {
        /* No box shadow on hover */
    }

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    padding: 2rem;
}

    .slide-placeholder span {
        display: block;
        max-width: 90%;
    }

/* ===================================
   3D Tilt Effects
   =================================== */

.slide-content {
    will-change: transform;
    backface-visibility: hidden;
}

/* Active slide - centered and flat */
.glide__slide--active .slide-content {
    transform: translateZ(30px) scale(1.05);
    z-index: 10;
}

/* Left slide - tilt right edge toward center */
.glide__slide.tilt-left .slide-content {
    transform-origin: right center;
    transform: perspective(1500px) rotateY(15deg) translateZ(-30px) scale(0.92);
    z-index: 5;
}

/* Right slide - tilt left edge toward center */
.glide__slide.tilt-right .slide-content {
    transform-origin: left center;
    transform: perspective(1500px) rotateY(-15deg) translateZ(-30px) scale(0.92);
    z-index: 5;
}

/* Other slides behind */
.glide__slide {
    z-index: 1;
}

/* ===================================
   Navigation Controls
   =================================== */

/* Arrows container */
.glide__arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 20;
}

.glide__arrow {
    position: absolute;
    top: 0;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

    .glide__arrow:hover {
        background: rgba(0, 0, 0, 0.8);
        transform: scale(1.1);
    }

    .glide__arrow:active {
        transform: scale(0.95);
    }

.glide__arrow--left {
    left: 20px;
}

.glide__arrow--right {
    right: 20px;
}

.glide__arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Arrows - Custom Styling */
/* Arrow container */
#featuredGlide .custom-arrows {
    pointer-events: none; /* allow clicks only on buttons */
}

/* Base arrow style */
#featuredGlide .custom-arrow {
    pointer-events: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 50%;
    border: none;
    color: var(--tertiary-color);
    font-size: 36px;
    cursor: pointer;
    opacity: 0.65;
    transition: opacity 0.3s ease, background 0.3s ease, transform 0.2s ease;
    z-index: 10;
}

    /* Left & right positions */
    #featuredGlide .custom-arrow.left {
        left: 20px;
    }

    #featuredGlide .custom-arrow.right {
        right: 20px;
    }

/* Hover effects */
#featuredGlide:hover .custom-arrow {
    opacity: 0.9;
}

#featuredGlide .custom-arrow:hover {
    background: rgba(0, 0, 0, 0.45);
    transform: translateY(-50%) scale(1.05);
}

/* Mobile tweaks */
@media (max-width: 768px) {
    #featuredGlide .custom-arrow {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }

        #featuredGlide .custom-arrow.left {
            left: 10px;
        }

        #featuredGlide .custom-arrow.right {
            right: 10px;
        }
}


/* Bullets navigation */
.glide__bullets {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 2rem;
    padding: 0;
    list-style: none;
}

.glide__bullet {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

    .glide__bullet:hover {
        background: rgba(0, 0, 0, 0.5);
        transform: scale(1.2);
    }

.glide__bullet--active {
    background: #667eea;
    width: 14px;
    height: 14px;
}

/* ===================================
   Featured Placeholder (No Posts)
   =================================== */

.featured-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 2rem 0;
}

    .featured-placeholder i {
        font-size: 4rem;
        color: #dee2e6;
        margin-bottom: 1rem;
    }

    .featured-placeholder h5 {
        color: #6c757d;
        margin-bottom: 0.5rem;
    }

    .featured-placeholder p {
        color: #adb5bd;
        margin: 0;
    }

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
    /* Mobile: single slide view with peek */
    .glide__slide {
        width: 100%;
    }

        /* Enable 3D tilts on mobile for peek slides */
        .glide__slide.tilt-left .slide-content {
            transform-origin: right center;
            transform: perspective(1000px) rotateY(8deg) translateZ(-20px) scale(0.85);
            z-index: 5;
            opacity: 0.6;
        }

        .glide__slide.tilt-right .slide-content {
            transform-origin: left center;
            transform: perspective(1000px) rotateY(-8deg) translateZ(-20px) scale(0.85);
            z-index: 5;
            opacity: 0.6;
        }

    /* Active slide on mobile - prominent */
    .glide__slide--active .slide-content {
        transform: translateZ(10px) scale(1);
        z-index: 10;
        opacity: 1;
    }

    /* Add padding to carousel wrapper on mobile to accommodate peek */
    .carousel-wrapper {
        /*        padding: 2rem 0;*/
    }

    /* Smaller arrows on mobile */
    .glide__arrow {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .glide__arrow--left {
        left: 10px;
    }

    .glide__arrow--right {
        right: 10px;
    }

    /* Smaller bullets on mobile */
    .glide__bullet {
        width: 10px;
        height: 10px;
    }

    .glide__bullet--active {
        width: 12px;
        height: 12px;
    }

    /* Featured placeholder */
    .featured-placeholder {
        padding: 3rem 1.5rem;
        margin: 1rem 0;
    }

        .featured-placeholder i {
            font-size: 3rem;
        }
}

/* Tablet size adjustments */
@media (max-width: 992px) and (min-width: 769px) {
    .glide__slide {
        width: 50%;
    }

    .carousel-wrapper {
        /*        padding: 1.5rem 0;*/
    }
}

/* ===================================
   Print Styles
   =================================== */

@media print {
    .glide__arrows,
    .glide__bullets {
        display: none !important;
    }

    .carousel-wrapper {
        overflow: visible;
    }

    .glide__slide {
        break-inside: avoid;
    }
}
/* End Slideshows */

/* Desktop Navigation */
.main-nav {
    background: var(--bg-light);
    padding: 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 65px;
    z-index: 10;
}

    .main-nav .nav-link {
        padding: 15px 25px;
        border-bottom: 3px solid transparent;
    }

    .main-nav .nav-link,
    .main-nav .dropdown-item {
        color: var(--text-dark);
        font-weight: 500;
        transition: all 0.3s;
    }

        .main-nav .nav-link:hover,
        .main-nav .nav-link.active {
            border-bottom-color: var(--primary-color);
        }

        .main-nav .nav-link:hover,
        .main-nav .nav-link.active,
        .main-nav .dropdown-item:hover,
        .main-nav .dropdown-item.active {
            color: var(--primary-color);
            border-bottom-color: var(--primary-color);
            background: white;
        }

    .main-nav .dropdown {
        position: relative;
    }

    .main-nav .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        margin-top: 0;
        min-width: 220px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        border: 1px solid var(--border-color);
        padding: 8px 0;
        z-index: 1000;
        background: white;
    }

        /*        .main-nav .dropdown-menu {
            display: block;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
            pointer-events: none;
        }*/

        .main-nav .dropdown-menu.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
            pointer-events: auto;
        }

    .main-nav .dropdown-item {
        padding: 12px 20px;
        color: var(--text-dark);
        transition: all 0.2s ease;
        font-size: 14px;
        font-weight: 500;
        border-bottom: none !important;
    }

        .main-nav .dropdown-item:hover {
            background: var(--bg-light);
            color: var(--primary-color);
            padding-left: 25px;
            border-bottom: none !important;
        }

        .main-nav .dropdown-item i {
            margin-right: 10px;
            width: 18px;
            text-align: center;
            color: var(--primary-color);
        }

        .main-nav .dropdown-item.active {
            background: var(--primary-color);
            color: white;
            border-bottom: none !important;
        }

            .main-nav .dropdown-item.active i {
                color: white;
            }

    .main-nav .dropdown-divider {
        margin: 8px 0;
        border-top: 1px solid var(--border-color);
    }

    .main-nav .dropdown-toggle::after {
        margin-left: 6px;
        transition: transform 0.3s ease;
    }

    .main-nav .dropdown.show .dropdown-toggle::after {
        transform: rotate(180deg);
    }

    .main-nav .dropdown:hover > .dropdown-toggle {
        color: var(--primary-color);
        background: white;
        border-bottom-color: var(--primary-color);
    }

@media only screen and (max-width: 991px) {
    .main-nav {
        top: 55px;
    }
}

/* Category slider container */
.category-slider {
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: var(--bg-light); /* ensures uniform background */
}

/* Fixed active category */
.fixed-category {
    position: sticky;
    left: 0;
    z-index: 3; /* above track */
    background: var(--bg-light); /* match main-nav */
    flex-shrink: 0;
    border-right: 1px solid var(--border-color);
    min-width: 130px;
    text-align: center;
}

.category-rail {
    overflow: hidden;
    position: relative;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    background: var(--bg-light); /* match nav too */
}

    .category-rail::-webkit-scrollbar {
        display: none;
    }


    .category-rail::before,
    .category-rail::after {
        content: '';
        position: absolute;
        top: 0;
        width: 40px;
        height: 100%;
        z-index: 2;
        pointer-events: none;
    }

    .category-rail::before,
    .category-rail::after {
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .category-rail.auto-scroll::before,
    .category-rail.auto-scroll::after {
        opacity: 1;
    }


    .category-rail::before {
        left: 0;
/*        background: linear-gradient(to right, white, transparent);*/
    }

    .category-rail::after {
        right: 0;
/*        background: linear-gradient(to left, white, transparent);*/
    }


/* Track that moves */
.category-track {
    display: flex;
    gap: 10px;
    width: 100%;
}

    .category-track .nav-link {
        flex: 1 1 0;
        text-align: center;
        white-space: nowrap;
    }

    .category-track .nav-link,
    .fixed-category {
        background: inherit;
    }

/* Only animate when needed */
.category-rail.auto-scroll .category-track {
    animation: none;
}

.category-rail:hover .category-track {
    animation-play-state: paused;
}

@keyframes categoryPingPong {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-1 * var(--scroll-distance)));
    }
}

@media (max-width: 991px) {
    .category-track .nav-link {
        flex: 0 0 auto;
        min-width: 130px;
    }
}

/* Modern Offcanvas Styles */
.offcanvas {
    background: white;
    width: 300px;
}

.offcanvas-header {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 20px 24px;
}

.offcanvas-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

    .offcanvas-title img {
        height: 32px;
        width: auto;
    }

.btn-close {
    background-size: 20px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

    .btn-close:hover {
        opacity: 1;
    }

.offcanvas-body {
    padding: 0;
    background: white;
}

/* Modern Menu List */
.mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-item {
    border-bottom: 1px solid var(--border-color);
}

    .mobile-menu-item:last-child {
        border-bottom: none;
    }

.mobile-menu-link {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

    .mobile-menu-link:hover {
        background: var(--bg-light);
        color: var(--primary-color);
    }

    .mobile-menu-link.active {
        background: linear-gradient(90deg, rgba(231, 76, 60, 0.05) 0%, transparent 100%);
        color: var(--primary-color);
        border-left: 3px solid var(--primary-color);
        padding-left: 21px;
    }

    .mobile-menu-link i {
        width: 24px;
        margin-right: 12px;
        font-size: 16px;
        color: var(--tertiary-color);
    }

    .mobile-menu-link.active i {
        color: var(--primary-color);
    }

/* Modern Accordion for Nested Items */
.mobile-accordion {
    border: none;
}

.mobile-accordion-item {
    border: none;
    border-bottom: 1px solid var(--border-color);
}

    .mobile-accordion-item:last-child {
        border-bottom: none;
    }

.mobile-accordion-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 24px;
    background: white;
    border: none;
    text-align: left;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    height: 57px;
}

    .mobile-accordion-button:not(.collapsed) {
        background: var(--bg-light);
        color: var(--primary-color);
    }

    .mobile-accordion-button:hover {
        background: var(--bg-light);
    }

    .mobile-accordion-button:focus {
        box-shadow: none;
    }

    .mobile-accordion-button .accordion-icon {
        display: flex;
        align-items: center;
        gap: 12px;
    }

        .mobile-accordion-button .accordion-icon i {
            width: 24px;
            font-size: 16px;
            color: var(--tertiary-color);
        }

    .mobile-accordion-button:not(.collapsed) .accordion-icon i {
        color: var(--primary-color);
    }

    .mobile-accordion-button .chevron {
        transition: transform 0.3s ease;
        color: var(--text-light);
        font-size: 14px;
    }

    .mobile-accordion-button:not(.collapsed) .chevron {
        transform: rotate(180deg);
        color: var(--primary-color);
    }

.mobile-accordion-collapse {
    background: var(--bg-light);
}

.mobile-submenu-link {
    display: block;
    padding: 12px 24px 12px 60px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

    .mobile-submenu-link:hover {
        background: white;
        color: var(--primary-color);
        border-left-color: var(--primary-color);
    }

    .mobile-submenu-link.active {
        background: white;
        color: var(--primary-color);
        font-weight: 600;
        border-left-color: var(--primary-color);
    }

    .mobile-submenu-link i {
        margin-right: 8px;
        font-size: 12px;
        color: var(--tertiary-color);
    }

/* Offcanvas Footer */
.offcanvas-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
}

.footer-section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: white;
    color: var(--text-dark);
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    font-size: 16px;
}

    .social-link:hover {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    }

.contact-info {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

    .contact-link:hover {
        color: var(--primary-color);
    }

    .contact-link i {
        color: var(--tertiary-color);
        font-size: 14px;
    }


/* Search Modal */
/* Search Modal Styles */
#searchModal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

#searchModal .modal-header {
    padding: 24px 24px 16px;
}

#searchModal .modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
}

#searchModal .modal-body {
    padding: 16px 24px 24px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

/* Search Input */
.search-input-container .input-group {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.search-input-container .input-group-text {
    border: 1px solid #dee2e6;
    padding: 12px 16px;
}

.search-input-container .form-control {
    border: 1px solid #dee2e6;
    padding: 12px 16px;
    font-size: 16px;
}

    .search-input-container .form-control:focus {
        box-shadow: none;
        border-color: var(--primary-color);
    }

.search-input-container .btn {
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .search-input-container .btn:hover {
        opacity: 0.9;
        transform: translateY(-1px);
    }

/* Hot Search Tags */
.hot-search-tag {
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1.5px solid var(--border-color);
    background: white;
}

    .hot-search-tag:hover {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(231, 76, 60, 0.2);
    }

/* Skeleton Loading */
.skeleton-tag {
    height: 32px;
    width: 80px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 20px;
}

.skeleton-post {
    height: 120px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 12px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Search Post Card (Latest Posts) */
.search-post-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: white;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
}

    .search-post-card:hover {
        border-color: var(--primary-color);
        box-shadow: 0 4px 12px rgba(231, 76, 60, 0.15);
        transform: translateY(-2px);
    }

.search-post-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-light);
}

    .search-post-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.placeholder-thumbnail {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-light), #e9ecef);
    color: var(--text-light);
    font-size: 24px;
}

.search-post-content {
    flex: 1;
    min-width: 0;
}

.search-post-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-post-excerpt {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-post-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--text-light);
}

    .search-post-meta i {
        margin-right: 4px;
    }

/* Search Result Item */
.search-result-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    background: white;
    border: 1px solid var(--border-color);
    margin-bottom: 12px !important;
    transition: all 0.3s ease;
}

    .search-result-item:hover {
        border-color: var(--primary-color);
        box-shadow: 0 4px 12px rgba(231, 76, 60, 0.15);
        transform: translateX(4px);
    }

    .search-result-item:last-child {
        margin-bottom: 0;
    }

.search-result-thumbnail {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    aspect-ratio: 1/1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-light);
}

    .search-result-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-excerpt {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-light);
}

    .search-result-meta i {
        margin-right: 4px;
    }

/* Mobile Responsive */
@media (max-width: 768px) {
    #searchModal .modal-body {
        max-height: calc(100vh - 120px);
    }

    .search-post-thumbnail {
        width: 60px;
        height: 60px;
    }

    .search-post-title {
        font-size: 13px;
    }

    .search-post-excerpt {
        display: none;
    }

    .search-result-item {
        flex-direction: column;
        gap: 12px;
    }

    .search-result-thumbnail {
        width: 100%;
        height: 160px;
    }

    .hot-search-tag {
        font-size: 12px;
        padding: 5px 12px;
    }
}

/* Empty State */
#emptyState {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 40px 20px;
}

    #emptyState i {
        opacity: 0.5;
    }

/* Rate Limit Warning */
#rateLimitWarning {
    border-radius: 12px;
    border-left: 4px solid #ff9800;
}

/* Section Headers */
#searchModal h6 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

    #searchModal h6 i {
        color: var(--tertiary-color);
    }

/* Scrollbar Styling */
#searchModal .modal-body::-webkit-scrollbar {
    width: 6px;
}

#searchModal .modal-body::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 10px;
}

#searchModal .modal-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

    #searchModal .modal-body::-webkit-scrollbar-thumb:hover {
        background: var(--tertiary-color);
    }
/* End Search Modal */
