/**
 * Enhanced Candidate Profile Styles
 * Version: 2.5.0
 * Updated: 2025-08-17
 * 
 * Dependencies: mt-variables.css, mt-components.css
 * 
 * This file consolidates all candidate profile styles including:
 * - Hero sections
 * - Photo frames
 * - Social links
 * - Evaluation criteria
 * - Biography sections
 * - All fixes from candidate-profile-fixes.css and critical-fixes-2025.css
 */

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

.mt-enhanced-candidate-profile {
    margin: 0;
    padding: 0;
    background: var(--mt-bg-base);
}

/* Remove excessive top spacing */
.mt-candidate-enhanced {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.mt-candidate-hero,
.mt-hero-section {
    position: relative;
    display: flex;
    align-items: center;
    min-height: auto;
    max-height: 400px; /* Prevent excessive height */
    padding: 40px 0 30px; /* Optimized padding from fixes */
    overflow: hidden;
    background: linear-gradient(135deg, var(--mt-primary) 0%, var(--mt-secondary) 50%, var(--mt-accent) 100%);
}

/* Adjust for WordPress admin bar */
body.admin-bar .mt-candidate-hero,
body.admin-bar .mt-hero-section {
    margin-top: -32px;
    padding-top: 62px; /* 30px + 32px admin bar */
}

/* Single candidate template specific */
body.single-mt_candidate .mt-hero-section {
    padding-top: 40px;
}

.mt-hero-pattern {
    position: absolute;
    inset: 0;
    height: 100%;
    max-height: 400px;
    overflow: hidden;
    background-image:
        radial-gradient(circle at 20% 80%, rgb(255 255 255 / 10%) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgb(255 255 255 / 8%) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgb(255 255 255 / 5%) 0%, transparent 50%);
    opacity: 0.05; /* Reduce pattern visibility from critical fixes */
    animation: patternFloat 20s ease-in-out infinite;
}

@keyframes patternFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.mt-hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.mt-hero-content,
.mt-profile-header-enhanced {
    display: grid;
    align-items: center;
    grid-template-columns: 280px 1fr; /* Adjusted for smaller photo frame */
    padding: 15px 0;
    gap: 30px; /* Reduced gap from fixes */
}

/* ===================================
   PHOTO FRAME
   =================================== */

.mt-photo-frame {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 220px; /* Reduced size from fixes */
    height: 220px;
}

.mt-photo-border {
    position: relative;
    width: 220px; /* Reduced size from fixes */
    height: 220px;
    padding: 8px;
    background: linear-gradient(45deg, rgb(255 255 255 / 30%), rgb(255 255 255 / 10%));
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgb(0 0 0 / 30%),
        inset 0 1px 0 rgb(255 255 255 / 20%);
    transition: var(--mt-transition);
    backdrop-filter: blur(10px);
}

.mt-photo-border:hover {
    box-shadow: 
        0 30px 60px rgb(0 0 0 / 40%),
        inset 0 1px 0 rgb(255 255 255 / 30%);
    transform: translateY(-8px) scale(1.02);
}

.mt-candidate-hero-photo {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.mt-photo-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    font-size: 80px;
    color: rgb(255 255 255 / 30%);
    background: rgb(255 255 255 / 10%);
    border-radius: 12px;
}

.mt-photo-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgb(255 255 255 / 10%) 0%, transparent 70%);
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.mt-photo-frame:hover .mt-photo-glow {
    opacity: 1;
}

/* ===================================
   HERO INFORMATION
   =================================== */

.mt-hero-info {
    color: white;
}

.mt-hero-name,
.mt-profile-name-enhanced {
    margin: 0 0 10px;
    font-size: 2.8rem; /* Reduced size from fixes */
    font-weight: 700;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, rgb(255 255 255 / 80%) 100%);
    text-shadow: 0 4px 8px rgb(0 0 0 / 30%);
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mt-hero-title {
    margin-bottom: 25px;
    font-size: 1.4rem;
    font-weight: 500;
    opacity: 0.95;
}

.mt-hero-title .mt-separator {
    margin: 0 8px;
    opacity: 0.7;
}

.mt-hero-categories {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    gap: 12px;
}

