body {
    /* Changed from muted yellow-green-brown to a soft, light blue-grey */
    background-color: #f0f4f8;
    /* Light blue-grey, very subtle and clean */
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Modern, readable font */
    color: #333;
    /* Good default text color */
}

header.sticky {
    position: sticky;
    top: 0;
    /* Changed from muted yellow-green-brown to a slightly deeper, cool tone */
    background-color: #e0e7ed;
    /* Light, calming blue-grey for header */
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* Added subtle shadow for depth */
}

.topnav {
    overflow: hidden;
    /* Changed from dark grey to a dark navy/charcoal for professionalism */
    background-color: #2c3e50;
    /* Deep blue-grey, professional and calming */
}

.topnav a {
    float: left;
    display: block;
    color: #ecf0f1;
    /* Lighter text for better contrast on dark nav */
    text-align: center;
    padding: 5px 19px;
    /* Increased padding for better click/tap area */
    text-decoration: none;
    font-size: 16px;
    /* Slightly larger for readability */
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
    /* Smooth hover transitions */
    box-sizing: border-box;
    /* Crucial for consistent sizing */
}

.topnav a:hover {
    background-color: #34495e;
    /* Slightly lighter shade on hover for visual feedback */
    color: #ffffff;
    /* White text on hover */
}

.topnav a.active {
    /* Kept green as it's a good accent, but used a slightly more vibrant shade */
    background-color: #27ae60;
    /* Vibrant green for active state */
    color: white;
}

.topnav .icon {
    display: none;
}

@media screen and (max-width: 600px) {
    .topnav a:not(:first-child) {
        display: none;
    }

    .topnav a.icon {
        float: right;
        display: block;
        padding: 5px 18px;
        /* Consistent padding with other links */
        text-align: right;
        /* Ensure "MENU" text aligns right */
        color: #ffffff;
        /* Ensure icon text color is visible */
    }

    /* Style for the pseudo-element (the hamburger icon) */
    .topnav a.icon::before {
        content: "\2630";
        margin-left: 8px;
        /* Increased space slightly */
        font-size: large;
        /* Slightly larger icon          vertical-align:top; */

        line-height: 0;
    }

    .topnav.responsive {
        position: relative;
    }

    .topnav.responsive .icon {
        position: absolute;
        right: 0;
        top: 0;
        width: auto;
        text-align: right;
    }

    .topnav.responsive a {
        float: none;
        display: block;
        text-align: left;
        width: 100%;
        box-sizing: border-box;
    }

    /* Ensure pseudo-element styles are maintained in responsive state */
    .topnav.responsive .icon::before {
        content: "\2630";
        margin-left: 0px;
        font-size: 1.3em;
        vertical-align: middle;
        line-height: 0;
    }
}

#heD {
    margin: 0;
    /* Changed from strong blue to a slightly softer, yet distinct blue */
    color: #2980b9;
    /* A professional blue */
    font-size: 24px;
    /* Slightly larger heading for prominence */
    /* Kept background color consistent with header */
    background-color: #e0e7ed;
    font-family: 'Brush Script MT', cursive;
    text-shadow: 2px 2px 3px #1abc9c;
    /* Subtle shadow for depth, changed color */
    display: inline-block;
    vertical-align: middle;
}

.h1login {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 9px;
    /* Increased padding for more breathing room */
}

.welcome-message {
    /* Changed from #555 to a slightly darker, more prominent grey */
    color: #666;
    font-size: 17px;
    /* Slightly larger */
    margin-left: 15px;
    /* More space */
    font-weight: bold;
    flex-grow: 1;
}

.login-link {
    text-decoration: none;
    /* Changed from strong blue to a coordinated blue with the heading */
    color: #3498db;
    /* A clear, clickable blue */
    font-weight: bold;
    font-size: 1.1em;
    /* Relative font size */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-left: 15px;
    /* More space between links */
    transition: color 0.3s ease;
    /* Smooth hover transition */
}

.login-link:hover {
    color: #2980b9;
    /* Slightly darker blue on hover */
}

.auth-links {
    display: flex;
    align-items: center;
}

.But1 {
    float: right;
    /* Coordinated with active link green */
    background-color: #2ecc71;
    /* A friendly, inviting green */
    color: white;
    /* Ensure text is white */
    padding: 10px 20px;
    /* Added padding for a button feel */
    border: none;
    /* Remove default border */
    border-radius: 5px;
    /* Slightly rounded corners */
    cursor: pointer;
    /* Indicate it's clickable */
    transition: background-color 0.3s ease;
    /* Smooth transition */
}

.But1:hover {
    background-color: #27ae60;
    /* Darker green on hover */
}

