/* Custom CSS for Alfredo Cisneros Portfolio */

/* Base Styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 80px; /* Compensate for fixed header */
}

/* Adjust padding on mobile if needed */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
}

/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

/* Disabled filter options */
select option:disabled {
    color: #9ca3af;
    background-color: #f3f4f6;
    font-style: italic;
    cursor: not-allowed;
}

select option:disabled:hover {
    background-color: #f3f4f6;
}

/* Line Clamp Utilities */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    padding-bottom: 2px;
    margin-bottom: 0;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    padding-bottom: 2px;
    margin-bottom: 0;
}

/* Case Studies Styles */
.case-study-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.case-study-image {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

/* Estilos para layout alternado */
.case-study-item:nth-child(even) .case-study-image-container {
    border-radius: 0 1rem 1rem 0;
}

.case-study-item:nth-child(odd) .case-study-image-container {
    border-radius: 1rem 0 0 1rem;
}

/* Responsive: en móviles siempre imagen arriba */
@media (max-width: 768px) {
    .case-study-item .case-study-image-container {
        border-radius: 1rem 1rem 0 0 !important;
    }
}

/* Animaciones de scroll reveal y shadow */
.case-study-item:not(.revealed) {
    opacity: 0 !important;
    transform: translateY(50px) !important;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

.case-study-item.revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

/* Shadow en hover */
.case-study-item:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Smart Header Styles */
#main-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    --blur-intensity: 12px;
    --header-opacity: 0.15;
    backdrop-filter: blur(var(--blur-intensity)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--blur-intensity)) saturate(180%);
    background-color: rgba(255, 255, 255, var(--header-opacity));
    transition: backdrop-filter 0.3s ease,
               background-color 0.3s ease;
    transform: translateY(0) !important;
    opacity: 1 !important;
}

#main-header.scrolled {
    --blur-intensity: 16px;
    --header-opacity: 0.25;
    backdrop-filter: blur(var(--blur-intensity)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--blur-intensity)) saturate(180%);
    background-color: rgba(255, 255, 255, var(--header-opacity));
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

/* Enhanced text contrast for better visibility */
#main-header a,
#main-header button {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

#main-header .text-gray-800 {
    color: #1f2937 !important;
    font-weight: 500;
}

#main-header .text-primary-600 {
    color: #0ea5e9 !important;
    font-weight: 600;
}

/* Header is always visible - no hidden state needed */

#main-header.header-visible {
    /* Header is always visible */
    pointer-events: auto;
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(1px)) {
    #main-header {
        background-color: rgba(255, 255, 255, 0.95);
    }
    
    #main-header.scrolled {
        background-color: rgba(255, 255, 255, 0.98);
    }
}

/* Typography Enhancements */
.text-balance {
    text-wrap: balance;
}

/* ========================================
   UIKit Standard - Based on Homepage Design
   ======================================== */

