/* Custom Sarkari Result Style Notification CSS (Modern View) */

/* Global Variables */
:root {
    --primary-blue: #0d47a1; /* Deep Blue (Disha) */
    --accent-red: #c62828; /* Red (New Alert/Result) */
    --accent-orange: #ff9800; /* Orange (Admit Card) */
    --accent-green: #28a745; /* Green (Syllabus/Answer Key) */
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f4f6f9;
    --card-bg: #ffffff;
    --shadow-base: 0 4px 15px rgba(0, 0, 0, 0.1);
}



.notification-main-content {
    padding: 40px 15px;
    background-color: var(--bg-light);
}

.notification-container {
   
    margin: 0 auto;
}

/* Main Page Title */
.main-page-title {
    margin-top: 50px;
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 10px;
    text-transform: uppercase;
}

.main-page-title i {
    color: var(--accent-red);
    margin-right: 15px;
}

/* Sarkari Result Layout (3-Column Grid) */
.sarkari-result-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.notification-section {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-base);
    overflow: hidden;
    border-top: 5px solid var(--primary-blue); /* Default accent */
}

/* Section Titles */
.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--card-bg);
    padding: 15px 20px;
    margin: 0;
    text-align: center;
}

.section-title i {
    margin-right: 8px;
}

.job-title {
    background-color: var(--primary-blue);
    border-bottom: 3px solid #002871;
}

.admit-title {
    background-color: var(--accent-orange);
    border-bottom: 3px solid #cc7b00;
}

.result-title {
    background-color: var(--accent-red);
    border-bottom: 3px solid #a82020;
}

/* Notification List */
.notification-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notification-list li {
    border-bottom: 1px solid #f0f0f0;
}

.notification-list li:last-child {
    border-bottom: none;
}

.notification-item {
    display: flex;
    flex-direction: column;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text-dark);
    transition: background-color 0.2s, color 0.2s;
}

.notification-item:hover {
    background-color: #f7f7f7;
    color: var(--primary-blue);
}

.item-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
}

.item-date {
    display: block;
    font-size: 13px;
    color: var(--text-light);
}

.item-date i {
    margin-right: 5px;
    color: var(--primary-blue);
}

/* Sarkari Result Special Status: Blinking Animation */
.blink-new {
    color: var(--accent-red);
    font-weight: 700;
    font-size: 13px;
    margin-left: 5px;
    animation: blink 1s step-start infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* View All Link */
.view-all-link {
    display: block;
    text-align: center;
    padding: 12px 20px;
    background-color: #eef2f6;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    border-top: 1px solid #ddd;
    transition: background-color 0.2s;
}

.view-all-link:hover {
    background-color: #e0e6eb;
}

/* --- Bottom Grid (Answer Key/Syllabus) --- */
.sarkari-bottom-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.bottom-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-base);
    padding: 20px;
    border-top: 5px solid var(--accent-green);
}

.bottom-card h3 {
    font-size: 20px;
    color: var(--accent-green);
    margin-bottom: 15px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 10px;
}

.bottom-card h3 i {
    margin-right: 8px;
}

.bottom-list {
    list-style: none;
    padding: 0;
}

.bottom-list li a {
    display: block;
    padding: 8px 0;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    border-bottom: 1px dotted #ccc;
    transition: color 0.2s;
}

.bottom-list li:last-child a {
    border-bottom: none;
}

.bottom-list li a:hover {
    color: var(--primary-blue);
}

/* --- Media Queries for Full Responsiveness --- */

/* Tablet (992px and down) */
@media (max-width: 992px) {
    .sarkari-result-layout {
        /* Switch to 2 columns */
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .notification-section:last-child {
        /* Third column spans both on smaller tablets for better use of space */
        grid-column: span 2; 
    }
    
    .sarkari-bottom-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Mobile (580px and down) */
@media (max-width: 580px) {
    .main-page-title {
        font-size: 28px;
    }

    .sarkari-result-layout {
        /* Stack all columns vertically on mobile */
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .notification-section:last-child {
        grid-column: span 1; /* Reset span */
    }
    
    .item-title {
        font-size: 14px;
    }
    
    .blink-new {
        font-size: 11px;
    }
}