/* Condong News Integration Styles */

.condong-news-wrapper {
    margin: 30px 0;
    clear: both;
}

.condong-news-wrapper.layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.condong-news-wrapper.layout-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.condong-news-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.layout-list .condong-news-item {
    flex-direction: row;
}

.condong-news-item:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: translateY(-5px);
    border-color: #2563eb;
}

.condong-news-thumbnail {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f3f4f6;
    position: relative;
}

.layout-list .condong-news-thumbnail {
    width: 280px;
    height: auto;
    min-height: 200px;
    flex-shrink: 0;
}

.condong-news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.condong-news-thumbnail:hover img {
    transform: scale(1.1);
}

.condong-news-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.condong-news-title {
    margin: 0 0 12px;
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 700;
}

.condong-news-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s;
}

.condong-news-title a:hover {
    color: #2563eb;
}

.condong-news-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.875rem;
    color: #6b7280;
}

.meta-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-categories {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.cat-badge {
    background: #dbeafe;
    color: #1e40af;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.condong-news-excerpt {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 15px;
    flex: 1;
}

.condong-news-excerpt p {
    margin: 0;
}

.condong-news-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.3s;
    align-self: flex-start;
}

.condong-news-readmore:hover {
    gap: 10px;
    text-decoration: underline;
}

.condong-no-posts {
    text-align: center;
    padding: 40px 20px;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    margin: 20px 0;
}

.condong-no-posts p {
    color: #6b7280;
    font-style: italic;
    margin: 0;
}

/* Widget Styles */
.widget .condong-news-wrapper {
    margin: 0;
}

.widget .condong-news-item {
    margin-bottom: 15px;
}

.widget .condong-news-thumbnail {
    height: 150px;
}

.widget .condong-news-title {
    font-size: 1rem;
}

.widget .condong-news-excerpt {
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .condong-news-wrapper.layout-grid {
        grid-template-columns: 1fr;
    }
    
    .layout-list .condong-news-item {
        flex-direction: column;
    }
    
    .layout-list .condong-news-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .condong-news-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .condong-news-content {
        padding: 15px;
    }
    
    .condong-news-thumbnail {
        height: 180px;
    }
    
    .condong-news-title {
        font-size: 1rem;
    }
    
    .condong-news-meta {
        font-size: 0.8rem;
    }
}


/* condong home */

/* GRID UTAMA */
.condong-home-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ROW ATAS → 2 KOLOM BESAR */
.ch-top-row {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 kolom sama besar */
  gap: 20px;
}

/* ITEM BESAR */
.ch-item.ch-big {
  position: relative;
  height: 350px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.ch-item.ch-big a {
  display: block;
  width: 100%;
  height: 100%;
  color: #fff;
  text-decoration: none;
}

.ch-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.1));
}

.ch-title {
  position: absolute;
  bottom: 20px;
  left: 20px;
  margin: 0;
  font-size: 1.4rem;
  font-weight: bold;
  line-height: 1.3;
  color: #fff;
  z-index: 2;
}

/* ROW BAWAH → BOX KECIL */
.ch-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* BOX KECIL */
.ch-small {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

.ch-thumb {
  height: 160px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.ch-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #0056d6;
  color: #fff;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 6px;
}

.ch-small h3 {
  font-size: 1rem;
  font-weight: 600;
  padding: 12px;
  margin: 0;
  color: #222;
  line-height: 1.4;
}

.ch-small h3:hover {
  color: #0056d6;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .ch-top-row {
    grid-template-columns: 1fr;
  }
}


/* Sidebar Condong News */
.condong-sidebar-news {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.condong-sidebar-news .csn-item {
  padding-bottom: 12px;
  border-bottom: 1px dashed #ccc;
}

.condong-sidebar-news .csn-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #222;
  text-decoration: none;
  display: block;
  line-height: 1.4;
}

.condong-sidebar-news .csn-title:hover {
  color: #0066cc;
}

.condong-sidebar-news .csn-meta {
  font-size: 0.8rem;
  color: #777;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.condong-sidebar-news .csn-meta .dashicons {
  font-size: 14px;
  line-height: 1;
  color: #999;
}

