/* Container for the news section */
.news-container {
    padding: 20px;
}

/* Search Form Styles */
.news-search {
    margin-bottom: 30px;
    text-align: center;
}

.search-wrapper {
    display: inline-flex;
    align-items: center;
    border: 2px solid #ccc;
    border-radius: 50px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-wrapper:hover,
.search-wrapper:focus-within {
    border-color: #4ca1af;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-wrapper input[type="text"] {
    padding: 12px 20px;
    border: none;
    outline: none;
    font-size: 1em;
    width: 300px;
    transition: width 0.3s ease;
}

.search-wrapper input[type="text"]:focus {
    width: 350px;
}

.search-wrapper button {
    padding: 12px 20px;
    border: none;
    background-color: #4ca1af;
    color: #fff;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.search-wrapper button:hover {
    background-color: #3a8b98;
}

.search-wrapper button i {
    font-size: 1.2em;
}

/* News List Container */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Individual News Item Card */
.news-item {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* News Image / Placeholder */
.news-image {
    width: 250px;
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-placeholder {
    width: 100%;
    height: 100%;
    background-color: #4ca1af;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    font-weight: bold;
}

/* News Details Section */
.news-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.news-title {
    font-size: 1.75em;
    margin-bottom: 8px;
    color: #2c3e50;
}

.news-meta {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 15px;
}

.news-meta span {
    margin-right: 15px;
    display: inline-flex;
    align-items: center;
}

.news-meta span i {
    margin-right: 5px;
    font-size: 1em;
}

.news-excerpt {
    font-size: 1em;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.6;
}

.continue-reading {
    align-self: flex-start;
    text-decoration: none;
    color: #4ca1af;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.continue-reading i {
    margin-left: 5px;
    font-size: 1.2em;
}

.continue-reading:hover {
    color: #2c3e50;
}