/*---------------------------------------------------------------
Template Name: Medinexia | Modern Medical & Healthcare Multi-Page Website Template
Description: Medinexia – Modern Medical & Healthcare Multi-Page Template designed for hospitals, clinics, doctors and healthcare services with a clean, trustworthy UI.
Author: Lucid ThemesLab
Author URL: https://www.templatemonster.com/store/lucid_themeslab/
@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,100..900;1,100..900&display=swap');
Version: 1.0.0
----------------------------------------------------------------*/
@import url(main.css);

a {
    color: inherit;
    text-decoration: none;
}

    a:hover {
        color: inherit;
        text-decoration: none;
    }

::placeholder {
    color: var(--nav-text) !important;
}

body {
    font-family: "Archivo", sans-serif;
    overflow-x: hidden;
    background-color: var(--body-color);
}

/* ===== NAVBAR STYLING ===== */
.navbar {
    background: var(--card-color) !important;
}

    .navbar .nav-link {
        color: var(--heading-text) !important;
        font-weight: 500;
    }

        .navbar .nav-link:hover {
            color: var(--primary-color);
            transition: 0.3s;
        }

        .navbar .nav-link:hover,
        .navbar .nav-link:focus,
        .navbar .nav-link.active {
            color: var(--primary-color) !important;
        }

