@import "../../fonts/zain/stylesheet.css";

* {
    font-family: 'Zain', sans-serif;
    font-size: 18px;
}


html {
    scroll-padding-top: 100px; /* Adjust the value for your needs */
}


/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
    --primary: #4b2584;
    --accent: #4361ee;
    --primary-rgb: 75, 37, 132;
    --accent-rgb: 67, 97, 238;
    --white-rgb: 255, 255, 255;
    --dark: #212529;
    --gray: #6c757d;
    --light: #f8f9fa;
    --transition: all 0.3s ease;
}

body {
   color: var(--dark);
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

.text-primary {
    color: var(--primary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.text-white-80 {
    color: rgba(var(--white-rgb), 0.8) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-accent {
    background-color: var(--accent) !important;
}

.bg-primary-transparent {
    background-color: rgba(var(--primary-rgb), 0.9);
    backdrop-filter: blur(10px);
}

.bg-gradient-light {
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: rgba(var(--primary-rgb), 0.9);
    border-color: rgba(var(--primary-rgb), 0.9);
}

.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-accent:hover,
.btn-accent:focus {
    background-color: rgba(var(--accent-rgb), 0.9);
    border-color: rgba(var(--accent-rgb), 0.9);
    color: #fff;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.section-title {
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-description {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.divider {
    width: 80px;
    height: 3px;
    background-color: rgba(var(--white-rgb), 0.3);
}

.py-7 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (min-width: 992px) {
    .py-7 {
        padding-top: 7rem;
        padding-bottom: 7rem;
    }
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.logo {
    height: 60px;
    width: auto;
    background-color: #fff;
    padding: 5px;
    border-radius: 50%;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper {
    position: absolute;
    left: 100%;
    top: auto;
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease;
    opacity: 0;
}

.search-input-wrapper.active {
    width: 250px;
    opacity: 1;
}

.search-input {
    width: 100%;
    padding: 0.5rem 2rem 0.5rem 1rem;
    border: none;
    border-radius: 50px;
    background-color: rgba(var(--white-rgb), 0.1);
    color: #fff;
}

.search-input::placeholder {
    color: rgba(var(--white-rgb), 0.6);
}

.search-close {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(var(--white-rgb), 0.6);
    cursor: pointer;
}

.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
}

/* Mega Menu */
.navbar-nav .nav-link {
    padding: 1rem 1rem;
    font-weight: 500;
}

.dropdown-menu.mega-menu {
    border: none;
    border-radius: 0;
    margin-top: 0;
    padding: 1.5rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mega-menu h5 {
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.mega-menu h5:after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -8px;
    height: 2px;
    width: 40px;
    background-color: var(--bs-primary);
}

.mega-menu p.text-muted {
    margin-bottom: 1.5rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: rgba(var(--primary-rgb), 0.05);
    color: var(--primary);
}

/* Enhanced Dropdown Menu Styling */
.custom-dropdown-list .menu-item-with-desc {
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    border-radius: 8px;
    border-right: 3px solid transparent;
}

.custom-dropdown-list .menu-item-with-desc:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.05);
    transform: translateX(5px);
    border-right: 3px solid var(--bs-primary);
    padding-right: 10px;
}

.custom-dropdown-list .dropdown-item {
    font-weight: 500;
    padding: 0.3rem 1rem;
    white-space: normal;
    background-color: transparent;
    color: var(--bs-dark);
    transition: color 0.2s ease;
}

.custom-dropdown-list .dropdown-item:hover {
    color: var(--bs-primary);
    background-color: transparent;
}

.custom-dropdown-list .item-description {
    display: block;
    padding-right: 1rem;
    line-height: 1.4;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.custom-dropdown-list .menu-item-with-desc:hover .item-description {
    opacity: 1;
}

/* Mobile Menu */
.mobile-menu {
    max-height: 80vh;
    overflow-y: auto;
}

.accordion-button {
    padding: 1rem 0;
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    color: var(--primary);
    background-color: transparent;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
}

/*--------------------------------------------------------------
# Hero Slider
--------------------------------------------------------------*/
.hero-slider {
    position: relative;
    height: 600px;
}

.hero-slide {
    position: relative;
    height: 600px;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(to left, rgba(var(--primary-rgb), 0.8), rgba(0, 0, 0, 0.5));
}

.hero-content {
    max-width: 600px;
}

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

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.swiper-button-prev,
.swiper-button-next {
    color: #fff;
    background-color: rgba(var(--white-rgb), 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 1.2rem;
}

.swiper-pagination-bullet {
    background: rgba(var(--white-rgb), 0.5);
}

.swiper-pagination-bullet-active {
    background: #fff;
    width: 20px;
    border-radius: 10px;
}

/* Hero Slider Text Animations - Namespaced to avoid conflicts */

/* Only apply these styles to the hero slider text elements */
.hero-slide .hero-content {
    /* Ensure content has proper stacking context */
    position: relative;
    z-index: 10;
}

/* Title animation */
.swiper-slide-active .hero-title,
.swiper-slide-active .hero-subtitle,
.swiper-slide-active .hero-description,
.swiper-slide-active .hero-buttons {
    animation-duration: 0.8s;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    transform: translateY(0) translateX(0);
    opacity: 1;
}

.swiper-slide:not(.swiper-slide-active) .hero-title,
.swiper-slide:not(.swiper-slide-active) .hero-subtitle,
.swiper-slide:not(.swiper-slide-active) .hero-description,
.swiper-slide:not(.swiper-slide-active) .hero-buttons {
    opacity: 0;
    transform: translateY(40px);
}

/* Staggered animations for each element */
.swiper-slide-active .hero-title {
    animation-name: heroTitleFadeIn;
    animation-delay: 0.3s;
}

.swiper-slide-active .hero-subtitle {
    animation-name: heroSubtitleFadeIn;
    animation-delay: 0.5s;
}

.swiper-slide-active .hero-description {
    animation-name: heroDescriptionFadeIn;
    animation-delay: 0.7s;
}

.swiper-slide-active .hero-buttons {
    animation-name: heroButtonsFadeIn;
    animation-delay: 0.9s;
}

/* Custom keyframes for each element to avoid conflicts */
@keyframes heroTitleFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroSubtitleFadeIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes heroDescriptionFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes heroButtonsFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    70% {
        transform: translateY(-5px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Text highlight effects */
.swiper-slide-active .hero-title {
    background-clip: text;
    position: relative;
}

.swiper-slide-active .hero-title::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -5px;
    width: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.7);
    animation: heroTitleLine 1.2s ease-out 0.9s forwards;
}

@keyframes heroTitleLine {
    from { width: 0; }
    to { width: 80px; }
}

/* Enhance the subtitle with a subtle glow */
.swiper-slide-active .hero-subtitle {
    position: relative;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Add a subtle pulse to buttons on hover */
.hero-buttons .btn:hover {
    animation: heroButtonPulse 1s infinite;
}

@keyframes heroButtonPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/*--------------------------------------------------------------
# Search Section
--------------------------------------------------------------*/
.search-box {
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

/*--------------------------------------------------------------
# Welcome Section
--------------------------------------------------------------*/
.welcome-section {
    padding: 5rem 0;
}

.welcome-image {
    position: relative;
    height: 100%;
    min-height: 450px; /* Ensures minimum height on all screens */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.welcome-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This is crucial - makes image cover the container */
    object-position: center;
}

/* Match heights between image and content */
@media (min-width: 992px) {
    .welcome-section .row {
        min-height: 500px;
    }

    .welcome-image {
        position: absolute;
        top: 0;
        right: 15px; /* Account for column padding */
        bottom: 0;
        width: calc(50% - 30px); /* Account for container padding */
    }
}

/* Ensure badge stays properly positioned */
.welcome-badge {
    position: absolute;
    left: 20px;
    bottom: 20px;
    z-index: 2;
}

.welcome-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
}

.badge-inner {
    text-align: center;
}

.badge-inner span {
    display: block;
}

.badge-inner .year {
    font-size: 1.8rem;
    font-weight: 700;
}

/* Enhanced Welcome Section - Namespaced styles */

.welcome-section {
    position: relative;
    overflow: hidden;
}

/* Decorative elements */
.wel-decoration-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--primary-rgb), 0) 70%);
    top: -100px;
    left: -50px;
    z-index: 0;
}

.wel-decoration-dots {
    position: absolute;
    width: 200px;
    height: 200px;
    bottom: 50px;
    right: 0;
    background-image: radial-gradient(rgba(var(--primary-rgb), 0.2) 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.3;
    z-index: 0;
}

.wel-decoration-line {
    position: absolute;
    height: 90%;
    width: 3px;
    top: 5%;
    right: 0;
    background: linear-gradient(to bottom, rgba(var(--primary-rgb), 0), rgba(var(--primary-rgb), 0.2), rgba(var(--primary-rgb), 0));
    z-index: 0;
}

/* Image styling */
.wel-image-container {
    position: relative;
    padding: 20px;
    z-index: 1;
}

.wel-image-frame {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(3deg);
    transition: transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wel-image-frame:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.wel-main-image {
    display: block;
    width: 100%;
    height: auto;
    transform: scale(1);
    transition: transform 0.7s ease;
}

.wel-image-frame:hover .wel-main-image {
    transform: scale(1.05);
}

.wel-image-overlay {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom left,
        rgba(var(--primary-rgb), 0.1),
        rgba(var(--accent-rgb), 0.1)
    );
    pointer-events: none;
}

/* Badge styling */
.wel-badge {
    position: absolute;
    bottom: -20px;
    right: 30px;
    width: 100px;
    height: 100px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.wel-badge-inner {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.wel-badge-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.wel-badge-year {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.wel-experience-years {
    position: absolute;
    top: 20px;
    left: 0;
    background: var(--white);
    padding: 15px;
    border-radius: 8px 0 0 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.wel-years-count {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.wel-years-text {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Content styling */
.wel-content {
    position: relative;
    z-index: 1;
}

.wel-subtitle {
    display: inline-block;
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 15px;
    border-radius: 30px;
    margin-bottom: 1rem;
}

.wel-title-highlight {
    display: inline-block;
}

.wel-title-underline {
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 100%;
    height: 8px;
    overflow: visible;
}

.wel-tagline {
    font-weight: 500;
}

.wel-description {
    font-size: 1rem;
    line-height: 1.7;
}

/* Stats styling */
.wel-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 2rem;
}

.wel-stat-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    flex-grow: 1;
    transition: all 0.3s ease;
}

.wel-stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.wel-stat-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    font-size: 1.2rem;
    border-radius: 50%;
    margin-left: 12px;
    transition: all 0.3s ease;
}

.wel-stat-item:hover .wel-stat-icon {
    transform: scale(1.1);
    background-color: var(--primary);
    color: white;
}

.wel-stat-content {
    flex: 1;
}

.wel-stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.wel-stat-label {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Button styling */
.wel-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.wel-main-btn {
    padding: 10px 25px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.wel-main-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
}

.wel-second-btn {
    padding: 10px 25px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.wel-second-btn:hover {
    transform: translateY(-3px);
    background-color: rgba(var(--primary-rgb), 0.05);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .wel-stats {
        gap: 10px;
    }

    .wel-stat-item {
        padding: 8px 12px;
    }

    .wel-stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .wel-stat-value {
        font-size: 1.2rem;
    }

    .wel-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767.98px) {
    .wel-image-frame {
        transform: perspective(1000px) rotateY(0deg);
    }

    .wel-badge {
        width: 80px;
        height: 80px;
        bottom: -15px;
        right: 15px;
    }

    .wel-badge-inner {
        width: 70px;
        height: 70px;
    }

    .wel-badge-year {
        font-size: 1.2rem;
    }

    .wel-experience-years {
        padding: 10px;
    }

    .wel-years-count {
        font-size: 1.5rem;
    }

    .wel-stats {
        flex-direction: column;
    }
}

/*--------------------------------------------------------------
# Stats Counter Section
--------------------------------------------------------------*/
.stats-counter-section {
    position: relative;
    background-size: cover;
    background-position: center;
}

.stats-overlay {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(to left, rgba(var(--primary-rgb), 0.8), rgba(var(--accent-rgb), 0.8));
    mix-blend-mode: multiply;
}

.stat-card {
    background-color: rgba(var(--white-rgb), 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(var(--white-rgb), 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: var(--transition);
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    position: relative;
    width: 64px;
    height: 64px;
    background-color: rgba(var(--white-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.stat-icon i {
    font-size: 1.8rem;
    color: #fff;
}

.pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        opacity: 0.2;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: rgba(var(--white-rgb), 0.8);
}

/* Enhanced Stats Counter Section */
.stats-counter-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.stats-overlay {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.9) 0%, rgba(var(--accent-rgb), 0.9) 100%);
    z-index: 0;
}

.stats-counter-section .container {
    position: relative;
    z-index: 1;
}

.stats-counter-section .badge {
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 2.25rem 1.5rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(90deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0.15) 100%);
    transform: translateX(-100%);
    transition: all 1.5s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
}

.stat-card:hover::before {
    transform: translateX(100%);
}

.stat-icon {
    position: relative;
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.stat-card:hover .stat-icon {
    background-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.1) rotate(5deg);
}

.stat-icon i {
    font-size: 2.25rem;
    color: #fff;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
    transition: all 0.4s ease;
}

.stat-card:hover .stat-icon i {
    transform: scale(1.1);
}

.pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: pulse-animation 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

@keyframes pulse-animation {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    50% {
        opacity: 0.2;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.counter-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.counter-line {
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent);
    overflow: hidden;
}

.counter-line::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.6);
    transform: translateX(-100%);
}

.stat-card:hover .counter-line::after {
    animation: lineFlow 1.5s ease infinite;
}

@keyframes lineFlow {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

.stat-number {
    font-size: 3.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: baseline;
}

.counter {
    display: inline-block;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.stat-symbol {
    font-size: 2.25rem;
    font-weight: 600;
    opacity: 0.8;
    margin-right: 2px;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991.98px) {
    .stat-number {
        font-size: 2.75rem;
    }
    .stat-icon {
        width: 70px;
        height: 70px;
    }
    .stat-icon i {
        font-size: 1.75rem;
    }
}

@media (max-width: 767.98px) {
    .stat-card {
        padding: 1.75rem 1.25rem;
    }
    .stat-number {
        font-size: 2.5rem;
    }
    .stat-symbol {
        font-size: 2rem;
    }
    .stat-label {
        font-size: 1rem;
    }
}

/* Enhanced Counter Animation Effects */
.counter {
    display: inline-block;
    transition: transform 0.2s ease, text-shadow 0.2s ease;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    font-size: 45px;
}

.counter-complete {
    animation: counterPop 0.5s ease-out forwards;
}

@keyframes counterPop {
    0% {
        transform: scale(1);
        text-shadow: 0 0 0 rgba(255,255,255,0);
    }
    50% {
        transform: scale(1.15);
        text-shadow: 0 0 15px rgba(255,255,255,0.7);
    }
    100% {
        transform: scale(1);
        text-shadow: 0 0 5px rgba(255,255,255,0.3);
    }
}

/*--------------------------------------------------------------
# Specialties Section
--------------------------------------------------------------*/
.bg-decoration-top {
    position: absolute;
    top: 0;
}

.featured-news-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.news-card {
    transition: var(--transition);
}

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

.news-img {
    height: 180px;
    overflow: hidden;
}

.news-img img {
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-img img {
    transform: scale(1.05);
}

.news-title {
    font-weight: 600;
    transition: var(--transition);
}

.news-card:hover .news-title {
    color: var(--primary);
}

/* Enhanced News & Updates Section */

/* Section Title Animation */
.section-title-decoration {
    position: absolute;
    bottom: -8px;
    right: 0;
    opacity: 0.8;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawLine 1.5s ease forwards;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

/* Custom Tabs */
.custom-tabs {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    display: inline-flex;
    flex-wrap: wrap;
}

.custom-tabs .nav-link {
    margin-left: 10px;
    border: none;
    color: var(--bs-dark);
    position: relative;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 6px 6px 0 0;
    transition: all 0.3s ease;
}

.custom-tabs .nav-link .tab-icon {
    display: inline-block;
    margin-left: 6px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.custom-tabs .nav-link.active {
    color: var(--bs-primary);
    background-color: transparent;
    border-bottom: 3px solid var(--bs-primary);
}

.custom-tabs .nav-link.active .tab-icon {
    opacity: 1;
    transform: scale(1.2);
}

.custom-tabs .nav-link:hover {
    color: var(--bs-primary);
}

.custom-tabs .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0;
    height: 3px;
    background-color: var(--bs-primary);
    transition: all 0.3s ease;
}

.custom-tabs .nav-link:hover::after {
    right: 0;
    width: 100%;
}

.custom-tabs .nav-link.active::after {
    right: 0;
    width: 100%;
}

/* Featured News */
.featured-news {
    height: 450px;
    position: relative;
    overflow: hidden;
}

.featured-news-img {
    height: 100%;
    width: 100%;
}

.featured-news-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}

.featured-news:hover .featured-news-img img {
    transform: scale(1.05);
}

.featured-news-overlay {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.featured-news-content {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 30px;
    z-index: 2;
    transition: transform 0.5s ease;
}

.featured-news:hover .featured-news-content {
    transform: translateY(-10px);
}

.featured-news-title {
    color: white;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1.5rem;
    line-height: 1.3;
}

/* Pulse Badge Animation */
.pulse-badge {
    position: relative;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--bs-accent-rgb), 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(var(--bs-accent-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--bs-accent-rgb), 0);
    }
}

/* Read More Button */
.btn-read-more {
    display: inline-flex;
    align-items: center;
    color: white;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.btn-read-more:hover {
    color: var(--bs-accent);
}

.btn-read-more svg {
    transition: transform 0.3s ease;
}

.btn-read-more:hover svg {
    transform: translateX(5px);
}

/* News Cards */
.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
}

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

.news-card:hover .card-hover-lift {
    transform: translateY(-7px);
}

.news-img-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.news-img {
    height: 100%;
    width: 100%;
}

.news-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.news-card:hover .news-img img {
    transform: scale(1.08);
}

.news-date-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--bs-primary);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    z-index: 2;
    box-shadow: 0 3px 8px rgba(var(--bs-primary-rgb), 0.3);
    transition: all 0.3s ease;
}

.news-date-badge.future-date {
    background-color: var(--bs-accent);
    box-shadow: 0 3px 8px rgba(var(--bs-accent-rgb), 0.3);
}

.news-card:hover .news-date-badge {
    transform: scale(1.1) rotate(-5deg);
}

.news-date-badge .date {
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 2px;
}

.news-date-badge .month {
    font-size: 0.7rem;
    text-transform: uppercase;
    line-height: 1;
}

.news-content {
    position: relative;
    z-index: 1;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 0;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--bs-primary);
}

.news-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0;
    transition: color 0.3s ease;
}

.news-card:hover .news-title {
    color: var(--bs-primary);
}

.news-excerpt {
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Button Animation */
.btn-animated {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-animated:hover {
    transform: translateY(-2px);
}

.btn-animated i {
    transition: transform 0.3s ease;
}

.btn-animated:hover i {
    transform: translateX(4px);
}

/* Tab Content Animation */
.tab-pane {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Add to existing responsive styles */
@media (max-width: 768px) {
    .featured-news {
        height: 350px;
    }

    .featured-news-title {
        font-size: 1.3rem;
    }

    .custom-tabs .nav-link {
        padding: 8px 12px;
        margin-left: 5px;
    }

    .tab-text {
        font-size: 0.9rem;
    }

    .news-img-wrapper {
        height: 160px;
    }
}

/* Enhanced Specialties Section - With Unique Class Names */

/* Background elements */
.specialties-section {
    position: relative;
    background: linear-gradient(180deg, var(--light) 0%, rgba(248, 249, 254, 1) 100%);
}

.bg-decoration-top {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 8px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 50%, var(--primary) 100%);
    opacity: 0.1;
}

.bg-decoration-blob-1,
.bg-decoration-blob-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    z-index: 0;
}

.bg-decoration-blob-1 {
    top: 10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background-color: rgba(var(--primary-rgb), 0.03);
    animation: floatBlob1 20s ease-in-out infinite alternate;
}

.bg-decoration-blob-2 {
    bottom: 5%;
    right: -10%;
    width: 400px;
    height: 400px;
    background-color: rgba(var(--accent-rgb), 0.03);
    animation: floatBlob2 25s ease-in-out infinite alternate;
}

@keyframes floatBlob1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(3%, 3%) scale(1.05); }
}

@keyframes floatBlob2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(3%, -3%) scale(1.05); }
}

/* Section header styles */
.spec-subtitle {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    background-color: rgba(var(--accent-rgb), 0.08);
    margin-bottom: 1rem;
}

.spec-title-underline {
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 100%;
    height: 8px;
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
    animation: drawUnderline 1.5s ease forwards 0.5s;
}

@keyframes drawUnderline {
    to {
        stroke-dashoffset: 0;
    }
}

/* Filter system */
.spec-filter-container {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.spec-filters {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    padding: 0.3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.spec-filters::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.spec-filter-btn {
    background: none;
    border: none;
    padding: 0.7rem 1.2rem;
    font-weight: 500;
    color: var(--gray);
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
    white-space: nowrap;
    font-size: 0.9rem;
}

.spec-filter-btn:focus {
    outline: none;
}

.spec-filter-btn.active {
    color: white;
}

.spec-active-indicator {
    position: absolute;
    height: calc(100% - 0.6rem);
    top: 0.3rem;
    right: 0.3rem;
    background-color: var(--primary);
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1;
}

/* Specialty cards */
.spec-card {
    position: relative;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 2rem 1.5rem;
    height: 100%;
    transition: all 0.4s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.spec-decoration-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05), rgba(var(--accent-rgb), 0.05));
    border-radius: 16px 0 50% 0 ;
    pointer-events: none;
    transition: all 0.5s ease;
}

.spec-card:hover .spec-decoration-1 {
    transform: scale(1.1) rotate(5deg);
}

.spec-decoration-2 {
    position: absolute;
    bottom: 20px;
    right: -30px;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(var(--accent-rgb), 0.1);
    border-radius: 50%;
    pointer-events: none;
    transition: all 0.5s ease;
}

.spec-card:hover .spec-decoration-2 {
    transform: scale(1.1) translateX(10px);
}

.spec-icon-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spec-icon-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--accent-rgb), 0.1));
    border-radius: 50%;
    transition: all 0.5s ease;
}

.spec-card:hover .spec-icon-bg {
    transform: scale(1.1);
}

.spec-icon {
    position: relative;
    font-size: 1.8rem;
    color: var(--primary);
    z-index: 1;
    transition: all 0.5s ease;
}

.spec-card:hover .spec-icon {
    transform: scale(1.1);
    color: var(--accent);
}

.spec-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.spec-card-title::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -5px;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.4s ease;
}

.spec-card:hover .spec-card-title::after {
    width: 60px;
}

.spec-card-description {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Stats section */
.spec-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.spec-stat {
    display: flex;
    flex-direction: column;
}

.spec-stat-value {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.2rem;
}

.spec-stat-label {
    font-size: 0.8rem;
    color: var(--gray);
}

/* Services list */
.spec-services-preview {
    margin-top: auto;
    margin-bottom: 1rem;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.5s ease;
}

.spec-card:hover .spec-services-preview {
    max-height: 100px;
    opacity: 1;
    margin-top: 1.5rem;
}

.spec-services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spec-services-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    transform: translateX(-10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.spec-services-list li:nth-child(1) {
    transition-delay: 0.1s;
}

.spec-services-list li:nth-child(2) {
    transition-delay: 0.2s;
}

.spec-services-list li:nth-child(3) {
    transition-delay: 0.3s;
}

.spec-card:hover .spec-services-list li {
    transform: translateX(0);
    opacity: 1;
}

.spec-services-list li::before {
    content: "•";
    color: var(--primary);
    font-size: 1.2rem;
    margin-left: 0.5rem;
    line-height: 0;
}

/* Learn more link */
.spec-learn-more {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-top: auto;
    transition: all 0.3s ease;
}

.spec-learn-more i {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.spec-learn-more:hover {
    color: var(--accent);
}

.spec-learn-more:hover i {
    transform: translateX(5px);
}

/* View all button */
.spec-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    background-color: var(--primary);
    color: white;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.spec-view-all::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: right 0.7s ease;
}

.spec-view-all:hover::before {
    right: 100%;
}

.spec-view-all:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.4);
    color: white;
}

.spec-btn-arrow {
    transition: transform 0.3s ease;
}

.spec-view-all:hover .spec-btn-arrow {
    transform: translateX(5px);
}

/* Animation for filter transitions */
.spec-item.hidden {
    animation: fadeOut 0.5s ease forwards;
}

.spec-item.visible {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
        display: none;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
        display: block;
    }
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .spec-filters {
        padding: 0.25rem;
        justify-content: flex-start;
    }

    .spec-filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .spec-card {
        padding: 1.75rem 1.25rem;
    }

    .spec-icon-wrapper {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 767.98px) {
    .spec-stats {
        gap: 1.5rem;
    }

    .spec-services-list li {
        font-size: 0.85rem;
    }
}

/*--------------------------------------------------------------
# Equipment Section
--------------------------------------------------------------*/
.equipment-image {
    position: relative;
}

.equipment-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background-color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.3);
}

