/**
 * Visual Enhancements
 * Academic Legal Website
 * 
 * Sharper, punchier, more professional visual refinements
 */

/* ============================================================================
   ENHANCED HERO SECTION
   ========================================================================= */

.hero {
    background: linear-gradient(145deg, #0f172a 0%, #1e3a5f 40%, #2c5282 70%, #3b6da8 100%);
    padding: var(--space-4xl) 0 var(--space-5xl);
    position: relative;
}

/* Subtle pattern overlay for depth */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 35%);
    pointer-events: none;
}

/* Decorative bottom edge */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, 
        var(--accent) 0%, 
        #d97706 25%, 
        var(--accent) 50%, 
        #d97706 75%, 
        var(--accent) 100%);
}

.hero-title {
    font-size: 2.75rem;
    letter-spacing: 0.08em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: var(--space-sm);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
        letter-spacing: 0.1em;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-tagline {
    font-size: var(--text-base);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    font-weight: var(--font-medium);
    margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
    .hero-tagline {
        font-size: var(--text-lg);
    }
}

.hero-value-prop {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.9);
    max-width: 650px;
    margin: 0 auto var(--space-xl);
    line-height: 1.7;
    font-weight: var(--font-normal);
}

/* Enhanced credentials badge */
.hero-credential {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    letter-spacing: 0.02em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Enhanced hero buttons */
.btn-hero-primary {
    background: #ffffff;
    color: #1e3a5f;
    border: 2px solid #ffffff;
    font-weight: var(--font-semibold);
    letter-spacing: 0.02em;
    padding: var(--space-md) var(--space-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-hero-primary:hover {
    background: #f8fafc;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.btn-hero-secondary {
    border: 2px solid rgba(255, 255, 255, 0.6);
    font-weight: var(--font-medium);
    letter-spacing: 0.02em;
    padding: var(--space-md) var(--space-xl);
}

.btn-hero-secondary:hover {
    background: #ffffff;
    color: #1e3a5f;
    border-color: #ffffff;
}

/* ============================================================================
   ENHANCED SECTION HEADERS
   ========================================================================= */

.section-header {
    margin-bottom: var(--space-3xl);
    position: relative;
}

.section-header h2 {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--text-dark);
    letter-spacing: -0.01em;
    position: relative;
    display: inline-block;
}

/* Accent underline for section headers */
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #d97706);
    border-radius: 2px;
}

.section-header p {
    margin-top: var(--space-lg);
    font-size: var(--text-lg);
    color: var(--text-medium);
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .section-header h2 {
        font-size: var(--text-4xl);
    }
}

/* ============================================================================
   ENHANCED FEATURED ARTICLE
   ========================================================================= */

.featured-article-section {
    background: linear-gradient(180deg, var(--light-bg) 0%, var(--white) 100%);
    padding: var(--space-4xl) 0;
    position: relative;
}

.featured-article {
    max-width: 850px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-2xl) var(--space-xl);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.07),
        0 10px 20px -5px rgba(0, 0, 0, 0.1),
        0 25px 50px -12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

/* Top accent bar */
.featured-article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #d97706, var(--accent));
}

.featured-article-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: var(--font-bold);
    letter-spacing: 0.08em;
    padding: 6px 14px;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
}

.featured-article-badge svg {
    width: 14px;
    height: 14px;
}

.featured-article-title {
    font-size: var(--text-2xl);
    line-height: 1.35;
    color: var(--text-dark);
    margin-bottom: var(--space-lg);
}

.featured-article-title a {
    background: linear-gradient(180deg, transparent 85%, rgba(49, 130, 206, 0.15) 85%);
    transition: all 0.2s ease;
}

.featured-article-title a:hover {
    color: var(--accent);
    background: linear-gradient(180deg, transparent 85%, rgba(49, 130, 206, 0.3) 85%);
}

@media (min-width: 768px) {
    .featured-article-title {
        font-size: var(--text-3xl);
    }
}

.featured-article-excerpt {
    font-size: var(--text-lg);
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.featured-article-meta {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    color: var(--text-light);
    font-size: var(--text-sm);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
}

.featured-article-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.featured-article .btn {
    font-weight: var(--font-semibold);
    padding: var(--space-md) var(--space-xl);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.25);
}

.featured-article .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 130, 206, 0.35);
}

