/* style.css */
.cfl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* شبكة متجاوبة تلقائياً */
    gap: 20px;
    padding: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.cfl-card {
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.cfl-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.cfl-card-image {
    height: 180px;
    background-color: #f3f4f6;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* في حالة عدم وجود صورة، نضع أيقونة نصية */
.cfl-no-image::after {
    content: 'NEWS';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #cbd5e0;
    font-weight: bold;
    font-size: 24px;
    letter-spacing: 2px;
}

.cfl-card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cfl-meta {
    font-size: 12px;
    color: #718096;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.cfl-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
}

.cfl-title a {
    text-decoration: none;
    color: #2d3748;
}

.cfl-excerpt {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* إظهار 3 أسطر فقط */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cfl-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #edf2f7;
}

.cfl-btn {
    display: inline-block;
    font-size: 13px;
    color: #3182ce;
    text-decoration: none;
    font-weight: 600;
}
/* style.css - (Add this section to the existing CSS) */
.cfl-meta .cfl-source {
    color: #4c4c4c; /* لون أغمق قليلاً للمصدر */
    font-weight: 600; /* خط سميك قليلاً */
}
/* style.css - (Add this section to the existing CSS) */

.cfl-search-container {
    padding-bottom: 0px;
}

#cfl-search-input {
    width: 50%;
    padding: 10px 15px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    font-size: 16px;
    transition: border-color 0.3s;
	display:flex;
	margin:10px auto;
}

#cfl-search-input:focus {
    border-color: #385dff;
    outline: none;
	box-shadow: 0px 0px 0px 2px #385dff;
}

#cfl-search-status {
    font-size: 14px;
    color: #385dff;
    padding: 5px 0;
	margin: auto;
    width: fit-content;
}

#cfl-search-status strong {
    font-weight: 700;
    color: #333;
}