/* Add custom fonts */
@font-face {
    font-family: 'Blinker';
    src: url('https://static.igem.wiki/teams/5836/fonts/blinker/blinker-regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Raleway';
    src: url('https://static.igem.wiki/teams/5836/fonts/raleway/raleway-regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fraunces';
    src: url('https://static.igem.wiki/teams/5836/fonts/fraunces/fraunces-72pt-regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nixie One';
    src: url('') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Test to see if font is loading - this should be removed after testing */
.test-blinker {
    font-family: 'Blinker', Arial, sans-serif;
}

.test-nixie {
    font-family: 'Nixie One', Arial, sans-serif;
}

/* Reset any inherited styles and ensure full coverage */
.video-carousel-container {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: calc(-2rem); /* Remove any top margin from layout */
    height: 100vh;
    overflow: hidden;
    background: #000;
    z-index: 1;
}

.video-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s ease-in-out;
    overflow: hidden;
}

.video-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.video-slide.prev {
    transform: translateX(-100%);
}

.video-slide iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.78vh; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
    pointer-events: none;
    border: none;
}

.carousel-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
    text-align: center;
    width: 100%;
}

.carousel-title {
    font-size: clamp(2.5rem, 6vw, 8rem);
    font-weight: bold;
    color: #d7af6b;
    margin: 0;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.05em;
    font-family: 'Fraunces', serif; /* Changed to Fraunces */
    line-height: 1.1;
    text-align: center;
    display: block;
}

.carousel-subtitle {
    font-size: clamp(0.9rem, 1.8vw, 2rem);
    color: white;
    margin: 1rem 0 0 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    font-weight: 300;
    letter-spacing: 0.02em;
    font-family: 'Fraunces', sans-serif; /* Keep as Blinker */
    line-height: 1.3;
    text-align: center;
    display: block;
}

.carousel-subtitle div {
    margin: 0;
    padding: 0;
}

/* Main content section - break out of container */
.inclusivity-main-content {
    background-color: #0b1320;
    padding: 4rem 0 4rem 220px; /* Reduced left padding from 280px to 220px to move content left */
    min-height: 100vh;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: 0;
    margin-bottom: 0;
}

.content-frame {
    width: 75%; /* Match model.css */
    max-width: 1200px; /* Match model.css */
    margin: 0 auto;
    padding: 2rem;
    background-color: #0b1320;
    border-radius: 20px;
    color: #0b1320;
    font-family: 'Arial', sans-serif;
    backdrop-filter: blur(10px);
}

.content-frame h2 {
    color: #d7af6b; /* Changed from #6E0D25 to #d7af6b */
    font-size: clamp(1.98rem, 3.3vw, 2.75rem);
    margin-bottom: 1.65rem;
    font-weight: bold;
    text-align: center;
    font-family: 'Fraunces', serif; /* Changed to Fraunces */
}

.content-frame h3 {
    color: #6E0D25;
    font-size: clamp(1.43rem, 2.42vw, 1.98rem);
    margin-top: 2.2rem;
    margin-bottom: 1.1rem;
    font-weight: 600;
    font-family: 'Blinker', sans-serif; /* Changed to Blinker */
}

.content-frame p {
    font-size: clamp(1.1rem, 1.65vw, 1.32rem);
    line-height: 1.6;
    margin-bottom: 1.65rem;
    text-align: justify;
    color: #0b1320;
    font-family: 'Raleway', sans-serif; /* Changed to Raleway */
}

/* Graph container inside content frame */
.graph-container {
    position: relative;
    width: 100%;
    height: 440px; /* Increased from 400px by 10% */
    background: #0b1320;
    border-radius: 15px;
    margin: 1.65rem 0; /* Increased from 1.5rem by 10% */
    overflow: hidden;
    /* border: 2px solid rgb(255, 255, 255); */
}

#inclusivity-graph {
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.graph-tooltip {
    position: absolute;
    background: rgba(30, 30, 30, 0.95);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    pointer-events: none;
    visibility: hidden;
    white-space: nowrap;
    border: 2px solid #6E0D25;
    font-family: 'Raleway', sans-serif; /* Changed to Raleway */
    font-weight: 500;
    z-index: 100; /* Reduced from 1000 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.graph-popup {
    position: absolute;
    visibility: hidden;
    opacity: 0;
    display: none;
    min-width: 280px;
    max-width: 400px;
    max-height: 250px;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    z-index: 1002;
    border: 2px solid #d7af6b;
    background-color: #0b1320;
    color: white;
    font-family: serif;
    font-weight: 400;
    text-align: center;
    font-size: clamp(14px, 2.5vw, 18px);
    cursor: pointer;
    white-space: normal;
    transition: all 0.3s ease;
    pointer-events: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
    overflow-y: auto;
}

/* Text Classes */
.section-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.2rem, 4.5vw, 4rem); /* Increased for desktop */
    font-weight: bold;
    color: #d7af6b;
    margin: 3rem 0 2rem 0;
    text-align: left;
    line-height: 1.2;
}

.subsection-title {
    font-family: serif !important;
    font-size: clamp(1.5rem, 3vw, 2.5rem) !important;
    font-weight: 600 !important;
    color: #afc1d0 !important;
    margin: 2.5rem 0 1.5rem 0 !important;
    text-align: center !important;
    line-height: 1.3 !important;
}

/* Specific override for content-frame h3 when it has subsection-title class */
.content-frame h3.subsection-title {
    font-family: serif !important;
    font-size: clamp(1.5rem, 3vw, 2.5rem) !important;
    font-weight: 600 !important;
    color: #afc1d0 !important;
    margin: 2.5rem 0 1.5rem 0 !important;
    text-align: center !important;
    line-height: 1.3 !important;
}

.paragraph {
    font-family: 'Nixie One', serif !important;
    font-size: clamp(1.15rem, 1.45vw, 1.45rem) !important; /* Match model.css */
    color: white !important;
    margin: 1.5rem 0;
    text-align: left !important;
    line-height: 1.6 !important;
}

.big-paragraph {
    font-family: 'Nixie One', serif !important;
    font-size: clamp(1.15rem, 1.45vw, 1.45rem) !important; /* Match model.css */
    color: white !important;
    margin: 1.5rem 0;
    text-align: left !important;
    line-height: 1.7 !important;
}

