/* Premium Modern Design - Health Tips Blog */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;700;900&display=swap');

/* CSS Variables for Modern Design */
:root {
    --primary-color: #00a86b;
    --primary-dark: #008f5b;
    --primary-light: #00d084;
    --secondary-color: #6366f1;
    --accent-color: #f59e0b;
    --dark-color: #0f172a;
    --gray-dark: #334155;
    --gray-medium: #64748b;
    --gray-light: #e2e8f0;
    --white: #ffffff;
    --background: #f8fafc;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 16px;
    --transition: all 0.15s ease;
}
.form-text {
    color: #fff !important;
}
/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background);
    color: var(--dark-color);
    line-height: 1.8;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-color);
}

/* Modern Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-color) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.navbar-brand .brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    color: var(--gray-dark) !important;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0 1rem;
    position: relative;
    transition: var(--transition);
}

/* Clean Dropdown Styles */
.health-tools-dropdown {
    min-width: 500px !important;
    padding: 0.75rem !important;
    border: none !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    border-radius: 10px !important;
    margin-top: 8px !important;
    background: white !important;
    max-height: 450px;
    overflow: visible;
}

.dropdown-header-section {
    margin-bottom: 0.5rem;
}

.dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.dropdown-column {
    display: flex;
    flex-direction: column;
}

.health-tools-dropdown .dropdown-item {
    padding: 0.6rem 1.2rem !important;
    border: none !important;
    transition: all 0.25s ease !important;
    font-size: 0.9rem;
    color: var(--gray-dark) !important;
    display: flex;
    align-items: center;
}

.health-tools-dropdown .dropdown-item:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
    padding-left: 1.4rem !important;
}

.health-tools-dropdown .dropdown-item i {
    width: 18px;
    color: var(--primary-color);
    transition: color 0.25s ease;
}

.health-tools-dropdown .dropdown-item:hover i {
    color: white;
}

.health-tools-dropdown .view-all {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
    color: white !important;
    font-weight: 600;
    margin: 0 0 0.5rem 0 !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
}

.health-tools-dropdown .view-all:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color)) !important;
    color: white !important;
    padding-left: 1rem !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 168, 107, 0.3);
}

.health-tools-dropdown .view-all i {
    color: white !important;
}

