/* Main Website Styles - Healthcare Theme */
:root {
    /* Healthcare Color Palette */
    --primary-color: #0d6efd;
    --primary-dark: #0b5ed7;
    --primary-light: #6ea8fe;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    
    /* Healthcare Backgrounds */
    --bg-primary: #f0f7ff;
    --bg-secondary: #e7f5fe;
    --bg-light: #f8fbff;
    --bg-white: #ffffff;
    --bg-cream: #fafcff;
    
    /* Text Colors */
    --text-dark: #1e293b;
    --text-medium: #475569;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    
    /* Border & Shadow */
    --border-color: #cbd5e1;
    --border-light: #e2e8f0;
    --shadow-soft: 0 2px 15px rgba(13, 110, 253, 0.08);
    --shadow-hover: 0 8px 30px rgba(13, 110, 253, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Main content spacing for fixed navbar */
.main-content {
    padding-top: 70px;
}

/* Navbar Styles */
.navbar {
    transition: all 0.3s ease;
    /* Prevent CLS from navbar */
    contain: layout style;
}

.navbar-brand {
    font-size: 1.3rem;
    /* Prevent font swap layout shift */
    font-display: swap;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    /* Prevent text reflow */
    white-space: nowrap;
    /* Hint for performance */
    will-change: color;
}

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

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    /* Prevent layout shift during font loading */
    font-display: swap;
}

/* Prevent CLS in hero section */
.hero-section h1 {
    /* Reserve space for title to prevent shift */
    min-height: 4.5rem;
    /* Prevent font swap from causing layout change */
    font-display: swap;
}

.hero-section .lead {
    /* Reserve space for subtitle */
    min-height: 1.75rem;
}

/* Animations - Optimized for CLS (No Layout Shift) */
.animate-fade-in {
    animation: fadeIn 1s ease-in;
    /* Hint browser about upcoming animation */
    will-change: opacity;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-in 0.3s both;
    will-change: opacity;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-in 0.6s both;
    will-change: opacity;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        /* Removed translateY to prevent layout shift */
    }
    to {
        opacity: 1;
    }
}

/* Card Hover Effects */
.treatment-card,
.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.treatment-card:hover,
.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

/* Page Header */
.page-header {
    padding: 80px 0 60px;
    margin-top: 70px;
}

.page-header h1 {
    margin-bottom: 1rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #FFF;
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(0,0,0,0.3);
}

/* Testimonials */
.testimonial-card {
    transition: transform 0.3s ease;
}

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

/* Blog Content Styles */
.blog-content,
.treatment-description {
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-content h2,
.blog-content h3,
.treatment-description h2,
.treatment-description h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.blog-content p,
.treatment-description p {
    margin-bottom: 1.5rem;
}

.blog-content ul,
.blog-content ol,
.treatment-description ul,
.treatment-description ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-content img,
.treatment-description img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

/* Qualifications Content */
.qualifications-content ul {
    list-style: none;
    padding-left: 0;
}

.qualifications-content li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.qualifications-content li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Buttons */
.btn {
    border-radius: 5px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13,110,253,0.3);
}

/* Footer */
footer a:hover {
    color: #fff !important;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
}

.breadcrumb-item a {
    text-decoration: none;
    color: var(--primary-color);
}

/* Gallery Image Hover Effect */
.card img {
    transition: transform 0.3s ease;
}

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

/* Social Share Buttons */
.btn-info {
    background-color: #1DA1F2;
    border-color: #1DA1F2;
}

.btn-info:hover {
    background-color: #1a91da;
    border-color: #1a91da;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem !important;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 20px;
    }
}

/* Loading Animation */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Form Styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.25);
}

/* Card Shadows */
.shadow-sm {
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important;
}

.shadow {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
}

/* Sticky Elements */
.sticky-top {
    position: sticky;
    top: 100px;
    z-index: 100;
}

/* Error Pages */
.error-code {
    font-size: 8rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .error-code {
        font-size: 5rem;
    }
}

