.life-tips-container {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.tips-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.sidebar-card h3 {
    font-size: 1.25rem;
    color: #1e3c72;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    display: block;
    padding: 12px 16px;
    color: #555;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-item:hover {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    transform: translateX(5px);
}

.hot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.tag:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    padding: 10px 0;
    color: #666;
    font-size: 0.9rem;
    border-bottom: 1px dashed #e0e0e0;
    display: flex;
    align-items: center;
}

.tips-list li:last-child {
    border-bottom: none;
}

.tips-list li:before {
    content: "✓";
    color: #4CAF50;
    font-weight: bold;
    margin-right: 10px;
}

.tips-main {
    flex: 1;
    min-width: 0;
}

.tips-hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(30, 60, 114, 0.3);
}

.tips-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.tips-hero p {
    font-size: 1.1rem;
    opacity: 0.95;
}

.tips-categories {
    margin-bottom: 50px;
}

.tips-categories h2 {
    font-size: 2rem;
    color: #1e3c72;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.category-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
    border-color: #1e3c72;
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    text-align: center;
}

.category-card h3 {
    font-size: 1.4rem;
    color: #1e3c72;
    margin-bottom: 12px;
    font-weight: 600;
    text-align: center;
}

.category-card > p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

.category-details {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    flex: 1;
}

.category-details h4 {
    font-size: 1.1rem;
    color: #1e3c72;
    margin-bottom: 12px;
    font-weight: 600;
}

.category-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-details li {
    color: #555;
    line-height: 1.8;
    margin-bottom: 8px;
    font-size: 0.95rem;
    padding-left: 20px;
    position: relative;
}

.category-details li:before {
    content: "•";
    color: #1e3c72;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1.8;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 12px 32px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: auto;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.4);
}

.btn-secondary {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 24px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.tips-featured {
    margin-bottom: 50px;
}

.tips-featured h2 {
    font-size: 2rem;
    color: #1e3c72;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.featured-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    text-align: center;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.featured-card h3 {
    font-size: 1.3rem;
    color: #1e3c72;
    margin-bottom: 12px;
    font-weight: 600;
}

.featured-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tips-about {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.tips-about h2 {
    font-size: 1.8rem;
    color: #1e3c72;
    margin-bottom: 20px;
    font-weight: 700;
}

.tips-about p {
    color: #555;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.tips-section {
    margin-bottom: 50px;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 2rem;
    color: #1e3c72;
    margin-bottom: 8px;
    font-weight: 700;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.tip-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
    border-color: #1e3c72;
}

.tip-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.tip-card h3 {
    font-size: 1.4rem;
    color: #1e3c72;
    margin-bottom: 16px;
    font-weight: 600;
}

.tip-content h4 {
    font-size: 1.05rem;
    color: #333;
    margin: 18px 0 10px 0;
    font-weight: 600;
}

.tip-content ul,
.tip-content ol {
    padding-left: 20px;
    margin: 0;
}

.tip-content li {
    color: #555;
    line-height: 1.8;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.tip-content strong {
    color: #1e3c72;
    font-weight: 600;
}

.tip-warning {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 0.9rem;
    font-weight: 500;
}

.recipe-card {
    border-top: 4px solid #4CAF50;
}

.recipe-info {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.recipe-tag {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tips-footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin-top: 40px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.tips-footer h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.tips-footer p {
    font-size: 1.1rem;
    margin-bottom: 24px;
    opacity: 0.95;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .life-tips-container {
        flex-direction: column;
    }

    .tips-sidebar {
        width: 100%;
    }

    .tips-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .life-tips-container {
        padding: 15px;
    }

    .tips-hero {
        padding: 30px 20px;
    }

    .tips-hero h1 {
        font-size: 1.8rem;
    }

    .tips-hero p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .tip-card {
        padding: 20px;
    }

    .tips-footer {
        padding: 30px 20px;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
    }

    .footer-links a {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .sidebar-card {
        padding: 16px;
    }

    .tip-icon {
        font-size: 2.5rem;
    }

    .tip-card h3 {
        font-size: 1.2rem;
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.3);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(30, 60, 114, 0.4);
}

.highlight {
    background: linear-gradient(135deg, #ffeb3b 0%, #ffc107 100%);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.search-match {
    border: 2px solid #4CAF50;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
}

.notification {
    position: fixed;
    top: 100px;
    right: 30px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.nav-item.active {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
}

.tip-card.expanded {
    transform: scale(1.02);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.tip-card.filtered {
    display: block;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .notification {
        right: 20px;
        left: 20px;
        top: 80px;
    }
}