.reference {
    text-align: left !important;
    line-height: 1.8 !important;
    font-size: clamp(1rem, 1.2vw, 1.2rem) !important; /* Match model.css size */
    margin: 1.5rem 0 !important;
}

/* Force reference paragraphs to match model.css */
.reference p {
    font-family: 'Nixie One', serif !important;
    font-size: clamp(1rem, 1.2vw, 1.2rem) !important;
    color: white !important;
    text-align: left !important;
    line-height: 1.8 !important;
    margin-bottom: 1rem !important;
}

/* Bold text styling - white bold for regular text */
strong, b {
    color: white;
    font-weight: bold;
}

/* Reference links styling */
.reference-link {
    color: #afc1d0;
    text-decoration: underline;
}

.reference-link:hover {
    color: #d7af6b;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .reference-link {
        word-break: break-all !important;
        display: inline-block !important;
        max-width: 100% !important;
    }
}

/* Domains List Styling */
.domains-list {
    font-family: serif;
    font-size: clamp(1.15rem, 1.45vw, 1.45rem);
    color: white;
    margin: 2rem 0;
    text-align: left;
    line-height: 1.6;
    list-style: none;
    padding-left: 0;
}

.domains-list li {
    margin: 0.8rem 0;
    padding-left: 6rem;
    position: relative;
}

.domains-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: -1.5rem;
    width: 5rem;
    height: 5rem;
    background-image: url('https://static.igem.wiki/teams/5836/model/special/bullet.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.domain-name {
    font-weight: bold;
}

/* Set colors for domain names dynamically */
.domains-list li[data-color] .domain-name {
    color: var(--domain-color);
}

/* Define custom properties for each color */
.domains-list li[data-color="#6E0D25"] {
    --domain-color: #6E0D25;
}

.domains-list li[data-color="#d7af6b"] {
    --domain-color: #d7af6b;
}

.domains-list li[data-color="#2E8B57"] {
    --domain-color: #2E8B57;
}

.domains-list li[data-color="#4682B4"] {
    --domain-color: #4682B4;
}

.domains-list li[data-color="#9370DB"] {
    --domain-color: #9370DB;
}

.domains-list li[data-color="#FF6347"] {
    --domain-color: #FF6347;
}

.domains-list li[data-color="#32CD32"] {
    --domain-color: #32CD32;
}

.domains-list li[data-color="#FF1493"] {
    --domain-color: #FF1493;
}

.domains-list li[data-color="#00CED1"] {
    --domain-color: #00CED1;
}

.domains-list li[data-color="#FF8C00"] {
    --domain-color: #FF8C00;
}

.domains-list li[data-color="#8A2BE2"] {
    --domain-color: #8A2BE2;
}

/* Dimensions List Styling */
.dimensions-list {
    font-family: serif;
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    color: white;
    margin: 2rem 0;
    text-align: left;
    line-height: 1.6;
    list-style: none;
    padding-left: 0;
}

.dimensions-list li {
    margin: 0.8rem 0;
    padding-left: 6rem;
    position: relative;
}

.dimensions-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: -1.5rem;
    width: 5rem;
    height: 5rem;
    background-image: url('https://static.igem.wiki/teams/5836/model/special/bullet.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.dimension-name {
    font-weight: bold;
}

/* Set colors for dimension names dynamically */
.dimensions-list li[data-color] .dimension-name {
    color: var(--dimension-color);
}

/* Define custom properties for each dimension color */
.dimensions-list li[data-color="#3ba297"] {
    --dimension-color: #3ba297;
}

.dimensions-list li[data-color="#1c3f60"] {
    --dimension-color: #1c3f60;
}

.dimensions-list li[data-color="#d7af6b"] {
    --dimension-color: #d7af6b;
}

.dimensions-list li[data-color="#993434"] {
    --dimension-color: #993434;
}

.dimensions-list li[data-color="#cca300"] {
    --dimension-color: #cca300;
}

.dimensions-list li[data-color="#ff914d"] {
    --dimension-color: #ff914d;
}

.dimensions-list li[data-color="#5e17eb"] {
    --dimension-color: #5e17eb;
}

.dimensions-list li[data-color="#b1d4e0"] {
    --dimension-color: #b1d4e0;
}

.dimensions-list li[data-color="#6e0d25"] {
    --dimension-color: #6e0d25;
}

.dimensions-list li[data-color="#cc0000"] {
    --dimension-color: #cc0000;
}

.graph-description {
    font-family: 'Nixie One', serif;
    font-size: clamp(1.3rem, 1.7vw, 1.7rem);
    color: white !important;
    margin: 1.5rem 0;
    text-align: left;
    line-height: 1.6;
    margin-left: 280px; /* Add left margin to prevent overlap with navigation */
    margin-right: 50px;
}

/* Remove graph section - content is now inside frame */
.graph-section {
    display: none;
}

/* Remove old content sections */
.carousel-spacer,
.inclusivity-content,
.content-wrapper {
    display: none;
}

/* Inclusivity Dimensions Image */
.dimensions-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 2.2rem 0; /* Increased from 2rem by 10% */
}

.dimensions-image {
    position: relative;
    width: 66%; /* Increased from 60% by 10% */
    max-width: 440px; /* Increased from 400px by 10% */
    cursor: pointer;
    border-radius: 15px;
}

.dimensions-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    transition: all 0.8s ease-in-out;
    transform-origin: center center;
}

.dimensions-default {
    position: relative;
    opacity: 1;
    transform: scale(1.875) rotate(0deg);
    z-index: 2;
}

/* Increase spinning photo size by 20% on mobile */
@media (max-width: 768px) {
    .dimensions-default {
        transform: scale(2.25) rotate(0deg); /* 1.875 * 1.2 = 2.25 */
    }
    
    .dimensions-image:hover .dimensions-default {
        transform: scale(2.1) rotate(360deg); /* 1.75 * 1.2 = 2.1 */
    }
    
    .dimensions-hover {
        transform: scale(2.1) rotate(0deg); /* 1.75 * 1.2 = 2.1 */
    }
    
    .dimensions-image:hover .dimensions-hover {
        transform: scale(2.1) rotate(360deg); /* 1.75 * 1.2 = 2.1 */
    }
}

.dimensions-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: scale(1.75) rotate(0deg);
    z-index: 1;
}

