:root {
    /* Colors */
    --primary-blue: #0f62fe;
    --primary-blue-hover: #0353e9;
    --secondary-blue: #e5f0ff;
    --text-main: #161616;
    --text-muted: #525252;
    --border-color: #e0e0e0;
    --bg-main: #f4f4f4;
    --bg-card: #ffffff;
    --danger: #da1e28;

    /* Variables */
    --border-radius-sm: 6px;
    --border-radius-md: 10px;
    --border-radius-lg: 16px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 24px rgba(15, 98, 254, 0.15);
    --transition: all 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-blue-hover);
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--bg-card);
    box-shadow: var(--shadow-sm);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: -0.5px;
}

/* Page Layout */
.page-content {
    padding: 30px 20px 60px;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    color: var(--text-muted);
}

.breadcrumbs li:not(:last-child)::after {
    content: '>';
    margin-left: 8px;
    color: #8d8d8d;
    font-size: 0.8rem;
}

.breadcrumbs li.active {
    font-weight: 500;
    color: var(--text-main);
}

/* Summary Card */
.summary-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
    margin-bottom: 32px;
    border-left: 6px solid var(--primary-blue);
}

.tags {
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
}

.tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-blue {
    background-color: var(--secondary-blue);
    color: var(--primary-blue);
}

.tag-grey {
    background-color: #f4f4f4;
    color: var(--text-muted);
}

.job-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 8px;
}

.vacancies {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.vacancies strong {
    color: var(--text-main);
    font-size: 1.3rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    border: none;
    text-decoration: none !important;
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
    border-radius: var(--border-radius-md);
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 10px rgba(15, 98, 254, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-blue-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(15, 98, 254, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline:hover {
    background-color: var(--secondary-blue);
    color: var(--primary-blue-hover);
}

/* Grid Layout */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

/* Table Cards */
.table-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.full-width {
    margin-bottom: 32px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    font-weight: 600;
    color: var(--text-muted);
    width: 45%;
    background-color: rgba(244, 244, 244, 0.5);
}

.data-table td {
    color: var(--text-main);
    font-weight: 500;
}

.data-table tr:last-child th,
.data-table tr:last-child td {
    border-bottom: none;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid var(--border-color);
}

.table-bordered th {
    background-color: #f8f9fa;
    color: var(--text-main);
}

.highlight-text-danger {
    color: var(--danger) !important;
    font-weight: 700 !important;
}

/* Eligibility List */
.data-table ul {
    padding-left: 20px;
    margin: 0;
}

.data-table ul.no-bullets {
    list-style: none;
    padding-left: 0;
}

.data-table ul li {
    margin-bottom: 6px;
}

.data-table ul li:last-child {
    margin-bottom: 0;
}

/* Important Links Section */
.links-section {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    margin-top: 40px;
}

.text-center {
    text-align: center;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.link-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
    background: #fafafa;
}

.link-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    border-color: var(--primary-blue);
    background: var(--bg-card);
}

.highlight-card {
    background: var(--secondary-blue);
    border-color: var(--primary-blue);
}

.highlight-card:hover {
    background: var(--secondary-blue);
}

.link-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.link-content h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.link-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.link-card .btn {
    width: 100%;
    margin-top: auto;
}

/* Footer */
.footer {
    padding: 30px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

/* Header Updates */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-muted);
    padding: 8px 0;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--primary-blue);
    border-bottom: 2px solid var(--primary-blue);
    text-decoration: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f4f7fb 0%, #e5f0ff 100%);
    padding: 80px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary-blue), #00c6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.search-bar {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    background: white;
    padding: 2px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 8px 12px;
    font-size: 1rem;
    outline: none;
    border-radius: var(--border-radius-md);
    font-family: 'Inter', sans-serif;
    height: 40px;
}

.search-bar .btn {
    border-radius: var(--border-radius-sm);
    padding: 8px 16px;
    height: 40px;
    display: flex;
    align-items: center;
}

/* Marquee */
.marquee-container {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    font-size: 0.95rem;
}

.marquee-container .container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pulse-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--danger);
    min-width: 10px;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(218, 30, 40, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(218, 30, 40, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(218, 30, 40, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(218, 30, 40, 0);
    }
}

marquee a {
    font-weight: 600;
}

/* Categories Grid */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-main);
    text-align: center;
    margin-top: 10px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 48px;
}