/* ===================================
   Enhanced Testimonials Section
   =================================== */

.testimonials-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
}

.testimonials-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image: repeating-linear-gradient(
        45deg,
        #667eea 0px,
        #667eea 1px,
        transparent 1px,
        transparent 20px
    );
}

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

.testimonial-card:hover {
    transform: translateY(-10px);
}

.testimonial-inner {
    background: #fff;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.testimonial-inner:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important;
}

.testimonial-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.quote-icon i {
    font-size: 3rem;
    opacity: 0.2;
}

.stars i {
    font-size: 1.2rem;
    animation: sparkle 2s ease-in-out infinite;
}

.stars i:nth-child(1) { animation-delay: 0s; }
.stars i:nth-child(2) { animation-delay: 0.2s; }
.stars i:nth-child(3) { animation-delay: 0.4s; }
.stars i:nth-child(4) { animation-delay: 0.6s; }
.stars i:nth-child(5) { animation-delay: 0.8s; }

@keyframes sparkle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
}

.avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.patient-info {
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.card-decoration {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.05;
}

/* ===================================
   Enhanced Gallery Section
   =================================== */

.gallery-section {
    padding: 80px 0;
}

.gallery-grid {
    position: relative;
}

.gallery-item {
    cursor: pointer;
    transition: all 0.4s ease;
    background: #fff;
    height: 320px;
    display: flex;
    flex-direction: column;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2) !important;
}

.gallery-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.6s ease;
    flex-shrink: 0;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.5) 0%,
        rgba(0,0,0,0.95) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-content {
    transform: translateY(20px);
    transition: transform 0.4s ease;
    background: rgba(0,0,0,0.7);
    padding: 1rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    width: 100%;
}

.gallery-overlay-content h5 {
    color: #ffffff !important;
    text-shadow: 0 3px 15px rgba(0,0,0,1), 0 0 30px rgba(0,0,0,0.8);
    font-weight: 800 !important;
    font-size: 1.3rem !important;
    margin-bottom: 0.5rem !important;
    letter-spacing: 0.5px;
}

.gallery-overlay-content p {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,1), 0 0 20px rgba(0,0,0,0.8);
    font-weight: 600 !important;
    font-size: 0.95rem !important;
}

