.dashboard-section {
    min-height: 100vh
}

.calendar-wrapper {
    background: #fff;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 25px 45px -12px rgb(0 0 0 / .15);
    border: 1px solid rgb(244 161 0 / .15)
}

.news-wrapper {
    background: #fff;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 25px 45px -12px rgb(0 0 0 / .1);
    border: 1px solid rgb(244 161 0 / .15);
    position: sticky;
    top: 20px
}

.news-header {
    background: linear-gradient(135deg, #000000, #7b101d);
    padding: 20px 24px;
    color: #fff
}

.news-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px
}

.news-header p {
    font-size: .75rem;
    opacity: .9;
    margin-top: 6px
}

.ticker-container {
    background: #fffef7;
    padding: 20px 16px;
    border-bottom: 1px solid #ffe6c2
}

.simple-marquee {
    background: #fef5ea;
    padding: 16px 20px;
    border-radius: 20px;
    margin-bottom: 16px
}

.simple-marquee marquee {
    font-size: 1rem;
    font-weight: 500;
    color: #b45309;
    line-height: 1.5
}

.simple-marquee marquee i {
    margin-right: 12px;
    color: #f4a100
}

.notification-list {
    padding: 8px 0 16px 0
}

.notification-item {
    padding: 16px 24px;
    border-bottom: 1px solid #f0f2f5;
    transition: background 0.2s;
    cursor: default
}

.notification-item:hover {
    background: #fefaf5
}

.notification-title {
    font-weight: 700;
    font-size: .9rem;
    color: #0f2b3d;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px
}

.notification-title i {
    color: #f4a100;
    font-size: .8rem
}

.notification-time {
    font-size: .7rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    background: linear-gradient(135deg, #7b101c, #7b101d);
    color: #fff;
    flex-wrap: wrap;
    gap: 15px
}

.nav-buttons {
    display: flex;
    gap: 12px
}

.nav-btn {
    background: rgb(255 255 255 / .15);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s
}

.nav-btn:hover {
    background: #f4a100
}

.month-year-display {
    font-size: 1.5rem;
    font-weight: 700
}

.today-btn {
    background: rgb(172 101 110);
    border: none;
    padding: 8px 18px;
    border-radius: 40px;
    color: #fff;
    font-weight: 600;
    font-size: .85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px
}

.today-btn:hover {
    background: #f4a100
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #fefbf5;
    padding: 14px 0;
    text-align: center;
    font-weight: 700;
    color: #f4a100;
    font-size: .85rem;
    border-bottom: 1px solid #eef2f6
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #fff;
    overflow-x: auto
}

.calendar-grid::-webkit-scrollbar {
    height: 6px
}

.calendar-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px
}

.calendar-grid::-webkit-scrollbar-thumb {
    background: #f4a100;
    border-radius: 10px
}

.calendar-grid::-webkit-scrollbar-thumb:hover {
    background: #d88c00
}

.calendar-day {
    min-height: 100px;
    border-right: 1px solid #f0f2f5;
    border-bottom: 1px solid #f0f2f5;
    padding: 8px;
    transition: background 0.2s
}

.calendar-day:nth-child(7n) {
    border-right: none
}

.calendar-day:hover {
    background: #fefaf5
}

.day-number {
    font-weight: 700;
    font-size: .85rem;
    color: #1e293b;
    display: inline-block;
    width: 28px;
    height: 28px;
    text-align: center;
    line-height: 28px;
    border-radius: 50%;
    margin-bottom: 6px
}

.other-month .day-number {
    color: #94a3b8
}

.today .day-number {
    background: #f4a100;
    color: #fff
}

.event-badge {
    display: block;
    font-size: .65rem;
    padding: 3px 6px;
    border-radius: 16px;
    margin-top: 3px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    text-align: left;
    border: none;
    width: 100%;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.event-badge:hover {
    transform: translateX(2px);
    filter: brightness(.95)
}

.event-exam {
    background: #fee2e2;
    color: #b91c1c;
    border-left: 3px solid #dc2626
}

.event-holiday {
    background: #dcfce7;
    color: #166534;
    border-left: 3px solid #22c55e
}

.event-religious {
    background: #fed7aa;
    color: #9a3412;
    border-left: 3px solid #f97316
}

.event-school {
    background: #dbeafe;
    color: #1e40af;
    border-left: 3px solid #3b82f6
}

.event-other {
    background: #f3e8ff;
    color: #6b21a5;
    border-left: 3px solid #a855f7
}

.event-details-panel {
    margin: 20px 24px 24px 24px;
    background: #fefbf5;
    border-radius: 24px;
    border: 1px solid rgb(244 161 0 / .2);
    overflow: hidden
}

.panel-header {
    background: #fff5e8;
    padding: 14px 20px;
    border-bottom: 1px solid #ffe6c2
}

.panel-header h4 {
    font-size: .9rem;
    font-weight: 700;
    color: #f4a100;
    display: flex;
    align-items: center;
    gap: 8px
}

.panel-content {
    padding: 16px 20px
}

.event-detail-mini {
    display: flex;
    gap: 12px;
    align-items: flex-start
}

.event-detail-mini i {
    font-size: 1.2rem;
    color: #f4a100;
    margin-top: 2px
}

.event-detail-mini div {
    flex: 1
}

.event-detail-title {
    font-weight: 800;
    font-size: .95rem;
    color: #0f2b3d;
    margin-bottom: 4px
}

.event-detail-date {
    font-size: .7rem;
    color: #64748b;
    margin-bottom: 6px
}

.event-detail-desc {
    font-size: .8rem;
    color: #475569;
    line-height: 1.4
}

.empty-selection {
    text-align: center;
    padding: 20px;
    color: #94a3b8;
    font-size: .8rem
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 24px 20px 24px;
    border-top: 1px solid #eef2f6;
    background: #fafcff
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .7rem;
    color: #475569
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px
}

@media (max-width:1000px) {
    .two-columns {
        grid-template-columns: 1fr;
        gap: 32px
    }

    .news-wrapper {
        position: static
    }

    .calendar-day {
        min-height: 85px
    }
}

@media (max-width:768px) {
    .calendar-nav {
        flex-direction: column;
        text-align: center
    }

    .month-year-display {
        font-size: 1.2rem
    }

    .event-badge {
        font-size: .6rem;
        white-space: normal;
        word-break: break-word;
        display:none;
    }
}