@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    /* Modern Color Palette */
    --primary: #2563eb;
    /* Vibrant Blue */
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;

    --secondary: #dc2626;
    /* Vibrant Red for Alerts/Important */
    --secondary-hover: #b91c1c;
    --secondary-light: #fef2f2;

    --success: #16a34a;
    /* Green for Results/Updates */
    --success-hover: #15803d;
    --success-light: #f0fdf4;

    --warning: #ca8a04;
    /* Yellow/Orange */
    --warning-light: #fefce8;

    --background: #f8fafc;
    /* Very light cool gray */
    --surface: #ffffff;
    /* White cards */

    /* Text Colors */
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', 'Inter', system-ui, sans-serif;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-colored: 0 10px 15px -3px rgba(37, 99, 235, 0.15);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Navigation (Glassmorphism) */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
}

.header-top {
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4.5rem;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    background: linear-gradient(135deg, var(--primary), #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(37, 99, 235, 0.2);
}

.logo-main span {
    color: var(--secondary);
    background: linear-gradient(135deg, var(--secondary), #f87171);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 600;
    color: var(--text-main);
    position: relative;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary);
    transition: width var(--transition-normal);
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* Marquee / Ticker (Modern Version) */
.ticker-wrap {
    background-color: var(--secondary);
    color: white;
    overflow: hidden;
    height: 3rem;
    display: flex;
    align-items: center;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.ticker-label {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--text-main);
    color: white;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 4px 0 8px rgba(0, 0, 0, 0.2);
    clip-path: polygon(0 0, 90% 0, 100% 100%, 0% 100%);
    width: 140px;
}

.ticker-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker 40s linear infinite;
    padding-left: 140px;
    height: 100%;
}

.ticker-content:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    height: 100%;
    padding: 0 2rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.ticker-item a {
    color: white;
    text-decoration: none;
}

.ticker-item a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.ticker-item i {
    margin-right: 0.5rem;
    color: #fbbf24;
    /* Warning yellow for stars/icons */
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Quick Links Section */
.quick-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    text-align: center;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.23);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(220, 38, 38, 0.39);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.23);
    color: white;
}

.btn-success {
    background-color: var(--success);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(22, 163, 74, 0.39);
}

.btn-success:hover {
    background-color: var(--success-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.23);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

/* 3-Column Grid (Main Jobs Section) */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* 4-Column Grid (Secondary Section) */
.secondary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.job-column {
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition-normal);
    /* Remove fixed height to allow columns to expand with content */
    height: auto;
}

.job-column:hover {
    box-shadow: var(--shadow-lg);
}