/* Primary Button - Dark Gradient (Main CTA) - High Specificity */
a.btn-primary,
button.btn-primary,
.btn-primary {
    background: linear-gradient(to right, #111827, #374151) !important;
    background-color: #111827 !important;
    color: white !important;
    padding: 1rem 2rem !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 500 !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

.btn-primary:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Secondary Button - Light Border (Secondary CTA) - High Specificity */
a.btn-secondary,
button.btn-secondary,
.btn-secondary {
    border: 2px solid #d1d5db !important;
    color: #374151 !important;
    padding: 1rem 2rem !important;
    border-radius: 0.75rem !important;
    background: transparent !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

.btn-secondary:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

/* White Button - For Dark Backgrounds (Hero CTA) */
.btn-white {
    background: white;
    color: #111827;
    padding: 1.25rem 3rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-white:hover {
    background-color: #f3f4f6;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Ghost Button - For Dark Backgrounds (Footer CTA) */
.btn-ghost-dark {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1.25rem 3rem;
    border-radius: 0.75rem;
    background: transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    text-decoration: none;
}

.btn-ghost-dark:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Large Secondary Button - For Section CTAs */
.btn-secondary-lg {
    border: 2px solid #d1d5db;
    color: #374151;
    padding: 1rem 2.5rem;
    border-radius: 0.75rem;
    background: transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

.btn-secondary-lg:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.btn-ghost {
    @apply text-gray-700 hover:text-primary-600 hover:bg-gray-50 px-4 py-2 rounded-md font-medium transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2;
}

/* Card Styles */
.card {
    @apply bg-white rounded-xl shadow-sm border border-gray-200 p-6 transition-all duration-200 hover:shadow-md hover:border-gray-300;
}

.card-hover {
    @apply transform hover:-translate-y-1 transition-all duration-200;
}

/* Gradient Backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

/* Force gray gradient for contact CTA section */
section.bg-gradient-to-br.from-gray-900.via-gray-800.to-gray-900 {
    background: linear-gradient(135deg, #111827 0%, #1f2937 50%, #111827 100%) !important;
}


.gradient-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.gradient-hero {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading States */
.loading {
    @apply animate-pulse;
}

.skeleton {
    @apply bg-gray-200 rounded animate-pulse;
}

/* Form Styles */
.form-input {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-primary-500 transition-colors duration-200 bg-white;
}

.form-textarea {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-primary-500 transition-colors duration-200 bg-white resize-vertical min-h-[120px];
}

.form-label {
    @apply block text-sm font-medium text-gray-700 mb-2;
}

.form-error {
    @apply text-red-600 text-sm mt-1;
}

.form-success {
    @apply text-green-600 text-sm mt-1;
}

/* Navigation Enhancements */
.nav-link {
    @apply relative transition-colors duration-200;
}

.nav-link::after {
    content: '';
    @apply absolute bottom-0 left-0 w-0 h-0.5 bg-primary-600 transition-all duration-200;
}

.nav-link:hover::after,
.nav-link.active::after {
    @apply w-full;
}

/* Hero Section Styles */
.hero-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(2, 132, 199, 0.1) 0%, transparent 50%);
}

/* Interview Chat Styles */
.chat-container {
    @apply bg-white rounded-xl shadow-lg border border-gray-200 overflow-hidden;
}

.chat-message {
    @apply p-4 border-b border-gray-100 last:border-b-0;
}

.chat-message.user {
    @apply bg-gray-50;
}

.chat-message.assistant {
    @apply bg-white;
}

.chat-input {
    @apply w-full px-4 py-3 border-t border-gray-200 focus:outline-none focus:ring-2 focus:ring-primary-500;
}

.typing-indicator {
    @apply flex items-center space-x-1 text-gray-500;
}

.typing-dot {
    @apply w-2 h-2 bg-gray-400 rounded-full animate-bounce;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.1s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.2s;
}

/* Responsive Utilities */
@media (max-width: 640px) {
    .container-mobile {
        @apply px-4;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .card {
        @apply shadow-none border border-gray-300;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .card {
        @apply border-2 border-gray-800;
    }
    
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support (for future implementation) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here when needed */
}

/* Custom Utilities */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.backdrop-blur-custom {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Experience Timeline Styles */
#experience-timeline {
    position: relative;
    padding-bottom: 2rem;
}

/* Company Logo Styles - Layout: Company First, Role Below */
.company-logo-container {
    transition: all 0.3s ease;
    position: relative;
}

.company-logo-container:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.company-logo-container img {
    transition: all 0.3s ease;
    filter: grayscale(15%);
}

.company-logo-container:hover img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Company info hover effects */
.company-logo-container + div {
    transition: transform 0.2s ease;
}

.company-logo-container:hover + div {
    transform: translateX(2px);
}

#timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 2px;
    background: linear-gradient(to bottom, 
        #FCFCFC 0%,
        #FCFCFC 6.5%,
        #e5e7eb 6.5%,
        #e5e7eb 94%,
        #FCFCFC 94%,
        #FCFCFC 100%
    ) !important;
    border-radius: 2px;
    transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    /* Allow inline styles to override */
    height: unset !important;
}

#timeline-dotted {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 4px;
    z-index: 1;
    /* Allow inline styles to override */
    height: unset !important;
    bottom: unset !important;
}

.experience-item {
    position: relative;
    z-index: 2;
    min-height: 200px;
    margin-bottom: 4rem;
}

/* Ensure timeline container expands with content */
.experience-timeline-container {
    overflow: visible;
    position: relative;
}

/* Timeline dots */
.experience-item .w-6.h-6 {
    position: relative;
    z-index: 3;
    box-shadow: 0 0 0 4px white, 0 0 0 8px rgba(14, 165, 233, 0.2);
}

/* Smooth transitions for timeline items */
.experience-item {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.experience-item.hidden {
    opacity: 0;
    transform: translateY(20px);
}

.experience-item:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
}

/* Phosphor Icons Integration */
.ph {
    display: inline-block;
    vertical-align: middle;
}

/* Loading Spinner */
.spinner {
    @apply inline-block w-4 h-4 border-2 border-gray-300 border-t-primary-600 rounded-full animate-spin;
}

/* Toast Notifications */
.toast {
    @apply fixed top-4 right-4 bg-white border border-gray-200 rounded-lg shadow-lg p-4 z-50 transform transition-all duration-300;
}

.toast.success {
    @apply border-green-200 bg-green-50;
}

.toast.error {
    @apply border-red-200 bg-red-50;
}

.toast.show {
    @apply translate-x-0 opacity-100;
}

.toast.hide {
    @apply translate-x-full opacity-0;
}

/* Article grid improvements */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
    padding-bottom: 6px;
    margin-bottom: 0;
    max-height: calc(1.6em * 3 + 6px);
}

.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
    padding-bottom: 6px;
    margin-bottom: 0;
    max-height: calc(1.6em * 4 + 6px);
}

.line-clamp-5 {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
    padding-bottom: 6px;
    margin-bottom: 0;
    max-height: calc(1.6em * 5 + 6px);
}

.line-clamp-6 {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
    padding-bottom: 6px;
    margin-bottom: 0;
    max-height: calc(1.6em * 6 + 6px);
}

/* Article excerpt specific styling to prevent descender clipping */
.article-item .line-clamp-3 {
    line-height: 1.6;
    padding-bottom: 6px;
    margin-bottom: 0;
    max-height: calc(1.6em * 3 + 6px);
    position: relative;
}

/* Alternative approach: Use a more generous line-height and padding */
.article-item p.line-clamp-3 {
    line-height: 1.7;
    padding-bottom: 8px;
    max-height: calc(1.6em * 3 + 8px);
    /* Keep webkit line clamp for ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Article excerpt 4-line styling with proper ellipsis */
.article-item p.line-clamp-4 {
    line-height: 1.7;
    padding-bottom: 8px;
    max-height: calc(1.6em * 4 + 8px);
    /* Keep webkit line clamp for ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Title specific styling for better 3-line display */
.article-item h3 {
    line-height: 1.4;
    max-height: calc(1.6em * 3);
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Ensure excerpts are visible and stable */
.article-item p {
    display: block;
    line-height: 1.5;
    transition: none;
}

/* Ensure content stability */
.article-item .article-content {
    transition: none;
}

.article-item h3 {
    transition: none;
}

/* Ensure Medium icon uses correct color */
.ph-medium-logo {
    color: inherit !important;
}

/* ========================================
   ENHANCED NAVIGATION STYLES
   ======================================== */

/* Header Base Styles */
#main-header {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5) !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
}

/* Navigation Links - Desktop */
.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    margin: 0 4px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 48px;
    box-sizing: border-box;
    text-shadow: none !important;
    box-shadow: none !important;
}

.nav-link-text {
    color: #374151;
    transition: color 0.2s ease;
    text-shadow: none !important;
}

.nav-link-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #3b82f6;
    border-radius: 1px;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

/* Active State */
.nav-link-active {
    background: transparent;
}

.nav-link-active .nav-link-text {
    color: #374151;
    font-weight: 600;
}

.nav-link-active .nav-link-indicator {
    width: 80%;
    /* Color will be set dynamically by JavaScript based on page */
}

/* Hover State */
.nav-link-inactive:hover {
    background: transparent;
}

.nav-link-inactive:hover .nav-link-text {
    color: #374151;
}

.nav-link-inactive:hover .nav-link-indicator {
    width: 0;
}

/* Language Switcher */
.language-switcher {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-shadow: none !important;
    box-shadow: none !important;
}

.language-switcher-content {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(229, 231, 235, 0.6);
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #374151;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    text-shadow: none !important;
    box-shadow: none !important;
}

.language-switcher:hover .language-switcher-content {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(59, 130, 246, 0.3);
    color: #1d4ed8;
}

/* Language Dropdown */
.language-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    width: 200px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s ease;
    z-index: 50;
    overflow: hidden;
}

/* Add invisible bridge to prevent gap */
.language-switcher::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 8px;
    background: transparent;
    z-index: 49;
}

.language-dropdown-open {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
}

.language-dropdown-content {
    padding: 8px;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    opacity: 0;
    transform: translateY(8px);
    margin-bottom: 4px;
}

.language-option-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.language-option-current {
    background: rgba(59, 130, 246, 0.1);
    color: #1d4ed8;
    font-weight: 600;
}

.language-option-inactive {
    color: #6b7280;
}

.language-option-inactive:hover {
    background: rgba(59, 130, 246, 0.05);
    color: #1d4ed8;
}

.language-flag {
    font-size: 18px;
}

.language-name {
    flex: 1;
}

.language-check {
    color: #1d4ed8;
    font-size: 16px;
}

/* Mobile Menu Button - Hidden on desktop */
.mobile-menu-button {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(229, 231, 235, 0.6);
    border-radius: 8px;
    color: #374151;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    text-shadow: none !important;
    box-shadow: none !important;
}

/* Show mobile menu button only on mobile */
@media (max-width: 768px) {
    .mobile-menu-button {
        display: flex;
    }
}

.mobile-menu-button:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(59, 130, 246, 0.3);
    color: #1d4ed8;
}

.mobile-menu-icon,
.mobile-menu-close {
    font-size: 20px;
    transition: all 0.2s ease;
}

/* Mobile Navigation - Hidden on desktop */
.mobile-navigation {
    max-height: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(229, 231, 235, 0.5);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    display: none;
}

/* Show mobile navigation only on mobile */
@media (max-width: 768px) {
    .mobile-navigation {
        display: block;
    }
}

.mobile-navigation-open {
    max-height: 400px !important;
}

.mobile-navigation-closed {
    max-height: 0 !important;
}

.mobile-navigation-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.2s ease;
}

.mobile-nav-text {
    color: #374151;
    transition: color 0.2s ease;
    text-shadow: none !important;
}

.mobile-nav-indicator {
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 2px;
    background: #3b82f6;
    border-radius: 1px;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.mobile-nav-link-active {
    background: transparent;
}

.mobile-nav-link-active .mobile-nav-text {
    color: #374151;
    font-weight: 600;
}

.mobile-nav-link-active .mobile-nav-indicator {
    width: 4px;
    /* Color will be set dynamically by JavaScript based on page */
}

.mobile-nav-link-inactive:hover {
    background: rgba(107, 114, 128, 0.08);
}

.mobile-nav-link-inactive:hover .mobile-nav-text {
    color: #374151;
}

.mobile-nav-link-inactive:hover .mobile-nav-indicator {
    width: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .nav-link {
        padding: 10px 16px;
        font-size: 14px;
        min-height: 44px;
    }
    
    .language-switcher-content {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .mobile-menu-button {
        width: 44px;
        height: 44px;
    }
}

/* Focus States for Accessibility */
.nav-link:focus,
.language-switcher:focus,
.mobile-menu-button:focus,
.mobile-nav-link:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Remove all text shadows and box shadows from navigation */
#main-header * {
    text-shadow: none !important;
    box-shadow: none !important;
}

#main-header .nav-link,
#main-header .nav-link-text,
#main-header .language-switcher,
#main-header .language-switcher-content,
#main-header .mobile-menu-button,
#main-header .mobile-nav-link,
#main-header .mobile-nav-text,
#main-header .profile-image-container,
#main-header .profile-image-container > div {
    text-shadow: none !important;
    box-shadow: none !important;
}

/* Prevent word breaking in Spanish and Portuguese navigation */
.nav-link-text,
.language-switcher-content span,
.mobile-nav-text {
    white-space: nowrap;
    word-break: keep-all;
    hyphens: none;
}

/* Ensure navigation items don't break words */
.nav-link,
.mobile-nav-link {
    white-space: nowrap;
    word-break: keep-all;
    hyphens: none;
}

/* Simple equal height cards */
.article-item,
.case-study-item {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

/* Ensure case study items maintain proper layout */
.case-study-item {
    min-height: auto;
    max-height: none;
    height: auto; /* Allow natural height */
}

/* Reset any inline styles that might interfere */
.case-study-item.hidden {
    display: none !important;
}

.case-study-item.block {
    display: block !important;
}

/* Ensure content is always visible */
.case-study-item .article-content {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 0 !important; /* Allow flex children to shrink */
}

/* Case study titles - allow up to 4 lines without truncation */
.case-study-item h3:not(.case-study-title) {
    visibility: visible !important;
    opacity: 1 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    line-height: 1.5 !important;
    max-height: calc(1.5em * 2) !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    text-overflow: ellipsis !important;
    margin-top: 1.5rem !important; /* mt-6 = 1.5rem */
    margin-bottom: 0.75rem !important; /* mb-3 = 0.75rem */
}

.case-study-item p {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

/* Ensure logo is visible */
.case-study-item > div[style*="absolute"] {
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
}

/* Ensure images are not distorted */
.case-study-item .article-image-container {
    position: relative !important;
    width: 100% !important;
    height: 12rem !important; /* h-48 = 12rem */
    overflow: hidden !important;
}

.case-study-item .article-image-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: top !important;
    display: block !important;
}

/* Hover effect for article cards - only shadow, no transform */
.article-item:hover,
a.article-item:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Focus effect for article cards (accessibility) */
a.article-item:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Image hover effect */
.article-item .article-image-container,
a.article-item .article-image-container {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.article-item:hover .article-image-container img,
a.article-item:hover .article-image-container img {
    transform: scale(1.05);
}

.article-item .article-image-container img,
a.article-item .article-image-container img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center bottom;
}

/* Adjust image position for specific articles - show more of top area */
.article-image-container[data-article-id="19"] img {
    object-position: center top !important;
}

.article-image-container[data-article-id="14"] img {
    object-position: center top !important;
}

/* Fix slider images in case study cards */
.case-study-item .article-image-container img,
.case-study-item .slider-container img {
    border-radius: 0 !important;
    object-position: top !important;
}

.case-study-item .article-image-container {
    border-radius: 0.75rem 0.75rem 0 0 !important;
}

/* Fix slider overflow in case study cards */
.case-study-item .slider-container {
    overflow: hidden !important;
}

.case-study-item .slider-images {
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

.case-study-item .slider-images img {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    flex-shrink: 0 !important;
    object-fit: cover !important;
    display: block !important;
}

/* Overlay animation from bottom */
.article-item .hover-overlay,
a.article-item .hover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(55, 65, 81, 0.95) 100%) !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    pointer-events: none;
}

.article-item:hover .hover-overlay,
a.article-item:hover .hover-overlay,
a.article-item:focus-visible .hover-overlay {
    transform: translateY(0);
}

/* CTA text in overlay */
.article-item .hover-overlay .cta-text,
a.article-item .hover-overlay .cta-text {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.1s;
}

.article-item:hover .hover-overlay .cta-text,
a.article-item:hover .hover-overlay .cta-text,
a.article-item:focus-visible .hover-overlay .cta-text {
    opacity: 1;
    transform: translateY(0);
}

/* CTA icon in overlay */
.article-item .hover-overlay .cta-icon,
a.article-item .hover-overlay .cta-icon {
    color: white;
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease 0.2s;
}

.article-item:hover .hover-overlay .cta-icon,
a.article-item:hover .hover-overlay .cta-icon,
a.article-item:focus-visible .hover-overlay .cta-icon {
    opacity: 1;
    transform: translateX(0);
}

.article-item .article-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Responsive grid for articles */
#articlesGrid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Tablet: 2 columns (768px - 1279px) */
@media (min-width: 768px) and (max-width: 1279px) {
    #articlesGrid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 3 columns (≥1280px) */
@media (min-width: 1280px) {
    #articlesGrid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.article-item .article-footer {
    margin-top: auto;
}

/* Filter Counter Styles */
.filter-counter {
    display: inline-block !important;
    background-color: #dbeafe !important;
    color: #1e40af !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 0.75rem !important;
    margin-left: 0.5rem !important;
    transition: all 0.2s ease !important;
}

.filter-btn.active .filter-counter {
    background-color: #374151 !important;
    color: #ffffff !important;
}

.filter-btn:hover .filter-counter {
    background-color: #bfdbfe !important;
    color: #1d4ed8 !important;
}

.filter-btn.active:hover .filter-counter {
    background-color: #374151 !important;
    color: #ffffff !important;
}
/* Filter Container - Updated 2025-01-XX */
.filter-container {
    border-bottom: 1px solid #e5e7eb !important;
    padding-bottom: 1.5rem !important;
    margin-bottom: 1.5rem !important; /* Fixed 1.5rem spacing to label */
}

/* Ensure filter wrapper doesn't interfere with spacing */
#filter-bar-wrapper,
#filter-bar-wrapper-case-studies {
    margin-bottom: 0 !important;
}

/* Force spacing after filter container - ensure it works even with wrapper */
#filter-bar-wrapper .filter-container,
#filter-bar-wrapper-case-studies .filter-container {
    margin-bottom: 1.5rem !important;
}

