/* News & Blog Custom Styles */

/* Hero Section */
.news-hero {
    position: relative;
    background-image: url('../img/news-events-banner.jpg');
    /* You might need to add a placeholder image here if missing */
    background-size: cover;
    background-position: center;
    padding: 100px 0 150px;
    margin-bottom: -50px;
    /* Overlap effect */
    color: white;
    text-align: center;
}

.news-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 40, 60, 0.7);
    /* Dark teal/blue overlay */
}

.news-hero .container {
    position: relative;
    z-index: 2;
}

.news-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.news-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.scorepoint-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Search & Filter */
.search-filter-section {
    position: relative;
    z-index: 3;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.search-input {
    border: 1px solid #eee;
    padding: 10px 20px;
    border-radius: 30px;
    width: 100%;
    background: #f9f9f9 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23ccc" class="bi bi-search" viewBox="0 0 16 16"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/></svg>') no-repeat 15px center;
    padding-left: 40px;
}

.filter-pills .badge {
    padding: 10px 20px;
    margin-right: 10px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    background: #f1f5f9;
    color: #555;
    transition: all 0.3s;
}

.filter-pills .badge:hover,
.filter-pills .badge.active {
    background: #00bcd4;
    /* Cyan/Teal like in image */
    color: white;
}

/* Featured Card */
.featured-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 400px;
    margin-bottom: 40px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.featured-card:hover img {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 40px;
    color: white;
}

.category-tag {
    background: #00bcd4;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: inline-block;
}

.featured-title {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.card-meta {
    font-size: 0.9rem;
    opacity: 0.8;
}

.card-meta span {
    margin-right: 20px;
}

/* Blog Grid */
.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: none;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-card-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-img .category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    margin: 0;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.blog-card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
    text-decoration: none;
    line-height: 1.4;
}

.blog-title:hover {
    color: #00bcd4;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.blog-footer {
    border-top: 1px solid #f1f1f1;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #888;
}

.read-more {
    color: #00bcd4;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.read-more:hover {
    text-decoration: underline;
}

.read-more i {
    margin-left: 5px;
    font-size: 0.8rem;
}

/* Details Page */
.blog-details-hero {
    background-size: cover;
    background-position: center;
    padding: 150px 0 100px;
    position: relative;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    background-color: #333;
    /* Fallback */
}

.blog-details-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.blog-details-hero .container {
    position: relative;
    z-index: 2;
}

.detail-image img {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.content-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.content-body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}