/* Smart Campus - Enhanced Light Theme CSS with Updated Hero Background */
:root {
    /* Soft Color Palette - Easy on the eyes */
    --primary-color: #4285f4;
    --primary-light: #8ab4f8;
    --primary-dark: #1a73e8;
    --secondary-color: #34a853;
    --secondary-light: #81c995;
    --accent-color: #fbbc04;
    --accent-light: #fde293;
    --light-bg: #f8f9fa;
    --light-bg-alt: #ffffff;
    --card-bg: #ffffff;
    --text-dark: #202124;
    --text-light: #5f6368;
    --text-muted: #80868b;
    --border-color: #e8eaed;
    --border-light: #dadce0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 8px 10px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
html {
    font-size: 16px;
    position: relative;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography - Enhanced for readability */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2rem;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 1.75rem;
    letter-spacing: -0.5px;
}

h4 {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1.2rem;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

    a:hover {
        color: var(--primary-dark);
        text-decoration: none;
    }

/* Buttons - Modern and clean */
.btn {
    border-radius: var(--radius-sm);
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

    .btn:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.3);
    }

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

    .btn-primary:hover {
        background-color: var(--primary-dark);
        box-shadow: var(--shadow-md);
        transform: translateY(-1px);
    }

.btn-outline-primary {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

    .btn-outline-primary:hover {
        background-color: var(--primary-light);
        color: white;
        border-color: var(--primary-light);
    }

/* Forms - Clean and modern */
.form-control {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--light-bg-alt);
    color: var(--text-dark);
}

    .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2);
        outline: none;
        background-color: var(--light-bg-alt);
    }

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* Navigation - Clean and modern */
.navbar {
    background-color: var(--light-bg-alt);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 500;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

    .navbar-brand i {
        margin-right: 0.5rem;
        font-size: 1.8rem;
    }

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    margin: 0 0.5rem;
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    font-weight: 500;
    position: relative;
}

    .navbar-nav .nav-link:hover {
        color: var(--primary-color) !important;
        background-color: rgba(66, 133, 244, 0.08);
    }

    .navbar-nav .nav-link.active {
        color: var(--primary-color) !important;
        font-weight: 500;
    }

        .navbar-nav .nav-link.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background-color: var(--primary-color);
            border-radius: 3px 3px 0 0;
        }

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

    .navbar-toggler:focus {
        box-shadow: none;
    }

/* Hero Section - Using the gradient from features-hero */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 0;
    margin-bottom: 50px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    position: relative;
    overflow: hidden;
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsIDI1NSwgMjU1LCAwLjA1KSIvPjwvcGF0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI3BhdHRlcm4pIi8+PC9zdmc+');
        opacity: 0.1;
    }

    .hero-section h1 {
        font-weight: 700;
        margin-bottom: 20px;
        position: relative;
        z-index: 1;
        font-size: 2.8rem;
        letter-spacing: -0.5px;
    }

    .hero-section p {
        font-size: 1.1rem;
        margin-bottom: 25px;
        opacity: 0.95;
        position: relative;
        z-index: 1;
        max-width: 700px;
        line-height: 1.6;
        font-weight: 400;
    }

/* Blog Header - Using the same gradient */
.blog-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 0;
    margin-bottom: 50px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    position: relative;
    overflow: hidden;
}

    .blog-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsIDI1NSwgMjU1LCAwLjA1KSIvPjwvcGF0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI3BhdHRlcm4pIi8+PC9zdmc+');
        opacity: 0.1;
    }

    .blog-header h1 {
        font-weight: 700;
        margin-bottom: 20px;
        position: relative;
        z-index: 1;
        font-size: 2.5rem;
        letter-spacing: -0.5px;
    }

    .blog-header p {
        font-size: 1.1rem;
        opacity: 0.95;
        position: relative;
        z-index: 1;
        max-width: 700px;
        line-height: 1.6;
        font-weight: 400;
    }

/* Cards - Modern and clean */
.card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    overflow: hidden;
    background-color: var(--card-bg);
}

    .card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
        border-color: var(--border-light);
    }

