@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: 'Nixie One';
    src: url('') 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;
}

/* Dark blue background for the entire page */
body {
    background-color: #0b1320 !important;
}

/* Alternative: If the above doesn't work, target the page content wrapper */
#page_content {
    background-color: #0b1320 !important;
}

/* Also ensure the main container has the dark blue background */
.main-content,
.container-fluid,
main {
    background-color: #0b1320 !important;
}

/* Entrepreneurship Hero Section */
.entrepreneurship-hero {
    background-color: #0b1320;
    min-height: 10vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    margin-top: -20px; /* Remove gap below navbar */
    padding-top: 20px; /* Add padding to maintain spacing */
    padding-bottom: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.hero-content {
    z-index: 2;
    text-align: center;
    position: relative;
}

.hero-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;
    line-height: 1.1;
    text-align: center;
    display: block;
}

/* Main Content */
.entrepreneurship-main-content {
    background-color: #0b1320;
    padding: 4rem 0 4rem 150px;
    min-height: 100vh;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: -8rem;
}

.content-frame {
    width: 75%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 2rem 2rem;
    background-color: #0b1320;
}

/* Text Classes - Same as experiments.css */
.section-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: bold;
    color: #d7af6b;
    margin: 3rem 0 2rem 0;
    text-align: left;
    line-height: 1.2;
}

.subsection-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    color: #afc1d0;
    margin: 2.5rem 0 1.5rem 0;
    text-align: left;
    line-height: 1.3;
}

.paragraph {
    font-family: 'Nixie One', serif;
    font-size: clamp(1.15rem, 1.45vw, 1.45rem);
    color: white;
    margin: 1.5rem 0;
    text-align: left;
    line-height: 1.6;
}

/* Business Model Canvas Image Container */
.canvas-image-container {
    text-align: center;
    margin: 3rem 0;
    width: 100%;
}

.canvas-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Cash Flow Image Container - Negative margin to overlap subtitle */
.cash-flow-container {
    margin: 0 !important;
    margin-top: clamp(-10rem, -8vw, -10rem) !important;
    margin-bottom: 3rem !important;
}

/* Business Plan Link Styling */
.business-plan-link {
    color: #afc1d0;
    text-decoration: none;
    font-family: 'Nixie One', serif;
    font-size: clamp(1.3rem, 1.7vw, 1.7rem);
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 2px solid #afc1d0;
    padding-bottom: 2px;
}

.business-plan-link:hover {
    color: #d7af6b;
    border-bottom-color: #d7af6b;
    text-decoration: none;
}

/* Initial hidden state for hero animation */
.hero-title {
    opacity: 0 !important;
    transform: translateY(50px) !important;
    transition: none !important;
}

/* Hero Container for Icon and Text */
.entrepreneurship-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: -3rem;
}

.hero-icon {
    max-height: 120px;
    height: auto;
    width: auto;
    opacity: 0;
    transform: translateY(50px);
    transition: none;
}

.hero-icon-left {
    order: 1;
}

.hero-entrepreneurship-text {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.5rem, 6vw, 6rem);
    font-weight: bold;
    color: #d7af6b;
    margin: 0;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.05em;
    line-height: 1.1;
    text-align: center;
    order: 2;
    opacity: 0;
    transform: translateY(50px);
    transition: none;
}

/* 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);
    transform-origin: top left;
}

.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: 'Fraunces', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #d7af6b;
    letter-spacing: 0.5px;
}

.navigation-toggle {
    background: none;
    border: none;
    color: #d7af6b;
    cursor: pointer;
    padding: 0;
    display: none;
    transition: transform 0.3s ease;
}

.navigation-toggle:hover {
    background-color: rgba(215, 175, 107, 0.2);
}

.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: 'Nixie One', serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.navigation-item:hover {
    color: #d7af6b;
    background: rgba(215, 175, 107, 0.1);
    border-left-color: #d7af6b;
    text-decoration: none;
}

.navigation-item.active {
    color: #d7af6b;
    background: rgba(215, 175, 107, 0.15);
    border-left-color: #d7af6b;
    font-weight: 500;
}

/* References section styling - same size as paragraphs */
.references-section {
    text-align: left;
    line-height: 1.8;
    font-size: clamp(1.15rem, 1.45vw, 1.45rem);
    font-family: 'Nixie One', serif !important;
}

.references-section p {
    margin-bottom: 1rem;
    font-family: 'Nixie One', serif !important;
    color: white !important;
    font-size: clamp(1.15rem, 1.45vw, 1.45rem) !important;
    line-height: 1.8 !important;
}