.gallery-item:hover .gallery-overlay-content {
    transform: translateY(0);
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .video-play-overlay {
    opacity: 0.9;
}

.video-play-overlay i {
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
}

/* Enhanced text visibility for all cards and overlays */
.card-title, .card h1, .card h2, .card h3, .card h4, .card h5, .card h6 {
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Ensure badges and labels are visible */
.badge {
    text-shadow: none;
    font-weight: 600;
}

/* Before & After badges - higher visibility */
.badge.bg-danger, .badge.bg-success {
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    padding: 0.4rem 0.7rem !important;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

/* Video container text overlay */
.video-container .position-absolute {
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

/* Featured badge visibility */
.position-absolute .badge {
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Gallery item caption always visible */
.gallery-item {
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

.before-after-container {
    height: 320px;
    overflow: hidden;
    display: flex;
}

.before-after-container .row {
    width: 100%;
    height: 100%;
}

.before-after-container .col-6 {
    height: 100%;
}

.before-after-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.before-after-container img {
    transition: all 0.4s ease;
}

.gallery-item:hover .before-after-container img {
    filter: brightness(1.1);
}

/* ===================================
   AOS Animation Overrides
   =================================== */

[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="zoom-in"] {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="zoom-in"].aos-animate {
    opacity: 1;
    transform: scale(1);
}

/* ===================================
   Smooth Animations
   =================================== */

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-shadow {
    0%, 100% { box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
    50% { box-shadow: 0 15px 40px rgba(0,0,0,0.2); }
}

.testimonial-card,
.gallery-item {
    animation: float 3s ease-in-out infinite;
}

.testimonial-card:nth-child(1) { animation-delay: 0s; }
.testimonial-card:nth-child(2) { animation-delay: 0.3s; }
.testimonial-card:nth-child(3) { animation-delay: 0.6s; }

.gallery-item:nth-child(1) { animation-delay: 0s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.4s; }
.gallery-item:nth-child(4) { animation-delay: 0.6s; }
.gallery-item:nth-child(5) { animation-delay: 0.8s; }
.gallery-item:nth-child(6) { animation-delay: 1s; }

/* ===================================
   Responsive Adjustments
   =================================== */

/* ===================================
   Enhanced Blog Section
   =================================== */

.blog-section {
    padding: 80px 0;
}

.blog-card {
    transition: all 0.4s ease;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15) !important;
}

.blog-image-container img {
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image-container img {
    transform: scale(1.15) rotate(2deg);
}

.blog-title {
    color: #333;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.blog-card:hover .blog-title {
    color: #0d6efd;
}

.blog-card-decoration {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0dcaf0 0%, #0d6efd 100%);
    opacity: 0.05;
    z-index: 0;
}

/* ===================================
   Section Dividers - Enhanced & Visible
   =================================== */

.section-divider {
    position: relative;
    height: 3px;
    background: linear-gradient(to right, transparent, #ced4da, transparent);
    margin: 0;
}

.section-divider-thick {
    position: relative;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa, #ffffff);
}

.section-divider-thick::before {
    content: '';
    width: 60%;
    max-width: 400px;
    height: 4px;
    background: linear-gradient(to right, transparent, #0d6efd, #0dcaf0, #0d6efd, transparent);
    box-shadow: 0 2px 15px rgba(13, 110, 253, 0.4);
    border-radius: 10px;
}

.section-divider-dots {
    text-align: center;
    padding: 50px 0;
    position: relative;
    background: linear-gradient(to bottom, transparent, rgba(13, 110, 253, 0.02), transparent);
}

.section-divider-dots::before {
    content: '◆  ◆  ◆';
    color: #0d6efd;
    font-size: 1.2rem;
    letter-spacing: 1.5rem;
    opacity: 0.4;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section-divider-gradient {
    height: 120px;
    background: linear-gradient(to bottom, 
        rgba(255,255,255,1) 0%,
        rgba(13, 110, 253, 0.08) 50%, 
        rgba(255,255,255,1) 100%);
    position: relative;
}

.section-divider-gradient::after {
    content: '❖';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #0d6efd;
    opacity: 0.3;
    text-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

.section-divider-wave {
    position: relative;
    height: 80px;
    background: #f8f9fa;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-divider-wave::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 3px;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 10px,
        #0d6efd 10px,
        #0d6efd 20px,
        transparent 20px,
        transparent 30px,
        #0dcaf0 30px,
        #0dcaf0 40px
    );
    opacity: 0.3;
    animation: wave-slide 20s linear infinite;
}

.section-divider-wave::after {
    content: '～～～';
    font-size: 1.5rem;
    color: #0d6efd;
    opacity: 0.4;
    letter-spacing: 0.5rem;
    z-index: 1;
    background: #f8f9fa;
    padding: 0 20px;
}

@keyframes wave-slide {
    0% { background-position: 0 0; }
    100% { background-position: 100px 0; }
}

/* ===================================
   Enhanced Quiz Section - Compact Version
   =================================== */

.quiz-news-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px 0;
    border-top: 3px solid #0d6efd;
}

.quiz-card, .news-feed-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.quiz-card:hover, .news-feed-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.quiz-icon-small {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.news-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.news-feed-container {
    max-height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 10px;
    background: #f8f9fa;
    padding: 1rem;
}

.news-feed-container::-webkit-scrollbar {
    width: 6px;
}

.news-feed-container::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 10px;
}

.news-feed-container::-webkit-scrollbar-thumb {
    background: #0d6efd;
    border-radius: 10px;
}

.news-feed-container::-webkit-scrollbar-thumb:hover {
    background: #0b5ed7;
}

.news-item {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 3px solid #0d6efd;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.news-item:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-left-color: #0dcaf0;
}

.news-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.news-item-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: #6c757d;
}

.news-item-source {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.news-item-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.news-live-indicator {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes blink-animation {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.blink-animation {
    animation: blink-animation 1.5s ease-in-out infinite;
}

.news-loading {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Compact quiz section (backup) */
.quiz-section-compact {
    background: linear-gradient(135deg, #fff8e1 0%, #ffe0b2 100%);
    padding: 30px 0;
    border-top: 3px solid #ffc107;
}

/* Original large quiz section (backup) */
.quiz-section {
    background: linear-gradient(135deg, #fff8e1 0%, #ffe0b2 100%);
    padding: 100px 0;
}

.quiz-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 193, 7, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 152, 0, 0.3) 0%, transparent 50%);
}

.quiz-floating-shapes .shape {
    position: absolute;
    border-radius: 50%;
    animation: float-shape 6s ease-in-out infinite;
}

.quiz-floating-shapes .shape-1 {
    width: 100px;
    height: 100px;
    background: rgba(255, 193, 7, 0.2);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.quiz-floating-shapes .shape-2 {
    width: 150px;
    height: 150px;
    background: rgba(255, 152, 0, 0.15);
    bottom: 10%;
    right: 15%;
    animation-delay: 2s;
}

.quiz-floating-shapes .shape-3 {
    width: 80px;
    height: 80px;
    background: rgba(255, 193, 7, 0.25);
    top: 50%;
    right: 5%;
    animation-delay: 4s;
}

@keyframes float-shape {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(-10px) translateX(-10px);
    }
    75% {
        transform: translateY(-30px) translateX(5px);
    }
}

.pulse-badge {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(255, 193, 7, 0);
    }
}

.quiz-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.quiz-stat-card {
    background: white;
    padding: 1.5rem 1rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
}

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

.quiz-stat-icon {
    font-size: 2.5rem;
    color: #0d6efd;
    margin-bottom: 0.5rem;
}

.pulse-button {
    animation: pulse-scale 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

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

.pulse-button:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 15px 40px rgba(255, 193, 7, 0.4) !important;
}

.quiz-benefits-card {
    background: white;
    border-radius: 25px;
    border: none;
}

.quiz-gift-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.3);
    animation: rotate-gift 3s ease-in-out infinite;
}

@keyframes rotate-gift {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-10deg) scale(1.05);
    }
    50% {
        transform: rotate(10deg) scale(1.1);
    }
    75% {
        transform: rotate(-5deg) scale(1.05);
    }
}

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

.quiz-benefit-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.quiz-benefit-item:hover {
    background: #fff8e1;
    transform: translateX(10px);
}

.benefit-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    font-size: 1.2rem;
    color: white;
}

.benefit-text strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #333;
}

/* ===================================
   Enhanced Services/Treatments Section
   =================================== */

.services-section {
    padding: 80px 0;
}

.treatment-card {
    transition: all 0.5s ease;
    border-radius: 20px;
}

.treatment-card:hover {
    transform: translateY(-20px) rotate(2deg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2) !important;
}

.treatment-number {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #198754 0%, #0d6efd 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.2rem;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(25, 135, 84, 0.4);
}

.treatment-image-wrapper img,
.treatment-icon-wrapper .treatment-icon {
    transition: transform 0.5s ease;
}

.treatment-card:hover .treatment-image-wrapper img {
    transform: scale(1.2) rotate(-2deg);
}

.treatment-card:hover .treatment-icon {
    transform: scale(1.3) rotate(360deg);
}

.treatment-title {
    color: #333;
    transition: color 0.3s ease;
}

.treatment-card:hover .treatment-title {
    color: #198754;
}

.treatment-card-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255,255,255,0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.8s ease;
    opacity: 0;
}

.treatment-card:hover .treatment-card-shine {
    left: 100%;
    opacity: 1;
}

/* ===================================
   Enhanced CTA Section
   =================================== */

.cta-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    padding: 80px 0;
}

.cta-bg-shapes .cta-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.cta-shape-1 {
    width: 300px;
    height: 300px;
    background: white;
    top: -100px;
    right: -50px;
    animation: float-cta 8s ease-in-out infinite;
}

.cta-shape-2 {
    width: 200px;
    height: 200px;
    background: white;
    bottom: -50px;
    left: 10%;
    animation: float-cta 10s ease-in-out infinite reverse;
}

.cta-shape-3 {
    width: 150px;
    height: 150px;
    background: white;
    top: 50%;
    left: -30px;
    animation: float-cta 12s ease-in-out infinite;
}

@keyframes float-cta {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.cta-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    animation: pulse-cta-icon 2s ease-in-out infinite;
}

@keyframes pulse-cta-icon {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255,255,255,0.7);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 20px rgba(255,255,255,0);
    }
}

