/* =========================================
   Moral Afsana - Homepage Styles
   File: /css/home.css
========================================= */

/* Hero Section */
.news-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-radius: 18px;
}

.news-hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.3;
}

.news-hero p {
    max-width: 850px;
    margin: 1rem auto 0;
    font-size: 1.05rem;
}

/* Featured and News Cards */
.featured-card,
.news-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform .3s ease, box-shadow .3s ease;
}

.featured-card:hover,
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.featured-card img {
    height: 300px;
    width: 100%;
    object-fit: cover;
}

.news-card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Homepage Category Widget */
.home-category-widget {
    position: sticky;
    top: 20px;
}

/* Read More Button */
.btn-read-more {
    background: var(--primary-color);
    color: #fff;
    padding: .55rem 1.35rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.btn-read-more:hover {
    background: var(--secondary-color);
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .news-hero h1 {
        font-size: 1.7rem;
    }

    .featured-card img {
        height: 250px;
    }

    .news-card img {
        height: 180px;
    }

    .home-category-widget {
        position: static;
        margin-bottom: 2rem;
    }
}
/* =========================================
   Moral Afsana - Category Page Styles
   File: /css/category.css
========================================= */

/* Category Page Wrapper */
.category-page {
    padding: 2rem 0 3rem;
}

/* Category Hero */
.category-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    padding: 2.5rem 0;
    border-radius: 18px;
    margin-bottom: 2.5rem;
    text-align: center;
}

.category-hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: .75rem;
}

.category-hero p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    opacity: .95;
}

.category-hero .category-count {
    display: inline-block;
    background: rgba(255, 255, 255, .2);
    color: #fff;
    padding: .35rem .9rem;
    border-radius: 20px;
    font-size: .85rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* Breadcrumb */
.category-breadcrumb {
    font-size: .9rem;
    margin-bottom: 1.5rem;
}

.category-breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
}

.category-breadcrumb a:hover {
    color: var(--primary-color);
}

.category-breadcrumb .active {
    color: var(--muted-color);
}

/* Layout */
.category-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.category-main {
    flex: 1;
    min-width: 0;
}

.category-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* Post Grid */
.category-posts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.category-post-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform .3s ease, box-shadow .3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.category-post-card .post-image {
    display: block;
    overflow: hidden;
}

.category-post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform .3s ease;
}

.category-post-card:hover img {
    transform: scale(1.05);
}

.category-post-body {
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.category-post-badge {
    margin-bottom: .7rem;
    align-self: flex-start;
}

.category-post-title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: .6rem;
}

.category-post-title a {
    color: var(--dark-color);
}

.category-post-title a:hover {
    color: var(--primary-color);
}

.category-post-excerpt {
    color: var(--muted-color);
    font-size: .92rem;
    margin-bottom: .8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-post-date {
    margin-bottom: .8rem;
}

.category-read-more {
    margin-top: auto;
    color: var(--primary-color);
    font-weight: 600;
    font-size: .95rem;
}

.category-read-more:hover {
    color: var(--secondary-color);
}

/* Category Pagination */
.category-pagination {
    margin-top: 2.5rem;
}

.category-pagination .pagination {
    justify-content: center;
    flex-wrap: wrap;
}

/* No Posts */
.category-no-posts {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, .08);
    padding: 3rem 1.5rem;
    text-align: center;
}

.category-no-posts i {
    font-size: 3rem;
    color: #adb5bd;
    margin-bottom: 1rem;
}

.category-no-posts h2 {
    font-size: 1.2rem;
    color: var(--muted-color);
}

/* Responsive */
@media (max-width: 991px) {
    .category-layout {
        flex-direction: column;
    }

    .category-sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .category-hero h1 {
        font-size: 1.7rem;
    }

    .category-posts {
        grid-template-columns: 1fr;
    }

    .category-post-card img {
        height: 180px;
    }
}
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
    min-width: 44px;
    min-height: 44px;
}

.owl-nav-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}