:root {
    --sii-orange: #FF671F;
    --sii-blue: #0F3B60;
    --sii-green: #064E5A;
    --sii-border: #e2e8f0;
}

.state-courses-page {
    background-color: #f8fafc;
    min-height: calc(100vh - 200px);
    padding-bottom: 50px;
}

.state-courses-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--sii-border);
    padding: 24px;
    margin-top: 20px;
}

.toolbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
}

.btn-back-map {
    background: #0F3B60;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-back-map:hover {
    background: #0b2d4a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 59, 96, 0.2);
}

.state-header-badge .state-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #EEF2F6;
    color: #0F3B60;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.state-header-badge .state-tag i {
    color: #FF671F;
}

.search-wrapper {
    position: relative;
    min-width: 320px;
    max-width: 440px;
    flex: 1;
}

.search-wrapper input {
    width: 100%;
    height: 42px;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 8px 48px 8px 16px;
    font-size: 13.5px;
    outline: none;
    transition: all 0.2s ease;
    background: #fff;
    color: #0f172a;
}

.search-wrapper input::placeholder {
    color: #94A3B8;
    font-size: 13px;
}

.search-wrapper input:focus {
    border-color: var(--sii-orange);
    box-shadow: 0 0 0 3px rgba(255, 103, 31, 0.15);
}

.btn-search {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--sii-orange);
    color: #fff;
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    padding: 0;
    margin: 0;
    line-height: 1;
}

.btn-search i {
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.btn-search:hover {
    background: #e85a00;
}

.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 0 14px;
    height: 42px;
}

.sort-label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin: 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sort-select {
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: #0f172a;
    padding: 0 20px 0 4px;
    cursor: pointer;
    outline: none;
    box-shadow: none;
    height: 100%;
}

/* DataTable Styling */
#statewiseinstitutetbl {
    border-collapse: separate;
    border-spacing: 0;
    width: 100% !important;
}

#statewiseinstitutetbl thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 14px;
    border-bottom: 2px solid #e2e8f0;
    border-top: none;
    white-space: nowrap;
}

#statewiseinstitutetbl tbody td {
    padding: 14px;
    font-size: 13px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

#statewiseinstitutetbl tbody tr:hover {
    background-color: #f8fafc;
}

.inst-name-cell {
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.inst-name-cell i {
    color: var(--sii-orange);
    margin-top: 3px;
    font-size: 16px;
    flex-shrink: 0;
}

.inst-title {
    font-size: 14px;
    font-weight: 600;
    color: #0F3B60;
}

/* Badges */
.badge-pill-custom {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-ranking {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    color: #C2410C;
    border: 1px solid #FDBA74;
    box-shadow: 0 1px 3px rgba(194, 65, 12, 0.1);
}

.badge-ranking i {
    color: #EA580C;
}

.badge-unranked {
    background-color: #F1F5F9;
    color: #64748B;
    border: 1px solid #E2E8F0;
}

.badge-type {
    background-color: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
}

.badge-discipline-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    color: #4338CA;
    background: #EEF2FF;
    border: 1px solid #E0E7FF;
    border-radius: 12px;
    padding: 2px 8px;
}

.badge-course-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #0284C7;
    background: #E0F2FE;
    border: 1px solid #BAE6FD;
    border-radius: 12px;
    padding: 2px 8px;
}

.badge-scholarship-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 600;
    color: #15803D;
    background: #DCFCE7;
    border: 1px solid #BBF7D0;
    border-radius: 12px;
    padding: 2px 8px;
}

.badge-nirf-cat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    padding: 2px 8px;
}

.badge-nirf-cat .cat-label {
    font-size: 10px;
    font-weight: 500;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.rank-category-text {
    font-size: 11px;
    font-weight: 500;
    color: #9A3412;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.inst-location-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.inst-location-cell {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #475569;
    font-weight: 500;
}

.inst-location-cell i {
    color: #EF4444;
}

.inst-website-link {
    font-size: 11px;
    color: var(--sii-blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.inst-website-link:hover {
    color: var(--sii-orange);
    text-decoration: underline;
}

.badge-sno {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: #f1f5f9;
    color: #475569;
    border-radius: 50%;
    font-weight: 600;
    font-size: 12px;
}

/* Action Button */
.btn-view-details {
    background: var(--sii-orange);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(255, 103, 31, 0.2);
}

.btn-view-details:hover {
    background: #e85a00;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 103, 31, 0.3);
}

/* Pagination */
.dataTables_wrapper .dataTables_paginate {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    padding-top: 24px;
    margin: 0 auto !important;
    float: none !important;
    text-align: center !important;
    width: 100%;
}

.dataTables_wrapper .dataTables_paginate span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 38px;
    height: 38px;
    padding: 0 12px !important;
    border-radius: 8px !important;
    border: 1px solid #E2E8F0 !important;
    background: #ffffff !important;
    color: #475569 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    margin: 0 1px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button::before,
.dataTables_wrapper .dataTables_paginate .paginate_button::after,
.dataTables_wrapper .dataTables_paginate .paginate_button a::before,
.dataTables_wrapper .dataTables_paginate .paginate_button a::after,
.dataTables_wrapper .dataTables_paginate .page-item::before,
.dataTables_wrapper .dataTables_paginate .page-item::after,
.dataTables_wrapper .dataTables_paginate .page-link::before,
.dataTables_wrapper .dataTables_paginate .page-link::after {
    display: none !important;
    content: "" !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.disabled):not(.current) {
    background: #F1F5F9 !important;
    border-color: #CBD5E1 !important;
    color: #0F172A !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #FF671F !important;
    border-color: #FF671F !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 3px 8px rgba(255, 103, 31, 0.35) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    background: #F8FAFC !important;
    border-color: #E2E8F0 !important;
    color: #94A3B8 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
    box-shadow: none !important;
    transform: none !important;
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 6px 28px 6px 12px;
    font-size: 13px;
    color: #475569;
    background-color: #fff;
    cursor: pointer;
}

.dataTables_wrapper .dataTables_info {
    font-size: 13px;
    color: #64748B;
    padding-top: 18px;
}

