/* ============================================
   PRESS & PUBLICATION | LNBTI
   Full Stylesheet (with post date + month divider)
   Author: DK + Hasala
   ============================================ */

/* 🔹 Main Container */
.naf-container {
    margin: 20px auto;
    max-width: 1000px;
    font-family: "Segoe UI", sans-serif;
    padding: 0 15px;
}

/* 🔹 Year + Month Inline Filter Container */
.naf-filter-month-inline {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 25px;
    padding: 15px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* 🔹 Year Dropdown */
.naf-filter-month-inline select {
    padding: 6px 14px;
    border-radius: 25px;
    border: 1px solid #6c5ce7;
    background: linear-gradient(135deg, #f0f4f8, #ffffff);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    min-width: 100px;
    color: #2d3436;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.naf-filter-month-inline select:hover {
    background: #fff;
    border-color: #a29bfe;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

/* 🔹 Month Buttons Container */
.naf-months {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

/* 🔹 Month Button */
.naf-month-btn {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.35s ease;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 3px 10px rgba(108, 92, 231, 0.25);
}

.naf-month-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 15px rgba(108, 92, 231, 0.35);
    background: linear-gradient(135deg, #7d6df1, #b1a6ff);
}

/* 🔹 Active Month Button */
.naf-month-btn.active {
    background: linear-gradient(135deg, #ff7675, #fd79a8);
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(255, 118, 117, 0.4);
    transform: scale(1.05);
}

/* ============================================
   🔸 Month Section + Divider
   ============================================ */
.naf-month-section {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(0,0,0,0.2); /* Divider line */
    animation: fadeIn 0.6s ease;
}

/* 🔸 Month Title */
.naf-month-title {
    font-size: 25px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 20px;
    border-left: 4px solid #6c5ce7;
    padding-left: 10px;
}

/* ============================================
   🔸 News Grid + Cards
   ============================================ */
.naf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    align-items: stretch;
}

/* 🔸 Individual Card */
.naf-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    color: #000;
}

.naf-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* 🔸 Card Image */
.naf-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    border-bottom: 1px solid #eee;
}

/* 🔸 Post Published Date (NEW) */
.naf-date {
    font-size: 12px;
    color: #555;
    margin-top: 8px;
    margin-bottom: 6px;
    font-weight: 500;
}

/* 🔸 Card Title (2 lines max) */
.naf-card h3 {
    font-size: 14px;
    margin: 10px 8px 6px;
    line-height: 1.4;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.naf-card h3 a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
}

.naf-card h3 a:hover {
    color: #0073aa;
}

/* 🔸 Read More Link */
.naf-read-more {
    display: inline-block;
    margin: 8px 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: #e74c3c;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.naf-read-more:hover {
    color: #c0392b;
    transform: translateX(3px);
}

/* ============================================
   🔸 Animations
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   🔸 Responsive: Tablets (768px - 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .naf-container {
        padding: 0 12px;
    }

    .naf-filter-month-inline {
        padding: 12px 16px;
        gap: 8px;
    }

    .naf-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }

    .naf-card h3 {
        font-size: 13px;
    }

    .naf-read-more {
        font-size: 12px;
    }

    .naf-filter-month-inline select {
        font-size: 13px;
        padding: 6px 14px;
        min-width: 90px;
    }

    .naf-month-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* ============================================
   🔸 Responsive: Mobile Phones (up to 767px)
   ============================================ */
@media (max-width: 767px) {
    .naf-container {
        padding: 0 10px;
        margin: 15px auto;
    }

    .naf-filter-month-inline {
        padding: 12px 14px;
        flex-direction: column;
        align-items: stretch;
    }

    .naf-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .naf-card h3 {
        font-size: 12px;
    }

    .naf-read-more {
        font-size: 11px;
    }

    .naf-filter-month-inline select {
        width: 100%;
        font-size: 12px;
        padding: 6px 12px;
    }

    .naf-months {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .naf-month-btn {
        flex: 1 1 calc(33% - 8px);
        min-width: 80px;
        text-align: center;
        padding: 8px 10px;
        font-size: 11px;
    }

    .naf-month-title {
        font-size: 18px;
    }
}
