/* about-sidebar.css */

.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(23, 50, 77, 0.06);
    border: 1px solid rgba(23, 50, 77, 0.05);
    backdrop-filter: blur(8px);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.sidebar-card:hover {
    box-shadow: 0 18px 50px rgba(23, 50, 77, 0.12);
    transform: translateY(-4px);
}

.sidebar-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    background: linear-gradient(135deg, #0f766e 0%, #115e59 60%, #0d4f47 100%);
    position: relative;
    overflow: hidden;
}

.sidebar-card__header::after {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: "";
}

.sidebar-card__icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1.1rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-card__title {
    margin: 0;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.sidebar-card__body {
    padding: 20px 22px;
}

.sidebar-card__footer {
    padding: 0 22px 20px;
    text-align: center;
}

/* ======= Categories ======= */

.category-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    background: rgba(15, 118, 110, 0.06);
    border: 1px solid rgba(15, 118, 110, 0.12);
    border-radius: 30px;
    text-decoration: none;
    color: #334155;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-pill:hover {
    background: linear-gradient(to right, #0f766e, #115e59);
    border-color: #0f766e;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.25);
    transform: translateY(-2px);
}

/* ======= Notices ======= */

.sidebar-notice-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-notice-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.sidebar-notice-item:hover {
    background: rgba(15, 118, 110, 0.04);
    border-color: rgba(15, 118, 110, 0.1);
    transform: translateX(4px);
}

.sidebar-notice-item:hover .sidebar-notice-title {
    color: #0f766e;
}

.sidebar-notice-item:hover i {
    color: #0f766e;
    transform: translateX(3px);
}

.sidebar-notice-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 6px 4px;
    background: rgba(240, 244, 248, 0.8);
    border-radius: 10px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.sidebar-notice-item:hover .sidebar-notice-date {
    background: rgba(15, 118, 110, 0.08);
    border-color: rgba(15, 118, 110, 0.2);
    color: #0f766e;
}

.sidebar-notice-day {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

.sidebar-notice-month {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 2px;
}

.sidebar-notice-content {
    flex: 1;
    min-width: 0;
}

.sidebar-notice-title {
    margin: 0 0 3px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    color: #2d3748;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.sidebar-notice-meta {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 400;
}

.sidebar-notice-item > i {
    font-size: 11px;
    color: #cbd5e1;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-view-all-sidebar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(to right, #0f766e, #115e59);
    color: #ffffff;
    padding: 9px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(15, 118, 110, 0.2);
    transition: all 0.3s ease;
}

.btn-view-all-sidebar:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 118, 110, 0.3);
}

.btn-view-all-sidebar i {
    margin-left: 3px;
    transition: transform 0.3s ease;
}

.btn-view-all-sidebar:hover i {
    transform: translateX(3px);
}

@media (max-width: 991px) {
    .sidebar-card__header {
        padding: 16px 20px;
    }

    .sidebar-card__body {
        padding: 16px 18px;
    }

    .sidebar-card__footer {
        padding: 0 18px 18px;
    }

    .category-pill {
        padding: 6px 12px;
        font-size: 12.5px;
    }
}

@media (max-width: 576px) {
    .about-sidebar {
        gap: 20px;
    }

    .sidebar-notice-item {
        padding: 10px 12px;
    }

    .sidebar-notice-title {
        font-size: 12.5px;
    }

    .sidebar-notice-date {
        min-width: 46px;
        padding: 5px 3px;
    }

    .sidebar-notice-day {
        font-size: 1rem;
    }
}