/* Section base styles */
.news-section {
    margin-top: 3rem;
    padding: 2rem;
    font-family: sans-serif;
    background-color: #FFFFFF; /* optional */
}

/* Centered container */
.news-container {
    max-width: 1200px;
    margin: 0 auto; /* centers horizontally */
    padding: 0 1rem; /* small side padding on small screens */
}

/* Heading */
.news-heading {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-align: center; /* center the heading */
}

/* Flex container for cards */
.news-flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center; /* center all cards in the row */
}

/* Card styles */
.news-card {
    width: 260px;
    height: 320px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.news-card:hover .news-title {
    color: #00AAAC;
}

/* Image */
.news-image {
    height: 160px;
    width: 100%;
    object-fit: cover;
}

/* Content */
.news-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #2c3034;
    opacity: 70%;
    margin-bottom: auto;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.news-date {
    font-size: 0.875rem;
    color: #888;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem; /* spacing between icon and date */
}

.news-date i {
    font-size: 1rem;
    color: #888; /* same as text for consistency */
}

.news-date span {
    padding-top: .15rem;
}

@media screen and (min-width: 1536px) {
    .news-card {
        width: 300px;
        height: 350px;
    }

    .news-image {
        height: 180px;
    }

    .news-title {
        font-size: 1.1rem;
        -webkit-line-clamp: 3;
    }
}

.flight-container {
    display: flex;
    justify-content: center; /* centers horizontally */
    align-items: center; /* optional, centers vertically if needed */
    /*padding: 20px 0;*/
    overflow: hidden;
}

.flight-image {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block; /* ensures no inline spacing */
    border-radius: 12px;
}