/* ------------------------LOGIN PAGES CSS----------------------*/
/* Assuming But2a is for a button on a different page, adjust its color too */
.But2a {
    float: left;
    /* Changed from strong blue to a more appealing purple/indigo */
    background-color: #8e44ad;
    /* A rich purple/indigo */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.But2a:hover {
    background-color: #9b59b6;
    /* Lighter purple on hover */
}


main {
    clear: both;
    padding: 20px;
    /* Added some padding around the main content */
    max-width: 1200px;
    /* Optional: constrain main content width for better readability */
    margin: 20px auto;
    /* Center main content */
    background-color: #ffffff;
    /* White background for main content sections */
    border-radius: 8px;
    /* Rounded corners for sections */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    /* Soft shadow for main content */
}

section {
    margin-bottom: 30px;
    /* More space between sections */
    padding: 20px;
    /* Padding within sections */
    border: 1px solid #e0e0e0;
    /* Subtle border for sections */
    border-radius: 6px;
    background-color: #ffffff;
}


/* New style for h2link - making them more distinct */
.h2link {
    margin-top: 0;
    margin-bottom: 15px;
    color: #e74c3c;
    /* A strong, appealing red/orange for titles */
    font-size: 22px;
    /* Slightly larger */
    border-bottom: 2px solid #f1c40f;
    /* Yellow underline for emphasis */
    padding-bottom: 5px;
    /* Space between text and underline */
}

/* Updated iframe styles for consistency */
iframe {
    margin-top: 0px;
    border: 1px solid #dcdcdc;
    /* Lighter border */
    border-radius: 5px;
    margin-bottom: 9px;
    pointer-events: none;
}

.hidden {
    display: none !important;
}

/*------------------I FRAME CONTAINER---------------------------*/
/* Make the entire <a> tag block-level and ensure it covers the iframe */

.iframe-link {
    margin-top: 0px;
    display: block;
    width: 100%;
    height: 130px;
    /* Match iframe height */
}

/*--------------------------cards css------------------*/
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0rem;
}

.card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 1rem;
    width: 200px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    background: #feffbc;

    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: #27ae60;
}

.card p {
    margin: 0.2rem 0;
    font-size: 0.9rem;
}

/*--------------------cards-exam-nav-cetnral-state-etc--------------------------*/
/* Container for the heading and buttons */
/* Container for the heading and buttons */
.exnav {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    /* Keep this in case you need it for other elements */
    margin-bottom: 0px;
}

/* The new scroll container */
.scroll-container {
    display: flex;
    overflow-x: scroll; /* Use 'scroll' to force the scrollbar to be always visible */
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding-bottom: 14px;
    gap: 5px;

    /* --- Scrollbar Styling for Webkit Browsers --- */
    &::-webkit-scrollbar {
        height: 10px; /* Adjust height to make it more noticeable */
    }

    &::-webkit-scrollbar-track {
        background-color: #f1f1f1; /* Light gray track background */
    }

    &::-webkit-scrollbar-thumb {
        background-color: #001f3f; /* **Dark blue color** */
        border-radius: 10px;
        border: 2px solid #f1f1f1;
    }

    &::-webkit-scrollbar-thumb:hover {
        background-color: #003366; /* Slightly lighter blue on hover */
    }
}
/* Base styles for all buttons inside exnav */
.exnav .button-link {
    margin: 11px 11px;
    display: inline-block;
    padding: 3px 6px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
    flex-shrink: 0;
    /* Prevents buttons from shrinking */
}

/* Hover and active states for all buttons */
.exnav .button-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.exnav .button-link:active {
    transform: translateY(0);
}

/* --- Specific Styles for each Button by ID --- */
/* Central Government Button */
.exnav #centralBtn {
    background-color: #3498db;
}

.exnav #centralBtn:hover {
    background-color: #3498db;
}

/* Active Button Glow Effect */
.active-glow {
    /* Set a strong blue background */
    background-color: #007bff !important;

    /* Add the glowing box shadow */
    box-shadow: 0 0 10px 5px rgba(0, 123, 255, 0.75);

    /* Optional: Add a subtle pulse animation for a more dynamic glow */
    animation: glowPulse 2s infinite alternate;
}

@keyframes glowPulse {
    from {
        box-shadow: 0 0 10px 5px rgba(0, 123, 255, 0.75);
    }

    to {
        box-shadow: 0 0 15px 8px rgba(0, 123, 255, 1);
    }
}

/*------------------stt.htmp page css-----------------------*/
.state-accordion {
    width: 100%;
    max-width: 300px;
    margin: px auto;
}

.accordion-title {
    background-color: #3498db;
    color: white;
    padding: 9px 6px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.accordion-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 5px 5px;
}

.accordion-list li a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #060202;
    border-bottom: 1px solid #eee;

}

.accordion-list li a:hover {
    background-color: #bbf681;
}