/* Newsletter Section Styles */
.newsletter-section {
    background: var(--color-bg-darker);
    padding: 64px 0;
}
.newsletter-section .newsletter-badge {
    display: inline-block;
    background: var(--color-red-dark);
    color: var(--color-white);
    font-weight: 600;
    border-radius: 16px;
    padding: 6px 22px;
    font-size: 1rem;
    margin-bottom: 18px;
}
.newsletter-section .newsletter-title {
    color: var(--color-white);
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.newsletter-section .newsletter-desc {
    color: var(--color-gray-dark);
    font-size: 1.1rem;
    margin-bottom: 32px;
}
.newsletter-section .newsletter-form {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.newsletter-section .newsletter-input {
    padding: 14px 18px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    min-width: 220px;
    background: var(--color-white);
    color: var(--color-bg-darkest);
    box-shadow: 0 2px 8px 0 rgba(20,20,40,0.06);
}
.newsletter-section .newsletter-button {
    background: var(--color-red);
    color: var(--color-white);
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 14px 32px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.newsletter-section .newsletter-button:hover {
    background: var(--color-red-mid);
}
/*
Theme Name: Digital Heritage Lab Custom Theme
Description: Custom WordPress theme for Digital Heritage Lab - Logo-inspired red theme (Refactored)
Version: 2.0
Author: Digital Heritage Lab
*/

/* ===== CSS VARIABLES ===== */
:root {
    --dhl-charcoal: #23272b;
    /* Digital Heritage Lab Main Palette */
    --color-bg-darkest: #0B090A;
    --color-bg-darker: #161A1D;
    --color-red-dark: #660708;
    --color-red: #A4161A;
    --color-red-mid: #BA181B;
    --color-red-bright: #E5383B;
    --color-gray-dark: #B1A7A6;
    --color-gray: #D3D3D3;
    --color-gray-light: #F5F3F4;
    /* Section backgrounds */
    --hero-bg-1: var(--color-bg-darkest);
    --hero-bg-2: var(--color-bg-darker);
    --hero-bg-3: var(--color-red-dark);
    --about-bg: var(--color-bg-darker);
    --featured-bg-1: var(--color-bg-darker);
    --featured-bg-2: var(--color-bg-darkest);
    --newsletter-bg: var(--color-bg-darker);
    --joinus-bg: var(--color-bg-darker);
    /* Button colors */
    --primary-btn-bg: var(--color-red);
    --primary-btn-bg-hover: var(--color-red-mid);
    --primary-btn-color: var(--color-white);
    --primary-btn-color-hover: var(--color-white);
    --secondary-btn-bg: var(--color-gray-dark);
    --secondary-btn-bg-hover: var(--color-gray);
    --secondary-btn-color: var(--color-bg-darkest);
    --secondary-btn-color-hover: var(--color-bg-darkest);
    /* Badge colors */
    --badge-bg: var(--color-red-dark);
    --badge-color: var(--color-white);
    --badge-border: var(--color-red-mid);
    /* Card colors */
    --card-bg: var(--color-white);
    --card-title: var(--color-bg-darkest);
    --card-desc: var(--color-gray-dark);
    --card-meta: var(--color-gray-dark);
    /* Logo-inspired Color Palette */
    --logo-red-primary: #dc143c;
    --logo-red-dark: #b22222;
    --logo-red-darker: #8b0000;
    --logo-red-light: #ff6b6b;
    --logo-accent-orange: #ff4500;
    --logo-accent-orange-light: #ff6347;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--logo-red-primary) 0%, var(--logo-red-dark) 100%);
    --gradient-accent: linear-gradient(135deg, var(--logo-accent-orange) 0%, var(--logo-accent-orange-light) 100%);
    
    /* Shadows */
    --shadow-red: rgba(220, 20, 60, 0.3);
    --shadow-red-hover: rgba(220, 20, 60, 0.4);
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    
    /* Neutral Colors */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    
    /* Typography */
    --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-mono: 'JetBrains Mono', Consolas, Monaco, monospace;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Breakpoints */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== RESET & BASE STYLES ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family-sans);
    line-height: 1.6;
    color: var(--color-gray-dark);
    background-color: var(--color-gray-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--logo-red-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--logo-red-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* Lists */
ul, ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

li {
    margin-bottom: var(--spacing-xs);
}

/* Code */
code, pre {
    font-family: var(--font-family-mono);
    background-color: var(--color-gray-light);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
}

pre {
    padding: var(--spacing-md);
    overflow-x: auto;
    border-radius: var(--radius-md);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--spacing-md);
}

th, td {
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--color-gray-200);
}

th {
    font-weight: 600;
    background-color: var(--color-gray-light);
}

/* ===== LAYOUT UTILITIES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-sm {
    max-width: 768px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-lg {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }

/* Flex Utilities */
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }

/* Grid Utilities */
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }
.gap-xl { gap: var(--spacing-xl); }