.badge-inner {
    text-align: center;
}

.badge-inner i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.feature-list li i {
    margin-left: 0.75rem;
    margin-top: 0.25rem;
}

/*--------------------------------------------------------------
# Patient Stories Section
--------------------------------------------------------------*/
.video-player {
    position: relative;
    height: 400px;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(var(--primary-rgb), 0.8);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.video-play-btn:hover {
    background-color: var(--primary);
    transform: translate(-50%, -50%) scale(1.1);
}

.testimonial-line {
    width: 40px;
    height: 3px;
}

.testimonial-quote {
    font-style: italic;
    font-size: 1.1rem;
}

.story-thumbnail {
    height: 80px;
    cursor: pointer;
    transition: var(--transition);
}

.story-thumbnail img {
    height: 100%;
    object-fit: cover;
}

.story-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: var(--transition);
}

.story-thumbnail:hover .story-overlay {
    opacity: 1;
}

/* Enhanced Patient Stories Section Styles */

/* Video Player Styles */
.video-player-wrapper {
    position: relative;
    margin-bottom: 20px;
    perspective: 1000px;
    transform-style: preserve-3d;
    display: block;
}

.video-player {
    transform: translateZ(0);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.video-player:hover {
    transform: translateY(-5px) translateZ(10px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.15);
}

.video-player img {
    transition: transform 1s ease;
}

.video-player:hover img {
    transform: scale(1.03);
}

.video-overlay {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.video-player:hover .video-overlay {
    opacity: 0.6;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background-color: rgba(var(--primary-rgb), 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.5);
}

.video-play-btn i {
    font-size: 1.5rem;
    margin-right: 5px;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.7);
        transform: translate(-50%, -50%) scale(1);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(var(--primary-rgb), 0);
        transform: translate(-50%, -50%) scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0);
        transform: translate(-50%, -50%) scale(1);
    }
}

