:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --accent-color: #e74c3c;
    --text-color: #333;
    --text-light: #777;
    --bg-color: #fff;
    --card-bg: #fff;
    --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --header-bg: #fff;
    --footer-bg: #2c3e50;
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --accent-color: #e74c3c;
    --text-color: #f5f5f5;
    --text-light: #ccc;
    --bg-color: #1a1a1a;
    --card-bg: #2c2c2c;
    --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    --header-bg: #222;
    --footer-bg: #111;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: var(--transition);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: var(--header-bg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
}

.logo span {
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

.search-bar {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.search-bar input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 200px;
    transition: var(--transition);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-bar button {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 8px 12px;
    margin-left: 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.search-bar button:hover {
    background: var(--secondary-color);
}
/* Add this to your blog.css file */

/* Search bar styling enhancements */
.search-bar {
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar input {
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid #ddd;
    width: 200px;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    width: 250px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    outline: none;
}

.search-bar button {
    background: transparent;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 10px;
    color: #666;
}

.search-bar button:hover {
    color: #000;
}

/* Highlight styling */
.highlight {
    background-color: #ffffa0;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 500;
}

/* No results message */
.no-results-message {
    width: 100%;
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-results-message i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #aaa;
}

.no-results-message h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.no-results-message p {
    font-size: 1rem;
}

/* Animate search results */
/* .blog-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
} */

.mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 15px;
    font-size: 20px;
    color: var(--text-color);
    transition: var(--transition);
}

.mode-toggle:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(rgba(52, 152, 219, 0.05), rgba(52, 152, 219, 0.1));
}

.hero h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Blog Section */
.blogs {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Poppins', sans-serif;
    position: relative;
}

.section-title h2 {
    font-size: 32px;
    color: var(--text-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-color);
}

.blog-excerpt {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.5;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-light);
}

.blog-date {
    display: flex;
    align-items: center;
}

.blog-date i {
    margin-right: 5px;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    transition: var(--transition);
}

.tag:hover {
    background-color: rgba(52, 152, 219, 0.2);
}

.read-more {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
}

.read-more:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-section h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-tagline {
    font-style: italic;
    color: #ddd;
    margin: 10px 0;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ddd;
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .search-bar {
        order: 3;
        width: 100%;
        margin: 15px 0 0;
    }

    .search-bar input {
        width: 100%;
    }

    .mobile-nav {
        display: none;
        width: 100%;
        margin-top: 15px;
        background-color: var(--bg-color);
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 999;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-nav.active {
        display: block;
    }
    

    .mobile-nav.active {
        display: block;
    }

    .mobile-nav ul {
        flex-direction: column;
    }

    .mobile-nav ul li {
        margin: 0;
        text-align: center;
        padding: 10px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .section-title h2 {
        font-size: 24px;
    }
}