/* Frontend Notice Board Styles */
.pcnb-notice-board {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin: 20px 0;
    border: 1px solid #e3f2fd;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.pcnb-header {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    padding: 20px 30px;
    color: white;
    position: relative;
}

.pcnb-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4caf50, #2e7d32);
}

.pcnb-title {
    margin: 0;
    font-size: 1.8em;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pcnb-icon {
    font-size: 1.4em;
    animation: bell-ring 2s ease-in-out infinite;
}

@keyframes bell-ring {
    0%, 100% { transform: rotate(0); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-10deg); }
    20%, 40%, 60%, 80% { transform: rotate(10deg); }
}

.pcnb-container {
    padding: 0;
    position: relative;
    overflow: hidden;
}

.pcnb-scroll-wrapper {
    position: relative;
    overflow: hidden;
    height: 350px;
}

.pcnb-notices-list {
    position: relative;
}

/* Scrolling Animation */
.pcnb-notice-board.scrolling-enabled .pcnb-notices-list {
    animation: scrollUp 40s linear infinite;
    animation-play-state: running;
}

@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* Speed Variations */
.pcnb-notice-board.scroll-slow .pcnb-notices-list {
    animation-duration: 60s !important;
}

.pcnb-notice-board.scroll-medium .pcnb-notices-list {
    animation-duration: 40s !important;
}

.pcnb-notice-board.scroll-fast .pcnb-notices-list {
    animation-duration: 20s !important;
}

/* Pause on Hover */
.pcnb-notice-board:hover .pcnb-notices-list {
    animation-play-state: paused;
}

/* No Scrolling */
.pcnb-notice-board.no-scroll .pcnb-notices-list {
    animation: none !important;
}

.pcnb-notice-item {
    background: white;
    margin: 15px;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #4caf50;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: all 0.3s ease;
    border: 1px solid #e0f2e9;
}

.pcnb-notice-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left-color: #2e7d32;
}

.pcnb-notice-icon {
    flex-shrink: 0;
    margin-top: 3px;
}

.pcnb-notice-content {
    flex-grow: 1;
}

.pcnb-notice-title {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    color: #2e7d32;
    font-weight: 600;
}

.pcnb-notice-title a {
    color: #2e7d32;
    text-decoration: none;
    transition: color 0.3s;
}

.pcnb-notice-title a:hover {
    color: #1b5e20;
    text-decoration: underline;
}

.pcnb-notice-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 0.95em;
}

.pcnb-notice-description p {
    margin: 0 0 8px 0;
}

.pcnb-notice-description p:last-child {
    margin-bottom: 0;
}

.pcnb-notice-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px dashed #e0e0e0;
    font-size: 0.85em;
    color: #666;
}

.pcnb-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pcnb-date::before {
    content: '📅';
    font-size: 0.9em;
}

/* Empty state */
.pcnb-notice-board.empty {
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

.pcnb-notice-board.empty p {
    margin: 0;
    font-size: 1.1em;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pcnb-title {
        font-size: 1.4em;
    }
    
    .pcnb-notice-item {
        padding: 15px;
        margin: 10px;
        flex-direction: column;
    }
    
    .pcnb-notice-icon {
        margin-bottom: 10px;
    }
    
    .pcnb-scroll-wrapper {
        height: 280px !important;
    }
}

@media (max-width: 480px) {
    .pcnb-scroll-wrapper {
        height: 250px !important;
    }
    
    .pcnb-notice-item {
        padding: 12px;
        margin: 8px;
    }
    
    .pcnb-notice-title {
        font-size: 1.1em;
    }
}