.video-play-btn:hover {
    background-color: rgba(var(--primary-rgb), 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-reflection {
    position: absolute;
    bottom: -20px;
    right: 5%;
    width: 90%;
    height: 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.08), transparent);
    border-radius: 50%;
    filter: blur(5px);
    transform: perspective(500px) rotateX(60deg);
    z-index: -1;
}

.video-info {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 5;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.video-player:hover .video-info {
    opacity: 1;
    transform: translateY(0);
}

.patient-tag {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    box-shadow: 0 3px 10px rgba(var(--accent-rgb), 0.3);
}

.patient-name {
    color: white;
    margin: 0;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.video-controls {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.video-player:hover .video-controls {
    opacity: 1;
    transform: translateY(0);
}

.audio-toggle {
    transition: all 0.3s ease;
}

.audio-toggle:hover {
    background-color: var(--primary);
    color: white;
}

/* Testimonial Card Styles */
.testimonial-card {
    border-right: 4px solid var(--primary);
    transition: all 0.3s ease;
    overflow: hidden;
}

.shadow-hover {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

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

.testimonial-line {
    height: 25px;
    width: 4px;
}

.testimonial-quote-mark {
    top: 20px;
    left: 20px;
    opacity: 0.3;
    transition: transform 0.5s ease;
    z-index: 0;
}

.testimonial-card:hover .testimonial-quote-mark {
    transform: scale(1.1) rotate(5deg);
}

.testimonial-quote {
    position: relative;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    font-style: italic;
    z-index: 1;
}

.drop-cap {
    font-family: Georgia, serif;
    font-size: 2.5rem;
    line-height: 1;
    font-weight: bold;
    color: var(--primary);
    float: right;
    margin-left: 8px;
    margin-top: -5px;
}

.quote-end {
    font-family: Georgia, serif;
    font-size: 1.5rem;
    line-height: 0;
    color: var(--primary);
    vertical-align: middle;
}

.testimonial-author {
    transition: transform 0.3s ease;
}

.testimonial-card:hover .testimonial-author {
    transform: translateX(5px);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Story Thumbnails Styles */
.story-thumbnail {
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.interactive-thumb {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.interactive-thumb:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.story-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.story-thumbnail:hover img {
    transform: scale(1.1);
}

.story-overlay {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.story-thumbnail:hover .story-overlay {
    opacity: 0.5;
}

.story-overlay i {
    width: 30px;
    height: 30px;
    background-color: rgba(var(--primary-rgb), 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.story-thumbnail:hover .story-overlay i {
    transform: scale(1);
    animation: pulse-small 1.5s infinite;
}

@keyframes pulse-small {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(var(--primary-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0);
    }
}

.story-info {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    padding: 10px;
    z-index: 2;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.story-thumbnail:hover .story-info {
    transform: translateY(0);
}

.story-name {
    display: block;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.story-treatment {
    display: block;
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
}

/* Navigation Controls */
.navigation-controls {
    margin-top: 20px;
    align-items: center;
}

.navigation-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navigation-btn::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--primary-rgb), 0.1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}

.navigation-btn:hover::after {
    transform: scaleX(1);
    transform-origin: right;
}

.navigation-btn:hover {
    background-color: transparent;
}

.navigation-btn i {
    transition: transform 0.3s ease;
}

.prev-btn:hover i {
    transform: translateX(-3px);
}

.next-btn:hover i {
    transform: translateX(3px);
}

.story-indicators {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.story-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    transition: all 0.3s ease;
    cursor: pointer;
}

.story-dot:hover {
    background-color: #aaa;
}

.story-dot.active {
    width: 12px;
    height: 12px;
    background-color: var(--primary);
}

/* Animation for section title underline */
.section-title-decoration {
    position: absolute;
    bottom: -8px;
    right: 0;
    opacity: 0.8;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawLine 1.5s ease forwards;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .video-player {
        max-height: 400px;
    }

    .testimonial-quote {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .story-info {
        transform: translateY(0);
    }

    .video-info {
        opacity: 1;
        transform: translateY(0);
    }

    .video-controls {
        opacity: 1;
        transform: translateY(0);
    }

    .patient-tag {
        font-size: 0.7rem;
    }

    .patient-name {
        font-size: 1.2rem;
    }

    .story-dot {
        width: 6px;
        height: 6px;
    }

    .story-dot.active {
        width: 10px;
        height: 10px;
    }
}

/* Patient Story Animation Classes */
.testimonial-card,
.video-player {
    transition: opacity 0.3s ease, transform 0.5s ease;
}

.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

.fade-in {
    animation: fadeInContent 0.5s ease forwards;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Story dot and nav button styles */
.story-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.story-dot.active {
    transform: scale(1.2);
}

.navigation-btn {
    transition: all 0.2s ease;
}

.navigation-btn:active {
    transform: scale(0.95);
}

/*--------------------------------------------------------------
# Doctors Section
--------------------------------------------------------------*/
.doctor-card {
    transition: var(--transition);
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.doctor-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.doctor-img img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.doctor-img::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--bs-primary-rgb), 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.doctor-card:hover .doctor-img::after {
    opacity: 1;
}

.doctor-card:hover .doctor-img img {
    transform: scale(1.05);
}

.doctor-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* Doctor Card Styling */
.doctor-card {
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.doctor-img {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.doctor-img img {
    transition: transform 0.5s ease;
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.doctor-card:hover .doctor-img img {
    transform: scale(1.05);
}

.doctor-overlay {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(var(--bs-primary-rgb), 0.7) 0%, rgba(0,0,0,0.1) 100%);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: all 0.3s ease;
    padding-bottom: 20px;
}

.doctor-card:hover .doctor-overlay {
    opacity: 1;
}

.doctor-social {
    display: flex;
    gap: 10px;
}

.doctor-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: white;
    border-radius: 50%;
    color: var(--bs-primary);
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.doctor-card:hover .doctor-social a {
    transform: translateY(0);
    opacity: 1;
}

.doctor-card:hover .doctor-social a:nth-child(1) {
    transition-delay: 0.1s;
}

.doctor-card:hover .doctor-social a:nth-child(2) {
    transition-delay: 0.2s;
}

.doctor-card:hover .doctor-social a:nth-child(3) {
    transition-delay: 0.3s;
}

.doctor-social a:hover {
    background-color: var(--bs-primary);
    color: white;
}

.doctor-name {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 18px;
}

.doctor-specialty {
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.doctor-desc {
    line-height: 1.5;
}

/*--------------------------------------------------------------
# Health Insights Section
--------------------------------------------------------------*/
.blog-card {
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.blog-img {
    height: 200px;
    overflow: hidden;
}

.blog-img img {
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-img img {
    transform: scale(1.05);
}

.blog-category {
    z-index: 1;
}

.blog-title {
    font-weight: 600;
    transition: var(--transition);
}

.blog-card:hover .blog-title {
    color: var(--primary);
}

.blog-link {
    font-weight: 500;
    transition: var(--transition);
}

.blog-link:hover {
    color: var(--accent);
}

/*--------------------------------------------------------------
# Patient Care Section
--------------------------------------------------------------*/
.patient-care-image {
    position: relative;
}

.image-badge {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonial-card {
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.testimonial-icon {
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
}

/*--------------------------------------------------------------
# Facilities Section
--------------------------------------------------------------*/
.facility-card {
    transition: var(--transition);
}

.facility-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.facility-img {
    height: 200px;
    overflow: hidden;
}

.facility-img img {
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.facility-card:hover .facility-img img {
    transform: scale(1.05);
}

.facility-title {
    font-weight: 600;
}

/*--------------------------------------------------------------
# Call to Action Section
--------------------------------------------------------------*/
.cta-section {
    position: relative;
    background-size: cover;
    background-position: center;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(var(--accent-rgb), 0.8);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
    position: relative;
}

.footer-logo {
    height: 80px;
    width: auto;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(var(--white-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--accent);
    color: #fff;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(var(--white-rgb), 0.8);
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
    padding-right: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: rgba(var(--white-rgb), 0.8);
}

.footer-contact li i {
    margin-left: 0.75rem;
    margin-top: 0.25rem;
    color: var(--accent);
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: rgba(var(--white-rgb), 0.8);
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: #fff;
}

.border-white-10 {
    border-color: rgba(var(--white-rgb), 0.1) !important;
}

/*--------------------------------------------------------------
# Back to Top Button
--------------------------------------------------------------*/
.back-to-top {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent);
    color: #fff;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 991.98px) {
    .hero-slider,
    .hero-slide {
        height: 500px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-slider,
    .hero-slide {
        height: 400px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .welcome-badge,
    .equipment-badge,
    .image-badge {
        width: 80px;
        height: 80px;
    }

    .badge-inner .year {
        font-size: 1.5rem;
    }

    .badge-inner i {
        font-size: 1.25rem;
    }
}

/* Enhanced Patient Testimonials - Namespaced styles */
.testimonials-section {
    position: relative;
    overflow: hidden;
}

/* Decorative elements */
.ptm-decoration-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
    z-index: 0;
}

.ptm-decoration-1 {
    width: 300px;
    height: 300px;
    background-color: var(--primary);
    top: -100px;
    right: -100px;
}

.ptm-decoration-2 {
    width: 200px;
    height: 200px;
    background-color: var(--accent);
    bottom: -50px;
    left: -50px;
}

.ptm-decoration-lines {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background-image: linear-gradient(90deg, rgba(var(--primary-rgb), 0.03) 1px, transparent 1px),
    linear-gradient(rgba(var(--primary-rgb), 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 0;
}

/* Section header styles */
.ptm-subtitle {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: rgba(var(--primary-rgb), 0.1);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    margin-bottom: 1rem;
}

.ptm-title-underline {
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 100%;
    height: 8px;
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
    animation: ptmDrawUnderline 1.5s ease forwards 0.5s;
}

@keyframes ptmDrawUnderline {
    to { stroke-dashoffset: 0; }
}

/* Testimonial slider */
.ptm-slider-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto 3rem;
    z-index: 1;
}

.ptm-slider {
    position: relative;
    min-height: 320px;
}

.ptm-slide {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.ptm-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.ptm-testimonial {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.ptm-testimonial:hover {
    transform: translateY(-5px);
}

.ptm-content {
    position: relative;
    padding: 2.5rem 2rem;
}

.ptm-quote-icon {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
}

.ptm-rating {
    color: #FFD700;
    margin-bottom: 1rem;
}

.ptm-rating i {
    margin-left: 2px;
}

.ptm-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--gray);
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
}

.ptm-author-info {
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 1.5rem;
}

.ptm-author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-left: 1rem;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.ptm-author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ptm-author-name {
    margin-bottom: 0.2rem;
    font-weight: 600;
    color: var(--dark);
}

.ptm-author-location {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.2rem;
}

.ptm-treatment {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0;
}

/* Controls */
.ptm-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

.ptm-control {
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.ptm-control:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
}

.ptm-indicators {
    display: flex;
    align-items: center;
    margin: 0 1rem;
}

.ptm-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #D1D5DB;
    margin: 0 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ptm-indicator.active {
    width: 24px;
    border-radius: 4px;
    background-color: var(--primary);
}

/* Stats section */
.ptm-stats-container {
    margin-top: 4rem;
}

.ptm-stat {
    text-align: center;
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ptm-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.ptm-stat-icon {
    margin-bottom: 0.75rem;
    color: var(--primary);
    font-size: 1.5rem;
    height: 60px;
    width: 60px;
    background-color: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: transform 0.3s ease;
}

.ptm-stat:hover .ptm-stat-icon {
    transform: scale(1.1);
}

.ptm-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.ptm-stat-number span {
    font-size: 1.25rem;
    opacity: 0.7;
}

.ptm-stat-label {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .ptm-content {
        padding: 2rem 1.5rem;
    }

    .ptm-text {
        font-size: 1rem;
    }

    .ptm-stat-number {
        font-size: 2rem;
    }
}

/* Enhanced Text Animations for Testimonials Slider Only */
.ptm-text {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.6s ease;
}

.ptm-author-name, .ptm-author-location, .ptm-treatment {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease;
    transition-delay: 0.1s;
}

/* Animation states for text elements */
.ptm-slide:not(.active) .ptm-text {
    opacity: 0;
    transform: translateY(30px);
}

.ptm-slide:not(.active) .ptm-author-name {
    opacity: 0;
    transform: translateY(20px);
}

.ptm-slide:not(.active) .ptm-author-location {
    opacity: 0;
    transform: translateY(15px);
}

.ptm-slide:not(.active) .ptm-treatment {
    opacity: 0;
    transform: translateY(10px);
}

/* Staggered entry animation for active slide */
.ptm-slide.active .ptm-text {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.ptm-slide.active .ptm-author-name {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.ptm-slide.active .ptm-author-location {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.ptm-slide.active .ptm-treatment {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

/* Quote icon subtle animation */
.ptm-slide.active .ptm-quote-icon {
    animation: ptmQuotePulse 2s ease-in-out 0.8s forwards;
}

@keyframes ptmQuotePulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.7; }
}

/* Rating stars animation */
.ptm-slide.active .ptm-rating i {
    opacity: 0;
    animation: ptmStarFadeIn 0.3s ease-in-out forwards;
}

.ptm-slide.active .ptm-rating i:nth-child(1) { animation-delay: 0.4s; }
.ptm-slide.active .ptm-rating i:nth-child(2) { animation-delay: 0.5s; }
.ptm-slide.active .ptm-rating i:nth-child(3) { animation-delay: 0.6s; }
.ptm-slide.active .ptm-rating i:nth-child(4) { animation-delay: 0.7s; }
.ptm-slide.active .ptm-rating i:nth-child(5) { animation-delay: 0.8s; }

@keyframes ptmStarFadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Enhanced slide transitions */
.ptm-slide {
    transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s cubic-bezier(0.26, 0.86, 0.44, 0.985);
}

.ptm-slide.slide-next-out {
    transform: translateX(-50px);
    opacity: 0;
}

.ptm-slide.slide-prev-out {
    transform: translateX(50px);
    opacity: 0;
}

.ptm-slide.slide-next-in {
    transform: translateX(50px);
}

.ptm-slide.slide-prev-in {
    transform: translateX(-50px);
}

/*--------------------------------------------------------------
# Category Page Styles - Specialty/Department Pages
--------------------------------------------------------------*/

/* Hero section */
.cat-hero {
    position: relative;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    color: white;
}

.cat-hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left, rgba(var(--primary-rgb), 0.9), rgba(var(--primary-rgb), 0.5));
}

.cat-breadcrumb {
    margin-bottom: 1.5rem;
}

.cat-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.cat-breadcrumb .breadcrumb-item.active {
    color: white;
}

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

.cat-hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cat-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cat-btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
}

.cat-btn-primary:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cat-btn-outline {
    border-color: white;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
}

.cat-btn-outline:hover {
    background-color: white;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Highlights section */
.cat-highlights {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.cat-highlight-item {
    text-align: center;
    padding: 2rem 1rem;
    background-color: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.cat-highlight-item:hover {
    transform: translateY(-5px);
}

.cat-highlight-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: var(--primary);
    background-color: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
}

.cat-highlight-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.3rem;
}

.cat-highlight-text {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Overview section */
.cat-img-container {
    position: relative;
    padding-left: 30px;
    padding-bottom: 30px;
}

.cat-main-img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cat-img-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 120px;
    height: 120px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.3);
    line-height: 1.3;
}

.cat-section-subtitle {
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cat-section-title {
    color: var(--dark);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.cat-lead {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.cat-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.cat-feature {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cat-feature i {
    color: var(--accent);
}

/* Services section */
.cat-section-desc {
    max-width: 700px;
    margin-right: auto;
    margin-left: auto;
    color: var(--gray);
}

.cat-service-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.cat-service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--primary);
    background-color: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
}

.cat-service-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--dark);
}

.cat-service-list {
    padding-right: 0;
    list-style: none;
}

.cat-service-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-right: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.cat-service-list li:last-child {
    border-bottom: none;
}

.cat-service-list li:before {
    content: "\f105";  /* FontAwesome chevron-left */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 0;
    color: var(--primary);
}

/* Doctors section */
.cat-doctor-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
}

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

.cat-doctor-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.cat-doctor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.cat-doctor-card:hover .cat-doctor-img img {
    transform: scale(1.1);
}

.cat-doctor-specialty {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: rgba(var(--primary-rgb), 0.8);
    color: white;
    font-size: 0.8rem;
    padding: 0.5rem;
    text-align: center;
}

.cat-doctor-info {
    padding: 1.5rem;
}

.cat-doctor-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--dark);
}

.cat-doctor-credentials {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.8rem;
}

.cat-doctor-experience {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.cat-doctor-experience:before {
    content: "\f559";  /* FontAwesome award */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 0.5rem;
}

.cat-doctor-actions {
    display: flex;
    gap: 0.5rem;
}

.cat-btn-outline-sm {
    display: inline-block;
    padding: 0.4rem 1rem;
    border: 1px solid var(--primary);
    border-radius: 30px;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
    text-align: center;
    flex: 1;
}

.cat-btn-outline-sm:hover {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

.cat-btn-primary-sm {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
    text-align: center;
    flex: 1;
}

.cat-btn-primary-sm:hover {
    background-color: var(--accent);
    color: white;
}

/* Appointment section */
.cat-appointment {
    position: relative;
}

.cat-contact-info {
    margin-top: 2rem;
}

.cat-contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cat-contact-item i {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    background-color: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
}

.cat-contact-item h5 {
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.cat-contact-item p {
    margin-bottom: 0;
    color: var(--gray);
}

.cat-form-container {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.cat-appointment-form .form-control,
.cat-appointment-form .form-select {
    padding: 0.75rem 1.25rem;
    border-radius: 5px;
    border: 1px solid rgba(0,0,0,0.1);
}

.cat-appointment-form .form-control:focus,
.cat-appointment-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.1);
}

.cat-btn-submit {
    width: 100%;
    padding: 0.75rem;
    border-radius: 5px;
    background-color: var(--primary);
    border-color: var(--primary);
    font-weight: 500;
    transition: var(--transition);
}

.cat-btn-submit:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Resources */
.cat-resource-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.cat-resource-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary);
    background-color: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.cat-resource-card:hover .cat-resource-icon {
    background-color: var(--primary);
    color: white;
    transform: scale(1.1);
}

.cat-resource-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.cat-resource-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.cat-resource-link:hover {
    color: var(--accent);
}

.cat-resource-link i {
    transition: transform 0.3s ease;
}

.cat-resource-link:hover i {
    transform: translateX(5px);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .cat-hero-title {
        font-size: 2.5rem;
    }

    .cat-section-title {
        font-size: 2rem;
    }

    .cat-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .cat-hero {
        padding: 80px 0;
    }

    .cat-hero-title {
        font-size: 2rem;
    }

    .cat-highlights {
        margin-top: 0;
    }

    .cat-highlight-item {
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

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

    .cat-contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .cat-doctor-actions {
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .cat-hero-actions {
        flex-direction: column;
    }

    .cat-btn-primary, .cat-btn-outline {
        width: 100%;
        text-align: center;
    }
}

/*--------------------------------------------------------------
# Doctor Profile Page Styles
--------------------------------------------------------------*/

/* Hero Section */
.drp-hero {
    padding: 50px 0;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.03) 0%, rgba(var(--primary-rgb), 0.08) 100%);
}

/* Main Doctor Card */
.drp-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
}

/* Doctor Photo Section */
.drp-photo-wrapper {
    position: relative;
    padding: 20px;
}

.drp-photo {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.drp-photo img {
    width: 100%;
    height: auto;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.drp-photo:hover img {
    transform: scale(1.05);
}

.drp-badge {
    position: absolute;
    bottom: 30px;
    left: 0;
    background: var(--accent);
    color: white;
    padding: 8px 15px;
    font-size: 0.85rem;
    border-radius: 0 20px 20px 0;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.3);
    transform: translateX(0);
    animation: badgeFloat 3s ease-in-out infinite;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-5px); }
}

/* Quick Info Panel */
.drp-quick-info {
    margin-top: 20px;
    padding: 0 20px;
}

.drp-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.drp-info-item i {
    width: 36px;
    height: 36px;
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.drp-info-item:hover i {
    background-color: var(--primary);
    color: white;
    transform: rotateY(180deg);
}

.drp-info-label {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 2px;
}

.drp-info-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark);
}

/* Doctor Schedule */
.drp-schedule {
    margin-top: 25px;
    background: rgba(var(--primary-rgb), 0.03);
    border-radius: 10px;
    padding: 20px;
    margin: 20px;
}

.drp-schedule-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.drp-schedule-title::before {
    content: "\f017";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 8px;
    font-size: 0.9rem;
}

.drp-schedule-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(var(--primary-rgb), 0.2);
}

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

.drp-day {
    font-weight: 500;
    font-size: 0.9rem;
}

.drp-time {
    font-size: 0.9rem;
    color: var(--primary);
}

.drp-schedule-note {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--gray);
    font-style: italic;
}

/* Doctor Info Content */
.drp-info-content {
    padding: 30px;
}

.drp-specialty {
    display: inline-block;
    color: var(--accent);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.drp-name {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    position: relative;
}

.drp-name::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.drp-credentials {
    margin-top: 20px;
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 15px;
}

.drp-divider {
    margin: 0 8px;
    color: rgba(var(--primary-rgb), 0.3);
}

.drp-rating {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.drp-stars {
    color: #FFD700;
    margin-left: 10px;
    font-size: 0.9rem;
}

.drp-reviews {
    font-size: 0.85rem;
    color: var(--gray);
}

.drp-short-bio {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray);
    margin-bottom: 20px;
}

.drp-interests h6 {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: var(--dark);
}

.drp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.drp-tag {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.drp-tag:hover {
    background: rgba(var(--primary-rgb), 0.15);
    transform: translateY(-3px);
}

/* Button Group */
.drp-btn-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.drp-btn-appointment {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 25px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 15px rgba(var(--primary-rgb), 0.2);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
}

.drp-btn-appointment:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(var(--accent-rgb), 0.3);
}

.drp-btn-contact {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
    border-radius: 30px;
    padding: 12px 25px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.drp-btn-contact:hover {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    transform: translateY(-3px);
}

.drp-btn-share {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    background: transparent;
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.drp-btn-share:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: rotate(360deg);
}

/* Details Section */
.drp-details {
    padding: 30px 0 60px;
}

/* Tabs Styling */
.drp-tabs {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.drp-tabs .nav-link {
    color: var(--gray);
    font-weight: 500;
    padding: 15px 25px;
    margin: 0 5px;
    border: none;
    border-radius: 0;
    position: relative;
    background: transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.drp-tabs .nav-link i {
    font-size: 1rem;
}

.drp-tabs .nav-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.drp-tabs .nav-link.active {
    color: var(--primary);
    background-color: transparent;
}

.drp-tabs .nav-link.active::after {
    transform: scaleX(1);
}

/* Tab Content Animation */
.tab-pane {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s ease;
}

.tab-pane.active {
    opacity: 1;
    transform: translateY(0);
}

/* Timeline Section */
.drp-timeline {
    position: relative;
    padding-right: 30px;
    margin-bottom: 40px;
}

.drp-timeline::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    right: 9px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(var(--primary-rgb), 0.2) 0%, rgba(var(--primary-rgb), 0.8) 100%);
}

.drp-timeline-item {
    position: relative;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.drp-timeline-item:hover {
    transform: translateX(5px);
}

.drp-timeline-item:last-child {
    margin-bottom: 0;
}

.drp-timeline-dot {
    position: absolute;
    right: -30px;
    top: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary);
    z-index: 1;
    transition: all 0.3s ease;
}

.drp-timeline-item:hover .drp-timeline-dot {
    background: var(--primary);
    transform: scale(1.2);
}

.drp-timeline-content {
    background: white;
    border-radius: 10px;
    padding: 20px 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.drp-timeline-content:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.drp-timeline-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.drp-timeline-subtitle {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.drp-timeline-date {
    font-size: 0.85rem;
    color: var(--gray);
    display: flex;
    align-items: center;
}

.drp-timeline-date::before {
    content: "\f017";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 8px;
    font-size: 0.85rem;
    color: var(--gray);
}

/* Expertise Cards */
.drp-expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.drp-expertise-item {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.drp-expertise-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: var(--primary);
    transition: all 0.3s ease;
}

.drp-expertise-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--primary-rgb), 0) 100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.drp-expertise-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.drp-expertise-item:hover::before {
    width: 100%;
    opacity: 0.05;
}

.drp-expertise-item:hover::after {
    opacity: 1;
}

.drp-expertise-icon {
    width: 60px;
    height: 60px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.drp-expertise-item:hover .drp-expertise-icon {
    background: var(--primary);
    color: white;
    transform: rotateY(180deg);
}

.drp-expertise-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 15px;
}

.drp-expertise-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--gray);
}

/* Awards Card */
.drp-awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.drp-award-card {
    display: flex;
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    position: relative;
}

.drp-award-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: scaleX(0);
    transform-origin: right;
}

.drp-award-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.drp-award-card:hover::before {
    transform: scaleX(1);
}

.drp-award-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-left: 20px;
    transition: all 0.3s ease;
}

.drp-award-card:hover .drp-award-icon {
    background: var(--primary);
    color: white;
    transform: rotate(360deg);
}

.drp-award-info {
    flex: 1;
}

.drp-award-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
}

.drp-award-org {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.drp-award-year {
    font-size: 0.85rem;
    color: var(--gray);
    display: flex;
    align-items: center;
}

.drp-award-year::before {
    content: "\f073";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 8px;
    color: var(--gray);
}

/* Publications List */
.drp-publication-item {
    background: white;
    border-radius: 10px;
    padding: 20px 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.drp-publication-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.drp-publication-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.drp-publication-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
}

.drp-publication-year {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
}

.drp-publication-journal {
    font-size: 0.95rem;
    color: var(--gray);
    font-style: italic;
    margin-bottom: 8px;
}

.drp-publication-authors {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Appointment Section */
.drp-appointment-section {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--primary-rgb), 0.1) 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.drp-appointment-section::before {
    content: '';
    position: absolute;
    left: -200px;
    top: -200px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--primary-rgb), 0) 70%);
}

.drp-appointment-section::after {
    content: '';
    position: absolute;
    right: -200px;
    bottom: -200px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.08) 0%, rgba(var(--accent-rgb), 0) 70%);
}

.drp-appointment-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.drp-appointment-header {
    background: var(--primary);
    padding: 30px;
    color: white;
    position: relative;
    overflow: hidden;
}

.drp-appointment-header::before {
    content: '';
    position: absolute;
    left: -20px;
    top: -20px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.drp-appointment-header::after {
    content: '';
    position: absolute;
    right: 30px;
    bottom: -40px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.drp-appointment-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.drp-appointment-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.drp-appointment-body {
    padding: 30px;
}

.drp-input-group {
    margin-bottom: 20px;
}

.drp-input-label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--dark);
    display: block;
}

.drp-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.drp-form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
    outline: none;
}

.drp-form-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    background-size: 12px;
}

.drp-form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
    outline: none;
}

.drp-btn-submit {
    display: block;
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.drp-btn-submit:hover {
    background: var(--accent);
    box-shadow: 0 10px 20px rgba(var(--accent-rgb), 0.2);
    transform: translateY(-3px);
}

/* Related Doctors Section */
.drp-related-section {
    padding: 60px 0;
    background: white;
    position: relative;
    overflow: hidden;
}

.drp-related-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--primary-rgb), 0) 70%);
    top: -150px;
    right: -150px;
}

.drp-related-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.drp-related-title::after {
    content: '';
    width: 80px;
    height: 3px;
    background: var(--primary);
    position: absolute;
    bottom: -15px;
    right: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

.swiper-related {
    padding: 10px 5px 30px;
}

.drp-doctor-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.drp-doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.drp-doctor-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.drp-doctor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.drp-doctor-card:hover .drp-doctor-img img {
    transform: scale(1.1);
}

.drp-doctor-specialty {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: rgba(var(--primary-rgb), 0.8);
    color: white;
    padding: 8px 15px;
    font-size: 0.85rem;
    text-align: center;
    font-weight: 500;
}

.drp-doctor-info {
    padding: 20px;
}

.drp-doctor-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.drp-doctor-card:hover .drp-doctor-name {
    color: var(--primary);
}

.drp-doctor-credentials {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.drp-doctor-actions {
    display: flex;
    gap: 10px;
}

.drp-btn-sm {
    flex: 1;
    padding: 8px 15px;
    font-size: 0.9rem;
    border-radius: 30px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.drp-btn-primary-sm {
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
}

.drp-btn-primary-sm:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.2);
}

.drp-btn-outline-sm {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.drp-btn-outline-sm:hover {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .drp-name {
        font-size: 1.8rem;
    }

    .drp-short-bio {
        font-size: 0.95rem;
    }

    .drp-btn-group {
        flex-wrap: wrap;
    }

    .drp-btn-appointment,
    .drp-btn-contact {
        width: 100%;
        justify-content: center;
    }

    .drp-tabs .nav-link {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .drp-expertise-grid,
    .drp-awards-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    }
}

@media (max-width: 767.98px) {
    .drp-hero {
        padding: 30px 0;
    }

    .drp-info-content {
        padding: 20px;
    }

    .drp-name {
        font-size: 1.6rem;
    }

    .drp-btn-share {
        width: 40px;
        height: 40px;
    }

    .drp-tabs {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 5px;
    }

    .drp-tabs::-webkit-scrollbar {
        height: 3px;
    }

    .drp-tabs::-webkit-scrollbar-thumb {
        background: var(--primary);
    }

    .drp-tabs .nav-link {
        white-space: nowrap;
        padding: 10px 15px;
    }

    .drp-expertise-grid,
    .drp-awards-grid {
        grid-template-columns: 1fr;
    }

    .drp-appointment-title {
        font-size: 1.5rem;
    }

    .drp-appointment-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .drp-card {
        border-radius: 10px;
    }

    .drp-info-content {
        padding: 15px;
    }

    .drp-name {
        font-size: 1.5rem;
    }

    .drp-quick-info {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .drp-info-item {
        margin-bottom: 0;
        width: 100%;
    }

    .drp-btn-group {
        gap: 10px;
    }

    .drp-btn-appointment,
    .drp-btn-contact {
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    .drp-timeline {
        padding-right: 25px;
    }

    .drp-timeline-dot {
        right: -25px;
        width: 16px;
        height: 16px;
    }
}

/*--------------------------------------------------------------
# Enhanced Doctor Profile Appointment Section
--------------------------------------------------------------*/
.app-section {
    position: relative;
    padding: 70px 0;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.03) 0%, rgba(var(--primary-rgb), 0.08) 100%);
    overflow: hidden;
}

.app-section::before,
.app-section::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    z-index: 0;
    opacity: 0.5;
}

.app-section::before {
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--primary-rgb), 0) 70%);
    top: -250px;
    left: -250px;
    animation: pulse 15s infinite alternate ease-in-out;
}

