/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Main Content */
.main-content {
    padding: 20px;
    margin-top: 80px; /* Header ke liye jagah */
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
}

/* --- Corrected Page Section Styles --- */
/* Base Styles for all page sections */
.page-section {
    display: none;
    padding: 20px 0;
}

/* Only the active page is visible */
.page-section.active {
    display: block;
}
/* --- End of Corrected Page Section Styles --- */

/* Sidebar and Overlay */
.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    background-color: #f8f9fa;
    overflow-x: hidden;
    transition: width 0.5s cubic-bezier(0.7, 0, 0.3, 1);
    padding-top: 60px;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.sidebar.open {
    width: 280px;
}

.overlay {
    position: fixed;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 998;
    display: none;
    transition: all 0.5s ease-in-out;
    backdrop-filter: blur(5px);
}

.sidebar a {
    padding: 15px 25px;
    text-decoration: none;
    font-size: 18px;
    color: #343a40;
    display: block;
    transition: all 0.3s ease-in-out;
    border-left: 5px solid transparent;
}

.sidebar a:hover {
    background-color: #e9ecef;
    color: #007bff;
    border-left-color: #007bff;
    transform: translateX(10px);
}

/* Header and Hamburger */
.top-bar-blue {
    background-color: #007bff;
    padding: 10px 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.left-container {
    display: flex;
    align-items: center;
    gap: 15px; 
}

.hamburger-menu-icon {
    width: 22px;
    height: 17px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    margin-left: -15px;
}

.hamburger-menu-icon .bar {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu-icon.open .top-bar {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu-icon.open .middle-bar {
    opacity: 0;
}

.hamburger-menu-icon.open .bottom-bar {
    transform: rotate(-45deg) translate(6px, -6px);
}

.heading {
    color: #fff;
    font-size: 2em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    align-items: center;
    text-align: center;
    flex-grow: 1;
}

/* Search Container on the Right */
.search-container.top-search {
    display: none; /* Hide top search bar to avoid confusion */
}

/* Latest Vacancies Header */
.header-with-search {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    margin-top: 15px;
}

.section-title {
    font-size: 1.8em;
    color: #333;
    font-weight: 600;
}

.search-icon-btn {
    font-size: 24px;
    color: #007bff;
    cursor: pointer;
}

/* Search Bar (Below Header) */
.search-bar-below-header {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease, margin 0.3s ease;
    padding: 0 10px;
}

.search-bar-below-header.active {
    height: 50px;
    margin-top: 10px;
}

#list-search-input {
    width: 100%;
    height: 35px;
    border-radius: 20px;
    border: 1px solid #ccc;
    background-color: #fff;
    font-size: 14px;
    padding: 0 15px;
    box-sizing: border-box; 
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); 
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    outline: none;
}

#list-search-input:focus {
    border-color: #007bff;
}

/* Landing Page */
.landing-content {
    text-align: center;
    padding: 50px 20px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin: 30px auto;
    max-width: 600px;
}

.landing-content h1 {
    font-size: 2.5em;
    color: #007bff;
    margin-bottom: 10px;
}