.dimensions-image:hover .dimensions-default {
    opacity: 0;
    transform: scale(1.75) rotate(360deg);
}

.dimensions-image:hover .dimensions-hover {
    opacity: 1;
    transform: scale(1.75) rotate(360deg);
}

/* Inclusivity Sections */
.inclusivity-sections {
    background-color: #0b1320;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 4rem 0;
}

/* Inclusivity Sections Wrapper - Inside Main Frame */
.inclusivity-sections-wrapper {
    margin-top: 4.4rem; /* Increased from 4rem by 10% */
}

.inclusivity-section {
    margin-bottom: 4.4rem; /* Increased from 4rem by 10% */
}

.section-title {
    color: #d7af6b; /* Changed from #6E0D25 to #d7af6b */
    font-size: clamp(2.2rem, 4.4vw, 3.3rem);
    font-weight: bold;
    text-align: center;
    margin-bottom: 2.2rem;
    font-family: 'Fraunces', serif; /* Changed to Fraunces */
}

.section-frame {
    background-color: #0b1320; /* Changed from rgba(64, 64, 64, 0.7) to #0b1320 */
    border-radius: 20px;
    padding: 3.3rem; /* Increased from 3rem by 10% */
    backdrop-filter: blur(10px);
}

/* Section Carousel */
.section-carousel {
    position: relative;
    width: 100%;
    max-width: 660px; /* Increased from 600px by 10% */
    margin: 0 auto 2.2rem auto; /* Increased margin from 2rem by 10% */
    border-radius: 15px;
    overflow: hidden;
}

.carousel-images {
    position: relative;
    width: 100%;
    height: 330px; /* Increased from 300px by 10% */
    overflow: hidden;
    border-radius: 15px;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* Navigation Arrows - Made smaller */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    width: 35px; /* Reduced from 50px */
    height: 35px; /* Reduced from 50px */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-nav svg {
    width: 18px; /* Smaller SVG */
    height: 18px;
}

.carousel-nav:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
}

/* Portrait carousel styling for Media Inclusivity - same as Social Media Campaigns */
#media-inclusivity .section-carousel {
    max-width: 500px; /* Portrait width like social media */
    height: 600px; /* Portrait height like social media */
}

#media-inclusivity .carousel-images {
    height: 600px; /* Portrait container height */
}

#media-inclusivity .carousel-image img {
    object-fit: cover;
    object-position: center;
}

/* Rotation fix for specific images */
.rotate-90 {
    transform: rotate(90deg);
}

.rotate-90-right {
    transform: rotate(90deg);
}

.rotate-90-left {
    transform: rotate(-90deg);
}

.carousel-prev {
    left: 10px; /* Reduced from 15px */
}

.carousel-next {
    right: 10px; /* Reduced from 15px */
}

/* Section Description - Force white color */
.section-description {
    color: white !important;
    font-size: clamp(1.1rem, 1.65vw, 1.32rem);
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 2.2rem;
    font-family: 'Nixie One', sans-serif; /* Changed to Nixie One */
}

/* Subsection Title - Force gold color */
.subsection-title {
    color: #d7af6b !important;
    font-size: clamp(1.43rem, 2.2vw, 1.76rem);
    font-weight: 600;
    text-align: left;
    margin-bottom: 1.65rem;
    font-family: 'Nixie One', sans-serif; /* Changed to Nixie One */
}

/* Collaboration Cards */
.collaboration-cards {
    display: flex;
    flex-direction: column;
    gap: 0.8rem; /* Reduced for stripe-like appearance */
}

.collaboration-card {
    background-color: rgba(255, 255, 255, 0.5); /* Much whiter for better contrast */
    border-radius: 15px;
    padding: 0.8rem 1.5rem; /* Reduced vertical padding for stripe appearance */
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem; /* Reduced internal gap */
    backdrop-filter: blur(10px);
    position: relative;
}

.collaboration-card:hover {
    background-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    min-height: 60px; /* Ensure consistent height */
    /* Center wrapper container like original title position */
}

.card-arrow-invisible {
    opacity: 0;
    pointer-events: none;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.card-arrow-invisible img {
    width: 100px;
    height: 100px;
}

.card-title-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the wrapper content */
    justify-content: space-between; /* Distribute space evenly between invisible top, title, and visible bottom icons */
    flex: 1; /* Take up center space between arrows */
    gap: 0; /* Remove gap to let space-between handle spacing */
    /* This container is now centered in the card-header */
    /* Title and icons will have matching widths and alignment */
}

    .card-content {
        display: none !important; /* Force hide card content on mobile */
        padding: 0 !important;
        margin: 0 !important;
        height: 0 !important;
    }.card-title-with-icon {
    display: flex;
    align-items: center;
    gap: 0.8rem; /* Space between icon and title */
}

.card-icon {
    width: 64px; /* 2x current size: 32px * 2 = 64px */
    height: 64px; /* 2x current size: 32px * 2 = 64px */
    object-fit: contain;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.card-title-container {
    background-color: #6E0D25; /* Default color, will be overridden by domain-specific classes */
    border-radius: 25px;
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: fit-content; /* Ensure consistent width with icons container */
    min-width: fit-content;
    max-width: calc(100% - 220px); /* Prevent overflow by reserving space for arrows */
}

.card-title {
    color: white;
    font-size: clamp(1.32rem, 2.2vw, 1.65rem);
    font-weight: bold;
    font-family: 'Fraunces', serif;
    margin: 0;
    text-align: center;
    white-space: normal; /* Allow wrapping for long titles */
    line-height: 1.2;
}

/* Removed card description styles as no longer needed */

/* New styles for modal icons below titles */
.card-icons-invisible-top {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    width: fit-content; /* Match title container width */
    min-width: fit-content;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    opacity: 0; /* Invisible for spacing only */
    pointer-events: none;
    /* Remove height: 0 and overflow: hidden to allow natural height for centering */
}

.card-icons {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0; /* Remove gap so icons touch */
    width: fit-content; /* Match title container width */
    min-width: fit-content;
    flex-wrap: wrap;
    margin: 0; /* Remove margins */
    padding: 0; /* Remove any padding */
    /* Icons will start at left edge of title container */
}

.card-icon-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Left-align instead of center */
    margin: 0; /* Remove any margins */
    padding: 0; /* Remove any padding */
}