/* ============================================================================
   ENHANCED RESEARCH PILLARS
   ========================================================================= */

.research-pillars {
    padding: var(--space-4xl) 0;
    background: var(--white);
}

.pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 768px) {
    .pillars-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pillar-card {
    display: flex;
    flex-direction: column;
    padding: var(--space-xl);
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Accent top border on hover */
.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #d97706);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 10px 25px -5px rgba(0, 0, 0, 0.1),
        0 20px 40px -10px rgba(0, 0, 0, 0.08);
    border-color: var(--accent);
}

.pillar-card-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.pillar-card-title {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.pillar-card-description {
    font-size: var(--text-base);
    color: var(--text-medium);
    line-height: 1.6;
    flex: 1;
    margin-bottom: var(--space-lg);
}

.pillar-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-light);
}

.pillar-card-count {
    font-size: var(--text-sm);
    color: var(--text-light);
    font-weight: var(--font-medium);
}

.pillar-card-arrow {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    border-radius: var(--radius-full);
    color: var(--accent);
    transition: all 0.2s ease;
}

.pillar-card:hover .pillar-card-arrow {
    background: var(--accent);
    color: white;
    transform: translateX(4px);
}

/* ============================================================================
   ENHANCED ARTICLE CARDS
   ========================================================================= */

.article-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 25px -5px rgba(0, 0, 0, 0.08),
        0 20px 40px -10px rgba(0, 0, 0, 0.06);
    border-color: transparent;
}

.article-card-content {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(49, 130, 206, 0.1) 0%, rgba(49, 130, 206, 0.05) 100%);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: var(--font-semibold);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
    text-decoration: none;
    border: 1px solid rgba(49, 130, 206, 0.15);
    transition: all 0.2s ease;
    width: fit-content;
}

.article-category-badge:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.article-card-title {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    line-height: 1.35;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.article-card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.article-card-excerpt {
    font-size: var(--text-base);
    color: var(--text-medium);
    line-height: 1.65;
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    font-size: var(--text-sm);
    color: var(--text-light);
    margin-bottom: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

.article-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-card-meta svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.article-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--accent);
    text-decoration: none;
    transition: all 0.2s ease;
}

.article-card-link svg {
    transition: transform 0.2s ease;
}

.article-card-link:hover {
    gap: 10px;
}

.article-card-link:hover svg {
    transform: translateX(3px);
}

/* Articles grid layout */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 640px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================================================
   ENHANCED BUTTONS
   ========================================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    line-height: 1.5;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #2563eb 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(49, 130, 206, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, var(--accent) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border-color: var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(49, 130, 206, 0.05);
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-lg);
}

/* ============================================================================
   SECTION BACKGROUNDS
   ========================================================================= */

.section {
    padding: var(--space-4xl) 0;
}

.latest-articles {
    background: linear-gradient(180deg, var(--light-bg) 0%, var(--white) 100%);
    position: relative;
}

/* Subtle top border for section separation */
.latest-articles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.section-footer {
    text-align: center;
    margin-top: var(--space-2xl);
}

/* ============================================================================
   ENHANCED HEADER
   ========================================================================= */

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0;
}

.site-logo .logo-text {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: var(--font-bold);
    color: var(--primary);
    letter-spacing: 0.02em;
}

.site-logo .logo-tagline {
    font-size: 0.7rem;
    color: var(--text-light);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 2px;
}

.nav-link {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-medium);
    text-decoration: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: var(--space-md);
    right: var(--space-md);
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link.active {
    color: var(--accent);
    font-weight: var(--font-semibold);
}

/* ============================================================================
   ENHANCED FOOTER
   ========================================================================= */

.site-footer {
    background: linear-gradient(180deg, #1a202c 0%, #0f172a 100%);
    color: rgba(255, 255, 255, 0.9);
    border-top: 4px solid var(--accent);
}

.footer-brand .logo-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    color: white;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    margin-top: var(--space-xs);
}

.footer-bio-short {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-sm);
    line-height: 1.6;
    margin-top: var(--space-md);
}

.footer-newsletter-title {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: white;
    margin-bottom: var(--space-sm);
    margin-top: var(--space-lg);
}