.filter-btn {
    color: #6b7280 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    position: relative !important;
}

.filter-btn.active {
    color: #374151 !important;
    font-weight: 600 !important;
}

.filter-btn.active::after {
    content: '' !important;
    position: absolute !important;
    bottom: -1px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 80% !important;
    height: 2px !important;
    background-color: #374151 !important;
    border-radius: 1px !important;
    z-index: 1 !important;
}

/* When filter-btn has btn-primary class, use primary button styles */
.filter-btn.btn-primary {
    background: linear-gradient(to right, #111827, #374151) !important;
    background-color: #111827 !important;
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
}

.filter-btn.btn-primary::after {
    display: none !important;
}

.filter-btn.btn-primary:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

.filter-btn:hover {
    color: #374151 !important;
}

.filter-btn.active:hover {
    color: #374151 !important;
}

/* Category filter buttons */
.category-filter-btn {
    transition: all 0.2s ease;
}

.category-filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Case Studies Filter Dropdown
   ======================================== */

.filter-dropdown-btn {
    min-width: 140px;
}

.filter-dropdown-btn i {
    transition: transform 0.2s ease;
}

.filter-dropdown-menu {
    max-width: 90vw;
    width: 320px;
}

.filter-group-header {
    user-select: none;
}

.filter-group-header i {
    transition: transform 0.2s ease;
}

.filter-group-content {
    transition: all 0.2s ease;
}

.filter-option {
    user-select: none;
}

.filter-checkbox:checked {
    background-color: #5B4BFF !important;
    border-color: #5B4BFF !important;
    accent-color: #5B4BFF;
}

.filter-checkbox:checked + span {
    color: #374151;
    font-weight: 500;
}

/* Active filters badges */
#active-filters-list button {
    transition: all 0.15s ease;
}