.health-tools-dropdown .dropdown-divider {
    margin: 0.5rem 0 !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Mobile Caret Styling */
.mobile-caret {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown.show .mobile-caret i {
    transform: rotate(180deg);
}

/* Mobile Responsive Dropdown */
@media (max-width: 992px) {
    .mobile-caret {
        display: inline !important;
    }
    
    .health-tools-dropdown {
        position: static !important;
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: auto !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    }
    
    .dropdown-grid {
        grid-template-columns: 1fr !important;
        gap: 0;
    }
    
    .dropdown-column {
        width: 100%;
    }
    
    .health-tools-dropdown .dropdown-item {
        padding: 1rem 1.5rem !important;
        font-size: 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .health-tools-dropdown .view-all {
        padding: 1rem 1.5rem !important;
        text-align: left;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    .dropdown-header-section {
        margin-bottom: 0;
        border-bottom: 2px solid rgba(0, 0, 0, 0.1);
        padding-bottom: 0.5rem;
    }
    
    .health-tools-dropdown .dropdown-divider {
        margin: 0 !important;
    }
}

@media (max-width: 768px) {
    .health-tools-dropdown .dropdown-item {
        padding: 0.8rem 1.2rem !important;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .health-tools-dropdown {
        position: absolute !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: 70vh;
        overflow-y: auto;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    .health-tools-dropdown .dropdown-item {
        padding: 0.7rem 1rem !important;
        font-size: 0.9rem;
    }
    
    .health-tools-dropdown .dropdown-item i {
        width: 16px;
        font-size: 0.9rem;
    }
}

/* Ensure dropdown never goes off screen on desktop */
@media (min-width: 993px) {
    .health-tools-dropdown {
        right: auto !important;
        left: auto !important;
    }
    
    .navbar-nav .dropdown:last-child .dropdown-menu,
    .navbar-nav .dropdown:nth-last-child(2) .dropdown-menu {
        right: 0 !important;
        left: auto !important;
    }
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}
/* Article Filter Container */
.article-filters-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Article Filter Styles */
.article-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.article-filters button {
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 168, 107, 0.15);
}

.article-filters button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

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

.article-filters button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 168, 107, 0.4);
}

.article-filters button.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(0, 168, 107, 0.4);
    transform: translateY(-2px);
}

.article-filters button .badge {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 5px;
}

.article-filters button:hover .badge,
.article-filters button.active .badge {
    background: rgba(255, 255, 255, 0.3) !important;
    color: white;
}

.article-filters button i {
    font-size: 0.875rem;
    margin-right: 2px;
}

/* Article Item Animation */
.article-item {
    transition: all 0.3s ease;
}

.article-item.hidden {
    opacity: 0;
    transform: scale(0.95);
}

/* Loading Animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.article-filters button:disabled {
    animation: pulse 1.5s infinite;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 992px) {
    .article-filters-container {
        padding: 15px;
        border-radius: 15px;
    }
    
    .article-filters {
        gap: 8px;
    }
    
    .article-filters button {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
}

@media (max-width: 768px) {
    .article-filters-container {
        padding: 12px;
        border-radius: 12px;
    }
    
    .article-filters {
        gap: 6px;
    }
    
    .article-filters button {
        font-size: 0.75rem;
        padding: 6px 12px;
        border-radius: 20px;
    }
    
    .article-filters button .badge {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
}

@media (max-width: 576px) {
    .article-filters {
        justify-content: center;
        gap: 4px;
    }
    
    .article-filters button {
        font-size: 0.7rem;
        padding: 5px 10px;
        flex: 0 0 auto;
        min-width: auto;
    }
    
    .article-filters button i {
        display: none; /* Hide icons on very small screens */
    }
}
/* Modern Search Section */
.search-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.search-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

/* Search Header */
.search-header {
    text-align: center;
    margin-bottom: 30px;
}

.search-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.search-title i {
    color: var(--primary-color);
}

.search-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin: 0;
}

/* Main Search Box */
.search-form {
    max-width: 100%;
    margin: 0 auto;
}

.search-main {
    position: relative;
    margin-bottom: 25px;
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid rgba(0, 168, 107, 0.1);
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-height: 60px;
}

.search-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 6px 25px rgba(0, 168, 107, 0.2);
    transform: translateY(-1px);
}

.search-icon-wrapper {
    display: flex;
    align-items: center;
    padding-left: 20px;
}

.search-icon {
    color: var(--primary-color);
    font-size: 18px;
    margin-right: 10px;
}

#searchInput {
    flex: 1;
    padding: 18px 15px;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
    color: var(--dark-color);
}

#searchInput::placeholder {
    color: var(--gray-medium);
    font-weight: 300;
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 18px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    font-weight: 600;
    border-radius: 20px;
    margin-right: 5px;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 168, 107, 0.3);
}

/* Search Controls */
.search-controls {
    margin-bottom: 25px;
    text-align: center;
}

.quick-filters {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    justify-content: center;
}

.filter-label {
    color: white;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    white-space: nowrap;
}

.search-controls select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--dark-color);
    outline: none;
    cursor: pointer;
    min-width: 160px;
}

.search-controls select:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 168, 107, 0.1);
}

.filter-label i {
    margin-right: 5px;
    color: var(--primary-color);
}

/* Live Results */
.live-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--primary-color);
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    margin-top: -2px;
}

.live-results.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f1f3f4;
    cursor: pointer;
    transition: all 0.2s ease;
}

.result-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.result-item:last-child {
    border-bottom: none;
}

.result-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 6px;
    font-size: 15px;
    line-height: 1.3;
}

.result-title mark {
    background: #fff3cd;
    padding: 1px 3px;
    border-radius: 3px;
    color: #856404;
    font-weight: 700;
}

