/* Hero Section */
.page-hero {
    position: relative;
    min-height: 40vh;
    width: 100%;
    background: url('../images/hero-bg.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    padding: 80px 0;
    text-align: right;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to left, 
        rgba(255, 255, 255, 0.85) 0%,
        rgba(255, 255, 255, 0.75) 50%,
        rgba(255, 255, 255, 0.65) 100%
    );
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-hero .hero-content {
    color: #1B3B8C;
    max-width: 800px;
    margin-right: 0;
    position: relative;
}

.page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    position: relative;
}

.page-hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #FF4081, #1B3B8C);
    border-radius: 2px;
}

.page-hero p {
    font-size: 1.6rem;
    margin-bottom: 30px;
    opacity: 0.9;
    color: #2c3e50;
    font-weight: 500;
}

.page-hero .breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    margin-top: 30px;
}

.page-hero .breadcrumb a {
    color: #1B3B8C;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-hero .breadcrumb a:hover {
    opacity: 1;
    transform: translateX(-3px);
}

.page-hero .breadcrumb .separator {
    color: #1B3B8C;
    opacity: 0.5;
}

.page-hero .breadcrumb .current {
    color: #1B3B8C;
    opacity: 0.7;
    font-weight: 500;
}

.hero-pattern {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    z-index: 2;
}

@media (max-width: 992px) {
    .page-hero {
        padding: 60px 0;
    }

    .page-hero h1 {
        font-size: 3rem;
    }

    .page-hero p {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .page-hero {
        min-height: 35vh;
        padding: 50px 0;
    }

    .page-hero h1 {
        font-size: 2.5rem;
    }

    .page-hero p {
        font-size: 1.2rem;
    }

    .page-hero .breadcrumb {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .page-hero {
        min-height: 30vh;
        padding: 40px 0;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .page-hero p {
        font-size: 1.1rem;
    }

    .page-hero .breadcrumb {
        font-size: 0.9rem;
    }
}

/* Library Content */
.library-content {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.article-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.article-image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.article-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-info {
    padding: 20px;
    text-align: right;
}

.article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    justify-content: flex-end;
}

.article-meta span {
    color: #666;
    font-size: 0.9rem;
}

.article-meta .category {
    color: #1B3B8C;
    font-weight: 600;
}

.article-info h2 {
    color: #1B3B8C;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.article-info p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: #1B3B8C;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: inline-block;
}

.read-more:hover {
    color: #2850B8;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    border-radius: 8px;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a {
    color: #1B3B8C;
    background: #fff;
    border: 1px solid #e0e0e0;
}

.pagination a:hover {
    background: #f0f0f0;
    border-color: #1B3B8C;
}

.pagination .current {
    color: #fff;
    background: #1B3B8C;
    font-weight: 600;
}

.pagination .next {
    padding: 0 20px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-info h2 {
        font-size: 1.2rem;
    }

    .article-info p {
        font-size: 0.9rem;
    }

    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .page-hero {
        min-height: 30vh;
        padding: 40px 0;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .article-image {
        padding-top: 50%;
    }
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(27, 59, 140, 0.95);
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    border-right: 3px solid #FF4081;
    font-size: 0.95rem;
    text-align: right;
    direction: rtl;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification i {
    color: #FF4081;
    margin-left: 8px;
}

/* Disable pagination links */
.pagination a {
    pointer-events: none;
    opacity: 0.7;
}

/* Style read more links to look clickable */
.read-more {
    cursor: pointer;
} 