html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Modern Header Styles */
.modern-header {
    background: linear-gradient(140deg, #0a2540 0%, #0f345a 60%, #12406f 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(12, 40, 70, 0.6);
    box-shadow: 0 8px 24px rgba(10, 37, 64, 0.4);
    transition: all 0.3s ease;
}

.header-spacer {
    height: 76px; /* Height of fixed navbar */
}

/* Brand styling */
.navbar-brand {
    font-weight: 700;
    color: white !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: rgba(255, 255, 255, 0.9) !important;
    transform: translateY(-1px);
}

.brand-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.4) 0%, rgba(0, 123, 255, 0.3) 100%);
    border: 2px solid rgba(126, 179, 217, 0.5);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(58, 134, 255, 0.2);
    transition: all 0.3s ease;
}

.navbar-brand:hover .brand-icon {
    box-shadow: 0 6px 20px rgba(58, 134, 255, 0.35);
    border-color: rgba(126, 179, 217, 0.8);
    transform: scale(1.05);
}

.brand-text {
    display: none;
}

.brand-title {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    color: white;
    letter-spacing: -0.5px;
}

.brand-tagline {
    display: none;
}

/* Navigation links */
.nav-link-modern {
    color: rgba(226, 238, 255, 0.92) !important;
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 0.25rem;
}

.nav-link-modern:hover {
    color: #ffffff !important;
    background: rgba(58, 134, 255, 0.18);
    transform: translateY(-1px);
}

.nav-link-modern:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: rgba(58, 134, 255, 0.6);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link-modern:hover:before {
    width: 80%;
}

/* Mobile toggle */
.navbar-toggler {
    color: rgba(226, 238, 255, 0.9);
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.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%28226, 238, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Admin controls */
.admin-controls .btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-color: rgba(226, 238, 255, 0.45) !important;
    color: rgba(226, 238, 255, 0.9) !important;
}

.admin-controls .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(10, 37, 64, 0.45);
    border-color: rgba(58, 134, 255, 0.75) !important;
}