.footer-heading {
    font-family: var(--font-serif);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: white;
    letter-spacing: 0.02em;
    margin-bottom: var(--space-md);
    position: relative;
    padding-bottom: var(--space-sm);
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.footer-links a {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
    display: inline-block;
    padding: 2px 0;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
    margin-top: var(--space-xl);
}

.footer-copyright {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================================================
   ENHANCED ABOUT PAGE
   ========================================================================= */

.about-hero {
    background: linear-gradient(145deg, #0f172a 0%, #1e3a5f 40%, #2c5282 70%, #3b6da8 100%);
    padding: var(--space-4xl) 0;
    text-align: center;
    position: relative;
}

.about-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), #d97706, var(--accent));
}

.about-hero h1 {
    font-size: var(--text-4xl);
    letter-spacing: 0.03em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    color: white;
}

@media (min-width: 768px) {
    .about-hero h1 {
        font-size: var(--text-5xl);
    }
}

.about-hero-subtitle {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: var(--space-sm);
}

/* Enhanced about sections */
.about-section {
    padding: var(--space-3xl) 0;
    border-bottom: 1px solid var(--border-light);
}

.about-section h2 {
    font-family: var(--font-serif);
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--text-dark);
    margin-bottom: var(--space-xl);
    text-align: center;
    position: relative;
}

.about-section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #d97706);
    margin: var(--space-md) auto 0;
    border-radius: 2px;
}

.about-content {
    max-width: 750px;
    margin: 0 auto;
}

.about-content p {
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: var(--space-lg);
}

/* Enhanced expertise grid */
.expertise-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.expertise-item {
    padding: var(--space-xl);
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.expertise-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent), #d97706);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.expertise-item:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.expertise-item:hover::before {
    transform: scaleY(1);
}

.expertise-item h4 {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

.expertise-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.expertise-item li {
    font-size: var(--text-base);
    color: var(--text-medium);
    padding: var(--space-xs) 0;
    padding-left: var(--space-lg);
    position: relative;
}

.expertise-item li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: var(--font-bold);
}

/* Enhanced research statement */
.research-statement {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-2xl);
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
    border-left: 4px solid;
    border-image: linear-gradient(180deg, var(--accent), #d97706) 1;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.research-statement p {
    font-size: var(--text-xl);
    font-style: italic;
    line-height: 1.7;
    color: var(--text-dark);
    margin: 0;
}

/* ============================================================================
   ENHANCED STATS DASHBOARD
   ========================================================================= */

.stats-dashboard {
    background: linear-gradient(180deg, var(--light-bg) 0%, var(--white) 100%);
    padding: var(--space-3xl) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    max-width: 800px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: var(--space-xl);
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #d97706);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(49, 130, 206, 0.1) 0%, rgba(49, 130, 206, 0.05) 100%);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    color: var(--accent);
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: var(--font-medium);
}

/* ============================================================================
   ENHANCED CONTACT CTA
   ========================================================================= */

.contact-cta {
    background: linear-gradient(145deg, #1e3a5f 0%, #2c5282 50%, #3b6da8 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #d97706, var(--accent));
}

.contact-cta-content {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
    padding: var(--space-3xl) 0;
}

.contact-cta h2 {
    font-family: var(--font-serif);
    font-size: var(--text-3xl);
    color: white;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.01em;
}

.contact-cta p {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.contact-cta .btn-primary {
    background: white;
    color: #1e3a5f;
    border-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-cta .btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.contact-cta .btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.contact-cta .btn-outline:hover {
    background: white;
    color: #1e3a5f;
    border-color: white;
}

/* ============================================================================
   ENHANCED NEWSLETTER MODAL
   ========================================================================= */

.newsletter-modal-content {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    max-width: 420px;
    width: 90%;
    position: relative;
    box-shadow: 
        0 20px 40px -10px rgba(0, 0, 0, 0.2),
        0 30px 60px -20px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-light);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.newsletter-modal-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(135deg, var(--accent), #2563eb);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.3);
}

.newsletter-modal-icon svg {
    color: white;
    width: 32px;
    height: 32px;
}

.newsletter-modal-title {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--text-dark);
    text-align: center;
    margin-bottom: var(--space-sm);
}

.newsletter-modal-description {
    font-size: var(--text-base);
    color: var(--text-medium);
    text-align: center;
    line-height: 1.6;
    margin-bottom: var(--space-xl);
}

.newsletter-modal-input {
    width: 100%;
    padding: var(--space-md);
    font-size: var(--text-base);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    transition: all 0.2s ease;
}

.newsletter-modal-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.1);
}

