/* ===============================================================
   Add this at the absolute TOP of your css/style.css file.
   It helps with consistent box model calculations across browsers.
=============================================================== */
* {
    box-sizing: border-box;
}

/* General Body and Container */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
.main-header {
    background-color: #0056b3; /* Darker blue header background */
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content:centre;
    gap: 10px; /* Allow wrapping for smaller screens */
}

.site-logo {
    color: white;
    font-size: 1.8em;
    font-weight: bold;
    text-decoration: none;
    margin-right: 20px;
}

.tagline {
    font-size: 0.9em;
    opacity: 0.8;
    margin-top: 5px;
    margin-bottom: 5px; /* Adjust for better alignment */
    flex-grow: 1; /* Allow tagline to take available space */
}

/* Main Navigation */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; /* Horizontal navigation */
    gap: 20px;
}

.main-nav li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.main-nav li a:hover {
    color: #ffd700; /* Gold on hover */
    text-decoration: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none; /* Hidden by default on larger screens */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative; /* For the bars */
    z-index: 1001; /* Ensure it's above other content when open */
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
}

/* Main Content Area */
.main-content {
    padding: 20px 0;
}

/* --- Prominent Updates Section & Main Content Containers --- */
/* Add text-align: center to the container that holds the tagline, LIVE status, and social buttons */
/* Assuming 'prominent-updates' is the direct parent of these elements or a section containing them */
/* If you have a specific div/section for the area above prominent buttons, apply this to it. */
/* For example, if your HTML is <section class="prominent-updates-area"> ... </section> */
/* Let's apply it to the main content area for now, assuming that wraps it, but be precise in HTML if possible. */
.main-content .container {
    text-align: center; /* This will center inline-block/inline-flex elements like Live Status */
}


/* ===============================================================
   LIVE INDICATOR FIX - REVISED FOR CENTERING
=============================================================== */
.live-status {
    display: block; /* Make it a block element */
    width: fit-content; /* Make its width only as wide as its content */
    margin: 20px auto; /* Center the block horizontally and add vertical margin */
    background-color: #cc0000; /* Red background for LIVE */
    color: white;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 1.1em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex; /* Re-enable flex for internal alignment of indicator and text */
    align-items: center; /* Vertically center content */
    justify-content: center; /* Horizontally center content within its own block */
}

.live-indicator {
    width: 10px;
    height: 10px;
    background-color: white; /* White dot */
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 1.5s infinite; /* Pulsing animation */
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,255,255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255,255,255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255, 0); }
}


/* ===============================================================
   SOCIAL BUTTONS GROUP - REVISED FOR CENTERING & RESPONSIVENESS
=============================================================== */
.social-buttons-group {
    display: flex; /* Arrange buttons horizontally */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center; /* Center the buttons within the group */
    gap: 15px; /* Space between buttons */
    margin: 0 auto 30px auto; /* Center the entire group block and add bottom margin */
    padding: 0 15px; /* Horizontal padding for the group */
    max-width: 600px; /* Limit the max width of the group for better centering on larger screens */
}

.social-btn {
    display: flex; /* Use flex to align icon and text */
    align-items: center;
    justify-content: center; /* Center content (icon + text) within each button */
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    /* Make two columns on most mobile phones */
    flex: 1 1 calc(50% - 10px); /* Allows two buttons per row, subtracting half the gap */
    max-width: 250px; /* Prevent buttons from becoming too wide in a two-column layout */
    min-width: 150px; /* Ensure buttons don't get too small */
}

.social-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.social-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    vertical-align: middle;
}