.cta-button {
    background: white !important;
    color: #0d6efd !important;
    border: none !important;
    padding: 1rem 2.5rem !important;
    font-weight: 600;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3) !important;
    background: #fff !important;
}

.cta-button-new {
    background: #ffc107 !important;
    color: #000 !important;
    border: none !important;
    padding: 1rem 2.5rem !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.4) !important;
}

.cta-button-new:hover {
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 0 20px 50px rgba(255, 193, 7, 0.6) !important;
    background: #ffca2c !important;
    color: #000 !important;
}

/* ===================================
   AOS Flip Animation Enhancement
   =================================== */

[data-aos="flip-left"] {
    transform: perspective(1000px) rotateY(-45deg);
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="flip-left"].aos-animate {
    transform: perspective(1000px) rotateY(0deg);
    opacity: 1;
}

[data-aos="fade-right"] {
    transform: translateX(-50px);
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
    opacity: 1;
}

[data-aos="fade-left"] {
    transform: translateX(50px);
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
    opacity: 1;
}

/* ===================================
   Responsive Adjustments
   =================================== */

@media (max-width: 768px) {
    .testimonials-section,
    .gallery-section,
    .blog-section,
    .quiz-section,
    .quiz-section-compact,
    .quiz-news-section,
    .services-section,
    .cta-section {
        padding: 60px 0;
    }
    
    .quiz-section-compact,
    .quiz-news-section {
        padding: 30px 0;
    }
    
    .quiz-card, .news-feed-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .quiz-icon-small, .news-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .news-feed-container {
        max-height: 300px;
    }
    
    .news-item {
        padding: 0.75rem;
    }
    
    .news-item-title {
        font-size: 0.85rem;
    }
    
    .news-item-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .gallery-item,
    .gallery-image,
    .before-after-container {
        height: 250px;
    }
    
    .testimonial-card,
    .gallery-item,
    .treatment-card {
        animation: none;
    }
    
    .treatment-card:hover {
        transform: translateY(-10px) rotate(0deg);
    }
    
    .avatar-circle {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .quiz-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quiz-stat-card {
        padding: 1rem;
    }
    
    .quiz-gift-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .quiz-floating-shapes .shape,
    .cta-bg-shapes .cta-shape {
        display: none;
    }
    
    .cta-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .treatment-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .display-4,
    .display-5 {
        font-size: 2rem !important;
    }
}


/* ===================================
   About Page Styles
   =================================== */

.page-header-modern {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
}

.header-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(13, 110, 253, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(13, 202, 240, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.about-image-wrapper {
    position: relative;
}

.about-image-frame img {
    transition: transform 0.5s ease;
}

.about-image-frame:hover img {
    transform: scale(1.05);
}

.image-decoration {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: 1.5rem;
    z-index: -1;
    opacity: 0.3;
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.3);
    animation: float 3s ease-in-out infinite;
    z-index: 10;
}

.experience-badge .badge-content {
    text-align: center;
    color: white;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--info-color));
    border-radius: 10px;
}

