/* ============================================
   NOTICE BOARD - COMPACT MODERN DESIGN
   ============================================ */

.notice-highlights-container {
    position: absolute;
    top: 50%;
    right: 6%;
    transform: translateY(-50%);
    width: 350px;
    z-index: 100;
}

.notice-board {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    overflow: hidden;
    border: 2px solid #c30a10;
}

/* ============================================
   COMPACT HEADER - SINGLE LINE
   ============================================ */

.notice-header {
    background: linear-gradient(135deg, #c30a10 0%, #9a0000 100%);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-bell {
    font-size: 18px;
    color: #fff;
    animation: bellRing 2s ease-in-out infinite;
}

@keyframes bellRing {
    0%, 100% { transform: rotate(0deg); }
    5% { transform: rotate(15deg); }
    10% { transform: rotate(-15deg); }
    15% { transform: rotate(10deg); }
    20% { transform: rotate(-10deg); }
    25% { transform: rotate(0deg); }
}

.notice-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-count {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.25);
    padding: 4px 10px;
    border-radius: 12px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 8px #4ade80;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

/* ============================================
   CONTENT SECTION
   ============================================ */

.notice-content {
    height: 400px;
    overflow: hidden;
    position: relative;
}

.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notice-list li {
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.notice-list li:nth-child(odd) {
    background: rgba(255, 255, 255, 0.5);
}

.notice-list li:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

.notice-list li:hover {
    background: rgba(195, 10, 16, 0.1);
    padding-left: 18px;
}

.notice-list li.urgent-item {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.15) 0%, rgba(255, 255, 255, 0.5) 100%);
    border-left: 3px solid #ef4444;
}

.notice-list li.urgent-item:hover {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.25) 0%, rgba(255, 255, 255, 0.5) 100%);
}

.notice-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

/* ============================================
   BADGES - COMPACT & COLORFUL
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 65px;
    padding: 4px 8px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: 5px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.notice-list li:hover .badge {
    transform: scale(1.05);
}

/* NEW - Vibrant Green */
.badge-new {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
}

/* URGENT/ALERT - Red */
.badge-urgent {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    animation: urgentPulse 1.5s infinite;
}

@keyframes urgentPulse {
    0%, 100% { box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 2px 12px rgba(239, 68, 68, 0.7); }
}

/* CALENDAR - Blue shades */
.badge-calendar {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
}

/* INFO/BOOKS - Purple */
.badge-info {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    color: #fff;
}

/* ADMISSION - Orange/Amber */
.badge-admission {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
}

/* EVENT - Teal */
.badge-event {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: #fff;
}

/* ============================================
   NOTICE TEXT
   ============================================ */

.notice-text {
    font-size: 12.5px;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.35;
    flex: 1;
    transition: color 0.25s ease;
}

.notice-list li:hover .notice-text {
    color: #c30a10;
}

/* Link Icon */
.link-icon {
    font-size: 11px;
    color: #9ca3af;
    opacity: 0;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.notice-list li:hover .link-icon {
    opacity: 1;
    color: #c30a10;
}

/* ============================================
   COMPACT FOOTER
   ============================================ */

.notice-footer {
    background: #1f2937;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.notice-footer i {
    font-size: 12px;
}

/* Paused State */
.notice-content.paused ~ .notice-footer {
    background: #374151;
    color: #fbbf24;
}

.notice-content.paused ~ .notice-footer i::before {
    content: "\ea1c"; /* play icon */
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1400px) {
    .notice-highlights-container {
        width: 320px;
        right: 4%;
    }
}

@media (max-width: 1200px) {
    .notice-highlights-container {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        width: 100%;
        max-width: 400px;
        margin: 20px auto;
    }
}

@media (max-width: 576px) {
    .notice-highlights-container {
        max-width: 100%;
        margin: 10px;
    }
    
    .notice-header {
        padding: 10px 14px;
    }
    
    .notice-title {
        font-size: 14px;
    }
    
    .notice-content {
        height: 320px;
    }
    
    .notice-list li {
        padding: 10px 12px;
    }
    
    .badge {
        min-width: 55px;
        font-size: 8px;
        padding: 3px 6px;
    }
    
    .notice-text {
        font-size: 11.5px;
    }
}

/* ============================================
   GLASS EFFECT ENHANCEMENT
   ============================================ */

@supports (backdrop-filter: blur(12px)) {
    .notice-board {
        background: rgba(255, 255, 255, 0.82);
    }
}

/* ============================================
   SCROLLBAR
   ============================================ */

.notice-content::-webkit-scrollbar {
    width: 4px;
}

.notice-content::-webkit-scrollbar-track {
    background: transparent;
}

.notice-content::-webkit-scrollbar-thumb {
    background: #c30a10;
    border-radius: 4px;
}