#active-filters-list button:hover {
    background-color: #e9d5ff;
}

#active-filters-list button:focus {
    outline: 2px solid #5B4BFF;
    outline-offset: 2px;
}

/* Smooth transitions for filtered items */
.case-study-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.case-study-item.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .filter-dropdown-menu {
        width: calc(100vw - 2rem);
        left: 1rem !important;
        right: 1rem !important;
        max-width: none;
    }
    
    #filter-bar-component-case-studies {
        padding: 1rem;
    }
    
    #active-filters-display {
        width: 100%;
        margin-top: 1rem;
    }
}



/* Pagination controls */
#prevPage:disabled,
#nextPage:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Profile Image Styles */
.profile-image-container {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.profile-image-container > div {
    border-color: #e5e7eb !important; /* border-gray-200 */
}

.profile-image-container:hover {
    transform: scale(1.05);
}

.profile-image-container > div {
    transition: all 0.3s ease;
}

.profile-image-container:hover > div {
    border-color: #9ca3af !important; /* border-gray-400 */
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
    .profile-image-container {
        transform: scale(0.9);
    }
    
    .profile-image-container:hover {
        transform: scale(0.95);
    }
}

/* Article category styling - Visual only */
.article-item [data-category] {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid #93c5fd;
    font-weight: 500;
    letter-spacing: 0.025em;
    cursor: default;
}

/* Floating Badges Animation */
@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(8px, -12px) rotate(1deg); }
    50% { transform: translate(-6px, -8px) rotate(-0.5deg); }
    75% { transform: translate(10px, -15px) rotate(0.5deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-10px, -10px) rotate(-1deg); }
    50% { transform: translate(12px, -14px) rotate(1deg); }
    75% { transform: translate(-8px, -12px) rotate(-0.5deg); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(6px, -16px) rotate(0.5deg); }
    50% { transform: translate(-12px, -10px) rotate(-1deg); }
    75% { transform: translate(9px, -13px) rotate(1deg); }
}

