* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    /*background: #f5f7fc;*/
    background-image: url("background1.jpg");
    padding: 24px 16px;
    color: #1e293b;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    font-weight: 600;
    font-size: 2.2rem;
    color: #0b1a33;
    /* background: white; */
    /*padding: 28px 20px;*/
    border-radius: 24px;
    /* margin-bottom: 20px; */
    /*box-shadow: 0 8px 20px rgba(0,0,0,0.03);*/
}

h1 {
    font-weight: 700;
    color: black;
    text-shadow: 
    -1px -1px 0 white,
    1px -1px 0 white,
    -1px 1px 0 white,
    1px 1px 0 white;
}

.home {
    color: white;
    padding-left: 15px;
}

.home a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Card Grid - 3 columns */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 10px 0 32px;
}

.card {
    background: white;
    border-radius: 24px;
    padding: 20px 20px 24px;
    box-shadow: 0 10px 30px rgba(0,20,50,0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0,20,50,0.10);
}

.card-header {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: #0f2b54;
    margin-bottom: 14px;
    min-height: 3.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    /*overflow: hidden;*/
}

.card-image {
    margin: 5 -4px 16px -4px;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #f0f4fe;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #2d3a52;
    flex: 1;
    margin-top: 12px;
    margin-bottom: 12px;
    display: -webkit-box;
    /*-webkit-line-clamp: 4; */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid #eef2f8;
    padding-top: 14px;
    margin-top: 4px;
}

.card-date {
    font-size: 0.85rem;
    color: #5f6f8a;
    background: #f0f4fc;
    padding: 4px 14px;
    border-radius: 40px;
}

.card-readmore a {
    font-weight: 500;
    font-size: 0.9rem;
    color: #1f5f9e;
    text-decoration: none;
    background: #e7eefb;
    padding: 6px 18px;
    border-radius: 40px;
    transition: background 0.2s, color 0.2s;
}

.card-readmore a:hover {
    background: #1f5f9e;
    color: white;
}

/* ============================================
   page-navigation - Compact style matching screenshot
   <<  <  | 1 | 2 | ●3● | 4 | 5 |  >  >>
   ============================================ */
.page-navigation {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    background: white;
    /* background: transparent;*/
    /* padding: 10px 16px; */
    /* margin: 16px 0; */
    border-radius: 24px;
    font-size: 0.95rem;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #1e293b;
    overflow-x: auto;
}

.page-navigation .pipe {
    color: #94a3b8;
    padding: 0 2px;
    font-weight: 400;
    user-select: none;
}

.page-navigation .ellipsis {
    color: #94a3b8;
    padding: 0 2px;
    user-select: none;
}

.page-navigation a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 28px;
    /*padding: 0 6px;*/
    padding-top: 5px; 
    padding-bottom: 5px;   
    text-decoration: none;
    color: #1e293b;
    border-radius: 50%;
    transition: background 0.15s ease, color 0.15s ease;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
}

.page-navigation a:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.page-navigation .first,
.page-navigation .prev,
.page-navigation .next,
.page-navigation .last {
    min-width: 28px;
    height: 28px;
    padding: 0 4px;
    color: #334155;
    border-radius: 6px;
    font-size: 0.9rem;
}

.page-navigation .first:hover,
.page-navigation .prev:hover,
.page-navigation .next:hover,
.page-navigation .last:hover {
    background: #e2e8f0;
}

.page-navigation .disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 4px;
    color: #cbd5e1;
    cursor: not-allowed;
    user-select: none;
}

.page-navigation .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    margin-top: 5px;
    margin-bottom: 5px;
    background: #1e3a5f;
    color: #ffffff;
    font-weight: 600;
    border-radius: 90%;
    font-size: 0.95rem;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(30, 58, 95, 0.25);
}

.page-navigation .current:hover {
    background: #1e3a5f;
    color: #ffffff;
}

.footer {
    text-align: center;
    margin-top: 30px;
    color: #999;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 820px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    h1 {
        font-size: 1.8rem;
    }
    .page-navigation {
        padding: 8px 12px;
        font-size: 0.85rem;
        gap: 2px;
    }
    .page-navigation a {
        min-width: 26px;
        height: 26px;
        font-size: 0.85rem;
    }
    .page-navigation .current {
        min-width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }
    .page-navigation .pipe {
        padding: 0 1px;
    }
}

@media (max-width: 540px) {
    .card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-navigation {
        padding: 6px 8px;
        font-size: 0.8rem;
        gap: 1px;
    }
    .page-navigation a {
        min-width: 24px;
        height: 24px;
        font-size: 0.8rem;
        padding: 0 4px;
    }
    .page-navigation .current {
        min-width: 26px;
        height: 26px;
        font-size: 0.8rem;
    }
    .page-navigation .first,
    .page-navigation .prev,
    .page-navigation .next,
    .page-navigation .last,
    .page-navigation .disabled {
        min-width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
    .page-navigation .pipe {
        padding: 0 1px;
    }

    .container .inner a {
    color: #0066cc;
    text-decoration: none;
}

.container .inner a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    /* color: #666; */
    color: white;
    font-size: 0.8rem;
    background: white;
    border-radius: 0 0 10px 10px;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 820px) {
    .clearfix {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .clearfix {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