.stat-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.qualifications-card {
    border-top: 4px solid var(--primary-color);
    background: white;
}

.qualifications-content ul {
    list-style: none;
    padding-left: 0;
}

.qualifications-content li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    border-bottom: 1px solid var(--border-light);
}

.qualifications-content li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Why Choose Us Section */
.why-choose-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
}

.choose-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(13, 110, 253, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(13, 202, 240, 0.03) 0%, transparent 50%);
    z-index: 0;
}

.feature-card {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: 1.5rem;
    transition: all 0.4s ease;
    border: 2px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--info-color) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.feature-card:hover::before {
    opacity: 0.05;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.feature-icon-wrapper {
    position: relative;
}

.feature-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.feature-card:hover .feature-icon {
    transform: rotateY(360deg);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.bg-gradient-success {
    background: linear-gradient(135deg, var(--success-color), #15803d);
}

.bg-gradient-info {
    background: linear-gradient(135deg, var(--info-color), #0891b2);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, var(--warning-color), #f59e0b);
}

.feature-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 35px;
    height: 35px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* CTA Section Modern */
.cta-section-modern {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--info-color) 100%);
    position: relative;
}

.cta-bg-shapes-about {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.cta-bg-shapes-about .shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.cta-bg-shapes-about .shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -50px;
    animation: float 8s ease-in-out infinite;
}

.cta-bg-shapes-about .shape-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: 10%;
    animation: float 6s ease-in-out infinite reverse;
}

.cta-bg-shapes-about .shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: -30px;
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Mobile Responsive - About Page */
@media (max-width: 768px) {
    .page-header-modern {
        padding: 60px 0 !important;
    }
    
    .experience-badge {
        width: 90px;
        height: 90px;
        bottom: 15px;
        right: 15px;
    }
    
    .experience-badge .fw-bold {
        font-size: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem 1.25rem;
    }
    
    .feature-icon {
        width: 80px;
        height: 80px;
    }
    
    .cta-section-modern {
        padding: 60px 0 !important;
    }
}

/* ===================================
   Testimonials Page Styles
   =================================== */

.testimonials-page-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
}