@keyframes float4 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-14px, -11px) rotate(-0.5deg); }
    50% { transform: translate(7px, -15px) rotate(1deg); }
    75% { transform: translate(-9px, -9px) rotate(-1deg); }
}

.floating-badge {
    animation-duration: 20s, 24s, 22s, 26s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: normal;
}

.floating-badge:nth-child(1) {
    animation-name: float1;
    animation-duration: 22s;
    animation-delay: 0s;
}

.floating-badge:nth-child(2) {
    animation-name: float2;
    animation-duration: 26s;
    animation-delay: 2s;
}

.floating-badge:nth-child(3) {
    animation-name: float3;
    animation-duration: 24s;
    animation-delay: 4s;
}

.floating-badge:nth-child(4) {
    animation-name: float4;
    animation-duration: 20s;
    animation-delay: 6s;
}

/* Hero Image Carousel */
.hero-image-carousel {
    position: relative;
    min-height: 400px;
    z-index: 1;
}

.hero-image-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.hero-image-item img,
.hero-image-item picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Specific positioning for design-system-figma-tokens-expert.webp to show top portion with Gravatar */
.hero-image-item[data-image="design-system-figma-tokens-expert.webp"] img,
.hero-image-item[data-image="design-system-figma-tokens-expert.webp"] picture img {
    object-position: top center;
}

