:root {
            --yb-primary: #20493C;
            --yb-primary-rgb: 32, 73, 60;
            --yb-secondary: #2a6f55;
            --yb-secondary-rgb: 42, 111, 85;
            --yb-accent: #f0ad4e; /* Main accent color */
            --yb-accent-rgb: 240, 173, 78;
            --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-bg-light-rgb: 244, 247, 249;
            --yb-border-color: #dde3e9;
            --yb-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
            --yb-card-shadow-hover: 0 15px 45px rgba(var(--yb-primary-rgb), 0.15);
            --yb-border-radius: 16px;
            --yb-border-radius-sm: 8px;
            /* ✅ OPTIMIZATION: Refined transitions for a smoother, more natural feel. */
            --yb-transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            --yb-transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            --yb-transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            color: var(--yb-text-medium);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            background-color: var(--yb-bg-light);
            line-height: 1.6;
        }

        h1, h2, h3, h4, h5, h6 {
             font-family: inherit;
             color: var(--yb-text-dark);
             font-weight: 700;
        }

        /* ✅ OPTIMIZATION: More consistent and accessible focus state for keyboard users. */
        *:focus-visible {
            outline: 2px solid var(--yb-accent);
            outline-offset: 2px;
            box-shadow: 0 0 0 4px rgba(var(--yb-accent-rgb), 0.3);
        }
        .form-control:focus-visible {
            outline: none;
            box-shadow: 0 0 0 0.25rem rgba(var(--yb-primary-rgb), 0.2);
        }

        /* ✅ FIX: Remove unwanted margin from the template's default styles. */
        .projects-hero-section.header-animation {
            margin-top: 0;
        }
        
        /* === HERO SECTION ENHANCEMENTS START === */
        .projects-hero-section {
            color: white;
            position: relative;
            padding: clamp(60px, 10vh, 120px) 0 clamp(50px, 8vh, 100px);
            background-color: #1a2924;
            overflow: hidden;
            display: flex;
            align-items: center;
            min-height: 70vh;
        }
        .projects-hero-section::before {
            content: ''; position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: linear-gradient(160deg, rgba(var(--yb-primary-rgb), 0.45) 0%, rgba(var(--yb-secondary-rgb), 0.55) 60%, rgba(0,0,0,0.75) 100%);
            z-index: 1;
        }
        .projects-hero-section .container {
            position: relative;
            z-index: 2;
            max-width: 1200px;
            width: 100%;
        }

        .hero-main-layout {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: clamp(25px, 5vw, 60px);
            width: auto;
            max-width: 100%;
            margin: 0 auto;
        }

        .hero-text-column {
            flex: 1 1 auto;
            max-width: 650px;
            text-align: center;
        }

        .hero-image-column {
            flex: 0 0 auto;
            text-align: center;
            animation: fadeInSlightUp 1.2s var(--yb-transition-slow) 0.7s backwards;
        }

        .hero-animated-image {
            width: clamp(240px, 30vw, 520px);
            max-height: 480px;
            height: auto;
            border-radius: 10px;
            filter: drop-shadow(0 8px 20px rgba(0,0,0,0.2));
            animation: pulseHeroIcon 6s infinite ease-in-out;
            display: inline-block;
            vertical-align: middle;
            box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.4);
        }
        .hero-animated-image > img {
            display: block;
            width: 100%;
            height: 100%;
        }
        
        @keyframes fadeInSlightUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .projects-hero-section h1 {
            font-size: clamp(2.5rem, 5.5vw, 4.8rem);
            font-weight: 700;
            margin-bottom: 1rem;
            text-shadow: 0 3px 8px rgba(0,0,0,0.7), 0 1px 2px rgba(0,0,0,0.5);
            letter-spacing: -0.03em;
            line-height: 1.15;
            animation: fadeInSlightUp 1s var(--yb-transition-slow) 0.3s backwards;
        }
        .projects-hero-section .subtitle {
            font-size: clamp(1.1rem, 2.4vw, 1.8rem);
            margin: 0 0 1.5rem 0;
            line-height: 1.6;
            color: #e0e6eb;
            text-shadow: 0 2px 6px rgba(0,0,0,0.65);
            max-width: 95%;
            margin-left: auto;
            margin-right: auto;
            animation: fadeInSlightUp 1s var(--yb-transition-slow) 0.5s backwards;
        }
        .projects-hero-section hr.anima {
            border-top: 2px solid var(--yb-accent);
            width: 70px;
            margin: 0 auto 1rem auto;
            opacity: 0.85;
            box-shadow: 0 0 12px rgba(var(--yb-accent-rgb), 0.6);
            animation: fadeInSlightUp 1s var(--yb-transition-slow) 0.1s backwards;
        }
        .projects-hero-section .anima-layer {
            z-index: 0;
            opacity: 0.09;
            mix-blend-mode: soft-light;
        }

        @media (max-width: 991px) {
            .projects-hero-section {
                padding-top: clamp(40px, 8vh, 80px);
                padding-bottom: clamp(30px, 6vh, 60px);
                min-height: 65vh;
            }
            .hero-main-layout {
                flex-direction: column;
                gap: clamp(20px, 4vw, 40px);
            }
            .hero-text-column {
                text-align: center;
                margin-bottom: 1.8rem;
                max-width: 100%;
            }
            .hero-animated-image {
                width: clamp(200px, 35vw, 400px);
                max-height: 380px;
            }
            .projects-hero-section h1 {
                 font-size: clamp(2.2rem, 6vw, 3.8rem);
                 line-height: 1.2;
            }
            .projects-hero-section .subtitle {
                max-width: 600px;
                font-size: clamp(1rem, 2.8vw, 1.5rem);
                line-height: 1.55;
            }
            .projects-hero-section hr.anima {
                margin: 0 auto 1rem auto;
            }
        }

        @media (max-width: 767px) {
            .projects-hero-section {
                padding-top: clamp(30px, 6vh, 60px);
                padding-bottom: clamp(20px, 4vh, 40px);
                min-height: auto;
            }
            .hero-image-column {
                display: none;
            }
            .hero-text-column {
                margin-bottom: 0;
                max-width: 100%;
            }
            .projects-hero-section h1 {
                 font-size: clamp(2rem, 7vw, 3rem);
                 line-height: 1.25;
            }
            .projects-hero-section .subtitle {
                 font-size: clamp(0.9rem, 3.5vw, 1.3rem);
                 max-width: 95%;
                 line-height: 1.5;
            }
        }
        /* === HERO SECTION ENHANCEMENTS END === */

        /* === PROJECT VIEW TOGGLE HEADER START === */
        /* ✅ OPTIMIZATION: Cleaner layout using flexbox for better alignment and responsiveness. */
        .projects-view-toggle-header {
            display: flex;
            justify-content: center; 
            align-items: center;
            position: relative; 
            margin-bottom: 0;
            padding-top: 10px; 
            padding-bottom: 10px;
            border-bottom: 1px solid var(--yb-border-color);
            margin-top: 10px; 
        }
        .dynamic-section-title {
            margin-bottom: 0;
            font-size: clamp(1.8em, 3vw, 2.4em);
            font-weight: 700;
            background: linear-gradient(90deg, var(--yb-primary), var(--yb-secondary) 25%, var(--yb-accent) 50%, var(--yb-secondary) 75%, var(--yb-primary));
            background-size: 300% 100%;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: textGradientFlow 12s ease-in-out infinite;
            color: var(--yb-primary);
            text-align: center; 
        }
        .yb-toggle-btn {
            background-color: transparent;
            border: 2px solid var(--yb-primary);
            color: var(--yb-primary);
            padding: 10px 22px;
            border-radius: var(--yb-border-radius-sm);
            font-weight: 600;
            transition: all var(--yb-transition-fast);
            font-size: 0.95em;
            line-height: 1.5;
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
        }
        .yb-toggle-btn:hover, .yb-toggle-btn:focus-visible {
            background-color: var(--yb-primary);
            color: white;
            text-decoration: none;
            outline-offset: -3px;
            box-shadow: 0 4px 12px rgba(var(--yb-primary-rgb),0.2);
            transform: translateY(-50%) scale(1.05);
        }
        
        @media (max-width: 767px) {
            .projects-view-toggle-header {
                flex-direction: column;
                align-items: center;
                gap: 12px; 
                padding: 10px 0;
            }
            .dynamic-section-title {
                 font-size: clamp(1.6em, 5vw, 2em);
            }
            .yb-toggle-btn {
                position: static;
                transform: none;
                width: 100%;
                max-width: 320px;
            }
             .yb-toggle-btn:hover, .yb-toggle-btn:focus-visible {
                 transform: scale(1.03);
             }
        }
        /* === PROJECT VIEW TOGGLE HEADER END === */

        .project-filters {
            padding: 15px 25px;
            background-color: var(--yb-bg-main);
            border-radius: var(--yb-border-radius);
            margin-bottom: 15px;
            box-shadow: 0 6px 25px rgba(0,0,0,0.06);
            margin-top: 2px;
        }
        .project-filters .form-control {
            height: 50px; border-radius: var(--yb-border-radius-sm);
            border: 1px solid var(--yb-border-color); font-size:15px;
            transition: border-color var(--yb-transition-fast), box-shadow var(--yb-transition-fast);
            padding: 10px 15px;
        }
        .project-filters .form-control:focus {
            border-color: var(--yb-primary);
            box-shadow: 0 0 0 0.25rem rgba(var(--yb-primary-rgb), 0.2);
        }

        /* ✅ OPTIMIZATION: Smooth animation for cards entering the viewport. */
        .project-card-column {
            padding-left: 12px; padding-right: 12px;
            margin-bottom: 25px;
            display: flex;
            opacity: 0;
            transform: translateY(40px) scale(0.98);
            transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .project-card-column.is-visible {
            opacity: 1;
            transform: translateY(0) scale(1);
        }

        .project-card {
            background-color: var(--yb-bg-main);
            border-radius: var(--yb-border-radius);
            box-shadow: var(--yb-card-shadow);
            overflow: hidden;
            /* ✅ OPTIMIZATION: Specify transition properties for better performance. */
            transition: box-shadow var(--yb-transition-medium), transform var(--yb-transition-medium);
            will-change: transform, box-shadow; 
            display: flex;
            flex-direction: column;
            width: 100%;
            position: relative;
        }
        
        /* ✅ OPTIMIZATION: More dynamic hover effect. */
        .project-card:hover {
            transform: translateY(-5px) scale(1.02);
            box-shadow: var(--yb-card-shadow-hover);
        }

        .project-card[data-details-url] { cursor: pointer; }

        /* ✅ OPTIMIZATION: Adding a subtle border on hover and a strong border on focus for accessibility. */
        .project-card::before {
            content: "";
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            border-radius: inherit;
            border: 2px solid transparent;
            transition: border-color var(--yb-transition-medium);
            z-index: 2;
            pointer-events: none;
        }
        .project-card:hover::before {
            border-color: rgba(var(--yb-primary-rgb), 0.35);
        }
        .project-card:focus-visible {
            outline: none;
        }
        .project-card:focus-visible::before {
            border-color: var(--yb-accent);
            box-shadow: 0 0 0 4px rgba(var(--yb-accent-rgb), 0.3);
        }

        .project-card-inner-content {
            position: relative; z-index: 1; display: flex; flex-direction: column;
            flex-grow: 1; border-radius: var(--yb-border-radius); overflow: hidden;
        }

        .project-card-banner {
            position: relative; height: 180px;
            overflow: hidden; background-color: #e8edf2;
        }
        .project-card-banner::after {
            content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 90%;
            background: linear-gradient(to top, rgba(var(--yb-text-dark-rgb),0.65) 0%, rgba(var(--yb-text-dark-rgb),0.3) 45%, transparent 100%);
            z-index: 1; pointer-events: none; transition: opacity var(--yb-transition-medium);
        }
        .project-card:hover .project-card-banner::after { opacity: 0.8; }
        .project-card-banner img {
            width: 100%; height: 100%; object-fit: cover;
            transition: transform var(--yb-transition-slow), filter var(--yb-transition-medium);
        }
        /* ✅ OPTIMIZATION: More engaging zoom/pan effect on banner image. */
        .project-card:hover .project-card-banner img { transform: scale(1.08); filter: brightness(1.05) saturate(1.1); }
        
        /* ✅ OPTIMIZATION: Styles for a smooth fade-in for lazy loading images. */
        .project-card-banner img.lazy-load,
        .project-card-avatar.lazy-load { 
            opacity: 0; 
            transition: opacity 0.7s ease-in-out; 
        }
        .project-card-banner img.loaded,
        .project-card-avatar.loaded { 
            opacity: 1; 
        }

        .project-card-bookmark {
            position: absolute; top: 15px; right: 15px;
            background-color: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
            color: var(--yb-text-dark); width: 40px; height: 40px; border-radius: 50%;
            display: flex; align-items: center; justify-content: center; font-size: 17px;
            cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.18);
            z-index: 3; transition: all var(--yb-transition-fast); border: none; padding: 0;
        }
        .project-card-bookmark:hover {
            background-color: var(--yb-primary);
            color: white;
            transform: scale(1.15) rotate(6deg);
        }
        .project-card-bookmark.active { background-color: var(--yb-primary); color: white; transform: scale(1.1); }
        .project-card-bookmark.active i { transform: scale(1.12); }

        .project-card-avatar-section {
            text-align: center;
            margin-top: -50px;
            position: relative;
            z-index: 2;
            height: 50px;
        }
        .project-card-avatar {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            object-fit: cover;
            border: 6px solid var(--yb-bg-main);
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
            background-color: #dfe4e8;
            transition: transform var(--yb-transition-medium), box-shadow var(--yb-transition-medium), opacity 0.5s ease-in-out;
        }
        .project-card:hover .project-card-avatar {
            transform: scale(1.1) translateY(-8px);
            box-shadow: 0 12px 35px rgba(var(--yb-primary-rgb),0.20);
        }

        .project-card-content-wrapper {
            padding: 20px 25px 25px 25px;
            text-align: center;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            position: relative;
            background: var(--yb-bg-main);
            border-bottom-left-radius: var(--yb-border-radius);
            border-bottom-right-radius: var(--yb-border-radius);
        }
        .project-card-title {
            font-size: 1.5em;
            font-weight: 700;
            color: var(--yb-text-dark);
            margin-top: 30px;
            margin-bottom: 12px;
            line-height: 1.3;
            transition: color var(--yb-transition-fast);
        }
        .project-card:hover .project-card-title { color: var(--yb-primary); }

        .project-card-subtitle {
            font-size: 0.95em;
            color: var(--yb-text-medium);
            line-height: 1.6; margin-bottom: 20px;
            min-height: calc(0.95em * 1.6 * 2); 
        }

        .project-card-category-tag {
            display: inline-block; background-color: rgba(var(--yb-secondary-rgb), 0.12);
            color: var(--yb-secondary);
            padding: 8px 20px; font-size: 0.8em;
            font-weight: 600; border-radius: 25px;
            margin-bottom: 22px; text-transform: uppercase; letter-spacing: 1px;
            transition: all var(--yb-transition-fast);
            border: 1px solid rgba(var(--yb-secondary-rgb), 0.25);
        }
        .project-card-category-tag:hover {
            background-color: var(--yb-secondary); color: white;
            transform: translateY(-3px) scale(1.04);
            box-shadow: 0 4px 10px rgba(var(--yb-secondary-rgb), 0.3);
        }

        .project-card-tech-tags {
            margin-bottom: 25px;
            flex-grow: 1;
        }
        .project-card-tech-tags .tech-tag {
            display: inline-block;
            background-color: #f0f4f8;
            color: var(--yb-text-medium);
            padding: 7px 12px;
            font-size: 0.78em;
            border-radius: var(--yb-border-radius-sm);
            margin: 4px 3px;
            font-weight: 500;
            transition: all var(--yb-transition-fast);
        }
        .project-card-tech-tags .tech-tag:hover {
            background-color: var(--yb-secondary); color:white;
            transform: translateY(-2px) scale(1.06);
            box-shadow: 0 3px 8px rgba(var(--yb-secondary-rgb), 0.3);
        }

        .project-card-footer {
            padding: 18px 25px;
            border-top: 1px solid var(--yb-border-color);
            position: relative;
            display: flex;
            align-items: center;
            /*justify-content: center; */
            background-color: #fdfdfe;
            margin-top: auto;
            gap: 15px;
        }

        .project-card-footer .action-btn.share-btn {
            position: absolute;           
            right: 25px;
          }

        .project-card-stats span {
            font-size: 0.9em;
            color: var(--yb-text-light);
            display: inline-flex;
            align-items: center;
        }
        .project-card-stats span i {
            margin-right: 6px;
            color: var(--yb-secondary);
            font-size: 1.2em;
        }

        .project-card-actions {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .project-card-actions .action-btn {
            font-size: 17px;
            color: var(--yb-text-light);
            transition: color var(--yb-transition-fast), transform var(--yb-transition-fast);
            background: none; border: none; padding: 5px;
        }
        .project-card-actions .action-btn:hover {
            color: var(--yb-primary);
            transform: scale(1.2) rotate(8deg);
        }

        .project-card-actions .btn-discuss {
            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: 10px 15px;
            border-radius: var(--yb-border-radius-sm);
            font-size: 0.95em; font-weight: 600; text-decoration: none;
            transition: all 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
            box-shadow: 0 4px 12px rgba(var(--yb-primary-rgb), 0.25);
            border: none;
        }
        /* ✅ OPTIMIZATION: More interactive button hover/active states. */
        .project-card-actions .btn-discuss:hover {
            background-position: right center; color:white; text-decoration: none;
            box-shadow: 0 7px 18px rgba(var(--yb-primary-rgb), 0.4);
            transform: translateY(-4px) scale(1.06);
        }
        .project-card-actions .btn-discuss:active {
            transform: translateY(-2px) scale(1.02);
            box-shadow: 0 5px 15px rgba(var(--yb-primary-rgb), 0.35);
        }

        #viewMoreProjectsBtn.custom-view-more-btn {
            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 35px;
            border-radius: var(--yb-border-radius-sm);
            font-size: 1.05em;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
            box-shadow: 0 5px 15px rgba(var(--yb-primary-rgb), 0.28);
            border: none;
            display: inline-block;
            cursor: pointer;
        }
        #viewMoreProjectsBtn.custom-view-more-btn:hover {
            background-position: right center;
            color: white;
            text-decoration: none;
            box-shadow: 0 8px 20px rgba(var(--yb-primary-rgb), 0.45);
            transform: translateY(-3px) scale(1.03);
        }
        #viewMoreProjectsBtn.custom-view-more-btn:active {
            transform: translateY(-1px) scale(1.01);
            box-shadow: 0 6px 16px rgba(var(--yb-primary-rgb), 0.38);
        }

        .upcoming-projects-section {
             background-color: var(--yb-bg-light);
        }
        #upcomingGlobalHeaderSection.upcoming-projects-section {
            padding-top: 25px;
            padding-bottom: 0;
        }
        #upcomingProjectsView .upcoming-projects-section {
            padding-top: 15px;
            padding-bottom: 30px;
        }


        @keyframes textGradientFlow {
            0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; }
        }

        #upcomingGlobalHeaderSection .section-title {
            text-align: center; margin-bottom: 20px;
            font-size: clamp(2em, 4vw, 3em);
            font-weight: 700;
            background: linear-gradient(90deg, var(--yb-primary), var(--yb-secondary) 25%, var(--yb-accent) 50%, var(--yb-secondary) 75%, var(--yb-primary));
            background-size: 300% 100%; -webkit-background-clip: text; background-clip: text;
            -webkit-text-fill-color: transparent; animation: textGradientFlow 12s ease-in-out infinite;
            color: var(--yb-primary);
        }
        #upcomingGlobalHeaderSection .section-subtitle {
            text-align: center; margin-bottom: 15px;
            font-size: clamp(0.95em, 1.8vw, 1.2em);
            color: var(--yb-text-medium); max-width: 700px;
            margin-left: auto; margin-right: auto; line-height: 1.65;
        }

        .upcoming-scroller-wrapper {
            position: relative;
            margin: 0 auto;
            max-width: 1140px;
        }

        .upcoming-scroller {
            overflow-x: auto;
            scroll-behavior: smooth;
            padding: 15px 0;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }
        .upcoming-scroller::-webkit-scrollbar { display: none; }


        .upcoming-slides-list {
            display: flex;
            flex-wrap: nowrap;
            padding-left: 0;
            margin-bottom: 0;
            list-style: none;
            gap: 25px;
        }
        /* ✅ OPTIMIZATION: Added the same smooth entry animation to upcoming cards. */
        .upcoming-project-card {
            flex: 0 0 auto;
            width: clamp(280px, 30vw, 340px);
            background-color: #ffffff;
            border-radius: var(--yb-border-radius);
            box-shadow: 0 6px 20px rgba(var(--yb-text-dark-rgb), 0.08);
            padding: 25px;
            display: flex;
            flex-direction: column;
            min-height: 330px;
            border: 1px solid var(--yb-border-color);
            transition: transform var(--yb-transition-medium), box-shadow var(--yb-transition-medium),
                        opacity var(--yb-transition-slow), transform var(--yb-transition-slow);
            opacity: 0;
            transform: translateY(30px);
        }
        .upcoming-project-card.is-visible {
            opacity: 1;
            transform: translateY(0);
        }

        .upcoming-project-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 30px rgba(var(--yb-primary-rgb), 0.12);
        }

        .upcoming-project-card .upcoming-category {
            font-size: 0.8em;
            color: var(--yb-secondary);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 8px;
            display: block;
        }
        .upcoming-project-card h4 {
            font-size: 1.35em;
            color: var(--yb-text-dark);
            margin-bottom: 12px;
            font-weight: 700;
            line-height: 1.3;
        }
        .upcoming-project-card p.short-desc {
            font-size: 0.9em;
            color: var(--yb-text-medium);
            margin-bottom: 15px;
            line-height: 1.55;
            flex-grow: 1;
        }
        .upcoming-project-card .key-tech-label {
            font-size: 0.8em;
            color: var(--yb-text-light);
            margin-bottom: 5px;
            font-weight: 500;
        }
        .upcoming-project-card .key-tech-list {
            margin-bottom: 18px;
            line-height: 1.3;
        }
        .upcoming-project-card .key-tech-list .tech-tag {
            background-color: rgba(var(--yb-secondary-rgb), 0.08);
            color: var(--yb-secondary);
            padding: 5px 10px;
            font-size: 0.75em;
            border-radius: var(--yb-border-radius-sm);
            margin: 2px;
            font-weight: 500;
            display: inline-block;
        }
        .upcoming-project-card .status-badge {
            background-color: rgba(var(--yb-accent-rgb), 0.15);
            color: var(--yb-accent);
            padding: 7px 15px;
            font-size: 0.85em;
            border-radius: 20px;
            font-weight: 600;
            margin-top: auto;
            margin-bottom: 15px;
            display: inline-block;
        }
         .upcoming-project-card .status-badge i {
            margin-right: 6px;
         }
        .upcoming-project-card .btn-inquire-upcoming {
            background-color: var(--yb-primary);
            color: white;
            border: 2px solid var(--yb-primary);
            padding: 9px 20px;
            border-radius: var(--yb-border-radius-sm);
            font-size: 0.9em;
            font-weight: 600;
            text-decoration: none;
            transition: all var(--yb-transition-fast);
            display: block;
            text-align: center;
        }
        .upcoming-project-card .btn-inquire-upcoming:hover {
            background-color: var(--yb-secondary);
            border-color: var(--yb-secondary);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 2px 6px rgba(var(--yb-primary-rgb),0.2);
        }

        .scroller-nav-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background-color: rgba(var(--yb-text-dark-rgb), 0.6);
            color: white;
            border: none;
            border-radius: 50%;
            width: 44px;
            height: 44px;
            font-size: 20px;
            line-height: 1;
            text-align: center;
            cursor: pointer;
            z-index: 10;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        }
        .scroller-nav-btn:hover {
            background-color: rgba(var(--yb-text-dark-rgb), 0.8);
            transform: translateY(-50%) scale(1.1);
        }
        .scroller-nav-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
            background-color: rgba(var(--yb-text-dark-rgb), 0.4);
            transform: translateY(-50%) scale(1);
        }
        .scroller-nav-btn.prev {
            left: -22px;
        }
        .scroller-nav-btn.next {
            right: -22px;
        }
         @media (max-width: 1199px) {
            .scroller-nav-btn.prev { left: 5px; }
            .scroller-nav-btn.next { right: 5px; }
        }
        @media (max-width: 767px) {
            .scroller-nav-btn { width: 38px; height: 38px; font-size: 18px; }
            .scroller-nav-btn.prev { left: 0px; }
            .scroller-nav-btn.next { right: 0px; }
            .upcoming-slides-list { gap: 15px; }
            .upcoming-project-card { width: clamp(260px, 75vw, 300px); }
            #upcomingGlobalHeaderSection .section-subtitle {
                 margin-bottom: 15px;
            }
        }
        main.section-empty.projects-main-content {
            padding-top: 5px;
            padding-bottom: 15px;
        }

        .no-projects-message { text-align: center; padding: 70px 20px; color: var(--yb-text-light); display: flex; flex-direction: column; align-items: center; justify-content: center;}
        .no-projects-message svg { width: 130px; height: 130px; margin-bottom: 30px; fill: #cbd3db; opacity: 1; }
        .no-projects-message p { font-size: 1.35em; max-width: 500px; line-height: 1.7; }
        #noUpcomingProjectsMessage svg {
            width: 100px; height: 100px; margin-bottom: 25px; color: var(--yb-text-light);
        }
        #noUpcomingProjectsMessage {
            padding-top: 30px; padding-bottom: 30px;
        }


       
        @media (max-width: 1199px) {
            .project-card-title { font-size: 1.4em; }
            .project-card-subtitle { font-size: 0.92em; min-height: calc(0.92em * 1.6 * 2.2); }
        }

        @media (max-width: 991px) {
            .project-card-title {
                font-size: 1.3em;
                margin-top: 25px;
            }
            .project-card-subtitle { font-size: 0.9em; min-height: calc(0.9em * 1.6 * 2); }
            .project-card-banner { height: 170px; }
            .project-card-avatar { width: 90px; height: 90px; border-width: 5px; }
            .project-card-avatar-section { margin-top: -45px; height: 45px; }
        }
        @media (max-width: 767px) {
            .project-filters .form-group { margin-bottom: 15px; }
            .project-card-title {
                font-size: 1.25em;
                margin-top: 20px;
            }
            .project-card-subtitle { font-size: 0.88em; min-height: calc(0.88em * 1.6 * 2); }
            .project-card-category-tag { padding: 7px 15px; font-size: 0.75em; margin-bottom: 18px;}
            .project-card-tech-tags .tech-tag { padding: 6px 10px; font-size: 0.75em; }
            .project-card-footer { padding: 15px 20px; }
            .project-card-actions .btn-discuss { padding: 9px 18px; font-size: 0.9em; }
            .no-projects-message svg { width: 110px; height: 110px; }
            .no-projects-message p { font-size: 1.2em; }
            main.section-empty.projects-main-content { padding-top: 5px; }
        }
        @media (max-width: 576px) { 
            .project-filters .form-control { height: 46px; font-size: 14px; }
            .project-card-column { padding-left: 10px; padding-right: 10px; }
            .project-card-banner { height: 160px; }
            .project-card-avatar { width: 80px; height: 80px; border-width: 5px; }
            .project-card-avatar-section { margin-top: -40px; height: 40px; }
            .project-card-content-wrapper { padding: 15px 15px 20px; }
            .project-card-title {
                margin-top: 15px;
                font-size: 1.2em;
            }
            .project-card-subtitle { min-height: auto; margin-bottom: 15px; font-size: 0.85em; }
            .project-card-category-tag { padding: 6px 14px; font-size: 0.7em; margin-bottom: 15px;}
            .project-card-tech-tags .tech-tag { padding: 5px 10px; font-size: 0.7em;}

            .project-card-footer {
                padding: 12px 15px;
                flex-direction: column;
                gap:10px;
                align-items: stretch;
            }
            .project-card-stats {
                text-align: center;
            }
            .project-card-actions {
                margin-left: 0;
                width:100%;
                justify-content: center;
                gap: 10px;
            }
            .project-card-actions .btn-discuss {
                flex-grow: 1;
                text-align: center;
                font-size: 0.9em;
                padding: 10px 18px;
            }
             .project-card-actions .action-btn {
                margin-left: 0;
                font-size: 16px;
            }

            .project-card-footer .action-btn.share-btn {
                position: static;    
            }

            #viewMoreProjectsBtn.custom-view-more-btn { padding: 10px 25px; font-size: 1em; }
             main.section-empty.projects-main-content { padding-top: 5px; padding-bottom: 15px; }
             
        }
        /* ✅ ACCESSIBILITY: Utility class to visually hide elements but keep them accessible to screen readers. */
        .sr-only {
            position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
            overflow: hidden; clip: rect(0,0,0,0); border: 0;
        }

        