.app-section::after {
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.1) 0%, rgba(var(--accent-rgb), 0) 70%);
    bottom: -250px;
    right: -250px;
    animation: pulse 20s infinite alternate-reverse ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.3; }
    100% { transform: scale(1.2); opacity: 0.6; }
}

.app-container {
    position: relative;
    z-index: 1;
}

.app-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.app-card:hover {
    transform: translateY(-5px);
}

.app-header {
    position: relative;
    background: var(--primary);
    padding: 35px 30px;
    color: white;
    overflow: hidden;
    text-align: center;
}

.app-header::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.app-header::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.app-icon {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--primary);
    font-size: 2rem;
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1;
    transform-origin: center bottom;
    animation: iconFloat 3s infinite ease-in-out;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.app-title {
    position: relative;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    z-index: 1;
}

.app-subtitle {
    position: relative;
    font-size: 1.1rem;
    opacity: 0.9;
    z-index: 1;
}

.app-body {
    padding: 35px 30px;
    position: relative;
}

.app-body::before {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: linear-gradient(to left, transparent, var(--accent), transparent);
    border-radius: 5px;
}

.app-group {
    position: relative;
    margin-bottom: 25px;
}

.app-label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.app-input-container {
    position: relative;
}

.app-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    transition: all 0.3s ease;
    z-index: 1;
}

