

/* start */

    /* body {
      background: #f4f4f4;
      padding: 20px;
        margin: auto;
    } */

    .card-container {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      /* margin: auto; */
      /* justify-content: center; */    
    }

 .card {
      width: 225px;
      height: 260px;
      overflow: hidden;
      border-radius: 10px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
      background-color: #fff;
      transition: transform 0.3s ease;
    }

    .card:hover {
      transform: scale(1.02);
    }

    .card img {
      width: 100%;
      height:calc(100% - 14px);
      object-fit: cover;
    }

    .card-content {

      background: linear-gradient(to right, #1b7789c9, #1b778970);  
      padding: 7px 0px;
      
    }

    .card-content h3 {
      font-size: 18px;
      color: rgb(255, 255, 255);
      padding: 2px 10px 0px 10px;
      font-family: cursive;
    }
     .card-content h3 .arrow_incat{
        margin-left: 5px;
        transition: .5s all ease;
     }
        .card:hover .card-content h3 .arrow_incat{
            margin-left: 15px
        }

    .card-content .meta {
      font-size: 14px;
      opacity: 0.9;
      text-align: center;
    }

    .card-content .meta span {
      display: inline-block;
      margin-right: 10px;
    }

@media(max-width:992px){
.card{
      width: 350px;
      height: 350px;
   }

}

 @media screen and (max-width: 768px) {
      .card {
        width: 100%;
        /* height: 350px; */
      }
            .card img{
                width: 100%;
                height: 87%;
            }
    }


/* Category Page Styles */

.category-header {
    /* background-color: var(--primary-color); */
    background-color: #3590a2;
    color: white;
    padding: 60px 0 40px;
    margin-bottom: 40px;
    text-align: center;
}

.category-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
    /* font-family: var(--font-heading); */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.category-header p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 20px;
    opacity: 0.9;
}

.breadcrumbs {
    font-size: 14px;
}

.breadcrumbs a {
    color: white;
    opacity: 0.8;
}

.breadcrumbs a:hover {
    opacity: 1;
    text-decoration: underline;
}

.breadcrumbs span {
    opacity: 0.6;
}

.category-main {
    display: flex;
    gap: 30px;
    padding-bottom: 50px;
}

.category-content {
    flex: 2;
}

.category-sidebar {
    flex: 1;
}

/* Category Intro */
.category-intro {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.category-image {
    flex: 1;
    min-width: 300px;
}

.category-image img {
    width: 100%;
    border-radius: 5px;
    height: 100%;
    object-fit: cover;
}

.category-description {
    flex: 2;
}

.category-description p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.category-stats {
    display: flex;
    gap: 20px;
    margin-top: 25px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-color);
}

.stat-item i {
    color: var(--primary-color);
}

/* Filter Options */
.filter-options {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 500;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
}

.filter-btn, .reset-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.filter-btn {
    background-color: #3590a2;
    color: white;
}

.filter-btn:hover {
    background-color: var(--secondary-color);
}

.reset-btn {
    background-color: var(--light-gray);
    color: var(--dark-color);
}

.reset-btn:hover {
    background-color: #e0e0e0;
}

/* Category Posts */
.category-posts {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.category-post {
    display: flex;
    gap: 25px;
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.category-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.post-thumbnail {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.featured-tag, .popular-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    color: white;
}

.featured-tag {
    background-color: var(--accent-color);
}

.popular-tag {
    background-color: var(--primary-color);
}

.post-content {
    flex: 2;
}

.post-content h2 {
    font-size: 22px;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.post-content h2 a {
    color: var(--dark-color);
}

.post-content h2 a:hover {
    color: var(--primary-color);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--gray-color);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-meta i {
    font-size: 12px;
}

.excerpt {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    color: white;
    font-size: 14px;
}

.read-more i {
    font-size: 12px;
    transition: var(--transition);
}

.read-more:hover i {
    transform: translateX(3px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 40px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    color: #555;
    transition: var(--transition);
}

.page-link i {
    font-size: 12px;
}

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

.page-link.next {
    width: auto;
    padding: 0 15px;
    border-radius: 20px;
}

/* Category Sidebar */
.category-sidebar .sidebar-widget {
    background-color: white;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 20px;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    color: var(--dark-color);
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    /* background-color: var(--primary-color); */
    background-color: #3590a2;
    /* background-color: #3590a2; */
}

.category-meta {
    margin-top: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--gray-color);
}

.meta-item i {
    color: var(--primary-color);
    /* color: #3590a2; */
    width: 20px;
    text-align: center;
}

.author-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.author-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-item img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.author-details h4 a {
    color: var(--dark-color);
}

.author-details span {
    font-size: 13px;
    color: var(--gray-color);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--light-gray);
    border-radius: 20px;
    font-size: 13px;
    color: #555;
    transition: var(--transition);
}

.tag-cloud a:hover {
    /* background-color: var(--primary-color); */
    background-color: #3590a2;
    color: white;
}

.newsletter-widget {
    background-color: var(--primary-color);
    color: white;
}

.newsletter-widget .widget-title {
    color:  var(--dark-color);
    
}

.newsletter-widget .widget-title::after {
    background-color: white;
}

.newsletter-widget p {
    margin-bottom: 15px;
    opacity: 0.9;
    color: black;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subscribe-form input {
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
}

.subscribe-form button {
    padding: 12px;
    /* background-color: var(--primary-color); */
    background-color: #3590a2;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.subscribe-form button:hover {
    background-color: var(--light-gray);
    /* color: var(--primary-color); */
    color: #3590a2;
    /* background-color: #3590a2; */
}

/* Responsive Styles */
@media (max-width: 992px) {
    .category-main {
        flex-direction: column;
    }
    
    .category-intro {
        flex-direction: column;
    }
    
    .category-image {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .category-header h1 {
        font-size: 32px;
    }
    
    .category-header p {
        font-size: 16px;
    }
    
    .category-post {
        flex-direction: column;
    }
    
    .post-thumbnail {
        min-width: 100%;
    }
    
    .filter-options {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .category-header {
        padding: 40px 0 30px;
    }
    
    .category-header h1 {
        font-size: 28px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}