/* Dropdown */
.enhanced-dropdown {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 10px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dropdown Title */
.dropdown-title {
    color: var(--heading-text);
}

.dd-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(var(--primary-rgb), 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: 0.35s ease;
}

.nav-item.dropdown.show .nav-angle {
    transform: rotate(180deg);
}

.custom-dropdown {
    background: var(--card-color);
    border: 1px solid var(--primary-color);
    border-radius: 14px;
    padding: 8px;
}

    .custom-dropdown .dropdown-item {
        color: var(--heading-text);
        font-size: 15px;
        transition: 0.3s ease;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .custom-dropdown .dropdown-item:hover,
        .custom-dropdown .dropdown-item:focus,
        .custom-dropdown .dropdown-item.active,
        .mega-menu .mega-link:hover,
        .mega-menu .mega-link:focus,
        .mega-menu .mega-link.active {
            background: transparent !important;
            color: var(--primary-color);
            transform: translateX(6px);
        }

    .custom-dropdown .dropdown-item {
        margin-top: 6px;
    }

.mega-menu .mega-link {
    margin-top: 6px;
}

.custom-dropdown .dropdown-item svg {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.navbar .dropdown-toggle::after {
    display: none;
}

.nav-angle {
    font-size: 13px;
    transition: transform 0.3s ease;
}

.nav-item.dropdown.show .nav-angle {
    transform: rotate(180deg);
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
    color: var(--primary-color);
}

/* ===============================
   MEGA MENU – BASE
================================ */
.mega-menu {
    width: 50vw;
    left: unset !important;
    right: 0 !important;
    top: 125% !important;
    border: 1px solid var(--primary-color);
    border-radius: 14px;
    background-color: var(--card-color);
}

/* ===============================
   MEGA MENU LINKS
================================ */
.mega-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 5px;
    border-radius: 10px;
    font-size: 15px;
    color: var(--heading-text);
    text-decoration: none;
    transition: 0.25s ease;
}

    .mega-link:hover,
    .mega-link.active {
        background: rgba(255, 255, 255, 0.08);
        color: var(--primary-color);
        transform: translateX(4px);
    }

/* ===============================
   MOBILE / OFFCANVAS
================================ */
@media (max-width: 991px) {
    .mega-menu {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0;
        margin-top: 0;
        border-radius: 0;
        box-shadow: none;
    }

        .mega-menu::before,
        .custom-dropdown::before {
            display: none;
        }

        .mega-menu .row {
            max-height: 45vh;
            overflow-y: auto;
            margin: 0;
        }

            .mega-menu .row::-webkit-scrollbar {
                width: 4px;
            }

            .mega-menu .row::-webkit-scrollbar-thumb {
                background: var(--primary-color);
                border-radius: 10px;
            }
}

.mega-link {
    padding: 3px !important;
    font-size: 14px;
}

.offcanvas-body {
    padding-bottom: 90px;
}

/* =========================
    HERO SECTION 
    ========================= */
.hero-medical {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-slide {
    min-height: 900px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 8%;
    position: relative;
}

    .hero-slide::before {
        content: "";
        position: absolute;
        inset: 0;
        background: var(--hero-overlay);
        z-index: 1;
    }

.slide-1 {
    background-image: url("../../assets/images/background-img/bg_1.webp");
}

.slide-2 {
    background-image: url("../../assets/images/background-img/bg_2.webp");
}

.slide-3 {
    background-image: url("../../assets/images/background-img/bg_3.webp");
}

/* =========================
    GLASS CONTENT BOX
========================= */
.hero-content-box {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 90%;
    background: var(--hero-glass-bg);
    backdrop-filter: blur(12px);
    padding: 45px 40px;
    border-radius: 18px;
    border: 1px solid var(--hero-glass-border);
    color: var(--hero-text);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    animation: fadeInUp 0.9s ease-out;
}

    .hero-content-box::after {
        content: "";
        position: absolute;
        inset: -3px;
        border-radius: 20px;
        background: var(--hero-glow);
        z-index: -1;
        filter: blur(12px);
        opacity: 0.7;
    }

.rating-badge {
    background: var(--rating-bg);
    color: var(--hero-text);
}

/* ================
   TEXT STYLING
  ===================*/
.rating-badge {
    margin-top: 18px;
    background: rgba(255, 255, 255, 0.22);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    backdrop-filter: blur(6px);
    font-weight: 500;
    display: inline-block;
}

@media (max-width: 991px) {
    .hero-slide {
        min-height: 500px;
        padding: 0 5%;
        text-align: center;
        justify-content: center;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-content-box {
        max-width: 90%;
        padding: 30px 22px;
    }

    .hero-btn-group .hero-btn {
        width: 100%;
        margin: 6px 0;
    }
}

/* =================
   PRELOADER BASE
  ================== */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--theme-gradient);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

    #preloader.loaded {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

.preloader-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: center;
}

/* =========================
   LOADING TEXT ABOVE LOGO
  ========================= */
.loader-text {
    font-size: 16px;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
}

    .loader-text .dots b {
        opacity: 0;
        animation: dotBlink 1.2s infinite;
        margin: 0 2px;
    }

        .loader-text .dots b:nth-child(1) {
            animation-delay: .0s;
        }

        .loader-text .dots b:nth-child(2) {
            animation-delay: .2s;
        }

        .loader-text .dots b:nth-child(3) {
            animation-delay: .4s;
        }

@keyframes dotBlink {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* =========================
  INDIVIDUAL LETTER BOUNCE
========================= */
.preloader-logo {
    font-size: 70px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    gap: 3px;
}

    .preloader-logo span {
        display: inline-block;
        animation: jump 1.2s infinite ease-in-out;
    }

        .preloader-logo span:nth-child(1) {
            animation-delay: 0s;
        }

        .preloader-logo span:nth-child(2) {
            animation-delay: .1s;
        }

        .preloader-logo span:nth-child(3) {
            animation-delay: .2s;
        }

        .preloader-logo span:nth-child(4) {
            animation-delay: .3s;
        }

        .preloader-logo span:nth-child(5) {
            animation-delay: .4s;
        }

        .preloader-logo span:nth-child(6) {
            animation-delay: .5s;
        }

        .preloader-logo span:nth-child(7) {
            animation-delay: .6s;
        }

        .preloader-logo span:nth-child(8) {
            animation-delay: .7s;
        }

        .preloader-logo span:nth-child(9) {
            animation-delay: .8s;
        }

@keyframes jump {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

/* ==================
   SPINNER
 ===================== */
.spinner-circle {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(221, 221, 221, 0.411);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 480px) {
    .preloader-logo {
        font-size: 48px;
    }
}

.badge-label {
    display: inline-block;
    border: 1px solid var(--primary-color);
    padding: 6px 18px;
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 14px;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.05);
}

    .badge-label svg {
        margin-right: 8px;
        color: var(--primary-color);
        animation: bounce 1.5s infinite;
    }

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* =========================
   Service Card
========================= */
.service-card {
    background: var(--card-color);
    padding: 35px;
    border-radius: 18px;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    transition: 0.4s ease;
}

    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 45px rgba(18, 57, 158, 0.25);
    }

    .service-card::after {
        content: "";
        position: absolute;
        inset: 0;
        background: var(--theme-gradient-2);
        opacity: 0;
        transition: 0.4s ease;
    }

    .service-card:hover::after {
        opacity: 1;
    }

    .service-card > * {
        position: relative;
        z-index: 2;
    }

    .service-card .dot {
        width: 9px;
        height: 9px;
        background: var(--primary-color);
        border-radius: 50%;
        transition: 0.3s;
    }

    .service-card p {
        margin: 15px 0 25px;
        transition: 0.3s;
        color: var(--para-text);
    }

.read-more {
    transition: 0.3s;
}

    .read-more svg {
        transition: transform 0.3s;
    }

    .read-more:hover svg {
        transform: translateX(5px);
    }

.service-icon {
    width: 48px;
    height: 48px;
    background: var(--secondary-color);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: 0.35s ease;
}

/* =========================
   Hover Content Color Change
========================= */
.service-card:hover h3,
.service-card:hover p,
.service-card:hover .read-more {
    color: #fff !important;
}

.service-card:hover .dot {
    background: #fff;
}

.service-card:hover .service-icon {
    background: #fff;
    color: var(--primary-color);
    transform: rotate(-8deg) scale(1.1);
}

.service-card:hover .read-more i {
    color: #fff;
}

.about-medinexia .img-main {
    width: 100%;
    height: 100%;
}

.about-medinexia .main-img {
    width: 100%;
    z-index: 1;
}

.about-medinexia .top-img {
    width: 60%;
    top: -20px;
    left: 50px;
    z-index: 2;
    border: 4px solid #fff;
}

.about-medinexia .bottom-img {
    width: 50%;
    bottom: -20px;
    right: 0;
    z-index: 3;
    border: 4px solid #fff;
}

@media (max-width: 992px) {
    .about-medinexia .top-img,
    .about-medinexia .bottom-img {
        width: 50%;
        top: -10px;
        left: 20px;
        bottom: -10px;
        right: auto;
    }

    .video-thumb {
        width: 100px;
        height: 70px;
    }
}

.feature-card svg {
    font-size: 2rem;
}

.card-img-top {
    height: 250px;
    object-fit: cover;
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
    border-radius: 8px;
}

.appointment-form button {
    border-radius: 30px;
    transition: 0.3s;
}

    .appointment-form button:hover {
        transform: translateY(-2px);
    }

.feature-card-modern {
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: 0.4s ease;
    border-radius: 0.375rem
}

    .feature-card-modern:hover {
        transform: rotate(0deg) translateY(-10px) scale(1.05);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    }

.icon-bg {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #fff;
    font-size: 1.5rem;
    animation: iconPulse 2s infinite alternate;
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.stats-modern {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    text-align: center;
}

.stat-modern h3 {
    font-size: 2rem;
    font-weight: 700;
    background: var(--primary-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.trending-stats {
    background: var(--theme-gradient);
    color: #fff;
}

.stat-trend {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    transition: transform 0.4s, box-shadow 0.4s;
    min-height: auto;
}

    .stat-trend:hover {
        transform: translateY(-15px);
        box-shadow: 0 20px 30px rgba(0, 0, 0, 0.4);
    }

.icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    animation: iconBounce 2s infinite;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.count {
    font-size: 2.2rem;
    font-weight: 700;
    margin-top: 10px;
}

.stat-trend p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.85;
}

@media(max-width: 768px) {
    .icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .count {
        font-size: 1.8rem;
    }
}

.doctor-card-premium {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    position: relative;
}

    .doctor-card-premium:hover {
        transform: translateY(-10px);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    }

.doctor-img-premium {
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

    .doctor-img-premium img {
        width: 100%;
        display: block;
        transition: transform 0.5s ease;
    }

.doctor-card-premium:hover .doctor-img-premium img {
    transform: scale(1.1);
}

.overlay-premium {
    position: absolute;
    inset: 0;
    background: rgba(0, 123, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.doctor-card-premium:hover .overlay-premium {
    opacity: 1;
}

.badge-specialty {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, var(--primary-color), #033b88);
    color: #fff;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.doctor-info-premium {
    padding: 1rem;
    background-color: var(--card-color);
}

    .doctor-info-premium h5 {
        font-weight: 600;
        margin-bottom: 0.25rem;
    }

@media(max-width: 576px) {
    .doctor-card-premium {
        width: 70%;
        margin: auto;
    }
}

.footer-section {
    background: var(--theme-gradient);
}

    .footer-section .footer-title {
        border-bottom: 2px solid var(--primary-color);
        display: inline-block;
        padding-bottom: 5px;
    }

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    transition: color 0.3s ease-in;
}

    .footer-links a:hover {
        color: var(--primary-color);
    }

.social-icons a {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease-in;
}

    .social-icons a:hover {
        background: var(--primary-color);
        color: #fff !important;
    }

.appointment-form {
    background: var(--card-color);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
}

    .appointment-form .position-relative {
        position: relative;
    }

    .appointment-form .form-icon {
        position: absolute;
        top: 50%;
        left: 15px;
        transform: translateY(-50%);
        color: var(--primary-color);
        font-size: 1rem;
    }

    .appointment-form .form-control,
    .appointment-form .form-select,
    .appointment-form textarea {
        border-radius: 10px;
        border: 1px solid #ced4da;
        height: 45px;
        font-size: 0.95rem;
        transition: 0.3s ease-in;
        background-color: var(--input-bg);
        color: var(--input-text);
    }

    .appointment-form textarea {
        min-height: 100px;
        padding-top: 0.8rem;
    }

        .appointment-form .form-control:focus,
        .appointment-form .form-select:focus,
        .appointment-form textarea:focus {
            border-color: var(--primary-color);
            box-shadow: none;
            outline: none;
            background-color: var(--input-bg);
            color: var(--input-text);
        }

    .appointment-form select.form-select {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        padding-right: 2.5rem;
    }

.select-arrow {
    position: absolute;
    right: 15px;
    top: 25px;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--input-text);
}

.appointment-form ::placeholder {
    color: var(--input-text);
    opacity: 1;
}

.primary-btn {
    border-radius: 50px;
    padding: 13px 20px;
    font-weight: 600;
    background: var(--secondary-color);
    border: none;
    color: #fff !important;
    font-size: 15px;
}

    .primary-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        background: var(--primary-color);
        transition: 0.3s ease-in;
    }

.outline-btn {
    border-radius: 50px;
    padding: 12px 20px;
    font-weight: 600;
    border: 1px solid #fff;
    color: #fff !important;
    font-size: 15px;
}

    .outline-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        background: var(--secondary-color);
        transition: 0.3s ease-in;
    }

.primary-outline-btn {
    border-radius: 50px;
    padding: 5px 8px;
    font-weight: 600;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    font-size: 15px;
}

    .primary-outline-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        background: var(--primary-color);
        color: #fff !important;
        transition: 0.3s ease-in;
    }

.primary-text {
    color: #020202 !important;
}

@media(max-width: 768px) {
    .appointment-form {
        padding: 1.5rem;
    }
}

.form-select {
    background-image: unset;
}

.appointment-form .form-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: var(--input-text);
    font-size: 1rem;
}

.select-arrow {
    position: absolute;
    right: 15px;
    top: 25px;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--input-text);
}