.app-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.app-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
    background: white;
}

.app-input-container:focus-within .app-input-icon {1
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.app-input-container:focus-within .app-label {
    color: var(--primary);
    transform: translateY(-2px);
}

.app-textarea {
    min-height: 120px;
    resize: none;
}

.app-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    background-size: 12px;
    padding-left: 40px;
}

.app-btn-submit {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.app-btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
    z-index: -1;
}

.app-btn-submit:hover {
    background: var(--accent);
    box-shadow: 0 10px 20px -5px rgba(var(--accent-rgb), 0.4);
    transform: translateY(-3px);
}

.app-btn-submit:hover::before {
    right: 100%;
    animation: shineEffect 1.5s infinite;
}

@keyframes shineEffect {
    0% { right: -100%; }
    100% { right: 100%; }
}

.app-btn-text {
    position: relative;
    transition: transform 0.3s ease;
}

.app-btn-icon {
    position: relative;
    transition: transform 0.3s ease;
}

.app-btn-submit:hover .app-btn-text {
    transform: translateX(-5px);
}

.app-btn-submit:hover .app-btn-icon {
    transform: translateX(5px);
}

/* Form row animations */
.app-row {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
}

.app-row:nth-child(2) {
    animation-delay: 0.2s;
}

.app-row:nth-child(3) {
    animation-delay: 0.4s;
}