.modal-icon {
    width: 6px; /* Half of original 12px, more visible than 4.5px */
    height: 6px; /* Half of original 12px, more visible than 4.5px */
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    cursor: pointer;
    border-radius: 3px;
}

.modal-icon:hover {
    transform: scale(1.5);
}

.card-icon-tooltip {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.card-icon-container:hover .card-icon-tooltip {
    opacity: 1;
}

/* Modal structure updates */
.modal-icons-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.modal-icon-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-icon-interactive {
    width: 72px; /* 1.5x the original 48px */
    height: 72px; /* 1.5x the original 48px */
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    border-radius: 8px;
}

.modal-icon-interactive:hover {
    transform: scale(1.2);
    filter: brightness(1.1);
}

.modal-icon-tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.modal-icon-container:hover .modal-icon-tooltip {
    opacity: 1;
}

/* Domain-specific title container colors */
.card-title-container.cultural-linguistic {
    background-color: #6E0D25;
}

.card-title-container.digital {
    background-color: #d7af6b;
}

.card-title-container.accessibility-disability {
    background-color: #2E8B57;
}

.card-title-container.education {
    background-color: #4682B4;
}

.card-title-container.science-research {
    background-color: #9370DB;
}

.card-title-container.media-inclusivity {
    background-color: #FF6347;
}

.card-title-container.mental-health-cognitive {
    background-color: #32CD32;
}

.card-title-container.neurodiversity-developmental {
    background-color: #FF1493;
}

.card-title-container.race-immigrant-refugee {
    background-color: #00CED1;
}

.card-title-container.socioeconomic {
    background-color: #FF8C00;
}

.card-title-container.women {
    background-color: #8A2BE2;
}

/* Domain-specific arrow colors - exact color matches */
.card-arrow.cultural-linguistic img {
    filter: brightness(0) saturate(100%) invert(16%) sepia(63%) saturate(1275%) hue-rotate(323deg) brightness(84%) contrast(95%);
    -webkit-filter: brightness(0) saturate(100%) invert(16%) sepia(63%) saturate(1275%) hue-rotate(323deg) brightness(84%) contrast(95%);
}

.card-arrow.digital img {
    filter: brightness(0) saturate(100%) invert(67%) sepia(38%) saturate(429%) hue-rotate(9deg) brightness(98%) contrast(91%);
    -webkit-filter: brightness(0) saturate(100%) invert(67%) sepia(38%) saturate(429%) hue-rotate(9deg) brightness(98%) contrast(91%);
}

.card-arrow.accessibility-disability img {
    filter: brightness(0) saturate(100%) invert(39%) sepia(18%) saturate(1307%) hue-rotate(96deg) brightness(93%) contrast(85%);
    -webkit-filter: brightness(0) saturate(100%) invert(39%) sepia(18%) saturate(1307%) hue-rotate(96deg) brightness(93%) contrast(85%);
}

.card-arrow.education img {
    filter: brightness(0) saturate(100%) invert(46%) sepia(26%) saturate(1157%) hue-rotate(179deg) brightness(91%) contrast(85%);
    -webkit-filter: brightness(0) saturate(100%) invert(46%) sepia(26%) saturate(1157%) hue-rotate(179deg) brightness(91%) contrast(85%);
}

.card-arrow.science-research img {
    filter: brightness(0) saturate(100%) invert(37%) sepia(94%) saturate(1678%) hue-rotate(243deg) brightness(91%) contrast(88%);
    -webkit-filter: brightness(0) saturate(100%) invert(37%) sepia(94%) saturate(1678%) hue-rotate(243deg) brightness(91%) contrast(88%);
}

.card-arrow.media-inclusivity img {
    filter: brightness(0) saturate(100%) invert(55%) sepia(89%) saturate(678%) hue-rotate(322deg) brightness(104%) contrast(101%);
    -webkit-filter: brightness(0) saturate(100%) invert(55%) sepia(89%) saturate(678%) hue-rotate(322deg) brightness(104%) contrast(101%);
}

.card-arrow.mental-health-cognitive img {
    filter: brightness(0) saturate(100%) invert(69%) sepia(97%) saturate(444%) hue-rotate(54deg) brightness(119%) contrast(119%);
    -webkit-filter: brightness(0) saturate(100%) invert(69%) sepia(97%) saturate(444%) hue-rotate(54deg) brightness(119%) contrast(119%);
}

.card-arrow.neurodiversity-developmental img {
    filter: brightness(0) saturate(100%) invert(26%) sepia(100%) saturate(2807%) hue-rotate(316deg) brightness(109%) contrast(97%);
    -webkit-filter: brightness(0) saturate(100%) invert(26%) sepia(100%) saturate(2807%) hue-rotate(316deg) brightness(109%) contrast(97%);
}

.card-arrow.race-immigrant-refugee img {
    filter: brightness(0) saturate(100%) invert(72%) sepia(70%) saturate(467%) hue-rotate(149deg) brightness(95%) contrast(101%);
    -webkit-filter: brightness(0) saturate(100%) invert(72%) sepia(70%) saturate(467%) hue-rotate(149deg) brightness(95%) contrast(101%);
}

.card-arrow.socioeconomic img {
    filter: brightness(0) saturate(100%) invert(63%) sepia(84%) saturate(1571%) hue-rotate(8deg) brightness(103%) contrast(101%);
    -webkit-filter: brightness(0) saturate(100%) invert(63%) sepia(84%) saturate(1571%) hue-rotate(8deg) brightness(103%) contrast(101%);
}

.card-arrow.women img {
    filter: brightness(0) saturate(100%) invert(19%) sepia(97%) saturate(2362%) hue-rotate(267deg) brightness(87%) contrast(92%);
    -webkit-filter: brightness(0) saturate(100%) invert(19%) sepia(97%) saturate(2362%) hue-rotate(267deg) brightness(87%) contrast(92%);
}

.card-arrow {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%; /* Ensure full height for vertical centering */
}

.card-arrow img {
    width: 132px; /* Increased from 120px by 10% */
    height: 132px; /* Increased from 120px by 10% */
    object-fit: contain;
    transition: transform 0.3s ease;
}

.card-arrow:hover img {
    transform: scale(1.4);
}

/* Card Modal Styles */
.card-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9000; /* Lower than navbar's 9999 */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.card-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(110, 13, 37, 0.5); /* 50% opacity of #6e0d25 */
    backdrop-filter: blur(10px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 15%; /* Start from left where titles start instead of center */
    transform: translateY(-50%); /* Only center vertically, not horizontally */
    background-color: #afc1d0;
    border-radius: 20px;
    padding: 2rem;
    width: 70%; /* Adjusted width since it's not centered anymore */
    max-width: 1000px;
    max-height: 80vh; /* Lowered from 90vh to 80vh so the bottom is always visible */
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    margin-top: 60px; /* Adjust to match your navbar height if needed */
}

.card-modal:not(.active) .modal-content {
    transform: translateY(-50%) scale(0.9); /* Match new positioning without horizontal centering */
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #1c3f60;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background-color: rgba(28, 63, 96, 0.1);
    transform: scale(1.1);
}

.modal-title {
    color: #1c3f60;
    font-size: clamp(1.65rem, 3.3vw, 2.42rem);
    font-weight: bold;
    text-align: center;
    margin: 0 0 2.2rem 0;
    font-family: 'Blinker', Arial, sans-serif !important; /* Added fallback fonts */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-bottom: 2.2rem; /* Increased from 2rem by 10% */
}

.modal-left,
.modal-right {
    flex: 1;
}

.modal-info {
    margin-bottom: 1.65rem; /* Increased from 1.5rem by 10% */
}

.modal-target,
.modal-aim {
    color: #6e0d25;
    font-size: calc(1.65 * clamp(0.99rem, 1.65vw, 1.21rem)); /* Increased by 10% */
    font-weight: 600;
    margin: 0 0 1.1rem 0; /* Increased from 1rem by 10% */
    font-family: 'Nixie One', Georgia, serif !important; /* Added fallback fonts */
    line-height: 1.4;
}

.modal-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.modal-icon-container {
    position: relative;
    display: inline-block;
}

.modal-icon {
    width: 49.5px; /* Half of previous 99px */
    height: 49.5px; /* Half of previous 99px */
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.modal-icon:hover {
    transform: scale(1.1);
}

.modal-icon-tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    pointer-events: none;
    font-family: 'Raleway', sans-serif;
}

.modal-icon-container:hover .modal-icon-tooltip {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .modal-icon {
        width: 37px; /* Half of previous 74px */
        height: 37px; /* Half of previous 74px */
    }
    
    .modal-icon-tooltip {
        font-size: 14px; /* Larger font for mobile */
        padding: 6px 10px;
        bottom: -35px;
    }
}

@media (max-width: 480px) {
    .modal-icon {
        width: 37px; /* Half of previous 74px */
        height: 37px; /* Half of previous 74px */
    }
    
    .modal-icon-tooltip {
        font-size: 13px;
        padding: 5px 8px;
        bottom: -32px;
    }
}

/* Modal Carousel */
.modal-carousel {
    position: relative;
    width: 100%;
    max-width: 660px; /* Landscape width like section carousels */
    height: 330px; /* Landscape height like section carousels */
    margin: 0 auto; /* Center the carousel */
    border-radius: 15px;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.1);
}