/* Specific Colors for Social Buttons */
.social-btn.btn-whatsapp { background-color: #25D366; }
.social-btn.btn-whatsapp:hover { background-color: #1DA851; }
.social-btn.btn-telegram { background-color: #0088cc; }
.social-btn.btn-telegram:hover { background-color: #006699; }
.social-btn.btn-facebook { background-color: #3b5998; }
.social-btn.btn-facebook:hover { background-color: #2d4373; }

/* ===============================================================
   PROMINENT BUTTONS GRID LAYOUT - CONSOLIDATED & REVISED
=============================================================== */
.prominent-buttons-grid {
    display: grid;
    /* Default for most mobile phones (401px to 767px): 2 columns */
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 15px;
    margin-top: 25px;
    margin-bottom: 25px;
    justify-items: center; /* Center items within their grid cells */
    align-items: center; /* Center items vertically within their grid cells */
}

/* Media query for VERY small screens (e.g., less than 400px width) */
@media (max-width: 400px) {
    .prominent-buttons-grid {
        grid-template-columns: 1fr; /* Force 1 column on very small screens */
        gap: 10px;
    }
}

/* Media query for larger screens (tablets and desktops) */
@media (min-width: 768px) {
    .prominent-buttons-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on wider screens */
        gap: 20px;
    }
}

/* Styling for the individual prominent buttons */
.prominent-btn {
    display: flex;
    flex-direction: column; /* Stack title and post count */
    justify-content: center;
    align-items: center;
    padding: 15px 10px;
    color: white;
    border-radius: 8px; /* Changed to 8px for consistency with other elements */
    text-decoration: none;
    font-size: 1.3em; /* Slightly larger for impact */
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease; /* Added box-shadow transition */
    box-shadow: 0 3px 6px rgba(0,0,0,0.15); /* More prominent shadow */
    min-height: 85px; /* Ensure consistent minimum height */
    line-height: 1.3;
    width: 100%; /* Ensure button takes full width of its grid cell */
}

.prominent-btn:hover {
    filter: brightness(110%);
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 6px 12px rgba(0,0,0,0.25); /* More prominent shadow on hover */
    text-decoration: none;
}

.prominent-btn .post-count {
    font-size: 0.85em;
    opacity: 0.9;
    font-weight: normal;
    margin-top: 5px;
}

/* Specific Colors for Prominent Buttons */
.prominent-btn.red-btn { background-color: #dc3545; }
.prominent-btn.green-btn { background-color: #28a745; }
.prominent-btn.orange-btn { background-color: #fd7e14; }
.prominent-btn.light-green-btn { background-color: #20c997; }
.prominent-btn.purple-btn { background-color: #6f42c1; }
.prominent-btn.blue-btn { background-color: #007bff; }


/* Homepage Layout for Main Content & Sidebar */
.homepage-layout {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping */
    gap: 10px; /* Space between main content and sidebar */
    margin-top: 20px;
}

.main-category-grid {
    flex: 3; /* Take up more space */
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
    gap: 5px;
}

.category-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 0px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    padding: 0;
}

.category-card h2 {
    font-size: 1.0em;
    margin-top: 0;
    margin-bottom: 15px;
    background-color: #0056b3;
    color: white;
    text-align: center;
    padding: 10px 5px;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
}

.category-card h2 a {
    color: white;
    text-decoration: none;
}
.category-card h2 a:hover {
    text-decoration: underline;
}

.card-content {
    padding: 5px 0px 20px 15px;
    min-height: 150px;
    margin-bottom: 0;
}

.job-list {
    list-style: disc;
    margin: 0;
    padding: 0 2px;
    line-height: 0;
    text-align:left;
}

.job-list li {
    margin-bottom: 10px;
    font-size: 0.95em;
    text-align:left;
}

.job-list li a {
    font:default;
    color: #333;
    font-weight: bold;
    font-size:0.95em;
    transition: color 0.2s ease;
    line-height:1.5;
    white-space:normal;
    text-align: left;
}

.job-list li a:hover {
    color: #007bff;
    text-decoration: underline;
}

.view-all-link {
    display: block;
    text-align: right;
    margin-top: 15px;
    font-weight: bold;
    color: #007bff;
}

.view-all-link:hover {
    text-decoration: underline;
}


/* Recent Updates Sidebar */
.recent-updates-sidebar {
    flex: 1;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 0px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    padding: 0;
    min-width: 280px;
}

.recent-updates-sidebar h3 {
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 15px;
    background-color: #0056b3;
    color: white;
    text-align: Center;
    padding: 15px 10px;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
}

.recent-job-list {
    list-style: none;
    margin: 0;
    padding: 20px;
}

.recent-job-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
    font-size: 0.95em;
    text-align: left;
}

.recent-job-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-job-list li a {
    color: #333;
    display: block;
    transition: color 0.2s ease;
}

.recent-job-list li a:hover {
    color: #cc6600;
    text-decoration: underline;
}

.recent-job-list .update-category {
    font-size: 0.8em;
    color: #ff8c00;
    margin-right: 5px;
    font-weight: bold;
}


/* Footer */
.main-footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: 30px;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #ffd700;
    text-decoration: none;
}

.main-footer p {
    margin-top: 15px;
    font-size: 0.9em;
    opacity: 0.8;
}


/* --- Responsive Design --- */

/* Tablet and Smaller Desktops */
@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    .site-logo, .tagline {
        margin-right: 0;
        margin-bottom: 10px;
    }
    .main-nav {
        display: none; /* Hide regular nav by default on smaller screens */
        width: 100%;
        background-color: #0056b3;
        position: absolute; /* Position relative to header */
        top: 100px; /* Adjust based on header height */
        left: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.3);
        padding: 10px 0;
        z-index: 1000;
    }

    .main-nav.open {
        display: block; /* Show when 'open' class is added by JS */
    }

    .main-nav ul {
        flex-direction: column; /* Stack menu items vertically */
        align-items: center;
        gap: 10px;
    }

    .menu-toggle {
        display: block; /* Show hamburger icon */
        order: -1; /* Place it first for consistent layout */
        align-self: flex-start; /* Align to the start of the header-content */
        margin-left: 10px; /* Give it some space */
    }

    /* Animation for hamburger icon */
    .menu-toggle.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .homepage-layout {
        flex-direction: column; /* Stack main content and sidebar */
    }

    .main-category-grid, .recent-updates-sidebar {
        flex: none; /* Remove flex sizing */
        width: 100%; /* Take full width */
        gap: 5px;
    }

    /* Tablet adjustments for main-category-grid to remain responsive */
    .main-category-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Keep responsive on tablets */
        border-spacing: 0
    }
}

/* Mobile Phones (Unified Media Query for consistency) */
/* This media query will apply to screens up to 767px wide.
   It covers both portrait and landscape mobile devices. */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
    .site-logo {
        font-size: 1.5em;
    }
    .tagline {
        font-size: 0.8em;
    }

    /* Prominent Buttons Grid - Now explicitly responsive for mobile */
    .prominent-buttons-grid {
        grid-template-columns: repeat(2, 1fr); /* Default 2 columns for most phones */
        gap: 10px; /* Adjust gap for mobile */
    }
    /* For very small phones, force 1 column */
    @media (max-width: 400px) {
        .prominent-buttons-grid {
            grid-template-columns: 1fr;
        }
    }

    .prominent-btn {
        font-size: 0.95em;
        padding: 12px 8px;
        min-height: 70px;
    }
    .prominent-btn .post-count {
        font-size: 0.75em;
    }
    .sarkari-result-tagline {
        font-size: 0.9em;
        margin-bottom: 20px;
    }
    .live-status {
        padding: 4px 12px;
        font-size: 1em;
    }

    /* Adjust social buttons for mobile screens */
    .social-buttons-group {
        flex-direction: row; /* Keep them in a row, allowing wrap */
        flex-wrap: wrap; /* Ensure they wrap if they don't fit 2 per row */
        justify-content: center; /* Center them */
        gap: 10px; /* Reduce gap */
    }
    .social-btn {
        flex: 1 1 calc(50% - 10px); /* Allow two buttons per row */
        max-width: 250px; /* Limit max width */
        padding: 10px 20px;
        font-size: 1em;
        min-width: 140px; /* Ensure they don't get too small */
    }
    /* For very small screens, stack social buttons */
    @media (max-width: 400px) {
        .social-btn {
            flex: 1 1 100%; /* Take full width */
            max-width: 250px; /* Keep max width to make them look good */
        }
    }
    .social-icon {
        width: 20px;
        height: 20px;
    }

    .main-category-grid {
        /* Phone: 2 columns */
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }

    .job-list {
        padding-left: 10px;
    }

    /* Ensure recent updates sidebar is at the bottom on mobile */
    .homepage-layout {
        flex-direction: column;
    }
    .recent-updates-sidebar {
        order: 1; /* Place it after the main-category-grid */
    }
    .main-category-grid {
        order: 0; /* Keep it first */
    }
}


/* NEW Sticker for New Job Titles */
.new-sticker {
    background-color: #ff0000;
    color: #fff;
    font-size: 0.65em;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    animation: blink 1.2s infinite;
    font-weight: bold;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

#job-guide {
    padding: 20px;
    background-color: #f5f5f5;
    font-family: Arial, sans-serif;
    color: #222;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}