.app-row:nth-child(4) {
    animation-delay: 0.6s;
}

.app-row:nth-child(5) {
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*--------------------------------------------------------------
# Enhanced Doctor Profile Details Section
--------------------------------------------------------------*/
.det-section {
    padding: 50px 0;
    position: relative;
    background: linear-gradient(to bottom, rgba(var(--primary-rgb), 0.03), white 15%, white);
}

.det-container {
    position: relative;
    z-index: 1;
}

/* Enhanced Tabs */
.det-tabs-wrapper {
    position: relative;
    margin-bottom: 40px;
    text-align: center;
}

.det-tabs {
    display: inline-flex;
    background: white;
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
}

.det-tab-item {
    position: relative;
    list-style: none;
    margin: 0;
    z-index: 1;
}

.det-tab-button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 50px;
    color: var(--gray);
    font-weight: 500;
    font-size: 0.95rem;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    z-index: 1;
}

.det-tab-button.active {
    color: white;
}

.det-tab-indicator {
    position: absolute;
    height: calc(100% - 12px);
    top: 6px;
    z-index: 0;
    right: 6px;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    background: var(--primary);
}

.det-tab-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    transition: all 0.3s ease;
}

.det-tab-button.active .det-tab-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
}

/* Tab Content */
.det-tab-content {
    position: relative;
}

