/* University / units and departments */
.welcome .welcome-image {
    display: none;
}
.welcome .welcome-content {
    display: none;
}
div.welcome {
    padding: 0 !important;
}


.news-item {
    display: flex;
    gap: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 1rem;
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 0.3rem;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    /* border-color: var(--primary); */
}

.news-item:last-child {
    margin-bottom: 0;
}

.news-image {
    position: relative;
    flex-shrink: 0;
    width: 120px;
    height: 100px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.news-date {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: var(--primary);
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 2px 8px rgba(243, 178, 0, 0.3);
}

.date-day {
    display: block;
    font-size: 1rem;
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    line-height: 1;
}

.news-content {
    flex: 1;
}

.news-title {
    margin-bottom: 0.5rem;
}

.news-title a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: var(--secondary-blue);
    text-decoration: underline;
}

.news-description {
    color: var(--light-text);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    /* -webkit-line-clamp: 2; */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* No Activities State */
.no-activities {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--light-text);
}

.no-activities i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-activities h5 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    
    .news-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1.2rem;
    }
    
    .news-image {
        width: 100%;
        height: 150px;
    }
    
    .activities-list {
        padding: 1rem;
        max-height: 400px;
    }
}

@media (max-width: 576px) {

    .news-count {
        font-size: 0.75rem;
    }
    
    .news-item {
        padding: 1rem;
    }
    
    .news-date {
        top: -5px;
        right: -5px;
        padding: 0.3rem 0.5rem;
    }
    
    .date-day {
        font-size: 0.9rem;
    }
    
    .date-month {
        font-size: 0.65rem;
    }

    .main-content-body-container{
		padding: 0;
	}
}





/* Filter Date */

.filter-card {
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    max-width: 440px;
    margin: 2rem 0;
    overflow: hidden;
}

/* Header (Clickable) */
.filter-header {
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.filter-header h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary);
}

.filter-header i {
    color: var(--accent);
}

.toggle-icon {
    transition: transform 0.3s ease;
}

/* Expanded State */
.filter-card.open .toggle-icon {
    transform: rotate(180deg);
}

/* Collapsible Content */
.filter-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.filter-card.open .filter-content {
    max-height: 800px;
}

/* Inner padding */
.filter-body {
    padding: 0 2rem 2rem;
}

/* Calendar Header */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.calendar-header span {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary);
}

.nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--light);
    cursor: pointer;
}

.nav-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.6rem;
}

.calendar-day-name {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--light-text);
}

.calendar-day {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    background: var(--light);
    color: var(--dark-text);
}

/* News Days */
.calendar-day.has-news {
    background: var(--primary);
    color: var(--white);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,45,88,0.25);
}

.calendar-day.has-news:hover {
    background: var(--accent);
    color: var(--primary);
}

.calendar-day.selected {
    outline: 2px solid var(--accent);
}

.calendar-day.selected {
    outline: 2px solid var(--accent);
}

.calendar-day.empty {
    background: transparent;
    pointer-events: none;
}

@media (max-width: 576px) {
    .filter-header,
    .filter-body {
        padding: 1.25rem;
    }
}

/* for SharePoint */
.page-content{
    padding: 0 0.7rem;
}

@media (max-width: 576px) {
    .page-content{
        padding: 0;
    }
}