.testimonial-card-modern {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    border: 2px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.testimonial-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--info-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.testimonial-card-modern:hover::before {
    transform: scaleX(1);
}

.testimonial-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.featured-testimonial {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.02) 0%, white 100%);
}

.featured-ribbon {
    position: absolute;
    top: 20px;
    right: -35px;
    background: linear-gradient(135deg, var(--warning-color), #f59e0b);
    color: white;
    padding: 5px 40px;
    font-size: 0.8rem;
    font-weight: bold;
    transform: rotate(45deg);
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3);
}

.quote-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.1;
}

.rating-stars {
    color: var(--warning-color);
    font-size: 1.2rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.patient-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.patient-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.2);
}

.patient-details {
    flex: 1;
}

.patient-name {
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.verified-badge {
    font-size: 0.85rem;
    color: var(--success-color);
    font-weight: 500;
}

.verified-badge i {
    margin-right: 0.25rem;
}

.empty-state {
    padding: 3rem;
}

.empty-state i {
    font-size: 80px;
    color: var(--text-muted);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Stats Section Modern */
.stats-section-modern {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.stats-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 30% 30%, rgba(13, 110, 253, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(13, 202, 240, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.stat-card-modern {
    text-align: center;
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.stat-card-modern:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.stat-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.stat-card-modern:hover .stat-icon {
    transform: rotateY(360deg);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-medium);
    font-weight: 500;
}

/* CTA Testimonials */
.cta-section-testimonials {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.cta-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.cta-particles .particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: particleFloat 15s ease-in-out infinite;
}

.cta-particles .particle-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.cta-particles .particle-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.cta-particles .particle-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.cta-particles .particle-4 {
    width: 100px;
    height: 100px;
    top: 40%;
    right: 30%;
    animation-delay: 1s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(20px, -20px) scale(1.1);
    }
    50% {
        transform: translate(-10px, 10px) scale(0.9);
    }
    75% {
        transform: translate(-20px, -10px) scale(1.05);
    }
}

/* Mobile Responsive - Testimonials */
@media (max-width: 768px) {
    .testimonial-card-modern {
        padding: 2rem 1.5rem;
    }
    
    .quote-icon {
        font-size: 2rem;
        top: 15px;
        left: 15px;
    }
    
    .stat-card-modern {
        padding: 2rem 1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .cta-section-testimonials {
        padding: 60px 0 !important;
    }
}

/* ===================================
   Gallery Page Styles
   =================================== */

.gallery-header-modern {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
}

.gallery-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(13, 110, 253, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(13, 202, 240, 0.08) 0%, transparent 50%);
    z-index: 0;
}

.gallery-filter-section {
    border-bottom: 3px solid var(--primary-color);
}

.gallery-card {
    transition: all 0.4s ease;
    border-radius: 1rem;
    overflow: hidden;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover) !important;
}

.gallery-card img {
    transition: transform 0.5s ease;
}

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

/* ===================================
   Treatments Page Styles  
   =================================== */

.treatment-card-modern {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    border: 2px solid var(--border-light);
}

.treatment-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.treatment-card-modern .card-img-top {
    transition: all 0.5s ease;
}

.treatment-card-modern:hover .card-img-top {
    transform: scale(1.05);
}

/* ===================================
   Blog Page Styles
   =================================== */

.blog-header-modern {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
}

.blog-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 30% 30%, rgba(13, 110, 253, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(13, 202, 240, 0.06) 0%, transparent 50%);
    z-index: 0;
}

.blog-card-modern {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    border: 2px solid var(--border-light);
    height: 100%;
}

.blog-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.blog-image-wrapper {
    overflow: hidden;
    height: 250px;
    position: relative;
}

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

.blog-card-modern:hover .blog-image-wrapper img {
    transform: scale(1.1);
}

.blog-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    background: rgba(13, 110, 253, 0.9);
    backdrop-filter: blur(10px);
}

/* ===================================
   Contact & Appointment Pages
   =================================== */

.contact-header-modern,
.appointment-header-modern {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--info-color) 100%);
    position: relative;
}