.det-tab-pane {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.det-tab-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.det-section-title {
    position: relative;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 30px;
    padding-bottom: 15px;
    display: inline-block;
}

.det-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 4px;
    background: var(--primary);
    border-radius: 4px;
}

/* Timeline */
.det-timeline {
    position: relative;
    padding-right: 30px;
    margin-bottom: 40px;
}

.det-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 9px;
    width: 2px;
    background: rgba(var(--primary-rgb), 0.2);
}

.det-timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.det-timeline-dot {
    position: absolute;
    right: -30px;
    top: 10px;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 3px solid var(--primary);
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.det-timeline-content {
    position: relative;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transform: translateX(0);
    transition: all 0.4s ease;
    cursor: default;
}

.det-timeline-content::before {
    content: '';
    position: absolute;
    right: -10px;
    top: 15px;
    width: 20px;
    height: 20px;
    background: white;
    transform: rotate(45deg);
    box-shadow: -5px 5px 10px rgba(0, 0, 0, 0.05);
    z-index: 0;
}

.det-timeline-title {
    position: relative;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
    z-index: 1;
}

.det-timeline-subtitle {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.det-timeline-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--gray);
    padding: 5px 12px;
    background: rgba(var(--primary-rgb), 0.05);
    border-radius: 20px;
    position: relative;
    z-index: 1;
}