/* Opening Hours */
.opening-hours {
    border-radius: 15px;
    background: var(--theme-gradient);
    padding: 1.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

    .opening-hours h5 {
        font-size: 1.2rem;
    }

    .opening-hours ul li {
        font-size: 0.95rem;
        padding: 0.4rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

        .opening-hours ul li:last-child {
            border-bottom: none;
        }

@media(max-width: 992px) {
    .opening-hours {
        margin-top: 20px;
    }
}

/* ==============================
    COMMON CARD / IMAGE UTILS
=================================*/
.card-soft {
    background: var(--card-color);
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 12px 32px rgba(9, 30, 66, 0.08);
    border: none;
}

img.responsive {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rounded-shadow {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(9, 30, 66, 0.08);
}

/* =========================
TESTIMONIALS (SWIPER)
========================= */
.testimonials {
    padding: 56px 0;
}

    .testimonials .swiper {
        padding-bottom: 14px;
    }

.testimonial-card {
    background: var(--card-color);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: transform .35s cubic-bezier(.22, .9, .36, 1), box-shadow .35s;
    height: 100%;
}

    .testimonial-card .avatar {
        width: 68px;
        height: 68px;
        border-radius: 50%;
        overflow: hidden;
        flex: 0 0 68px;
        border: 3px solid rgba(0, 179, 255, 0.12);
    }

        .testimonial-card .avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

.testimonial-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}

.testimonial-role {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.testimonial-quote {
    font-size: 0.96rem;
    color: var(--text);
    opacity: 0.95;
}

.pointer {
    cursor: pointer;
}

#testimonials.swiper .swiper-slide-active .testimonial-card {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 22px 46px rgba(3, 37, 76, 0.14);
}

.stars {
    color: #f5b301;
    margin-bottom: 6px;
}

@media (max-width: 992px) {
    .testimonial-card {
        padding: 16px;
        gap: 12px;
    }

    .testimonial-name {
        font-size: 0.98rem;
    }
}

@media (max-width:576px) {
    .testimonial-card {
        flex-direction: row;
        gap: 12px;
        align-items: center;
    }

    .testimonial-quote {
        display: block;
        font-size: 0.95rem;
    }
}

/* ====================================
FACILITIES GALLERY (responsive masonry)
======================================= */
.facilities {
    padding: 56px 0;
}

.gallery-grid {
    column-count: 3;
    column-gap: 22px;
    width: 100%;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 22px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: transform .4s ease ease-in;
}

    .gallery-item img {
        width: 100%;
        display: block;
        transition: transform .5s ease ease-in;
    }

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 14px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.45) 100%);
    color: #fff;
    font-weight: 600;
    opacity: 0;
    transition: opacity .35s ease-in;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.view-icon {
    opacity: 0;
    transform: translateY(10px);
    transition: .4s ease-in;
    font-size: 20px;
}

.gallery-item:hover .view-icon {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1200px) {
    .gallery-grid {
        column-count: 3;
    }
}

@media (max-width: 992px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        column-count: 1;
    }
}

/* =========================
    FAQ ACCORDION
    ========================= */

.faq-accordion .accordion-item {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 12px 32px rgba(9, 30, 66, 0.08);
    transition: 0.3s ease-in;
    background-color: var(--card-color);
}

.faq-accordion .accordion-button {
    font-weight: 700;
    background: var(--card-color);
    color: var(--heading-text);
    padding: 18px 20px;
    transition: 0.35s ease-in;
    box-shadow: none;
}

    .faq-accordion .accordion-button:focus {
        box-shadow: none;
    }

    .faq-accordion .accordion-button:not(.collapsed) {
        background: var(--primary-color);
        color: #fff;
        box-shadow: none;
    }

    .faq-accordion .accordion-button::after {
        transition: transform 0.35s ease-in;
    }

    .faq-accordion .accordion-button:not(.collapsed)::after {
        transform: rotate(180deg);
    }

.faq-accordion .accordion-body {
    background: var(--card-color);
    color: var(--heading-text);
    padding: 18px 22px;
    line-height: 1.6;
}

.faq-accordion .accordion-button:hover {
    background: var(--primary-color);
    color: var(--white-text);
}

.faq-accordion .accordion-button:not(.collapsed):hover {
    background: var(--primary-color);
    color: #fff;
}

.faq-accordion .accordion-button::after {
    display: none !important;
}

.faq-icon {
    margin-left: auto;
    font-size: 18px;
    transition: transform 0.3s ease-in;
}

.accordion-button:not(.collapsed) .faq-icon {
    transform: rotate(180deg);
}

@media (max-width:576px) {
    .section-title h2 {
        font-size: 1.4rem;
    }

    .section-sub {
        font-size: 0.95rem;
    }

    .testimonial-quote {
        font-size: 0.95rem;
    }
}

/*================================================
Theme Switch Button Styles
=================================================*/

#btnSwitch {
    top: 200px;
    z-index: 2;
}

@media (max-width: 576px) {
    #btnSwitch {
        top: 130px;
    }
}

.backto-btn {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    border: none;
}

    .backto-btn:hover {
        background: var(--secondary-color);
        color: #fff;
    }

/*===============================================
Back to top Styles
=================================================*/
#backtotop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 7px;
    transition: background-color 0.3s, opacity 0.5s, visibility 0.5s;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

    #backtotop:hover {
        cursor: pointer;
    }

    #backtotop.show {
        opacity: 1;
        visibility: visible;
    }

.alertmsg {
    z-index: 9999;
}

/*===============================================
Contact Section Styles
=================================================*/

.contact-form input,
.contact-form select,
.contact-form textarea {
    border: 1px solid #e0e0e0;
    padding-left: 12px;
    font-size: 1rem;
}

.info-card {
    background: var(--card-color);
    border-left: 4px solid var(--primary-color);
}

.icon-box {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--alt-color);
    font-size: 1.3rem;
    color: var(--primary-color);
}

.highlight-email {
    background: var(--primary-color);
    color: #fff;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }

    100% {
        transform: scale(1);
    }
}

@media(max-width: 768px) {
    .contact-form {
        padding: 20px !important;
    }
}

.error {
    color: #ff6969;
}

.contact-form {
    background: var(--card-color);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
}

    .contact-form .position-relative {
        position: relative;
    }

    .contact-form .form-icon {
        position: absolute;
        top: 50%;
        left: 15px;
        transform: translateY(-50%);
        color: var(--primary-color);
        font-size: 1rem;
    }

    .contact-form .form-control,
    .contact-form .form-select,
    .contact-form textarea {
        border-radius: 10px;
        border: 1px solid #ced4da;
        height: 45px;
        font-size: 0.95rem;
        transition: 0.3s ease-in;
        background-color: var(--input-bg);
        color: var(--input-text);
    }

    .contact-form textarea {
        min-height: 100px;
        padding-top: 0.8rem;
    }

        .contact-form .form-control:focus,
        .contact-form .form-select:focus,
        .contact-form textarea:focus {
            border-color: var(--primary-color);
            box-shadow: none;
            outline: none;
            background-color: var(--input-bg);
            color: var(--input-text);
        }

    .contact-form select.form-select {
        appearance: none;
        padding-right: 2.5rem;
    }

.select-arrow {
    position: absolute;
    right: 15px;
    top: 25px;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--input-text);
}

.contact-form ::placeholder {
    color: #adb5bd;
    opacity: 1;
}

.glightbox-clean .gdesc-inner {
    background-color: var(--body-color);
}

