*, *::before, *::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
.slide {
    background: linear-gradient(180deg, rgba(247,248,249,1) 0%, rgba(247,248,249,1) 32%, rgba(255,255,255,1) 100%);
    background-size: cover;
    background-position: center center;
    width: 100%;
    height: 440px;
    padding-top: 15px;
}
p.sub {
    color: #da9f59;
}
i.prev_btn {
    color: #03897c;
    font-size: 48px;
    font-weight: bold;
    position: absolute;
    left: 15px;
}
i.next_btn {
    color: #03897c;
    font-size: 48px;
    font-weight: bold; 
    position: absolute;
    right: 15px; 
}
.carousel-control-next, .carousel-control-prev {
    opacity: unset;
}

.sub_header {
    background: #03897c;
    color: #fff;
    padding: 10px;
}
.sub_header_inner_right {
    text-align: right;
}

.sub_header_inner_left, .sub_header_inner_right {
    display: flex;
    gap: 10px;
}
.sub_header_inner_right {
    justify-content: right;
}
.sub_header_col span {
    font-size: 12px;
}
footer.dark-footer{
    background: #00120b;
}
.footer-bottom {
    background: #040c04 !important;
}
#back2Top {
    background: #57a15d;
}
.dash_crs_cat_head {
    border-bottom: 0;
}
footer.skin-dark-footer .footer_widget ul li a, footer.skin-dark-footer, footer.skin-dark-footer a {
    color: #ab8354;
}

footer.skin-dark-footer h4 {
    color: #dfd9d9;
}
.mobile_nav ul li a {
    color: #03b97c;
    font-size: 30px;
    padding-right: 10px;
}
.instructor_tag {
    margin-bottom: 10px;
}
.social_network {
    margin-top: 30px;
}
.social_network ul li {
    display: inline;
    margin-right: 5px;
}
.social_network ul li a {
    font-size: 22px !important;
}

@media screen and (max-width: 992px) {
    .nav-brand img {
        max-width: unset;
    }
}

@media screen and (max-width: 767px) {
    .sub_header {
        display: none;
    }
    .hero_search-2 {
        text-align: center;
    }
    .slide {
        height: unset;
    }
}

@media screen and (max-width: 510px) {
    .mobile_nav ul {
        display: none;
    }
}

@media screen and (max-width: 380px) {
    .mobile_nav ul {
        display: none;
    }
}

@media screen and (max-width: 360px) {
    .nav-brand img {
        width: 240px;
    }
}

/* Department Cards - Equal Height and Width */
.crs_grid {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.crs_grid_thumb {
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
}

.crs_grid_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.crs_grid_caption {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 15px;
}

.crs_info_detail {
    flex: 1;
    margin-bottom: 15px;
}

.crs_title h4 {
    margin-bottom: 10px;
}

/* Department Contact Icons */
.department-actions {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.department-actions .action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #f8f9fa;
    color: #6c757d;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 14px;
}

.department-actions .action-btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
}

.department-actions .action-btn.profile {
    background: #007bff;
    color: white;
}

.department-actions .action-btn.profile:hover {
    background: #0056b3;
    color: white;
}

.department-actions .action-btn.contact {
    background: #28a745;
    color: white;
}

.department-actions .action-btn.contact:hover {
    background: #1e7e34;
    color: white;
}

.department-actions .action-btn.email {
    background: #dc3545;
    color: white;
}

.department-actions .action-btn.email:hover {
    background: #c82333;
    color: white;
}

.department-actions .action-btn.linkedin {
    background: #0077b5;
    color: white;
}

.department-actions .action-btn.linkedin:hover {
    background: #005885;
    color: white;
}