.newsletter-modal-submit {
    width: 100%;
    padding: var(--space-md);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    background: linear-gradient(135deg, var(--accent), #2563eb);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

.newsletter-modal-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 130, 206, 0.4);
}

.newsletter-modal-note {
    font-size: var(--text-sm);
    color: var(--text-light);
    text-align: center;
    margin-top: var(--space-md);
}

/* ============================================================================
   ENHANCED PAGE HEADER (Articles/Search)
   ========================================================================= */

.page-header {
    background: linear-gradient(180deg, var(--light-bg) 0%, var(--white) 100%);
    padding: var(--space-2xl) 0;
    border-bottom: 1px solid var(--border-light);
}

.page-header-title {
    font-family: var(--font-serif);
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

@media (min-width: 768px) {
    .page-header-title {
        font-size: var(--text-4xl);
    }
}

.page-header-subtitle {
    font-size: var(--text-lg);
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================================================
   ANIMATIONS & MICRO-INTERACTIONS
   ========================================================================= */

/* Fade in animation for cards */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation delays */
.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }
.fade-in:nth-child(6) { animation-delay: 0.6s; }

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

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: rgba(49, 130, 206, 0.2);
    color: var(--text-dark);
}

/* ============================================================================
   DARK MODE ENHANCEMENTS
   ========================================================================= */

