/*
 * School Notice Board Frontend Styles
 * Version: 1.3.0
 */

.snb-notice-board {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 20px;
    background-color: #f9f9f9;
    /*font-family: sans-serif;*/
}

.snb-notice-item {
    border-bottom: 1px dashed #ccc;
    padding: 20px 0;
}

.snb-notice-item:last-child {
    border-bottom: none;
}

.snb-notice-title {
    margin-top: 0;
    margin-bottom: 50px !important;
    font-size: 1.4em;
    color: #333;
}

.snb-notice-date {
    font-size: 0.9em;
    color: #777;
    margin-top: 0;
    font-style: italic;
}

.snb-notice-content {
    margin-top: 15px;
    line-height: 1.6;
}

.snb-notice-content p {
    margin-bottom: 1em;
}

.snb-download-button {
    display: inline-block;
    background-color: #0073aa; /* WordPress blue */
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.snb-download-button:hover {
    background-color: #005a87;
    color: #fff;
}

@keyframes blink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.snb-new-badge{
    background: red;
    color: yellow;
    padding: 5px;
    margin-right:10px;
    animation: blink 1s infinite;
    font-weight: 600;
    border-radius: 8px;
    font-size: 12px !important;
    flex-shrink: 0;
}

.snb-view-button{
    margin-left: 10px;
    background: white;
    color: red;
    padding: 5px;
    border-radius:8px;
    font-size: 12px;
    flex-shrink: 0;
}

/* --- Marquee Styles --- */
.snb-marquee-container {
    display: flex;
    align-items: center;
    /*background-color: #f9f9f9;*/
    /*border: 1px solid #e0e0e0;*/
    border-radius: 8px;
    padding: 10px;
    overflow: hidden;
    /*font-family: sans-serif;*/
    box-sizing: border-box;
}

.snb-marquee-controls button {
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    /*font-size: 16px;*/
    font-weight: bold;
    width: 35px;
    height: 35px;
    margin-right: 15px;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.snb-marquee-controls button:hover {
    background: #005a87;
}

.snb-marquee-wrapper {
    flex-grow: 1;
    overflow: hidden;
}

.snb-marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation-name: marquee-scroll;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-play-state: paused; /* Will be set to 'running' by JS */
}

.snb-marquee-content.is-animating {
    animation-play-state: running;
}

.snb-marquee-content.is-paused {
    animation-play-state: paused;
}

.snb-marquee-item {
    margin-right: 40px;
    display: inline-flex;
    align-items: center;
    /*font-size: 14px;*/
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%); /* Scrolls half the width because content is duplicated */
    }
}

.snb-marquee-controls button{
    padding: 0px !important;
}