.column-header {
    padding: 1.25rem;
    text-align: center;
    border-bottom: 2px solid;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Specific Column Colors */
.col-results .column-header {
    background-color: var(--secondary-light);
    color: var(--secondary);
    border-bottom-color: var(--secondary);
}

.col-admit-card .column-header {
    background-color: var(--success-light);
    color: var(--success);
    border-bottom-color: var(--success);
}

.col-latest-jobs .column-header {
    background-color: var(--primary-light);
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.column-header h2 {
    font-size: 1.25rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.column-header i {
    font-size: 1.1em;
}

.job-list {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* Add max-height and scrolling for very long lists, keeping UI clean */
    max-height: 500px;
    overflow-y: auto;
}

/* Custom Scrollbar for job lists */
.job-list::-webkit-scrollbar {
    width: 6px;
}

.job-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
}

.job-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.job-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

.job-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
    background: var(--background);
    border-left: 3px solid transparent;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.job-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: currentColor;
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: 0;
}

.job-link>span {
    position: relative;
    z-index: 1;
}

.col-results .job-link:hover {
    border-left-color: var(--secondary);
    color: var(--secondary);
    background: white;
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.col-admit-card .job-link:hover {
    border-left-color: var(--success);
    color: var(--success);
    background: white;
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.col-latest-jobs .job-link:hover {
    border-left-color: var(--primary);
    color: var(--primary);
    background: white;
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.view-more {
    display: block;
    text-align: center;
    padding: 1rem;
    font-weight: 600;
    background: var(--background);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    transition: background var(--transition-fast);
}

.col-results .view-more {
    color: var(--secondary);
}

.col-admit-card .view-more {
    color: var(--success);
}

.col-latest-jobs .view-more {
    color: var(--primary);
}

.view-more:hover {
    background: #f1f5f9;
}

/* Secondary Grid for other sections */
.secondary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.secondary-grid .job-column {
    border-radius: var(--radius-lg);
}

.secondary-grid .column-header {
    padding: 1rem;
    background: var(--surface);
    color: var(--text-main);
    border-bottom: 1px solid #e2e8f0;
}

.secondary-grid .column-header h3 {
    font-size: 1.1rem;
}

/* Footer Section */
.site-footer {
    background-color: var(--text-main);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-about span {
    color: var(--primary-light);
}

.footer-about p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-light);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a::before {
    content: '→';
    color: var(--primary);
    font-size: 1.1em;
    transition: transform var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-links a:hover::before {
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Post Template Styles (for post.html) */
.post-header {
    background: linear-gradient(to right, var(--primary), #3b82f6);
    color: white;
    padding: 3rem 0;
    margin-bottom: 3rem;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-content {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 3rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.info-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.info-card {
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    background: var(--background);
}

.info-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-list li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #cbd5e1;
    padding-bottom: 0.5rem;
    font-size: 0.95rem;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list .label {
    font-weight: 600;
    color: var(--text-main);
}

.info-list .value {
    color: var(--text-muted);
    text-align: right;
    max-width: 60%;
}

.data-table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th,
.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.data-table th {
    background-color: var(--primary-light);
    color: var(--text-main);
    font-weight: 600;
}

.data-table tr:hover td {
    background-color: var(--background);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.important-links-section {
    margin-top: 3rem;
}

.section-title {
    font-size: 1.75rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

.links-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.links-table td {
    padding: 1rem;
    background: var(--background);
    border: 1px solid #e2e8f0;
}

.links-table td:first-child {
    font-weight: 600;
    color: var(--text-main);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    width: 40%;
}

.links-table td:last-child {
    border-left: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    text-align: center;
}

.links-table a.cta-btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.links-table a.cta-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.links-table a.cta-link {
    color: var(--primary);
    font-weight: 600;
}

.links-table a.cta-link:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .secondary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .logo-main {
        font-size: 1.4rem;
    }

    .main-nav {
        display: none;
        /* Hide default nav */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: var(--shadow-md);
        gap: 0;
    }

    .main-nav.active {
        display: flex;
    }

    .nav-link {
        padding: 1rem 1.5rem;
        display: block;
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
    }

    .menu-toggle {
        display: block;
        /* Show menu toggle */
    }

    /* Mobile adjustments */
    .jobs-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile adjustments for secondary grid */
    .secondary-grid {
        grid-template-columns: 1fr;
    }

    .info-cards-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .post-title {
        font-size: 2rem;
    }

    .links-table td {
        display: block;
        width: 100%;
        text-align: center;
    }

    .links-table td:first-child {
        border: 1px solid #e2e8f0;
        border-bottom: none;
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }

    .links-table td:last-child {
        border: 1px solid #e2e8f0;
        border-top: none;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        padding-bottom: 1.5rem;
    }
}

/* ─── Badge Styles (NEW / HOT) ─────────────────────────────── */
.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.5rem;
    vertical-align: middle;
    flex-shrink: 0;
}

.badge-new {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.badge-hot {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.job-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.job-link>span {
    flex: 1 1 auto;
}

/* ─── Header Search Bar ─────────────────────────────────────── */
.header-search {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 0.3rem 0.5rem 0.3rem 1rem;
    border: 1.5px solid #e2e8f0;
    transition: border-color 0.2s;
}

.header-search:focus-within {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.header-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.9rem;
    width: 180px;
    font-family: var(--font-sans);
    color: var(--text-main);
}

.header-search button {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.header-search button:hover {
    background: var(--primary-hover);
}

/* ─── Search Results Page ───────────────────────────────────── */
.search-hero {
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: white;
    padding: 3rem 0 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.search-hero h1 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.search-hero .search-box-hero {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.search-box-hero input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1rem;
    font-family: var(--font-sans);
    outline: none;
}

.search-box-hero button {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.search-box-hero button:hover {
    background: var(--secondary-hover);
}

.search-stats {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.search-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    transition: all var(--transition-fast);
    text-decoration: none;
    color: var(--text-main);
}

.search-result-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
    color: var(--primary);
}

.search-result-item .result-title {
    font-weight: 600;
    font-size: 0.97rem;
}

.search-result-item .result-cat {
    font-size: 0.78rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-weight: 600;
    white-space: nowrap;
}

.cat-results {
    background: #fef2f2;
    color: #dc2626;
}

.cat-admitCards {
    background: #f0fdf4;
    color: #16a34a;
}

.cat-latestJobs {
    background: #eff6ff;
    color: #2563eb;
}

.cat-answerKeys {
    background: #fefce8;
    color: #ca8a04;
}

.cat-syllabus {
    background: #f5f3ff;
    color: #7c3aed;
}

.cat-admissions {
    background: #fff7ed;
    color: #ea580c;
}

.cat-important {
    background: #fdf4ff;
    color: #a21caf;
}

.no-results {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-muted);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* ─── Category Page ─────────────────────────────────────────── */
.category-hero {
    padding: 2.5rem 0;
    text-align: center;
    background: var(--primary-light);
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--primary);
}

.category-hero h1 {
    color: var(--primary);
    font-size: 2rem;
}

.category-hero p {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.category-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 2rem;
    margin-bottom: 2rem;
}

.category-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
    margin-top: 1rem;
    text-align: right;
}

/* ─── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--primary);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--text-light);
}

/* ─── Admin Dashboard ────────────────────────────────────────── */
.admin-body {
    display: flex;
    min-height: 100vh;
    font-family: var(--font-sans);
    background: var(--background);
}

.admin-sidebar {
    width: 260px;
    background: var(--text-main);
    color: white;
    padding: 2rem 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.admin-sidebar .sidebar-logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
    color: white;
}

.admin-sidebar .sidebar-logo span {
    color: #60a5fa;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
    text-decoration: none;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left: 3px solid #60a5fa;
    padding-left: calc(1.75rem - 3px);
}

.admin-main {
    margin-left: 260px;
    flex: 1;
    padding: 2rem;
    max-width: calc(100vw - 260px);
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.admin-topbar h1 {
    font-size: 1.75rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
}

.stat-card .stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-heading);
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.25rem;
}

.admin-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
}

.admin-card h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-light);
    color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.65rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: var(--font-sans);
    outline: none;
    transition: border-color 0.2s;
    background: var(--background);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.flag-group {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1rem;
}

.flag-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    cursor: pointer;
}

.btn-admin {
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-admin-primary {
    background: var(--primary);
    color: white;
}

.btn-admin-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-admin-danger {
    background: var(--secondary);
    color: white;
}

.btn-admin-danger:hover {
    background: var(--secondary-hover);
    transform: translateY(-1px);
}

.btn-admin-success {
    background: var(--success);
    color: white;
}

.btn-admin-success:hover {
    background: var(--success-hover);
    transform: translateY(-1px);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: var(--primary-light);
    padding: 0.875rem 1rem;
    text-align: left;
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
}

.admin-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

.admin-table tr:hover td {
    background: var(--background);
}

.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--text-main);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    z-index: 9999;
    box-shadow: var(--shadow-lg);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    background: var(--success);
}

.admin-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
}

.admin-login-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
}

.admin-login-card h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.admin-login-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE MEDIA QUERIES — Mobile & Tablet Layout Fixes
   ═══════════════════════════════════════════════════════════ */

/* ── Tablet (≤ 1024px) ─────────────────────────────────── */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .secondary-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* ── Tablet / Small Desktop (≤ 900px) ─────────────────── */
@media (max-width: 900px) {

    /* Nav: hide links, show hamburger */
    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 4.5rem;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem 1.5rem;
        box-shadow: var(--shadow-md);
        z-index: 100;
        gap: 0.5rem;
    }

    .main-nav.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .header-search {
        display: none;
    }

    /* 3-col jobs grid → 2 columns */
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* 4-col secondary grid → 2 columns */
    .secondary-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Reduce ticker label width */
    .ticker-label {
        width: 110px;
    }

    .ticker-content {
        padding-left: 110px;
    }
}

/* ── Mobile (≤ 640px) ──────────────────────────────────── */
@media (max-width: 640px) {

    /* Container padding */
    .container {
        padding: 0 1rem;
    }

    /* Logo font size */
    .logo-main {
        font-size: 1.4rem;
    }

    /* 3-col jobs grid → 1 column */
    .jobs-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    /* 4-col secondary grid → 1 column */
    .secondary-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    /* Footer: single column */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Quick links: wrap cleanly */
    .quick-links {
        gap: 0.6rem;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    /* Ticker */
    .ticker-label {
        width: 95px;
        font-size: 0.75rem;
        padding: 0 0.8rem;
    }

    .ticker-content {
        padding-left: 95px;
        font-size: 0.85rem;
    }

    /* SEO section padding */
    .seo-section {
        padding: 1.2rem !important;
    }

    /* Info cards grid (post page) */
    .info-cards-grid {
        grid-template-columns: 1fr;
    }

    /* Post title */
    .post-title {
        font-size: 1.5rem;
    }

    /* Post meta: stack vertically */
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}