.news-sidebar-left .sidebar-calendar-right {
    padding-left: 5px;
    padding-right: 5px;
}

.calendar-iframe-container {
    width: 100%;
    height: 295px;
    overflow: hidden;
    border-radius: 8px;
}

.calendar-iframe-container iframe[data-tec-events-ece-iframe="true"] {
    width: 100%;
    height: 295px;
    max-width: 100%;
    border: none;
}

.upcoming-events-list {
    margin-top: 20px;
}

.upcoming-events-title {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

.upcoming-events-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.upcoming-event-item a {
    text-decoration: none;
    display: block;
}

.event-date {
    font-size: 0.85rem;
    color: #0F6B7D;
    font-weight: 600;
    margin-bottom: 5px;
}

.event-time {
    font-weight: 400;
    color: #999;
}

.event-title {
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

.no-events-message {
    color: #999;
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
}

.calendar-inactive-message {
    color: #999;
    font-size: 0.9rem;
}

/* ===== LAYOUT ===== */
.news-page-wrapper {
    display: flex;
    min-height: calc(100vh - var(--header-height, 150px));
    background: #f5f7f3;
}

/* ===== SIDEBAR ===== */
.news-sidebar-left {
    width: 280px;
    background: linear-gradient(180deg, #B56CC5 0%, #1892AE 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    position: sticky;
    top: var(--header-height, 150px);
    height: calc(100vh - var(--header-height, 150px));
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-shrink: 0;
}
.news-sidebar-left::-webkit-scrollbar { display: none; }

/* ===== NAV LINKS ===== */
.sidebar-nav-container {
    padding: 0;
}
.nav-group {
    margin-bottom: 0.5rem;
}
.nav-group:first-child .nav-link-btn {
    margin-top: 12px;
}
.nav-link-btn {
    width: calc(100% - 20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 10px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    margin: 3px 10px;
    color: #fff;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.2s;
}
.nav-link-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #1892AE;
    text-decoration: none;
}

/* ===== Content ===== */
.news-content {
    flex: 1;
    background: var(--background);
    min-width: 0;
    overflow-y: visible;
    min-height: 100vh;
    padding-bottom: 50px;
}
.news-content::-webkit-scrollbar { display: none; }

/* ===== Page Header ===== */
.news-page-header {
    text-align: center;
    padding: 25px;
}
.news-page-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin: 0;
}
.page-subtitle {
    margin: 0.5rem 0 0 0;
    color: #734c75;
    font-size: 1.1rem;
}

/* ===== Cards ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 30px 30px 30px;
}
.card {
    background: white;
    border: 1px solid #e8e6e3;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.card:hover {
    transform: translateY(-5px);
    border-color: #0F6B7D;
    box-shadow: 0 8px 20px rgba(24, 146, 174, 0.25);
}
.card h3 {
    padding: 15px 15px 0 15px;
    margin: 0;
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 600;
}
.card h3 a {
    color: inherit;
    text-decoration: none;
}
.card-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    margin: 15px 0 5px 0;
    border-radius: 4px;
    background: #f5f5f5;
}
.card-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
}
.card-date {
    display: block;
    padding: 0 15px 10px 15px;
    color: #7f8c8d;
    font-size: 0.85rem;
    font-style: italic;
}
.card p {
    padding: 0 15px;
    margin: 10px 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}
.card-footer {
    padding: 15px;
    justify-content: space-between;
    background: transparent;
    border-top: none;
}

.sidebar-calendar-right { padding: 10px; }
.sidebar-calendar-right .piecal-calendar { width: 100%; }
.sidebar-calendar-right .piecal-calendar table { width: 100%; font-size: 11px; }
.sidebar-calendar-right .piecal-calendar th { font-size: 10px; padding: 5px; }
.sidebar-calendar-right .piecal-calendar td { padding: 5px; text-align: center; }

/* ===== Upcoming Events ===== */
.upcoming-event-item {
    margin-bottom: 15px !important;
    padding: 12px !important;
    background: #f5f7f3 !important;
    border-radius: 8px !important;
    border: 1px solid #fff !important;
    margin-left: 3px !important;
    margin-right: 3px !important;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .news-sidebar-left { display: none; }
    .news-page-wrapper { flex-direction: column; }
    .cards-grid {
        padding: 0 15px 30px 15px;
        gap: 25px;
    }
    .card {
        min-height: auto;
    }
    .card-image {
        max-height: 250px;
    }
    .news-page-header h1 {
        font-size: 2rem;
    }
}
