        /* ===============================
   GLOBAL CONTAINER
================================ */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 60px 20px;
}

/* ===============================
   PAGE TITLE
================================ */
.container h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    background: linear-gradient(90deg, #6c63ff, #00c6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===============================
   GRID LAYOUT
================================ */
.digest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* ===============================
   CARD DESIGN
================================ */
.digest-card {
    position: relative;
    display: block;
    border-radius: 20px;
    overflow: hidden;
    background: #111;
    text-decoration: none;
    color: white;
    height: 320px;

    /* Glass feel */
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transition: all 0.4s ease;
}

/* IMAGE */
.digest-card img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* DARK OVERLAY */
.digest-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85) 10%,
        rgba(0,0,0,0.4) 50%,
        rgba(0,0,0,0.1) 100%
    );
}

/* ===============================
   CONTENT
================================ */
.digest-card .content {
    position: absolute;
    bottom: 0;
    padding: 20px;
    z-index: 2;
}

/* THEME TITLE */
.digest-card h4 {
    font-size: 20px;
    margin-bottom: 8px;
    line-height: 1.3;
}

/* DATE */
.digest-card p {
    font-size: 14px;
    opacity: 0.8;
}

/* ===============================
   HOVER EFFECTS (PREMIUM FEEL)
================================ */
.digest-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

/* IMAGE ZOOM */
.digest-card:hover img {
    transform: scale(1.1);
}

/* GLOW BORDER EFFECT */
.digest-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(120deg, #6c63ff, #00c6ff, #6c63ff);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.digest-card:hover::before {
    opacity: 1;
}

/* ===============================
   ANIMATION ON LOAD
================================ */
.digest-card {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 0.6s ease forwards;
}

.digest-card:nth-child(1) { animation-delay: 0.1s; }
.digest-card:nth-child(2) { animation-delay: 0.2s; }
.digest-card:nth-child(3) { animation-delay: 0.3s; }
.digest-card:nth-child(4) { animation-delay: 0.4s; }
.digest-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

    /* ===============================
   SEO INTRO SECTION
================================ */
.seo-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.page-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;

    background: linear-gradient(90deg, #6c63ff, #00c6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.seo-intro p {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
}

/* ===============================
   GRID SPACING IMPROVEMENT
================================ */
.digest-grid {
    margin-top: 30px;
}

/* ===============================
   PAGINATION
================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 50px;
}

/* BUTTONS */
.page-btn {
    padding: 10px 16px;
    border-radius: 10px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: linear-gradient(90deg, #6c63ff, #00c6ff);
    transform: translateY(-2px);
}

/* PAGE NUMBERS */
.page-numbers {
    display: flex;
    gap: 8px;
}

.page-numbers a,
.page-numbers span {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
}

/* NORMAL */
.page-numbers a {
    background: #f1f1f1;
    color: #333;
    transition: all 0.3s ease;
}

.page-numbers a:hover {
    background: #ddd;
}

/* CURRENT PAGE */
.page-numbers .current {
    background: linear-gradient(90deg, #6c63ff, #00c6ff);
    color: #fff;
    font-weight: bold;
}

/* ===============================
   SEARCH BAR
================================ */
.digest-search {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.search-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    background: #fff;
    flex-wrap: wrap;
    padding: 10px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.search-group input {
    border: none;
    padding: 10px;
    border-radius: 8px;
    background: #f5f5f5;
}

.search-group button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #6c63ff, #00c6ff);
    color: white;
    cursor: pointer;
}

/* ===============================
   FEATURED DIGEST
================================ */
.featured-digest {
    position: relative;
    display: block;
    height: 420px;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 40px;
    color: white;
    text-decoration: none;
}

.featured-digest img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-digest .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.featured-digest .content {
    position: absolute;
    bottom: 0;
    padding: 30px;
}

.featured-digest h2 {
    font-size: 32px;
    margin: 10px 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
}

/* GLOW EFFECT */
.featured-digest::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(120deg, #6c63ff, #00c6ff);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    opacity: 0.6;
}

/* ===============================
   CALENDAR
================================ */
.calendar-box {
    text-align: center;
    margin-bottom: 30px;
}

.calendar-box input {
    padding: 10px;
    border-radius: 10px;
    border: none;
    background: #f1f1f1;
}



/* ===============================
   MOBILE OPTIMIZATION
================================ */
@media (max-width: 768px) {

    .page-title {
        font-size: 30px;
    }

    .seo-intro p {
        font-size: 14px;
    }

    .pagination {
        gap: 6px;
    }

    .page-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .container h1 {
        font-size: 30px;
    }

    .digest-card {
        height: 260px;
    }
}