/* ============================================
   MEDICAL WEBSITE COMPONENT STYLES
   Professional Medical Color Scheme
   ============================================ */

/* Hero Section Enhancements */
.hero-gradient {
    background: linear-gradient(135deg, #1F3A5F 0%, #0B1929 50%, #0F2847 100%) !important;
    border: 2px solid rgba(0, 102, 204, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 102, 204, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 168, 107, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Glass Card Enhancement */
.glass-card {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.15);
    transform: translateY(-5px);
    border-color: rgba(0, 102, 204, 0.2);
}

/* Global Animations */
.hover-lift {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    position: relative;
}

.hover-lift:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.25) !important;
}

/* Blog Card Styling */
.blog-card {
    border: none;
    background: #fff;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.blog-img-container {
    height: 240px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #E6F0FF 0%, #E6F9F0 100%);
}

.blog-img-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-img-container img {
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card:hover .blog-img-container img {
    transform: scale(1.12) rotate(1deg);
    filter: brightness(0.9);
}

.blog-card:hover .blog-img-container::after {
    opacity: 1;
}

.blog-category-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
}

/* Card Body Enhancement */
.card-body {
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.15rem;
    line-height: 1.4;
    color: var(--text-dark);
    margin: 0.75rem 0;
}

.card-title a {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.card-title a:hover {
    filter: brightness(1.1);
}

/* Features Stats Section */
.stats-container {
    background: linear-gradient(135deg, #ffffff 0%, #F3F6F9 100%);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.stat-item {
    padding: 1.5rem;
    transition: all 0.3s ease;
    border-radius: 1rem;
}

.stat-item:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 102, 204, 0.2);
}

.stat-item:hover h2,
.stat-item:hover p {
    color: white;
}

.stat-item h2 {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.stat-item p {
    color: var(--text-light);
    transition: color 0.3s ease;
}

/* Section Headings */
.section-tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 0.75rem;
}

.section-divider {
    width: 60px;
    height: 5px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
}

/* Gallery Enhancements */
.gallery-item {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 102, 204, 0.25);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.2), rgba(0, 168, 107, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-img,
.gallery-video {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item:hover .gallery-img,
.gallery-item:hover .gallery-video {
    transform: scale(1.08);
}

.media-type-badge {
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.gallery-item:hover .media-type-badge {
    background: rgba(0, 102, 204, 0.9);
    transform: scale(1.1);
}

.media-type-badge i {
    color: #fff;
    font-size: 1.2rem;
}

.bg-gradient-dark-transparent {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0) 100%
    );
}

/* Gallery Section Background */
.gallery-section {
    background: linear-gradient(135deg, #F8FAFB 0%, #F3F6F9 100%);
    border-radius: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Button Enhancements */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: white;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #003D7A);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.5);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-dark {
    background: linear-gradient(135deg, var(--text-dark), #0B1929);
    border: none;
    color: white;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-dark:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.3);
}

/* Empty State */
.empty-state {
    background: linear-gradient(135deg, #ffffff 0%, #F3F6F9 100%);
    border: 2px dashed var(--border-color);
    border-radius: 1.5rem;
    padding: 3rem;
    text-align: center;
}

.empty-state i {
    color: var(--primary-color);
    opacity: 0.3;
}

/* Badge Enhancement */
.badge {
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.7rem;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3); 
    }
    50% { 
        box-shadow: 0 4px 25px rgba(0, 102, 204, 0.5); 
    }
}

/* Date & Meta */
.meta-info {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-info i {
    color: var(--primary-color);
}

/* Line Clamping */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Scroll Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .hero-gradient {
        padding: 2rem 1rem !important;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .stat-item h2 {
        font-size: 2rem;
    }

    .stats-container {
        padding: 2rem 1rem;
    }

    .blog-img-container {
        height: 200px;
    }

    .gallery-item {
        height: 180px !important;
    }
}