/* ==========================================================================
   MedVis AI Research Lab - Professional Light Medical Theme Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root, [data-theme="light"] {
    /* Color Palette - Light Theme (Default) */
    --primary: #0f172a;          /* Deep Slate Blue */
    --primary-light: #1e293b;
    --accent: #2563eb;           /* Royal Electric Blue */
    --accent-hover: #1d4ed8;
    --teal-glow: #0d9488;        /* Medical Teal */
    --cyan-glow: #0284c7;        /* Medical Cyan */
    
    --bg-main: #f8fafc;          /* Pure Light Slate background */
    --bg-hero: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    --bg-card: #ffffff;          /* White Card background */
    --bg-card-hover: #ffffff;
    --bg-subtle: #f1f5f9;
    --border-color: #e2e8f0;     /* Light Border */
    --border-hover: #93c5fd;     /* Soft Blue Hover */
    
    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows & Glassmorphism */
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
    --shadow-glow: 0 8px 24px rgba(37, 99, 235, 0.12);
    --glass-bg: rgba(255, 255, 255, 0.92);
    --glass-border: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Palette */
[data-theme="dark"] {
    --primary: #f8fafc;
    --primary-light: #e2e8f0;
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --teal-glow: #14b8a6;
    --cyan-glow: #38bdf8;
    
    --bg-main: #0b0f19;          /* Rich Dark Slate background */
    --bg-hero: linear-gradient(180deg, #0f172a 0%, #0b0f19 100%);
    --bg-card: #151c2c;          /* Dark Card background */
    --bg-card-hover: #1e293b;
    --bg-subtle: #1e293b;
    --border-color: #1e293b;     /* Dark Border */
    --border-hover: #3b82f6;     /* Soft Blue Hover */
    
    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Shadows & Glassmorphism */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 8px 24px rgba(59, 130, 246, 0.25);
    --glass-bg: rgba(11, 15, 25, 0.92);
    --glass-border: #1e293b;
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.25;
    font-weight: 700;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #0d9488 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-glow {
    position: absolute;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, rgba(13, 148, 136, 0.04) 50%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.btn-outline {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    font-size: 1.05rem;
}

.theme-toggle-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: rotate(15deg) scale(1.08);
    box-shadow: var(--shadow-glow);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-accent {
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-teal {
    background: rgba(13, 148, 136, 0.12);
    color: #0d9488;
    border: 1px solid rgba(20, 184, 166, 0.3);
}

.badge-purple {
    background: rgba(168, 85, 247, 0.12);
    color: #9333ea;
    border: 1px solid rgba(192, 132, 252, 0.3);
}

.badge-rose {
    background: rgba(225, 29, 72, 0.12);
    color: #e11d48;
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.badge-emerald {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.badge-amber {
    background: rgba(217, 119, 6, 0.12);
    color: #d97706;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.badge-cyan {
    background: rgba(6, 182, 212, 0.12);
    color: #0284c7;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

[data-theme="dark"] .badge-accent { color: #60a5fa; }
[data-theme="dark"] .badge-teal { color: #2dd4bf; }
[data-theme="dark"] .badge-purple { color: #c084fc; }
[data-theme="dark"] .badge-rose { color: #f43f5e; }
[data-theme="dark"] .badge-emerald { color: #34d399; }
[data-theme="dark"] .badge-amber { color: #fbbf24; }
[data-theme="dark"] .badge-cyan { color: #38bdf8; }

/* Form Controls & Inputs */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: var(--transition);
    outline: none;
    box-shadow: var(--shadow-sm);
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.15);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* Top Announcement Bar */
.top-announcement {
    background: #0f172a;
    color: #e2e8f0;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    text-align: center;
}

.top-announcement strong {
    color: #60a5fa;
}

/* Header & Navigation */
.header-navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    padding: 0.25rem 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo .logo-img {
    height: 44px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

[data-theme="dark"] .brand-logo .logo-img {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.brand-logo .logo-img-footer {
    height: 52px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
}

/* Floating Pill Capsule Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    padding: 0.35rem 0.6rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    margin: 0 auto;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.4rem 0.65rem;
    border-radius: 9999px;
    white-space: nowrap;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
    background: var(--bg-subtle);
    font-weight: 600;
}

.nav-link::after {
    display: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Contact Us Pill Button */
.btn-nav-cta {
    background: #0f172a;
    color: #ffffff;
    padding: 0.55rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.86rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    white-space: nowrap;
}

.btn-nav-cta:hover {
    background: #1e293b;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2);
}

[data-theme="dark"] .btn-nav-cta {
    background: var(--accent);
    color: #ffffff;
}

[data-theme="dark"] .btn-nav-cta:hover {
    background: #1d4ed8;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 5rem 0 4rem 0;
    overflow: hidden;
    background: var(--bg-hero);
    border-bottom: 1px solid var(--border-color);
}

.hero-particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: center;
}

.hero-badge-wrapper {
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.hero-description {
    font-size: 1.08rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

/* Live Stats Counter Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Hero Image Slider (Rhombus / Stylish Large Angled Showcase) */
.hero-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 580px;
    height: 440px;
    margin: 0 auto;
    border-radius: 2.5rem;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: 0 30px 60px -15px rgba(37, 99, 235, 0.3), 0 0 0 8px var(--bg-card);
    clip-path: polygon(6% 0%, 100% 0%, 94% 100%, 0% 100%);
    transform: rotate(-1deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    animation: rhombusFloat 6s ease-in-out infinite alternate;
}

.hero-slider-wrapper:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 30px 60px -12px rgba(37, 99, 235, 0.35);
}

@keyframes rhombusFloat {
    0% {
        transform: rotate(-1.5deg) translateY(0px);
    }
    100% {
        transform: rotate(-0.5deg) translateY(-10px);
    }
}

.hero-slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.15) rotate(1.5deg);
    transition: opacity 1s ease-in-out, transform 1.2s ease-in-out;
    pointer-events: none;
}

.hero-slider-slide.active {
    opacity: 1;
    transform: scale(1.05) rotate(0deg);
    pointer-events: auto;
}

.hero-slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Dots Indicator */
.hero-slider-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    background: rgba(15, 23, 42, 0.5);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
}

.hero-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-slider-dot.active {
    width: 24px;
    border-radius: 12px;
    background: #ffffff;
}

/* Section Common */
.section {
    padding: 5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.5rem auto;
}

.section-subtitle {
    font-size: 0.85rem;
    color: var(--teal-glow);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-description {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

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

.card-body {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Team Card Specifics */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.75rem 1.25rem;
}

.team-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.team-img {
    width: 100%;
    height: auto;
    max-height: 340px;
    object-fit: contain;
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    margin: 0 auto 1.25rem auto;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    flex-shrink: 0;
    transition: var(--transition);
}

.team-card:hover .team-img {
    transform: scale(1.02);
}

.team-avatar {
    width: 100%;
    height: auto;
    min-height: 200px;
    max-height: 300px;
    border-radius: var(--radius-md);
    margin: 0 auto 1.25rem auto;
    background: linear-gradient(135deg, var(--accent) 0%, var(--teal-glow) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2.8rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
    flex-shrink: 0;
}

.team-name {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}

.team-role {
    font-size: 0.88rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.team-dept {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.team-univ {
    font-size: 0.88rem;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.team-card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
}

/* ==========================================================================
   Blog Layout & Sidebar Component Styles
   ========================================================================== */
.blog-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.blog-featured-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    margin-bottom: 2.5rem;
}

.blog-featured-card:hover {
    box-shadow: var(--shadow-glow);
    border-color: var(--border-hover);
}

.blog-cover-wrapper {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
}

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

.blog-featured-card:hover .blog-cover-wrapper img,
.blog-card:hover .blog-card-img img {
    transform: scale(1.03);
}

.blog-featured-content {
    padding: 2rem;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.blog-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.blog-card-img {
    height: 220px;
    width: 100%;
    overflow: hidden;
}

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

.blog-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

/* Sidebar Widgets */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

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

.category-list li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed var(--border-color);
}

.category-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.92rem;
    color: var(--text-secondary);
    font-weight: 500;
}

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

.recent-post-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

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

.recent-post-thumb {
    width: 68px;
    height: 68px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-info h5 {
    font-size: 0.92rem;
    line-height: 1.35;
    margin-bottom: 0.25rem;
}

.recent-post-info h5 a:hover {
    color: var(--accent);
}

.recent-post-info span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    padding: 0.35rem 0.75rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.tag-item:hover {
    background: rgba(37, 99, 235, 0.12);
    color: var(--accent);
    border-color: var(--accent);
}

/* Blog Article Body Details */
.article-body {
    color: var(--text-primary);
    line-height: 1.85;
    font-size: 1.05rem;
}

.article-body h2, .article-body h3 {
    margin: 2rem 0 1rem 0;
    color: var(--text-primary);
}

.article-body p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.article-body blockquote {
    border-left: 4px solid var(--accent);
    background: rgba(37, 99, 235, 0.1);
    padding: 1.25rem 1.5rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--accent);
    margin: 1.75rem 0;
}

.author-bio-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
    align-items: center;
    margin: 2.5rem 0;
}

/* ==========================================================================
   Publications Filter & Professional Paper Card Styles
   ========================================================================== */
.pub-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.pub-filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Publications Table Component */
.pub-table-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2.5rem;
}

.pub-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 800px;
}

.pub-table th {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 1.25rem;
    border-bottom: 2px solid var(--border-color);
}

.pub-table td {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
    font-size: 0.95rem;
}

.pub-table tr:last-child td {
    border-bottom: none;
}

.pub-table tr:hover td {
    background: var(--bg-card-hover);
}

.pub-year-badge {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    background: var(--accent);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
}

.pub-table-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    line-height: 1.35;
}

.pub-table-title a:hover {
    color: var(--accent);
}

.pub-table-authors {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.pub-table-authors strong {
    color: var(--accent);
}

.pub-table-affiliations {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

.pub-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.pub-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.pub-title {
    font-size: 1.35rem;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

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

.pub-authors {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.pub-authors strong {
    color: var(--accent);
    font-weight: 700;
}

.pub-affiliations {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-style: italic;
}

.pub-venue-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background: rgba(37, 99, 235, 0.12);
    color: var(--accent);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.pub-abstract {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    background: var(--bg-main);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent);
}

.pub-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.bibtex-code-box {
    background: #0f172a;
    color: #e2e8f0;
    font-family: monospace;
    font-size: 0.85rem;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-top: 1rem;
    position: relative;
}

/* Footer */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 4rem 0 2rem 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col-title {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

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

.footer-links a {
    color: #cbd5e1;
}

.footer-links a:hover {
    color: #60a5fa;
    padding-left: 4px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
    font-size: 0.85rem;
    color: #64748b;
}

/* Split Grid Component */
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

/* ==========================================================================
   Comprehensive Responsive Media Queries (Mobile, Tablet, Laptop, Desktop)
   ========================================================================== */

/* Large Tablets, Laptops & Small Desktops (max-width: 1200px) */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    .hero-title {
        font-size: 2.85rem;
    }
    .header-container {
        height: 70px;
    }
    .brand-logo .logo-img {
        height: 40px;
    }
    .mobile-toggle {
        display: block;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 75px);
        overflow-y: auto;
        background: var(--bg-card);
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem 1.25rem 2rem 1.25rem;
        gap: 0.4rem;
        margin: 0;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        border: 1px solid var(--border-color);
        border-top: none;
        box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
        z-index: 999;
    }
    .btn-nav-cta {
        padding: 0.45rem 0.95rem;
        font-size: 0.82rem;
    }
    .nav-menu.show {
        display: flex;
    }
    .nav-link {
        width: 100%;
        max-width: 340px;
        text-align: center;
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
        font-weight: 500;
        border-radius: 9999px;
        border-bottom: none;
        transition: var(--transition);
    }
    .nav-link:hover, .nav-link.active {
        background: var(--bg-subtle);
        color: var(--accent);
        font-weight: 600;
    }
    .nav-link::after {
        display: none;
    }
    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        color: var(--text-primary);
        font-size: 1.1rem;
        cursor: pointer;
        transition: var(--transition);
    }
    .mobile-toggle:hover {
        color: var(--accent);
        border-color: var(--accent);
    }
}

@media (max-width: 576px) {
    .btn-nav-cta {
        display: none;
    }
}

/* Tablets & Medium Screens (max-width: 992px) */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    .hero-section {
        padding: 3.5rem 0 3rem 0;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .split-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .blog-layout-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .hero-title {
        font-size: 2.4rem;
    }
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }
    .top-announcement {
        font-size: 0.78rem;
        padding: 0.4rem 0.5rem;
    }
    .hero-title {
        font-size: 2rem;
        line-height: 1.25;
    }
    .hero-description {
        font-size: 0.98rem;
        margin-bottom: 1.5rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-buttons .btn {
        width: 100%;
    }
    .hero-slider-wrapper {
        height: 280px;
        clip-path: polygon(6% 0%, 100% 0%, 94% 100%, 0% 100%);
    }
    .section {
        padding: 3.5rem 0;
    }
    .section-title {
        font-size: 1.85rem;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.25rem;
    }
    .team-card {
        padding: 1.5rem 1rem;
    }
    .team-img {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: contain;
    }
    .team-avatar {
        width: 100%;
        height: auto;
        min-height: 180px;
    }
    .team-name {
        font-size: 1.1rem;
    }
    .team-role {
        font-size: 0.82rem;
    }
    .team-dept {
        font-size: 0.8rem;
    }
    .team-univ {
        font-size: 0.82rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Extra Small Mobile Devices (max-width: 576px) */
@media (max-width: 576px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* Smallest Devices (max-width: 480px) */
@media (max-width: 480px) {
    .brand-logo .logo-img {
        height: 36px;
    }
    .hero-title {
        font-size: 1.7rem;
    }
    .stats-bar {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .stat-number {
        font-size: 1.6rem;
    }
    .hero-visual {
        padding: 1rem;
    }
    .hero-visual-card {
        padding: 1rem;
    }
}

/* Back to Top Floating Button */
#backToTopBtn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--teal-glow));
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#backToTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTopBtn:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}
