/* CSS Custom Properties */
:root {
    --primary-color: #e10813;
    --primary-dark: #181817;
    --secondary-color: #e10813;
    --accent-color: #109eb1;
    --text-primary: #181817;
    --text-secondary: #181817;
    --text-light: #9e9e9e;
    --bg-primary: #ffffff;
    --bg-secondary: #f2f2f2;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), #f97316);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'museo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    opacity: 1;
    overflow-x: hidden;
}

video {
    object-fit: fill;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Logo - Updated */
.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 2rem;
}

.header-logo {
    text-align: left;
}

.header-amsterdamumc {
    text-align: right;
    margin-top: -22px; /* Move up to align with main logo */
}

/* Hero Section */
.hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    padding: 3rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 10;
}



.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
    z-index: 1;
}

.hero-content {
    opacity: 1;
    transform: translateY(0);
    width: 100%;
}

.hero-title {
    font-family: 'museo-sans-rounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    white-space: normal;
    color: #181817;
}

.hero-description {
    font-size: 1.4rem;
    margin-bottom: 0rem;
    color: #181817;
    line-height: 1.7;
}

.hero-link {
    color: #109eb1;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
}

.hero-link:hover {
    color: #0d7a8a;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Summary Figure Section */
.summary-figure {
    padding: 0.5rem 0rem 0rem 0rem;
    background: var(--bg-secondary);
    position: relative;
    z-index: 1;
}

.summary-card {
    background: var(--bg-primary);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
    border: 1px solid transparent;
    cursor: pointer;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.summary-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
    border-radius: 4px;
}

.source-container {
    position: relative;
    display: inline-block;
    margin-top: 8px;
}

.source-trigger {
    font-size: 0.8rem;
    color: #109eb1;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
}

.source-trigger:hover {
    color: #0d7a8a;
}

.source-popup {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 0.75rem;
    padding: 10px 14px;
    border-radius: 6px;
    min-width: 300px;
    max-width: 450px;
    text-align: left;
    line-height: 1.5;
    z-index: 1000;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    white-space: normal;
}

.source-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 20px;
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.source-container:hover .source-popup {
    display: block;
}

.source-container.active .source-popup {
    display: block;
}

@media (max-width: 768px) {
    .source-popup {
        position: fixed;
        bottom: auto;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 85vw;
        max-width: 400px;
        z-index: 1000;
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .source-popup::after {
        display: none;
    }

    .source-container:hover .source-popup {
        display: none;
    }

    .source-container.active .source-popup {
        display: block;
    }
}

.source-container-card {
    position: absolute;
    bottom: 8px;
    right: 8px;
    margin-top: 0;
}

.source-container-card .source-trigger {
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
}

.source-container-card .source-popup {
    left: auto;
    right: 0;
    bottom: 100%;
}

.source-container-card .source-popup::after {
    left: auto;
    right: 20px;
}

.special-card-image {
    position: relative;
}

/* Services Section */
.services {
    padding: 1rem 0 1rem;
    background: var(--bg-secondary);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible;
}

.top-cards-section {
    padding-bottom: 1rem;
    overflow: visible;
    z-index: 5;
    position: relative;
}

.bottom-cards-section {
    padding-top: 1rem;
    position: relative;
    z-index: 5;
}

/* Top Cards Grid - Calculator and X-ray */
.top-cards-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
    align-items: stretch;
    width: 100%;
    overflow: visible;
}

.top-cards-grid > .card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.top-cards-grid > .card {
    width: 100% !important;
    max-width: 100% !important;
}

/* Bottom Cards Grid - 4 smaller cards */
.bottom-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1rem !important;
    width: 100%;
}

.bottom-cards-grid > .card {
    width: 100% !important;
}

.card {
    background: var(--bg-primary) !important;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: left;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
    border: 1px solid transparent;
    position: relative;
    overflow: visible;
    transform-origin: center;
    will-change: transform, box-shadow;
    cursor: pointer;
    opacity: 1 !important;
    visibility: visible !important;
}

.top-cards-grid .card,
.bottom-cards-grid .card {
    display: flex !important;
    flex-direction: column;
    transform: none !important;
}

.card:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2) !important;
}

/* Calculator Card Styles */
.calculator-card {
    background: var(--accent-color) !important;
    color: white;
    padding: 0 !important;
    overflow: visible;
    border-radius: 8px;
    position: relative;
}

.calculator-card-layout {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
    padding: 1.5rem;
}

