/* Global Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: 'Noto Sans Bengali', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
}

/* Header and Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(8, 8, 8, 0.1);
}

.navbar-brand {
    font-weight: bold;
}

.navbar-brand img {
    max-height: 40px;
}

/* Navigation Styles */
.navbar-nav {
    gap: 1rem;
}

.navbar-nav .nav-link {
    font-size: 1.3rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 991.98px) {
    .navbar-nav {
        padding: 1rem 0;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 0;
    }
}


/* Category Menu */
.category-menu {
    padding: 0.5rem 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.category-menu::-webkit-scrollbar {
    height: 6px;
}

.category-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.category-menu::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.category-menu .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
    border-radius: 20px;
    padding: 0.375rem 1rem;
}

.category-menu .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-menu .btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Category Header */
.category-header {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    padding: 3rem 1rem;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.category-header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.category-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

/* Featured Articles */
.featured-articles {
    margin-bottom: 3rem;
    position: relative;
}

.featured-article {
    height: 500px;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 400px;
}

.featured-article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px;
}

.featured-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.featured-excerpt {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Recent Articles */
.article-card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #f8f9fa;
    padding-bottom: 10px;
}

.article-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    height: 150px;
}

.article-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.article-card .card-title a:hover {
    color: var(--primary-color) !important;
}

/* Article Cards */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.card-img-top {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.card-title a:hover {
    color: var(--primary-color) !important;
}

.card-text {
    color: #6c757d;
}

/* Category Articles */
.category-section {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.category-title {
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.category-title {
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #0d6efd;
}

/* Sidebar */
.sidebar-section {
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
    font-size: 1.1rem;
    padding: 15px;
    margin: 0;
    border-bottom: 1px solid #f8f9fa;
}

/* Reduce space between weblink titles */
.list-group-item {
    padding: 0.1rem 1rem;
    /* Adjust padding as needed */
}

.list-group-item h1 {
    margin-bottom: 0.1rem;
    /* Adjust margin as needed */
}

.photo-gallery .gallery-item {
    margin-bottom: 10px;
}

.photo-gallery img {
    width: 100%;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

/* Featured Articles Carousel */
.carousel-item img {
    filter: brightness(0.7);
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 20px;
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags-cloud .btn {
    border-radius: 20px;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.tags-cloud .btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.tags-cloud .badge {
    margin-left: 0.5rem;
    font-size: 0.75rem;
}

/* Sidebar */
.sidebar .card {
    margin-bottom: 20px;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
}

.sidebar .card-header {
    background-color: white;
    border-bottom: 2px solid var(--light-color);
    padding: 1rem;
}

.sidebar .card-title {
    margin: 0;
    color: var(--dark-color);
}

/* Footer */
footer {
    margin-top: auto;
}

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-caption {
        padding: 10px;
    }

    .carousel-caption h2 {
        font-size: 1.5rem;
    }

    .category-menu .btn {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }

    .category-header {
        padding: 2rem 1rem;
    }

    .category-header h1 {
        font-size: 2rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .featured-article {
        height: 400px;
    }

    .featured-title {
        font-size: 1.5rem;
    }

    .featured-excerpt {
        font-size: 1rem;
    }

    .article-card img {
        height: 150px;
    }

    .article-card .card-title {
        font-size: 1.1rem;
    }

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

@media (max-width: 992px) {
    .featured-article {
        height: 300px;
    }

    .article-card img {
        height: 120px;
    }
}

@media (max-width: 768px) {
    .featured-article {
        height: 250px;
    }

    .featured-title {
        font-size: 1.2rem;
    }
}

/* Article Page Styles */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post .display-4 {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
}

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

.article-meta i {
    margin-right: 5px;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-top: 2rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-tags .btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

.related-articles .card {
    transition: transform 0.2s;
}

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

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

/* Comments Section */
.comment {
    border-left: 3px solid #007bff;
    padding-left: 15px;
    margin-bottom: 20px;
}

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

/* Pagination */
.pagination {
    margin-top: 2rem;
}

.page-link {
    color: var(--primary-color);
    border-radius: 0.25rem;
    margin: 0 0.2rem;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Social Media Icons */
.social-links a {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.social-links a:hover {
    opacity: 0.8;
}

/* Advertisement spaces */
.ad-space,
.gif-ad {
    background: #fff;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facebook-page {
    background: #fff;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* No Underline Links */
.no-underline {
    text-decoration: none;
    color: inherit;
    /* Ensure the link color matches the surrounding text */
}

.no-underline:hover {
    text-decoration: underline;
}

/* Sidebar Section */
.sidebar {
    position: -webkit-sticky;
    /* For Safari */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.card {
    transition: transform 0.2s;
}

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

.article-image {
    overflow: hidden;
}

.article-image img {
    transition: transform 0.3s;
}

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

.category-title {
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #0d6efd;
}

.ad-container {
    width: 100%;
    min-height: 250px;
    background: #f8f9fa;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

.ad-container.horizontal {
    min-height: 90px;
}

.ad-space img {
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .ad-container {
        min-height: 200px;
    }
}

/* Social Media Share Buttons */
.social-share {
    margin-bottom: 1rem;
}

.social-share h5 {
    margin-bottom: 0.5rem;
}

.social-share .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease;
}

.social-share .btn i {
    margin-right: 0.5rem;
}

/* Weblink Category Name Section */
.weblink-category-name {
    background-color: #007bff;
    /* Change background color */
    color: white;
    /* Change text color */
    text-align: center;
    /* Center the text */
    padding: 0.5rem;
    /* Add padding */
    border-radius: 0.25rem;
    /* Add border radius */
    margin-bottom: 1rem;
    /* Add margin at the bottom */
    font-size: 1.25rem;
    /* Adjust font size */
    font-weight: bold;
    /* Make the font bold */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* Add box shadow */
    transition: background-color 0.2s ease;
    /* Add transition for background color */
}

.weblink-category-name:hover {
    background-color: #0056b3;
    /* Change background color on hover */
}

.ad-container {
    margin: 25px 0;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 4px;
    text-align: center;
}

.ad-container.horizontal {
    width: 100%;
    height: auto;
    min-height: 90px;
}

.ad-container.vertical {
    width: 300px;
    height: 600px;
    margin: 0 auto;
}

