/* General Form Container */

.ni-form-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
img.card-img-top {
    height: 200px !important;
}
.card-bodys{
	margin-top: -40px !important;
}

.two-lines {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Number of lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.three-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Number of lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}
.card:hover {
    box-shadow: 3px 2px 3px 1px #ededed;
	background-color: #A7D8DC !important;
}
.image-container {
    position: relative;
    overflow: hidden;
}

.image-container img {
    transition: transform 0.5s ease-in-out;
}

.card:hover .image-container img {
    transform: scale(1.5);
}
a.read-more {
    color: black;
}
a:hover {
    color: #464853;
}
/* Form Heading */
.ni-form-heading {
    font-size: 26px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

/* Form Group */
.ni-form-group {
    margin-bottom: 20px;
}

/* Labels */
.ni-form-group label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

/* Inputs and Textarea */
.ni-input, .ni-textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #fafafa;
    color: #333;
}

.ni-textarea {
    resize: vertical;
    min-height: 120px;
}

.ni-input:focus, .ni-textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

/* File Input (Image Upload) */
.ni-image-file {
    padding: 5px;
}

/* Image Preview */
.ni-image-preview {
    margin-top: 10px;
}

.ni-image-preview img {
    max-width: 150px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Submit Button */
.ni-submit-button {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
}

.ni-submit-button:hover {
    background-color: #005f8d;
}

/* Add Button */
.ni-add-button {
    background-color: #28a745;
    color: #fff;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 20px;
    display: inline-block;
    text-decoration: none;
}

.ni-add-button:hover {
    background-color: #218838;
}

/* Delete Button */
.ni-delete-button {
    background-color: #dc3545;
    color: #fff;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
}

.ni-delete-button:hover {
    background-color: #c82333;
}

/* Form Label Styling */
.ni-label {
    font-size: 14px;
    color: #333;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ni-form-container {
        padding: 15px;
    }

    .ni-submit-button {
        font-size: 14px;
        padding: 10px 15px;
    }

    .ni-add-button, .ni-delete-button {
        font-size: 14px;
        padding: 10px 15px;
    }
}

/* General Styling for the Form */
.news-form-wrapper {
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
}

.news-form-heading {
    text-align: center;
    font-size: 26px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
}

.news-form-container {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
}

.news-form-group {
    margin-bottom: 20px;
}

.news-label {
    font-size: 15px;
    font-weight: 500;
    color: #444;
    margin-bottom: 8px;
    display: inline-block;
}

.news-input, .news-textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    color: #555;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.news-input:focus, .news-textarea:focus {
    border-color: #4CAF50;
    outline: none;
}

.news-textarea {
    height: 150px;
    resize: vertical;
}

.news-button {
    width: 100%;
    padding: 14px;
    background-color: #4CAF50;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.news-button:hover {
    background-color: #45a049;
}

.news-image-preview {
    margin-top: 15px;
}

.news-image-preview img {
    max-width: 100%;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.btn-primary {
    color: #fff;
    background-color: #A7D8DC !important;
    border-color: #A7D8DC !important;
}
/* Responsive Design */
@media (max-width: 768px) {
    .news-form-wrapper {
        padding: 20px;
    }

    .news-form-heading {
        font-size: 22px;
    }

    .news-input, .news-textarea, .news-button {
        font-size: 14px;
    }
}
.ni-news-cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns in a row */
    gap: 20px; /* Space between cards */
    margin: 20px 0;
}

/* Each news card */
.ni-news-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.ni-news-card:hover {
    transform: translateY(-5px);
}

/* Image inside the card */
.ni-news-card-image img {
    width: 100%;
    height: 280px;
    display: block;
}

/* Content inside the card */
.ni-news-card-content {
    padding: 15px;
}

/* Title of the news */
.ni-news-card-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Description of the news */
.ni-news-card-description {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

/* Read more link */
.ni-news-card-read-more {
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
}

.ni-news-card-read-more:hover {
    text-decoration: underline;
}

/* Responsive Design: Stacks cards on smaller screens */
@media screen and (max-width: 1200px) {
    .ni-news-cards-container {
        grid-template-columns: repeat(3, 1fr); /* 3 columns in a row on medium screens */
    }
}

@media screen and (max-width: 900px) {
    .ni-news-cards-container {
        grid-template-columns: repeat(2, 1fr); /* 2 columns in a row on small screens */
    }
}

@media screen and (max-width: 600px) {
    .ni-news-cards-container {
        grid-template-columns: 1fr; /* 1 column in a row on mobile screens */
    }
	.news-insights-header{
    font-size:25px !important;
	text-align: center;
  }
}
.news-insights-header{
    font-size:60px;
    font-family: 'Tajawal', sans-serif !important;
    padding-bottom: 5px;
    padding-top: 30px;
  }
.card-titles {
    font-size: 16px;
    font-family: 'Tajawal', sans-serif !important;
    font-weight: 700;
    line-height: 19px;
    padding-left: 10px;
}

p.card-texts {
    font-size: 14px;
    font-family: 'Tajawal', sans-serif !important;
    font-weight: 500;
    padding-left: 9px;
}
.card-bodys {
    background-color: #F9F9F9;
}



.dates {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    display: flex;
   
    align-items: center;
  }

  .dates .day {
    font-size: 36px;
    font-weight: 700;
    color: #1F1F1F;
    font-family: 'Tajawal', sans-serif !important;
    padding-left: 7px;
  }

  .dates .month-year {
    font-size: 14px;
    font-weight: 500;
    color: #000000;
    font-family: 'Tajawal', sans-serif !important;
    padding-left: 5px;
}

  .main-date-wrapper {
      display: flex;
      justify-content: space-between;
  }
	
  p.days-read {
    padding-top: 15px;
    padding-right: 10px;
    color: #000000;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Tajawal', sans-serif !important;
}
span.total-views {
    padding-right: 10px;
    color: #000000;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Tajawal', sans-serif !important;
     
}
span.total-views {
   float: right !important;
}
.card {
    padding: 10px !important;
    border-radius: 10px !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    word-wrap: break-word !important;
    background-color: #F9F9F9 !important;
    background-clip: border-box !important;
    border: 0px solid rgba(0, 0, 0, .125) !important;
   
}
.datess {
    padding-top: 18px;
}
section.wpo-page-title-section {
    display: none;
}

a:hover {
    color: none !important;
}

.btn-primary:hover {
    color: #fff;
    background-color: #A7D8DC !important;
    border-color: #A7D8DC !important;
}