.calculator-card-image {
    flex: 0 0 40%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.calculator-card-image .card-thumbnail {
    width: 100%;
    height: auto;
    max-width: 200px;
    border-radius: 8px;
    border: 3px solid white;
    margin: 0;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.calculator-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.calculator-card-text {
    flex: 0 0 auto;
}

.calculator-card .card-title {
    font-family: 'museo-sans-rounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.75rem;
    font-weight: 900;
    margin: 0;
    margin-bottom: 0.75rem;
    color: white;
    line-height: 1.2;
}

.calculator-card .card-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.card-footer-inline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 1rem;
}

.card-action-text-dark {
    font-style: italic;
    font-weight: 300;
    font-size: 0.9rem;
    color: white;
    white-space: nowrap;
    opacity: 0.9;
    transition: all 0.15s ease-out;
}

.card-arrow-inline {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.15s ease-out;
    flex-shrink: 0;
    line-height: 1;
    text-align: center;
}

.calculator-card:hover .card-arrow-inline {
    background: rgba(255, 255, 255, 0.4);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 158, 177, 0.3);
}

.calculator-card:hover .card-action-text-dark {
    opacity: 1;
    transform: translateX(-5px);
}

/* X-ray Card Styles */
.xray-card {
    padding: 0 !important;
    display: flex !important;
    flex-direction: column;
    background: var(--bg-primary) !important;
}

.xray-card-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
    flex: 1;
}

.card-thumbnail-xray {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid white;
    margin-bottom: 1rem;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.xray-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.xray-card .card-title {
    font-family: 'museo-sans-rounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.75rem;
    font-weight: 900;
    margin: 0;
    margin-bottom: 0.25rem;
    color: #181817;
    line-height: 1.2;
}

.xray-card .card-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.1rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #b2b2b2;
}

.xray-card .card-duration i {
    font-size: 0.8rem;
}

.xray-card .card-description {
    font-size: 1rem;
    line-height: 1.5;
    color: #818181;
    margin-bottom: 0;
    padding-right: 3rem;
}

.xray-card .card-arrow {
    margin-top: auto;
    align-self: flex-end;
    font-size: 1rem;
    color: var(--accent-color);
    transition: all 0.15s ease-out;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.xray-card:hover .card-arrow {
    transform: translateX(5px);
    background: var(--accent-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(16, 158, 177, 0.3);
}

/* Small Card Styles */
.small-card {
    padding: 0 !important;
    background: #f2f2f2 !important;
    min-height: 280px;
}

.small-card-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
}

.card-thumbnail-small {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid white;
    margin-bottom: 1rem;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.small-card .card-title {
    font-family: 'museo-sans-rounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.1rem;
    font-weight: 900;
    margin: 0;
    margin-bottom: 0.25rem;
    color: #181817;
    line-height: 1.2;
}

.small-card .card-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.1rem;
    margin-bottom: 0.1rem;
    font-size: 0.875rem;
    color: #b2b2b2;
}

.small-card .card-duration i {
    font-size: 0.75rem;
}

.small-card .card-description {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #818181;
    margin-bottom: 2.5rem;
}

.small-card .card-arrow {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 1rem;
    color: var(--accent-color);
    transition: all 0.15s ease-out;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.small-card:hover .card-arrow {
    transform: translateX(5px);
    background: #109eb1;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 158, 177, 0.3);
}


/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .top-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }

    .top-cards-section {
        padding-bottom: 0.1rem;
    }

    .bottom-cards-section {
        padding-top: 0.1rem;
    }

    .summary-figure {
        padding: 0.1rem 0 0 0;
    }

    .services {
        padding: 0.25rem 0 0.25rem;
    }

    .hero {
        padding: 1rem 0;
        min-height: auto;
    }

    .hero-top {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 900px) {
    .bottom-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }
}

@media (max-width: 600px) {
    .bottom-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }

    .calculator-card-layout {
        flex-direction: column;
    }

    .calculator-card-content {
        order: -1;
    }
    
    .calculator-card-image {
        flex: none;
        padding: 1.5rem;
    }

    .hero {
        padding: 0.75rem 0;
        min-height: auto;
    }

    .hero-top {
        margin-bottom: 0.25rem;
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .services {
        padding: 0.15rem 0;
    }

    .top-cards-section {
        padding-bottom: 0;
    }

    .bottom-cards-section {
        padding-top: 0;
    }

    .summary-figure {
        padding: 0.1rem 0 0 0;
    }
}

.card-arrow {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 1rem;
    color: var(--accent-color);
    transition: all 0.15s ease-out;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    flex-shrink: 0;
}

.card-footer {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    left: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: flex-end;
}

.card-action-text {
    font-style: italic;
    font-weight: 300;
    font-size: 0.9rem;
    color: white;
    white-space: nowrap;
    opacity: 0.9;
    transition: all 0.15s ease-out;
}

.card:hover .card-arrow {
    transform: translateX(5px);
    background: #109eb1;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 158, 177, 0.3);
}