.glightbox-clean .gslide-title {
    color: var(--secondary-color);
    font-size: 28px;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .offcanvas-header {
        background-color: var(--alt-color) !important;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    }

    .offcanvas-body {
        background-color: var(--card-color) !important;
    }
}

.input-icon {
    position: absolute;
    right: 16px;
    top: 25px;
    transform: translateY(-50%);
    font-size: 15px;
    pointer-events: none;
    color: var(--heading-text);
    opacity: 0.7;
}

.date-input,
.time-input {
    background: var(--card-color);
    color: var(--heading-text);
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
}

    .date-input:focus,
    .time-input:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.25);
    }

    .date-input::placeholder,
    .time-input::placeholder {
        color: var(--para-text);
        opacity: 0.7;
    }
/* Calendar container */
.flatpickr-calendar {
    background: var(--card-color) !important;
    color: var(--heading-text) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15) !important;
    border-radius: 10px;
}

.flatpickr-months .flatpickr-month {
    background: var(--card-color) !important;
    color: var(--heading-text) !important;
}

.flatpickr-weekdays span {
    color: var(--para-text) !important;
}

.flatpickr-day {
    color: var(--heading-text) !important;
    border-radius: 6px !important;
}

    .flatpickr-day:hover {
        background: rgba(var(--primary-color),0.15) !important;
    }

    .flatpickr-day.selected,
    .flatpickr-day.startRange,
    .flatpickr-day.endRange {
        background: var(--primary-color) !important;
        color: #fff !important;
    }

.flatpickr-time input {
    background: var(--card-color) !important;
    color: var(--heading-text) !important;
    border: 1px solid var(--primary-color) !important;
}

.flatpickr-months .flatpickr-next-month:hover svg {
    fill: var(--primary-color);
}

.flatpickr-months .flatpickr-next-month {
    fill: var(--heading-text)
}

.flatpickr-months .flatpickr-prev-month {
    fill: var(--heading-text)
}

.flatpickr-prev-month,
.flatpickr-next-month {
    color: var(--heading-text) !important;
    opacity: 0.75;
    transition: 0.3s;
}

    .flatpickr-prev-month:hover,
    .flatpickr-next-month:hover {
        opacity: 1;
        color: var(--primary-color) !important;
    }

.flatpickr-time .flatpickr-am-pm:focus {
    background: var(--primary-color) !important;
    color: var(--white-text) !important;
}

.flatpickr-time .flatpickr-am-pm {
    color: var(--heading-text);
}

    .flatpickr-time .flatpickr-am-pm:hover, .flatpickr-time input:focus, .flatpickr-time .flatpickr-am-pm:focus {
        background: var(--primary-color) !important;
        color: var(--white-text) !important;
    }

.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: var(--card-color) !important;
    color: var(--heading-text) !important;
    border: 1px solid var(--primary-color) !important;
}

@media (max-width: 991px) {
    .offcanvas-header {
        background-color: var(--alt-color);
    }

    .offcanvas-body {
        background-color: var(--card-color) !important;
    }

    .navbar-toggler,
    .btn-close {
        width: 46px !important;
        height: 46px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 !important;
        margin: 0;
        border: none;
        outline: none;
        background-color: var(--secondary-color);
        border-radius: 6px;
        box-shadow: none;
        transition: 0.3s ease;
        opacity: 1;
    }

        .navbar-toggler .navbar-toggler-icon {
            display: none;
        }

    .btn-close {
        background-image: none !important;
    }

        .navbar-toggler svg,
        .btn-close svg {
            font-size: 24px;
            color: #fff;
            transition: 0.3s ease;
            pointer-events: none;
            opacity: 1;
        }

        .navbar-toggler:hover,
        .btn-close:hover {
            background-color: var(--primary-color);
        }

            .navbar-toggler:hover svg,
            .btn-close:hover svg {
                color: #fff;
            }

        .navbar-toggler:focus,
        .btn-close:focus {
            box-shadow: none;
            outline: none;
        }
}

.btn-check:checked + .btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check) + .btn:active {
    color: var(--white-text);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn.show:hover {
        background-color: var(--secondary-color);
    }

.contact-info-mobile a {
    color: var(--heading-text);
    text-decoration: none;
    font-size: 20;
    font-weight: 600;
}

    .contact-info-mobile a:hover {
        text-decoration: underline;
    }

.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 15px;
    margin-right: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

    .icon-circle:hover {
        background-color: var(--secondary-color);
        transform: translateY(-3px);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
    }

.contact-info-mobile div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.contact-info-mobile {
    background-color: var(--card-color);
    border-radius: 12px;
    padding: 10px 0;
}

.dept-card {
    display: block;
    background: var(--card-color);
    padding: 30px 20px;
    text-align: center;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    text-decoration: none;
}

.dept-icon {
    width: 70px;
    height: 70px;
    margin: auto;
    background: var(--alt-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border-radius: 50%;
}

.dept-card:hover {
    transform: translateY(-8px);
    background: var(--primary-color);
    transition: 0.3s ease-in;
}

    .dept-card:hover .dept-icon {
        color: var(--primary-color);
    }

    .dept-card:hover span {
        color: #fff;
    }

/* ===========================
   PAGE BANNER STYLES
=========================== */
.page-banner {
    position: relative;
    padding: 120px 0 100px;
    background: linear-gradient( rgba(13, 110, 253, 0.85),rgba(32, 201, 151, 0.85)), url("../../assets/images/banner/banner_contact.jpg") center / cover no-repeat;
    overflow: hidden;
}

    .page-banner .overlay {
        position: absolute;
        inset: 0;
    }

.banner-content {
    max-width: 700px;
    margin: auto;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.custom-breadcrumb {
    margin-top: 15px;
}

    .custom-breadcrumb .breadcrumb {
        background: rgba(255,255,255,0.15);
        padding: 10px 18px;
        border-radius: 30px;
        display: inline-flex;
    }

    .custom-breadcrumb .breadcrumb-item {
        font-weight: 500;
        font-size: 14px;
    }

        .custom-breadcrumb .breadcrumb-item a {
            color: #ffffff;
            text-decoration: none;
            transition: 0.3s;
        }

            .custom-breadcrumb .breadcrumb-item a:hover {
                color: #dbe8ff;
            }

        .custom-breadcrumb .breadcrumb-item.active {
            color: #f1f1f1;
            font-weight: 600;
        }

        .custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
            content: "›";
            color: rgba(255,255,255,0.7);
            padding: 0 10px;
            font-size: 16px;
        }

.index {
    padding: 5px;
    margin-right: 5px;
    line-height: 1;
    color: #fff;
    font-size: 10px;
    text-align: center;
    border-radius: 5px;
    background: #e93323;
    z-index: 1;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2.2rem;
    }

    .page-banner {
        padding: 90px 0 80px;
    }
}

/* ===============================
   MISSION & VISION 
================================ */
.mv-content {
    position: relative;
    padding-left: 40px;
}

    .mv-content::before {
        content: "";
        position: absolute;
        left: 15px;
        top: 0;
        height: 100%;
        width: 3px;
        background: var(--theme-gradient-2);
        border-radius: 10px;
    }

.mv-item {
    box-shadow: 0 12px 30px rgba(13, 110, 253, 0.08);
    transition: all 0.35s ease;
}

    .mv-item:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 45px rgba(13, 110, 253, 0.18);
    }