.hero-image-item.active {
    opacity: 1;
    z-index: 2;
}

/* Concept Badge Animation - Complete horizontal slide across image */
#hero-concept-badge {
    z-index: 50 !important;
    pointer-events: none !important;
}

#hero-concept-badge > div {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transform: translateX(150%);
    white-space: nowrap;
}

#hero-concept-badge .concept-slide-in {
    animation: conceptSlideIn 6s linear forwards !important;
}

@keyframes conceptSlideIn {
    0% {
        transform: translateX(150%);
    }
    5% {
        transform: translateX(0%);
    }
    85% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-150%);
    }
}

/* ========================================
   EXPERTISE SECTION ANIMATION
   ======================================== */

.expertise-card {
    opacity: 0;
    transform: translateY(2rem);
    will-change: opacity, transform;
}

.expertise-card.expertise-animated {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   PROJECT METRICS ANIMATION
   ======================================== */

/* Initial state: metrics are ready but not animated */
.metric-item .metric-number {
    position: relative;
    will-change: transform, opacity;
}

/* Spark animation: triggered once when section enters viewport */
/* Uses fade + scale-up combo with soft glow effect (~300ms duration) */
.metric-item.metric-visible .metric-number {
    animation: metricSpark 0.3s ease-out forwards;
}

/* Animation keyframes: subtle spark effect */
/* - Starts slightly scaled down and semi-transparent */
/* - Scales up with opacity increase */
/* - Adds soft glow using text-shadow */
/* - Adjust timing/easing in keyframes if needed */
@keyframes metricSpark {
    0% {
        opacity: 0.6;
        transform: scale(0.95);
        text-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
    50% {
        text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        text-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* ========================================
   SECTION BADGE ICONS - Force Blue Color
   ======================================== */

/* Force blue color on all section badge icons - Maximum specificity */
.inline-flex.items-center.rounded-full.bg-gray-100 i.ph-duotone,
.inline-flex.items-center.rounded-full.bg-blue-100 i.ph-duotone,
.inline-flex.items-center.rounded-full.bg-white\/10 i.ph-duotone,
div.bg-gray-100 i.ph-duotone.ph-quotes,
div.bg-gray-100 i.ph-duotone.ph-gear,
div.bg-blue-100 i.ph-duotone.ph-sparkle,
div.bg-white\/10 i.ph-duotone.ph-list-checks,
.text-gray-600 i.ph-duotone,
.bg-gray-100.text-gray-600 i.ph-duotone {
    color: #2563eb !important;
    fill: #2563eb !important;
    stroke: none !important;
}

/* For dark backgrounds, use lighter blue */
.bg-white\/10 i.ph-duotone {
    color: #60a5fa !important;
    fill: #60a5fa !important;
}

/* ========================================
   TESTIMONIALS CAROUSEL STYLES
   ======================================== */

.testimonials-carousel-wrapper {
    position: relative;
}

.testimonials-carousel-container {
    overflow: hidden;
}

.testimonials-carousel-track {
    display: flex;
    will-change: transform;
}

.testimonial-slide {
    transition: opacity 0.3s ease;
}

.testimonial-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot:hover {
    background-color: #6b7280 !important;
}

.testimonial-dot.active {
    background-color: #111827 !important;
    width: 2rem !important;
}

/* Hero CTA Dropdown - Slower hover transition and stay visible */
#resume-dropdown-hero .dropdown-menu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
    transition-delay: 0.1s;
}

#resume-dropdown-hero:hover .dropdown-menu,
#resume-dropdown-hero .dropdown-menu:hover {
    transition-delay: 0s;
    opacity: 1 !important;
    visibility: visible !important;
}

#resume-dropdown-hero .dropdown-menu li {
    transition: background-color 0.2s ease;
}

/* Pagination Styles */
.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background-color: #f3f4f6;
    color: #374151;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pagination-btn:hover:not(.disabled) {
    background-color: #3b82f6;
    color: white;
    transform: scale(1.05);
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-btn:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.pagination-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.5rem;
    background-color: #f3f4f6;
    color: #374151;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination-page:hover:not(.active) {
    background-color: #e5e7eb;
    color: #111827;
}