.result-excerpt {
    font-size: 14px;
    color: var(--gray-medium);
    line-height: 1.6;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

.result-excerpt mark {
    background: #d1ecf1;
    padding: 1px 3px;
    border-radius: 2px;
    color: #0c5460;
}

/* Quick Filters */
.quick-filters select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark-color);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.quick-filters select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 6px 20px rgba(0, 168, 107, 0.2);
}

/* Quick Search Tags */
.quick-searches {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    justify-content: center;
}

.quick-label {
    font-size: 15px;
    color: white;
    font-weight: 600;
    margin-right: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-label i {
    color: var(--primary-color);
}

.quick-tag {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 13px;
    cursor: pointer;
    color: var(--dark-color);
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(5px);
}

.quick-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 168, 107, 0.4);
}

.quick-tag i {
    font-size: 12px;
}

/* Search Results Info */
.search-info {
    padding: 12px 0;
    color: var(--gray-medium);
    font-size: 14px;
    border-bottom: 1px solid var(--gray-light);
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .search-section {
        padding: 15px 0;
    }
    
    .search-wrapper {
        padding: 0 15px;
    }
    
    .quick-searches {
        justify-content: center;
        margin-top: 10px;
    }
    
    .quick-label {
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
    }
}

/* Search Results Section */
.search-results-section {
    background: var(--background);
    padding: 40px 0;
    border-top: 4px solid var(--primary-color);
}

.search-results-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 1px solid var(--gray-light);
}

