/* 
 * Berita & Article Grid CSS
 * Custom styles for the news article grid layout
 */

/* News Card Items */
.news-card-items {
    transition: all 0.3s ease;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

.news-card-items:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.news-image {
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.news-content {
    padding: 20px;
    flex: 1;
}

.post-cat {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background-color: var(--theme);
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    text-decoration: none;
}

.post-cat:hover {
    background-color: var(--theme-dark);
    color: #fff;
}

.post-date {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.post-date li {
    color: #666;
    font-size: 14px;
}

.post-date li i {
    margin-right: 5px;
    color: var(--theme);
}

.news-content h3 {
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-content h3 a {
    color: #202020;
    text-decoration: none;
    transition: color 0.3s;
}

.news-content h3 a:hover {
    color: var(--theme);
}

.link-btn {
    display: inline-block;
    font-weight: 600;
    font-size: 14px;
    color: var(--theme);
    text-decoration: none;
    transition: all 0.3s;
}

.link-btn i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.link-btn:hover {
    color: var(--theme-dark);
}

.link-btn:hover i {
    transform: translateX(5px);
}

/* Related Posts */
.news-card-items-2 {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background-color: #fff;
}

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

.news-card-items-2 .news-content {
    padding: 15px;
    flex: 1;
}

.news-card-items-2 .news-content h5 {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-card-items-2 .news-content h5 a {
    color: #202020;
    text-decoration: none;
    transition: color 0.3s;
}

.news-card-items-2 .news-content h5 a:hover {
    color: var(--theme);
}

.news-button {
    padding: 0 15px 15px;
}

/* Sidebar Widgets */
.single-sidebar-widget {
    padding: 25px;
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.wid-title {
    position: relative;
    margin-bottom: 20px;
}

.wid-title h3 {
    position: relative;
    font-size: 20px;
    padding-bottom: 10px;
}

.wid-title h3:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 50px;
    background-color: var(--theme);
}

.search_widget form {
    position: relative;
}

.search_widget input {
    width: 100%;
    border: 1px solid #eaeaea;
    background: #f9f9f9;
    border-radius: 6px;
    padding: 12px 15px;
    padding-right: 50px;
    transition: all 0.3s;
}

.search_widget input:focus {
    border-color: var(--theme);
    background: #fff;
    outline: none;
}

.search_widget button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 50px;
    border: none;
    background-color: var(--theme);
    color: #fff;
    border-radius: 0 6px 6px 0;
    transition: all 0.3s;
}

.search_widget button:hover {
    background-color: var(--theme-dark);
}

.widget_categories ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.widget_categories ul li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.widget_categories ul li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border: none;
}

.widget_categories ul li a {
    color: #202020;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    transition: all 0.3s;
}

.widget_categories ul li a span {
    display: inline-block;
    min-width: 30px;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
}

.widget_categories ul li a:hover {
    color: var(--theme);
}

.widget_categories ul li a:hover span {
    background-color: var(--theme);
    color: #fff;
}

/* Popular Posts Widget */
.single-post-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

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

.single-post-item .thumb {
    flex: 0 0 80px;
    margin-right: 15px;
}

.single-post-item .thumb img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.single-post-item .post-content {
    padding: 0;
}

.single-post-item .post-content h5 {
    font-size: 15px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.single-post-item .post-content h5 a {
    color: #202020;
    text-decoration: none;
    transition: color 0.3s;
}

.single-post-item .post-content h5 a:hover {
    color: var(--theme);
}

.single-post-item .post-date {
    font-size: 13px;
    margin-bottom: 0;
}

.single-post-item .post-date i {
    font-size: 12px;
}

/* Tags Cloud */
.tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tagcloud a {
    display: inline-block;
    padding: 5px 12px;
    background-color: #f5f5f5;
    border-radius: 5px;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.tagcloud a:hover {
    background-color: var(--theme);
    color: #fff;
}

/* Article Detail Page */
.blog-post-details {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.post-featured-thumb img {
    width: 100%;
    height: auto;
}

.single-blog-post .post-content {
    padding: 30px;
}

.single-blog-post .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.single-blog-post .post-meta span {
    color: #666;
    font-size: 14px;
}

.single-blog-post .post-meta span i {
    margin-right: 5px;
    color: var(--theme);
}

.single-blog-post .post-content h2 {
    font-size: 28px;
    line-height: 1.4;
    margin-bottom: 20px;
}

.tag-share-wrap {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.tag-share-wrap h4 {
    font-size: 18px;
    margin-bottom: 15px;
}

.social-share {
    display: flex;
    gap: 10px;
}

.social-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 5px;
    background-color: #f5f5f5;
    color: #666;
    transition: all 0.3s;
    text-decoration: none;
}

.social-share a:hover {
    background-color: var(--theme);
    color: #fff;
}

.related-post-wrap {
    margin-bottom: 40px;
}

.related-post-wrap h3 {
    font-size: 24px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.related-post-wrap h3:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 50px;
    background-color: var(--theme);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .main-sidebar {
        margin-top: 40px;
    }
}

@media (max-width: 767px) {
    .news-content h3 {
        font-size: 16px;
    }

    .single-blog-post .post-content h2 {
        font-size: 22px;
    }

    .single-blog-post .post-content {
        padding: 20px;
    }

    .tag-share-wrap .text-md-end {
        text-align: left !important;
        margin-top: 15px;
    }
}
