/* ========================================= */
/* CBSE STYLE NOTICE BOARD STYLING           */
/* ========================================= */

.updates-section {
    padding: 40px 20px;
    /* background-color: #f4f6f9; Light background for contrast */
    display: flex;
    justify-content: center;
   
    
}

.updates-container {
    position: relative;
    width: 100%;
    max-width: 900px; /* Thoda bada box image ke hisab se */
    margin-top: 20px;
}

/* Overlapping Title Badge */
.updates-header {
    position: absolute;
    top: -18px; /* Border ke upar nikalne ke liye */
    left: 20px;
    background-color: #007A83; /* CBSE style teal color */
    color: white;
    padding: 8px 20px;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

/* The Main Box */
.updates-box {
    background-color: #edf8f8;
    border: 1px solid #007A83; ;
    border-radius: 8px;
    height: 280px; /* Fixed height for scrolling */
    padding: 30px 20px 15px 20px; /* Top padding zyada rakhi hai title ke liye */
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
    
    /* Yahan manual scroll enable hota hai */
    overflow-y: auto; 
    overflow-x: hidden;
}

/* Custom Scrollbar Styling (To match the image) */
.updates-box::-webkit-scrollbar {
    width: 10px;
}
.updates-box::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 10px;
    margin-top: 20px; /* Padding taaki scrollbar title se na takraye */
    margin-bottom: 10px;
}
.updates-box::-webkit-scrollbar-thumb {
    background: #007A83; 
    border-radius: 10px;
}
.updates-box::-webkit-scrollbar-thumb:hover {
    background: #005f66; 
}

/* List Items */
.updates-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.updates-list li {
    padding: 12px 5px;
    border-bottom: 1px dashed #007A83; /* Image jaisa dotted/dashed border */
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* Aakhri item par border mat lagao */
.updates-list li:last-child {
    border-bottom: none;
}

/* Icons */
.updates-list .icon {
    font-size: 16px;
    color: #dc3545; /* Red color PDF icon jaisa feel dene ke liye */
}

/* Notice Links */
.notice-link {
    text-decoration: none;
    color: #0056b3; /* Dark blue text */
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.notice-link:hover {
    color: #dc3545; /* Hover par red hona (common govt site pattern) */
    text-decoration: underline;
}

.notice-date {
    color: #555;
    font-weight: normal;
    font-size: 14px;
}

/* The 'New!' Blinking/Highlight Badge */
.new-badge {
    color: #800080; /* Purple color jaisa image me tha */
    font-size: 12px;
    font-weight: bold;
    font-style: italic;
    animation: blinker 1.5s linear infinite; /* Thoda attention grab karne ke liye */
}

@keyframes blinker {
    50% { opacity: 0; }
}

@media screen and (max-width: 600px) {

    .updates-list li span {
        font-size: 70%;
    }
    
    .updates-list li a{
        font-size: 70%;
    }


}