.mt-category-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    background: rgb(255 255 255 / 15%);
    border: 1px solid rgb(255 255 255 / 20%);
    border-radius: 25px;
    transition: all 0.3s ease;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.mt-category-badge:hover {
    background: rgb(255 255 255 / 25%);
    transform: translateY(-2px);
}

.mt-category-badge i {
    font-size: 16px;
}

/* Social Links */
.mt-hero-social {
    display: flex;
    gap: 15px;
}

.mt-social-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    font-weight: 500;
    text-decoration: none;
    color: white;
    background: rgb(255 255 255 / 10%);
    border: 1px solid rgb(255 255 255 / 20%);
    border-radius: 30px;
    transition: all 0.3s ease;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.mt-social-link:hover {
    text-decoration: none;
    color: white;
    background: rgb(255 255 255 / 20%);
    transform: translateY(-2px);
}

.mt-social-link.linkedin:hover {
    background: rgb(0 119 181 / 80%);
}

.mt-social-link.website:hover {
    background: rgb(193 105 60 / 80%);
}

/* Main Content */
.mt-candidate-content {
    padding: 80px 0;
    background: var(--mt-bg-base);
}

.mt-content-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 60px;
}

.mt-content-main {
    min-width: 0;
}

/* Content Sections */
.mt-content-section {
    margin-bottom: 40px;
    padding: 40px;
    background: white;
    border: 1px solid var(--mt-blue-accent);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgb(0 0 0 / 8%);
    transition: all 0.3s ease;
}

.mt-content-section:hover {
    box-shadow: 0 8px 30px rgb(0 0 0 / 12%);
    transform: translateY(-2px);
}

.mt-section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--mt-blue-accent);
}

.mt-section-header i {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 52px;
    height: 52px;
    padding: 12px;
    font-size: 28px;
    color: var(--mt-accent);
    background: var(--mt-bg-beige);
    border-radius: 50%;
}

.mt-section-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--mt-primary);
}

.mt-section-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--mt-body-text);
}

.mt-section-content p {
    margin-bottom: 20px;
}

.mt-section-content p:last-child {
    margin-bottom: 0;
}

/* Innovation Summary Specific Styles */
.mt-innovation-summary {
    background: linear-gradient(135deg, var(--mt-bg-beige) 0%, var(--mt-blue-accent) 100%);
    border-left: 6px solid var(--mt-accent);
}

.mt-innovation-summary .mt-section-header i {
    color: var(--mt-accent);
    background: white;
}

/* Evaluation Criteria Grid */
.mt-criteria-grid {
    display: grid;
    gap: 25px;
}

.mt-criterion-card {
    position: relative;
    padding: 25px;
    overflow: hidden;
    background: var(--mt-bg-beige);
    border-radius: 12px;
    transition: all 0.3s ease;
    border-left: 6px solid var(--mt-blue-accent);
}

.mt-criterion-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, var(--mt-blue-accent) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    content: '';
}

.mt-criterion-card:hover {
    box-shadow: 0 8px 20px rgb(0 0 0 / 10%);
    transform: translateX(5px);
}

.mt-criterion-card:hover::before {
    opacity: 1;
}

.mt-criterion-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.mt-criterion-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    font-size: 24px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
}

.mt-criterion-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--mt-primary);
}

.mt-criterion-content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--mt-body-text);
}

/* Biography Section */
.mt-biography {
    border-left: 6px solid var(--mt-secondary);
}

.mt-biography .mt-section-header i {
    color: var(--mt-secondary);
}

/* Placeholder Notice */
.mt-placeholder-notice {
    padding: 60px 40px;
    text-align: center;
    background: linear-gradient(135deg, var(--mt-bg-beige) 0%, var(--mt-blue-accent) 100%);
    border: 2px dashed var(--mt-secondary);
    border-radius: 16px;
}

.mt-notice-icon {
    margin-bottom: 20px;
    font-size: 64px;
    color: var(--mt-secondary);
}

.mt-notice-content h3 {
    margin: 0 0 15px;
    font-size: 24px;
    font-weight: 600;
    color: var(--mt-primary);
}