.mv-icon {
    width: 55px;
    height: 55px;
    min-width: 55px;
    background: var(--theme-gradient-2);
    color: #fff;
    font-size: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(13, 110, 253, 0.4);
}

    .mv-icon.vision {
        background: linear-gradient(135deg, #20c997, #0dcaf0);
    }

.mv-visual-card {
    background: var(--theme-gradient-2);
    padding: 45px;
    border-radius: 20px;
    color: #fff;
    box-shadow: 0 25px 60px rgba(13, 110, 253, 0.35);
}

.mv-points svg {
    color: #ffe082;
}

@media (max-width: 991px) {
    .mv-content {
        padding-left: 0;
    }

        .mv-content::before {
            display: none;
        }

    .mv-visual-card {
        margin-top: 30px;
    }
}

/* ===========================
   OUR VALUES 
=========================== */
.values-wrapper {
    gap: 30px;
}

.value-card {
    padding: 35px 25px 45px;
    width: 260px;
    ;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    box-shadow: 0 12px 30px rgba(13, 110, 253, 0.08);
}

    .value-card:hover {
        transform: translateY(-12px);
        box-shadow: 0 20px 50px rgba(13, 110, 253, 0.2);
    }

.value-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--theme-gradient-2);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 28px;
    margin: -55px auto 20px;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.25);
    transition: transform 0.35s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.15);
}

@media (max-width: 992px) {
    .values-wrapper {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .value-card {
        width: 100%;
    }
}

/* ==============================
   WHY TRUST 
================================ */
.feature-count {
    opacity: 0.4;
    min-width: 50px;
}

@media (max-width: 991px) {
    .trust-intro p {
        max-width: 100%;
    }

    .trust-feature {
        gap: 15px;
    }
}

/* ==============================
   HOSPITAL JOURNEY – ICON STORY
================================ */
.journey-track {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

    .journey-track::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--theme-gradient-2);
        border-radius: 10px;
        transform: translateY(-50%);
    }

.journey-item {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.journey-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--theme-gradient-2);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 22px;
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.35);
    z-index: 2;
}

.journey-card {
    padding: 25px 30px;
    max-width: 280px;
    box-shadow: 0 18px 45px rgba(13, 110, 253, 0.12);
    transition: transform 0.35s ease;
}

.journey-item.down .journey-card {
    margin-top: 0;
    margin-bottom: 20px;
}

.journey-card:hover {
    transform: translateY(-6px);
}

@media (max-width: 991px) {
    .journey-track {
        flex-direction: column;
    }

        .journey-track::before {
            display: none;
        }

    .journey-item {
        padding: 0;
    }

    .journey-card {
        max-width: 100%;
    }

    .journey-icon {
        margin-bottom: 15px;
    }
}

/* ==============================
   CREDIBILITY PANEL – STRUCTURAL
================================ */
.cred-main {
    position: relative;
    padding-left: 40px;
}

    .cred-main::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 5px;
        height: 100%;
        background: var(--theme-gradient-2);
        border-radius: 10px;
    }

.cred-label {
    letter-spacing: 2px;
    ;
}

.cred-seals {
    display: flex;
    gap: 25px;
}

.cred-support {
    display: flex;
    flex-direction: column;
    gap: 45px;
}

.cred-proof {
    position: relative;
    padding-left: 35px;
}

    .cred-proof::before {
        content: "";
        position: absolute;
        left: 0;
        top: 6px;
        width: 10px;
        height: 10px;
        background: var(--primary-color);
        border-radius: 50%;
    }

    .cred-proof p {
        max-width: 380px;
    }

@media (max-width: 991px) {
    .cred-label
    .cred-main h2 {
        font-size: 2.2rem;
    }
}

.cert-left {
    position: relative;
    padding-left: 20px;
}

    .cert-left::before {
        content: "";
        position: absolute;
        left: 0;
        top: 10px;
        width: 4px;
        height: 96%;
        background: var(--theme-gradient-2);
        border-radius: 10px;
    }

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
}

.cert-highlights svg {
    color: #20c997;
    font-size: 14px;
}

.cert-card {
    padding: 30px 20px;
    height: 100%;
    transition: all 0.35s ease;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

    .cert-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 25px 60px rgba(13, 110, 253, 0.15);
    }

.service-img {
    height: 340px;
    width: 100%;
    object-fit: cover;
}

.service-tabs .nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    margin-bottom: 10px;
    border-radius: 12px;
    font-weight: 600;
    color: var(--heading-text);
    background: var(--alt-color);
    transition: 0.3s;
}

    .service-tabs .nav-link:hover {
        background: var(--primary-color);
        color: #fff;
    }

    .service-tabs .nav-link.active {
        background: var(--primary-color);
        color: #fff;
    }

.service-list .service-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    margin-bottom: 8px;
    text-decoration: none;
    color: var(--heading-text);
    border-radius: 10px;
    transition: 0.3s;
    font-weight: 500;
}

    .service-list .service-item:hover {
        background: #f1f9ff;
        color: var(--primary-color);
    }

    .service-list .service-item.active {
        background: var(--primary-color);
        color: #fff;
    }

.contact-box {
    background: linear-gradient(135deg, #0b1c39, #152a4f);
}

/* =========================
   BLOG CARD
========================= */
.blog-card {
    box-shadow: 0 25px 60px rgba(0,0,0,.08);
    transition: .4s;
    height: 100%;
}

    .blog-card:hover {
        transform: translateY(-10px);
    }

.blog-img {
    position: relative;
    height: 240px;
    overflow: hidden;
}

    .blog-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .blog-img::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to top,rgba(0,0,0,.65),transparent);
    }

.blog-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #20c997;
    color: #fff;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    z-index: 2;
}

.read-btn {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

    .read-btn svg {
        transition: .3s
    }

    .read-btn:hover svg {
        transform: translateX(6px);
    }

    .read-btn:hover {
        color: var(--heading-text);
    }

/* ======================
    SIDEBAR
========================= */
.sidebar-widget {
    padding: 26px 26px 28px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.06);
    transition: all 0.35s ease;
}

    .sidebar-widget:hover {
        transform: translateY(-4px);
        box-shadow: 0 25px 65px rgba(0, 0, 0, 0.08);
    }

    .sidebar-widget h5::before {
        content: "";
        position: absolute;
        left: 0;
        top: 3px;
        width: 4px;
        height: 18px;
        background: #D91419;
        border-radius: 10px;
    }