.pagination-page.active {
    background: linear-gradient(to right, #111827, #374151);
    background-color: #111827;
    color: white;
    font-weight: 600;
}

.pagination-page:focus-visible {
    outline: 2px solid #111827;
    outline-offset: 2px;
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    color: #6b7280;
    font-weight: 500;
}

/* Case Study Title and Excerpt Dynamic Sizing */
.case-study-title {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.4 !important;
    /* Allow title to use up to 4 lines - NO truncation, show complete text */
    /* Using max-height only, NO line-clamp to avoid ellipsis */
    max-height: calc(1.4em * 4 + 10px) !important; /* Extra padding for descenders */
    overflow: hidden !important;
    display: block !important;
    /* Explicitly remove any line-clamp behavior */
    text-overflow: clip !important;
    white-space: normal !important;
}

.case-study-excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Case study excerpt line clamp variants */
.case-study-excerpt.line-clamp-4 {
    -webkit-line-clamp: 4;
    max-height: calc(1.6em * 4 + 6px);
}

.case-study-excerpt.line-clamp-5 {
    -webkit-line-clamp: 5;
    max-height: calc(1.6em * 5 + 6px);
}

.case-study-excerpt.line-clamp-6 {
    -webkit-line-clamp: 6;
    max-height: calc(1.6em * 6 + 6px);
}

/* Link Styles - Accessible underlined links with clear hover states */
.link-accent {
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

/* No hover animation - for dropdown triggers where animation should be on dropdown only */
.no-hover-animation {
    text-decoration: none !important;
    transition: none !important;
}

.no-hover-animation:hover {
    color: inherit !important;
}

.no-hover-animation .underline {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Ensure icons in links don't show underline - apply to all icon elements */
i,
[class*="ph-"],
.ph {
    text-decoration: none !important;
}

/* When icons are inside links, ensure they don't inherit underline */
a i,
a [class*="ph-"],
a .ph,
.link-accent i,
.link-accent [class*="ph-"],
.link-accent .ph,
.no-hover-animation i,
.no-hover-animation [class*="ph-"],
.no-hover-animation .ph,
.text-gray-600 a i,
.text-gray-500 a i,
.content a i,
p a i,
span i,
span [class*="ph-"],
span .ph {
    text-decoration: none !important;
    display: inline-block;
}

.link-accent:hover,
.link-accent:focus {
    color: #7c3aed !important; /* violet-600 */
    text-decoration-color: #7c3aed;
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
}

/* Links in content areas - ensure underline and clear hover */
.text-gray-600 a,
.text-gray-500 a,
.content a,
p a {
    text-decoration: underline;
    text-underline-offset: 2px;
    color: inherit;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.text-gray-600 a:hover,
.text-gray-600 a:focus,
.text-gray-500 a:hover,
.text-gray-500 a:focus,
.content a:hover,
.content a:focus,
p a:hover,
p a:focus {
    color: #7c3aed !important; /* violet-600 */
    text-decoration-color: #7c3aed;
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
}

/* Force CSS reload - Wed Oct 22 18:05:57 MDT 2025 */
/* Cache bust - 1761178013 */
/* Cache bust: 1761457256 */
/* Cache bust: 1761457257 - Elementor icon update */