/* Equal height rows with proper spacing */
.row.equal-height {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.row.equal-height > [class*='col-'] {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

/* Hospital Cards */
.hospital-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f5f5f5;
}

.hospital-card:hover {
    box-shadow: 0 8px 35px rgba(3, 137, 124, 0.15);
    transform: translateY(-8px);
    border-color: rgba(3, 137, 124, 0.1);
}

.hospital-card-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.hospital-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hospital-card:hover .hospital-card-thumb img {
    transform: scale(1.05);
}

.hospital-status {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
}

.hospital-card-content {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.hospital-header {
    margin-bottom: 20px;
}

.hospital-header h4 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
}

.hospital-header h4 i {
    color: #03897c;
    margin-right: 8px;
    font-size: 18px;
}

.hospital-location {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.hospital-location i {
    margin-right: 6px;
    color: #03897c;
}

.hospital-details {
    margin-bottom: 18px;
}

.hospital-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13px;
    color: #495057;
}

.hospital-contact-item i {
    width: 18px;
    margin-right: 10px;
    font-size: 14px;
}

.hospital-description {
    flex: 1;
    margin-bottom: 18px;
}

.hospital-description p {
    color: #5a6c7d;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
}

.hospital-services {
    margin-bottom: 22px;
    padding: 18px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.service-icons {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 8px;
}

.service-icons span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #03897c 0%, #026b5f 100%);
    color: white;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(3, 137, 124, 0.3);
}

.service-icons span:hover {
    background: linear-gradient(135deg, #026b5f 0%, #014d43 100%);
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 4px 15px rgba(3, 137, 124, 0.4);
}

.hospital-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.hospital-actions .btn {
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.hospital-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(3, 137, 124, 0.3);
    text-decoration: none;
}

.hospital-quick-actions {
    display: flex;
    gap: 10px;
}

.quick-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f8f9fa;
    color: #6c757d;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 13px;
    border: 1px solid #e9ecef;
}

.quick-action-btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.quick-action-btn:nth-child(1):hover {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.quick-action-btn:nth-child(2):hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.quick-action-btn:nth-child(3):hover {
    background: #e91e63;
    color: white;
    border-color: #e91e63;
}

.quick-action-btn:nth-child(4):hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Call to Action Section */
.state-hospitals-cta {
    background: linear-gradient(135deg, #03897c 0%, #026b5f 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(3, 137, 124, 0.3);
}

.state-hospitals-cta h3 {
    margin-bottom: 15px;
    font-size: 28px;
}

.state-hospitals-cta h3 i {
    margin-right: 10px;
}

.cta-buttons .btn {
    margin: 5px;
}

/* Hospital Search and Pagination Styles */
.hospital-search-form {
    margin-bottom: 30px;
}

.hospital-search-form .input-group {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 25px;
    overflow: hidden;
}

.hospital-search-form .form-control {
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    border-radius: 25px 0 0 25px;
}

.hospital-search-form .form-control:focus {
    box-shadow: none;
    border-color: transparent;
}

.hospital-search-form .btn {
    border: none;
    background: #03897c;
    color: white;
    padding: 15px 25px;
    border-radius: 0 25px 25px 0;
    transition: all 0.3s ease;
}

.hospital-search-form .btn:hover {
    background: #026b5f;
    transform: translateY(-1px);
}

.search-results-info a {
    color: #03897c;
    text-decoration: none;
}

.search-results-info a:hover {
    text-decoration: underline;
}

/* Pagination Styles */
.pagination {
    margin: 50px 0 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination .page-item .page-link {
    border: 1px solid #e9ecef;
    color: #03897c;
    padding: 12px 18px;
    margin: 0 3px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    text-decoration: none;
}

.pagination .page-item .page-link:hover {
    background: #03897c;
    color: white;
    border-color: #03897c;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(3, 137, 124, 0.2);
    text-decoration: none;
}

.pagination .page-item.active .page-link {
    background: #03897c;
    border-color: #03897c;
    color: white;
    box-shadow: 0 4px 8px rgba(3, 137, 124, 0.3);
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background: #f8f9fa;
    border-color: #dee2e6;
    cursor: not-allowed;
}

.pagination .page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
    background: #f8f9fa;
    color: #6c757d;
}

/* No Results Styles */
.no-results-found {
    background: #f8f9fa;
    border-radius: 10px;
    margin: 40px 0;
}

.no-results-found i {
    opacity: 0.5;
}

.no-results-found h3 {
    color: #495057;
    margin-bottom: 15px;
}

.no-results-found p {
    font-size: 16px;
    margin-bottom: 25px;
}

/* Responsive Pagination */
@media screen and (max-width: 768px) {
    .pagination .page-item .page-link {
        padding: 8px 12px;
        margin: 0 1px;
        font-size: 14px;
    }
    
    .hospital-search-form .form-control,
    .hospital-search-form .btn {
        padding: 12px 15px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .pagination .page-item .page-link {
        padding: 6px 10px;
        margin: 0;
        font-size: 12px;
    }
    
    .pagination .page-item:nth-child(n+8) {
        display: none;
    }
    
    .hospital-search-form .input-group {
        border-radius: 20px;
    }
    
    .hospital-search-form .form-control {
        border-radius: 20px 0 0 20px;
        padding: 10px 15px;
    }
    
    .hospital-search-form .btn {
        border-radius: 0 20px 20px 0;
        padding: 10px 20px;
    }
}