/* =========================
   SEARCH INPUT GROUP
========================= */
.search-input {
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

    .search-input .form-control {
        border: none;
        padding: 14px 18px;
        font-size: 14px;
        background: var(--input-bg);
        color: var(--input-text);
    }

        .search-input .form-control:focus {
            box-shadow: none;
        }

    .search-input .btn {
        border: none;
        padding: 0 22px;
        border-radius: 0;
        background: var(--primary-color);
        transition: all 0.3s ease;
    }

        .search-input .btn:hover {
            background: var(--secondary-color);
        }

    .search-input:focus-within {
        border-color: var(--primary-color);
    }

/* =========================
   CATEGORY LIST
========================= */
.category-list a {
    padding: 12px 0;
    border-bottom: 1px dashed #ddd;
    transition: all 0.3s ease;
}

    .category-list a span {
        min-width: 26px;
        height: 26px;
        font-size: 12px;
        border-radius: 30px;
        background: var(--alt-color);
        color: var(--para-text);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .category-list a:hover {
        color: var(--primary-color);
        padding-left: 6px;
    }

        .category-list a:hover span {
            background: var(--primary-color);
            color: #fff;
        }

/* =========================
   RECENT POSTS
========================= */
.recent-post {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

    .recent-post:not(:last-child) {
        margin-bottom: 14px;
    }

    .recent-post:hover {
        background: var(--alt-color);
    }

    .recent-post img {
        width: 100%;
        height: 100%;
        border-radius: 5px;
        object-fit: cover;
        flex-shrink: 0;
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
        transition: transform 0.3s ease;
    }

    .recent-post:hover img {
        transform: scale(1.05);
    }

.recent-post-content {
    display: flex;
    flex-direction: column;
}

.recent-post h6 {
    transition: color 0.3s ease;
}

    .recent-post h6::before {
        display: none;
    }

.recent-post:hover h6 {
    color: var(--primary-color);
}

/* =========================
   TAGS UI
========================= */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

    .tag-list a {
        padding: 8px 16px;
        font-size: 13px;
        font-weight: 500;
        border-radius: 50px;
        text-decoration: none;
        color: var(--para-text);
        background: var(--light-color);
        transition: all 0.3s ease;
    }

        .tag-list a:hover {
            background: var(--primary-color);
            color: #fff;
            transform: translateY(-2px);
            box-shadow: 0 8px 18px rgba(13, 110, 253, 0.25);
        }

/* =========================
   CTA BOX
========================= */
.sidebar-cta {
    background: var(--theme-gradient-2);
    color: #ffffff;
    padding: 32px 26px;
}

    .sidebar-cta a {
        transition: all 0.3s ease;
    }

        .sidebar-cta a:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(255, 255, 255, 0.25);
        }

/* =========================
    PAGINATION
========================= */
/* ===== 核心：分页容器居中对齐 ===== */
.el-pagination {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
}

/* 页码列表 ul 横向排列 */
.el-pager {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

    .el-pager .number {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 32px;
        cursor: pointer;
    }

        /* 按钮和页码链接统一风格 */
        .btn-prev,
        .btn-next,
        .el-pager .number .page-link {
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            min-width: 32px;
            height: 32px;
            cursor: pointer;
            padding: 0 10px;
            border-radius: 4px;
            border: 1px solid #dcdfe6;
            background-color: #fff;
            color: #303133;
            font-size: 0.9rem;
            line-height: 1;
            text-decoration: none;
            transition: all 0.15s ease;
            cursor: pointer;
            user-select: none;
        }

            /* 禁用状态 */
            .btn-prev:disabled,
            .btn-next:disabled,
            .page-link.disabled {
                color: #c0c4cc !important;
                background-color: #f4f4f5 !important;
                border-color: #e4e7ed !important;
                cursor: not-allowed !important;
                pointer-events: none !important;
            }

    /* 激活页码 */
    .el-pager .number {
        background-color: #fff !important;
        border-color: #ccc !important;
        color: #000 !important;
        text-align: center;
        width: 30px;
    }

    .el-pager .active {
        background-color: #409eff !important;
        border-color: #409eff !important;
        color: #fff !important;
        text-align: center;
        width: 30px;
    }

    /* 悬停效果（非禁用、非激活） */
    .btn-prev:not(:disabled):hover,
    .btn-next:not(:disabled):hover,
    .el-pager .number:not(.active) .page-link:hover {
        background-color: #ecf5ff !important;
        border-color: #c6e2ff !important;
        color: #409eff !important;
    }

.el-icon-arrow-left {
    position: relative;
    font-size: 0; /* 隐藏原始图标 */
}

    .el-icon-arrow-left::after {
        content: "<";
        font-size: 16px;
        font-family: Arial;
        font-weight: bold;
        color: currentColor;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

.el-icon-arrow-right {
    position: relative;
    font-size: 0; /* 隐藏原始图标 */
}

    .el-icon-arrow-right::after {
        content: ">";
        font-size: 16px;
        font-family: Arial;
        font-weight: bold;
        color: currentColor;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

/* 图标样式 */
.btn-prev i,
.btn-next i {
    font-size: 0.9rem;
    line-height: 1;
}

.btn-prev,
.btn-next {
    background: #fff;
    border: 1px solid #dcdfe6;
    font-family: inherit;
}

/* ===== 演示容器 ===== */
.demo-wrapper {
    padding: 24px 20px;
    background: #f5f7fa;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.demo-title {
    font-size: 0.9rem;
    color: #606266;
    margin-bottom: 14px;
    font-weight: 400;
    text-align: center; /* 标题也居中 */
}

.el-pagination.is-background {
    background: transparent;
}

/* 页码链接最小宽度 */
.el-pager .number .page-link {
    min-width: 32px;
    padding: 0 8px;
}

.article-img-wrapper {
    overflow: hidden;
}

.article-img {
    object-fit: cover;
    height: auto;
    max-height: 400px;
    transition: transform 0.3s ease;
}

    .article-img:hover {
        transform: scale(1.05);
    }

.related-card img {
    transition: transform 0.3s ease;
}

.related-card:hover img {
    transform: scale(1.05);
}

.comment-box {
    transition: all 0.3s ease;
}

    .comment-box:hover {
        box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    }

    .comment-box img {
        object-fit: cover;
    }

.comment-form .form-control {
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid #ced4da;
    font-size: 0.95rem;
    transition: 0.3s ease-in;
    background-color: var(--input-bg);
    color: var(--input-text);
}

    .comment-form .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: none;
    }

.article-content .badge {
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 30px;
    transition: 0.3s;
}

    .article-content .badge:hover {
        opacity: 0.8;
    }

/* ===============================
   DOCTOR HERO 
================================ */
.doctor-image-wrap {
    position: relative;
    display: inline-block;
}

    .doctor-image-wrap img {
        border-radius: 24px;
        box-shadow: 0 25px 60px rgba(0,0,0,0.25);
    }

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -6px;
    background: var(--card-color);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
    padding: 14px 18px;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    margin-bottom: 12px;
}

.doctor-desc {
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 35px;
}

@media (max-width: 992px) {
    .doctor-hero {
        padding: 70px 0;
        text-align: center;
    }

    .hero-actions,
    .hero-stats {
        justify-content: center;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 25px;
    }

    .experience-badge {
        right: 50%;
        transform: translateX(50%);
    }
}

/* ===========================
   SPECIALIZATION 
=========================== */
.spec-item {
    padding: 30px 28px;
    height: 100%;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.35s ease;
}

    .spec-item:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.1);
    }

.spec-line {
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background: var(--primary-color);
    border-radius: 6px 0 0 6px;
}

.spec-content {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.spec-icon {
    min-width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

/* ===========================
   AWARDS & CERTIFICATIONS
=========================== */
.award-card {
    padding: 40px 30px 30px;
    height: 100%;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.35s ease;
}

    .award-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
    }

.award-year {
    top: 20px;
    right: 20px;
    padding: 6px 14px;
}

.award-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--theme-gradient-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 26px;
    margin-bottom: 18px;
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.35);
}

/* ===========================
   TESTIMONIALS
=========================== */
.testimonial-box {
    padding: 40px 32px 32px;
    height: 100%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.07);
    transition: all 0.35s ease;
}

    .testimonial-box:hover {
        transform: translateY(-6px);
        box-shadow: 0 22px 55px rgba(0, 0, 0, 0.12);
    }

    .testimonial-box.featured {
        background: var(--secondary-color);
        color: #ffffff !important;
    }

.quote-icon {
    position: absolute;
    top: -18px;
    left: 28px;
    font-size: 80px;
    line-height: 1;
    color: var(--primary-color);
}

.patient-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--theme-gradient-2);
    color: #ffffff;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.neuro-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

    .neuro-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 25px rgba(0,0,0,0.1);
    }

