/* =====================================================
News Section CSS
===================================================== */

/* Padding utilities */
.py-60 {
    padding-top: 60px;
    padding-bottom: 60px;
}

.py-60 {
    padding: 60px 0;
}

.mb-8 {
    margin-bottom: 8px;
}

.mb-15 {
    margin-bottom: 15px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-40 {
    margin-bottom: 40px;
}

.pb-20 {
    padding-bottom: 20px;
}

.pt-20 {
    padding-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.me-2 {
    margin-right: 8px;
}

.text-end {
    text-align: right;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: #6c757d;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* =====================================================
Latest News Section
===================================================== */

.news-section {
    background: #fff;
}

.news-section h3 {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 30px;
}

/* News Item Styles */
.news-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.news-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: #007bff;
    transform: translateY(-5px);
}

.news-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    height: 200px;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-thumb img {
    transform: scale(1.05);
}

.news-date {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #007bff;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.news-item h5 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.news-item h5 a {
    color: #1a1a1a;
    text-decoration: none;
}

.news-item h5 a:hover {
    color: #007bff;
}

.news-item p {
    color: #6c757d;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.link-btn:hover {
    color: #0056b3;
    transform: translateX(5px);
}

.link-btn i {
    margin-left: 8px;
    transition: margin-left 0.3s ease;
}

.link-btn:hover i {
    margin-left: 12px;
}

/* =====================================================
Announcements/Notices Sidebar
===================================================== */

.sidebar {
    background: #fff;
}

.sidebar-widget {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    position: relative;
    padding-bottom: 15px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #007bff;
    border-radius: 2px;
}

/* Notice Styles */
.notice-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.notice-item {
    /* padding: 15px 0; */
    transition: all 0.3s ease;
}

.notice-item:hover {
    padding-left: 10px;
}

.notice-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.notice-badge.urgent {
    background: #ff6b6b;
    color: #fff;
}

.notice-badge.notice {
    background: #4ecdc4;
    color: #fff;
}

.notice-badge.update {
    background: #95e1d3;
    color: #333;
}

.notice-badge.info {
    background: #ffe66d;
    color: #333;
}

.notice-item h6 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.4;
}

.notice-item h6 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.notice-item h6 a:hover {
    color: #007bff;
}

.notice-item p {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.5;
    margin: 8px 0;
}

.notice-item small {
    font-size: 12px;
    color: #999;
}

/* =====================================================
News Detail Section
===================================================== */

.news-detail-section {
    background: #f8f9fa;
}

.news-detail-section h3 {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
}

.detail-card {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.detail-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 30px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background: #f1f3f5;
    border-radius: 6px;
    margin-bottom: 25px;
}

.detail-meta .meta-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #6c757d;
}

.detail-meta .meta-item i {
    margin-right: 8px;
    color: #007bff;
    font-size: 16px;
}

.detail-meta .meta-item a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.detail-meta .meta-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.detail-card h4 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 25px;
}

.detail-card h5 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 25px;
}

.detail-card p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.detail-card ul {
    list-style: none;
    padding: 0;
}

.detail-card ul li {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.detail-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #007bff;
    font-weight: bold;
    font-size: 16px;
}

.detail-card ul li strong {
    color: #1a1a1a;
}

.detail-card blockquote {
    border-left: 4px solid #007bff;
    padding: 20px 0 20px 25px;
    margin: 30px 0;
    font-style: italic;
    color: #555;
    background: #f8f9fa;
    padding: 20px;
    padding-left: 25px;
    border-radius: 4px;
}

.detail-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #ddd;
    margin-top: 40px;
    padding-top: 20px;
}

.detail-footer p {
    margin: 0;
    font-size: 14px;
}

.detail-footer a {
    color: #007bff;
    text-decoration: none;
    margin: 0 5px;
    transition: color 0.3s ease;
}

.detail-footer a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid #007bff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-outline-primary {
    color: #007bff;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #007bff;
    color: #fff;
}

.btn i {
    margin-right: 6px;
}

/* =====================================================
Responsive Design
===================================================== */

@media (max-width: 768px) {

    .news-section h3,
    .news-detail-section h3 {
        font-size: 24px;
    }

    .detail-card {
        padding: 20px;
    }

    .detail-meta {
        flex-direction: column;
        gap: 10px;
    }

    .detail-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .detail-footer .row {
        width: 100%;
    }

    .detail-footer .col-md-6 {
        flex: 0 0 100%;
    }

    .detail-footer .text-end {
        text-align: center;
    }

    .sidebar-widget {
        margin-top: 30px;
    }

    .news-thumb {
        height: 150px;
    }

    .detail-card h4 {
        font-size: 20px;
    }

    .detail-card p {
        font-size: 14px;
    }
}

@media (max-width: 576px) {

    .news-section,
    .news-detail-section {
        padding: 30px 0;
    }

    .detail-card {
        padding: 15px;
        box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
    }

    .detail-meta {
        padding: 15px;
        font-size: 12px;
    }

    .notice-item {
        padding: 12px 0;
        border-bottom: 1px solid #eee;
    }

    .notice-item:last-child {
        border-bottom: none;
    }

    .news-item {
        padding: 15px;
    }

    .news-item .row {
        flex-direction: column;
    }

    .news-item .col-md-4,
    .news-item .col-md-8 {
        flex: 0 0 100%;
    }

    .news-thumb {
        margin-bottom: 15px;
        height: 200px;
    }
}