.card-header {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
    padding: 1rem 1.25rem;
    border: none;
}

.card-body {
    padding: 1.5rem;
}

.card-header a {
    color: white !important;
}

    .card-header a:hover {
        color: rgba(255, 255, 255, 0.9) !important;
        text-decoration: underline !important;
    }

/* Feature Cards - Incorporating the provided styles */
.feature-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-color);
}

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    }

.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

    .feature-icon i {
        font-size: 2.5rem;
        color: var(--secondary-color);
    }

.feature-icon-small {
    width: 50px;
    height: 50px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .feature-icon-small i {
        font-size: 1.5rem;
        color: var(--secondary-color);
    }

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-card p {
    margin-bottom: 20px;
    color: #666;
}

.feature-card .btn {
    border-radius: 50px;
    padding: 8px 25px;
}

/* Section Titles - Clean and modern */
.section-title {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 60px;
        height: 3px;
        background: var(--primary-color);
        border-radius: 2px;
    }

/* Stats Cards - Modern and clean */
.stats-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

    .stats-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
        border-color: var(--primary-light);
    }

.stats-number {
    font-size: 2.8rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 400;
}

/* Testimonials - Modern and clean */
.testimonial {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
    border: 1px solid var(--border-color);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.testimonial-author {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 1.1rem;
}

/* Footer - Modern and clean */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

    .footer h5 {
        font-weight: 500;
        margin-bottom: 1.5rem;
        position: relative;
        padding-bottom: 0.75rem;
        font-size: 1.2rem;
    }

        .footer h5::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 3px;
            background-color: var(--primary-color);
            border-radius: 1.5px;
        }

.footer-links {
    list-style: none;
    padding: 0;
}

    .footer-links li {
        margin-bottom: 0.75rem;
    }

    .footer-links a {
        color: rgba(255, 255, 255, 0.85);
        text-decoration: none;
        transition: var(--transition);
        display: inline-block;
    }

        .footer-links a:hover {
            color: white;
            transform: translateX(5px);
        }

.social-icons a {
    color: white;
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: var(--transition);
    display: inline-block;
}

    .social-icons a:hover {
        color: var(--primary-light);
        transform: translateY(-3px);
    }

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Module Cards - Modern and clean */
.module-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

    .module-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 5px;
        height: 100%;
        background: var(--primary-color);
    }

.module-list {
    list-style: none;
    padding: 0;
}

    .module-list li {
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
    }

        .module-list li:last-child {
            border-bottom: none;
        }

    .module-list a {
        color: var(--text-dark);
        text-decoration: none;
        display: flex;
        align-items: center;
        transition: var(--transition);
    }

        .module-list a:hover {
            color: var(--primary-color);
            padding-left: 5px;
        }

    .module-list i {
        margin-right: 0.75rem;
        color: var(--primary-color);
        font-size: 1.2rem;
    }

/* CTA Section - Modern and clean */
.cta-section {
    background-color: var(--light-bg);
    padding: 4rem 0;
    text-align: center;
    border-radius: var(--radius-lg);
    margin: 3rem 0;
    border: 1px solid var(--border-color);
}

    .cta-section h2 {
        font-weight: 500;
        color: var(--text-dark);
        margin-bottom: 1.5rem;
        font-size: 2.2rem;
        letter-spacing: -0.5px;
    }

/* Budget Range - Modern and clean */
.budget-range {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

    .budget-range input[type="range"] {
        flex: 1;
        height: 6px;
        border-radius: 3px;
        background: var(--border-color);
        outline: none;
        -webkit-appearance: none;
    }

        .budget-range input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--primary-color);
            cursor: pointer;
        }

.budget-display {
    min-width: 120px;
    padding: 0.5rem 1rem;
    text-align: center;
    font-weight: 500;
    color: var(--primary-color);
    background-color: var(--light-bg-alt);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

/* Blog Posts Grid - Modern and clean */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-post-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

    .blog-post-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary-light);
    }