.contact-form-modern {
    background: white;
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-light);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.contact-info-card {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
    height: 100%;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.contact-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.2);
}

/* ===================================
   Enhanced Form Styles
   =================================== */

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

.form-control,
.form-select {
    border-radius: 0.75rem;
    border: 2px solid var(--border-light);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:hover,
.form-select:hover {
    border-color: var(--primary-light);
}

textarea.form-control {
    min-height: 120px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.3);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 0.75rem;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.2);
}

/* ===================================
   Card Enhancements
   =================================== */

.card {
    border-radius: 1rem;
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.card-header {
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
}

/* ===================================
   Breadcrumb Enhancements
   =================================== */

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 1.2rem;
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
}

.breadcrumb-item.active {
    color: var(--text-medium);
}

/* ===================================
   Badge Enhancements
   =================================== */

.badge {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.badge.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, var(--success-color), #15803d) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, var(--warning-color), #f59e0b) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, var(--info-color), #0891b2) !important;
}

/* ===================================
   Pagination Enhancements
   =================================== */

.pagination {
    gap: 0.5rem;
}

.page-link {
    border-radius: 0.5rem;
    border: 2px solid var(--border-light);
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-color);
}

/* ===================================
   Loading & Animations
   =================================== */

/* fadeIn keyframes already defined above - removed duplicate */

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

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

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* ===================================
   Utility Classes
   =================================== */

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

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

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

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

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

.shadow-soft {
    box-shadow: var(--shadow-soft) !important;
}

.shadow-hover {
    box-shadow: var(--shadow-hover) !important;
}

/* ===================================
   Mobile Global Responsive
   =================================== */

@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem !important;
    }
    
    .display-4 {
        font-size: 2rem !important;
    }
    
    .display-5 {
        font-size: 1.75rem !important;
    }
    
    .lead {
        font-size: 1.1rem !important;
    }
    
    .gallery-header-modern,
    .blog-header-modern,
    .contact-header-modern,
    .appointment-header-modern {
        padding: 50px 0 30px 0 !important;
    }
    
    .contact-form-modern {
        padding: 2rem 1.5rem;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem !important;
    }
}
