/* Rubik font from local server */
@font-face {
    font-family: 'Rubik';
    src: url('https://static.igem.wiki/teams/5661/fonts/rubik-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rubik';
    src: url('https://static.igem.wiki/teams/5661/fonts/rubik-bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rubik';
    src: url('https://static.igem.wiki/teams/5661/fonts/rubik-light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rubik';
    src: url('https://static.igem.wiki/teams/5661/fonts/rubik-medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

* {
    font-family: 'Rubik', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}




body { font-family: 'Rubik', sans-serif !important;  padding-top: 56px; background-color: white !important;}
.left-aligned { margin-left: auto; }
.bg-hero { background-color: #68A8CD; }
.bg-dark { background-color: #B8D4E3 !important; }

/* NAVBAR LOGO STYLES */
.navbar-brand img {
    max-height: 50px; /* Maximum height for the logo */
    width: auto;     /* Maintain aspect ratio */
    vertical-align: middle; /* Helps align the image with text if present */
}

/* CALLOUT */
.bd-callout { padding:1.25rem; margin-top:1.25rem; margin-bottom:1.25rem; border:1px solid #e9ecef; border-left-width:.25rem; border-radius:.25rem }
.bd-callout h4 { margin-bottom: 1.25rem }
.bd-callout p:last-child { margin-bottom:0 }
.bd-callout code { border-radius:.25rem }
.bd-callout+.bd-callout { margin-top:-.25rem }
.bd-callout-info { border-left-color:#5bc0de }
.bd-callout-warning { border-left-color:#f0ad4e }
.bd-callout-danger { border-left-color:#d9534f }

/* footer */
footer a { color: black; font-weight: bold; text-decoration: none; }
footer a:hover { color: black; text-decoration: underline; }

.container-fluid .col-lg-9.col-md-8 {
    margin-left: 0;
    padding-left: 15px;
}

/* Ensure the main content column behaves normally */
.col-lg-9.col-md-8 {
    flex: 0 0 auto;
    width: 75%; /* Standard Bootstrap col-lg-9 width */
}

.col-lg-3.col-md-4 {
    flex: 0 0 auto;
    width: 25%; /* Standard Bootstrap col-lg-3 width */
    padding-left: 0; /* Remove left padding to move sidebar to edge */
}

/* SIDEBAR NAVIGATION */
.sidebar {
    position: sticky;
    left: 0;
    top: 80px;
    width: 100%;
    height: fit-content;
    max-height: calc(100vh - 100px);
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
    margin-left: -1.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 50;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #68A8CD #f8f9fa;
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #68A8CD;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #42506E;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: 'Rubik', sans-serif;
}

.sidebar li {
    margin-bottom: 0.5rem;
    font-family: 'Rubik', sans-serif;
}

.nav-link-sidebar {
    text-decoration: none;
    color: #42506E;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: start;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav-icon {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    flex-shrink: 0;
    object-fit: contain;
}


.nav-link-sidebar:hover {
    background-color: #68A8CD;
    color: white;
}

.nav-link-sidebar.active {
    background-color: #68A8CD;
    color: white;
}

.sidebar h5 {
    color: #42506E;
    margin-bottom: 1rem;
    font-weight: 600;
    font-family: 'Rubik', sans-serif;
}

.expand-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: 12px;
    color: #42506E;
}

.nav-link-sidebar.active .expand-arrow {
    transform: rotate(90deg);
    color: white;
}

.nav-link-sidebar:hover .expand-arrow {
    color: white;
}

/* Sub-navigation styles */
.subnav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-top: 0.25rem;
}

.subnav.open {
    max-height: none;
    overflow: visible;
}

.subnav ul {
    padding: 8px 0;
}

.subnav li {
    margin: 0;
}

.subnav a {
    display: block;
    padding: 8px 50px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
}

.subnav a:hover {
    background-color: #e9ecef;
    color: #495057;
}

.subnav a.active {
    background-color: #d1ecf1;
    color: #0c5460;
    font-weight: 500;
}

/* CONTENT SECTIONS */

.content-section, .section {
    margin-bottom: 3rem;
    font-family: 'Rubik', sans-serif;
    text-align: justify;
    scroll-margin-top: 5rem;
}

.content-section h2 , .section h2, .experiment-content h2{
    color: #42506E;
    border-bottom: 2px solid #68A8CD;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 2em;
    font-family: 'Rubik', sans-serif;
}

.content-section h3, .section h3 , .results-container h3{
    color: #68A8CD;;
    margin: 30px 0 15px 0;
    font-size: 1.5em;
    font-family: 'Rubik', sans-serif;
}

.content-section h4, .section h4 {
    color: #4A90B8;
    margin: 20px 0 10px 0;
    font-size: 1.3em;
    font-family: 'Rubik', sans-serif;
}

.content-section h5, .section h5 {
    color: #124748;
    margin: 20px 0 10px 0;
    font-size: 1.1em;
    font-family: 'Rubik', sans-serif;
}

.content-section p, .section p {
    color: black;
    margin-bottom: 15px;
    line-height: 1.8;
    font-family: 'Rubik', sans-serif;
}

/* BACK TO TOP BUTTON - Image Version */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 30px;
    width: 90px;
    height: 90px;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
}

.back-to-top:hover img {
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4)) brightness(1.1);
}

.back-to-top:focus {
    outline: 2px solid #68A8CD;
    outline-offset: 4px;
}

/* RESPONSIVE SIDEBAR */
@media (max-width: 768px) {
    /* Hide sidebar completely on mobile */
    .sidebar {
        display: none !important;
    }

    /* Hide the sidebar column container */
    .col-lg-3.col-md-4 {
        display: none;
    }

    /* Make content take full width */
    .col-lg-9.col-md-8 {
        width: 100% !important;
        max-width: 100%;
        flex: 0 0 100%;
        margin-left: 0;
        padding-left: 15px;
        padding-right: 15px;
    }

    .container-fluid .col-lg-9.col-md-8 {
        width: 100% !important;
        margin-left: 0;
        padding-left: 15px;
    }

    /* Hide mobile toggle button if it exists */
    .mobile-toggle {
        display: none;
    }
}

.member-wrapper {
    position: relative;
    display: inline-block;
}

.member-image {
    display: block;
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    font-size: 0.85rem;
    padding: 10px;
}

.member-wrapper:hover .member-overlay {
    opacity: 1;
}

/*Figures design general*/
.figure {
    display: block;
    margin: 25px auto;
    box-shadow:
            0 8px 25px rgba(0, 0, 0, 0.15),
            0 4px 10px rgba(0, 0, 0, 0.1),
            0 0 0 1px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    transform: translateY(-2px);
    background: white;
    padding: 15px;
    overflow: hidden;
    cursor: pointer;
}

.figure img {
    width: 100%;
    height: auto;
    display: block;
    border: 4px solid white;
    border-radius: 10px;
}

/* Hover effect for all figures */
.figure:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow:
            0 15px 35px rgba(0, 0, 0, 0.2),
            0 8px 15px rgba(0, 0, 0, 0.15),
            0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Size variations */
.figure-tiny {
    max-width: 200px;
    width: 90%;
}

.figure-small {
    max-width: 400px;
    width: 90%;
}

.figure-medium {
    max-width: 600px;
    width: 80%;
}

.figure-large {
    max-width: 800px;
    width: 90%;
}

.figure-full {
    max-width: 100%;
    width: 95%;
}

/* Specific use cases */
.figure-chart {
    max-width: 700px;
    width: 75%;
}

.figure-map {
    max-width: 900px;
    width: 90%;
}

.figure-diagram {
    max-width: 600px;
    width: 85%;
}


/* Special effects */
.figure-elevated {
    transform: translateY(-4px);
    box-shadow:
            0 12px 30px rgba(0, 0, 0, 0.18),
            0 6px 12px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
}

.figure-elevated:hover {
    transform: translateY(-8px) scale(1.03);
}

.figure-clean {
    display: block;
    margin: 25px auto;
    border: none;
    box-shadow: none;
    background: none;
    padding: 0;
    transform: none;
    transition: none;
}

.figure-clean img {
    width: 100%;
    height: auto;
    display: block;
    border: none;
    border-radius: 0;
}

.figure-clean:hover {
    transform: none;
    box-shadow: none;
}

/* Caption styling */
.figure-caption {
    font-size: 0.9em;
    font-style: italic;
    color: #666;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 15px;
    padding: 0 20px;
    line-height: 1.4;
}


.figure-center {
    margin-left: auto;
    margin-right: auto;
}


/* Modal/Lightbox Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

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

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible; /* Changed from hidden */
}

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

.modal-image {
    max-width: 100%;
    max-height: calc(90vh - 40px); /* Account for padding */
    width: auto;
    height: auto;
    object-fit: contain; /* This ensures the entire image is visible */
    border-radius: 8px;
    display: block;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #666;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 1);
    color: #333;
    transform: scale(1.1);
}

/* Loading animation */
.modal-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 16px;
}

/* Clickable indicator */
.figure::before {
    content: '🔍';
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 8px;
    border-radius: 15px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.figure:hover::before {
    opacity: 1;
}

/* Mobile responsive modal */
@media (max-width: 768px) {
    .modal {
        padding: 10px;
    }

    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
        padding: 15px;
        border-radius: 8px;
    }

    .modal-image {
        max-height: calc(95vh - 30px);
    }

    .modal-close {
        width: 30px;
        height: 30px;
        font-size: 20px;
        top: 5px;
        right: 5px;
    }

    .figure::before {
        font-size: 10px;
        padding: 4px 6px;
    }
}

@media (max-width: 480px) {
    .modal {
        padding: 5px;
    }

    .modal-content {
        max-width: 98vw;
        max-height: 98vh;
        padding: 10px;
    }

    .modal-image {
        max-height: calc(98vh - 20px);
    }
}


/* Mobile responsiveness */
@media (max-width: 768px) {
    .figure {
        width: 95% !important;
        max-width: none !important;
        margin: 20px auto;
        box-shadow:
                0 4px 15px rgba(0, 0, 0, 0.1),
                0 2px 6px rgba(0, 0, 0, 0.08);
        transform: translateY(-1px);
    }

    .figure:hover {
        transform: translateY(-2px) scale(1.01);
    }

    .figure-caption {
        font-size: 0.8em;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .figure {
        width: 98% !important;
        margin: 15px auto;
    }

    .figure-polaroid {
        padding: 10px 10px 30px 10px;
    }
}

.citation-entr {
    font-style: italic; !important;
    font-family: "Courier New", monospace !important;
}


ol li {
    font-weight: normal; /* Resets content to normal */
}

ol li strong {
    color: Black;
    font-weight: bold;
}

ol > li::marker {
    font-weight: bold;
}

.carousel-container-1 {
    width: 90%;
    max-width: 600px;
    min-width: 300px;
    min-height: 120px;
    height: auto;
    overflow: hidden;
    position: relative;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 50px auto;
    padding: 20px 10px;
}

.carousel-track-1 {
    display: flex;
    width: 400%;
    height: 100%;
    animation: slide-1 20s infinite;
}

.carousel-slide-1 {
    width: 25%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 15px;
    box-sizing: border-box;
}

.quote {
    font-size: 16px;
    font-style: italic !important;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.5;
    font-family: "Courier New", monospace !important;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Animation keyframes */
@keyframes slide-1 {
    0% { transform: translateX(0); }
    25% { transform: translateX(0); }
    25.1% { transform: translateX(-25%); }
    50% { transform: translateX(-25%); }
    50.1% { transform: translateX(-50%); }
    75% { transform: translateX(-50%); }
    75.1% { transform: translateX(-75%); }
    100% { transform: translateX(-75%); }
}

/* Pause animation on hover */
.carousel-container-1:hover .carousel-track-1 {
    animation-play-state: paused;
}

/* Dots indicator */
.dots-container-1 {
    text-align: center;
    margin-top: -10px;
    margin-bottom: 20px;
}

.dot-1 {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    animation: dotHighlight-1 20s infinite;
}

.dot-1:nth-child(1) { animation-delay: 0s; }
.dot-1:nth-child(2) { animation-delay: 5s; }
.dot-1:nth-child(3) { animation-delay: 10s; }
.dot-1:nth-child(4) { animation-delay: 15s; }

@keyframes dotHighlight-1 {
    0%, 25% { background-color: #717171; }
    26%, 100% { background-color: #bbb; }
}

.carousel-container-2 {
    width: 90%;
    max-width: 600px;
    min-width: 300px;
    min-height: 120px;
    height: auto;
    overflow: hidden;
    position: relative;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 50px auto;
    padding: 20px 10px;
}

.carousel-track-2 {
    display: flex;
    width: 200%;
    height: 100%;
    animation: slide-2 12s infinite;
}

.carousel-slide-2 {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 15px;
    box-sizing: border-box;
}

/* Animation keyframes */
@keyframes slide-2 {
    0% { transform: translateX(0); }
    50% { transform: translateX(0); }
    50.1% { transform: translateX(-50%); }
    100% { transform: translateX(-50%); }
}

/* Pause animation on hover */
.carousel-container-2:hover .carousel-track-2 {
    animation-play-state: paused;
}

/* Dots indicator */
.dots-container-2 {
    text-align: center;
    margin-top: -10px;
    margin-bottom: 20px;
}

.dot-2 {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    animation: dotHighlight-2 12s infinite;
}

.dot-2:nth-child(1) { animation-delay: 0s; }
.dot-2:nth-child(2) { animation-delay: 6s; }

@keyframes dotHighlight-2 {
    0%, 50% { background-color: #717171; }
    51%, 100% { background-color: #bbb; }
}

/* Tablet responsiveness */
@media (max-width: 768px) {
    .carousel-container-1,
    .carousel-container-2 {
        width: 95%;
        min-height: 140px;
        margin: 30px auto;
        padding: 20px 8px;
    }

    .carousel-slide-1,
    .carousel-slide-2 {
        padding: 12px 8px;
    }

    .quote {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 10px;
    }

    .dots-container-1,
    .dots-container-2 {
        margin-top: -5px;
    }

    .dot-1,
    .dot-2 {
        height: 8px;
        width: 8px;
        margin: 0 4px;
    }
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .carousel-container-1,
    .carousel-container-2 {
        width: 95%;
        min-width: 280px;
        min-height: 150px;
        margin: 25px auto;
        padding: 18px 6px;
    }

    .carousel-slide-1,
    .carousel-slide-2 {
        padding: 10px 6px;
    }

    .quote {
        font-size: 13px;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .dots-container-1,
    .dots-container-2 {
        margin-top: 0;
        margin-bottom: 15px;
    }

    .dot-1,
    .dot-2 {
        height: 7px;
        width: 7px;
        margin: 0 3px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .carousel-container-1,
    .carousel-container-2 {
        width: 98%;
        min-width: 260px;
        min-height: 160px;
        padding: 15px 5px;
    }

    .carousel-slide-1,
    .carousel-slide-2 {
        padding: 8px 5px;
    }

    .quote {
        font-size: 12px;
        line-height: 1.25;
    }

    .dot-1,
    .dot-2 {
        height: 6px;
        width: 6px;
        margin: 0 2px;
    }
}

/*waves style and animation*/
header {
    position: relative;
    overflow: hidden;
    background-color: #68A8CD;
}

#shape {
    position: absolute;
    left: 0;
    bottom: -2vw;
}

.waves {
    position: absolute;
    left: 0;
}
header img:nth-child(1) {
    opacity: 0.4;
    bottom: -0.1vw;
    animation: move-1 5s infinite;
}
@keyframes move-1 {
    50% {
        transform: translateY(15px);
    }
}
header img:nth-child(2) {
    opacity: 0.3;
    bottom: 0.5vw;
    animation: move-2 4s infinite;
}
@keyframes move-2 {
    50% {
        transform: translateY(35px);
    }
}
header img:nth-child(3) {
    bottom: 0.3vw;
    opacity: 0.2;
    animation: move-3 3.5s infinite;
}
@keyframes move-3 {
    50% {
        transform: translateY(25px);
    }
}

header img:nth-child(4) {
    bottom: 0.1vw;
    opacity: 0.3;
    animation: move-4 3s infinite;
}
@keyframes move-4 {
    50% {
        transform: translateY(20px);
    }
}

.container-for-flex {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 20px 0;
}

.text-section {
    flex: 1;
}

.text-section p {
    margin-bottom: 15px;
}

.text-section ul {
    margin: 10px 0;
    padding-left: 20px;
}

.text-section li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.image-content-entr {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-content-entr img {
    max-height: 200px;
    max-width: 250px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Tablet responsive */
@media (max-width: 1024px) {
    .container-for-flex {
        gap: 15px;
    }

    .image-content-entr img {
        max-height: 180px;
        max-width: 220px;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .container-for-flex {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin: 15px 0;
    }

    .text-section {
        width: 100%;
        order: 1;
    }

    .text-section p {
        font-size: 0.95rem;
    }

    .text-section ul {
        padding-left: 18px;
    }

    .text-section li {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .image-content-entr {
        order: 2;
        width: 100%;
        max-width: 300px;
    }

    .image-content-entr img {
        max-height: 200px;
        max-width: 100%;
        width: auto;
    }
}

/* Small mobile responsive */
@media (max-width: 480px) {
    .container-for-flex {
        gap: 15px;
        margin: 12px 0;
    }

    .text-section p {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .text-section ul {
        padding-left: 15px;
    }

    .text-section li {
        font-size: 0.85rem;
        margin-bottom: 8px;
        line-height: 1.5;
    }

    .image-content-entr {
        max-width: 250px;
    }

    .image-content-entr img {
        max-height: 170px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .text-section p {
        font-size: 0.85rem;
    }

    .text-section li {
        font-size: 0.8rem;
    }

    .image-content-entr {
        max-width: 220px;
    }

    .image-content-entr img {
        max-height: 150px;
    }
}

/* For tables */
table {
    border-collapse: separate;
    border-spacing: 6px;
    width: 100%;
    max-width: 1200px;
    margin: 5px auto;
    background-color: white;
    padding: 5px;
    font-family: 'Rubik', sans-serif;
}

/* Grey header styling */
thead th {
    background-color: #E4E4E4;
    color: black;
    font-weight: 600;
    text-align: center;
    padding: 15px 15px;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
    min-height: 60px;
    vertical-align: middle;
}

/* Square cell styling */
td {
    padding: 15px;
    text-align: center;
    vertical-align: middle;
    border: none;
    font-size: 14px;
    line-height: 1.5;
    color: black;
    min-height: 80px;
}

/* Gradient row colors from darkest to lightest */
tr:nth-child(1) td {
    background-color: #ABBFED;
    color: black;
}

tr:nth-child(2) td {
    background-color: #BCCCF0;
    color: black;
}

tr:nth-child(3) td {
    background-color: #CFDBF5;
    color: black;
}

tr:nth-child(4) td {
    background-color: #B7D4EF;
    color: black;
}

tr:nth-child(5) td {
    background-color: #C4DCF2;
    color: black;
}

tr:nth-child(6) td {
    background-color: #E6F0FA;
    color: black;
}

tr:nth-child(7) td {
    background-color: #eef4fa;
    color: black;
}

tr:nth-child(n+8) td {
    background-color: #eef4fa;
    color: black;
}

/* Hover effect for rows */
tr:hover td {
    transform: translateY(-2px);
    transition: all 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Image styling */
.horizontal-image {
    max-width: 95px;
    width: auto;
    height: auto;
    vertical-align: middle;
    margin: 5px auto;
    object-fit: contain;
    display: block;
}

.vertical-image {
    max-height: 90px;
    width: auto;
    height: auto;
    vertical-align: middle;
    margin: 5px auto;
    object-fit: contain;
    display: block;
}

/* Enhanced image hover effect */
table img:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Special styling for illustration column */
td:nth-child(2) {
    text-align: center;
    padding: 5px 5px;
}

/* Typography enhancements */
td strong, th strong {
    font-weight: 600;
}

/* Responsive design - Tablet */
@media (max-width: 768px) {
    table {
        margin: 10px 5px;
        border-spacing: 4px;
        padding: 4px;
        width: 98%;
    }

    th, td {
        padding: 8px 5px;
        font-size: 10px;
        min-height: 40px;
        line-height: 1.3;
    }

    thead th {
        padding: 10px 5px;
        font-size: 10px;
        letter-spacing: 0.3px;
    }

    /* Smaller images on tablet */
    .horizontal-image {
        max-width: 60px;
    }

    .vertical-image {
        max-height: 60px;
    }

    table img {
        max-height: 50px;
        max-width: 60px;
    }
}

/* Responsive design - Mobile */
@media (max-width: 480px) {
    table {
        margin: 8px 2px;
        border-spacing: 2px;
        padding: 2px;
        width: 99%; /* Almost full width */
    }

    th, td {
        padding: 6px 3px;
        font-size: 8px;
        min-height: 35px;
        line-height: 1.2;
        word-break: break-word;
    }

    thead th {
        padding: 8px 3px;
        font-size: 8px;
        letter-spacing: 0.2px;
    }

    /* Even smaller images on mobile */
    .horizontal-image {
        max-width: 40px;
    }

    .vertical-image {
        max-height: 40px;
    }

    table img {
        max-height: 35px;
        max-width: 40px;
    }

    /* Disable hover effects on mobile for performance */
    tr:hover td {
        transform: none;
        box-shadow: none;
    }

    table img:hover {
        transform: none;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    th, td {
        padding: 5px 2px;
        font-size: 8px;
    }

    thead th {
        font-size: 7px;
    }

    .horizontal-image,
    .vertical-image,
    table img {
        max-width: 30px;
        max-height: 30px;
    }
}

/* Table animation */
table {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body, html {
    font-family: 'Rubik', sans-serif;
}

body h1, body h2, body h3, body h4, body h5, body h6 {
    font-family: 'Rubik', sans-serif;
    scroll-margin-top: 5rem;
}


body p, body span, body div, body a, body li, body td, body th {
    font-family: 'Rubik', sans-serif;
}

body input, body textarea, body select, body button {
    font-family: 'Rubik', sans-serif;
}

/* Navbar specific - keep some !important for navbar only */
.navbar, .navbar-brand, .nav-link, .dropdown-item {
    font-family: 'Rubik', sans-serif !important;
}

footer div, footer p, footer h4, footer li, footer a {
    font-family: 'Rubik', sans-serif !important;
}

div p, section p {
    font-family: 'Rubik', sans-serif !important;
}


/*Protocols*/
.protocol-container {
    display: flex;
    gap: 2rem;
    min-height: 70vh;
    margin-bottom: 2rem;
}

.pdf-section {
    flex: 1;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pdf-header {
    background: linear-gradient(135deg, #42506E 0%, #68A8CD 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    position: relative;
}

.pdf-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.pdf-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 1;
}

.pdf-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.pdf-viewer-container {
    flex: 1;
    position: relative;
    background: #f8f9fa;
}

.pdf-frame {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

.pdf-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #42506E;
    text-align: center;
    padding: 2rem;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.placeholder-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #42506E;
}

.placeholder-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #68A8CD;
}

.chess-section {
    flex: 0 0 450px;
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.chess-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.chess-title {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #68A8CD, #42506E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.chess-subtitle {
    color: #42506E;
    font-size: 0.9rem;
}

.chessboard-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chessboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    width: 280px;
    height: 280px;
    border: 3px solid #42506E;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(66, 80, 110, 0.2);
    padding: 4px;
}

.chess-square {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid transparent;
}

.chess-square:hover {
    z-index: 10;
    border-color: #232c3d;
    box-shadow: 0 4px 16px rgb(104, 168, 205, 0.4);
}

.chess-square.active {
    background: linear-gradient(135deg, #68A8CD, #42506E) !important;
    color: white;
    z-index: 20;
    border: 3px solid #ffffff;
    box-shadow:
            0 4px 12px rgba(66, 80, 110, 0.3),
            0 2px 4px rgba(66, 80, 110, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
}

.chess-square.white {
    background-color: #f0f0f0;;
    color: #42506E;
}

.chess-square.black {
    background-color: #B8D4E3;
    color: #42506E;
}

.chess-square.has-protocol::after {
    content: attr(data-protocol-name);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    margin-bottom: 8px;
    z-index: 1000;
}

.chess-square.has-protocol:hover::after {
    opacity: 1;
}

/* For squares in the first row, show tooltip below instead */
.chess-square[data-number="1"]::after,
.chess-square[data-number="2"]::after,
.chess-square[data-number="3"]::after,
.chess-square[data-number="4"]::after {
    bottom: auto;
    top: 100%;
    margin-bottom: 0;
    margin-top: 8px;
}

.chessboard-container {
    overflow: visible !important;
}

.chessboard {
    overflow: visible !important;
}


.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 1.1rem;
    color: #68A8CD;
}

.loading::after {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid #68A8CD;
    border-top: 2px solid transparent;
    border-radius: 50%;
    margin-left: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

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

.btn-primary {
    background: linear-gradient(135deg, #68A8CD, #42506E);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(104, 168, 205, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .protocol-container {
        flex-direction: column;
        min-height: auto;
        gap: 1.5rem;
    }

    .pdf-section {
        order: 2;
        min-height: 500px;
    }

    .chess-section {
        order: 1;
        flex: none;
        width: 100%;
    }

    .chessboard {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .protocol-container {
        gap: 1rem;
        margin-bottom: 1rem;
        padding: 0 10px;
    }

    .chess-section,
    .pdf-section {
        padding: 1rem;
        border-radius: 12px;
        width: 100%;
    }

    .pdf-section {
        min-height: 400px;
        max-height: 500px;
    }

    .chessboard {
        width: 260px;
        height: 260px;
    }

    .chess-square {
        font-size: 0.85rem;
    }

    .pdf-header {
        padding: 0.75rem 1rem;
    }

    .pdf-title {
        font-size: 1rem;
    }

    .chess-title {
        font-size: 1.5rem;
    }

    .chess-subtitle {
        font-size: 0.85rem;
    }

    /* Adjust placeholder text */
    .placeholder-title {
        font-size: 1.1rem;
    }

    .placeholder-text {
        font-size: 0.9rem;
    }

    .placeholder-icon {
        font-size: 2.5rem;
    }

    /* Primer section */
    .primer-section {
        margin-top: 1rem;
        padding: 0.75rem;
    }

    .primer-title {
        font-size: 1rem;
    }

    .primer-subtitle {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .protocol-container {
        padding: 0 5px;
    }

    .chess-section,
    .pdf-section {
        padding: 0.75rem;
        border-radius: 10px;
    }

    .pdf-section {
        min-height: 350px;
        max-height: 450px;
    }

    .chessboard {
        width: 220px;
        height: 220px;
        padding: 3px;
    }

    .chess-square {
        font-size: 0.75rem;
        border: 1px solid transparent;
    }

    .chess-square.active {
        border: 2px solid #ffffff;
    }

    .pdf-header {
        padding: 0.5rem 0.75rem;
    }

    .pdf-title {
        font-size: 0.9rem;
    }

    .chess-header {
        margin-bottom: 1rem;
    }

    .chess-title {
        font-size: 1.3rem;
        margin-bottom: 0.25rem;
    }

    .chess-subtitle {
        font-size: 0.75rem;
    }

    .placeholder-title {
        font-size: 1rem;
    }

    .placeholder-text {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .placeholder-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .primer-section {
        margin-top: 0.75rem;
        padding: 0.6rem;
    }

    .primer-title {
        font-size: 0.9rem;
    }

    .primer-subtitle {
        font-size: 0.7rem;
    }

    .primer-icon {
        font-size: 1.5rem;
    }

    /* Make tooltip smaller on mobile */
    .chess-square.has-protocol::after {
        font-size: 11px;
        padding: 6px 8px;
    }
}

@media (max-width: 360px) {
    .chessboard {
        width: 200px;
        height: 200px;
    }

    .chess-square {
        font-size: 0.7rem;
    }

    .pdf-section {
        min-height: 300px;
        max-height: 400px;
    }

    .chess-title {
        font-size: 1.2rem;
    }

    .pdf-title {
        font-size: 0.85rem;
    }
}

.primer-section {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #68A8CD, #42506E);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(104, 168, 205, 0.2);
}

.primer-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(104, 168, 205, 0.4);
}

.primer-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.primer-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
}

.primer-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* menu design */
/* Enhanced Navbar - Minimal Typography Style */
.navbar {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    min-height: 70px;
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
}

.navbar-brand {
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.navbar-brand-logo {
    max-height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover .navbar-brand-logo {
    transform: scale(1.05);
}

/* Minimal Navigation Links */
.navbar-nav .nav-link {
    color: #42506E !important;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.75rem 1rem !important;
    margin: 0 0.5rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    text-decoration: none;
    background: transparent;
    border: none;
    border-radius: 8px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #68A8CD !important;
    letter-spacing: 1px;
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    color: #68A8CD !important;
    letter-spacing: 1px;
}

/* Enhanced Dropdown */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 0.75rem 0;
    margin-top: 0.5rem;
    min-width: 200px;
    transform: translateY(-5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.dropdown-item {
    color: #42506E !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    margin: 0;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0.3px;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(104, 168, 205, 0.08);
    color: #68A8CD !important;
    transform: translateX(8px);
    letter-spacing: 0.5px;
}

/* Mobile Menu Enhancements */
.navbar-toggler {
    border: 2px solid rgba(104, 168, 205, 0.2);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    border-color: #68A8CD;
    background: rgba(104, 168, 205, 0.1);
    transform: scale(1.05);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(104, 168, 205, 0.25);
}

/* Mobile responsive adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 12px;
        margin-top: 1rem;
        padding: 1.5rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .navbar-nav .nav-link {
        margin: 0.25rem 0;
        padding: 1rem !important;
        text-align: center;
    }

    .dropdown-menu {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: rgba(248, 249, 250, 0.8);
        box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
        margin: 0.5rem 0 0 0;
    }
}

/* Scroll animation */
@keyframes slideInFromTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar {
    animation: slideInFromTop 0.6s ease;
}


/* notebook */
.notebook-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.notebook-header {
    text-align: center;
    margin-bottom: 50px;
}

.notebook-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #42506E;
}

.notebook-subtitle {
    font-size: 1.2rem;
    color: #68A8CD;
    font-weight: 500;
}

/* Monthly navigation */
.month-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 10px; /* Add padding to prevent edge overflow */
}

.month-btn {
    background: linear-gradient(135deg, #B8D4E3, #68A8CD);
    color: #42506E;
    border: none;
    padding: 12px 18px;
    border-radius: 25px;
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    min-width: 110px;
    white-space: nowrap;
}

.month-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.month-btn:hover::before {
    left: 100%;
}

.month-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(104, 168, 205, 0.3);
    background: linear-gradient(135deg, #68A8CD, #42506E);
    color: white;
}

.month-btn.active {
    background: linear-gradient(135deg, #68A8CD, #42506E);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(104, 168, 205, 0.4);
}

/* Content area */
.notebook-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 10px; /* Add padding */
}

.content-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 3px solid #68A8CD;
    padding-bottom: 20px;
}

.month-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    color: #42506E;
}

.month-period {
    font-size: 1rem;
    color: #68A8CD;
    margin-top: 8px;
    font-weight: 500;
}

.content-body {
    /* No special styling - just regular content flow */
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    color: #68A8CD;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(104, 168, 205, 0.3);
    border-top: 3px solid #68A8CD;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 100px 20px;
    color: #666;
}

.empty-state-icon {
    font-size: 5rem;
    margin-bottom: 30px;
    opacity: 0.5;
}

/* Tablet responsiveness */
@media (max-width: 768px) {
    .notebook-container {
        padding: 15px 10px;
        max-width: 100%;
    }

    .month-navigation {
        gap: 8px;
        padding: 0 5px;
        max-width: 100%;
    }

    .month-btn {
        padding: 10px 14px;
        font-size: 0.75rem;
        min-width: 90px;
    }

    .notebook-title {
        font-size: 2.2rem;
    }

    .month-title {
        font-size: 1.8rem;
    }

    .notebook-content {
        padding: 0 15px;
    }

    .content-header {
        padding-bottom: 15px;
        margin-bottom: 30px;
    }

    /* Ensure figures don't overflow */
    .figure {
        width: 95% !important;
        max-width: none !important;
    }

    /* Ensure content doesn't overflow */
    .content-section {
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
    }

    /* Fix table overflow */
    .content-section .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 20px -10px;
    }

    /* Ensure images don't overflow */
    .content-section img {
        max-width: 100%;
        height: auto;
    }

    /* Fix PDF viewer on mobile */
    .simple-pdf-viewer {
        margin: 1.5rem -10px;
    }

    .simple-pdf-frame {
        height: 60vh;
        min-height: 400px;
    }
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .notebook-container {
        padding: 10px 5px;
    }

    .month-navigation {
        justify-content: center;
        gap: 6px;
        padding: 0 5px;
    }

    .month-btn {
        min-width: 80px;
        padding: 8px 12px;
        font-size: 0.7rem;
    }

    .notebook-title {
        font-size: 1.8rem;
    }

    .month-title {
        font-size: 1.5rem;
    }

    .notebook-content {
        padding: 0 10px;
    }

    .content-header {
        margin-bottom: 25px;
    }

    .empty-state {
        padding: 60px 15px;
    }

    .empty-state-icon {
        font-size: 4rem;
    }

    /* Further reduce figure sizes */
    .figure-row {
        flex-direction: column;
    }

    .figure-row figure {
        max-width: 100% !important;
    }

    /* Fix any potential overflow */
    .content-section h4 {
        font-size: 1.1rem;
        word-wrap: break-word;
    }

    .content-section p,
    .content-section li {
        font-size: 0.95rem;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .month-btn {
        min-width: 70px;
        padding: 7px 10px;
        font-size: 0.65rem;
    }

    .notebook-title {
        font-size: 1.6rem;
    }

    .month-title {
        font-size: 1.3rem;
    }
}

/* Notebook Content Styling - Markdown Parser Support */
.content-section {
    line-height: 1.6;
    color: #333;
    max-width: 100%; /* Prevent overflow */
    overflow-wrap: break-word;
}

.content-section ul, .content-section ol {
    margin: 1em 0;
    padding-left: 1.5em;
    list-style-position: outside;
}

.content-section ul ul, .content-section ol ol,
.content-section ul ol, .content-section ol ul {
    margin: 0.5em 0;
    padding-left: 1.5em;
}

.content-section li {
    margin: 0.3em 0;
    padding-left: 0.2em;
    line-height: 1.5;
    font-family: 'Rubik', sans-serif;
}

.content-section ul li {
    list-style-type: disc;
}

.content-section ul ul li {
    list-style-type: circle;
}

.content-section ul ul ul li {
    list-style-type: square;
}

.content-section ol li {
    list-style-type: decimal;
}

.content-section ol ol li {
    list-style-type: lower-alpha;
}

.content-section ol ol ol li {
    list-style-type: lower-roman;
}

.content-section code {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 3px;
    padding: 0.2em 0.4em;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    word-break: break-all; /* Prevent code overflow */
}

.content-section pre {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 1em;
    overflow-x: auto;
    margin: 1em 0;
}

.content-section pre code {
    background: none;
    border: none;
    padding: 0;
}

.content-section blockquote {
    border-left: 4px solid #68A8CD;
    margin: 1em 0;
    padding: 0.5em 1em;
    background-color: #f8f9fa;
    font-style: italic;
}

.content-section figure {
    margin: 2em 0;
    text-align: justify;
}

.content-section figcaption, figcaption {
    margin-top: 0.5em;
    font-style: italic;
    color: #666;
    font-size: 0.9em;
    text-align: justify;
}

.content-section hr {
    border: none;
    border-top: 2px solid #e9ecef;
    margin: 2em 0;
}

.content-section a {
    color: #68A8CD;
    text-decoration: none;
    word-break: break-word; /* Prevent long URLs from overflowing */
}

.content-section a:hover {
    color: #42506E;
    text-decoration: underline;
}

/* Modify existing header container */
.bg-hero .container {
    position: relative;
    z-index: 10;
}

.bg-hero .row {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

/* DNA Container - positioned absolutely to not affect text centering */
.dna-container {
    position: absolute;
    left: 50px; /* Moved more to the right (was -50px) */
    top: 70%; /* Moved lower (was 50%) */
    transform: translateY(-50%);
    width: 120px;
    height: 250px;
    opacity: 0.25;
    z-index: 5;
    pointer-events: none;
}

.dna-strand {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1000px;
}

/* DNA Base Pairs */
.dna-base {
    position: absolute;
    width: 3px;
    height: 12px;
    background: white;
    border-radius: 2px;
    left: 25%;
    transform-origin: center;
    animation: dnaRotateLeft 6s linear infinite;
}

.dna-base-pair {
    position: absolute;
    width: 3px;
    height: 12px;
    background: white;
    border-radius: 2px;
    right: 25%;
    transform-origin: center;
    animation: dnaRotateRight 6s linear infinite;
}

/* DNA Connecting Lines */
.dna-connection {
    position: absolute;
    height: 1px;
    background: rgba(255, 255, 255, 0.6);
    left: 25%;
    right: 25%;
    transform-origin: center;
    animation: dnaConnectionRotate 6s linear infinite;
}

/* DNA Helix Animations */
@keyframes dnaRotateLeft {
    0% {
        transform: rotateY(0deg) translateZ(30px);
        opacity: 1;
    }
    25% {
        transform: rotateY(90deg) translateZ(30px);
        opacity: 0.3;
    }
    50% {
        transform: rotateY(180deg) translateZ(30px);
        opacity: 1;
    }
    75% {
        transform: rotateY(270deg) translateZ(30px);
        opacity: 0.3;
    }
    100% {
        transform: rotateY(360deg) translateZ(30px);
        opacity: 1;
    }
}

@keyframes dnaRotateRight {
    0% {
        transform: rotateY(180deg) translateZ(30px);
        opacity: 1;
    }
    25% {
        transform: rotateY(270deg) translateZ(30px);
        opacity: 0.3;
    }
    50% {
        transform: rotateY(360deg) translateZ(30px);
        opacity: 1;
    }
    75% {
        transform: rotateY(450deg) translateZ(30px);
        opacity: 0.3;
    }
    100% {
        transform: rotateY(540deg) translateZ(30px);
        opacity: 1;
    }
}

@keyframes dnaConnectionRotate {
    0% {
        transform: rotateY(0deg) scaleX(1);
        opacity: 0.6;
    }
    25% {
        transform: rotateY(90deg) scaleX(0.3);
        opacity: 0.2;
    }
    50% {
        transform: rotateY(180deg) scaleX(1);
        opacity: 0.6;
    }
    75% {
        transform: rotateY(270deg) scaleX(0.3);
        opacity: 0.2;
    }
    100% {
        transform: rotateY(360deg) scaleX(1);
        opacity: 0.6;
    }
}

/* Center text content */
.bg-hero .col-lg-12 {
    text-align: left;
    position: relative;
}

.bg-hero h1,
.bg-hero p {
    text-align: left;
    position: relative;
    z-index: 15;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .dna-container {
        left: -10px; /* Adjusted for smaller screens */
        top: 65%;
        width: 100px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .dna-container {
        display: none; /* Hide on mobile to avoid clutter */
    }
}

@media (min-width: 1400px) {
    .dna-container {
        left: -40px; /* Adjusted for larger screens */
        top: 65%;
        width: 140px;
        height: 280px;
    }
}

.bg-hero h1.display-4 {
    font-weight: 500;
}

/*drop down elements*/
.dropdown-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto 20px auto; /* Added bottom margin for spacing */
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    word-break: break-word; /* Ensure container handles long words */
}

.dropdown-header {
    background: linear-gradient(135deg, #68A8CD 0%, #B8D4E3 100%);
    color: white;
    padding: 20px 16px; /* Increased padding for better spacing */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Changed from center to flex-start */
    transition: all 0.3s ease;
    user-select: none;
    line-height: 1.4; /* Improved line height */
    min-height: 60px; /* Increased minimum height */
    gap: 12px; /* Add gap between title and arrow */
    flex-wrap: nowrap; /* Prevent wrapping of flex items */
    align-content: flex-start; /* Align wrapped content to start */
}

.dropdown-header:hover {
    /*background: #0891B2;*/
    background: linear-gradient(135deg, #7AB8D8 0%, #C4DCE8 100%);
}

.dropdown-title {
    font-size: 15px; /* Slightly smaller for better fit */
    font-weight: 600;
    margin: 0;
    color: white !important;
    line-height: 1.4;
    flex: 1; /* Allow title to take available space */

    /* Force text wrapping - multiple approaches */
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: normal; /* Break long words aggressively */
    hyphens: none;

    /* Prevent overflow */
    max-width: 100%;
    overflow: hidden;

    /* Ensure proper wrapping */
    white-space: normal; /* Allow wrapping */
    text-align: left;

    min-width: 0; /* Allow flexbox item to shrink below content size */
    flex-basis: 0; /* Start from 0 width and grow */
    flex-grow: 1; /* Take up remaining space */
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    font-size: 16px;
    flex-shrink: 0; /* Prevent arrow from shrinking */
    margin-top: 2px; /* Slight adjustment for better alignment */
    min-width: 20px; /* Ensure arrow has minimum width */
    text-align: center;
}

@media (max-width: 768px) {
    .dropdown-header {
        padding: 16px 12px;
        min-height: 70px; /* Increased for mobile */
    }

    .dropdown-title {
        font-size: 14px;
        line-height: 1.3;
    }

    .dropdown-arrow {
        font-size: 14px;
        min-width: 18px;
    }
}

@media (max-width: 480px) {
    .dropdown-header {
        padding: 14px 10px;
        min-height: 80px; /* Even more space for very small screens */
    }

    .dropdown-title {
        font-size: 13px;
        line-height: 1.3;
    }
}

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

.dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    background: white;
}

.dropdown-content.open {
    max-height: 30000px;
    overflow: visible;
}

.dropdown-text {
    padding: 24px;
    border-top: 3px solid #B8D4E3;
    min-width: 0;
}

.dropdown-content-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.dropdown-content-title {
    font-size: 20px;
    font-weight: 700;
    color: black !important;
    margin: 0 0 8px 0;
    font-family: 'Rubik', sans-serif;
}

.dropdown-content-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: #666 !important;
    margin: 0;
    font-style: italic;
    font-family: 'Rubik', sans-serif;
}

.dropdown-text p {
    margin: 0 0 16px 0;
    color: #333;
}

.dropdown-text p:last-child {
    margin-bottom: 0;
}

.dropdown-figures {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: nowrap; /* Prevent wrapping */
}

.dropdown-figures .figure {
    flex: 1;
    margin: 0;
    max-width: 48%;
}

.dropdown-figures .figure img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 0;
    border: none;
}

/* Multiple dropdown styling */
.dropdown-container + .dropdown-container {
    margin-top: 16px;
}

/* Pink variant for dropdown elements */
.dropdown-container.pink .dropdown-header {
    background: linear-gradient(135deg, #A64D79 0%, #D4A5C0 100%);
}

.dropdown-container.pink .dropdown-header:hover {
    background: linear-gradient(135deg, #B85D89 0%, #DEBDCE 100%);
}

.dropdown-container.pink .dropdown-text {
    border-top: 3px solid #D4A5C0;
}


/* Fix for figure centering */
.content-section .figure-center,
.section .figure-center {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    text-align: justify; /* This ensures the figure itself is centered within its container */
}


.stats-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Always 2 columns */
    grid-template-rows: 1fr 1fr; /* Always 2 rows */
    gap: 25px;
    margin-bottom: 30px;
    max-width: 800px; /* Constrain max width for better proportions */
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    min-height: 140px; /* Ensure consistent height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(104, 168, 205, 0.2);
    border-color: #68A8CD;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #68A8CD, #42506E);
}

.stat-number {
    font-size: 3.2rem;
    font-weight: 700;
    color: #68A8CD;
    margin-bottom: 15px;
    animation: fadeInUp 0.8s ease;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #42506E;
    line-height: 1.4;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Responsive Design - Still maintain 2x2 on smaller screens */
@media (max-width: 768px) {
    .stats-container {
        gap: 20px;
        max-width: 600px;
    }

    .stat-card {
        padding: 25px 15px;
        min-height: 120px;
    }

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

    .stat-label {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .stats-container {
        gap: 15px;
        max-width: 400px;
    }

    .stats-section {
        padding: 40px 10px;
    }

    .stat-card {
        padding: 20px 10px;
        min-height: 110px;
    }

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

    .stat-label {
        font-size: 0.9rem;
        line-height: 1.3;
    }
}

/* For very small screens, you might want to consider stacking vertically */
@media (max-width: 320px) {
    .stats-container {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
        max-width: 280px;
    }
}
/* Reference link styling */
.reference-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    padding: 1px 4px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.reference-link:hover {
    background-color: #e6f3ff;
    text-decoration: underline;
}

/* Reference styling */
.reference-item {
    margin-bottom: 15px;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.reference-item:target {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    animation: highlight 2s ease-out;
}

.reference-number {
    color: #0066cc;
    font-weight: bold;
    margin-right: 8px;
}

/* Highlight animation */
@keyframes highlight {
    0% {
        background-color: #fff3cd;
        transform: scale(1.02);
    }
    100% {
        background-color: transparent;
        transform: scale(1);
    }
}

.content-section li, .section li {
    color: black;
}

/* General PDF definitions */
.simple-pdf-viewer {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    background: white;
}

.simple-pdf-frame {
    width: 100%;
    height: 100vh;
    min-height: 600px;
    border: none;
    display: block;
}

/* Tablet responsiveness */
@media (max-width: 768px) {
    .simple-pdf-viewer {
        margin: 1.5rem 10px;
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }

    .simple-pdf-frame {
        height: 70vh;
        min-height: 500px;
        max-height: 600px;
    }
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .simple-pdf-viewer {
        margin: 1rem 5px;
        border-radius: 10px;
    }

    .simple-pdf-frame {
        height: 60vh;
        min-height: 400px;
        max-height: 500px;
    }
}

/* Small mobile screens */
@media (max-width: 360px) {
    .simple-pdf-viewer {
        margin: 0.75rem 5px;
    }

    .simple-pdf-frame {
        height: 55vh;
        min-height: 350px;
        max-height: 450px;
    }
}

/*Results page*/
.results-container {
    max-width: 1000px;
    margin: 10px auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding-top: 20px;
}

.intro-box {
    padding: 0 20px;
    margin-bottom: 20px;
}

.icons-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 15px 15px;
    background: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
    align-items: start;
}

.chess-icon {
    height: 150px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    grid-row: 1;
    transition: transform 0.3s ease;
}

.figure-results-header {
    display: block;
    margin: 5px auto;
    text-align: center;
    max-width: 700px;
    width: 100%;
    padding: 0 10px;
}

.figure-results-header img {
    width: 100%;
    max-height: 210px;
    object-fit: contain;
    border: none;
    border-radius: 0;
}

.results-container .icons-container {
    margin-top: 30px;
    padding: 30px 20px;
}

.experiment-icon:hover .chess-icon {
    transform: scale(1.05);
}

.experiment-icon {
    display: grid;
    grid-template-rows: auto 1fr;
    justify-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
    min-height: 180px;
    gap: 15px;
}

.experiment-icon:hover {
    transform: translateY(-5px);
}

.experiment-icon.active {
    transform: translateY(-3px);
}

.icon-content {
    display: contents;
}

.icon-label {
    grid-row: 2;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    color: #000000;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    padding: 0 10px;
    align-self: start;
}

.content-area {
    padding: 40px;
    min-height: 400px;
    background: white;
    position: relative;
}

.experiment-content {
    display: none;
    animation: fadeInUp 0.6s ease-out;
}

.experiment-content.active {
    display: block;
}

#section4-results {
    margin-top: 60px;
}

.welcome-message {
    text-align: center;
    color: #000000;
    font-size: 1.3rem;
    padding: 60px 20px;
    border-radius: 15px;
}

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

/* Tablet responsiveness */
@media (max-width: 1024px) {
    .results-container {
        margin: 10px;
        border-radius: 15px;
    }

    .icons-container {
        gap: 15px;
        padding: 20px 15px;
    }

    .chess-icon {
        height: 120px;
    }

    .icon-label {
        font-size: 0.9rem;
    }

    .content-area {
        padding: 30px 25px;
    }
}

/* Mobile responsiveness - KEEP 4 COLUMNS */
@media (max-width: 768px) {
    .results-container {
        margin: 5px;
        border-radius: 10px;
        padding-top: 15px;
    }

    .intro-box {
        padding: 0 15px;
        margin-bottom: 15px;
    }

    .intro-box p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .figure-results-header {
        max-width: 100%;
        padding: 0 5px;
    }

    .figure-results-header img {
        max-height: 150px;
    }

    /* Keep 4 columns, just make everything smaller */
    .icons-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        padding: 15px 5px;
        margin-top: 15px;
    }

    .experiment-icon {
        min-height: 100px;
        gap: 5px;
        padding: 5px 2px;
    }

    .chess-icon {
        height: 70px;
    }

    .icon-label {
        font-size: 0.7rem;
        line-height: 1.1;
        padding: 0 2px;
    }

    .content-area {
        padding: 20px 15px;
        min-height: 300px;
    }

    .welcome-message {
        font-size: 1.1rem;
        padding: 40px 15px;
    }

    /* Ensure dropdown content fits */
    .dropdown-container {
        margin: 15px 0;
    }

    .dropdown-header {
        padding: 12px 15px;
    }

    .dropdown-title {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .dropdown-content {
        padding: 15px;
    }

    .dropdown-text h4 {
        font-size: 1.1rem;
    }

    .dropdown-text p,
    .dropdown-text li {
        font-size: 0.9rem;
    }

    /* Fix figure overflow */
    .experiment-content figure {
        margin: 15px 0;
    }

    .experiment-content img {
        max-width: 100%;
        height: auto;
    }

    /* Fix table overflow */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 15px -15px;
        padding: 0 15px;
    }

    .experiment-content table {
        font-size: 0.85rem;
    }

    /* Video container */
    .video-container {
        margin: 15px -15px;
    }

    .video-container iframe {
        width: 100%;
        height: auto;
        min-height: 250px;
    }
}

/* Small mobile screens - STILL 4 COLUMNS */
@media (max-width: 480px) {
    .results-container {
        margin: 5px;
    }

    h3 {
        font-size: 1.2rem;
        padding: 0 10px;
    }

    .intro-box p {
        font-size: 0.85rem;
    }

    .figure-results-header img {
        max-height: 120px;
    }

    /* Even smaller but still 4 columns */
    .icons-container {
        gap: 6px;
        padding: 10px 3px;
    }

    .experiment-icon {
        min-height: 85px;
        gap: 4px;
        padding: 3px 1px;
    }

    .chess-icon {
        height: 55px;
    }

    .icon-label {
        font-size: 0.65rem;
        line-height: 1.05;
        padding: 0 1px;
        font-weight: 500;
    }

    .content-area {
        padding: 15px 10px;
        min-height: 250px;
    }

    .welcome-message {
        font-size: 1rem;
        padding: 30px 10px;
    }

    .experiment-content h2 {
        font-size: 1.4rem;
    }

    .dropdown-title {
        font-size: 0.85rem;
    }

    .dropdown-text h4 {
        font-size: 1rem;
    }

    .dropdown-text p,
    .dropdown-text li {
        font-size: 0.85rem;
    }

    .experiment-content table {
        font-size: 0.75rem;
    }

    .video-container iframe {
        min-height: 200px;
    }
}

/* Extra small screens - STILL 4 COLUMNS */
@media (max-width: 360px) {
    .icons-container {
        gap: 4px;
        padding: 8px 2px;
    }

    .experiment-icon {
        min-height: 75px;
        gap: 3px;
    }

    .chess-icon {
        height: 48px;
    }

    .icon-label {
        font-size: 0.6rem;
        line-height: 1;
    }

    .content-area {
        padding: 12px 8px;
    }

    .dropdown-header {
        padding: 10px 12px;
    }

    .dropdown-content {
        padding: 12px;
    }
}

/* Figure Row Layout - Side by Side Figures */
.figure-row {
    display: flex;
    justify-content: center;
    align-items: stretch; /* Changed from flex-start to stretch */
    gap: 5px; /* Reduced from 20px */
    margin: 30px 0;
    flex-wrap: wrap;
}

.figure-row figure {
    flex: 1;
    min-width: 100px;
    max-width: 48%;
    margin: 0;
    height: 200px; /* Fixed height */
}

.figure-row figure img {
    width: 100%;
    height: 100%; /* Changed from auto */
    object-fit: cover; /* Added - crops images to fill space */
    flex: 1; /* Added - makes image take up available space */
}

/* If you want to maintain aspect ratio instead of cropping: */
.figure-row figure img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Use contain instead of cover to show full image without cropping */
}

/* Mobile responsive */
@media (max-width: 768px) {
    .figure-row {
        flex-direction: column;
        gap: 10px; /* Reduced from 15px */
    }

    .figure-row figure {
        max-width: 100%;
        width: 100%;
    }
}

.intro-box {
    background-color: #e3f2fd; /* Light blue background */
    border-radius: 12px;
    padding: 30px;
    margin: 20px auto;
    max-width: 900px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Background pattern on left and right sides */
body::before,
body::after {
    content: '';
    position: fixed;
    top: 0;
    bottom: 0;
    width: 50px; /* Adjust width as needed */
    background-image: url('https://static.igem.wiki/teams/5661/general/faded-background.webp');
    background-size: 60px 60px; /* width height */
    background-repeat: space; /* Distributes space evenly */
    opacity: 0.8;
    pointer-events: none; /* Don't interfere with clicking */
    z-index: -1; /* Behind everything */
}

/* Left side */
body::before {
    left: 0;
}

/* Right side */
body::after {
    right: 0;
    margin-right: 0;
}

/* ====== BACKGROUND PATTERN MOBILE FIXES ====== */
/* Hide background pattern on mobile and tablets */
@media (max-width: 1024px) {
    body::before,
    body::after {
        display: none !important;
    }
}


.judging-container {
    max-width: 1000px;
    margin: 0 auto;
}

.page-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    color: #42506E;
    margin-bottom: 60px;
}

/* Medal Section Styling */
.medal-section {
    text-align: center;
    margin: 60px 0;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

/* Bronze Medal */
.medal-section.bronze {
    background: linear-gradient(135deg, #fef5e7 0%, #f9e4d4 100%);
    border: 3px solid #cd7f32;
}

/* Silver Medal */
.medal-section.silver {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 3px solid #c0c0c0;
}

/* Gold Medal */
.medal-section.gold {
    background: linear-gradient(135deg, #fffbea 0%, #fff4cc 100%);
    border: 3px solid #ffd700;
}

.medal-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #42506E;
    margin-bottom: 10px;
}

.medal-image-container {
    margin: 30px 0 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.medal-icon {
    width: 150px;
    height: 150px;
    transition: transform 0.5s ease;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}

.medal-icon:hover {
    transform: scale(1.15) rotate(10deg);
}

/* Content area */
.medal-content {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.7);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.medal-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #42506E;
    margin-bottom: 20px;
    border-bottom: 3px solid #68A8CD;
    padding-bottom: 10px;
}

.medal-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
}

.medal-content a {
    color: #68A8CD;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.medal-content a:hover {
    color: #42506E;
    text-decoration: underline;
}

/* Decorative elements */
.medal-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    opacity: 0.1;
}

.medal-section.bronze::before {
    background: #cd7f32;
}

.medal-section.silver::before {
    background: #c0c0c0;
}

.medal-section.gold::before {
    background: #ffd700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }

    .medal-section {
        padding: 30px 20px;
        margin: 40px 0;
    }

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

    .medal-icon {
        width: 120px;
        height: 120px;
    }

    .medal-content {
        padding: 20px;
    }

    .medal-content h3 {
        font-size: 1.5rem;
    }

    .medal-content p {
        font-size: 1rem;
    }
}

.gallery-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.gallery-main {
    position: relative;
    padding: 50px 80px;
    background: white;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mySlides {
    display: none;
    width: 100%;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.mySlides.active {
    display: flex;
}

.mySlides img {
    width: 48%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mySlides img:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(4px);
}

.nav-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow.prev {
    left: 20px;
}

.nav-arrow.next {
    right: 20px;
}

.gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 30px 0;
    background: white;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d0d0d0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.indicator:hover {
    background: #a0a0a0;
    transform: scale(1.2);
}

.indicator.active {
    background: #333;
    width: 30px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .gallery-main {
        padding: 30px 60px;
    }

    .mySlides {
        flex-direction: column;
        gap: 20px;
    }

    .mySlides img {
        width: 90%;
    }

    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .nav-arrow.prev {
        left: 10px;
    }

    .nav-arrow.next {
        right: 10px;
    }

    .gallery-main {
        min-height: 350px;
    }
}

@media (max-width: 480px) {
    .gallery-main {
        padding: 20px 50px;
    }
}

.subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 40px;
    font-size: 1.2em;
}
.content-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.image-container {
    position: relative;
    width: 350px;
    height: 350px;
    flex-shrink: 0;
}

.cycle-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.4s ease;
}

.cycle-image.hidden {
    opacity: 0;
}

.clickable-area {
    position: absolute;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.clickable-area:hover {
    opacity: 0.7;
}

/* Define clickable quadrants */
.area-design {
    top: 15%;
    right: 15%;
    width: 35%;
    height: 35%;
}

.area-build {
    bottom: 15%;
    right: 15%;
    width: 35%;
    height: 35%;
}

.area-test {
    bottom: 15%;
    left: 15%;
    width: 35%;
    height: 35%;
}

.area-learn {
    top: 15%;
    left: 15%;
    width: 35%;
    height: 35%;
}

.content-panel {
    min-height: 100px;
    background: white;
    border-radius: 15px;
    padding: 10px;
    position: relative;
    display: none;
}

.content-panel.active {
    display: block;
}

.content-panel.hidden {
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder {
    color: #95a5a6;
    text-align: center;
    font-size: 1.1em;
}

.phase-content {
    display: none;
}

.phase-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #95a5a6;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #2c3e50;
}

.phase-title {
    font-size: 2em;
    color: #2c3e50;
    margin-bottom: 20px;
}

.phase-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
}

.phase-subtitle {
    font-size: 1.2em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.activities-list {
    list-style: none;
}

.activities-list li {
    padding-left: 25px;
    margin-bottom: 12px;
    color: #555;
    position: relative;
}

.activities-list li::before {
    content: "●";
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

.design-color li::before { color: #3498db; }
.build-color li::before { color: #16a085; }
.test-color li::before { color: #008ba3; }
.learn-color li::before { color: #2980b9; }

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }

    .image-container {
        width: 100%;
        max-width: 400px;
        height: auto;
        aspect-ratio: 1;
    }

    .content-panel {
        width: 100%;
        max-width: 450px;
    }

}

/* Responsive iframe container for videos */
.video-container {
    position: relative;
    width: 100%;
    max-width: 800px; /* Maximum width on desktop */
    margin: 20px auto;
    padding-bottom: 56.25%; /* 16:9 aspect ratio (9/16 = 0.5625) */
    height: 0;
    overflow: hidden;
    text-align: center;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .video-container {
        max-width: 100%;
        margin: 15px auto;
    }
}

@media (max-width: 480px) {
    .video-container {
        margin: 10px auto;
    }
}

/* Software CTA Section */
.software-cta {
    max-width: 450px;
    margin: 2rem auto;
    text-align: center;
    padding: 0 1rem;
}

.software-intro {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    color: #42506e;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.software-link-box {
    display: block;
    background: linear-gradient(135deg, #A8CCE5 0%, #7AB8D8 100%);
    color: white !important;
    text-decoration: none !important;
    padding: 1.5rem 1.5rem;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(104, 168, 205, 0.25);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.software-link-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s ease;
}

.software-link-box:hover::before {
    left: 100%;
}

.software-link-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(104, 168, 205, 0.4);
}

.software-box-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.software-text-content {
    width: 100%;
    text-align: center;
}

.software-title {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: white;
    letter-spacing: 0.02em;
}

.software-description {
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    margin: 0 0 1rem 0;
    color: rgba(255, 255, 255, 0.95) !important;
    line-height: 1.5;
    font-weight: 500;
}

.software-image-container {
    width: 100%;
    max-width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.software-icon-img {
    width: 100%;
    max-width: 180px;
    height: auto;
    border-radius: 12px;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.25));
}

.software-link-box:hover .software-icon-img {
    transform: scale(1.03);
}

.software-cta-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.35rem 1rem; /* Smaller */
    border-radius: 15px; /* Smaller radius */
    font-size: 0.8rem; /* Smaller */
    font-weight: 600;
    margin-top: 0.75rem; /* Reduced */
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .software-cta {
        margin: 3rem auto;
    }

    .software-intro {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

    .software-link-box {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .software-box-content {
        gap: 1.5rem;
    }

    .software-title {
        font-size: 1.6rem;
    }

    .software-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .software-icon-img {
        max-width: 100%;
        border-radius: 12px;
    }

    .software-cta-badge {
        font-size: 0.9rem;
        padding: 0.4rem 1.2rem;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .software-link-box {
        padding: 1.5rem 1rem;
    }

    .software-title {
        font-size: 1.4rem;
    }

    .software-description {
        font-size: 0.95rem;
    }

    .software-icon-img {
        border-radius: 10px;
    }
}

/* Text with icon layout */
.text-with-icon {
    display: grid;
    grid-template-columns: auto 70px;
    gap: 5px;
    align-items: start;
    margin-bottom: 2rem;
}

.text-content {
    width: 100%;
    min-width: 0;
}

.text-content p {
    margin: 0;
    line-height: 1.7;
}

.text-content strong {
    font-size: 1.1em;
}

.icon-container {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.icon-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .text-with-icon {
        grid-template-columns: 1fr 55px;
        gap: 12px;
    }

    .icon-container {
        width: 55px;
        height: 55px;
    }

    .text-content strong {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .text-with-icon {
        grid-template-columns: 1fr 50px;
        gap: 10px;
    }

    .icon-container {
        width: 50px;
        height: 50px;
    }

    .text-content strong {
        font-size: 0.95em;
    }
}

.container-features {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center !important;
}

.header-features {
    text-align: center !important;
    margin-bottom: 40px;
    font-size: 2rem;
    text-decoration: none;
    font-weight: bold;
    color: #42506e;
}

.box-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    margin-top: 20px;
}

.box {
    background: #122848;
    border-radius: 10px;
    padding: 20px 15px;
    text-align: center;
    text-decoration: none;
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.box:hover::before {
    left: 100%;
}

.box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.box-title {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.feature-selection-note {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 1.2rem;
    color: #666;
}

.feature-selection-note a {
    color: #4a90b8;
    text-decoration: none;
    font-weight: 500;
}

.feature-selection-note a:hover {
    text-decoration: underline;
}

.back-to-features {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.back-to-features a {
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
}

.back-to-features a:hover {
    text-decoration: underline;
}

.back-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #f5f5f5;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: #e0e0e0;
}

.gold-medal-section {
    margin-bottom: 100px;
    animation: fadeInScale 1s ease-out 0.3s both;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gold-medal-card {
    padding: 60px 50px;
    text-align: center;
    position: relative;
}

.medal-icon-container {
    width: 160px;
    height: 160px;
    margin: 0 auto 35px;
    position: relative;
    z-index: 1;
}

.medal-icon-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    animation: float 3s ease-in-out infinite;
}

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

.medal-icon-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(212, 175, 55, 0.4));
}

.gold-medal-card h2 {
    font-family: 'Rubik', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #B8941F;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.medal-subtitle {
    font-size: 1.2rem;
    color: #42506E;
    font-weight: 500;
    position: relative;
    z-index: 1;
    letter-spacing: 1px;
}

/* Nominations Section */
.nominations-section {
    margin-top: 80px;
}

.section-title {
    font-family: 'Rubik', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #42506E;
    position: relative;
    animation: fadeIn 0.8s ease-out 0.5s both;
    padding: 20px 0;
    background: linear-gradient(135deg, rgba(104, 168, 205, 0.08) 0%, rgba(184, 212, 227, 0.08) 100%);
    border-radius: 15px;
    letter-spacing: 1px;
}

.section-title::before,
.section-title::after {
    content: '✦';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #68A8CD;
    opacity: 0.6;
}

.section-title::before {
    left: 20%;
}

.section-title::after {
    right: 20%;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.nominations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin-bottom: 60px;
}

.nomination-card {
    padding: 45px 30px;
    text-align: center;
    position: relative;
    animation: fadeInUp 0.8s ease-out both;
}

.nomination-card:nth-child(1) { animation-delay: 0.6s; }
.nomination-card:nth-child(2) { animation-delay: 0.75s; }
.nomination-card:nth-child(3) { animation-delay: 0.9s; }

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

.nomination-card:hover .nomination-icon-placeholder {
    transform: scale(1.15);
}

.nomination-icon-container {
    width: 110px;
    height: 110px;
    margin: 0 auto 30px;
    position: relative;
}

.nomination-icon-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    transition: all 0.4s ease;
    color: #68A8CD;
}

.nomination-icon-placeholder svg {
    width: 100%;
    height: 100%;
}

.nomination-card:hover .nomination-icon-placeholder {
    transform: scale(1.15);
}

.nomination-icon-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nomination-card h3 {
    font-family: 'Rubik', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #42506E;
    margin-bottom: 12px;
    line-height: 1.3;
}

.nomination-card .category {
    font-size: 1rem;
    color: #68A8CD;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Footer decoration */
.awards-footer {
    text-align: center;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(104, 168, 205, 0.2);
    animation: fadeIn 1.2s ease-out;
}

.awards-footer p {
    font-family: 'Rubik', sans-serif;
    font-size: 1.1rem;
    color: #68A8CD;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 1024px) {
    body::before,
    body::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .page-container {
        padding: 40px 20px;
    }

    .gold-medal-card {
        padding: 50px 30px;
    }

    .gold-medal-card h2 {
        font-size: 2.5rem;
    }

    .medal-icon-container {
        width: 130px;
        height: 130px;
    }

    .nominations-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .section-title {
        font-size: 2.2rem;
        padding: 15px 10px;
    }

    .section-title::before,
    .section-title::after {
        font-size: 1.2rem;
    }

    .section-title::before {
        left: 10%;
    }

    .section-title::after {
        right: 10%;
    }

    .nomination-card {
        padding: 40px 25px;
    }

    .nomination-card h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .page-container {
        padding: 30px 15px;
    }

    .gold-medal-section {
        margin-bottom: 60px;
    }

    .gold-medal-card {
        padding: 40px 20px;
        border-radius: 15px;
    }

    .gold-medal-card h2 {
        font-size: 2rem;
    }

    .medal-subtitle {
        font-size: 1rem;
    }

    .medal-icon-container {
        width: 110px;
        height: 110px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
        padding: 12px 5px;
    }

    .section-title::before,
    .section-title::after {
        font-size: 1rem;
    }

    .section-title::before {
        left: 5%;
    }

    .section-title::after {
        right: 5%;
    }

    .nomination-card {
        padding: 35px 20px;
    }

    .nomination-icon-container {
        width: 90px;
        height: 90px;
    }

    .nomination-card h3 {
        font-size: 1.3rem;
    }

    .nomination-card .category {
        font-size: 0.9rem;
    }

    .awards-footer {
        margin-top: 60px;
    }

    .awards-footer p {
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Special Awards Link Styling - No background, just shine */
.awards-special {
    color: #42506E !important;
    border-radius: 8px;
    padding: 8px 16px !important;
    font-weight: 700 !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background: transparent !important;
    border: 2px solid transparent;
    background-image: linear-gradient(white, white),
    linear-gradient(135deg, #FFD700 0%, #FF6B9D 50%, #68A8CD 100%);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
}

/* Animated gradient border */
@keyframes rotateBorder {
    0% {
        background-image: linear-gradient(white, white),
        linear-gradient(135deg, #FFD700 0%, #FF6B9D 50%, #68A8CD 100%);
    }
    25% {
        background-image: linear-gradient(white, white),
        linear-gradient(135deg, #68A8CD 0%, #FFD700 50%, #FF6B9D 100%);
    }
    50% {
        background-image: linear-gradient(white, white),
        linear-gradient(135deg, #FF6B9D 0%, #68A8CD 50%, #FFD700 100%);
    }
    75% {
        background-image: linear-gradient(white, white),
        linear-gradient(135deg, #FFD700 0%, #FF6B9D 50%, #68A8CD 100%);
    }
    100% {
        background-image: linear-gradient(white, white),
        linear-gradient(135deg, #68A8CD 0%, #FFD700 50%, #FF6B9D 100%);
    }
}

.awards-special {
    animation: rotateBorder 3s linear infinite;
}

/* Sparkle shine effect overlay */
.awards-special::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
    transparent,
    rgba(255, 215, 0, 0.4),
    rgba(255, 107, 157, 0.4),
    rgba(104, 168, 205, 0.4),
    transparent);
    transition: left 0.6s ease;
}

.awards-special:hover::before {
    left: 100%;
}

.awards-special:hover {
    transform: translateY(-2px);
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

/* Colorful gold badge */
.gold-badge {
    display: inline-block;
    font-size: 0.9rem;
    margin-left: 4px;
    animation: bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.8));
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
    25% {
        transform: translateY(-2px) scale(1.05) rotate(-5deg);
    }
    50% {
        transform: translateY(-4px) scale(1.1) rotate(0deg);
    }
    75% {
        transform: translateY(-2px) scale(1.05) rotate(5deg);
    }
}

/* Add sparkle particles effect */
.awards-special::after {
    content: '✦';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #FFD700;
    opacity: 0.7;
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(-50%) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.2);
    }
}

/* Mobile responsive adjustments */
@media (max-width: 991.98px) {
    .awards-special {
        margin: 0.25rem 0;
        padding: 1rem !important;
        text-align: center;
    }

    .gold-badge {
        margin-left: 8px;
    }
}