[data-theme="dark"] {
    
    /* Hero in dark mode */
    .hero {
        background: linear-gradient(145deg, #0a0f1a 0%, #1e293b 40%, #334155 100%);
    }
    
    .hero::after {
        background: linear-gradient(90deg, 
            var(--accent) 0%, 
            #f59e0b 25%, 
            var(--accent) 50%, 
            #f59e0b 75%, 
            var(--accent) 100%);
    }
    
    /* Section headers in dark mode */
    .section-header h2 {
        color: var(--text-dark);
    }
    
    .section-header h2::after {
        background: linear-gradient(90deg, var(--accent), #f59e0b);
    }
    
    /* Featured article in dark mode */
    .featured-article-section {
        background: linear-gradient(180deg, var(--light-bg) 0%, var(--white) 100%);
    }
    
    .featured-article {
        background: var(--surface);
        border-color: var(--border-color);
        box-shadow: 
            0 4px 6px -1px rgba(0, 0, 0, 0.2),
            0 10px 20px -5px rgba(0, 0, 0, 0.25);
    }
    
    .featured-article::before {
        background: linear-gradient(90deg, var(--accent), #f59e0b, var(--accent));
    }
    
    .featured-article-title a {
        color: var(--text-dark);
        background: linear-gradient(180deg, transparent 85%, rgba(96, 165, 250, 0.2) 85%);
    }
    
    .featured-article-title a:hover {
        color: var(--accent);
    }
    
    /* Pillar cards in dark mode */
    .pillar-card {
        background: var(--surface);
        border-color: var(--border-color);
    }
    
    .pillar-card:hover {
        border-color: var(--accent);
        box-shadow: 
            0 10px 25px -5px rgba(0, 0, 0, 0.3),
            0 20px 40px -10px rgba(0, 0, 0, 0.25);
    }
    
    .pillar-card::before {
        background: linear-gradient(90deg, var(--accent), #f59e0b);
    }
    
    .pillar-card-icon {
        background: linear-gradient(135deg, var(--surface) 0%, var(--light-bg) 100%);
        border-color: var(--border-color);
    }
    
    .pillar-card-title {
        color: var(--text-dark);
    }
    
    .pillar-card-arrow {
        background: var(--surface);
    }
    
    .pillar-card:hover .pillar-card-arrow {
        background: var(--accent);
    }
    
    /* Article cards in dark mode */
    .article-card {
        background: var(--surface);
        border-color: var(--border-color);
    }
    
    .article-card:hover {
        box-shadow: 
            0 10px 25px -5px rgba(0, 0, 0, 0.25),
            0 20px 40px -10px rgba(0, 0, 0, 0.2);
    }
    
    .article-card-title a {
        color: var(--text-dark);
    }
    
    .article-category-badge {
        background: linear-gradient(135deg, rgba(96, 165, 250, 0.15) 0%, rgba(96, 165, 250, 0.08) 100%);
        border-color: rgba(96, 165, 250, 0.25);
    }
    
    /* Stats in dark mode */
    .stats-dashboard {
        background: linear-gradient(180deg, var(--light-bg) 0%, var(--white) 100%);
    }
    
    .stat-card {
        background: var(--surface);
        border-color: var(--border-color);
    }
    
    .stat-card:hover {
        box-shadow: var(--shadow-lg);
    }
    
    .stat-card::before {
        background: linear-gradient(90deg, var(--accent), #f59e0b);
    }
    
    .stat-icon {
        background: linear-gradient(135deg, rgba(96, 165, 250, 0.15) 0%, rgba(96, 165, 250, 0.08) 100%);
    }
    
    /* About page in dark mode */
    .about-hero {
        background: linear-gradient(145deg, #0a0f1a 0%, #1e293b 40%, #334155 100%);
    }
    
    .about-hero::after {
        background: linear-gradient(90deg, var(--accent), #f59e0b, var(--accent));
    }
    
    .about-section h2::after {
        background: linear-gradient(90deg, var(--accent), #f59e0b);
    }
    
    .expertise-item {
        background: var(--surface);
        border-color: var(--border-color);
    }
    
    .expertise-item:hover {
        border-color: var(--accent);
    }
    
    .expertise-item::before {
        background: linear-gradient(180deg, var(--accent), #f59e0b);
    }
    
    .research-statement {
        background: linear-gradient(135deg, var(--surface) 0%, var(--light-bg) 100%);
        border-image: linear-gradient(180deg, var(--accent), #f59e0b) 1;
    }
    
    /* Contact CTA in dark mode */
    .contact-cta {
        background: linear-gradient(145deg, #1e293b 0%, #334155 50%, #475569 100%);
    }
    
    .contact-cta::before {
        background: linear-gradient(90deg, var(--accent), #f59e0b, var(--accent));
    }
    
    /* Newsletter modal in dark mode */
    .newsletter-modal-content {
        background: var(--surface);
        border-color: var(--border-color);
    }
    
    .newsletter-modal-title {
        color: var(--text-dark);
    }
    
    .newsletter-modal-input {
        background: var(--light-bg);
        border-color: var(--border-color);
        color: var(--text-dark);
    }
    
    .newsletter-modal-input:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15);
    }
    
    /* Footer in dark mode */
    .site-footer {
        background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
        border-top-color: var(--accent);
    }
    
    /* Page header in dark mode */
    .page-header {
        background: linear-gradient(180deg, var(--surface) 0%, var(--white) 100%);
        border-bottom-color: var(--border-color);
    }
    
    /* Buttons in dark mode */
    .btn-primary {
        background: linear-gradient(135deg, var(--accent) 0%, #3b82f6 100%);
        box-shadow: 0 2px 8px rgba(96, 165, 250, 0.3);
    }
    
    .btn-primary:hover {
        box-shadow: 0 4px 15px rgba(96, 165, 250, 0.4);
    }
    
    .btn-outline {
        border-color: var(--border-color);
        color: var(--text-medium);
    }
    
    .btn-outline:hover {
        border-color: var(--accent);
        color: var(--accent);
        background: rgba(96, 165, 250, 0.1);
    }
    
    /* Selection in dark mode */
    ::selection {
        background: rgba(96, 165, 250, 0.3);
        color: var(--text-dark);
    }
}

/* ============================================================================
   RESPONSIVE REFINEMENTS
   ========================================================================= */

@media (max-width: 767px) {
    .hero {
        padding: var(--space-3xl) 0 var(--space-3xl);
    }
    
    .hero-title {
        font-size: 2.25rem;
        letter-spacing: 0.05em;
    }
    
    .hero-tagline {
        font-size: var(--text-sm);
        letter-spacing: 0.1em;
    }
    
    .hero-value-prop {
        font-size: var(--text-base);
    }
    
    .section-header h2 {
        font-size: var(--text-2xl);
    }
    
    .featured-article {
        padding: var(--space-lg);
    }
    
    .featured-article-title {
        font-size: var(--text-xl);
    }
    
    .pillar-card {
        padding: var(--space-lg);
    }
    
    .contact-cta-content {
        padding: var(--space-2xl) var(--space-md);
    }
    
    .contact-cta h2 {
        font-size: var(--text-2xl);
    }
}
