/* Main Website Styles */
:root {
    --primary-color: #002FA7;
    --secondary-color: #6B7280;
    --success-color: #10B981;
    --danger-color: #EF4444;
    --warning-color: #F59E0B;
    --info-color: #3B82F6;
    --light-color: #F9FAFB;
    --dark-color: #111827;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --white: #ffffff;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.15s ease;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    margin-top: 80px;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure all form elements and buttons inherit the Inter font */
button, input, select, textarea, .btn, .dropdown-toggle {
    font-family: inherit;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Mobile container padding fix */
@media (max-width: 768px) {
    /* Force full viewport width usage */
    html, body {
        margin: 0;
        padding: 0;
        width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    /* Reset all containers to use full viewport width */
    .container {
        padding: 0 1rem;
        margin: 0;
        width: 100vw;
        max-width: none;
        box-sizing: border-box;
    }
    
    /* Ensure all sections fill full viewport width */
    .hero, 
    .project-info-section,
    .datasets-section,
    .graphs-section,
    .ifc-models-section,
    .download-section {
        width: 100vw;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    /* Fix hero content to use full width */
    .hero-content {
        width: 100vw;
        padding: 0;
        margin: 0;
    }
    
    .hero-content .container {
        padding: 0 1rem;
        margin: 0;
        width: 100vw;
        max-width: none;
    }
    
    /* Fix header to use full viewport width */
    .header {
        width: 100vw;
        left: 0;
        right: 0;
        margin: 0;
    }
    
    .header .container {
        padding: 1rem;
        width: 100vw;
        margin: 0;
        max-width: none;
        box-sizing: border-box;
    }
    
    /* Ensure text content uses available width */
    .hero-content h1,
    .hero-content p {
        text-align: center;
        width: 100%;
        margin: 0 auto;
    }
    
    /* Ensure buttons are touch-friendly and centered */
    .btn {
        min-height: 44px;
        padding: 0.875rem 1.5rem;
        touch-action: manipulation;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 1rem;
        padding: 0 1rem;
        box-sizing: border-box;
    }
    /* Mobile responsive model viewer */
    @media (max-width: 768px) {
        .ifc-section .container {
            padding: 1rem 0;
            width: 100vw;
            max-width: none;
        }
        
        .ifc-section h2 {
            padding: 0 1rem;
            margin-bottom: 1rem;
        }
        
        .ifc-viewer-container {
            width: 100vw;
            margin: 0;
            padding: 0;
        }
        
        .ifc-viewer-frame {
            width: 100vw;
            height: 70vh;
            min-height: 400px;
            border: none;
        }
        
        /* Override default section padding only for specific sections */
        .graphs-section, .ifc-section {
            padding: 0.5rem 0 !important;
            margin: 0 !important;
            min-height: auto !important;
        }
        
        .graphs-section .container, .ifc-section .container {
            padding-top: 0.5rem;
            padding-bottom: 0.5rem;
        }
        
        /* Contact page mobile styles */
        .contact-page-section {
            padding: 6rem 0 2rem 0;
        }
        
        .contact-page-section .container {
            padding: 0 1rem;
            width: 100vw;
            max-width: none;
        }
        
        .contact-page-section h1 {
            display: none;
        }
        
        /* Add extra spacing to contact items */
        .contact-item {
            margin-top: 1rem;
        }
        
        .contact-item:first-child {
            margin-top: 1.5rem;
        }
        
        /* Hide About page header on mobile */
        .about-section h1 {
            display: none;
        }
        
        .about-section {
            padding-top: 5rem !important;
        }
        
        .contact-info-section {
            padding: 0;
            width: 100%;
        }
        
        /* Force single column layout on mobile */
        .contact-details {
            display: flex !important;
            flex-direction: column !important;
            gap: 1.5rem !important;
            margin-bottom: 2rem;
            width: 100%;
        }
        
        .contact-item {
            padding: 1.5rem;
            margin: 0;
            width: 100%;
            box-sizing: border-box;
        }
        
        .contact-item h3 {
            font-size: 1.2rem;
        }
        
        .contact-item p {
            font-size: 1rem;
        }
        
        .collaboration-note {
            padding: 1.5rem;
            margin: 0;
            width: 100%;
            box-sizing: border-box;
        }
        
        .collaboration-note h2 {
            font-size: 1.5rem;
            text-align: center;
            margin-bottom: 1rem;
        }
        
        .collaboration-note p {
            font-size: 1rem;
            text-align: center;
        }
        
        .collaboration-note ul {
            padding-left: 1.5rem;
            text-align: left;
        }
        
        .collaboration-note li {
            margin-bottom: 0.6rem;
            font-size: 0.95rem;
        }
    }
}

/* Hide hero description on mobile for cleaner layout */
@media (max-width: 480px) {
    .hero .hero-content p {
        display: none !important;
    }
    
    .hero .hero-content h1 {
        margin-bottom: 1.5rem !important;
    }
}

/* iPhone SE and very small screens */
@media (max-width: 375px) {
    .hero .hero-content h1 {
        font-size: 1.5rem !important;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    
    .hero .hero-content p {
        display: none !important;
    }
    
    .hero-buttons {
        gap: 0.6rem;
        margin-top: 0;
    }
    
    .hero-buttons .btn {
        font-size: 0.75rem;
        padding: 0.6rem 1rem;
        min-width: 150px;
        min-height: 36px;
    }
    
    .hero-content .container {
        padding: 0 0.75rem;
    }
    
    .hero {
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--gray-900);
    letter-spacing: -0.025em;
}

/* Logo text should be pure black */
.logo h1 {
    color: #000000 !important;
    margin-bottom: 0;
    font-size: 1.5rem;
}

/* Ensure header logo text is black */
.header .logo h1 {
    color: #000000 !important;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--gray-600);
    line-height: 1.7;
}
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
    letter-spacing: 0.025em;
}

.btn:hover {
    background-color: #0026A0;
    transform: translateY(-1px);
    text-decoration: none;
    color: var(--white);
}

.btn.secondary {
    background-color: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

button.btn.secondary:hover {
    background-color: var(--gray-50) !important;
    border-color: var(--gray-400) !important;
    color: var(--gray-800) !important;
    transform: translateY(-1px) !important;
}

.btn-download {
    background-color: var(--primary-color);
}

.btn-download:hover {
    background-color: #0026A0;
}

/* Hero Section - Full Screen with Video Background */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--dark-color);
}

/* Background Video */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Desktop video - default display */
.hero-video-desktop {
    display: block;
}

/* Mobile video - hidden by default */
.hero-video-mobile {
    display: none;
}

/* Mobile video responsive behavior */
@media (max-width: 768px) {
    .hero-video-desktop {
        display: none;
    }
    
    .hero-video-mobile {
        display: block;
        transform: rotate(-90deg);
        transform-origin: center center;
        width: 100vh;
        height: 100vw;
        top: 50%;
        left: 50%;
        margin-top: -50vw;
        margin-left: -50vh;
    }
}

/* Dark overlay for better text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    z-index: 2;
}

/* Hero content above video */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.hero-content .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--dark-color);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
        padding: 0 1rem;
    }
    
    .hero-buttons {
        padding: 0 1rem;
    }
    
    .hero-buttons .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Main Content */
.main-content {
    padding-top: 2rem;
    min-height: calc(100vh - 200px);
}

.page-header {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(to bottom, var(--white) 0%, var(--gray-50) 100%);
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--gray-200);
}

