﻿:root {
    --primary: #63a49d;
    --primary-dark: #588f8a;
    --secondary: #456f85;
    --secondary-dark: #3e6275;
    --light: #f8f9fa;
    --dark: #212529;
}

.news-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    position: relative;
    background: white;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .news-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }

.img-wrapper {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .card-img-top {
    transform: scale(1.05);
}

.news-card-date {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255,255,255,0.9);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    color: var(--dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.news-card-body {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    line-height: 1.4;
}

.news-card-desc {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.news-card-footer {
    padding: 0 1.75rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

    .btn-primary:hover, .btn-primary:focus {
        background-color: var(--primary-dark);
        border-color: var(--primary-dark);
    }

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    position: absolute;
    bottom: 5;
    left: 5;
    cursor: pointer;
}

    .read-more:hover {
        color: var(--secondary-dark);
    }

    .read-more i {
        
        margin: 0px 10px;
        padding-top: 4px;
        transition: transform 0.2s ease;
    }

    .read-more:hover i {
        transform: translateX(3px);
    }

.pagination {
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.page-link {
    color: var(--secondary);
    font-weight: 500;
    border-radius: 6px;
    margin: 0 3px;
}

.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 3px 10px rgba(99, 164, 157, 0.3);
}

.page-item:not(.active) .page-link:hover {
    background-color: #e9ecef;
}



/* Featured news section */
.featured-news {
    position: relative;
    margin-bottom: 3rem;
}

    .featured-news .img-wrapper {
        height: 300px;
    }

    .featured-news .news-card-title {
        font-size: 1.5rem;
    }

/* Modal styling */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.modal-header {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1.5rem;
}

.modal-body {
    padding: 1.75rem;
}

.modal-title {
    font-weight: 700;
    color: var(--secondary);
}

.modal-date {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
    display: block;
}

.modal-footer {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 1.75rem;
}

.modal-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.25rem;
}

.btn-close:focus {
    box-shadow: none;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

    .btn-outline-primary:hover {
        background-color: var(--primary);
        border-color: var(--primary);
    }

@media (max-width: 768px) {


    .img-wrapper {
        height: 180px;
    }

    .news-card-body {
        padding: 1.5rem;
    }

    .news-card-footer {
        padding: 0 1.5rem 1.5rem;
    }

    .modal-img {
        height: 200px;
    }
}
