/* Custom CSS for Work In China Template */

:root {
    --primary-blue: #2563eb;
    --secondary-blue: #1e40af;
    --light-blue: #dbeafe;
    --dark-blue: #1e3a8a;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;

    --header-height: 193px;
}

.text-two-overflow {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: calc(1em * 2 * 1.6);
}

.text-three-overflow {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    /*min-height: calc(1em * 3 * 1.6);*/
}


/* Login Page Styles */
.login-page {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e0f2fe 100%);
    min-height: 100vh;
}

.login-section {
    padding: 120px 0 80px;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.login-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.1);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
}

.login-header {
    margin-bottom: 2rem;
}

.login-title {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form .form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.login-form .input-group-text {
    background-color: var(--bg-light);
    border-color: #e5e7eb;
    color: var(--primary-blue);
    width: 45px;
    justify-content: center;
}

.login-form .form-control {
    border-color: #e5e7eb;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.login-form .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.login-form .form-control.is-invalid {
    border-color: #dc3545;
}

.login-form .invalid-feedback {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

#sendCodeBtn {
    border-left: none;
    white-space: nowrap;
    min-width: 100px;
}

#sendCodeBtn:disabled {
    background-color: var(--bg-light);
    border-color: #e5e7eb;
    color: var(--text-light);
}