/* Language switcher custom styling */
.dropdown-toggle {
    background: rgba(15, 52, 90, 0.65) !important;
    border: 1px solid rgba(58, 134, 255, 0.35) !important;
    color: rgba(226, 238, 255, 0.95) !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.dropdown-toggle:hover {
    background: rgba(58, 134, 255, 0.22) !important;
    transform: translateY(-1px);
}

/* Featured Posts Slider */
.featured-slider-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.featured-slider-container {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 500px;
}

.featured-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(140deg, rgba(10, 37, 64, 0.94) 0%, rgba(15, 52, 90, 0.9) 55%, rgba(18, 64, 111, 0.88) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.min-vh-60 {
    min-height: 60vh;
}

.slide-text {
    color: white;
    max-width: 800px;
}

.slide-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.slide-category {
    background: rgba(58, 134, 255, 0.24);
    color: rgba(226, 238, 255, 0.95);
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    box-shadow: 0 6px 18px rgba(10, 37, 64, 0.35);
}

.slide-category:hover {
    background: rgba(58, 134, 255, 0.36);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(10, 37, 64, 0.45);
}

.slide-date {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.slide-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.slide-title a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.slide-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
}

.slide-actions {
    margin-top: 2rem;
}

.slide-actions .btn {
    background: rgba(58, 134, 255, 0.18);
    border: 2px solid rgba(226, 238, 255, 0.4);
    color: rgba(226, 238, 255, 0.98);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    box-shadow: 0 12px 28px rgba(10, 37, 64, 0.35);
}

.slide-actions .btn:hover {
    background: rgba(58, 134, 255, 0.32);
    color: #ffffff;
    border-color: rgba(226, 238, 255, 0.65);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(10, 37, 64, 0.45);
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.slider-btn {
    width: 50px;
    height: 50px;
    background: rgba(226, 238, 255, 0.18);
    border: 1px solid rgba(58, 134, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(226, 238, 255, 0.95);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    pointer-events: auto;
    box-shadow: 0 10px 24px rgba(10, 37, 64, 0.35);
}

.slider-btn:hover {
    background: rgba(58, 134, 255, 0.28);
    border-color: rgba(58, 134, 255, 0.6);
    transform: scale(1.08);
    color: #ffffff;
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 0.75rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(226, 238, 255, 0.45);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(10, 37, 64, 0.3);
}

.indicator.active {
    background: #3a86ff;
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(58, 134, 255, 0.7);
}

/* Section Styles */
.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title i {
    color: #667eea;
}

.section-description {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* Recent Posts Section */
.recent-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.recent-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.recent-post-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.recent-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.recent-post-card .post-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

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

.recent-post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #6c757d;
}

.post-image-placeholder.small {
    font-size: 2rem;
}

.recent-post-card .post-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.category-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.category-tag:hover {
    transform: translateY(-2px);
    color: white;
}

.post-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.post-title {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #667eea;
}

.recent-post-card .post-footer {
    margin-top: auto;
}

.read-more-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.read-more-link:hover {
    color: #5a6fd8;
    transform: translateX(5px);
}

/* Newsletter Section */
.newsletter-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
}

.newsletter-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
}

.newsletter-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.newsletter-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form .input-group {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.newsletter-form .form-control {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    background: white;
    border-radius: 0;
}

.newsletter-form .form-control:focus {
    box-shadow: none;
    border-color: transparent;
}

.newsletter-form .btn {
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.newsletter-form .btn:hover {
    transform: scale(1.02);
}

/* Empty State */
.empty-state-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    font-size: 5rem;
    color: #dee2e6;
    margin-bottom: 2rem;
}

.empty-state-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.empty-state-description {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design for Slider */
@media (max-width: 991px) {
    .featured-slider-container {
        height: 50vh;
        min-height: 400px;
    }

    .slide-title {
        font-size: 2.5rem;
    }

    .slide-description {
        font-size: 1rem;
    }

    .slider-controls {
        padding: 0 1rem;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .slide-actions .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 767px) {
    .featured-slider-container {
        height: 60vh;
        min-height: 500px;
    }

    .slide-title {
        font-size: 2rem;
    }

    .slide-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .slide-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .recent-posts-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-card {
        padding: 2rem;
    }

    .newsletter-title {
        font-size: 2rem;
    }

    .newsletter-form .input-group {
        flex-direction: column;
        border-radius: 12px;
    }

    .newsletter-form .form-control,
    .newsletter-form .btn {
        border-radius: 12px !important;
        margin-bottom: 0.5rem;
    }

    .section-title {
        font-size: 2rem;
        flex-direction: column;
        text-align: center;
    }
}

/* Modern Blog Styles */

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0 3rem;
    border-bottom: 1px solid #dee2e6;
}

.hero-content {
    padding-right: 2rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    color: #6c757d;
    font-weight: 400;
    font-size: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 0;
}

.hero-stats {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.stat-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modern Breadcrumb */
.breadcrumb-modern {
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-modern .breadcrumb-item + .breadcrumb-item::before {
    content: "\f285";
    font-family: bootstrap-icons;
    color: #6c757d;
}

.breadcrumb-modern .breadcrumb-item a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-modern .breadcrumb-item a:hover {
    color: #5a6fd8;
}

/* Filter Bar */
.filter-bar {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.view-toggle .btn {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    background: white;
    color: #6c757d;
    transition: all 0.3s ease;
}

.view-toggle .btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

/* Blog Posts Grid */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-posts-grid.list-view {
    grid-template-columns: 1fr;
}

.blog-posts-grid.list-view .blog-post-card {
    display: flex;
    flex-direction: row;
}

.blog-posts-grid.list-view .post-image {
    width: 300px;
    flex-shrink: 0;
}

.blog-posts-grid.list-view .post-content {
    flex: 1;
    padding: 1.5rem 2rem;
}

/* Blog Post Card */
.blog-post-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.blog-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.post-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

.blog-post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-post-card:hover .post-overlay {
    opacity: 1;
}

.read-more-btn {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.read-more-btn:hover {
    transform: scale(1.1);
    color: #667eea;
}

.post-content {
    padding: 2rem;
}

.post-excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-footer {
    margin-top: auto;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #5a6fd8;
}

/* Modern Pagination */
.pagination-modern .page-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination-modern .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pagination-modern .page-link:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-content {
    max-width: 400px;
    margin: 0 auto;
}

.empty-state-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1.5rem;
}

.empty-state-title {
    color: #6c757d;
    margin-bottom: 1rem;
}

.empty-state-description {
    color: #6c757d;
    margin-bottom: 2rem;
}

/* Sidebar Widgets */
.sidebar {
    padding-left: 2rem;
}

.widget {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.widget:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.widget-title i {
    color: #667eea;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: #6c757d;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category-item:hover {
    background: #f8f9fa;
    color: #667eea;
    transform: translateX(5px);
}

.category-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.category-name {
    font-weight: 500;
}

.category-count {
    background: rgba(108, 117, 125, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.category-item.active .category-count {
    background: rgba(255, 255, 255, 0.2);
}

.popular-post-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f3f4;
}

.popular-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-post-image {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.popular-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post-content {
    flex: 1;
}

.popular-post-title {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.4;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.popular-post-title:hover {
    color: #667eea;
}

.popular-post-meta {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Article Styles */

/* Article Hero */
.article-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 0 2rem;
    border-bottom: 1px solid #dee2e6;
}

.article-header {
    max-width: 800px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.article-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.article-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.article-summary {
    font-size: 1.3rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.article-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.stat-item i {
    color: #667eea;
}

/* Article Content */
.article-content {
    margin-top: 3rem;
}

.article-image {
    margin: 3rem 0;
}

.article-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c3e50;
}

/* Article Footer */
.article-footer {
    padding: 2rem 0;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.article-tags {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tags-label {
    font-weight: 500;
    color: #6c757d;
}

.article-tag {
    background: #f8f9fa;
    color: #667eea;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.article-tag:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.share-label {
    font-weight: 500;
    color: #6c757d;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.facebook {
    background: #4267b2;
    color: white;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Article Navigation */
.article-navigation {
    margin: 3rem 0;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    text-decoration: none;
    color: #6c757d;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-btn-category {
    justify-content: flex-end;
}

/* Sidebar Widgets for Article */
.sidebar-sticky {
    position: sticky;
    top: 96px;
    z-index: 3;
}

.category-info {
    text-align: center;
}

.category-header h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.category-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: block;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.category-link:hover {
    color: #5a6fd8;
}

.share-buttons-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.share-btn-vertical {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #6c757d;
}

.share-btn-vertical.twitter:hover {
    background: #1da1f2;
    color: white;
}

.share-btn-vertical.linkedin:hover {
    background: #0077b5;
    color: white;
}

.share-btn-vertical.facebook:hover {
    background: #4267b2;
    color: white;
}

.share-btn-vertical.copy-link:hover {
    background: #3a86ff;
    color: white;
}

/* Modern Footer Styles */
.modern-footer {
    background: linear-gradient(140deg, #081b33 0%, #0a2540 45%, #0f345a 75%, #12406f 100%);
    color: #e2eeff;
    margin-top: auto;
}

.footer-main {
    padding: 3rem 0 2rem;
    border-bottom: 1px solid rgba(226, 238, 255, 0.12);
}

.footer-bottom {
    padding: 1.5rem 0;
    background: rgba(6, 20, 37, 0.6);
}

/* Footer Brand */
.footer-brand-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #3a86ff 0%, #246bff 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #f5f9ff;
    box-shadow: 0 8px 18px rgba(10, 37, 64, 0.45);
}

.footer-brand-title {
    color: #f5f9ff;
    font-weight: 600;
    font-size: 1.25rem;
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(226, 238, 255, 0.75) !important;
    margin-bottom: 1.5rem;
}

/* Footer Social Links */
.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(58, 134, 255, 0.16);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(226, 238, 255, 0.75);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 6px 16px rgba(10, 37, 64, 0.35);
}

.social-link:hover {
    background: linear-gradient(135deg, #3a86ff 0%, #256dff 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 37, 64, 0.45);
}

/* Footer Links */
.footer-heading {
    color: #f5f9ff;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.footer-nav li {
    margin-bottom: 0.5rem;
}

.footer-link {
    color: rgba(226, 238, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-link:hover {
    color: #3a86ff;
    text-decoration: none;
    transform: translateX(5px);
}

/* Footer Contact */
.contact-info {
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: rgba(226, 238, 255, 0.75);
}

.contact-item i {
    color: #3a86ff;
    width: 16px;
}

/* Newsletter Signup */
.newsletter-signup .form-control {
    background: rgba(226, 238, 255, 0.08);
    border: 1px solid rgba(226, 238, 255, 0.2);
    color: #e2eeff;
    border-radius: 8px;
}

.newsletter-signup .form-control::placeholder {
    color: rgba(226, 238, 255, 0.55);
}

.newsletter-signup .form-control:focus {
    background: rgba(226, 238, 255, 0.12);
    border-color: rgba(58, 134, 255, 0.6);
    box-shadow: 0 0 0 0.2rem rgba(58, 134, 255, 0.25);
    color: #f5f9ff;
}

.newsletter-signup .btn-primary {
    background: linear-gradient(135deg, #3a86ff 0%, #256dff 100%);
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(10, 37, 64, 0.45);
}

.newsletter-signup .btn-primary:hover {
    transform: translateY(-1px) scale(1.03);
}

/* Footer Copyright */
.footer-copyright {
    color: rgba(226, 238, 255, 0.6);
    font-size: 0.9rem;
}

.footer-meta {
    color: rgba(226, 238, 255, 0.6);
    font-size: 0.85rem;
}

.footer-meta .bi-heart-fill {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .modern-header {
        background: linear-gradient(140deg, #0a2540 0%, #0f345a 60%, #12406f 100%);
    }
    
    .navbar-collapse {
        background: rgba(8, 27, 51, 0.85);
        backdrop-filter: blur(10px);
        margin-top: 1rem;
        border-radius: 8px;
        padding: 1rem;
    }
    
    .nav-link-modern {
        margin: 0.25rem 0;
    }

    .footer-main {
        padding: 2rem 0 1.5rem;
    }

    .footer-social {
        justify-content: center;
        margin-top: 1rem;
    }

    .footer-meta {
        text-align: center !important;
        margin-top: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .article-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        margin-top: 2rem;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .sidebar {
        padding-left: 0;
        margin-top: 3rem;
    }

    .blog-posts-grid {
        grid-template-columns: 1fr;
    }

    .blog-posts-grid.list-view .blog-post-card {
        flex-direction: column;
    }

    .blog-posts-grid.list-view .post-image {
        width: 100%;
        height: 250px;
    }

    .blog-posts-grid.list-view .post-content {
        padding: 2rem;
    }

    .view-toggle {
        display: none !important;
    }

    .hero-section {
        padding: 3rem 0;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .recent-posts-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-card {
        padding: 1.5rem;
    }

    .newsletter-title {
        font-size: 1.8rem;
    }
}

/* Custom styles for the blog site */

.featured-posts {
    background-color: #f8f9fa;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.badge {
    font-size: 0.75rem;
}

/* Cookie Consent Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(10, 37, 64, 0.95) 0%, rgba(18, 64, 111, 0.95) 100%);
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1;
}

.cookie-content a {
    color: #7eb3d9;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.cookie-content a:hover {
    color: #a8c8e1;
    text-decoration: none;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    white-space: nowrap;
}

.cookie-actions button {
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.cookie-actions .btn-accept {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.cookie-actions .btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.cookie-actions .btn-reject {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.cookie-actions .btn-reject:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Responsive cookie banner */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cookie-content p {
        font-size: 0.9rem;
    }

    .cookie-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .cookie-actions button {
        flex: 1;
        min-width: 120px;
    }
}

/* Blog Content Styles */
.content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
}

.content h1 {
    font-size: 2.5rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    border-bottom: 3px solid #007bff;
    padding-bottom: 0.5rem;
}

.content h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: #34495e;
    border-bottom: 2px solid #6c757d;
    padding-bottom: 0.25rem;
}

.content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #495057;
}

.content h4 {
    font-size: 1.25rem;
    margin-top: 1.75rem;
    margin-bottom: 0.875rem;
    color: #6c757d;
}

.content h5, .content h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #6c757d;
}

.content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.content img {
    max-width: 100%;
    height: auto;
    margin: 2rem auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.content blockquote {
    border-left: 4px solid #007bff;
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    position: relative;
}

.content blockquote::before {
    content: '"';
    font-size: 4rem;
    color: #007bff;
    position: absolute;
    top: -10px;
    left: 10px;
    opacity: 0.3;
}

.content ul, .content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.content li {
    margin-bottom: 0.5rem;
}

.content code {
    background: #f1f3f4;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #e83e8c;
}

.content pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.content pre code {
    background: none;
    padding: 0;
    color: #495057;
}

.content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.content table th {
    background: #007bff;
    color: white;
    padding: 0.75rem;
    text-align: left;
    border: 1px solid #0056b3;
}

.content table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
}

.content table tr:nth-child(even) {
    background: #f8f9fa;
}

.content a {
    color: #007bff;
    text-decoration: none;
    border-bottom: 1px dotted #007bff;
    transition: all 0.3s ease;
}

.content a:hover {
    color: #0056b3;
    border-bottom: 1px solid #0056b3;
}

/* Admin styles */
.admin-sidebar {
    background-color: #343a40;
    min-height: calc(100vh - 56px);
}

.admin-sidebar .nav-link {
    color: #adb5bd;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin: 0.125rem 0.5rem;
    transition: all 0.2s ease-in-out;
}

.admin-sidebar .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-sidebar .nav-link.active {
    color: #fff;
    background-color: #007bff;
}

.admin-sidebar .nav-link i {
    width: 16px;
    margin-right: 0.5rem;
}

.admin-content {
    padding: 2rem;
    background-color: #f8f9fa;
    min-height: calc(100vh - 56px);
}

/* Rich Text Editor Styles */
.rich-editor {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.rich-editor:focus-within {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Admin login styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px 30px 20px;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
}

.login-header h2 {
    color: #495057;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 1.5rem;
}

.login-body {
    padding: 30px;
}

.login-footer {
    background: #f8f9fa;
    padding: 15px 30px;
    text-align: center;
    border-top: 1px solid #dee2e6;
}

.login-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin-left: 20px;
    color: white;
    backdrop-filter: blur(10px);
}

.login-info h5 {
    color: #fff;
    margin-bottom: 15px;
}

.login-info p {
    margin-bottom: 5px;
    font-size: 14px;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Form improvements */
.form-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.card-header h5 {
    color: #495057;
    font-weight: 600;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1.1rem;
}

/* Blog post form specific styles */
.blog-form .card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.blog-form .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}