/* AIwared.org Custom CSS for Joomla - Bootstrap 5.3 Compatible */

/* ==========================================================================
   Typography System
   ========================================================================== */

/* Primary Heading - Hero/Main Title */
.aiw-h1 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

/* Section Headers */
.aiw-h2 {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: #1e293b;
    margin-bottom: 1rem;
}

/* Subsection Headers */
.aiw-h3 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

/* Paragraph Styles */
.aiw-para-large {
    font-size: 1.25rem;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.aiw-para-medium {
    font-size: 1.125rem;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.aiw-para-standard {
    font-size: 1rem;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.aiw-para-small {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.6;
}

/* Supporting/Tagline Text */
.aiw-supporting {
    font-size: 0.875rem;
    color: #64748b;
    font-style: italic;
}

/* ==========================================================================
   Badge System
   ========================================================================== */

.aiw-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.25rem;
    margin: 0.125rem;
}

/* Badge Color Variants */
.aiw-badge-blue {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.aiw-badge-green {
    background-color: #d1fae5;
    color: #059669;
}

.aiw-badge-yellow {
    background-color: #fef3c7;
    color: #d97706;
}

.aiw-badge-red {
    background-color: #fee2e2;
    color: #dc2626;
}

.aiw-badge-purple {
    background-color: #ede9fe;
    color: #7c3aed;
}

.aiw-badge-indigo {
    background-color: #e0e7ff;
    color: #4f46e5;
}

.aiw-badge-pink {
    background-color: #fce7f3;
    color: #db2777;
}

/* ==========================================================================
   Button System - Bootstrap 5 Enhanced
   ========================================================================== */

.aiw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

/* Primary Button */
.aiw-btn-primary {
    background-color: #3b82f6;
    color: white;
}

.aiw-btn-primary:hover {
    background-color: #2563eb;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.aiw-btn-primary:active {
    transform: translateY(0);
}

/* Outline Button */
.aiw-btn-outline {
    background-color: transparent;
    border: 1px solid #d1d5db;
    color: #374151;
}

.aiw-btn-outline:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
    color: #111827;
}

/* Button Sizes */
.aiw-btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.aiw-btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ==========================================================================
   Card System - Bootstrap 5 Enhanced
   ========================================================================== */

.aiw-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease-in-out;
    overflow: hidden;
}

.aiw-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.aiw-card-body {
    padding: 1.5rem;
}

.aiw-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

/* Card with Accent Border */
.aiw-card-accent {
    border-left: 4px solid;
    padding-left: 1rem;
}

.aiw-card-accent-green {
    border-left-color: #10b981;
}

.aiw-card-accent-blue {
    border-left-color: #3b82f6;
}

.aiw-card-accent-purple {
    border-left-color: #7c3aed;
}

.aiw-card-accent-yellow {
    border-left-color: #f59e0b;
}

.aiw-card-accent-red {
    border-left-color: #ef4444;
}

/* ==========================================================================
   Progress Bars
   ========================================================================== */

.aiw-progress {
    width: 100%;
    background-color: #e5e7eb;
    border-radius: 9999px;
    height: 0.5rem;
    overflow: hidden;
}

.aiw-progress-bar {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.3s ease-in-out;
}

/* Progress Bar Colors */
.aiw-progress-blue {
    background-color: #3b82f6;
}

.aiw-progress-green {
    background-color: #10b981;
}

.aiw-progress-yellow {
    background-color: #f59e0b;
}

.aiw-progress-red {
    background-color: #ef4444;
}

/* Progress Container with Label */
.aiw-progress-container {
    background-color: #f1f5f9;
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.aiw-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.aiw-progress-label-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: #475569;
}

.aiw-progress-label-value {
    font-size: 0.75rem;
    font-family: monospace;
    background-color: #e2e8f0;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
}

/* ==========================================================================
   Icon Circles
   ========================================================================== */

.aiw-icon-circle {
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Icon Circle Sizes */
.aiw-icon-sm {
    width: 2.5rem;
    height: 2.5rem;
}

.aiw-icon-md {
    width: 3rem;
    height: 3rem;
}

.aiw-icon-lg {
    width: 3.5rem;
    height: 3.5rem;
}

/* Icon Circle Colors */
.aiw-icon-blue {
    background-color: #dbeafe;
    color: #3b82f6;
}

.aiw-icon-green {
    background-color: #d1fae5;
    color: #10b981;
}

.aiw-icon-purple {
    background-color: #ede9fe;
    color: #7c3aed;
}

.aiw-icon-yellow {
    background-color: #fef3c7;
    color: #f59e0b;
}

.aiw-icon-red {
    background-color: #fee2e2;
    color: #ef4444;
}

/* ==========================================================================
   Lists
   ========================================================================== */

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

.aiw-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.aiw-list-icon {
    color: #10b981;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.aiw-list-text {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.5;
}

/* ==========================================================================
   Section Backgrounds
   ========================================================================== */

.aiw-section {
    padding: 4rem 0;
}

.aiw-section-white {
    background-color: #ffffff;
}

.aiw-section-gray {
    background-color: #f8fafc;
}

.aiw-section-gradient {
    background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
}

/* ==========================================================================
   Container
   ========================================================================== */

.aiw-container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

/* Spacing */
.aiw-mb-1 { margin-bottom: 0.25rem; }
.aiw-mb-2 { margin-bottom: 0.5rem; }
.aiw-mb-3 { margin-bottom: 0.75rem; }
.aiw-mb-4 { margin-bottom: 1rem; }
.aiw-mb-5 { margin-bottom: 1.25rem; }
.aiw-mb-6 { margin-bottom: 1.5rem; }

.aiw-mt-1 { margin-top: 0.25rem; }
.aiw-mt-2 { margin-top: 0.5rem; }
.aiw-mt-3 { margin-top: 0.75rem; }
.aiw-mt-4 { margin-top: 1rem; }
.aiw-mt-5 { margin-top: 1.25rem; }
.aiw-mt-6 { margin-top: 1.5rem; }

/* Text Alignment */
.aiw-text-center { text-align: center; }
.aiw-text-left { text-align: left; }
.aiw-text-right { text-align: right; }

/* Flexbox Utilities */
.aiw-flex { display: flex; }
.aiw-flex-wrap { flex-wrap: wrap; }
.aiw-items-center { align-items: center; }
.aiw-justify-between { justify-content: space-between; }
.aiw-gap-1 { gap: 0.25rem; }
.aiw-gap-2 { gap: 0.5rem; }
.aiw-gap-3 { gap: 0.75rem; }
.aiw-gap-4 { gap: 1rem; }

/* Grid */
.aiw-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.aiw-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

/* ==========================================================================
   Forum-Specific Styles
   ========================================================================== */

/* Gradient Backgrounds - Extended */
.aiw-gradient-violet-blue {
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
}

.aiw-gradient-violet-blue-cyan {
    background: linear-gradient(135deg, #f5f3ff 0%, #eff6ff 50%, #ecfeff 100%);
}

/* Gradient Text */
.aiw-text-gradient {
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Avatar Styles */
.aiw-avatar {
    border-radius: 50%;
    object-fit: cover;
}

.aiw-avatar-xs {
    width: 1.5rem;
    height: 1.5rem;
}

.aiw-avatar-sm {
    width: 2rem;
    height: 2rem;
}

.aiw-avatar-md {
    width: 2.5rem;
    height: 2.5rem;
}

/* Forum Category Items */
.aiw-category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.aiw-category-item:hover {
    background-color: #f1f5f9;
}

.aiw-category-item-active {
    background-color: #f3f0ff;
    border-left: 4px solid #8b5cf6;
}

/* Category Colors */
.aiw-category-violet {
    background-color: #f3f0ff;
    border-left-color: #8b5cf6;
}

.aiw-category-violet .aiw-icon {
    color: #8b5cf6;
}

.aiw-category-violet .aiw-text {
    color: #7c3aed;
}

.aiw-category-blue:hover {
    background-color: #eff6ff;
}

.aiw-category-cyan:hover {
    background-color: #ecfeff;
}

.aiw-category-emerald:hover {
    background-color: #ecfdf5;
}

.aiw-category-orange:hover {
    background-color: #fff7ed;
}

/* Forum Thread Card */
.aiw-thread-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.aiw-thread-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.aiw-thread-title-violet {
    color: #7c3aed;
}

.aiw-thread-title-blue {
    color: #2563eb;
}

.aiw-thread-title-cyan {
    color: #0891b2;
}

.aiw-thread-title-emerald {
    color: #059669;
}

.aiw-thread-title-orange {
    color: #ea580c;
}

/* Thread Meta Info */
.aiw-thread-meta {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
    gap: 1rem;
}

/* Featured Discussion Banner */
.aiw-featured-banner {
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    border-radius: 0.75rem;
    padding: 1.5rem;
    color: white;
    margin-bottom: 2rem;
}

.aiw-featured-banner h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.aiw-featured-banner p {
    color: #dbeafe;
    margin-bottom: 1rem;
}

/* Activity Indicators */
.aiw-activity {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
}

.aiw-activity-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* User Info */
.aiw-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.aiw-user-name {
    font-weight: 500;
    font-size: 0.875rem;
}

.aiw-user-role {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Count Pills */
.aiw-count-pill {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    background-color: #f3f4f6;
    color: #374151;
}

.aiw-count-pill-violet {
    background-color: #ede9fe;
    color: #7c3aed;
}

/* New Badge Colors for Forum */
.aiw-badge-violet {
    background-color: #ede9fe;
    color: #7c3aed;
}

.aiw-badge-cyan {
    background-color: #ecfeff;
    color: #0891b2;
}

.aiw-badge-emerald {
    background-color: #d1fae5;
    color: #059669;
}

.aiw-badge-orange {
    background-color: #fed7aa;
    color: #ea580c;
}

/* ==========================================================================
   Extended Icon Colors
   ========================================================================== */

.aiw-icon-violet {
    background-color: #ede9fe;
    color: #8b5cf6;
}

.aiw-icon-cyan {
    background-color: #ecfeff;
    color: #06b6d4;
}

.aiw-icon-emerald {
    background-color: #d1fae5;
    color: #10b981;
}

.aiw-icon-orange {
    background-color: #fed7aa;
    color: #f97316;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.aiw-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
}

.aiw-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
}

.aiw-logo-wrapper {
    display: flex;
    align-items: center;
}

.aiw-logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.375rem;
    background-color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 0.75rem;
}

.aiw-site-title {
    font-weight: 700;
    font-size: 1.125rem;
    color: #1e293b;
    margin: 0;
}

.aiw-site-tagline {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0;
}

/* Navigation Menu */
.aiw-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.aiw-nav-item {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: color 0.2s;
    text-decoration: none;
}

.aiw-nav-item:hover {
    color: #2563eb;
}

.aiw-nav-item-active {
    color: #2563eb;
}

.aiw-mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #374151;
    cursor: pointer;
    padding: 0.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.aiw-footer {
    background-color: #111827;
    color: white;
    padding: 3rem 0;
}

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

.aiw-footer-section h3 {
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 1rem;
}

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

.aiw-footer-list li {
    margin-bottom: 0.5rem;
}

.aiw-footer-link {
    font-size: 0.875rem;
    color: #9ca3af;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.aiw-footer-link:hover {
    color: white;
}

.aiw-footer-description {
    font-size: 0.875rem;
    color: #9ca3af;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.aiw-footer-bottom {
    border-top: 1px solid #374151;
    margin-top: 2rem;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aiw-footer-copyright {
    font-size: 0.875rem;
    color: #9ca3af;
}

.aiw-footer-legal {
    display: flex;
    gap: 1rem;
}

/* ==========================================================================
   Call to Action Section
   ========================================================================== */

.aiw-cta-section {
    background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
    border-top: 1px solid #e5e7eb;
    padding: 4rem 0;
}

.aiw-cta-content {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.aiw-cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
}

.aiw-cta-description {
    color: #374151;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.aiw-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   Social Media Icons
   ========================================================================== */

.aiw-social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.aiw-social-icon {
    color: #6b7280;
    font-size: 1.25rem;
    cursor: pointer;
    transition: color 0.2s;
}

.aiw-social-icon:hover {
    color: #2563eb;
}

/* ==========================================================================
   Responsive Design - Extended
   ========================================================================== */

@media (max-width: 768px) {
    .aiw-h1 { font-size: 1.875rem; }
    .aiw-h2 { font-size: 1.5rem; }
    .aiw-h3 { font-size: 1.25rem; }
    .aiw-para-large { font-size: 1.125rem; }
    .aiw-para-medium { font-size: 1rem; }
    
    .aiw-section { padding: 3rem 0; }
    .aiw-container { padding: 0 1rem; }
    
    .aiw-grid-3,
    .aiw-grid-2 {
        grid-template-columns: 1fr;
    }
    
    /* Mobile Navigation */
    .aiw-nav {
        display: none;
    }
    
    .aiw-mobile-menu-btn {
        display: block;
    }
    
    /* Mobile Footer */
    .aiw-footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .aiw-footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    /* Mobile CTA */
    .aiw-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}



/* Eric Dwight Martin CV - Refined CSS */

/* Override Joomla container padding for CV section */
#sp-main-body {
    padding: 0;
    background: #f7fafc !important;
}

/* Base resets */
.edm-cv-page * {
    box-sizing: border-box;
}

/* Main container - tighter spacing */
.edm-cv-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: #2d3748;
    background: #f7fafc;
}

.edm-cv-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Hero section - more compact */
.edm-cv-hero {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.edm-cv-hero-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.edm-cv-headshot {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 3px solid white;
    outline: 1px solid #e2e8f0;
}

.edm-cv-headshot:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.edm-cv-hero-text h1 {
    font-size: 2rem;
    color: #1a365d;
    margin: 0 0 0.25rem 0;
    font-weight: 700;
}

.edm-cv-evolution {
    color: #64748b;
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
}

/* Section styling - tighter */
.edm-cv-section {
    margin-bottom: 2rem;
}

.edm-cv-section-header {
    margin-bottom: 1rem;
}

.edm-cv-section-title {
    font-size: 1.5rem;
    color: #1a365d;
    border-bottom: 2px solid #e2e8f0;
    display: inline-block;
    padding-bottom: 0.25rem;
    margin: 0;
    font-weight: 700;
}

/* Card layouts - refined shadows and spacing */
.edm-cv-card {
    background: white;
    border-radius: 6px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.edm-cv-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.edm-cv-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.edm-cv-card p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.edm-cv-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

/* Special card backgrounds - subtle */
.edm-cv-military-card {
    background: linear-gradient(135deg, #fff 0%, #fef5f5 100%);
    border-color: #fecaca;
}

.edm-cv-police-card {
    background: linear-gradient(135deg, #fff 0%, #f0f7ff 100%);
    border-color: #bfdbfe;
}

/* Rank progression - cleaner layout */
.edm-cv-rank-progression {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.edm-cv-rank-timeline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

/* Rank items - refined styling */
.edm-cv-rank-item {
    text-align: center;
    cursor: pointer;
    padding: 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
    background: #f8fafc;
    width: 110px;
    height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
}

.edm-cv-rank-item:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e0;
}

.edm-cv-rank-item img {
    height: 40px;
    width: auto;
    margin-bottom: 0.25rem;
}

/* Badges - refined */
.edm-cv-meritorious-badge,
.edm-cv-selected-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 0.55rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 700;
    z-index: 3;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.edm-cv-meritorious-badge {
    background: #16a34a;
    color: white;
}

.edm-cv-selected-badge {
    background: #dc2626;
    color: white;
}

/* Medal items - refined */
.edm-cv-medal-item {
    text-align: center;
    cursor: pointer;
    padding: 0.75rem;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.edm-cv-medal-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: white;
    border-color: #cbd5e0;
}

.edm-cv-medal-item img {
    height: 40px;
    width: auto;
    margin-bottom: 0.25rem;
}

.edm-cv-medal-name {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.1rem;
}

.edm-cv-medal-desc {
    font-size: 0.75rem;
    color: #64748b;
}

/* Certification badges - modern pills */
.edm-cv-cert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.edm-cv-cert-badge {
    background: #1e293b;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.edm-cv-cert-badge:hover {
    background: #334155;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Document links - refined buttons */
.edm-cv-doc-link {
    display: inline-block;
    background: #f1f5f9;
    color: #334155;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid #e2e8f0;
}

.edm-cv-doc-link:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: translateY(-1px);
}

/* Research section - modern gradient */
.edm-cv-research-primary {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.edm-cv-research-primary::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(100px, -100px);
}

.edm-cv-research-primary h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.edm-cv-research-primary p {
    position: relative;
    z-index: 1;
    opacity: 0.95;
}

.edm-cv-research-primary a {
    display: inline-block;
    background: white;
    color: #1e293b;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

.edm-cv-research-primary a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* External links */
.edm-cv-external-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.edm-cv-external-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Button styles - modern */
.edm-cv-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.edm-cv-btn-outline {
    background: transparent;
    color: #334155;
    border: 1px solid #cbd5e0;
}

.edm-cv-btn-outline:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #1e293b;
}

/* Modal styles - refined */
.edm-cv-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    padding: 1rem;
    backdrop-filter: blur(5px);
}

.edm-cv-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.edm-cv-modal {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.edm-cv-modal-overlay.active .edm-cv-modal {
    transform: scale(1);
}

.edm-cv-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f1f5f9;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edm-cv-modal-close:hover {
    background: #e2e8f0;
    color: #334155;
}

.edm-cv-modal h3 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.edm-cv-modal iframe {
    width: 100%;
    height: 60vh;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: #f8fafc;
}

.edm-cv-modal img {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

/* Contact section refinements */
.edm-cv-card h3 {
    color: #1e293b;
}

/* MMP badge */
.edm-cv-mmp-badge {
    background: #e0e7ff;
    color: #4338ca;
    font-weight: 700;
}

/* Mobile responsive - tighter */
@media (max-width: 768px) {
    .edm-cv-container {
        padding: 1rem;
    }
    
    .edm-cv-hero {
        padding: 1.5rem;
    }
    
    .edm-cv-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .edm-cv-hero-text h1 {
        font-size: 1.75rem;
    }

    .edm-cv-rank-timeline {
        gap: 1rem;
    }
    
    .edm-cv-rank-item,
    .edm-cv-medal-item {
        width: 90px;
        height: 90px;
        padding: 0.5rem;
    }
    
    .edm-cv-rank-item img,
    .edm-cv-medal-item img {
        height: 30px;
    }

    .edm-cv-modal {
        padding: 1.5rem;
    }

    .edm-cv-modal iframe {
        height: 50vh;
    }
    
    .edm-cv-card {
        padding: 1.25rem;
    }
    
    .edm-cv-section {
        margin-bottom: 1.5rem;
    }
}

/* Print styles */
@media print {
    .edm-cv-modal-overlay {
        display: none;
    }
    
    .edm-cv-rank-item,
    .edm-cv-medal-item,
    .edm-cv-cert-badge,
    .edm-cv-doc-link {
        cursor: default;
    }
    
    .edm-cv-hero {
        break-inside: avoid;
    }
    
    .edm-cv-card {
        break-inside: avoid;
    }
}

/* Smooth animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.edm-cv-card {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

/* Stagger animation for grid items */
.edm-cv-card-grid .edm-cv-card:nth-child(1) { animation-delay: 0.1s; }
.edm-cv-card-grid .edm-cv-card:nth-child(2) { animation-delay: 0.2s; }
.edm-cv-card-grid .edm-cv-card:nth-child(3) { animation-delay: 0.3s; }
.edm-cv-card-grid .edm-cv-card:nth-child(4) { animation-delay: 0.4s; }
.edm-cv-card-grid .edm-cv-card:nth-child(5) { animation-delay: 0.5s; }
.edm-cv-card-grid .edm-cv-card:nth-child(6) { animation-delay: 0.6s; }