.modal-carousel-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.modal-carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.modal-carousel-image.active {
    opacity: 1;
}

.modal-carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.modal-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-carousel-nav:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

/* Social Media Campaign modal carousel - smaller responsive portrait dimensions */
#card-modal[data-card="media-1"] .modal-carousel {
    max-width: min(320px, 85vw) !important; /* Smaller responsive width */
    height: min(400px, 60vh) !important; /* Smaller responsive height */
    width: min(320px, 85vw) !important; /* Force smaller responsive width */
}

/* Ensure the rule works at all screen sizes */
@media (min-width: 1px) {
    #card-modal[data-card="media-1"] .modal-carousel {
        max-width: min(320px, 85vw) !important;
        width: min(320px, 85vw) !important;
        height: min(400px, 60vh) !important;
    }
}

/* Additional high-specificity rule for Social Media Campaign modal */
#card-modal.card-modal[data-card="media-1"] .modal-carousel {
    max-width: min(320px, 85vw) !important;
    width: min(320px, 85vw) !important;
    height: min(400px, 60vh) !important;
    min-height: min(400px, 60vh) !important;
}

.modal-carousel-prev {
    left: 10px;
}

.modal-carousel-next {
    right: 10px;
}

.modal-description {
    color: black;
    font-size: clamp(0.99rem, 1.43vw, 1.1rem);
    line-height: 1.6;
    font-family: 'Nixie One', Georgia, serif !important; /* Added fallback fonts */
}

.modal-description p {
    margin: 0 0 1rem 0;
    font-family: 'Nixie One', Georgia, serif !important; /* Added fallback fonts */
}

.modal-description p:last-child {
    margin-bottom: 0;
    font-family: 'Nixie One', sans-serif !important; /* Ensure Nixie One for last paragraph */
}

/* Additional modal font overrides to ensure proper font assignment */
.card-modal .modal-title {
    font-family: 'Blinker', sans-serif !important;
}

.card-modal .modal-target,
.card-modal .modal-aim {
    font-family: 'Nixie One', sans-serif !important;
}

.card-modal .modal-description,
.card-modal .modal-description p {
    font-family: 'Nixie One', sans-serif !important;
}

/* Ultra-specific modal font overrides with maximum specificity */
#card-modal .modal-content .modal-title {
    font-family: 'Blinker', Arial, sans-serif !important;
}

#card-modal .modal-content .modal-target,
#card-modal .modal-content .modal-aim {
    font-family: 'Nixie One', Georgia, serif !important;
}

#card-modal .modal-content .modal-description,
#card-modal .modal-content .modal-description p {
    font-family: 'Nixie One', Georgia, serif !important;
}

/* Override any potential inherited content-frame fonts */
.card-modal * {
    font-family: inherit !important;
}

.card-modal .modal-title {
    font-family: 'Blinker', Arial, sans-serif !important;
}

.card-modal .modal-target,
.card-modal .modal-aim,
.card-modal .modal-description,
.card-modal .modal-description p {
    font-family: 'Nixie One', Georgia, serif !important;
}

