/* ========================================================
   SarkariExam Authentic Homepage Styles
   Reference: sarkariexam.com
   ======================================================== */

body {
    background: #f7f8fa;
    color: #172033;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    margin: 0;
}

main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px 40px;
    box-sizing: border-box;
}

/* 1. Flash Updates Grid (2 rows of 4 colorful boxes) */
.sarkari-flash-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 16px 0 24px;
}

.sarkari-flash-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 64px;
    padding: 12px 14px;
    border-radius: 4px;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.sarkari-flash-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.22);
    filter: brightness(1.06);
    color: #ffffff !important;
    text-decoration: none !important;
}

.sarkari-flash-title {
    font-size: 14.5px;
    font-weight: 800;
    line-height: 1.35;
    display: block;
}

/* Distinct Vibrant Colors matching SarkariExam */
.sarkari-flash-color-1 { background-color: #c62828; } /* Crimson Red */
.sarkari-flash-color-2 { background-color: #ef6c00; } /* Orange */
.sarkari-flash-color-3 { background-color: #8e24aa; } /* Purple/Magenta */
.sarkari-flash-color-4 { background-color: #0d47a1; } /* Dark Blue */
.sarkari-flash-color-5 { background-color: #558b2f; } /* Olive Green */
.sarkari-flash-color-6 { background-color: #0288d1; } /* Light Blue */
.sarkari-flash-color-7 { background-color: #5c0000; } /* Dark Maroon */
.sarkari-flash-color-8 { background-color: #1b5e20; } /* Forest Green */

/* 2. Core 3-Column Tables Grid (Result, Admit Card, Top Online Form, etc.) */
.sarkari-columns-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 20px 0 32px;
}

.sarkari-col-card {
    background: #ffffff;
    border: 1px solid #b31b20;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.sarkari-col-header {
    background: #8B0000; /* Dark Crimson Red Header */
    padding: 10px 14px;
    text-align: center;
    border-bottom: 1px solid #730000;
}

.sarkari-col-header h2 {
    margin: 0;
    padding: 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: capitalize;
}

.sarkari-col-body {
    padding: 12px 14px 8px;
    flex: 1;
    background: #ffffff;
}

.sarkari-post-list {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.sarkari-post-list li {
    margin-bottom: 10px;
    line-height: 1.45;
    color: #0000cc;
}

.sarkari-post-list li a {
    color: #0000cc !important;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
    word-break: break-word;
}

.sarkari-post-list li a:hover {
    color: #8B0000 !important;
    text-decoration: underline !important;
}

.sarkari-col-footer {
    text-align: center;
    padding: 10px 14px 14px;
    background: #ffffff;
}

.sarkari-view-more-btn {
    display: inline-block;
    background: #334155;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 20px;
    border-radius: 20px;
    text-decoration: none !important;
    transition: background-color 0.18s ease;
}

.sarkari-view-more-btn:hover {
    background-color: #8B0000 !important;
    color: #ffffff !important;
}

/* 3. Bottom SEO & About Content Section */
.sarkari-content-section {
    background: #ffffff;
    border: 1px solid #dcdfe4;
    border-radius: 6px;
    padding: 30px 32px;
    margin: 28px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sarkari-content-section h1,
.sarkari-content-section h2,
.sarkari-content-section h3 {
    color: #8B0000;
    margin-top: 22px;
    margin-bottom: 12px;
}

.sarkari-content-section h1:first-child,
.sarkari-content-section h2:first-child {
    margin-top: 0;
}

.sarkari-content-section p {
    color: #2b3445;
    font-size: 14.5px;
    line-height: 1.75;
    margin: 0 0 16px;
}

.sarkari-content-section ul,
.sarkari-content-section ol {
    padding-left: 24px;
    margin: 12px 0 18px;
    color: #2b3445;
    line-height: 1.7;
}

.sarkari-content-section li {
    margin-bottom: 6px;
}

.sarkari-content-section a {
    color: #0000cc;
    font-weight: 600;
    text-decoration: underline;
}

.sarkari-content-section a:hover {
    color: #8B0000;
}

/* FAQs inside content */
.sarkari-faq-block {
    margin-top: 28px;
    border-top: 2px solid #eaedf2;
    padding-top: 22px;
}

.sarkari-faq-block h2 {
    color: #8B0000;
    font-size: 22px;
    margin-bottom: 18px;
}

.sarkari-faq-item {
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.sarkari-faq-item summary {
    background: #f8fafc;
    padding: 13px 18px;
    font-weight: 700;
    font-size: 15px;
    color: #1e293b;
    cursor: pointer;
    list-style-position: inside;
}

.sarkari-faq-item summary:hover {
    color: #8B0000;
    background: #f1f5f9;
}

.sarkari-faq-item p {
    padding: 14px 18px;
    margin: 0;
    background: #ffffff;
    color: #334155;
    font-size: 14.5px;
    line-height: 1.7;
    border-top: 1px solid #e2e8f0;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
    .sarkari-flash-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .sarkari-columns-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .sarkari-content-section {
        padding: 22px 20px;
    }
}

@media (max-width: 640px) {
    main {
        padding: 0 10px 30px;
    }
    .sarkari-flash-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .sarkari-columns-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .sarkari-col-header h2 {
        font-size: 18px;
    }
    .sarkari-post-list li a {
        font-size: 13px;
    }
    .sarkari-content-section {
        padding: 18px 14px;
    }
    .sarkari-content-section p {
        font-size: 13.5px;
    }
}