.neuro-card {
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

    .neuro-card:hover {
        transform: translateY(-6px);
    }

.highlight-box {
    background: var(--theme-gradient-2);
    color: #fff;
    padding: 18px 24px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    box-shadow: 0 10px 25px rgba(13,110,253,0.35);
}

.skills-wrapper {
    box-shadow: 0 12px 35px rgba(0,0,0,0.06);
}

.skill-item {
    margin-bottom: 20px;
}

.skill-head {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.progress {
    height: 12px;
    border-radius: 50px;
    background: var(--light-color);
}

.progress-bar {
    background-color: var(--primary-color);
    border-radius: 50px;
}
/* ===============================
   CLINIC LOCATION 
================================ */
.clinic-info-card {
    box-shadow: 0 20px 50px rgba(0,0,0,0.06);
}

.section-badge {
    display: inline-block;
    background: var(--alt-color);
    color: var(--primary-color);
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 12px;
}

.clinic-info-item .icon {
    font-size: 22px;
    color: var(--primary-color);
    background: var(--alt-color);
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clinic-map-card {
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    height: 100%;
}

    .clinic-map-card iframe {
        width: 100%;
        height: 100%;
        min-height: 380px;
        border: 0;
    }

@media (max-width: 768px) {
    .clinic-map-card iframe {
        min-height: 300px;
    }
}

.map-section iframe {
    width: 100%;
    height: 420px;
    border: 0;
}

.consult-card {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: 0.3s;
}

    .consult-card:hover {
        transform: translateY(-6px);
    }

.flow-wrapper {
    max-width: 900px;
}

    .flow-wrapper::before {
        content: "";
        position: absolute;
        left: 36px;
        top: 0;
        width: 2px;
        height: 100%;
        background: var(--theme-gradient-2);
    }

.flow-step {
    gap: 30px;
}

.step-icon {
    min-width: 72px;
    height: 72px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

    .step-icon span {
        bottom: -10px;
        right: -10px;
        width: 26px;
        height: 26px;
        font-size: 14px;
    }

.step-content {
    padding: 25px 30px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.06);
}

.flow-step:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .flow-wrapper::before {
        left: 32px;
    }

    .flow-step {
        gap: 20px;
    }

    .step-content {
        padding: 20px;
    }
}

.policy-card,
.terms-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.error-404 {
    min-height: 100vh;
    background: var(--theme-gradient-2);
    padding: 20px;
}

.error-card {
    padding: 60px 40px;
    max-width: 520px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    animation: fadeUp 0.8s ease;
}

.error-code {
    font-size: 120px;
    font-weight: 800;
    line-height: 1;
    background: var(--theme-gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.error-card .btn {
    min-width: 180px;
}

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    background: var(--alt-color);
    padding: 6px 14px;
    border-radius: 50px;
}

.neuro-card {
    height: 100%;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

    .neuro-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
    }

.service-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 14px;
}

    .service-list li::before {
        content: "✔";
        position: absolute;
        left: 0;
        top: 0;
        color: var(--primary-color);
        font-weight: 600;
    }

.cta-section {
    padding: 90px 0;
    background: var(--theme-gradient-2)
}

.dropdown-divider {
    border-color: var(--primary-color) !important;
}

.mx-auto {
    padding-top: 20px !important;
}

    .mx-auto a {
        padding: 5px;
        margin: 5px;
    }

.para-text {
    padding-top: 15px;
}

.swiper-container {
    overflow: hidden !important;
}

/* 主卡片 — 干净留白 */
.news-wrapper {
    border-radius: 1rem;
    padding: 1.5rem 1.5rem 1.2rem 1.5rem;
    box-shadow: 0 0.1rem 0.5rem rgba(0, 0, 0, 0.02);
}

.py-index {
    padding-top: 1rem !important;
    padding-bottom: 3rem !important;
}

@media (max-width: 576px) {
    .news-wrapper {
        padding: 0.5rem 0.4rem;
        border-radius: 0.4rem;
    }
}

/* ----- 头部：简单直接 ----- */
.news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e4e9e6;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.3rem;
}

    .news-header h4 {
        font-weight: 600;
        color: #1e2a2f;
        font-size: 1.2rem;
        display: flex;
        align-items: center;
        gap: 0.4rem;
        letter-spacing: -0.2px;
    }

        .news-header h4 i {
            color: #4a6a5c;
            font-size: 1.1rem;
        }

    .news-header .header-meta {
        font-size: 0.7rem;
        color: #6f7e7a;
        background: #f0f4f2;
        padding: 0.15rem 0.8rem;
        border-radius: 1rem;
    }
.video-box {
    width: 100%;
    height: auto;
}
.payer-box {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 20px;
    position: relative;
    background: #000;
    border-radius: 3px;
    box-shadow: 0px 6px 35px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== 列表项 ===== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* ----- 图文卡片 (极简) ----- */
.news-card-media {
    display: flex;
    gap: 0.8rem;
    padding: 0.4rem 0.4rem 0.4rem 0.6rem;
    border-bottom: 1px dashed #ccc;
}

    .news-card-media:hover {
        border-color: #d6dfda;
    }

    .news-card-media .img-wrap {
        flex: 0 0 90px;
        height: 72px;
        border-radius: 0.4rem;
        overflow: hidden;
        background: #e4e9e6;
    }

        .news-card-media .img-wrap img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

    .news-card-media .media-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-width: 0;
    }

        .news-card-media .media-body .title {
            font-weight: 600;
            color: #1e2a2f;
            font-size: 1.2rem;
            line-height: 1.4;
            margin-bottom: 0.05rem;
        }

            .news-card-media .media-body .title a {
                color: #1e2a2f;
                text-decoration: none;
                transition: color 0.1s;
            }

                .news-card-media .media-body .title a:hover {
                    color: #3d6b58;
                }

        .news-card-media .media-body .meta {
            font-size: 0.65rem;
            color: #6f7e7a;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.2rem 0.6rem;
        }

            .news-card-media .media-body .meta .date i {
                margin-right: 0.15rem;
            }

            .news-card-media .media-body .meta .tag {
                background: #eef2f0;
                padding: 0.02rem 0.5rem;
                border-radius: 1rem;
                color: #3d554a;
                font-size: 0.6rem;
            }

/* ----- 纯文本卡片 (极简) ----- */
.news-card-text {
    background: #fafcfb;
    border-radius: 0.6rem;
    padding: 0.6rem 0.8rem 0.4rem 0.8rem;
    border: 1px solid #edf2ef;
    transition: background 0.15s, border-color 0.15s;
}

    .news-card-text:hover {
        background: #f5f8f6;
        border-color: #d6dfda;
    }

    .news-card-text .title {
        font-weight: 600;
        color: #1e2a2f;
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 0.05rem;
    }

        .news-card-text .title a {
            color: #1e2a2f;
            text-decoration: none;
            transition: color 0.1s;
        }

            .news-card-text .title a:hover {
                color: #3d6b58;
            }

    .news-card-text .summary {
        color: #3d554a;
        font-size: 0.78rem;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .news-card-text .meta {
        font-size: 0.65rem;
        color: #6f7e7a;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.2rem 0.6rem;
        margin-top: 0.1rem;
    }

        .news-card-text .meta .date i {
            margin-right: 0.15rem;
        }

        .news-card-text .meta .tag {
            background: #eef2f0;
            padding: 0.02rem 0.5rem;
            border-radius: 1rem;
            color: #3d554a;
            font-size: 0.6rem;
        }

.content img {
    max-width: 100%;
}
/* 移动端图文 */
@media (max-width: 480px) {
    .news-card-media {
        flex-direction: column;
        padding: 0.4rem;
        gap: 0.4rem;
    }

        .news-card-media .img-wrap {
            flex: 0 0 auto;
            width: 100%;
            height: 120px;
        }

        .news-card-media .media-body .title {
            font-size: 1.2rem;
        }

    .news-card-text {
        padding: 0.5rem 0.6rem;
    }

        .news-card-text .title {
            font-size: 0.85rem;
        }
}

/* 分类分隔 (极简线) */
.section-divider {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0.1rem 0 0.2rem 0;
    height: 40px;
    line-height: 60px;
}

    .section-divider label {
        font-size: 0.65rem;
        font-weight: 600;
        padding: 0.02rem 0.8rem;
        font-size: 1rem;
        height: 30px;
        line-height: 30px;
        display: block;
        position: relative; /* 新增 */
        padding-left: 0.8rem; /* 保留文字左边距 */
    }

        /* 新增伪元素模拟短 border */
        .section-divider label::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 5px;
            height: 20px; /* 调整这个值控制高度/长度 */
            background-color: #D91419;
            border-radius: 2px;
        }

    .section-divider .line {
        flex: 1;
        height: 1px;
        background: #e4e9e6;
    }

.news-title {
    font-weight: 700;
    font-size: 2rem;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.news-meta {
    color: #6c757d;
    font-size: 0.95rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

    .news-meta i {
        margin-right: 4px;
    }

.news-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #1e293b;
    word-wrap: break-word;
}

.news-content table{
    max-width:100% !important;
}

    .news-content p {
        margin-bottom: 1.2rem;
    }

    .news-content img {
        max-width: 100%;
    }

    .news-content .lead {
        font-size: 1.15rem;
        font-weight: 400;
        color: #0f172a;
    }
/* 图片占位（如需配图可替换） */
.img-placeholder {
    background: #eef2f6;
    border-radius: 10px;
    padding: 2.5rem 1rem;
    text-align: center;
    color: #6c757d;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

@media (max-width: 576px) {
    .news-wrapper {
        padding: 0.25rem;
        margin: 0.5rem;
    }

    .news-title {
        font-size: 1.5rem;
    }

    .news-content {
        font-size: 0.98rem;
    }
}

/* 主卡片 */
.product-wrapper {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem 1.5rem 1.2rem 1.5rem;
    box-shadow: 0 0.1rem 0.5rem rgba(0, 0, 0, 0.02);
    border: 1px solid #eef2f0;
}

@media (max-width: 576px) {
    .product-wrapper {
        padding: 1rem 0.8rem;
        border-radius: 0.8rem;
    }
}

/* ----- 头部 ----- */
.product-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e4e9e6;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.3rem;
}

    .product-header h4 {
        font-weight: 600;
        color: #1e2a2f;
        font-size: 1.2rem;
        display: flex;
        align-items: center;
        gap: 0.4rem;
        letter-spacing: -0.2px;
    }

        .product-header h4 i {
            color: #4a6a5c;
            font-size: 1.1rem;
        }

    .product-header .header-meta {
        font-size: 0.7rem;
        color: #6f7e7a;
        background: #f0f4f2;
        padding: 0.15rem 0.8rem;
        border-radius: 1rem;
    }

/* ----- 分类导航 (极简标签) ----- */
.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.4rem;
    border-bottom: 1px solid #020202;
    padding-bottom: 0.7rem;
    margin-bottom: 1.5rem;
}

    .category-nav .cat-btn {
        background: transparent;
        padding: 0.15rem 0.9rem;
        border-radius: 1.5rem;
        font-size: 0.85rem;
        font-weight: 500;
        color: #000000;
        transition: all 0.15s;
        height: 30px;
        line-height: 1.5rem;
        text-align: center;
    }

        .category-nav .cat-btn i {
            font-size: 0.65rem;
            margin-right: 0.15rem;
        }

        .category-nav .cat-btn:hover,
        .category-nav .cat-btn.active {
            background: #1e2a2f;
            border-color: #1e2a2f;
            color: #f8faf9;
        }

/* ----- 子分类导航 (与大类样式一致) ----- */
.subcategory-nav {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.4rem;
    padding: 0.4rem 0 0.2rem 0;
    border-bottom: 1px dashed #e4e9e6;
    padding-bottom: 20px;
}

    .subcategory-nav .sub-btn {
        background: transparent;
        padding: 0.1rem 0.8rem;
        border-radius: 1.5rem;
        font-size: 0.8rem;
        font-weight: 500;
        color: #000;
        transition: all 0.15s;
        cursor: default;
        height: 30px;
        line-height: 25px;
        cursor: pointer;
    }

        .subcategory-nav .sub-btn i {
            font-size: 0.6rem;
            margin-right: 0.15rem;
        }

        .subcategory-nav .sub-btn:hover {
            background: #020202;
            border-color: #4a6a5c;
            color: #ffffff;
        }

        .subcategory-nav .sub-btn.active-sub {
            background: #020202;
            border-color: #4a6a5c;
            color: #ffffff;
        }

    .subcategory-nav label {
        font-size: 0.65rem;
        font-weight: 600;
        padding: 0.02rem 0.8rem;
        font-size: 1rem;
        height: 30px;
        line-height: 30px;
        display: block;
        position: relative;
        padding-left: 0.8rem;
    }

        /* 新增伪元素模拟短 border */
        .subcategory-nav label::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 5px;
            height: 20px; /* 调整这个值控制高度/长度 */
            background-color: #D91419;
            border-radius: 2px;
        }