.mt-notice-content p {
    max-width: 500px;
    margin: 0;
    margin-right: auto;
    margin-left: auto;
    font-size: 16px;
    color: var(--mt-body-text);
}

/* Sidebar Styles */
.mt-content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mt-sidebar-widget {
    padding: 30px;
    background: white;
    border: 1px solid var(--mt-blue-accent);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgb(0 0 0 / 8%);
    transition: all 0.3s ease;
}

.mt-sidebar-widget:hover {
    box-shadow: 0 8px 30px rgb(0 0 0 / 12%);
    transform: translateY(-2px);
}

.mt-widget-title {
    display: flex;
    align-items: center;
    margin: 0 0 20px;
    padding-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    color: var(--mt-primary);
    gap: 12px;
    border-bottom: 2px solid var(--mt-blue-accent);
}

.mt-widget-title i {
    font-size: 20px;
    color: var(--mt-accent);
}

/* Quick Facts */
.mt-fact-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mt-fact-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mt-fact-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--mt-secondary);
}

.mt-fact-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--mt-body-text);
}

/* Evaluation CTA */
.mt-evaluation-cta {
    color: white;
    background: linear-gradient(135deg, var(--mt-primary) 0%, var(--mt-secondary) 100%);
    border: none;
}

.mt-evaluation-cta .mt-widget-title {
    color: white;
    border-bottom-color: rgb(255 255 255 / 30%);
}

.mt-evaluation-cta .mt-widget-title i {
    color: rgb(255 255 255 / 90%);
}

.mt-cta-description {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
}

.mt-cta-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 12px 24px;
    font-weight: 600;
    text-decoration: none;
    color: white;
    background: rgb(255 255 255 / 15%);
    border: 1px solid rgb(255 255 255 / 20%);
    border-radius: 30px;
    transition: all 0.3s ease;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.mt-cta-button:hover {
    text-decoration: none;
    color: white;
    background: rgb(255 255 255 / 25%);
    transform: translateY(-2px);
}

/* Navigation Widget */
.mt-nav-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mt-nav-link {
    display: flex;
    align-items: center;
    padding: 15px;
    text-decoration: none;
    color: var(--mt-body-text);
    background: var(--mt-bg-beige);
    border: 1px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
    gap: 12px;
}

.mt-nav-link:hover {
    text-decoration: none;
    color: var(--mt-primary);
    background: var(--mt-blue-accent);
    border-color: var(--mt-secondary);
    transform: translateX(5px);
}

.mt-nav-link i {
    font-size: 18px;
    color: var(--mt-secondary);
}

.mt-nav-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
}

.mt-nav-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--mt-secondary);
}

.mt-nav-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--mt-body-text);
}

.mt-nav-link:hover .mt-nav-title {
    color: var(--mt-primary);
}

.mt-nav-all {
    justify-content: center;
    font-weight: 600;
    color: white;
    background: #084452;
    border: 2px solid #084452;
}

.mt-nav-all:hover {
    color: white;
    background: #00694E;
    border-color: #00694E;
    transform: translateY(-2px);
}

.mt-nav-all i {
    color: white !important;
}

/* Responsive Design */
@media (width <= 1024px) {
    .mt-content-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .mt-content-sidebar {
        order: -1;
    }
    
    .mt-sidebar-widget {
        padding: 25px;
    }
}

@media (width <= 768px) {
    .mt-candidate-hero {
        min-height: auto;
        padding: 60px 0;
    }
    
    .mt-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .mt-photo-border {
        width: 220px;
        height: 220px;
    }
    
    .mt-hero-name {
        font-size: 2.5rem;
    }
    
    .mt-hero-title {
        font-size: 1.2rem;
    }
    
    .mt-hero-categories {
        justify-content: center;
    }
    
    .mt-hero-social {
        justify-content: center;
    }
    
    .mt-candidate-content {
        padding: 60px 0;
    }
    
    .mt-content-container {
        padding: 0 15px;
    }
    
    .mt-content-section {
        padding: 30px 20px;
    }
    
    .mt-section-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .mt-sidebar-widget {
        padding: 20px;
    }
}