.form-check-input:checked {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.form-check-label a {
    text-decoration: none;
}

.form-check-label a:hover {
    text-decoration: underline;
}

.login-btn {
    padding: 12px 24px;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.login-btn:disabled {
    transform: none;
    box-shadow: none;
}

.login-footer {
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-login .btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-login .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .login-section {
        padding: 100px 0 60px;
    }
    
    .login-card {
        padding: 30px 20px;
        margin: 0 15px;
        border-radius: 12px;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .social-login {
        flex-direction: column;
        align-items: center;
    }
    
    .social-login .btn {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 25px 15px;
    }
    
    #sendCodeBtn {
        min-width: 80px;
        font-size: 0.85rem;
    }
}

body {
    font-family: "Times New Roman", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --bs-body-line-height: 1.6;
    color: var(--text-dark);
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand img {
    width: 356px;
    height: 162px;
    transition: transform 0.3s ease;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 1.5rem !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--primary-blue);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Navigation Hamburger Button Styling */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border-radius: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler:hover {
    background-color: rgba(37, 99, 235, 0.08);
    transform: scale(1.05);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
    outline: none;
    background-color: rgba(37, 99, 235, 0.05);
}

.navbar-toggler:active {
    transform: scale(0.95);
}

/* Custom Hamburger Icon */
.navbar-toggler-icon {
    background-image: none;
    width: 22px;
    height: 16px;
    position: relative;
    transform: rotate(0deg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

/* Create three lines for hamburger */
.navbar-toggler-icon,
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    background-color: var(--primary-blue);
    height: 2px;
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
}

/* Position the lines */
.navbar-toggler-icon::before {
    top: -6px;
}

.navbar-toggler-icon::after {
    top: 6px;
}

/* Animation when menu is open (cross state) */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-color: transparent;
    transform: rotate(180deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    top: 0;
    transform: rotate(45deg);
    width: 100%;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    top: 0;
    transform: rotate(-45deg);
    width: 100%;
}

/* Smooth hover effects for the lines */
.navbar-toggler:hover .navbar-toggler-icon,
.navbar-toggler:hover .navbar-toggler-icon::before,
.navbar-toggler:hover .navbar-toggler-icon::after {
    background-color: var(--primary-blue);
}

/* Mobile menu styling improvements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-radius: 0.75rem;
        margin-top: 0.5rem;
        padding: 1rem;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(37, 99, 235, 0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 0.5rem;
        margin: 0.25rem 0;
        transition: all 0.2s ease;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: rgba(37, 99, 235, 0.08);
        transform: translateX(4px);
    }
    
    .navbar-nav .nav-link.active {
        background-color: rgba(37, 99, 235, 0.1);
        color: var(--primary-blue) !important;
    }
}

.index-carousel-section {
    background: var(--bg-light);
}

.index-carousel-section .carousel {
    max-width: 1920px;
    margin: 0 auto;
}

.index-carousel-section .carousel .carousel-item {
    padding-top: 42.85%;
}

.index-carousel-section .carousel .carousel-item img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*.carousel-item {*/
/*    height: 742.5px;*/
/*}*/
/*.carousel-item img {*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    object-fit: cover;*/
/*}*/

/* Search Section */
.search-section {
    background: var(--bg-light);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 2.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.search-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.search-container .form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.search-container .form-control,
.search-container .form-select {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.search-container .form-control:focus,
.search-container .form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.search-container .btn-primary {
    background: var(--primary-blue);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-container .btn-primary:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

/* Features Section */
.features-section {
    background: white;
}

.feature-card {
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: white;
    border: 1px solid #e5e7eb;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--primary-blue);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-light);
    line-height: 1.7;
}

/* Jobs Section */
.jobs-section {
    background: var(--bg-light);
}

.section-header .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.job-card,
.company-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.job-card:hover,
.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.job-card .card-body,
.company-card .card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    /*justify-content: space-between;*/
}

.job-card .card-title,
.company-card .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.job-details {
    color: var(--text-light);
}

.job-details .badge {
    background: var(--light-blue) !important;
    color: var(--primary-blue) !important;
}

.salary {
    font-weight: 600;
    color: var(--primary-blue);
}

.location {
    color: var(--text-light);
}

.location i {
    color: var(--primary-blue);
}

/* Companies Section */
.companies-section {
    background: white;
}

/* Activities Section */
.activities-section {
    background: var(--bg-light);
}

.activity-card {
    transition: all 0.3s ease;
}

.activity-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.activity-card .card {
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    overflow: hidden;
}

.activity-card .card-img-top {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.activity-card .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.activity-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.activity-card .card-text {
    /*flex: 1;*/
}

.activity-details {
    color: var(--text-light);
}

.activity-details i {
    color: var(--primary-blue);
}

/* Footer */
.footer {
    background: #1f2937 !important;
}

.footer a:hover {
    color: var(--light-blue) !important;
}

.job-card .card-text,
.company-card .card-text {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    min-height: calc(1em * 3 * 1.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --header-height: 149.3px;
    }

    .navbar-brand img{
        width: 260px;
        height: 118.31px;
    }

    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .search-container {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .job-card .row,
    .company-card .row {
        flex-direction: column;
    }
    
    .job-card .col-md-3,
    .company-card .col-md-3 {
        max-width: 100%;
    }
    
    .job-card img,
    .company-card img {
        /*height: 200px;*/
        margin-top: 1em;
        object-fit: cover;
        width: 90px;
    }
    
    .job-card .row,
    .company-card .row {
        height: 100%;
        margin: 0;
    }
    
    .job-card .col-md-3,
    .company-card .col-md-3 {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .search-container {
        padding: 1rem;
    }
    
    .search-container .row {
        flex-direction: column;
    }
    
    .search-container .col-md-5,
    .search-container .col-md-2 {
        max-width: 100%;
        margin-bottom: 1rem;
    }
}

/* Mobile Menu Styling Improvements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: white;
        border-radius: 0.5rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        margin-top: 0.5rem;
        padding: 1rem;
        border: 1px solid #e5e7eb;
    }
    
    .navbar-nav {
        margin-bottom: 1rem;
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 0.375rem;
        transition: all 0.3s ease;
        font-weight: 500;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: var(--light-blue);
        color: var(--primary-blue) !important;
    }
    
    .navbar-nav .nav-link.active {
        background-color: var(--primary-blue);
        color: white !important;
    }
    
    .navbar-nav .nav-link.active:hover {
        background-color: var(--secondary-blue);
        color: white !important;
    }
    
    .btn-outline-primary {
        width: 100%;
        margin-top: 0.5rem;
        padding: 0.75rem 1rem;
        font-weight: 600;
        border-radius: 0.375rem;
        transition: all 0.3s ease;
    }
    
    .btn-outline-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Additional card layout improvements */
.job-card .row,
.company-card .row {
    height: 100%;
    margin: 0;
    flex: 1;
}

.job-card .col-md-9,
.company-card .col-md-9 {
    display: flex;
    flex-direction: column;
}

/* Improved card height consistency using Bootstrap-compatible approach */
.jobs-section .row,
.companies-section .row,
.activities-section .row {
    display: flex;
    flex-wrap: wrap;
}

.jobs-section .col-lg-6,
.companies-section .col-lg-6,
.activities-section .col-lg-4 {
    display: flex;
    flex-direction: column;
}

/* Ensure all card containers stretch to full height */
.job-card,
.company-card,
.activity-card .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Make card bodies flexible to fill remaining space */
.job-card .card-body,
.company-card .card-body,
.activity-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    /*justify-content: space-between;*/
}

/* Ensure consistent image sizing across all card types */
.job-card img,
.company-card img,
.activity-card img {
    object-fit: cover;
    width: 90px;
}

/* Fix image container sizing for desktop */
@media (min-width: 768px) {
    .job-card .col-md-3,
    .company-card .col-md-3 {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .job-card .col-md-3 img,
    .company-card .col-md-3 img {
        width: 90px;
    }
}

main {
    margin-top: var(--header-height);
}

/* Content Pages Styling */
.main-content {
    padding-top: 100px;
    padding-bottom: 50px;
    min-height: calc(100vh - 200px);
}

.content-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin-bottom: 30px;
}

.page-header {
    /*padding-top: var(--header-height) !important;*/
    margin-bottom: 2em;
}

.page-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.title-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    margin: 20px auto;
}

.agreement-content .section,
.privacy-content .section {
    margin-bottom: 30px;
}

.agreement-content h3,
.privacy-content h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 8px;
}

.agreement-content h4,
.privacy-content h4 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
}

.agreement-content p,
.privacy-content p {
    line-height: 1.7;
    margin-bottom: 15px;
    color: #555;
}

.agreement-content ul,
.privacy-content ul {
    margin-bottom: 15px;
    padding-left: 25px;
}

.agreement-content li,
.privacy-content li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #666;
}

.agreement-content a,
.privacy-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.agreement-content a:hover,
.privacy-content a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .content-card {
        padding: 25px;
        margin: 15px;
    }
    
    .main-content {
        padding-top: 80px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
}

/* Policy detail page styles */
.policy-detail-card .card-img-top {
    /*height: 300px;*/
    /*object-fit: cover;*/
}

.policy-meta {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
}

.policy-meta .badge {
    font-size: 0.875rem;
}

.policy-content h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.policy-content h5 {
    color: #495057;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.policy-content h6 {
    color: #6c757d;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.process-steps .step-item {
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    border-radius: 0.25rem;
}

.insurance-item, .tax-status, .talent-category, .requirements-section {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
}

.insurance-item h6, .tax-status h6, .talent-category h6, .requirements-section h6 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.policy-actions .card, .policy-info .card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.info-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.info-item:last-child {
    border-bottom: none;
}

.industries-grid ul {
    margin-bottom: 0;
}

.filing-requirements {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--secondary-color);
}

.filing-requirements h6 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

/* Policy horizontal card styles */
.policy-card-horizontal {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.policy-card-horizontal:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.policy-image {
    width: 100%;
    border-radius: 0.375rem;
}

.policy-card-horizontal .card-body {
    padding: 1.5rem;
}

.policy-card-horizontal .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.3;
}

.policy-card-horizontal .card-text {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
}

.policy-card-horizontal .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

/* Mobile responsive adjustments for policy cards */
@media (max-width: 768px) {
    .policy-card-horizontal .row {
        flex-direction: column;
    }
    
    .policy-card-horizontal .col-md-3,
    .policy-card-horizontal .col-lg-2 {
        flex: 0 0 auto;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .policy-card-horizontal .col-md-9,
    .policy-card-horizontal .col-lg-10 {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .policy-image {
        /*height: 200px;*/
        border-radius: 0.375rem 0.375rem 0 0;
    }
    
    .policy-card-horizontal .card-body {
        padding: 1rem;
    }
    
    .policy-card-horizontal .d-flex.justify-content-between {
        /*flex-direction: column;*/
        gap: 0.75rem;
    }
    
    .policy-card-horizontal .d-flex.justify-content-between .btn {
        align-self: flex-start;
    }
}


.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 8px;
    min-height: 60px;
}

.page-info {
    margin-left: 1.5rem;
    color: #495057;
    font-size: 0.9rem;
    font-weight: 500;
}

.pagination {
    margin: 0;
}

.pagination .page-link {
    color: #495057;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin: 0 4px;
    padding: 10px 14px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out;
    background-color: #fff;
    min-width: 40px;
    text-align: center;
}

.pagination .page-link:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.3);
}

.pagination .page-item.disabled .page-link {
    color: #adb5bd;
    background-color: #f8f9fa;
    border-color: #e9ecef;
    cursor: not-allowed;
}

.pagination .page-item.disabled .page-link:hover {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    transform: none;
    box-shadow: none;
}

/* 响应式设计 - 小屏幕 */
@media (max-width: 768px) {
    .pagination-container {
        padding: 1rem;
        min-height: 50px;
    }

    .pagination .page-link {
        padding: 8px 12px;
        font-size: 0.9rem;
        min-width: 35px;
    }

    /* 隐藏页码按钮，只显示上一页下一页 */
    .pagination .page-item:not(.page-item:first-child):not(.page-item:last-child) {
        display: none;
    }

    /* 调整上一页下一页按钮样式 */
    .pagination .page-item:first-child .page-link,
    .pagination .page-item:last-child .page-link {
        min-width: 80px;
        font-weight: 500;
    }

    /* 隐藏分页信息 */
    .page-info {
        display: none;
    }
}

/* 超小屏幕 */
@media (max-width: 480px) {
    .pagination-container {
        padding: 0.75rem;
    }

    .pagination .page-link {
        padding: 6px 10px;
        font-size: 0.85rem;
        min-width: 30px;
    }

    .pagination .page-item:first-child .page-link,
    .pagination .page-item:last-child .page-link {
        min-width: 70px;
    }
}

.cursor-not-allow {
    cursor: not-allowed !important;
}
