  :root {
            --yb-primary: #20493C;
            --yb-primary-rgb: 32, 73, 60;
            --yb-secondary: #2a6f55;
            --yb-secondary-rgb: 42, 111, 85;
            --yb-accent: #f0ad4e;
            --yb-text-dark: #2c3e50;
            --yb-text-dark-rgb: 44,62,80;
            --yb-text-medium: #5a6872;
            --yb-text-light: #7f8c98;
            --yb-bg-main: #ffffff;
            --yb-bg-light: #f4f7f9;
            --yb-border-color: #dde3e9;
            --yb-border-radius: 16px;
            --yb-border-radius-sm: 8px;
            --yb-transition-fast: 0.25s ease-out;
            --yb-transition-medium: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        }
        html { 
            scroll-behavior: smooth; 
        }
        body { 
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
            color: var(--yb-text-medium); 
            background-color: var(--yb-bg-light); 
            line-height: 1.7; 
            font-size: clamp(15px, 1.2vw, 16px); 
        }


        h1, h2, h3, h4, h5, h6 {
            font-family: inherit;
            color: var(--yb-text-dark);
            font-weight: 700;
        }

        *:focus-visible {
            outline: 2px solid var(--yb-accent);
            outline-offset: 2px;
            box-shadow: 0 0 0 4px rgba(var(--yb-accent), 0.3);
        }

        .project-detail-hero {
            padding: 100px 0 80px;
            background-size: cover;
            background-position: center center;
            position: relative;
            color: white;
            text-align: center;
        }

        .project-detail-hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(
                160deg,
                rgba(var(--yb-primary-rgb), 0.7) 0%,
                rgba(var(--yb-secondary-rgb), 0.8) 60%,
                rgba(0,0,0,0.85) 100%
            );
            z-index: 1;
        }
        .project-detail-hero .container {
            position: relative;
            z-index: 2;
        }
        .project-detail-hero h1 {
            font-size: clamp(2.5em, 5vw, 3.8em);
            font-weight: 700;
            margin-bottom: 15px;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
            color: white;
        }
        .project-detail-hero .category-tag {
            display: inline-block;
            background-color: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(5px);
            color: white;
            padding: 8px 20px;
            border-radius: 25px;
            font-size: 0.9em;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 20px;
            border: 1px solid rgba(255, 255, 255, 0.3);
        }
        .project-detail-hero .project-subtitle {
            font-size: clamp(1em, 2vw, 1.3em);
            max-width: 750px;
            margin: 0 auto;
            color: #e0e0e0;
            text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
        }
        .project-detail-content {
            padding: 60px 0;
        }
        .section-heading {
            font-size: 2em;
            color: var(--yb-primary);
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--yb-accent);
            display: inline-block;
        }

        .sidebar-section-heading {
            font-size: 1.6em;
            color: var(--yb-primary);
            margin-bottom: 20px;
            padding-bottom: 8px;
            border-bottom: 1px solid var(--yb-accent);
            display: inline-block;
        }

        .project-detail-section {
            background-color: var(--yb-bg-main);
            padding: 30px;
            border-radius: var(--yb-border-radius);
            margin-bottom: 30px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.05);
            transition: box-shadow var(--yb-transition-fast);
            justify-content: center;
            align-content: center;
            text-align: center;
        }

        .col-lg-8 .project-detail-section:hover {
            box-shadow: 0 8px 25px rgba(var(--yb-text-dark-rgb),0.07);
        }

        .col-lg-4 .project-detail-section {
            background-color: #fdfdfd;
        }

        .project-detail-section p {
            margin-bottom: 1.2em;
            color: var(--yb-text-medium);
        }

        .project-detail-section ul:not(.browser-default) {
            list-style: none;
            padding-left: 0;
        }

        #keyFeaturesList li {
            padding-left: 25px;
            position: relative;
            margin-bottom: 10px;
            font-size: 1.05em;
        }

        #keyFeaturesList li::before {
            content: "\f00c";
            font-family: FontAwesome;
            position: absolute;
            left: 0;
            top: 1px;
            color: var(--yb-secondary);
        }
        .tech-tags-list .tech-tag {
            display: inline-block;
            background-color: #f0f4f8;
            color: var(--yb-text-medium);
            padding: 7px 15px;
            font-size: 0.9em;
            border-radius: var(--yb-border-radius-sm);
            margin: 5px;
            font-weight: 500;
            transition: all var(--yb-transition-fast);
        }
        .tech-tags-list .tech-tag:hover {
            background-color: var(--yb-secondary);
            color: white;
            transform: translateY(-2px);
        }
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        #galleryMainImage,
        .image-gallery-thumbnails img,
        .video-poster,
        .team-member-card img.avatar,
        .lead-sponsor-card img.avatar {
            animation: fadeIn 0.6s ease-in-out;
        }
        #imageGalleryMain img,
        #imageGalleryThumbnails img {
            border-radius: var(--yb-border-radius-sm);
        }
        .image-gallery-main {
            margin-bottom: 15px;
        }
        .image-gallery-main img#galleryMainImage {
            width: 100%;
            max-height: 550px;
            object-fit: cover;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            cursor: pointer;
        }
        .image-gallery-thumbnails {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
        }
        .image-gallery-thumbnails a {
            display: block;
            border: 3px solid transparent;
            border-radius: var(--yb-border-radius-sm);
            padding: 2px;
            background-clip: padding-box;
            transition: border-color 0.3s ease-out, transform 0.3s ease-out, box-shadow 0.3s ease-out;
        }
        .image-gallery-thumbnails a:hover {
            border-color: var(--yb-secondary);
            transform: scale(1.08);
            box-shadow: 0 4px 12px rgba(var(--yb-secondary-rgb), 0.3);
        }
        .image-gallery-thumbnails img {
            width: 120px;
            height: 90px;
            object-fit: cover;
            cursor: pointer;
            display: block;
        }
        .mfp-bg {
            background: rgba(0,0,0,0.85);
        }
        .mfp-figure {
            box-shadow: 0 5px 25px rgba(0,0,0,0.35);
        }
        .mfp-image-holder .mfp-close,
        .mfp-iframe-holder .mfp-close {
            color: #fff !important;
            opacity: 0.75 !important;
            font-size: 30px !important;
            right: 0px !important;
            top: 0px !important;
            width: 44px !important;
            height: 44px !important;
            line-height: 44px !important;
            background: rgba(0,0,0,0.4) !important;
            border-radius: 0 0 0 var(--yb-border-radius-sm) !important;
            text-shadow: none !important;
            transition: opacity 0.2s ease, background-color 0.2s ease !important;
        }
        .mfp-image-holder .mfp-close:hover,
        .mfp-iframe-holder .mfp-close:hover {
            opacity: 1 !important;
            background-color: rgba(0,0,0,0.7) !important;
        }
        
        .image-gallery-main video {
            width: 100%;
            max-height: 500px;
            border-radius: 10px;
        }

        
        .image-gallery-thumbnails video {
            width: 120px;
            height: 80px;
            cursor: pointer;
            border-radius: 6px;
            object-fit: cover;
        }


        /* UPDATED: Simplified Arrow CSS */
        .mfp-arrow {
            opacity: 0.65;
            transition: all 0.2s ease-out;
            background: rgba(0, 0, 0, 0.4);
            border-radius: var(--yb-border-radius-sm);
            width: 50px;
            height: 70px;
            margin-top: -35px;
            border: 0;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .mfp-arrow:hover { opacity: 1; background: rgba(0, 0, 0, 0.6); }
        .mfp-arrow svg {
            width: 28px;
            height: 28px;
            stroke: white;
            stroke-width: 2.5px;
            stroke-linecap: round;
            stroke-linejoin: round;
            fill: none;
        }
        /* End of Arrow Update */

        .mfp-fade.mfp-bg {
            opacity: 0;
            transition: all 0.3s ease-out;
        }
        .mfp-fade.mfp-bg.mfp-ready {
            opacity: 0.85;
        }
        .mfp-fade.mfp-bg.mfp-removing {
            opacity: 0;
        }
        .mfp-fade.mfp-wrap .mfp-content {
            opacity: 0;
            transition: all 0.3s ease-out;
        }
        .mfp-fade.mfp-wrap.mfp-ready .mfp-content {
            opacity: 1;
        }
        .mfp-fade.mfp-wrap.mfp-removing .mfp-content {
            opacity: 0;
        }
        .mfp-hide {
            display: none !important;
        }
        .mfp-inline-holder .mfp-content {
            width: 100%;
        }
        #keyFeaturesList li,
        .team-member-card {
            transition: opacity 0.4s ease-out, max-height 0.5s ease-out, transform 0.4s ease-out, margin-bottom 0.5s ease-out, padding-top 0.5s ease-out, padding-bottom 0.5s ease-out;
        }
        #keyFeaturesList.collapsed li:nth-child(n+4),
        #teamMembersList.collapsed .team-member-card:nth-child(n+3) {
            opacity: 0;
            transform: translateY(-15px);
            max-height: 0;
            overflow: hidden;
            margin-bottom: 0 !important;
            padding-top: 0 !important;
            padding-bottom: 0 !important;
            border-width: 0 !important;
        }
        .btn-see-all {
            background-color: transparent;
            border: 2px solid var(--yb-secondary);
            color: var(--yb-secondary);
            font-weight: 600;
            padding: 8px 20px;
            border-radius: var(--yb-border-radius-sm);
            transition: all var(--yb-transition-fast);
            margin-top: 20px;
            cursor: pointer;
        }
        .btn-see-all:hover,
        .btn-see-all:focus {
            background-color: var(--yb-secondary);
            color: white;
            text-decoration: none;
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(var(--yb-secondary-rgb), 0.2);
        }
        .btn-see-all i {
            margin-left: 5px;
            transition: transform 0.3s ease-out;
        }
        .btn-see-all:hover i {
            transform: translateY(2px);
        }
        .video-container {
            position: relative;
            max-width: 100%;
            background: #000;
            border-radius: var(--yb-border-radius-sm);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        .video-popup-trigger {
            display: block;
            position: relative;
            width: 100%;
            cursor: pointer;
            background-color: #000;
            border-radius: var(--yb-border-radius-sm);
            overflow: hidden;
            transition: box-shadow var(--yb-transition-fast);
        }

        .video-popup-trigger img.video-poster {
            width: 100%;
            height: auto;
            max-height: 220px;
            object-fit: cover;
            display: block;
            border-radius: var(--yb-border-radius-sm);
            transition: filter 0.3s ease, transform 0.3s ease;
        }

        .play-icon-overlay {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: clamp(3em, 9vw, 4.5em);
            color: rgba(255, 255, 255, 0.85);
            text-shadow: 0 2px 10px rgba(0,0,0,0.5);
            pointer-events: none;
            transition: color 0.3s ease, transform 0.3s ease;
        }

        .video-popup-trigger:hover {
            box-shadow: 0 6px 18px rgba(var(--yb-primary-rgb), 0.2);
        }

        .video-popup-trigger:hover img.video-poster {
            filter: brightness(0.85) contrast(1.1);
            transform: scale(1.03);
        }

        .video-popup-trigger:hover .play-icon-overlay {
            color: white;
            transform: translate(-50%, -50%) scale(1.15);
        }

        .team-member-card {
            display: flex;
            align-items: flex-start;
            background-color: var(--yb-bg-light);
            padding: 20px;
            border-radius: var(--yb-border-radius-sm);
            margin-bottom: 15px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.04);
        }

        .team-member-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(var(--yb-primary-rgb),0.1);
        }

        .team-member-card img.avatar {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 20px;
            border: 3px solid var(--yb-border-color);
            flex-shrink: 0;
        }

        .team-member-info {
            flex-grow: 1;
        }

        .team-member-info h5 {
            margin-bottom: 3px;
            color: var(--yb-text-dark);
            font-size: 1.2em;
        }

        .team-member-info p.member-role {
            margin-bottom: 8px;
            color: var(--yb-text-medium);
            font-size: 0.95em;
            font-weight: 500;
        }
        .team-member-info p.member-contribution {
            font-size: 0.9em;
            color: var(--yb-text-light);
            font-style: italic;
            margin-bottom: 10px;
            line-height: 1.45;
            padding-left: 12px;
            border-left: 2px solid var(--yb-border-color);
        }

        .team-member-info .linkedin-link {
            color: var(--yb-primary);
            font-size: 1.3em;
            transition: color var(--yb-transition-fast);
            display: inline-block;
            margin-top: 5px;
        }

        .lead-sponsor-card {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
            background-color: var(--yb-bg-light);
            padding: 15px;
            border-radius: var(--yb-border-radius-sm);
            box-shadow: 0 3px 10px rgba(0,0,0,0.04);
        }

        .lead-sponsor-card img.avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 15px;
            border: 2px solid var(--yb-border-color);
        }

        .lead-sponsor-card .info strong {
            display: block;
            font-size: 1.1em;
            color: var(--yb-text-dark);
            margin-bottom: 2px;
        }

        .lead-sponsor-card .info span {
            font-size: 0.9em;
            color: var(--yb-text-light);
        }

        .project-quick-info ul {
            list-style: none;
            padding-left: 0;
        }

        .project-quick-info ul li {
            display: flex;
            align-items: flex-start;
            margin-bottom: 15px;
            font-size: 0.95em;
            color: var(--yb-text-medium);
        }

        .project-quick-info ul li .qi-icon {
            color: var(--yb-secondary);
            margin-right: 12px;
            font-size: 1.25em;
            width: 22px;
            text-align: center;
            margin-top: 2px;
        }

        .project-quick-info ul li .qi-label {
            font-weight: 600;
            color: var(--yb-text-dark);
            margin-right: 8px;
            flex-shrink: 0;
        }

        .project-quick-info ul li .qi-value {
            color: var(--yb-text-medium);
            flex-grow: 1;
        }

        .discuss-project-btn {
            display: inline-block;
            background-image: linear-gradient(to right, var(--yb-primary) 0%, var(--yb-secondary) 50%, var(--yb-primary) 100%);
            background-size: 250% auto;
            color: white;
            padding: 12px 30px;
            border-radius: var(--yb-border-radius-sm);
            font-size: 1.1em;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
            box-shadow: 0 5px 15px rgba(var(--yb-primary-rgb), 0.25);
            border: none;
        }
        .discuss-project-btn:hover {
            background-position: right center;
            color: white;
            text-decoration: none;
            box-shadow: 0 8px 20px rgba(var(--yb-primary-rgb), 0.4);
            transform: translateY(-3px);
        }
        .discuss-project-btn i.fa {
            margin-right: 8px;
            color: white;
        }
        .back-to-projects-link-container {
            margin-bottom: 40px;
            text-align: left;
        }
        .back-to-projects-link {
            display: inline-block;
            padding: 10px 20px;
            font-size: 0.95em;
            font-weight: 600;
            color: var(--yb-primary);
            background-color: transparent;
            border: 2px solid var(--yb-primary);
            border-radius: var(--yb-border-radius-sm);
            text-decoration: none;
            transition: all var(--yb-transition-fast);
        }
        .back-to-projects-link:hover,
        .back-to-projects-link:focus {
            background-color: var(--yb-primary);
            color: white;
            text-decoration: none;
            box-shadow: 0 4px 10px rgba(var(--yb-primary-rgb), 0.2);
        }
        .back-to-projects-link i {
            margin-right: 7px;
            color: currentColor;
        }
        @media (max-width: 991px) {
            .project-detail-hero h1 {
                font-size: clamp(2em, 4.5vw, 3em);
            }
            .project-detail-hero .project-subtitle {
                font-size: clamp(0.9em, 1.8vw, 1.1em);
            }
            .section-heading {
                font-size: 1.8em;
            }
            .sidebar-section-heading {
                font-size: 1.5em;
            }
            .image-gallery-main img#galleryMainImage {
                max-height: 450px;
            }
        }
        @media (max-width: 767px) {
            .project-detail-hero {
                padding: 80px 0 60px;
            }
            .project-detail-content {
                padding: 40px 15px;
            }
            .project-detail-section {
                padding: 20px;
            }
            .team-member-card {
                flex-direction: column;
                text-align: center;
                align-items: center;
            }
            .team-member-card img.avatar {
                margin-right: 0;
                margin-bottom: 15px;
            }
            .team-member-info {
                text-align: center;
            }
            .team-member-info p.member-contribution {
                padding-left: 0;
                border-left: none;
                text-align: left;
                margin-left: auto;
                margin-right: auto;
                max-width: 90%;
            }
            .lead-sponsor-card {
                flex-direction: column;
                text-align: center;
            }
            .lead-sponsor-card img.avatar {
                margin-right: 0;
                margin-bottom: 10px;
            }
            .image-gallery-thumbnails img {
                width: 80px;
                height: 60px;
            }
            .project-quick-info ul li {
                flex-direction: column;
                align-items: flex-start;
            }
            .project-quick-info ul li .qi-icon {
                margin-bottom: 5px;
            }
            .back-to-projects-link-container {
                text-align: center;
                margin-bottom: 30px;
            }
            .image-gallery-main img#galleryMainImage {
                max-height: 250px;
            }
        }
    
        /* Added CSS for Project Team Section */
        .team-members-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .team-members-container .team-member-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            background-color: var(--yb-bg-light);
            padding: 20px;
            border-radius: var(--yb-border-radius-sm);
            margin-bottom: 15px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.04);
            width: 100%;
            max-width: 300px; /* Adjust this to control the card width */
        }

        .team-members-container .team-member-card img.avatar {
            margin-right: 0;
            margin-bottom: 15px;
        }

        .team-members-container .team-member-info {
            flex-grow: 1;
        }

        .team-members-container .team-member-info p.member-contribution {
            padding-left: 0;
            border-left: none;
        }