/* Page Header & Breadcrumb */
.page-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 60px 0;
    color: white;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.png') repeat;
    opacity: 0.1;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: white;
}

.breadcrumb-item.active {
    color: white;
    font-weight: 600;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

/* News Card Link */
.news-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* News Grid Cards */
.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.news-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-img img {
    transform: scale(1.1);
}

.news-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(30, 60, 114, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.news-card-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1e3c72;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
    margin-top: auto;
}

.read-more:hover {
    gap: 12px;
    color: #2a5298;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    background: white;
    color: #666;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn.prev,
.page-btn.next {
    width: auto;
    padding: 0 20px;
    border-radius: 50px;
}

.page-btn:hover:not(.active) {
    border-color: #1e3c72;
    color: #1e3c72;
    background: #f8f9fa;
}

.page-btn.active {
    background: #1e3c72;
    border-color: #1e3c72;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(30, 60, 114, 0.3);
}

.page-btn i {
    font-size: 0.9rem;
}

.page-btn.prev i {
    margin-right: 5px;
}

.page-btn.next i {
    margin-left: 5px;
}

/* Search and Filter Box Styles */
.search-filter-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 20px;
    padding-right: 45px;
    border: 1px solid #dfe6e9;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
}

.filter-box select {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #dfe6e9;
    border-radius: 8px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-box select:focus {
    border-color: #3498db;
    outline: none;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .news-card {
        margin-bottom: 10px;
    }
}