.results-title {
    color: var(--dark-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.results-title i {
    color: var(--primary-color);
}

.search-term {
    color: var(--primary-color);
    font-style: italic;
}

.results-info {
    color: var(--gray-medium);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.search-actions-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.clear-search-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.clear-search-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    color: white;
    text-decoration: none;
}

.active-filter {
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Search Results Grid */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Single search result - prevent full width stretch */
.search-results-grid:has(.search-result-item:only-child) {
    grid-template-columns: minmax(350px, 400px);
    justify-content: center;
}

.search-result-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-light);
}

.search-result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.result-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.search-result-item:hover .result-image img {
    transform: scale(1.05);
}

.result-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.result-content {
    padding: 20px;
}

.result-title {
    margin-bottom: 12px;
}

.result-title a {
    color: var(--dark-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.result-title a:hover {
    color: var(--primary-color);
}

.result-excerpt {
    color: var(--gray-medium);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

.result-excerpt mark {
    background: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
    color: #856404;
    font-weight: 600;
}

.result-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--gray-light);
}

.result-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.result-stats span {
    color: var(--gray-medium);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.read-more-btn {
    background: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.read-more-btn:hover {
    background: var(--primary-dark);
    transform: translateX(5px);
    color: white;
    text-decoration: none;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.no-results-icon {
    font-size: 4rem;
    color: var(--gray-light);
    margin-bottom: 20px;
}

.no-results h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
}

.no-results p {
    color: var(--gray-medium);
    margin-bottom: 30px;
}

.search-suggestions-list h4 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

.suggestion-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.suggestion-tag {
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.suggestion-tag:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* Search Pagination */
.search-pagination {
    margin-top: 40px;
}

.search-pagination .pagination {
    margin-bottom: 0;
}

.search-pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: 1px solid var(--gray-light);
    color: var(--dark-color);
}

.search-pagination .page-link:hover,
.search-pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-results-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .results-title {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .search-actions-bar {
        flex-direction: column;
        gap: 10px;
    }
    
    .result-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .result-stats {
        gap: 10px;
    }
}

/* Premium Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    padding: 120px 0;
    margin-top: -100px;
    padding-top: 160px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero-content p {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.btn-premium {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-premium-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-premium-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.btn-premium-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.btn-premium-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    transform: translateY(-3px);
}

/* Modern Cards */
.modern-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    /* min-height: 545px; */
    display: flex;
    flex-direction: column;
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow);
}

.modern-card-image {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.modern-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.modern-card:hover .modern-card-image img {
    transform: scale(1.1);
}

.modern-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.modern-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modern-card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.modern-card-text {
    color: var(--gray-medium);
    margin-bottom: 1.5rem;
    flex: 1;
}

.modern-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-light);
}

.modern-card-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.modern-card-stats {
    display: flex;
    gap: 1rem;
    color: var(--gray-medium);
    font-size: 0.875rem;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Premium Search Bar */
.search-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 3rem 0;
    margin: -3rem 0 3rem;
    position: relative;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
}

/* Remove old search form - using new structure */

/* Newsletter Section */
.newsletter-modern {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--border-radius);
    padding: 4rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

/* Modern Sidebar Widgets */
.sidebar-widget {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.sidebar-widget:hover {
    box-shadow: var(--card-hover-shadow);
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-title i {
    color: var(--primary-color);
}

/* BMI Calculator Widget */
.bmi-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.bmi-widget .widget-title {
    color: white;
}

.bmi-widget .btn {
    background: white;
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.bmi-widget .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Health Tips Widget */
.health-tip-item {
    background: var(--background);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.health-tip-item:hover {
    transform: translateX(5px);
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.health-tip-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

/* Modern Footer */
.footer-modern {
    background: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: white;
    transform: translateX(5px);
    display: inline-block;
}

.social-icons-modern {
    display: flex;
    gap: 1rem;
}

.social-icons-modern a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    transition: var(--transition);
}

.social-icons-modern a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* Footer Bottom Navigation */
.footer-bottom-nav-wrapper {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-bottom-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-bottom-nav-item {
    position: relative;
}

.footer-bottom-nav-item:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: -1rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
}

.footer-bottom-nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
    display: inline-block;
    position: relative;
}

.footer-bottom-nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-bottom-nav-link:hover {
    color: white;
    transform: translateY(-2px);
}

.footer-bottom-nav-link:hover::before {
    width: 100%;
}

/* Responsive adjustments for footer bottom nav */
@media (max-width: 768px) {
    .footer-bottom-nav {
        gap: 1rem;
    }
    
    .footer-bottom-nav-item:not(:last-child)::after {
        display: none;
    }
    
    .footer-bottom-nav-link {
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-section {
        padding: 80px 0;
        padding-top: 120px;
    }
    
    .modern-card-title {
        font-size: 1.25rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .newsletter-modern {
        padding: 2rem;
    }
}

/* Loading Animation */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Category Page Styles */
.category-hero {
     background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    padding: 120px 0;
    margin-top: -100px;
    padding-top: 160px;
    margin-bottom: 3rem;
    color: white;
    overflow: hidden;
}

.category-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
}

.category-hero-content {
    position: relative;
    z-index: 1;
}

.category-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.category-title i {
    margin-right: 1rem;
    color: var(--accent-color);
}

.category-description {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
}

.category-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

/* Breadcrumb Styling */
.breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: white;
}

.breadcrumb-item.active {
    color: var(--accent-color);
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "→";
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0.5rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--gray-medium);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    margin-bottom: 1rem;
    color: var(--gray-dark);
}

.empty-state p {
    color: var(--gray-medium);
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.newsletter-widget .widget-title {
    color: white;
}

.newsletter-form-sidebar .form-control {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 0.5rem 0 0 0.5rem;
}

.newsletter-form-sidebar .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form-sidebar .form-control:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.25);
    color: white;
}

.newsletter-form-sidebar .btn {
    border-radius: 0 0.5rem 0.5rem 0;
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.newsletter-form-sidebar .btn:hover {
    background: #f59e0b;
    transform: translateY(-1px);
}

/* Responsive Category Page */
@media (max-width: 768px) {
    .category-hero {
        padding: 2rem 0;
        margin-bottom: 2rem;
    }
    
    .category-title {
        font-size: 2rem;
    }
    
    .category-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .category-stats {
        justify-content: center;
    }
    
    .stat-item {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    .breadcrumb {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    .empty-state {
        padding: 2rem 1rem;
    }
    
    .empty-state-icon {
        font-size: 3rem;
    }
}
@media (max-width: 576px) {
    .search-form button{
        padding: 5px 10px;
        font-size: 14px;
        position: absolute;
        right: 20px;
    }
    .search-form input{
    padding: 5px;
    font-size: 14px;

    }
}