.category-card {
    background: white;
    border-radius: var(--border-radius-md);
    padding: 16px 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.category-card:hover h3 {
    color: var(--primary-blue);
    text-decoration: none;
}

.cat-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.category-card h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 4px;
    transition: var(--transition);
}

.category-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Boards Grid (Latest Jobs, Admit Card, Results) */
.boards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.board-card {
    background: white;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.border-top-primary {
    border-top: 4px solid var(--primary-blue);
}

.border-top-danger {
    border-top: 4px solid var(--danger);
}

.border-top-success {
    border-top: 4px solid #198038;
}

.bg-primary-light {
    background-color: var(--secondary-blue);
    color: var(--primary-blue);
}

.bg-danger-light {
    background-color: #fff1f1;
    color: var(--danger);
}

.bg-success-light {
    background-color: #defbe6;
    color: #198038;
}

.board-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.board-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.job-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.job-list li {
    border-bottom: 1px solid #f0f0f0;
}

.job-list li:last-child {
    border-bottom: none;
}

.job-link {
    display: block;
    padding: 14px 20px;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: var(--transition);
}

.job-link:hover {
    background-color: #f9f9f9;
    padding-left: 24px;
    color: var(--primary-blue);
    text-decoration: none;
}

.new-job::after {
    content: 'New';
    display: inline-block;
    background-color: var(--danger);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    animation: blink 1.5s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.board-footer {
    padding: 12px 20px;
    background-color: #fcfcfc;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.view-all {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-about p {
    margin-top: 12px;
    font-size: 0.95rem;
}

.footer-links h3,
.footer-social h3 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

/* Badges & Listing Additions */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
}

.badge-outline {
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.badge-primary {
    background-color: var(--secondary-blue);
    color: var(--primary-blue);
}

.badge-danger {
    background-color: #fff1f1;
    color: var(--danger);
}

.badge-success {
    background-color: #defbe6;
    color: #198038;
}

.badge-warning {
    background-color: #fef5e8;
    color: #f29b20;
}

.blink {
    animation: blink 1.5s infinite;
}

/* Job List Layout */
.content-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
}

.main-listing-area {
    flex: 1;
}

.page-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 24px;
}

.filter-widget {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}


.filter-widget h3 {
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.filter-list {
    list-style: none;
}

.filter-list li {
    margin-bottom: 10px;
}

.filter-list a {
    display: block;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    color: var(--text-muted);
    font-weight: 500;
}

.filter-list a:hover {
    background: var(--secondary-blue);
    color: var(--primary-blue);
    text-decoration: none;
}

.jobs-list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.job-card-wide {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid var(--primary-blue);
}

.job-card-wide:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.job-card-header {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    align-items: center;
}

.job-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.job-card-meta {
    display: flex;
    gap: 20px;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.job-card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.job-card-action {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    display: flex;
    justify-content: flex-end;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: var(--border-radius-md);
    border: 1px dashed var(--border-color);
}

/* Responsive */
@media (max-width: 900px) {
    .content-layout {
        flex-direction: column-reverse;
    }

    .sidebar {
        width: 100%;
        margin-bottom: 24px;
    }
}

@media (max-width: 768px) {

    /* Homepage Specific */
    .hero {
        padding: 50px 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .search-bar {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        border: none;
        gap: 12px;
    }

    .search-bar input {
        width: 100%;
        border-radius: var(--border-radius-md);
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-sm);
    }

    .search-bar .btn {
        width: 100%;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-nav ul {
        gap: 12px;
        font-size: 0.9rem;
    }

    .header-container {
        flex-direction: column;
        gap: 12px;
    }

    .header-search {
        max-width: 100% !important;
        margin: 5px 0 !important;
        width: 100%;
    }

    .header-top {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
    }

    /* Detail Page Specific */
    .summary-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 24px;
    }

    .summary-action {
        width: 100%;
    }

    .summary-action .btn {
        width: 100%;
    }

    .job-title {
        font-size: 1.6rem;
    }

    .grid-layout {
        grid-template-columns: 1fr;
    }

    .data-table th,
    .data-table td {
        padding: 10px;
        font-size: 0.85rem;
    }

    .links-section {
        padding: 24px;
    }
}

/* Autocomplete Dropdown */
.search-bar {
    position: relative;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius-md);
    margin-top: 10px;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    border: 1px solid var(--border-color);
}

.autocomplete-dropdown.active {
    display: block;
}

.autocomplete-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background-color: var(--secondary-blue);
}

.autocomplete-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    text-align: left;
}

.autocomplete-category {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: #f4f4f4;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}