.page-header h1 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto;
}

/* Sections */
section {
    padding: 4rem 0;
}

/* Project Information Section */
.project-info-section {
    background: var(--white);
}

.workflow-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 2rem 0;
}

.workflow-description h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.workflow-description p {
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Project Information Section */
.project-info-section {
    padding: 3rem 0 4rem;
    background: var(--white);
    position: relative;
    z-index: 5;
}
.workflow-intro {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--secondary-color);
    text-align: center;
    margin: 2rem auto 3rem;
    max-width: 800px;
}

.workflow-image-fullwidth {
    text-align: center;
    margin: 0 -2rem 4rem;
    padding: 0 2rem;
}

.workflow-diagram-fullwidth {
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
    background: white;
    padding: 2rem;
    transition: all 0.3s ease;
}

.project-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.highlight-item {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    text-align: center;
}

.highlight-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.highlight-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
    font-weight: 600;
}

.highlight-item p {
    color: var(--secondary-color);
    line-height: 1.5;
    margin: 0;
    font-size: 0.9rem;
}
}

/* Responsive styles for workflow */
@media (max-width: 768px) {
    .workflow-image-fullwidth {
        margin: 0 -1rem 3rem;
        padding: 0 1rem;
    }
    
    .workflow-diagram-fullwidth {
        padding: 1rem;
    }
    
    .project-highlights {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .highlight-item {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .project-highlights {
        grid-template-columns: 1fr;
    }
}

.workflow-image {
    text-align: center;
}

.workflow-diagram {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
    background: white;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.workflow-diagram:hover {
    transform: scale(1.02);
}

.image-caption {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-style: italic;
}

.project-details {
    margin-top: 3rem;
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
}

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

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.detail-value {
    font-weight: 600;
    color: var(--dark-color);
    text-align: right;
}

.download-section {
    background-color: var(--white);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.download-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.download-item:hover {
    transform: translateY(-5px);
}

.download-item h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.download-item p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* Workflow Process Section */
.workflow-process-section {
    background-color: var(--white);
    padding: 4rem 0;
}

.process-steps {
    margin-top: 3rem;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.process-step:hover {
    transform: translateY(-2px);
}

.step-number {
    background: var(--primary-color);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
    min-width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.step-content > p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.step-details {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.step-details ul {
    list-style-type: none;
    margin-bottom: 1.5rem;
}

.step-details ul li {
    position: relative;
    padding-left: 0;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.step-details .btn {
    margin-top: 0.5rem;
}

/* Quick Links */
.quick-links {
    padding: 4rem 0;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.link-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid #e9ecef;
}

.link-card:hover {
    transform: translateY(-3px);
}

.link-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.link-card p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* Blog Styles */
.blog-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-post {
    background-color: var(--white);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-2px);
}

.blog-post.featured {
    border-left: 4px solid var(--primary-color);
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
}

.post-header {
    margin-bottom: 1.5rem;
}

.post-header h2 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    line-height: 1.3;
}

.post-meta {
    color: var(--secondary-color);
    font-size: 0.9rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.post-institution {
    font-weight: 600;
    color: var(--primary-color);
}

.post-content {
    line-height: 1.7;
}

.post-content h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.3rem;
}

.post-content h4 {
    color: var(--dark-color);
    margin: 1.2rem 0 0.8rem 0;
    font-size: 1.1rem;
}

.research-highlights {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.research-highlights blockquote {
    background-color: white;
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.dataset-stats {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.dataset-stats h4 {
    color: white;
    margin-bottom: 1rem;
}

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

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
}

.technical-pipeline {
    background-color: #f1f3f4;
    border-radius: 6px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.technical-pipeline ol {
    margin: 0;
    padding-left: 1.5rem;
}

.technical-pipeline li {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.technical-pipeline strong {
    color: var(--primary-color);
}

.post-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.read-more:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-link {
    padding: 0.5rem 1rem;
    background-color: var(--white);
    border: 1px solid #dee2e6;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
}

.pagination-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
}

.pagination-link.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.pagination-link.disabled {
    color: var(--secondary-color);
    cursor: not-allowed;
}

.pagination-link.disabled:hover {
    background-color: var(--white);
    color: var(--secondary-color);
}

/* Sources Page */
.sources-container {
    max-width: 900px;
    margin: 0 auto;
}

.source-category {
    margin-bottom: 3rem;
}

.source-category h2 {
    color: var(--dark-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.source-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.source-item {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);

    border-left: 4px solid var(--primary-color);
}

.source-item h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.source-author {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.source-publication {
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.source-description {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.source-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.source-link:hover {
    text-decoration: underline;
}

/* Data Usage Page */
.usage-container {
    max-width: 900px;
    margin: 0 auto;
}

.usage-section {
    margin-bottom: 3rem;
}

.usage-section h2 {
    color: var(--dark-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.license-info {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--success-color);
}

.license-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.license-type {
    background-color: var(--success-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
}

.license-name {
    font-weight: 500;
    color: var(--dark-color);
}

.citation-examples {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.citation-format {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);

}

.citation-format h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.citation-text {
    background-color: var(--light-color);
    padding: 1rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    border-left: 3px solid var(--primary-color);
}

.data-overview {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);

}

.data-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.data-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.field-category h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.field-category ul {
    list-style-type: none;
    padding-left: 0;
}

.field-category li {
    padding: 0.25rem 0;
    color: var(--dark-color);
    position: relative;
    padding-left: 1rem;
}

.field-category li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Fullscreen Image Modal */
.fullscreen-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.fullscreen-content {
    margin: auto;
    display: block;
    max-width: 95%;
    max-height: 90%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;

}

.close-fullscreen {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-fullscreen:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.fullscreen-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    max-width: 80%;
}

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

@media (max-width: 768px) {
    .close-fullscreen {
        top: 10px;
        right: 15px;
        font-size: 30px;
        width: 45px;
        height: 45px;
    }
    
    .fullscreen-caption {
        bottom: 10px;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        max-width: 90%;
    }
}

/* Data Preview Section */
.data-section {
    background: var(--gray-50);
    padding: 4rem 0;
}

.data-container {
    background: white;
    border-radius: var(--border-radius-lg);

    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.query-panel {
    background: var(--primary-color);
    color: white;
    padding: 3rem 2rem;
    min-height: 600px;
    position: relative;
}

.query-panel h3 {
    margin: 0 0 1.5rem 0;
    color: white;
}

.query-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.control-group label {
    font-weight: 600;
    min-width: 120px;
}

.query-input {
    flex: 1;
    min-width: 300px;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    font-size: 0.9rem;
}

.filter-group select {
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    background: white;
    font-size: 0.9rem;
}

.data-preview-container {
    padding: 2rem;
}

.data-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.data-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.row-counter {
    background: var(--gray-100);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

.range-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.range-input {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
}

.range-input:focus {
    outline: none;
    border-color: var(--primary-color);

}

.range-filter span {
    color: var(--secondary-color);
    font-weight: 500;
}

.table-container {
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    overflow: auto;
    max-height: 600px;
    background: white;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th {
    background: var(--gray-50);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.data-table tr:hover {
    background: #f8fafc;
}

.query-examples {
    background: #f8fafc;
    padding: 1.5rem 2rem;
    border-top: 1px solid #e2e8f0;
}

.query-examples h4 {
    margin: 0 0 1rem 0;
    color: var(--dark-color);
}

.example-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.example-btn {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.example-btn:hover {
    background: var(--primary-color);
    color: white;
}

.query-help {
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--info-color);
}

.query-help p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.query-help code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--dark-color);
}

/* Advanced Filter Interface */
.advanced-filter-container {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 1rem 0;
}

/* Full-width version */
.advanced-filter-container-fullwidth {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 1rem;
    margin: 0;
    width: 100%;

}

.filter-selector {
    position: relative;
    margin-bottom: 1.5rem;
}

.dropdown-toggle {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: white;
    color: black;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.dropdown-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);

}

.dropdown-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.dropdown-toggle.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.dropdown-toggle.active .dropdown-arrow {
    transform: rotate(180deg);
}

.column-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--gray-200);
    border-top: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);

    z-index: 9999;
    max-height: 60vh;
    overflow-y: auto;
    animation: dropdownSlide 0.3s ease-out;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--gray-200);
    padding: 0.5rem;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dataset-section {
    border-bottom: none;
    padding: 0.5rem;
    transition: background-color 0.2s ease;
}

.dataset-section:hover {
    background-color: #f8fafc;
}

.dataset-section:last-child {
    border-bottom: none;
}

.dataset-section h4 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.25rem;
}

.column-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.25rem;
}

.column-checkbox {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.column-checkbox:hover {
    background-color: var(--gray-50);
}

.column-checkbox input[type="checkbox"] {
    margin: 0;
    transform: scale(1.2);
}

.column-checkbox label {
    font-size: 0.75rem;
    cursor: pointer;
    color: var(--gray-700);
    margin: 0;
    font-weight: 500;
    flex: 1;
    line-height: 1.1;
}

.active-filters {
    min-height: 80px;
    max-height: 400px;
    overflow-y: auto;
    border: none;
    border-radius: 0;
    padding: 1rem;
    background: transparent;
    margin: 1.5rem 0;
    width: 100%;
    box-sizing: border-box;
}

/* When filters are active, change styling */
.active-filters:has(.filter-item) {
    border: none;
    border-color: transparent;
    background: transparent;
}

.filter-instructions {
    color: white;
    text-align: center;
    font-style: italic;
    font-size: 1rem;
}

/* Filter items container for better layout */
.filters-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.filter-actions .btn {
    min-width: 140px;
    font-weight: 600;
    transition: opacity 0.2s ease;
    position: relative;
}

.filter-actions .btn.secondary:hover {
    background-color: var(--gray-50) !important;
    border-color: var(--gray-400) !important;
    color: var(--gray-800) !important;

    transform: translateY(-1px) !important;
}

/* Specific override for apply filters button */
#apply-filters-btn:hover,
.filter-actions button.btn.secondary:hover {
    background-color: #f9fafb !important;
    border-color: #9ca3af !important;
    color: #374151 !important;
}

/* Loading text animation */
.btn-loading {
    opacity: 0.8;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

@keyframes pulse {
    from { opacity: 0.8; }
    to { opacity: 0.4; }
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    margin: 0 -1rem 0.75rem -1rem;

    transition: all 0.2s ease;
    flex-wrap: wrap;
}

.filter-item:hover {
    border-color: var(--primary-color);

}

.filter-item:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-weight: 500;
    color: var(--dark-color);
    min-width: 120px;
    font-size: 0.9rem;
    line-height: 1.3;
}

.filter-label small {
    color: var(--secondary-color);
    font-weight: 400;
}

.range-indicator {
    background: var(--gray-100);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--gray-600);
    font-weight: 500;
    margin-top: 0.25rem;
    border: 1px solid var(--gray-200);
}

.filter-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 250px;
}

.filter-input {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.85rem;
    width: 150px;
    flex-shrink: 0;
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary-color);

}

.filter-operator {
    background: var(--light-color);
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.85rem;
    min-width: 80px;
}

.remove-filter {
    background: transparent;
    color: #002FA7;
    border: none;
    border-radius: 0;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.remove-filter:hover {
    color: #001f7a;
    transform: scale(1.1);
}
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.85rem;
    min-width: 80px;
}

.remove-filter {
    background: transparent;
    color: #002FA7;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
}

.filter-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: none;
}

.legacy-query {
    background: #f8fafc;
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
}

.legacy-query label {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .query-controls {
        gap: 1rem;
    }
    
    .control-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .query-input {
        min-width: auto;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .data-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .data-actions {
        justify-content: space-between;
    }
}

.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Additional Resources */
.additional-resources {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.resource-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);

    text-align: center;
    border: 1px solid #e9ecef;
}

.resource-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.resource-card p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* Best Practices */
.best-practices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.practice-item {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);

    border-top: 3px solid var(--primary-color);
}

.practice-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Use Cases */
.use-cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.use-case {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.use-case h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Contact Info */
.contact-info {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);

}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.contact-method {
    text-align: center;
    padding: 1rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
}

.contact-method h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .download-grid,
    .links-grid {
        grid-template-columns: 1fr;
    }

    .process-step {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .step-number {
        align-self: flex-start;
        min-width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .step-content h3 {
        font-size: 1.25rem;
    }

    .step-details {
        padding: 1rem;
    }

    .column-list {
        grid-template-columns: 1fr;
    }

    .filter-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .filter-label {
        min-width: auto;
        font-size: 0.9rem;
    }

    .filter-input-group {
        width: 100%;
        justify-content: flex-start;
    }

    .filter-input {
        width: 130px;
    }

    .filter-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .filter-actions button {
        width: 100%;
    }

    .workflow-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .workflow-image {
        order: -1;
    }

    .project-highlights {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .highlight-item {
        padding: 1rem;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .detail-value {
        text-align: left;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .post-meta {
        flex-direction: column;
        gap: 0.25rem;
    }

    .data-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .data-fields {
        grid-template-columns: 1fr;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
    body {
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .page-header {
        padding: 2rem 0;
    }

    section {
        padding: 2rem 0;
    }

    .download-item,
    .link-card,
    .blog-post {
        padding: 1.5rem;
    }

    .data-stats {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

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

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

/* 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 states */
.btn:focus,
.nav-link:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .footer,
    .graph-controls,
    .hero-buttons,
    .pagination {
        display: none;
    }

    body {
        margin-top: 0;
        font-size: 12pt;
        line-height: 1.4;
    }

    .container {
        max-width: none;
        margin: 0;
        padding: 0;
    }
}

/* Graph loading and error states */
.graph-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 2rem;
    text-align: center;
    background: var(--background-color);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 15s ease-in-out;
    border-radius: 2px;
}

.graph-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 2rem;
    text-align: center;
    background: #fdf2f2;
    border: 2px solid #f87171;
    border-radius: 12px;
    color: #991b1b;
}

.graph-error h3 {
    color: #dc2626;
    margin-bottom: 1rem;
}

.error-details {
    font-style: italic;
    opacity: 0.8;
    margin: 0.5rem 0;
}

.error-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.graph-timeout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 2rem;
    text-align: center;
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 12px;
    color: #92400e;
}

.graph-timeout h3 {
    color: #d97706;
    margin-bottom: 1rem;
}

.timeout-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
    min-width: 200px;
}

.timeout-info {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
}

.graph-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 2rem;
    text-align: center;
    background: #f0f9ff;
    border: 2px solid #0ea5e9;
    border-radius: 12px;
    color: #0c4a6e;
}

.graph-message h3 {
    color: #0284c7;
    margin-bottom: 1rem;
}

.message-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Full height and sizing fixes */
.ifc-viewer-container {
    height: 80vh;
    min-height: 600px;
    width: 100%;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

.ifc-viewer-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.graph-content-container {
    height: 100% !important;
    min-height: 600px !important;
}

.enhanced-iframe {
    height: 100% !important;
    min-height: 600px !important;
}

/* Loading states and visual improvements */
.ifc-section {
    padding: 4rem 0;
    background: var(--white);
}

.ifc-viewer-container {
    position: relative;
    margin: 2rem 0;
}

.ifc-controls {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.ifc-controls .btn {
    flex: 0 1 auto;
    white-space: nowrap;
}

/* Ensure full height for embedded viewers */
.graphs-section, .ifc-section {
    min-height: 90vh;
    background: var(--white);
}

.graph-container, .ifc-viewer-container {
    position: relative;
    z-index: 1;
}

/* About Page Styles */
.about-section {
    padding: 4rem 0;
    background: var(--white);
}

.about-section h1 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-color);
    font-size: 2.5rem;
}

.thesis-explanation {
    background: var(--light-color);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    margin-bottom: 3rem;
    border-left: 4px solid var(--primary-color);
}

.thesis-explanation h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.thesis-explanation h3 {
    color: var(--dark-color);
    margin: 2rem 0 1rem 0;
    font-size: 1.3rem;
}

.thesis-explanation p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--gray-700);
}

.thesis-explanation ul {
    margin: 1rem 0 1.5rem 0;
    padding-left: 2rem;
}

.thesis-explanation ul li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    color: var(--gray-700);
}

.thesis-explanation ul li strong {
    color: var(--primary-color);
    font-weight: 600;
}

.credits-section {
    margin-bottom: 3rem;
}

.credits-section h2 {
    color: var(--dark-color);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
}

.credit-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.credit-item p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--gray-700);
}

.credit-item ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.credit-item ul li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
    color: var(--gray-700);
}

.credit-item strong {
    color: var(--dark-color);
    font-weight: 600;
}

.credit-item em {
    font-style: italic;
    color: var(--secondary-color);
}

.credit-item a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

.credit-item a:hover {
    color: var(--dark-color);
}

.contact-section {
    background: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--success-color);
}

.contact-section h2 {
    color: var(--success-color);
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

.contact-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--gray-700);
}