.landing-content p {
    font-size: 1.2em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.landing-button {
    background-color: #28a745;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.landing-button:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Vacancy List */
.vacancy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.vacancy-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.3s ease;
    height: 100%;
    box-sizing: border-box;
}

.vacancy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.vacancy-card h3 {
    font-size: 1.5em;
    color: #007bff;
    margin: 0 0 8px 0;
    font-weight: 600;
    text-align: center;
}

.card-details {
    flex-grow: 1;
    text-align: center;
    margin-bottom: 15px;
}

.card-details p {
    margin: 6px 0;
    text-align: center;
    font-size: 0.95em;
    color: #444;
    line-height: 1.4;
}

.details-button {
    display: inline-block;
    padding: 5px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95em;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: auto;
}

.details-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.status-live {
    color: #28a745; 
    align-items: center;
    text-align: center;
    font-weight: bold; /* टेक्स्ट को बोल्ड करें */
    
}
.admit-card-status {
    margin-bottom: 25px; /* Admit Card Live के लिए कम जगह */
}
.result-live-status {
    margin-bottom: 35px;
    color: #d4385f;
}

 
/* Vacancy Details Page */
.page-title {
    font-size: 2.2em;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
}


.back-button {
 display: none;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.detail-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.detail-card .icon {
    font-size: 3em;
    color: #28a745;
    margin-bottom: 15px;
}

.detail-card h3 {
    font-size: 1.2em;
    color: #555;
    margin: 0 0 10px;
}

.detail-card p {
    font-size: 1em;
    font-weight: bold;
    color: #333;
}

.details-buttons {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    width: 100%;
}

.status-tag {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 5px;
    color: #fff;
    text-transform: uppercase;
    position: absolute;
    width: fit-content;
    text-align: center;
}

.status-tag.active {
    background-color: #28a745;
}

.status-tag.coming-soon {
    background-color: #ffc107;
}

.status-tag.closed {
    background-color: #dc3545;
}

.post-name-badge {
    text-align: center;
    margin: 30px auto;
    width: 90%;
    max-width: 500px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.badge-label {
    background: linear-gradient(45deg, #1e3a8a, #3b82f6);
    color: #ffffff;
    padding: 12px 20px;
    font-size: 1.3em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.badge-content {
    background: #ffffff;
    color: #1a237e;
    padding: 20px;
    font-size: 1.4em;
    font-weight: 800;
    line-height: 1.2;
    word-wrap: break-word;
}

.button-link, .secondary-button {
    padding: 15px 25px;
    font-size: 1rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.button-link:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4);
}

.secondary-button {
    background-color: #fff;
    color: #007bff;
    border: 2px solid #007bff;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.15);
}

.secondary-button:hover {
    background-color: #e0f2ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.25);
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 3px 0;
    margin-top: auto;
    font-size: 15px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
}

/* NAYA: Footer Links ke liye styles */
.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Links ko agli line me le jata hai agar jagah kam ho */
    gap: 10px; /* Links ke beech me space deta hai */
    margin-bottom: 10px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #007bff;
}


/* Responsive Style in for Mobile */
@media (max-width: 768px) {
    .main-content {
        padding: 10px;
        margin-top: 60px;
    }

    .vacancy-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .vacancy-card {
        padding: 10px;
        position: relative;
    }

    .vacancy-card h3 {
        font-size: 1.2em;
    }

    .card-details {
        display: block;
        text-align: left;
    }
    
    .card-line {
        margin-bottom: 5px;
    }

    .card-line p {
        margin: 0;
        padding: 0;
        line-height: 1.2;
    }

    .card-line p:first-child {
        font-weight: bold;
        margin-bottom: 2px;
    }

    .details-button {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .landing-content h1 {
        font-size: 2em;
    }

    .landing-content p {
        font-size: 1em;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .header-with-search {
        flex-direction: row;
        align-items: center;
    }

    .search-wrapper {
        width: auto;
        margin-top: 0;
    }

    .status-tag {
        bottom: 43px;
        left: 14px;
        right: auto;
        top: auto;
        position:absolute;
    }
    /* Footer links ko mobile me adjust karein */
    .footer-links {
        gap: 5px; /* Links ke beech ki jagah kam ki */
        font-size: 13px; /* Links ka size chhota kiya */
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: center; /* Links ko left side se shuru karein */
    }

    /* Footer links ke separator ko adjust karein */
    .footer-links a:not(:last-child)::after {
        margin-left: 5px; /* Separator se bhi space kam kiya */
    }

    /* Footer text ko aur chhota karein */
    .footer p {
        font-size: 12px;
    }
}

/* Updated CSS for larger screens to use Grid */
@media (min-width: 769px) {
    .vacancy-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .vacancy-card {
        max-width: none;
        position:relative;
    }
    
    .status-tag {
        top: 5px;
        right: 10px;
        bottom: auto;
        left: auto;
        position:absolute;
    }
}