/*
 Theme Name:   GeneratePress Sarkari Result Child
 Theme URI:    https://https://studywala.in
 Description:  Custom Child Theme for Sarkari Result Style Grid Layout
 Author:       Developed by www.DigitalSunil.in
 Template:     generatepress
 Version:      1.0.0
*/


/* Reset & Base Styling */
body {
    background-color: #f4f4f4;
    font-family: Arial, Helvetica, sans-serif;
}

/* Header & Nav */
.site-header {
    background-color: #cd0808;
    color: #ffffff;
    text-align: center;
}
.site-header a { color: #ffffff !important; }

.main-navigation { background-color: #05055f; }
.main-navigation a { color: #ffffff !important; }

/* ==========================================
   1. HERO 8 BLOCKS GRID STYLING
   ========================================== */
.sarkari-hero-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 1200px;
    margin: 15px auto;
    padding: 0 10px;
}

.hero-block {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 8px;
    color: #ffffff !important;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    border-radius: 4px;
    line-height: 1.3;
    transition: opacity 0.2s ease-in-out;
}

.hero-block:hover {
    opacity: 0.9;
    text-decoration: none;
}

/* Hero Color Variants */
.block-red     { background-color: #cc0000; }
.block-orange  { background-color: #ff5500; }
.block-magenta { background-color: #cc00cc; }
.block-blue    { background-color: #0000cc; }
.block-olive   { background-color: #808000; }
.block-cyan    { background-color: #0080ff; }
.block-maroon  { background-color: #660000; }
.block-green   { background-color: #008000; }

/* ==========================================
   2. MAIN 6 CATEGORY BOXES GRID STYLING
   ========================================== */
.sarkari-grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px auto;
    max-width: 1200px;
    padding: 0 10px;
}

.sarkari-box {
    flex: 1 1 calc(33.333% - 15px);
    background: #fff;
    border: 2px solid #cd0808;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.sarkari-box-header {
    background-color: #cd0808;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    font-size: 18px;
    text-transform: uppercase;
}

.sarkari-box ul {
    list-style-type: none;
    margin: 0;
    padding: 10px;
}

.sarkari-box ul li {
    padding: 8px 5px;
    border-bottom: 1px dashed #ccc;
}

.sarkari-box ul li:last-child {
    border-bottom: none;
}

.sarkari-box ul li a {
    color: #0000ee;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.sarkari-box ul li a:hover {
    color: #ff0000;
    text-decoration: underline;
}

.tag-new {
    color: red;
    font-size: 11px;
    font-weight: bold;
    animation: blinker 1s linear infinite;
}

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

/* ==========================================
   3. VIEW MORE BUTTON STYLING
   ========================================== */
.sarkari-box-footer {
    text-align: right;
    padding: 10px 15px 15px 15px;
}

.btn-view-more {
    display: inline-block;
    background-color: #1d72b8;
    color: #ffffff !important;
    font-weight: bold;
    font-size: 13px;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none !important;
    transition: background-color 0.2s ease-in-out;
}

.btn-view-more:hover {
    background-color: #0b4c8c;
    text-decoration: none;
}

/* ==========================================
   4. MOBILE RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 768px) {
    .sarkari-hero-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .hero-block {
        font-size: 12px;
        padding: 10px 5px;
    }

    .sarkari-box {
        flex: 1 1 100%;
    }
}