.contact-section strong {
    color: var(--dark-color);
    font-weight: 600;
}

/* Sources section within About page */
.sources-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-200);
}

.sources-section h2 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 2rem;
}

.sources-section > p {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    font-style: italic;
}

.sources-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sources-list .source-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.sources-list .source-item:hover {
    transform: translateY(-2px);
}

.sources-list .source-item h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.source-author {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.source-publication {
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.source-description {
    color: var(--gray-700);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.source-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.source-link:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

/* Contact Page Styles */
.contact-page-section {
    padding: 4rem 0;
    background: var(--white);
}

.contact-page-section h1 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-color);
    font-size: 2.5rem;
}

.contact-info-section {
    max-width: 1400px;
    margin: 0 auto;
}

.contact-intro {
    text-align: center;
    margin-bottom: 3rem;
    background: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.contact-intro p {
    font-size: 1.2rem;
    color: var(--gray-700);
    margin: 0;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--primary-color);
    text-align: center;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.contact-item p {
    color: var(--gray-700);
    margin: 0;
    font-size: 1.1rem;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

.collaboration-note {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.collaboration-note:hover {
    transform: translateY(-2px);
}

.collaboration-note h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: left;
    font-size: 1.8rem;
}

.collaboration-note p {
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    text-align: left;
    font-size: 1.1rem;
}

.collaboration-note ul {
    max-width: 600px;
    margin: 0 auto;
    padding-left: 2rem;
}

.collaboration-note li {
    margin-bottom: 0.8rem;
    color: var(--gray-700);
    line-height: 1.6;
}

/* License section styling - matching citation section */
.license-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-200);
}

.license-section h2 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 2rem;
}

.license-info {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.license-info:hover {
    transform: translateY(-2px);
}

.license-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.license-type {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

.license-name {
    font-weight: 500;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.license-info p {
    color: var(--gray-700);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.license-info p:last-child {
    margin-bottom: 0;
}

/* Citation section styling - matching sources and credits sections */
.citation-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-200);
}

.citation-section h2 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 2rem;
}

.citation-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.citation-item:hover {
    transform: translateY(-2px);
}

.citation-item h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.citation-item p {
    color: var(--gray-700);
    line-height: 1.5;
    margin: 0;
}

.citation-item code {
    background: var(--gray-50);
    padding: 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.9rem;
    display: block;
    white-space: pre-wrap;
    color: var(--gray-800);
}

/* Credits section styling - matching sources section */
.credits-section {
    margin-top: 3rem;
}

.credits-section h2 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 2rem;
}

.credit-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.credit-item:hover {
    transform: translateY(-2px);
}

.credit-item h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.credit-item p {
    color: var(--gray-700);
    line-height: 1.5;
    margin: 0;
}
