/* ================================================
   BLOG & ARCHIVE PAGES
   ================================================ */

/* Blog Hero Section */
.blog-hero,
.archive-hero,
.single-post-hero {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    overflow: hidden;
}

.blog-hero-content,
.archive-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.archive-meta {
    margin-top: 1.5rem;
}

.archive-count {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    color: white;
    font-weight: 500;
}

/* Blog Layout */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
}

.blog-main {
    min-width: 0;
}

/* Blog Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.widget-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-title i {
    color: var(--primary-color);
}

/* Category List */
.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.8rem;
}

.category-list a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.category-list a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
    padding-left: 1rem;
}

/* Recent Posts List */
.recent-posts-list {
    list-style: none;
}

.recent-posts-list li {
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--light-bg);
}

.recent-posts-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-posts-list a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}

.recent-posts-list a:hover {
    color: var(--primary-color);
}

.post-date {
    font-size: 0.85rem;
    color: var(--light-text);
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    background: var(--light-bg);
    color: var(--text-color);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Pagination */
.pagination-wrapper {
    margin-top: 3rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    flex-wrap: wrap;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 1rem;
    background: white;
    border: 2px solid var(--light-bg);
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.page-numbers i {
    font-size: 0.9rem;
}

/* No Posts Found */
.no-posts-found {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.no-posts-found i {
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.no-posts-found h2 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.no-posts-found p {
    color: var(--light-text);
    margin-bottom: 2rem;
}

/* ================================================
   SINGLE POST PAGE
   ================================================ */

/* Single Post Hero */
.single-post-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    padding: 150px 0 100px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(5px);
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(56, 108, 176, 0.9) 0%,
            rgba(123, 67, 151, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.breadcrumb a,
.breadcrumb .current,
.breadcrumb .separator {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
}

.breadcrumb a:hover {
    color: white;
    text-decoration: underline;
}

.breadcrumb .current {
    color: rgba(255, 255, 255, 0.7);
}

/* Post Title & Meta */
.post-title {
    color: white;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.meta-item {
    color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Single Post Content */
.single-post-layout {
    max-width: 900px;
    margin: 0 auto;
}

.single-post-content {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 2rem 0;
}

/* Post Tags */
.post-tags {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-bg);
}

.post-tags a {
    background: var(--light-bg);
    color: var(--text-color);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    text-decoration: none;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.post-tags a:hover {
    background: var(--primary-color);
    color: white;
}

/* Share Section */
.share-section {
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 15px;
    margin-top: 2rem;
}

.share-section h3 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.email {
    background: #666;
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 15px;
    margin-top: 2rem;
}

.author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid white;
}

.author-info h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.author-info p {
    margin-bottom: 1rem;
    color: var(--light-text);
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.nav-previous,
.nav-next {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.nav-previous:hover,
.nav-next:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.nav-next {
    text-align: right;
}

.nav-label {
    display: block;
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.post-navigation a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.post-navigation a:hover {
    text-decoration: underline;
}

/* Related Posts */
.related-posts {
    margin-top: 4rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.related-post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.related-post-thumbnail {
    overflow: hidden;
}

.related-post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-thumbnail img {
    transform: scale(1.1);
}

.related-post-content {
    padding: 1.5rem;
}

.related-post-content h4 {
    margin-bottom: 0.8rem;
}

.related-post-content a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-content a:hover {
    color: var(--primary-color);
}

/* ================================================
   COMMENTS SECTION
   ================================================ */

.comments-area {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-top: 3rem;
}

.comments-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.comment-list {
    list-style: none;
    margin-bottom: 3rem;
}

.comment-body {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.comment-author img {
    border-radius: 50%;
}

.comment-metadata {
    flex: 1;
}

.comment-metadata .fn {
    font-size: 1.1rem;
    color: var(--text-color);
}

.comment-date {
    display: block;
    font-size: 0.85rem;
    color: var(--light-text);
    margin-top: 0.3rem;
}

.comment-awaiting-moderation {
    display: block;
    background: #fff9e6;
    color: #856404;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-top: 0.8rem;
    font-size: 0.9rem;
}

.comment-content {
    margin-top: 1rem;
    color: var(--text-color);
    line-height: 1.6;
}

.comment-reply {
    margin-top: 1rem;
}

.reply-link,
.edit-link {
    display: inline-block;
    margin-right: 1rem;
}

.reply-link a,
.edit-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.reply-link a:hover,
.edit-link a:hover {
    text-decoration: underline;
}

.children {
    list-style: none;
    margin-left: 3rem;
    margin-top: 1rem;
}

.comment-reply-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.no-comments {
    text-align: center;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 10px;
    color: var(--light-text);
}

/* ================================================
   404 ERROR PAGE
   ================================================ */

.error-404-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
}

.error-404-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.error-bg-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s infinite ease-in-out;
}

.error-bg-shape.shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.error-bg-shape.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -80px;
    right: -80px;
    animation-delay: 3s;
}

.error-bg-shape.shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 10%;
    animation-delay: 6s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-50px) scale(1.1);
    }
}

.error-404-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
    padding: 2rem;
}

.error-icon {
    position: relative;
    margin-bottom: 2rem;
}

.error-icon i {
    font-size: 4rem;
    color: white;
    opacity: 0.8;
}

.error-number {
    font-size: clamp(6rem, 15vw, 10rem);
    font-weight: 900;
    color: white;
    line-height: 1;
    margin: 0;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.error-title {
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
}

.error-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.error-search,
.error-links {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.error-search h3,
.error-links h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-link-card:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

.quick-link-card i {
    font-size: 1.5rem;
}

.error-actions {
    margin-top: 2rem;
}

/* ================================================
   RESPONSIVE STYLES
   ================================================ */

@media (max-width: 991px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }

    .author-bio {
        flex-direction: column;
        text-align: center;
    }

    .children {
        margin-left: 1rem;
    }
}

@media (max-width: 767px) {
    .single-post-content {
        padding: 2rem 1.5rem;
    }

    .comment-body {
        flex-direction: column;
    }

    .post-meta {
        flex-direction: column;
        gap: 0.8rem;
    }

    .share-buttons {
        justify-content: center;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

    .nav-next {
        text-align: left;
    }

    .sidebar-widget {
        padding: 1.5rem;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================================================
   PROFESSIONAL GALLERY
   ================================================ */

.professional-gallery {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-grid-1 {
    grid-template-columns: 1fr;
}

.gallery-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.gallery-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.gallery-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.gallery-grid-6 {
    grid-template-columns: repeat(6, 1fr);
}

.professional-gallery .gallery-item {
    position: relative;
    display: block;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.professional-gallery .gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.professional-gallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.professional-gallery .gallery-item:hover img {
    transform: scale(1.1);
}

.professional-gallery .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(56, 108, 176, 0.9) 0%,
            rgba(123, 67, 151, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.professional-gallery .gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.professional-gallery .gallery-overlay i {
    font-size: 2.5rem;
    color: white;
    transform: scale(0.5);
    transition: transform 0.3s ease;
}

.professional-gallery .gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

@media (max-width: 991px) {

    .gallery-grid-4,
    .gallery-grid-5,
    .gallery-grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {

    .gallery-grid-3,
    .gallery-grid-4,
    .gallery-grid-5,
    .gallery-grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================================================
   SEARCH FORM & AJAX SEARCH
   ================================================ */

.search-form {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.search-field-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    color: var(--light-text);
    font-size: 1.1rem;
    z-index: 1;
    pointer-events: none;
}

.search-field {
    width: 100%;
    padding: 1rem 4rem 1rem 4rem;
    border: 2px solid var(--light-bg);
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.search-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.search-submit {
    position: absolute;
    right: 0.5rem;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-submit:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

/* AJAX Search Results */
.ajax-search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 1000;
    max-height: 500px;
    overflow-y: auto;
}

.ajax-results-header,
.ajax-results-footer {
    padding: 1rem 1.5rem;
    background: var(--light-bg);
    font-size: 0.95rem;
    color: var(--text-color);
}

.ajax-results-list {
    max-height: 350px;
    overflow-y: auto;
}

.ajax-result-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--light-bg);
    text-decoration: none;
    transition: background 0.2s ease;
}

.ajax-result-item:hover {
    background: rgba(56, 108, 176, 0.05);
}

.ajax-result-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.ajax-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ajax-result-content {
    flex: 1;
    min-width: 0;
}

.ajax-result-content h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--text-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ajax-result-content p {
    font-size: 0.85rem;
    color: var(--light-text);
    margin-bottom: 0.3rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.ajax-result-date {
    font-size: 0.8rem;
    color: var(--light-text);
}

.ajax-loading,
.ajax-no-results,
.ajax-error {
    padding: 2rem;
    text-align: center;
    color: var(--light-text);
}

.ajax-loading i {
    margin-right: 0.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.view-all-results {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.view-all-results:hover {
    text-decoration: underline;
}

/* ================================================
   SEARCH PAGE SPECIFIC
   ================================================ */

.search-hero {
    text-align: center;
}

.search-query {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.search-form-hero {
    max-width: 700px;
    margin: 0 auto;
    margin-top: 2rem;
}

.search-form-hero .search-field {
    padding: 1.2rem 5rem 1.2rem 4.5rem;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.95);
}

.search-form-hero .search-field:focus {
    background: white;
}

.search-layout {
    width: 100%;
}

.search-main {
    width: 100%;
}

.search-info {
    margin-bottom: 2rem;
    padding: 1.5rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.search-count {
    margin: 0;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-count i {
    color: var(--primary-color);
}

/* No Results Found Styling */
.no-results-found {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.no-results-found i {
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.no-results-found h2 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.no-results-found p {
    color: var(--light-text);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.search-suggestions {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.search-suggestions h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.search-suggestions ul {
    list-style: none;
    padding-left: 0;
}

.search-suggestions li {
    padding: 0.5rem 0;
    color: var(--light-text);
    position: relative;
    padding-left: 1.5rem;
}

.search-suggestions li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.popular-categories {
    margin-top: 3rem;
}

.popular-categories h3 {
    margin-bottom: 2rem;
    color: var(--text-color);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem 1rem;
    background: white;
    border: 2px solid var(--light-bg);
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: var(--primary-color);
    background: rgba(56, 108, 176, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.category-card i {
    font-size: 2rem;
    color: var(--primary-color);
}

.category-card small {
    color: var(--light-text);
    font-size: 0.85rem;
}

@media (max-width: 767px) {
    .search-form-hero .search-field {
        padding: 1rem 4rem 1rem 4rem;
        font-size: 1rem;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ajax-result-item {
        flex-direction: column;
    }

    .ajax-result-thumb {
        width: 100%;
        height: 150px;
    }
}