/* NEWS SHORTCODE STYLES */
.latest-news.box {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.news-item {
    display: flex;
    flex-direction: column; /* Mobile-first: vertical stack */
    margin-bottom: 24px;
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.news-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.news-thumbnail {
    margin-bottom: 15px;
    width: 100%;
}

.news-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.news-content {
    flex: 1;
}

.news-title {
    color: #1a1a1a;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px 0;
    text-decoration: none;
    display: block;
    transition: color 0.2s;
}

.news-title:hover {
    color: #0056b3;
    text-decoration: none;
}

.news-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #4b5563;
    text-align: justify;
    font-size: 0.95rem;
}

.news-more {
    display: inline-flex;
    align-items: center;
    color: #0056b3;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.news-more:hover {
    text-decoration: underline;
    transform: translateX(3px);
}

/* DESKTOP LAYOUT (SIDE BY SIDE) */
@media (min-width: 768px) {
    .news-item {
        flex-direction: row; /* Horizontal for desktop */
        align-items: flex-start;
        padding: 25px;
    }

    .news-thumbnail {
        flex: 0 0 240px; /* Fixed width for image */
        margin-right: 25px;
        margin-bottom: 0;
    }

    .news-title {
        font-size: 1.6rem;
    }
}

/* ARCHIVE BUTTON */
.latest-news .archive-btn-container {
    margin-top: 10px;
}

.archive-btn {
    background: #0f172a;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    border: none;
    transition: background 0.2s;
    cursor: pointer;
}

.archive-btn a {
    color: #ffffff;
    text-decoration: none;
}

.archive-btn:hover {
    background: #334155;
}

/* EVENTS BLOG LAYOUT */
.events-blog-layout {
    margin-top: 30px;
}

.event-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 10px;
    display: flex;
    flex-direction: column; /* Mobile-first stacking */
}

.event-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.event-image-container {
    position: relative;
    width: 100%;
}

.event-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.event-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #444;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 2;
}

.event-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.event-meta {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 12px;
    font-weight: 500;
}

.meta-sep {
    margin: 0 8px;
    color: #cbd5e1;
}

.event-title {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    margin-top: 0;
}

.featured-event .event-title {
    font-size: 1.8rem;
}

.grid-event .event-title {
    font-size: 1.25rem;
}

.event-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s;
}

.event-title a:hover {
    color: #2563eb;
}

.event-excerpt {
    color: #475569;
    line-height: 1.6;
    font-size: 0.95rem;
    text-align: justify;
}

/* Featured Event Desktop Layout */
@media (min-width: 992px) {
    .featured-event {
        flex-direction: row;
        align-items: center;
        padding: 20px;
    }

    .featured-event .event-image-container {
        flex: 0 0 50%;
        padding-right: 30px;
    }

    .featured-event .event-content {
        flex: 1;
        padding: 0;
    }

    .featured-event .event-img {
        min-height: 350px;
        height: 100%;
    }
}

.grid-event .event-img {
    height: 220px;
}

/* Notice Styling */
ul.list-group.notice-shortcode {
    background: white;
    margin: 0px 0px 20px 0px;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.notice-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.notice-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.notice-date {
    text-align: center;
    font-weight: 700;
    margin-right: 15px;
    border: 2px solid #0f172a;
    padding: 8px;
    border-radius: 8px;
    min-width: 60px;
    color: #0f172a;
}

.notice-title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
    color: #1a1a1a;
}

.notice-title a {
    color: inherit;
    text-decoration: none;
}

.notice-title a:hover {
    color: #0056b3;
}