.det-timeline-item:hover .det-timeline-dot {
    transform: scale(1.5);
    background: var(--primary);
    box-shadow: 0 0 0 5px rgba(var(--primary-rgb), 0.2);
}

.det-timeline-item:hover .det-timeline-content {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* About Tab Content */
.det-about-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.det-bio-content {
    flex: 1;
    min-width: 280px;
}

.det-bio-paragraph {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--gray);
    margin-bottom: 20px;
}

.det-info-sidebar {
    width: 100%;
    max-width: 350px;
}

.det-info-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.det-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.det-info-header {
    background: rgba(var(--primary-rgb), 0.05);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.det-info-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: var(--primary);
    color: white;
    border-radius: 10px;
}

.det-info-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.det-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.det-info-item {
    padding: 15px 20px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 15px;
}

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

.det-info-item-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.det-info-item:hover .det-info-item-icon {
    background: var(--primary);
    color: white;
    transform: rotateY(180deg);
}

.det-info-text strong {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 3px;
}

.det-info-text p {
    margin: 0;
    color: var(--gray);
    font-size: 0.95rem;
}

/* Expertise Tab Content */
.det-expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.det-expertise-card {
    position: relative;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    overflow: hidden;
    z-index: 1;
}

.det-expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: var(--primary);
    transition: all 0.3s ease;
}

.det-expertise-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05), transparent 80%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

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

.det-expertise-card:hover::before {
    width: 100%;
    opacity: 0.08;
}

.det-expertise-card:hover::after {
    opacity: 1;
}

.det-expertise-icon {
    position: relative;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    font-size: 1.8rem;
    border-radius: 15px;
    margin-bottom: 20px;
    transition: all 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.det-expertise-card:hover .det-expertise-icon {
    background: var(--primary);
    color: white;
    transform: rotateY(180deg);
    border-radius: 50%;
}

.det-expertise-title {
    position: relative;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 15px;
}

.det-expertise-desc {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .det-tabs {
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 6px;
    }

    .det-tab-button {
        padding: 10px 20px;
    }

    .det-bio-content, .det-info-sidebar {
        width: 100%;
        max-width: none;
    }

    .det-expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .det-tabs-wrapper {
        margin-bottom: 30px;
    }

    .det-section-title {
        font-size: 1.6rem;
    }

    .det-expertise-grid {
        grid-template-columns: 1fr;
    }

    .det-timeline-item:hover .det-timeline-content {
        transform: translateX(5px);
    }
}

@media (max-width: 575.98px) {
    .det-tab-button {
        padding: 10px 15px;
        font-size: 0.85rem;
    }

    .det-tab-icon {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }

    .det-section-title {
        font-size: 1.4rem;
    }

    .det-timeline {
        padding-right: 25px;
    }

    .det-timeline-dot {
        right: -25px;
        width: 16px;
        height: 16px;
    }
}


/*---------------------mycode-------*/
.inside-page
{
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.03) 0%, rgba(var(--primary-rgb), 0.08) 100%);
    padding: 54px 0;
}

.breadcrumb{
    margin-bottom: 0;
}


.titleCard {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 30px;
    position: relative;
}

.titleCard::after {
    content: '';
    position: absolute;
    bottom: 0px;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.card-page {
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    padding: 45px;
}


.details {
    font-size: 20px;
    line-height: 2;
    text-align: justify;
}



/* استايل الكارتات الأساسي */
.cardApd {
    display: block !important;
    background: #ffffff;
    border: 1px solid #e8e9ea;
    border-radius: 12px;
    padding: 0;
    text-decoration: none;
    color: #333;
    height: 100%;
    min-height: 200px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
}

/* تأثير الهوفر */
.cardApd:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: #2c5aa0;
    border-color: #2c5aa0;
}

/* استايل الصور */
.cardApd img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    transition: transform 0.3s ease;
}

.cardApd:hover img {
    transform: scale(1.05);
}

/* النص في الكارتات */
.cardApd {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 22px;
    line-height: 1.4;
    text-align: center;
}

/* الكارتات التي تحتوي على صور */
.cardApd:has(img) {
    justify-content: flex-end;
    padding-bottom: 20px;
}

/* الكارتات التي لا تحتوي على صور */
.cardApd:not(:has(img)) {
    display: flex !important;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 150px;
}

/* إزالة الأيقونة للكارتات بدون صور - فقط النص */

/*!* تحسين النص للكارتات مع الصور *!*/
/*.cardApd:has(img) {*/
/*    padding: 0 15px 15px 15px;*/
/*}*/

/* تأثيرات إضافية للتفاعل */
.cardApd::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(44, 90, 160, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cardApd:hover::after {
    opacity: 1;
}

/* تحسين الاستجابة للشاشات المختلفة */
@media (max-width: 768px) {
    .cardApd {
        min-height: 120px;
        font-size: 14px;
    }

    .cardApd img {
        height: 200px;
    }

    .cardApd:not(:has(img)) {
        padding: 20px 15px;
        min-height: 100px;
    }
}

@media (max-width: 576px) {
    .cardApd {
        min-height: 100px;
        font-size: 13px;
    }

    .cardApd img {
        height: 200px;
    }
}

/* تحسين التركيز للوصولية */
.cardApd:focus {
    outline: 2px solid #2c5aa0;
    outline-offset: 2px;
}

/* تأثير التحميل */
.cardApd {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-page-card
{
    width: 100%;
    border-radius: 15px;
    margin-bottom: 30px;
}


ul.blade-pagination li.page.active {
    background: #4a2686;
    cursor: default;
    color: white;
    border: 1px solid #4a2686;
}

ul.blade-pagination li.page {
    float: left;
    border: 1px solid #BBB;
    padding: 5px 8px;
    margin: 3px;
    border-radius: 4px;
    cursor: pointer;
    color: #0F172A;
    min-height: auto !important;
    display: flex
;
    align-items: center;
    justify-content: center;
}


.news-card
{
    display: block;
}




.otherMedia
{
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 12px 0 #00000070;
}
.otherMedia .imgprojects
{
    width: 100%;
    height: 250px;
    background-color: #f3f2f2;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
}

.otherMedia video
{
    width: 100%;
    height: 250px;
    background-color: #000;

}

.sharePost  a {
    text-decoration: none;
    border: 1px solid;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #333333 !important;
    font-size: 15px;
}

.poster img
{
    width: 100%;
    margin-bottom: 5px;
    border-radius: 5px;
}




.content{
    color: #524f4f;
    text-align: justify;
    margin-top: 19px;
    line-height: 2.7;
}


.detailsProduct span
{

    display: inline-block;
    border-bottom: 1px solid;
    font-size: 20px;
    font-weight: bold;
}


.content img
{

    max-width: 100% !important;

}


.fullFile video{

    width: 100%;
    height: auto;

}


.fullFile video{

    width: 100%;
    height: auto;

}

.fullFile .imgprojects{

    width: 100%;
    height: 500px;

}


@media (max-width:767px ) {

    .fullFile .imgprojects{

        width: 100%;
        height: 300px;

    }
}


@media (max-width:460px ) {

    .fullFile .imgprojects{

        width: 100%;
        height: 250px;

    }
}


.content  video
{
    width: 100% !important;
    height: auto !important;
}
.content  iframe
{
    width: 100%;

}

.otherMedia video{
    width: 100%;
    height: 200px;
    background-color: #000;

}

.imageNews
{
    width: 100%;
    height: 200px;
    display: block;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}


.facility-card
{
    display: block;
}


.cat-btn-outline-sm {
     padding: 0.4rem 0.5rem;

}



.language-dropdown {
    margin-right: 20px;
}

.language-dropdown .dropdown-toggle {
    color: #fff;
}