@media (width <= 480px) {
    .mt-hero-container {
        padding: 0 15px;
    }
    
    .mt-photo-border {
        width: 180px;
        height: 180px;
    }
    
    .mt-hero-name {
        font-size: 2rem;
    }
    
    .mt-hero-title {
        font-size: 1rem;
    }
    
    .mt-category-badge,
    .mt-social-link {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
    
    .mt-content-section {
        margin-bottom: 25px;
        padding: 25px 15px;
    }
    
    .mt-section-header h2 {
        font-size: 20px;
    }
    
    .mt-criterion-card {
        padding: 20px;
    }
    
    .mt-criterion-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .mt-nav-link {
        padding: 12px;
    }
    
    .mt-nav-text {
        text-align: center;
    }
}

/* Animation Enhancements */
.mt-enhanced-candidate-profile {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.mt-content-section {
    animation: slideInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.mt-content-section:nth-child(1) { animation-delay: 0.1s; }
.mt-content-section:nth-child(2) { animation-delay: 0.2s; }
.mt-content-section:nth-child(3) { animation-delay: 0.3s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.mt-sidebar-widget {
    animation: slideInRight 0.6s ease-out;
    animation-fill-mode: both;
}

.mt-sidebar-widget:nth-child(1) { animation-delay: 0.4s; }
.mt-sidebar-widget:nth-child(2) { animation-delay: 0.5s; }
.mt-sidebar-widget:nth-child(3) { animation-delay: 0.6s; }

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Print Styles */
@media print {
    .mt-candidate-hero {
        padding: 20px 0 !important;
        color: black !important;
        background: white !important;
    }
    
    .mt-hero-name {
        color: black !important;
    }
    
    .mt-content-section {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        break-inside: avoid;
    }
    
    .mt-sidebar-widget {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
    
    .mt-photo-border {
        border: 2px solid #ddd !important;
        box-shadow: none !important;
    }
}

/* Biography section styling - Added v2.4.1 */
.mt-candidate-biography {
    margin-top: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.mt-candidate-biography h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.mt-bio-content {
    line-height: 1.6;
    color: #555;
}

.mt-bio-content p {
    margin-bottom: 1em;
}

.mt-bio-content p:last-child {
    margin-bottom: 0;
}

/* Social links styling - Added v2.4.1 */
.mt-candidate-links {
    display: flex;
    flex-wrap: wrap;
    margin-top: 15px;
    gap: 10px;
}

.mt-link-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    font-size: 14px;
    text-decoration: none;
    color: white;
    background: #0073aa;
    border-radius: 4px;
    transition: background 0.3s, transform 0.2s;
    gap: 5px;
}

.mt-link-button:hover {
    text-decoration: none;
    color: white;
    background: #005a87;
    transform: translateY(-2px);
}

.mt-link-button .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 18px;
}

/* Ensure links work well in evaluation form */
.mt-evaluation-page .mt-candidate-links {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.mt-evaluation-page .mt-candidate-biography {
    margin: 20px 0;
    padding: 25px;
    background: white;
    border: 1px solid #e5e7eb;
}

/* ===================================
   CONSOLIDATED FIXES FROM candidate-profile-fixes.css
   =================================== */

/* Fix LinkedIn and website icons */
.mt-social-link .dashicons-linkedin::before,
.mt-link-button .dashicons-linkedin::before {
    font-family: Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    content: "in" !important;
}

.mt-social-link .dashicons-admin-site::before {
    content: "\f319" !important;
}

/* Ensure dashicons are properly loaded */
.mt-social-link .dashicons,
.mt-candidate-links .dashicons {
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    font-family: dashicons !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-align: center !important;
    text-transform: none !important;
    text-decoration: inherit !important;
    font-style: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    vertical-align: middle !important;
}

/* Unicode fallbacks for missing icons */
.mt-social-link.linkedin .dashicons:empty::before {
    content: "🔗" !important;
    font-family: inherit !important;
}

.mt-social-link.website .dashicons:empty::before {
    content: "🌐" !important;
    font-family: inherit !important;
}

/* Pull content section up with rounded corners */
.mt-content-section {
    position: relative !important;
    z-index: 2 !important;
    margin-top: -30px !important;
    padding-top: 35px !important;
    background: #f8f9fa !important;
    border-radius: 30px 30px 0 0 !important;
}

/* Fix text formatting in evaluation criteria */
.mt-criterion-content {
    font-size: 0.95rem !important;
    line-height: 1.8 !important;
    color: #4b5563 !important;
    white-space: pre-line !important;
    overflow-wrap: break-word !important;
}

.mt-criterion-content p {
    margin: 0 0 1rem !important;
    line-height: 1.8 !important;
}

.mt-criterion-content p:last-child {
    margin-bottom: 0 !important;
}

/* ===================================
   CONSOLIDATED FIXES FROM critical-fixes-2025.css
   =================================== */

/* Restore evaluation form sliders */
.mt-criterion-evaluation .mt-score-buttons {
    display: none !important;
}

.mt-criterion-evaluation .mt-score-slider-container {
    display: block !important;
    margin: 15px 0 !important;
}

.mt-criterion-evaluation input[type="range"],
.mt-score-slider {
    display: block !important;
    width: 100% !important;
    height: 8px !important;
    margin: 10px 0 !important;
    background: #ddd !important;
    border-radius: 5px !important;
    opacity: 1 !important;
    transition: opacity 0.2s !important;
    appearance: none !important;
    outline: none !important;
}

.mt-score-slider::-webkit-slider-thumb {
    width: 25px !important;
    height: 25px !important;
    background: var(--mt-success) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    appearance: none !important;
}

.mt-score-slider::-moz-range-thumb {
    width: 25px !important;
    height: 25px !important;
    background: var(--mt-success) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
}

.mt-score-display {
    display: inline-block !important;
    margin-left: 10px !important;
    font-size: 1.1em !important;
    font-weight: 700 !important;
    color: #333 !important;
}

/* Fix empty biography sections */
.mt-bio-content:empty::before {
    content: "No biography available for this candidate." !important;
    color: #999 !important;
    font-style: italic !important;
}

/* Optimize spacing */
.mt-overview-section {
    padding: 30px !important;
}

.mt-section-heading {
    margin-bottom: 15px !important;
    font-size: 1.6rem !important;
}

.mt-criteria-grid {
    gap: 20px !important;
}

/* ===================================
   MOBILE FIXES FOR CONTENT CUTOFF - v2.5.27
   =================================== */

/* Fix for mobile candidate cards content being cut off */
@media (width <= 768px) {
    /* Ensure sidebar widgets and quick facts sections auto-expand */
    .mt-sidebar-widget.mt-quick-facts,
    .mt-quick-overview,
    .mt-sidebar-card,
    .mt-sidebar-widget {
        height: auto !important;
        min-height: auto !important;
        padding-bottom: 30px !important;
        overflow: visible !important;
    }
    
    /* Extra padding for last item to prevent cutoff */
    .mt-quick-facts li:last-child,
    .mt-fact-item:last-child {
        margin-bottom: 0 !important;
        padding-bottom: 20px !important;
    }
    
    /* Ensure containers allow content to expand */
    .mt-content-sidebar,
    .mt-sidebar {
        height: auto !important;
        overflow: visible !important;
    }
    
    /* Fix for any fixed height containers on mobile */
    [class*="mt-candidate"] {
        min-height: auto !important;
        overflow: visible !important;
    }
}

/* Additional fixes for very small screens */
@media (width <= 480px) {
    .mt-sidebar-widget,
    .mt-sidebar-card {
        padding: 20px 20px 35px !important;
    }
    
    /* Ensure award year and all fields are visible */
    .mt-quick-facts,
    .mt-fact-list {
        padding-bottom: 15px !important;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    .mt-candidate-hero,
    .mt-hero-section {
        min-height: auto !important;
        padding: 10px 0 !important;
    }
    
    .mt-hero-pattern {
        display: none;
    }
    
    .mt-photo-frame,
    .mt-photo-border {
        width: 150px !important;
        height: 150px !important;
        box-shadow: none;
    }
    
    .mt-content-section {
        margin-top: 0;
        box-shadow: none;
    }
    
    .mt-sidebar {
        display: none;
    }
}

