
body {
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
    margin: 0;
    padding: 0;
    display: block;
    justify-content: center;
    align-items: center;

}

.newcontainer {
    display: grid;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    /*border: 1px solid #dedbdb;*/
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.mainpageHeading{
    display: block;
    font-size: 24px;
    margin: 10px;
}

.card {
       /* width: 250px; */
    height: 330px;
    /* margin: 20px 10px 20px 6px; */
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
    transition: transform 0.3s;
    cursor: pointer;
    text-align:center;
}

.card:hover {
    transform: scale(1.05);
}

.card img {
    width: 100%;
    height: 170px;
    object-fit: inherit;
}

.card-content {
    padding: 0px 10px 5px 10px;
    display: flex;
    flex-direction: column;
}

.card h2 {
    max-width: 230px;
    overflow: hidden;
    max-height: 80px;
    word-wrap: break-word;
    font-size: 15px;
    line-height: 24px;
    text-overflow: ellipsis;
    color: #444444;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-family: 'Roboto', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.card {
    /*font-size: 0.9em;*/
    /*color: #4caf50;*/
    /*margin-bottom: 10px;*/
}

.category {
    font-size: 0.9em;
    color: #666666;
}

.card p {
    margin-top: 5px;
    max-width: 210px;
    font-size: 12px;
    overflow: hidden;
    max-height: 55px;
    word-wrap: break-word;
    padding-top: 1px;
    margin-right: 1px;
    text-overflow: ellipsis;
    color: #444444;
    line-height: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-family: 'Roboto', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.card .read-more {
    text-decoration: none;
    color: #4caf50;
    font-weight: bold;
    transition: color 0.3s;
}

.card .read-more:hover {
    color: #45a049;
}
.newLinka{
    text-decoration: none;
}

.news-container {
    width: calc( 100% - 40px );
    float: left;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    display: block;
    flex-direction: column;
    padding: 20px;
    margin: auto;
}
.news-image{
    display: flex;
    justify-content: left;
}
.news-description{
    position: relative;
    float: left;
    font-family: 'Roboto', sans-serif;
    font-weight: normal;
    text-align: justify;
    line-height: 20px;
    font-size: 16px;
    color: #333;
    max-width: 100%;
    overflow: hidden;
    white-space: pre-wrap !important;
}

.news-details {
    margin-bottom: 20px;
    white-space: break-spaces;
}

.news-title {
    font-size: 2em;
    color: #333;
    margin-bottom: 10px;
}

.meta-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.9em;
    color: #666;
}

.news-image img {
    max-width: 650px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

.news-description p {
    font-size: 1em;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

/* ... Previous CSS styles ... */

.comment-box {
    margin-top: 40px;
}

.comment-box h2 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
}

.comment-box form {
    margin-bottom: 20px;
}

.comment-box label {
    font-size: 0.9em;
    color: #333;
    margin-bottom: 10px;
    display: block;
}

.comment-box textarea {
    width: calc(100% - 20px);
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
}

.comment-box button {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.comment-box button:hover {
    background-color: #45a049;
}

.comment {
    margin-bottom: 20px;
}

.comment-author {
    font-weight: bold;
    color: #4caf50;
    margin-right: 10px;
}

