/* Enhanced Header Styles */
.custom-header {
    background: linear-gradient(135deg, #001066 0%, #1a237e 50%, #283593 100%);
    color: white;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.custom-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.1;
    pointer-events: none;
}

.header-logo {
    height: 80px;
    width: auto;
    max-width: 120px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.header-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.header-logo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    opacity: 0;
}

.header-logo:hover::after {
    width: 100px;
    height: 100px;
    opacity: 1;
}

.left-logo {
    max-height: 70px;
}

.right-logo {
    max-height: 70px;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-link:hover {
    transform: translateY(-2px);
}

.header-title {
    text-align: center;
    padding: 10px 0;
}

.main-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.sub-title {
    font-size: 1.3rem;
    font-weight: 500;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    color: #e3f2fd;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

.navbar-default {
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
}

.navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 16px !important;
    margin: 0 4px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.navbar-nav .nav-link:hover::before {
    left: 100%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 8px 0;
    margin-top: 5px;
}

.dropdown-item {
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    padding: 10px 20px;
    color: #333333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
    transform: translateX(5px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-title {
        font-size: 1.8rem;
    }
    
    .sub-title {
        font-size: 1.1rem;
    }
    
    .header-logo {
        height: 60px;
        max-width: 80px;
    }
}

@media (max-width: 576px) {
    .main-title {
        font-size: 1.5rem;
    }
    
    .sub-title {
        font-size: 1rem;
    }
    
    .header-logo {
        height: 50px;
        max-width: 60px;
    }
}

/* Animation for header on page load */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-header {
    animation: fadeInDown 0.8s ease-out;
}

/* Enhanced Slider Styles - Fix for cut images */
.sliderFirst {
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.sliderFirst .item {
    position: relative;
    overflow: hidden;
}

.carousel-img {
    width: 100%;
    height: 200vh;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.carousel-img:hover {
    transform: scale(1.02);
}

/* Responsive slider heights */
@media (max-width: 767px) {
    .carousel-img {
        height: 60vh;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .carousel-img {
        height: 70vh;
    }
}

@media (min-width: 1025px) {
    .carousel-img {
        height: 90vh;
    }
}

/* Enhanced slider controls */
.controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 10;
    pointer-events: none;
}

.controls li {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.controls li:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.controls li i {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Slider overlay for better text readability */
.sliderFirst .item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.3));
    pointer-events: none;
}

/* Enhanced Website Components */

/* Enhanced Tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    border: 1px solid #e0e0e0;
}

thead {
    background: linear-gradient(135deg, #001066 0%, #1a237e 100%);
    color: white;
}

thead th {
    padding: 16px 12px;
    font-weight: 600;
    font-size: 1rem;
    text-align: left;
    border: none;
    position: relative;
    overflow: hidden;
}

thead th::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

thead th:hover::before {
    left: 100%;
}

tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

tbody tr:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

tbody tr:last-child {
    border-bottom: none;
}

tbody td {
    padding: 14px 12px;
    border: none;
    font-size: 0.95rem;
    color: #333;
    vertical-align: middle;
}

tbody tr:nth-child(even) {
    background: rgba(248, 249, 250, 0.5);
}

/* Enhanced Cards */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #001066, #1a237e, #283593);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, #001066 0%, #1a237e 100%);
    color: white;
    border: none;
    padding: 20px;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.card-header:hover::before {
    left: 100%;
}

.card-body {
    padding: 25px;
    background: #ffffff;
}

.card-footer {
    background: #f8f9fa;
    border: none;
    padding: 15px 25px;
    border-top: 1px solid #e9ecef;
}

/* Enhanced Profile Cards */
.profile-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    text-align: center;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #001066, #1a237e, #283593);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-card:hover::before {
    opacity: 1;
}

.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.profile-card img {
    width: 100%;
    height: 40vh;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.profile-card:hover img {
    transform: scale(1.05);
}

.profile-card h5 {
    margin-top: 20px;
    font-weight: 700;
    color: #001066;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.profile-card p {
    margin: 0;
    color: #666;
    font-weight: 500;
    font-size: 1rem;
}

/* Enhanced Buttons */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #001066 0%, #1a237e 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 16, 102, 0.3);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #000;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ffb300 0%, #ffa000 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
    color: #000;
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
    color: white;
}

/* Enhanced Sections */
section {
    padding: 40px 0;
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
}

/* Enhanced Container */
.container {
    position: relative;
}

.container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #001066, #1a237e, #283593);
    border-radius: 2px;
    opacity: 0.7;
}

/* Enhanced Lists */
.list-group {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.list-group-item {
    border: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 16px 20px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.list-group-item.active {
    background: linear-gradient(135deg, #001066 0%, #1a237e 100%);
    color: white;
    border: none;
}

/* Enhanced Forms */
.form-control {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 12px 16px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-control:focus {
    border-color: #001066;
    box-shadow: 0 0 0 0.2rem rgba(0, 16, 102, 0.25);
    background: #ffffff;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

/* Enhanced Alerts */
.alert {
    border-radius: 12px;
    border: none;
    padding: 16px 20px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Enhanced Navigation Tabs */
.nav-tabs {
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
}

.nav-tabs .nav-link {
    border: none;
    border-radius: 8px 8px 0 0;
    padding: 12px 24px;
    margin-right: 4px;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
    background: transparent;
}

.nav-tabs .nav-link:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    color: #001066;
    transform: translateY(-2px);
}

.nav-tabs .nav-link.active {
    background: linear-gradient(135deg, #001066 0%, #1a237e 100%);
    color: white;
    border: none;
}

/* Enhanced Pagination */
.pagination {
    gap: 4px;
}

.page-link {
    border-radius: 8px;
    border: none;
    padding: 12px 16px;
    color: #001066;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-link:hover {
    background: linear-gradient(135deg, #001066 0%, #1a237e 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 16, 102, 0.3);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #001066 0%, #1a237e 100%);
    color: white;
    border: none;
}

/* Enhanced Modal */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #001066 0%, #1a237e 100%);
    color: white;
    border: none;
    padding: 20px 25px;
}

.modal-title {
    font-weight: 600;
    font-size: 1.2rem;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 20px 25px;
    background: #f8f9fa;
}

/* Enhanced Progress Bars */
.progress {
    height: 12px;
    border-radius: 6px;
    background: #e9ecef;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    background: linear-gradient(135deg, #001066 0%, #1a237e 100%);
    border-radius: 6px;
    transition: width 0.6s ease;
}

/* Enhanced Badges */
.badge {
    border-radius: 6px;
    padding: 6px 12px;
    font-weight: 500;
    font-size: 0.85rem;
}

.badge-primary {
    background: linear-gradient(135deg, #001066 0%, #1a237e 100%);
    color: white;
}

.badge-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #000;
}

.badge-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .card {
        margin-bottom: 20px;
    }
    
    .profile-card {
        margin-bottom: 20px;
    }
    
    .table-responsive {
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .nav-tabs .nav-link {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .modal-content {
        margin: 10px;
    }
}

@media (max-width: 576px) {
    .card-body {
        padding: 20px;
    }
    
    .profile-card {
        padding: 20px;
    }
    
    .profile-card img {
        height: 30vh;
    }
    
    .table {
        font-size: 0.9rem;
    }
    
    thead th,
    tbody td {
        padding: 10px 8px;
    }
}

/* Enhanced Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.card,
.profile-card,
.table {
    animation: slideInUp 0.6s ease-out;
}

.alert {
    animation: fadeIn 0.5s ease-out;
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #001066 0%, #1a237e 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
}

/* Enhanced Focus States */
*:focus {
    outline: 2px solid #001066;
    outline-offset: 2px;
}

/* Enhanced Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
} 

/* Enhanced Department Pages Styling */
.tab-content {
    border-radius: 16px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: none !important;
    overflow: hidden !important;
}

.tab-content .tab-pane {
    padding: 30px !important;
    background: #ffffff !important;
}

.tab-content h2 {
    background: linear-gradient(135deg, #001066 0%, #1a237e 100%) !important;
    color: white !important;
    padding: 15px 25px !important;
    border-radius: 8px !important;
    margin-bottom: 25px !important;
    font-weight: 700 !important;
    font-size: 1.8rem !important;
    text-align: center !important;
    box-shadow: 0 4px 15px rgba(0, 16, 102, 0.3) !important;
}

.tab-content h3 {
    color: #001066 !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    margin-bottom: 20px !important;
    padding-bottom: 10px !important;
    border-bottom: 3px solid #001066 !important;
    position: relative !important;
}

.tab-content h3::after {
    content: '' !important;
    position: absolute !important;
    bottom: -3px !important;
    left: 0 !important;
    width: 50px !important;
    height: 3px !important;
    background: linear-gradient(90deg, #001066, #1a237e) !important;
    border-radius: 2px !important;
}

.tab-content h4 {
    color: #1a237e !important;
    font-weight: 600 !important;
    font-size: 1.2rem !important;
    margin-bottom: 15px !important;
    margin-top: 25px !important;
}

.tab-content p {
    line-height: 1.8 !important;
    margin-bottom: 15px !important;
    color: #333 !important;
    font-size: 1rem !important;
}

.tab-content ul, .tab-content ol {
    margin-bottom: 20px !important;
    padding-left: 25px !important;
}

.tab-content li {
    margin-bottom: 8px !important;
    line-height: 1.6 !important;
    color: #444 !important;
}

.tab-content .highlight {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important;
    color: #1565c0 !important;
    padding: 15px 20px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    margin: 20px 0 !important;
    border-left: 4px solid #001066 !important;
}

.tab-content a {
    color: #001066 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.tab-content a:hover {
    color: #1a237e !important;
    text-decoration: underline !important;
}

/* Enhanced Table Styling for Department Pages */
.tab-content .table {
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    margin: 20px 0 !important;
}

.tab-content .table thead {
    background: linear-gradient(135deg, #001066 0%, #1a237e 100%) !important;
    color: white !important;
}

.tab-content .table thead th {
    border: none !important;
    padding: 15px 12px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
}

.tab-content .table tbody tr {
    transition: all 0.3s ease !important;
}

.tab-content .table tbody tr:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.tab-content .table tbody td {
    padding: 12px !important;
    border: 1px solid #e0e0e0 !important;
    vertical-align: middle !important;
}

/* Enhanced Navigation Tabs for Department Pages */
.nav-tabs {
    border-bottom: 3px solid #e0e0e0 !important;
    margin-bottom: 25px !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%) !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 10px 10px 0 10px !important;
}

.nav-tabs .nav-link {
    border: none !important;
    border-radius: 8px 8px 0 0 !important;
    padding: 15px 25px !important;
    margin-right: 5px !important;
    color: #666 !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    background: transparent !important;
    position: relative !important;
    overflow: hidden !important;
}

.nav-tabs .nav-link::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(0, 16, 102, 0.1), transparent) !important;
    transition: left 0.5s ease !important;
}

.nav-tabs .nav-link:hover::before {
    left: 100% !important;
}

.nav-tabs .nav-link:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important;
    color: #001066 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(0, 16, 102, 0.2) !important;
}

.nav-tabs .nav-link.active {
    background: linear-gradient(135deg, #001066 0%, #1a237e 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 16, 102, 0.3) !important;
}

/* Enhanced Image Styling */
.img-rachna {
    margin: 30px 0 !important;
    text-align: center !important;
}

.img-rachna img {
    border-radius: 12px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    transition: transform 0.3s ease !important;
    max-width: 100% !important;
    height: auto !important;
}

.img-rachna img:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2) !important;
}

/* Enhanced Responsive Design for Department Pages */
@media (max-width: 768px) {
    .tab-content .tab-pane {
        padding: 20px !important;
    }
    
    .tab-content h2 {
        font-size: 1.5rem !important;
        padding: 12px 20px !important;
    }
    
    .tab-content h3 {
        font-size: 1.3rem !important;
    }
    
    .tab-content h4 {
        font-size: 1.1rem !important;
    }
    
    .nav-tabs .nav-link {
        padding: 12px 18px !important;
        font-size: 0.9rem !important;
    }
    
    .tab-content .table {
        font-size: 0.9rem !important;
    }
    
    .tab-content .table thead th,
    .tab-content .table tbody td {
        padding: 8px 6px !important;
    }
}

@media (max-width: 576px) {
    .tab-content .tab-pane {
        padding: 15px !important;
    }
    
    .tab-content h2 {
        font-size: 1.3rem !important;
        padding: 10px 15px !important;
    }
    
    .tab-content h3 {
        font-size: 1.2rem !important;
    }
    
    .tab-content h4 {
        font-size: 1rem !important;
    }
    
    .nav-tabs .nav-link {
        padding: 10px 15px !important;
        font-size: 0.85rem !important;
        margin-right: 3px !important;
    }
    
    .tab-content .table {
        font-size: 0.8rem !important;
    }
    
    .tab-content .table thead th,
    .tab-content .table tbody td {
        padding: 6px 4px !important;
    }
}

/* Enhanced Animations for Department Pages */
.tab-content {
    animation: fadeIn 0.6s ease-out !important;
}

.tab-content .tab-pane {
    animation: slideInUp 0.5s ease-out !important;
}

.tab-content .table {
    animation: slideInUp 0.7s ease-out !important;
}

/* Enhanced Department Pages Container */
.container {
    position: relative !important;
}

.container::before {
    content: '' !important;
    position: absolute !important;
    top: -20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 60px !important;
    height: 4px !important;
    background: linear-gradient(90deg, #001066, #1a237e, #283593) !important;
    border-radius: 2px !important;
    opacity: 0.7 !important;
}

/* Enhanced Scrollbar for Department Pages */
.tab-content::-webkit-scrollbar {
    width: 8px !important;
}

.tab-content::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 4px !important;
}

.tab-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #001066 0%, #1a237e 100%) !important;
    border-radius: 4px !important;
}

.tab-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%) !important;
} 

/* Enhanced Back Button Styling */
.back-btn {
    background: linear-gradient(135deg, #001066 0%, #1a237e 100%) !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 12px 25px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    color: white !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 16, 102, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
}

.back-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
    transition: left 0.5s ease !important;
}

.back-btn:hover::before {
    left: 100% !important;
}

.back-btn:hover {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 16, 102, 0.4) !important;
    color: white !important;
    text-decoration: none !important;
}

.back-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 10px rgba(0, 16, 102, 0.3) !important;
}

.back-btn i {
    transition: transform 0.3s ease !important;
}

.back-btn:hover i {
    transform: translateX(-3px) !important;
}

/* Enhanced Back Button Responsive Design */
@media (max-width: 768px) {
    .back-btn {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 576px) {
    .back-btn {
        padding: 8px 16px !important;
        font-size: 0.85rem !important;
        border-radius: 20px !important;
    }
    
    .back-btn i {
        font-size: 0.8rem !important;
    }
} 

/* Small Back Button Styling */
.back-btn-small {
    background: linear-gradient(135deg, #001066 0%, #1a237e 100%) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    color: white !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 16, 102, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.back-btn-small::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
    transition: left 0.5s ease !important;
}

.back-btn-small:hover::before {
    left: 100% !important;
}

.back-btn-small:hover {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(0, 16, 102, 0.4) !important;
    color: white !important;
    text-decoration: none !important;
}

.back-btn-small:active {
    transform: scale(0.95) !important;
    box-shadow: 0 1px 4px rgba(0, 16, 102, 0.3) !important;
}

.back-btn-small i {
    transition: transform 0.3s ease !important;
    font-size: 1rem !important;
}

.back-btn-small:hover i {
    transform: translateX(-2px) !important;
}

/* Enhanced Small Back Button Responsive Design */
@media (max-width: 768px) {
    .back-btn-small {
        width: 35px !important;
        height: 35px !important;
    }
    
    .back-btn-small i {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 576px) {
    .back-btn-small {
        width: 32px !important;
        height: 32px !important;
    }
    
    .back-btn-small i {
        font-size: 0.8rem !important;
    }
} 