.blog-post-image-wrapper {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.blog-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.blog-post-card:hover .blog-post-image {
    transform: scale(1.05);
}

.blog-post-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-post-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    align-self: flex-start;
}

.blog-post-title {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    line-height: 1.3;
}

    .blog-post-title a {
        color: var(--text-dark);
        text-decoration: none;
        transition: color 0.3s;
    }

        .blog-post-title a:hover {
            color: var(--primary-color);
        }

.blog-post-meta {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

    .blog-post-meta i {
        margin-right: 0.4rem;
        font-size: 1rem;
    }

    .blog-post-meta span {
        margin-right: 1.2rem;
        display: flex;
        align-items: center;
    }

.blog-post-excerpt {
    color: var(--text-dark);
    margin-bottom: 1.2rem;
    flex-grow: 1;
    line-height: 1.6;
    font-size: 1rem;
}

.blog-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.blog-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-post-tag {
    background: var(--light-bg);
    color: var(--text-light);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    text-decoration: none;
    transition: var(--transition);
}

    .blog-post-tag:hover {
        background: var(--primary-color);
        color: white;
    }

.read-more-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

    .read-more-btn:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
    }

    .read-more-btn i {
        margin-left: 0.4rem;
        font-size: 0.9rem;
    }

/* Blog Sidebar - Modern and clean */
.blog-sidebar {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.75rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.sidebar-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

    .sidebar-title::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 60px;
        height: 2px;
        background: var(--accent-color);
    }

.sidebar-widget {
    margin-bottom: 2.5rem;
}

    .sidebar-widget:last-child {
        margin-bottom: 0;
    }

/* Search Widget - Modern and clean */
.sidebar-search .form-control {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    border-right: none;
}

.sidebar-search .btn {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 1rem;
}

/* Categories Widget - Modern and clean */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .category-list li {
        padding: 0.85rem 0;
        border-bottom: 1px solid var(--border-color);
    }

        .category-list li:last-child {
            border-bottom: none;
        }

    .category-list a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: var(--text-dark);
        text-decoration: none;
        transition: var(--transition);
        font-weight: 400;
    }

        .category-list a:hover {
            color: var(--primary-color);
            padding-left: 5px;
        }