.special-card:hover .card-action-text {
    opacity: 1;
    transform: translateX(-5px);
}

.card-arrow::before {
    display: block;
    text-align: center;
    line-height: 40px;
}

.card-content {
    margin-left: 0; /* All content aligned consistently */
    padding-left: 47px; /* Space for icon */
    padding-top: 0.0rem; /* Small top spacing */
}

.special-card .card-content {
    padding-left: 0; /* Reset padding for new layout */
}

.special-card .special-card-content {
    padding-left: 0;
}

.card:nth-child(4) .card-content,
.card:nth-child(5) .card-content,
.card:nth-child(6) .card-content {
    padding-left: 39px; /* Less space for smaller icons */
}

.card-icon {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    width: 36px;
    height: 36px;
    transition: transform 0.2s ease;
    will-change: transform;
}

.special-card .card-icon {
    width: 80px;
    height: 80px;
}

.first-card-icon {
    width: 38px;
    height: 38px;
}

/* Old nth-child card styling removed - using new class-based layout */

/* Special card styling */
.special-card {
    background: var(--accent-color) !important;
    color: white;
    border-radius: 8px;
    padding: 0 !important; /* Remove default padding for custom layout */
}

.special-card .card-title {
    color: white;
}

.special-card .card-description {
    color: rgba(255, 255, 255, 0.9);
}

.special-card .card-icon {
    /*filter: brightness(0) invert(1);*/
}

/* Special Card Layout */
.special-card-layout {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    height: 100%;
    padding: 1.5rem;
    min-height: 200px;
}

.special-card-image {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.special-card-content {
    flex: 1;
    padding-left: 0;
    position: relative;
}

/* Card Thumbnail in special card */
.special-card .card-thumbnail {
    width: 100%;
    height: auto;
    max-width: 200px;
    border-radius: 8px;
    border: 3px solid white;
    margin: 0;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Instruction Card Layout */
.instruction-card-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
}

.instruction-card-content {
    flex: 1;
    padding-left: 0; /* No space needed for icon */
    position: relative;
}

/* Card Thumbnail for instruction card */
.card-thumbnail-instruction {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid white;
    margin-bottom: 1rem;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Adjust first card to remove default padding */
.card:first-child {
    padding: 0 !important;
}

/* Unified Card Layout for Practice, Video, and Notes Cards */
.practice-card-layout,
.video-card-layout,
.notes-card-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
}

.practice-card-content,
.video-card-content,
.notes-card-content {
    flex: 1;
    padding-left: 0;
    position: relative;
}

/* Unified Card Thumbnails for Practice, Video, and Notes Cards */
.card-thumbnail-practice,
.card-thumbnail-video,
.card-thumbnail-notes {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid white;
    margin-bottom: 1rem;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Remove default padding for cards with custom layouts */
.card:nth-child(2), .card:nth-child(4), .card:nth-child(5), .card:nth-child(6) {
    padding: 0 !important;
}

.card-title {
    font-family: 'museo-sans-rounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0;
    color: #181817;
    line-height: 1.2;
}

.card-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.1rem;
    margin-bottom: 0.1rem;
    font-size: 0.875rem;
    color: #b2b2b2;
}

.card-duration i {
    font-size: 0.75rem;
}

.special-card .card-duration {
    color: white;
}

.special-card .card-duration i {
    color: white;
}

.card-description {
    color: #818181;
    line-height: 1.4;
    margin-bottom: 3rem;
}

/* Button styles removed - cards are now clickable */

.special-card .card-arrow {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    bottom: auto;
    right: auto;
}

.special-card .card-footer {
    align-items: center;
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
}

.special-card .card-action-text {
    color: white;
}

.special-card:hover .card-arrow {
    background: #109eb1;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 158, 177, 0.3);
}



/* Responsive design for mobile */
@media (max-width: 768px) {
    .hero-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .header-logo {
        text-align: center;
        margin-bottom: 0.25rem;
    }

    .header-amsterdamumc {
        text-align: center;
        margin-top: 0;
    }

    .header-amsterdamumc img {
        width: 180px;
        height: 72px;
    }

    .hero-content {
        width: 100%;
    }


    .card:nth-child(4) .card-title,
    .card:nth-child(5) .card-title,
    .card:nth-child(6) .card-title {
        font-size: 1.25rem !important;
    }

    .card:nth-child(4) .card-description,
    .card:nth-child(5) .card-description,
    .card:nth-child(6) .card-description {
        font-size: 0.9rem !important;
        margin-bottom: 2rem !important;
    }
}

/* Footer */
.footer {
    background: #e9e8e6;
    color: #181817;
    padding: 3rem 0 1rem;
    position: relative;
}

.footer-content {
    display: block;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    padding: 0 1rem;
    position: relative;
}

.footer-content h4 {
    font-family: 'museo-sans-rounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #181817;
}

.footer-content ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 60%;
    height: auto;
}