/* Spacing */
.m-0 { margin: 0; }
.m-auto { margin: auto; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.ml-0 { margin-left: 0; }
.mr-0 { margin-right: 0; }

.p-0 { padding: 0; }
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }
.pl-0 { padding-left: 0; }
.pr-0 { padding-right: 0; }

/* ===== WORDPRESS SPECIFIC ===== */
.alignleft {
    float: left;
    margin-right: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.alignright {
    float: right;
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.aligncenter {
    display: block;
    margin: 0 auto var(--spacing-md);
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--color-gray-500);
    margin-top: var(--spacing-xs);
    text-align: center;
}

/* Gutenberg Block Editor */
.has-text-color a {
    color: inherit;
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
    outline: 2px solid var(--logo-red-primary);
    outline-offset: 2px;
}

/* Skip to content */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--logo-red-primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    z-index: 9999;
}

.skip-link:focus {
    top: 6px;
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 767px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.5rem; }
    
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    a,
    a:visited {
        text-decoration: underline;
    }
    
    img {
        page-break-inside: avoid;
    }
    
    h2,
    h3,
    p {
        orphans: 3;
        widows: 3;
    }
    
    h2,
    h3 {
        page-break-after: avoid;
    }
}

/* ===== BACKUP SECTION STYLES (Fallback if modular CSS fails) ===== */

/* Featured Projects Backup */
.featured-projects {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--hero-bg-1) 0%, var(--hero-bg-2) 100%);
    position: relative;
    overflow: hidden;
    color: white;
}

.featured-projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(220, 20, 60, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 69, 0, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(178, 34, 34, 0.3) 0%, transparent 50%);
    z-index: 1;
}

.featured-projects .container {
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-white);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 60px;
    color: var(--color-gray);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content {
    padding: 25px;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-bg-darkest);
}

.project-description {
    color: var(--color-gray-dark);
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.project-status {
    background: var(--color-red-bright);
    color: var(--color-white);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.project-link {
    color: var(--color-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--color-red-dark);
}

/* Newsletter Section Backup */
.newsletter-section {
    padding: 100px 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 69, 0, 0.2) 0%, transparent 50%);
    z-index: 1;
}

.newsletter-content {
    position: relative;
    z-index: 2;
}

.newsletter-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.newsletter-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
}

.newsletter-button {
    background: white;
    color: var(--logo-red-primary);
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.newsletter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Join Us Section Backup */
.join-us {
    position: relative;
    padding: 100px 0;
    background: var(--gradient-primary);
    overflow: hidden;
    color: white;
}

.join-us-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.join-us-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 69, 0, 0.2) 0%, transparent 50%);
}

.join-us-content {
    position: relative;
    z-index: 2;
}

.join-us-header {
    text-align: center;
    margin-bottom: 60px;
}

.join-us-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.join-us-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.join-us-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.join-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.join-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.join-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gray-800);
    margin-bottom: 15px;
}

.card-description {
    color: var(--color-gray-600);
    line-height: 1.6;
    margin-bottom: 25px;
}

.card-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

.card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.4);
    color: white;
    text-decoration: none;
}

/* Latest Content Section Backup */
.latest-content {
    padding: 100px 0;
    background: var(--color-gray-50);
}

.content-header {
    text-align: center;
    margin-bottom: 60px;
}

.content-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

.content-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-gray-800);
    margin-bottom: 20px;
}

.content-subtitle {
    font-size: 1.2rem;
    color: var(--color-gray-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.content-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--color-gray-600);
    border: 2px solid var(--color-gray-200);
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tab-btn:hover {
    border-color: var(--logo-red-primary);
    color: var(--logo-red-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--logo-red-primary);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.3);
}

.tab-icon {
    font-size: 1.2rem;
}

.tab-content {
    min-height: 400px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.content-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.content-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.content-card:hover .card-image img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
}

.card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gradient-primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.card-content {
    padding: 25px;
}

.card-title a {
    color: var(--color-gray-800);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    display: block;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: var(--logo-red-primary);
}

.card-excerpt {
    color: var(--color-gray-600);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid var(--color-gray-200);
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

.card-date,
.card-reading-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsive Design for Backup Styles */
@media (max-width: 768px) {
    .section-title,
    .newsletter-title,
    .join-us-title,
    .content-title {
        font-size: 2rem;
    }
    
    .projects-grid,
    .join-us-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 15px;
    }
    
    .content-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .card-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* =====================================================
   CSS ANIMATIONS FOR BLOG FILTERING
   ===================================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