/* References List Styling */
.references-list {
    font-family: 'Nixie One', serif !important;
    font-size: clamp(1.15rem, 1.45vw, 1.45rem) !important;
    color: white !important;
    line-height: 1.8 !important;
}

.references-list li {
    font-family: 'Nixie One', serif !important;
    font-size: clamp(1.15rem, 1.45vw, 1.45rem) !important;
    color: white !important;
    line-height: 1.8 !important;
    margin-bottom: 1rem;
}

/* Additional specificity for references */
ol.references-list,
ol.references-list li {
    font-family: 'Nixie One', serif !important;
    color: white !important;
}



.reference-link {
    color: #afc1d0;
    text-decoration: underline;
}

.reference-link:hover {
    color: #d7af6b;
    text-decoration: underline;
}

/* Tablet and smaller desktop responsive */
@media (max-width: 1024px) {
    .cash-flow-container {
        margin-top: clamp(-8rem, -6.5vw, -8rem) !important;
    }
}

/* Medium screens - make navigation even smaller */
@media (min-width: 769px) and (max-width: 1140px) {
    .section-navigation {
        min-width: 130px;
        max-width: 160px;
        left: 6px;
        top: 90px;
    }
    
    .navigation-header {
        padding: 0.45rem 0.6rem;
    }
    
    .navigation-title {
        font-size: 0.85rem;
    }
    
    .navigation-item {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .navigation-content {
        padding: 0.35rem 0;
        max-height: 280px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-spacing-breaks {
        display: none; /* Hide the 18 br tags on mobile */
    }
    
    .section-navigation {
        top: 85px;
        left: 0;
        right: 0;
        width: 100%;
        min-width: auto;
        max-width: none;
        border-radius: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        background-color: #0b1320;
        backdrop-filter: none;
        z-index: 49;
        transform: none;
    }
    
    .navigation-toggle {
        display: block;
    }
    
    .navigation-content {
        display: none;
    }
    
    .navigation-content.active {
        display: block;
    }
    
    .navigation-toggle.active {
        transform: rotate(180deg);
    }
    
    .entrepreneurship-main-content {
        padding: 4rem 0;
    }
    
    .content-frame {
        width: 90%;
        padding: 1rem;
    }
    
    .entrepreneurship-hero {
        min-height: 45vh;
    }
    
    .entrepreneurship-title-container {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: -2rem;
        align-items: center;
        justify-content: center;
    }
    
    .hero-icon {
        max-height: 60px;
    }
    
    .hero-icon-left {
        order: 2;
    }
    
    .hero-entrepreneurship-text {
        font-size: 2.0rem;
        letter-spacing: 1px;
        order: 1;
    }
    
    /* Canvas image mobile responsiveness */
    .canvas-image {
        width: 100%;
        max-width: 100%;
        margin: 1rem 0;
    }
    
    .canvas-image-container {
        margin: 2rem 0;
    }
    
    /* Cash flow container mobile adjustment */
    .cash-flow-container {
        margin-top: clamp(-4rem, -5vw, -5rem) !important;
    }
    
    /* References mobile responsiveness */
    .reference-link {
        word-break: break-all !important;
        display: inline-block !important;
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    .content-frame {
        width: 95%;
        padding: 0.5rem;
    }
    
    .entrepreneurship-hero {
        min-height: 40vh;
    }
    
    .hero-icon {
        max-height: 50px;
    }
    
    .hero-icon-left {
        order: 2;
    }
    
    .hero-entrepreneurship-text {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .entrepreneurship-title-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Canvas image small mobile responsiveness */
    .canvas-image {
        width: 100%;
    }
    
    .canvas-image-container {
        margin: 1.5rem 0;
    }
    
    /* Cash flow container small mobile adjustment */
    .cash-flow-container {
        margin-top: clamp(-2rem, -3vw, -2.5rem) !important;
    }
    
    /* References small mobile responsiveness */
    .reference-link {
        word-break: break-all !important;
        display: inline-block !important;
        max-width: 100% !important;
    }
}

/* OpenDyslexic Accessibility Mode - Prevent title truncation */
body.accessibility-mode .hero-entrepreneurship-text {
    font-size: clamp(2rem, 5vw, 5rem) !important;
    letter-spacing: 0.02em !important;
    line-height: 1.2 !important;
    word-break: break-word !important;
}

/* Mobile adjustments for accessibility mode */
@media (max-width: 768px) {
    body.accessibility-mode .hero-entrepreneurship-text {
        font-size: 1.6rem !important;
        letter-spacing: 0.01em !important;
    }
}

@media (max-width: 480px) {
    body.accessibility-mode .hero-entrepreneurship-text {
        font-size: 1.4rem !important;
        letter-spacing: 0.01em !important;
        line-height: 1.3 !important;
    }
}