/* Mobile Modal Styles */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 1.5rem;
        max-height: 95vh;
    }
    
    .modal-title {
        margin-bottom: 1.5rem;
    }
    
    .modal-body {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .modal-left {
        order: 2; /* Move left content below carousel on mobile */
    }
    
    .modal-right {
        order: 1; /* Move carousel to top on mobile */
    }
    
    .modal-carousel {
        height: 250px;
    }
    
    .modal-carousel-nav {
        width: 35px;
        height: 35px;
    }
    
    .modal-icons {
        justify-content: center;
    }
    
    .modal-icon {
        width: 37px; /* Half of previous 74px */
        height: 37px; /* Half of previous 74px */
    }
    
    /* Mobile styles for new modal icon layout */
    .modal-icons-centered {
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .modal-icon-interactive {
        width: 60px; /* 1.5x the original 40px */
        height: 60px; /* 1.5x the original 40px */
    }
    
    .modal-icon-tooltip {
        font-size: 10px;
        bottom: -25px;
        padding: 3px 6px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        padding: 1rem;
        max-height: 70vh; /* Ensures the modal border is always visible on small screens */
    }
    
    .modal-carousel {
        height: 200px;
    }
    
    .modal-carousel-nav {
        width: 30px;
        height: 30px;
    }
    
    .modal-carousel-nav svg {
        width: 16px;
        height: 16px;
    }
    
    .modal-icon {
        width: 37px; /* Half of previous 74px */
        height: 37px; /* Half of previous 74px */
    }
    
    /* Small mobile styles for new modal icon layout */
    .modal-icons-centered {
        gap: 0.8rem;
        margin-top: 1.2rem;
    }
    
    .modal-icon-interactive {
        width: 54px; /* 1.5x the original 36px */
        height: 54px; /* 1.5x the original 36px */
    }
    
    .modal-icon-tooltip {
        font-size: 9px;
        bottom: -22px;
        padding: 2px 5px;
    }
}

/* Laptop/Tablet responsiveness - maintain card centering */
@media (max-width: 1024px) and (min-width: 769px) {
    .inclusivity-main-content {
        padding: 3rem 0 3rem 180px; /* Adjust padding for laptop screens */
    }
    
    .collaboration-card {
        padding: 0.8rem 1.2rem; /* Slightly adjust padding */
    }
    
    .card-title-container {
        padding: 0.7rem 1.8rem; /* Adjust title container padding */
    }
    
    .card-arrow img, .card-arrow-invisible img {
        width: 90px; /* Slightly smaller arrows for laptops */
        height: 90px;
    }
}

/* Mobile responsiveness for dimensions image */
@media (max-width: 768px) {
    .video-carousel-container {
        margin-top: calc(-1.5rem);
    }
    
    .carousel-title {
        font-size: clamp(2rem, 8vw, 5rem);
    }
    
    .carousel-subtitle {
        font-size: clamp(0.8rem, 3vw, 1.5rem);
        margin-top: 0.5rem;
    }
    
    .inclusivity-main-content {
        padding: 2rem 1rem;
    }
    
    .content-frame {
        width: 90%;
        padding: 2rem;
        border-radius: 15px;
    }
    
    /* Responsive collaboration cards - fix mobile issues */
    .collaboration-card {
        padding: 0.5rem 0.5rem 0 0.5rem !important; /* Force zero bottom padding */
        margin: 0 0.5rem 0 0.5rem !important; /* Force zero bottom margin */
        border: none !important;
        min-height: auto !important;
    }
    
    .card-header {
        flex-direction: column !important; /* Make header vertical on mobile */
        justify-content: flex-start !important; /* Align to top */
        align-items: center !important;
        padding: 0.3rem 0.3rem 0 0.3rem !important; /* Force zero bottom padding */
        gap: 0.1rem !important; /* Minimal gap */
        margin-bottom: 0 !important;
        border-bottom: none !important;
    }
    
    /* Hide invisible top elements on mobile */
    .card-icons-invisible-top {
        display: none !important; /* Remove invisible top icons on mobile */
    }
    
    .card-arrow-invisible {
        display: none !important; /* Remove invisible arrows on mobile */
    }
    
    .card-arrow, .card-arrow-invisible {
        flex-shrink: 0;
        display: flex; /* Show arrows on mobile */
        align-items: center;
        justify-content: center;
    }
    
    .card-title-content-wrapper {
        align-items: center;
        justify-content: center; /* Change from space-between to center for proper vertical layout */
        flex: 1;
        max-width: calc(100vw - 200px); /* Prevent overflow */
        gap: 0.2rem; /* Minimal gap for tightest mobile layout */
    }
    
    .card-title-container {
        padding: 0.5rem 1rem; /* Smaller padding to prevent overflow */
        font-size: clamp(0.9rem, 2.5vw, 1.1rem); /* Smaller responsive font */
        max-width: calc(100vw - 220px); /* Prevent title overflow */
        word-break: break-word; /* Allow text to wrap */
    }
    
    .card-title {
        font-size: clamp(0.9rem, 2.2vw, 1.1rem); /* Smaller title font */
        white-space: normal; /* Allow wrapping */
        text-align: center;
    }
    
    .modal-icon {
        width: 36px !important; /* 3x larger icons on mobile (12px * 3 = 36px) */
        height: 36px !important;
        border-radius: 18px; /* Adjust border radius proportionally */
    }
    
    .card-arrow, .card-arrow-invisible {
        flex-shrink: 0;
    }
    
    .card-arrow img, .card-arrow-invisible img {
        width: 60px; /* Smaller arrows on mobile */
        height: 60px;
    }
    
    /* Fix modal positioning and content on mobile */
    .modal-content {
        left: 50% !important; /* Center the modal horizontally */
        transform: translate(-50%, -50%) !important; /* Center both ways */
        width: 90% !important; /* Reduce width to prevent truncation */
        max-width: 90vw !important;
        padding: 1.5rem !important; /* Reduce padding */
        margin-top: 20px !important; /* Reduce top margin */
    }
    
    .modal-title {
        font-size: clamp(1.2rem, 4vw, 1.5rem) !important; /* Responsive title */
        text-align: center !important;
        margin-bottom: 1rem !important;
    }
    
    .modal-description {
        font-size: clamp(0.9rem, 3vw, 1.1rem) !important; /* Smaller responsive text */
        padding: 0 0.5rem !important;
        line-height: 1.5 !important;
    }
    
    .modal-description p {
        font-size: clamp(0.9rem, 3vw, 1.1rem) !important;
        margin-bottom: 1rem !important;
    }
    
    .graph-container {
        height: 350px;
    }
    
    .graph-tooltip {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .graph-popup {
        min-width: 200px;
        max-width: 85vw;
        max-height: 180px;
        font-size: clamp(11px, 3vw, 14px);
        padding: 10px 16px;
    }
    
    .dimensions-image {
        width: 70%;
        max-width: 350px;
    }
    
    .dimensions-hover {
        transform: scale(1.5) rotate(0deg);
    }
    
    .dimensions-image:hover .dimensions-default {
        transform: scale(1.5) rotate(360deg);
    }
    
    .dimensions-image:hover .dimensions-hover {
        transform: scale(1.5) rotate(360deg);
    }
    
    .inclusivity-sections-wrapper {
        margin-top: 3rem;
    }
    
    .inclusivity-section {
        margin-bottom: 3rem;
    }
    
    .section-frame {
        padding: 2rem;
        border-radius: 15px;
    }
    
    .carousel-images {
        height: 250px;
    }
    
    .carousel-nav {
        width: 30px;
        height: 30px;
    }
    
    .carousel-nav svg {
        width: 16px;
        height: 16px;
    }
    
    .carousel-prev {
        left: 8px;
    }
    
    .carousel-next {
        right: 8px;
    }
    
    .collaboration-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
        padding: 2.5rem 1rem; /* Increased vertical padding, reduced horizontal padding */
    }
    
    .card-content {
        align-items: center;
        text-align: center;
        padding: 0; /* Remove extra padding to avoid double padding */
        width: 100%; /* Ensure full width usage */
    }
    
    .card-title-with-icon {
        flex-direction: column; /* Stack title above icon on mobile */
        gap: 0.5rem;
        align-items: center;
    }
    
    .card-icon {
        width: 80px; /* 2x larger: 40px * 2 = 80px */
        height: 80px; /* 2x larger: 40px * 2 = 80px */
        order: 2; /* Place icon after/below title */
    }
    
    .collaboration-card .card-title {
        padding: 0 1rem !important; /* Reduced title padding */
        text-align: center;
        order: 1; /* Keep title first/above icon */
        margin: 0 !important; /* Ensure no margin interferes */
        box-sizing: border-box !important;
    }
    
    .collaboration-card .card-description {
        padding: 0 1.5rem !important; /* Ensured description padding is applied */
        text-align: center;
        margin: 0 !important; /* Ensure no margin interferes */
        box-sizing: border-box !important;
    }
    
    /* Mobile styles for new card icon layout */
    .card-icons {
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .modal-icon {
        width: 8px; /* Half of previous 16px */
        height: 8px; /* Half of previous 16px */
    }
    
    .card-arrow img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .video-carousel-container {
        margin-top: calc(-1rem);
    }
    
    .carousel-title {
        font-size: clamp(1.5rem, 10vw, 4rem);
    }
    
    .carousel-subtitle {
        font-size: clamp(0.7rem, 4vw, 1.2rem);
        margin-top: 0.5rem;
    }
    
    .inclusivity-main-content {
        padding: 1.5rem 0.5rem;
    }
    
    .content-frame {
        width: 95%;
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .graph-container {
        height: 300px;
    }
    
    .graph-tooltip {
        font-size: 10px;
        padding: 5px 8px;
    }
    
    .graph-popup {
        min-width: 180px;
        max-width: 80vw;
        max-height: 160px;
        font-size: clamp(10px, 3.5vw, 13px);
        padding: 8px 14px;
    }
    
    .dimensions-image {
        width: 80%;
        max-width: 300px;
    }
    
    .dimensions-image-container {
        margin: 1.5rem 0;
    }
    
    .dimensions-default {
        transform: scale(2.475) rotate(0deg); /* 2.25 * 1.1 = 2.475 (10% increase) */
    }
    
    .dimensions-hover {
        transform: scale(1.43) rotate(0deg);
    }
    
    .dimensions-image:hover .dimensions-default {
        transform: scale(1.43) rotate(360deg);
    }
    
    .dimensions-image:hover .dimensions-hover {
        transform: scale(1.43) rotate(360deg);
    }
    
    .section-frame {
        padding: 1.5rem;
    }
    
    .carousel-images {
        height: 200px;
    }
    
    .collaboration-card {
        padding: 2.2rem 0.8rem; /* Increased vertical padding, controlled horizontal padding */
        flex-direction: column;
        gap: 1rem;
    }
    
    .card-content {
        padding: 0; /* Remove extra padding to avoid double padding */
        width: 100%; /* Ensure full width usage */
    }
    
    .card-title-with-icon {
        flex-direction: column; /* Stack title above icon on small mobile */
        gap: 0.4rem;
        align-items: center;
    }
    
    .card-icon {
        width: 72px; /* 2x larger: 36px * 2 = 72px */
        height: 72px; /* 2x larger: 36px * 2 = 72px */
        order: 2; /* Place icon after/below title */
    }
    
    .collaboration-card .card-title {
        padding: 0 0.8rem !important; /* Reduced title padding for small mobile */
        text-align: center;
        order: 1; /* Keep title first/above icon */
        margin: 0 !important; /* Ensure no margin interferes */
        box-sizing: border-box !important;
    }
    
    .collaboration-card .card-description {
        padding: 0 1.2rem !important; /* Ensured description padding is applied for small mobile */
        text-align: center;
        margin: 0 !important; /* Ensure no margin interferes */
        box-sizing: border-box !important;
    }
    
    /* Small mobile styles for new card icon layout */
    .card-icons {
        justify-content: center;
        gap: 0.4rem;
        margin-top: 0.8rem;
    }
    
    .modal-icon {
        width: 7px; /* Half of previous 14px */
        height: 7px; /* Half of previous 14px */
    }
    
    .card-arrow img {
        width: 90px;
        height: 90px;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .carousel-title {
        font-size: clamp(1.5rem, 5vh, 3rem);
    }
    
    .carousel-subtitle {
        font-size: clamp(0.8rem, 2vh, 1.2rem);
    }
}

/* Extra small devices */
@media (max-width: 320px) {
    .carousel-title {
        font-size: clamp(1.2rem, 12vw, 3rem);
    }
    
    .carousel-subtitle {
        font-size: clamp(0.6rem, 5vw, 1rem);
    }
}

/* Ensure no interference from layout styles */
.video-carousel-container * {
    box-sizing: border-box;
}

/* Section Navigation */
.section-navigation {
    position: fixed;
    top: 100px;
    left: 20px;
    background: rgba(11, 19, 32, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(215, 175, 107, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    min-width: 180px;
    max-width: 250px;
    transition: all 0.3s ease;
    transform: scale(0.75); /* Match model.css scaling */
    transform-origin: top left;
}

.section-navigation.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1.0);
}

.navigation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(215, 175, 107, 0.2);
    cursor: pointer;
}

.navigation-title {
    font-family: serif !important;
    font-size: 1.3rem;
    font-weight: 600;
    color: #d7af6b;
    letter-spacing: 0.5px;
}

.navigation-toggle {
    background: none;
    border: none;
    color: #d7af6b;
    cursor: pointer;
    padding: 0;
    display: none; /* Hidden by default, shown on mobile */
    transition: transform 0.3s ease;
}

.navigation-toggle svg {
    transition: transform 0.3s ease;
}

.section-navigation.collapsed .navigation-toggle svg {
    transform: rotate(-90deg);
}

.navigation-content {
    padding: 0.75rem 0;
    max-height: 400px;
    overflow-y: auto;
    transition: all 0.3s ease;
    /* Hide scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.navigation-content::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.navigation-item {
    display: block;
    padding: 0.6rem 1.25rem;
    color: #afc1d0;
    text-decoration: none;
    font-family: serif !important;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.navigation-item:first-child {
    border-radius: 0;
}

.navigation-item:hover {
    color: #d7af6b;
    background: rgba(215, 175, 107, 0.1);
    border-left-color: #d7af6b;
    text-decoration: none;
}

.navigation-item:last-child {
    border-bottom: none;
}

.navigation-item.active {
    color: #d7af6b;
    background: rgba(215, 175, 107, 0.15);
    border-left-color: #d7af6b;
    font-weight: 500;
}

/* Mobile Navigation - Match inclusivity styling */
@media (max-width: 768px) {
    .section-navigation {
        position: fixed !important;
        top: 85px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important; /* Force full viewport width */
        min-width: 100vw !important;
        max-width: none !important;
        border-radius: 0 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
        background-color: #0b1320 !important;
        backdrop-filter: none !important;
        z-index: 49 !important;
        transform: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }
    
    .section-navigation.visible {
        transform: translateY(0) scale(1);
    }
    
    .navigation-toggle {
        display: block;
    }
    
    .navigation-content {
        display: none;
    }
    
    .navigation-content.active {
        display: block;
    }
    
    .navigation-toggle.active {
        transform: rotate(180deg);
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .section-navigation {
        top: 80px; /* Reduced slightly from 85px */
    }
    
    .navigation-header {
        padding: 8px 14px;
    }
    
    .navigation-title {
        font-size: 13px;
    }
    
    .navigation-item {
        padding: 10px 14px;
        font-size: 11px;
    }
    
    .navigation-item:hover,
    .navigation-item.active {
        padding-left: 18px;
    }
}

/* Mobile styles for domains list */
@media (max-width: 768px) {
    .domains-list {
        font-size: clamp(1.15rem, 1.45vw, 1.45rem);
    }
    
    .domains-list li {
        padding-left: 5rem;
    }
    
    .domains-list li::before {
        width: 4rem;
        height: 4rem;
        top: -1rem;
    }
    
    .dimensions-list {
        font-size: clamp(0.9rem, 1vw, 1.1rem);
    }
    
    .dimensions-list li {
        padding-left: 5rem;
    }
    
    .dimensions-list li::before {
        width: 4rem;
        height: 4rem;
        top: -1rem;
    }
}

@media (max-width: 480px) {
    .domains-list {
        font-size: clamp(1.15rem, 1.45vw, 1.45rem);
    }
    
    .domains-list li {
        padding-left: 4rem;
        margin: 1rem 0;
    }
    
    .domains-list li::before {
        width: 3rem;
        height: 3rem;
        top: -0.5rem;
    }
    
    .dimensions-list {
        font-size: clamp(0.8rem, 0.9vw, 1rem);
    }
    
    .dimensions-list li {
        padding-left: 4rem;
        margin: 1rem 0;
    }
    
    .dimensions-list li::before {
        width: 3rem;
        height: 3rem;
        top: -0.5rem;
    }
}

/* OpenDyslexic Accessibility Mode Overrides for Modal Content */
body.accessibility-mode .modal-title,
body.accessibility-mode .card-modal .modal-title,
body.accessibility-mode #card-modal .modal-content .modal-title {
    font-family: 'OpenDyslexic', sans-serif !important;
}

body.accessibility-mode .modal-description,
body.accessibility-mode .modal-description p,
body.accessibility-mode .card-modal .modal-description,
body.accessibility-mode .card-modal .modal-description p,
body.accessibility-mode #card-modal .modal-content .modal-description,
body.accessibility-mode #card-modal .modal-content .modal-description p {
    font-family: 'OpenDyslexic', sans-serif !important;
}

body.accessibility-mode .modal-target,
body.accessibility-mode .modal-aim,
body.accessibility-mode .card-modal .modal-target,
body.accessibility-mode .card-modal .modal-aim,
body.accessibility-mode #card-modal .modal-content .modal-target,
body.accessibility-mode #card-modal .modal-content .modal-aim {
    font-family: 'OpenDyslexic', sans-serif !important;
}

body.accessibility-mode .card-modal *,
body.accessibility-mode .modal-content *,
body.accessibility-mode #card-modal * {
    font-family: 'OpenDyslexic', sans-serif !important;
}

/* Reduce font size for OpenDyslexic in inclusivity page elements */
body.accessibility-mode .content-frame *,
body.accessibility-mode .paragraph,
body.accessibility-mode .big-paragraph,
body.accessibility-mode .section-title,
body.accessibility-mode .subsection-title,
body.accessibility-mode .collaboration-card *,
body.accessibility-mode .card-content *,
body.accessibility-mode .card-title,
body.accessibility-mode .domains-list,
body.accessibility-mode .dimensions-list {
    font-size: 90% !important;
}
