/* News Page Styles */

#news-hero {
    width: 100%;
    height: 90vh;
    background: #e4f0ea;
    /* padding: 85px 0px 0; */
    /* Removed padding to eliminate white gap between header and hero */
    overflow: hidden;
    position: relative;
}

@media (min-width: 992px) {
    #news-hero {
        height: 60vh;
    }
}

/* Fix for Hero Container */
#news-hero .hero-container {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding-bottom: 40px;
    padding-left: 0;
}

#news-hero .container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Breadcrumb styling for News Hero */
#news-hero .breadcrumb-nav {
    background: transparent !important;
    display: flex;
    justify-content: flex-start;
    margin-top: 5px;
}

#news-hero .breadcrumb-nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

#news-hero .breadcrumb-nav li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
}

#news-hero .breadcrumb-nav a {
    color: #ff8c00 !important;
    font-size: 1.2rem !important;
    text-decoration: none;
    font-weight: 600;
}

/* Hero Description Box */
#news-hero .hero-description-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 15px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    max-width: 100%;
    width: fit-content;
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}

#news-hero .hero-description-box h2 {
    font-size: 32px !important;
    font-family: Inter, Roboto, sans-serif !important;
    font-weight: 600 !important;
    margin-bottom: 0 !important;
    color: #fff !important;
    line-height: 1.2 !important;
    text-transform: none !important;
}

/* Typewriter effect */
.hero-typewriter .hero-text-white::after {
    content: "|";
    animation: blink 0.7s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.hero-text-white {
    color: #fff;
}



.news-grid {
    column-count: 2;
    column-gap: 30px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .news-grid {
        column-count: 1;
    }
}

.news-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    /* Prevent break inside columns */
    break-inside: avoid;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: inline-block;
    width: 100%;
    border: 1px solid #eee;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
    font-family: Inter, Roboto, sans-serif;
}

.news-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    text-align: right;
}

.read-more-btn {
    font-size: 14px;
    font-weight: 600;
    color: #ff8c00;
    /* Orange theme color */
    text-decoration: none;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
}

.read-more-btn:after {
    content: "\f061";
    /* FontAwesome Right Arrow */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 5px;
    font-size: 12px;
    transition: margin-left 0.3s;
}

.read-more-btn:hover {
    color: #e67e00;
    text-decoration: none;
}

.read-more-btn:hover:after {
    margin-left: 8px;
}

/* Mobile responsive styles for News Hero */
@media (max-width: 768px) {
    #news-hero {
        height: 50vh;
        min-height: 400px;
    }

    #news-hero .hero-container {
        align-items: flex-end !important;
        justify-content: flex-start !important;
        padding-bottom: 20px !important;
        padding-left: 0 !important;
    }

    #news-hero .container {
        padding: 0 10px !important;
    }

    #news-hero .hero-description-box {
        padding: 10px 20px !important;
        margin-left: 0 !important;
    }

    #news-hero .hero-description-box h2,
    #news-hero h2 {
        font-size: 1.5rem !important;
        white-space: normal !important;
    }

    #news-hero .breadcrumb-nav a,
    #news-hero .breadcrumb-nav li {
        font-size: 0.85rem !important;
    }
}