.summary {
    padding-top: 1rem;
    text-indent: 2rem;
}
.date {
    font-size: 1rem;
    padding-top: 0.5rem;
}

.margin-bottom-50 {
    margin-bottom: 50px;
}
/* ===== 商品网格 (上下结构) ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 3rem;
}
/* ----- 商品卡片 (图片在上, 标题在下) ----- */
.product-card {
    border-radius: 0.6rem;
    padding: 0.5rem 0.5rem 0.6rem 0.5rem;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
    flex-direction: column;
}

    .product-card:hover {
        transform: translateY(-2px);
    }

    .product-card .img-wrap {
        width: 100%;
        aspect-ratio: 1 / 1;
        border-radius: 0.4rem;
        overflow: hidden;
        margin-bottom: 0.5rem;
    }

        .product-card .img-wrap img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.2s;
        }

    .product-card:hover .img-wrap img {
        transform: scale(1.02);
    }

    .product-card .product-title {
        font-weight: 600;
        color: #1e2a2f;
        font-size: 0.85rem;
        line-height: 1.5rem;
        margin-bottom: 0.1rem;
        width: 100%;
        padding: 0px 25px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

        .product-card .product-title a {
            color: #1e2a2f;
            text-decoration: none;
            transition: color 0.1s;
        }

            .product-card .product-title a:hover {
                color: #3d6b58;
            }

    .product-card .product-text {
        position: relative;
        top: auto;
        bottom: 50px;
        left: 20px;
        font-weight: 600;
        color: #fff;
        font-size: 0.85rem;
        width: 100%;
        z-index: 100;
        text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000, 0px 0px 8px rgba(255, 255, 255, 0.8);
    }

    .product-card .product-meta {
        font-size: 0.65rem;
        color: #6f7e7a;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.2rem 0.5rem;
        width: 100%;
        margin-top: 0.1rem;
    }

        .product-card .product-meta .tag {
            background: #eef2f0;
            padding: 0.02rem 0.5rem;
            border-radius: 1rem;
            color: #3d554a;
            font-size: 0.6rem;
        }

        .product-card .product-meta .price {
            font-weight: 600;
            color: #2a5a45;
            font-size: 0.8rem;
        }

    .product-card .product-time {
        padding: 0px 25px;
        color: #ccc;
        text-align: left;
    }

/* 移动端适配 */
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 0.8rem;
    }

    .product-card {
        padding: 0.4rem 0.4rem 0.5rem 0.4rem;
    }

        .product-card .product-title {
            font-size: 0.8rem;
        }
}

@media (max-width: 380px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
}

.single-line {
    max-width: 300px; /* 必须有一个固定的宽度 */
    white-space: nowrap; /* 强制文本不换行 */
    overflow: hidden; /* 隐藏溢出内容 */
    text-overflow: ellipsis; /* 显示省略号 */
    font-size: 0.85em;
    cursor:pointer;
}

.el-image {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

    .el-image img {
        max-width: 100%;
    }

.product_card {
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.25), 0px 2px 4px rgba(0, 0, 0, 0.25), 0px 4px 8px rgba(0, 0, 0, 0.25);
    padding: 20px;
    margin: 1vw;
    background-color: white;
    height: 100%;
    display: table-cell;
    vertical-align: top;
    line-height: 1.5;
    border-radius: .375rem;
}