.footer-bottom .footer-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-bottom .footer-logo img {
    width: 200px;
    height: auto;
}

.footer-section p {
    font-size: 0.85rem;
    color: #999;
    margin: 0;
    line-height: 1.4;
}



.footer-logo svg {
    width: 32px;
    height: 32px;
}

.footer-section h4 {
    font-family: 'museo-sans-rounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #181817;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li,
.footer-content ul li {
    margin-bottom: 0rem;
    position: relative;
    padding-left: 10px;
    line-height: 1.2rem;
}

.footer-section ul li::before,
.footer-content ul li::before {
    content: "●";
    color: var(--primary-color);
    position: absolute;
    left: -20px;
    top: 0.6rem;
    transform: translateY(-50%);
    font-size: 12px;
}

.footer-section ul li a,
.footer-content ul li a {
    color: #109eb1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 8px 6px;
    border-radius: 1px;
    background: transparent;
    border-left: 3px solid transparent;
}

.footer-section ul li a:hover,
.footer-content ul li a:hover {
    color: var(--primary-color);
    background: rgba(16, 158, 177, 0.05);
    border-left: 3px solid var(--primary-color);
    transform: translateX(2px);
}

.literature-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.footer-disclaimer {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.6;
}

.disclaimer-link {
    color: #109eb1;
    text-decoration: underline;
}

.disclaimer-link:hover {
    color: #0d7a8a;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #cccccc;
    color: #181817;
    position: relative;
}

.back-to-top {
    position: absolute;
    right: 0;
    bottom: 0;
    background: #109eb1;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(16, 158, 177, 0.3);
}

.back-to-top:hover {
    background: #0e8a9a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 158, 177, 0.4);
}

@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: white;
    margin: 2rem;
    padding: 0;
    border-radius: 12px;
    width: 95%;
    max-width: 1200px;
    height: 85vh;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

/* Mobile modal adjustments */
@media (max-width: 768px) {
    .modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
        height: 90vh;
        border-radius: 8px;
    }
    
    .close {
        right: 15px;
        top: 15px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
}

.modal.show .modal-content {
    transform: scale(1);
}

.close {
    position: absolute;
    right: 25px;
    top: 25px;
    color: var(--text-primary);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.close:hover {
    background-color: var(--bg-secondary);
}

#modalFrame {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

/* Video modal specific styling */
.video-modal-content {
    max-width: 95vw;
    max-height: 90vh;
    width: 85%;
    height: auto;
    padding: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.video-modal-content #videoContainer {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.video-modal-content #videoContainer > div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: visible;
}

.video-modal-content iframe {
    border-radius: 12px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .video-modal-content {
        width: 95%;
        height: auto;
        padding: 10px;
        max-width: calc(100vw - 20px);
    }
    
    .video-modal-content #videoContainer {
        border-radius: 8px;
    }
    
    .video-modal-content #videoContainer > div {
        border-radius: 8px;
    }
    
    .video-modal-content iframe {
        border-radius: 8px;
    }
}

@media (min-width: 1200px) {
    .video-modal-content {
        width: 75%;
        max-width: 1100px;
        padding: 20px;
    }
}

/* Image modal specific styling */
.image-modal-content {
    max-width: 95vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    padding: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    background: var(--bg-primary);
    border-radius: 12px;
}

.modal-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

@media (max-width: 768px) {
    .image-modal-content {
        width: 95%;
        padding: 10px;
        max-width: calc(100vw - 20px);
        border-radius: 8px;
    }
    
    .modal-image {
        border-radius: 4px;
    }
}

@media (min-width: 1200px) {
    .image-modal-content {
        padding: 20px;
        max-width: 1200px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-primary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-visual {
        height: 300px;
    }

    .floating-card {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .card {
        padding: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
        white-space: nowrap;
        margin-bottom: 0.5rem;
    }

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

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .card {
        padding: 1.5rem;
    }

    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .services {
        padding: 0.15rem 0;
    }

    .hero {
        padding: 0.75rem 0;
        min-height: auto;
    }

    .hero-top {
        margin-bottom: 0.25rem;
    }

    .top-cards-section {
        padding-bottom: 0;
    }

    .bottom-cards-section {
        padding-top: 0;
    }

    .summary-figure {
        padding: 0.1rem 0 0 0;
    }

    .section-header {
        margin-bottom: 0.5rem;
    }
}

/* Animation on scroll */
.card[data-aos="fade-up"] {
    opacity: 0;
    //transform: translateY(50px);
    transition: all 0.6s ease;
}

.card[data-aos="fade-up"].animate {
    opacity: 1;
    //transform: translateY(0);
}