.category-count {
    background: var(--light-bg);
    color: var(--text-light);
    padding: 0.25rem 0.65rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Tags Widget - Modern and clean */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

    .tag-cloud a {
        background: var(--light-bg);
        color: var(--text-dark);
        padding: 0.4rem 0.9rem;
        border-radius: 20px;
        font-size: 0.85rem;
        text-decoration: none;
        transition: var(--transition);
        font-weight: 400;
    }

        .tag-cloud a:hover {
            background: var(--primary-color);
            color: white;
            transform: translateY(-2px);
            box-shadow: var(--shadow-sm);
        }

/* Popular Posts Widget - Modern and clean */
.popular-post {
    display: flex;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

    .popular-post:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

.popular-post-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-right: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.popular-post:hover .popular-post-image {
    transform: scale(1.05);
}

.popular-post-content h4 {
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

    .popular-post-content h4 a {
        color: var(--text-dark);
        text-decoration: none;
        transition: color 0.3s;
    }

        .popular-post-content h4 a:hover {
            color: var(--primary-color);
        }

.popular-post-meta {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Blog Pagination - Modern and clean */
.blog-pagination {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

    .blog-pagination .page-link {
        color: var(--text-dark);
        background: var(--light-bg-alt);
        border: 1px solid var(--border-color);
        padding: 0.75rem 1rem;
        margin: 0 0.25rem;
        border-radius: var(--radius-sm);
        transition: var(--transition);
        font-weight: 400;
    }

        .blog-pagination .page-link:hover {
            background: var(--light-bg);
            color: var(--primary-color);
            border-color: var(--primary-color);
        }

    .blog-pagination .page-item.active .page-link {
        background: var(--primary-color);
        border-color: var(--primary-color);
        color: white;
    }

/* Blog Single Post - Modern and clean */
.blog-single {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 2.5rem;
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
}

.blog-single-header {
    margin-bottom: 2rem;
}

.blog-single-title {
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.blog-single-meta {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

    .blog-single-meta i {
        margin-right: 0.4rem;
    }

    .blog-single-meta span {
        margin-right: 1.5rem;
        display: flex;
        align-items: center;
    }

.blog-single-image {
    width: 100%;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.blog-single-content {
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

    .blog-single-content h2 {
        font-size: 1.8rem;
        font-weight: 500;
        color: var(--text-dark);
        margin: 2.5rem 0 1.2rem;
        position: relative;
        padding-bottom: 0.75rem;
    }

        .blog-single-content h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 3px;
            background: var(--primary-color);
            border-radius: 1.5px;
        }

    .blog-single-content h3 {
        font-size: 1.5rem;
        font-weight: 500;
        color: var(--text-dark);
        margin: 2rem 0 1rem;
    }

    .blog-single-content p {
        margin-bottom: 1.5rem;
    }

    .blog-single-content blockquote {
        border-left: 4px solid var(--primary-color);
        padding: 1.5rem 2rem;
        margin: 2.5rem 0;
        font-style: italic;
        color: var(--text-light);
        background: var(--light-bg);
        border-radius: 0 var(--radius-md) var(--radius-md) 0;
        font-size: 1.1rem;
    }

.blog-single-tags {
    margin-bottom: 2rem;
}

    .blog-single-tags h4 {
        font-size: 1.2rem;
        font-weight: 500;
        margin-bottom: 1rem;
        color: var(--text-dark);
    }

/* Blog Comments - Modern and clean */
.blog-comments {
    margin-top: 3rem;
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
}

    .comments-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 60px;
        height: 3px;
        background: var(--primary-color);
        border-radius: 1.5px;
    }

.comment {
    background: var(--light-bg);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    border-left: 3px solid var(--primary-color);
    border: 1px solid var(--border-color);
}

    .comment:hover {
        box-shadow: var(--shadow-md);
    }

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
}

.comment-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1.2rem;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.comment-author {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.comment-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.comment-content {
    line-height: 1.6;
    color: var(--text-dark);
    font-size: 1rem;
}

.comment-form {
    background: var(--light-bg);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-top: 2.5rem;
    border: 1px solid var(--border-color);
}

    .comment-form h4 {
        font-size: 1.3rem;
        font-weight: 500;
        color: var(--text-dark);
        margin-bottom: 1.5rem;
    }

/* Related Posts - Modern and clean */
.related-posts {
    margin-top: 3.5rem;
}

.related-posts-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
}

    .related-posts-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 60px;
        height: 3px;
        background: var(--primary-color);
        border-radius: 1.5px;
    }

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Category/Tag Page - Modern and clean */
.category-header, .tag-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 0;
    margin-bottom: 50px;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

    .category-header h1, .tag-header h1 {
        font-weight: 700;
        margin-bottom: 20px;
        position: relative;
        z-index: 1;
    }

.category-description, .tag-description {
    opacity: 0.9;
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Search Page - Modern and clean */
.search-results-header {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.search-results-count {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 400;
}

/* Newsletter Form in Footer - Modern and clean */
.footer .input-group {
    margin-top: 1rem;
}

    .footer .input-group .form-control {
        border-radius: var(--radius-md) 0 0 var(--radius-md);
        border: none;
    }

    .footer .input-group .btn {
        border-radius: 0 var(--radius-md) var(--radius-md) 0;
        background: var(--primary-color);
        border-color: var(--primary-color);
        padding: 0.75rem 1.25rem;
    }

/* Preloader - Modern and clean */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

/* Back to Top Button - Modern and clean */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    background: var(--primary-color);
    color: white;
    border: none;
}

    .back-to-top.show {
        opacity: 1;
        visibility: visible;
    }

    .back-to-top:hover {
        transform: translateY(-3px);
        background: var(--primary-dark);
    }

/* Utility Classes - Modern and clean */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-light-custom {
    background-color: var(--light-bg) !important;
}

.border-custom {
    border-color: var(--border-color) !important;
}

/* Responsive Adjustments - Modern and clean */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .blog-sidebar {
        margin-top: 2rem;
    }

    .hero-section h1, .blog-header h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hero-section, .blog-header {
        padding: 60px 0;
    }

        .hero-section h1, .blog-header h1 {
            font-size: 1.8rem;
        }

        .hero-section p, .blog-header p {
            font-size: 1.1rem;
        }

    .blog-single-title {
        font-size: 1.8rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .blog-post-meta span {
        display: block;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .blog-post-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .read-more-btn {
        margin-top: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .stats-number {
        font-size: 2.2rem;
    }

    .blog-single {
        padding: 1.75rem;
    }

    .blog-single-content {
        font-size: 1rem;
    }

        .blog-single-content h2 {
            font-size: 1.5rem;
        }

        .blog-single-content h3 {
            font-size: 1.3rem;
        }
}

@media (max-width: 576px) {
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
    }

    .blog-post-image-wrapper {
        height: 180px;
    }

    .blog-post-content {
        padding: 1.25rem;
    }

    .blog-single-image {
        margin-bottom: 1.5rem;
    }

    .comment {
        padding: 1.25rem;
    }

    .comment-avatar {
        width: 50px;
        height: 50px;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

        .footer h5 {
            margin-bottom: 1rem;
            font-size: 1.1rem;
        }

    .footer-links li {
        margin-bottom: 0.5rem;
    }

    .social-icons a {
        font-size: 1.3rem;
        margin-right: 0.8rem;
    }
}

/* Footer - Enhanced for better visibility and reduced size */
.footer {
    background-color: var(--text-dark);
    color: rgba(255, 255, 255, 0.9);
    padding: 2rem 0 1rem;
    margin-top: 3rem;
    font-size: 0.9rem;
}

    .footer h5 {
        font-weight: 600;
        margin-bottom: 1rem;
        position: relative;
        padding-bottom: 0.5rem;
        font-size: 1.1rem;
        color: white;
    }

        .footer h5::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 40px;
            height: 2px;
            background-color: var(--primary-color);
            border-radius: 1px;
        }

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 0.6rem;
    }

    .footer-links a {
        color: rgba(255, 255, 255, 0.85);
        text-decoration: none;
        transition: var(--transition);
        display: inline-block;
        font-size: 0.9rem;
    }

        .footer-links a:hover {
            color: white;
            transform: translateX(3px);
        }

.social-icons a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2rem;
    margin-right: 1rem;
    transition: var(--transition);
    display: inline-block;
}

    .social-icons a:hover {
        color: var(--primary-light);
        transform: translateY(-2px);
    }

.footer p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

    .copyright a {
        color: rgba(255, 255, 255, 0.8);
    }

        .copyright a:hover {
            color: white;
        }

/* Newsletter Form in Footer */
.footer .input-group {
    margin-top: 0.8rem;
}

    .footer .input-group .form-control {
        border-radius: var(--radius-sm) 0 0 var(--radius-sm);
        border: none;
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

        .footer .input-group .form-control::placeholder {
            color: rgba(255, 255, 255, 0.6);
        }

    .footer .input-group .btn {
        border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
        background: var(--primary-color);
        border-color: var(--primary-color);
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

.footer h6 {
    font-weight: 500;
    font-size: 0.95rem;
    color: white;
    margin-bottom: 0.5rem;
}

/* Icons in footer */
.footer i {
    margin-right: 0.5rem;
    color: var(--primary-light);
}

/* Add this to your CSS file */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

    .navbar-toggler:focus {
        box-shadow: none;
    }

/* Fix for hamburger icon visibility */
.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Ensure the toggle button is visible on mobile */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--light-bg-alt);
        padding: 1rem;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
        margin-top: 0.5rem;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 0 !important;
    }

        .navbar-nav .nav-link.active::after {
            display: none;
        }
}