/**
 * Challenge Page Enhanced Styles
 *
 * Extracted from single-challenges.php inline styles
 * Organised into logical sections for maintainability.
 *
 * @package OnyxData_Child
 * @since Phase 42
 */

/* ==========================================================================
   Hero Section
   ========================================================================== */

section.leaderboard-section {
    min-height: 70vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 163px;
    height: auto;
}

.leader-content.challance {
    text-align: left;
}

.countdowns {
    text-align: left;
    position: relative;
    padding-top: 35px;
    padding-bottom: 30px;
}

.countdowns:before {
    position: absolute;
    content: '';
    background: #ffbb09;
    height: 3px;
    width: 100px;
    top: 0;
}

.timer {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 22px;
}

.timer span {
    font-size: 26px;
    color: #ffbb09;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 5px;
}

a.cta-button.participate {
    padding: 14px 20px;
    background: #ffbb09;
    font-size: 16px;
    font-weight: 600;
    display: inline-block;
    border-radius: 10px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 30px 0;
}

.challenge-thumbnail img {
    max-width: 600px;
    width: 100%;
}

/* ==========================================================================
   Form Styles
   ========================================================================== */

.form_inner {
    backdrop-filter: blur(5px);
    background-color: rgb(255 255 255);
    padding: 10px 30px;
    top: 0;
    border-radius: 10px;
    margin-bottom: 50px;
}

.form_inner h2 {
    font-weight: 600;
    margin-bottom: 30px;
}

.form-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.form-container h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
    height: 100px;
}

/* Rating Stars */
.rating {
    display: flex;
    gap: 10px;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rating input {
    display: none;
}

.rating label {
    font-size: 2rem;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
}

.rating label:hover,
.rating label:hover ~ label,
.rating input:checked ~ label {
    color: #ffcc00;
}

.rating label:hover {
    transform: scale(1.2);
}

/* Submit Buttons */
.submit-btn {
    background-color: #ffcc00;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.submit-btn:hover {
    background-color: #005f8a;
}

.submit_b_loader {
    display: flex;
    align-items: center;
}

.dataset_download_btn:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.25rem rgb(223 223 223);
}

/* Response Messages */
#response-message {
    padding: 13px 0 0 0;
}

/* Loaders */
#portfolio-loader img {
    width: 110px;
}

#portfolio-loader {
    position: absolute;
    top: 63%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 20px;
}

#portfolio-loader1 img {
    width: 100px;
}

/* ==========================================================================
   Closed Challenge Download
   ========================================================================== */

.closed-challenge-download {
    text-align: center;
    padding: 40px 30px;
}

.closed-challenge-download h2 {
    color: #333;
    margin-bottom: 1rem;
}

.closed-challenge-download p {
    color: #666;
    margin-bottom: 1.5rem;
}

.closed-challenge-download .dataset_download_btn {
    display: inline-block;
    padding: 14px 30px;
    background: #ffbb09;
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

.closed-challenge-download .dataset_download_btn:hover {
    background: #e5a800;
    color: #fff;
}

.closed-challenge-download .dataset_download_btn i {
    margin-right: 8px;
}

/* ==========================================================================
   Tab Navigation
   ========================================================================== */

.tabs-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0px;
}

.tabs {
    display: flex;
    position: relative;
    border-bottom: 1px solid #ddd;
}

.tab {
    padding: 12px 13px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab:hover {
    color: #212529;
    border-bottom: 4px solid #f2c811;
}

.tab.active {
    color: #212529;
    border-bottom: 4px solid #f2c811;
}

button.tab {
    border: 1px solid #e5d5d5;
    border-bottom: 4px solid transparent;
}

.tab-indicator {
    position: absolute;
    bottom: -1px;
    height: 3px;
    background: #f2c811;
    transition: all 0.3s ease;
    border-radius: 3px 3px 0 0;
}

.tab-content {
    display: none;
    padding: 20px;
    border-top: none;
}

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

.tab-content h2,
.tab-content h3,
.tab-content h4 {
    padding: 10px 0px;
}

.tab-content h2 {
    font-size: 24px;
}

/* ==========================================================================
   Select2 Overrides
   ========================================================================== */

.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: #ffbb09;
    color: #fff;
}

#dataset-form .select2-container--default .select2-selection--multiple {
    border-radius: 15px !important;
    padding: 5px 0px;
    padding-bottom: 8px;
}

.select2-container .select2-search--inline .select2-search__field {
    margin-left: 5px;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap;
    padding: 4px 8px;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    flex-grow: 1;
}

#dataset-form .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #ffbb09 !important;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 2px 6px;
    padding-left: 20px;
    font-size: 14px;
    margin-right: 5px;
}

#datadna-challenge-submit-entry-form .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #ffbb09 !important;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 2px 6px;
    padding-left: 20px;
    font-size: 14px;
    margin-right: 5px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #fff;
    margin-right: 5px;
}

.select2-container--default .select2-search--inline .select2-search__field {
    margin: 0;
    padding: 0;
    height: 20px;
    width: auto !important;
    min-width: 10px;
    background: transparent;
    border: none;
    outline: none;
    order: 999;
    text-align: right;
}

.select2-container--default .select2-results__option {
    padding: 6px 10px;
    color: #697177;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #f0c24b;
    color: #fff;
}

#dataset-form .select2-container--default .select2-selection--multiple:after {
    content: '\25BC';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #697177;
    pointer-events: none;
}

#datadna-challenge-submit-entry-form .select2-container--default .select2-selection--multiple:after {
    content: '\25BC';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #697177;
    pointer-events: none;
}

/* ==========================================================================
   Tier Breakdown
   ========================================================================== */

.tier-breakdown {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

.tier-breakdown h4 {
    margin-bottom: 15px;
    color: #333;
}

.tier-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tier-bar {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tier-bar-label {
    min-width: 100px;
    font-weight: 600;
    font-size: 14px;
}

.tier-bar-fill {
    flex: 1;
    height: 24px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    background: #e5e7eb;
}

.tier-bar-progress {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.tier-bar.beginner .tier-bar-label {
    color: #0369a1;
}

.tier-bar.beginner .tier-bar-progress {
    background: #0369a1;
}

.tier-bar.intermediate .tier-bar-label {
    color: #92400e;
}

.tier-bar.intermediate .tier-bar-progress {
    background: #d97706;
}

.tier-bar.advanced .tier-bar-label {
    color: #166534;
}

.tier-bar.advanced .tier-bar-progress {
    background: #16a34a;
}

.tier-bar-count {
    min-width: 80px;
    text-align: right;
    font-size: 14px;
    color: #697177;
}

/* ==========================================================================
   Sponsor Grid
   ========================================================================== */

.sponsor-img {
    width: 100%;
    height: 165px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all .9s ease-in-out;
}

.sponsor-img img {
    max-width: 115px;
    max-height: 95px;
    object-fit: contain;
    transition: all 0.9s ease-in-out !important;
}

.sponsor-img:hover img {
    transform: rotateY(180deg);
}

.sponsor-item a:hover .sponsor-img {
    transform: scale(1.05);
}

/* ==========================================================================
   LinkedIn Share Button
   ========================================================================== */

.btn-linkedin {
    background-color: #0077b5;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
}

.btn-linkedin:hover {
    background-color: #005582;
}

.share_linkedin_section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Owl Carousel Navigation
   ========================================================================== */

.owl-nav {
    position: absolute;
    top: 40%;
    width: 100%;
    transform: translateY(-50%);
}

.owl-prev,
.owl-next {
    position: absolute;
    width: 30px;
    height: 30px;
    background: #ffbb09 !important;
    border-radius: 50%;
    color: #fff !important;
    font-size: 20px !important;
    line-height: 30px !important;
    text-align: center;
}

.owl-prev {
    left: -40px;
}

.owl-next {
    right: -40px;
}

.owl-prev:hover,
.owl-next:hover {
    background: #ffbb09 !important;
}

.owl-prev span,
.owl-next span {
    display: block;
    line-height: 30px;
}

.owl-carousel {
    max-width: 100%;
    overflow: hidden;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

section.od-faq {
    padding: 50px;
}

.accordion-button:focus {
    z-index: 3;
    outline: 0;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    color: #fff;
    background-color: #ffbb09;
}

/* ==========================================================================
   Challenge Card
   ========================================================================== */

.challenge-card li {
    list-style: disc !important;
}

.challenge-card ul {
    padding: 0px 20px;
}

.main-timeline .description {
    min-height: 89px;
}

/* ==========================================================================
   Phase 42: Challenge Page v2 Layout
   Grid-based layout for improved content hierarchy
   ========================================================================== */

.ddna-challenge-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 992px) {
    .ddna-challenge-layout {
        grid-template-columns: 2fr 1fr;
        gap: 40px;
    }
}

.ddna-challenge-main {
    order: 1;
}

.ddna-challenge-sidebar {
    order: 2;
    position: sticky;
    top: 180px;
    align-self: start;
}

@media (max-width: 991px) {
    .ddna-challenge-sidebar {
        order: 0;
        position: static;
    }
}

/* ==========================================================================
   Phase 42: Progressive Disclosure
   Collapsible form sections for cleaner UX
   ========================================================================== */

.ddna-form-section {
    margin-bottom: 1rem;
}

.ddna-form-section.collapsed .ddna-section-content {
    display: none;
}

.ddna-section-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ddna-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

.ddna-section-header:hover {
    background: #f0f1f3;
}

.ddna-toggle-icon {
    font-weight: bold;
    color: #697177;
}

.ddna-section-content {
    padding: 15px 0;
}

/* ==========================================================================
   Phase 42: Entries Carousel Placeholder
   Styles for Netflix-style top entries carousel (Plan 02)
   ========================================================================== */

.ddna-entries-carousel {
    margin: 30px 0;
}

.ddna-entries-carousel .swiper-slide {
    height: auto;
}

.ddna-entry-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ddna-entry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.ddna-entry-thumbnail {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.ddna-entry-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ddna-entry-info {
    padding: 12px;
}

.ddna-entry-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: #333;
}

.ddna-entry-score {
    font-size: 12px;
    color: #697177;
}

.ddna-entry-tier {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.ddna-entry-tier.gold {
    background: #fef3c7;
    color: #92400e;
}

.ddna-entry-tier.silver {
    background: #f3f4f6;
    color: #4b5563;
}

.ddna-entry-tier.bronze {
    background: #fef2f2;
    color: #991b1b;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 991px) {
    .tab-indicator {
        display: none;
    }

    .tab-content {
        padding: 0px;
    }
}

@media (max-width: 768px) {
    button.tab {
        border: 1px solid #e5d5d5;
        border-bottom: 4px solid #e5d5d5;
    }

    .tabs {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
    }

    .tab {
        flex: 1 1 45%;
        text-align: center;
        padding: 12px;
    }

    .tab-indicator {
        display: none;
    }

    a.cta-button.participate {
        padding: 10px 15px;
    }

    .timer {
        font-size: 18px;
    }

    .timer span {
        font-size: 20px;
    }

    .form-container {
        padding: 20px 10px;
        box-shadow: none;
    }

    .challenge-card {
        padding: 20px 10px;
    }

    .submission-form {
        padding: 20px 10px;
    }
}

@media (max-width: 480px) {
    .tabs {
        flex-direction: column;
        align-items: center;
    }

    .tab {
        width: 100%;
        text-align: center;
        padding: 5px;
    }

    .tab-indicator {
        display: none;
    }
}

/* ==========================================================================
   Phase 42: Netflix-style Entries Showcase
   Top submissions carousel with hover effects
   ========================================================================== */

.ddna-entries-showcase {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 60px 0;
    margin: 0;
}

.ddna-entries-showcase .od-heading h2 {
    color: #fff;
    margin-bottom: 10px;
}

.ddna-entries-showcase .od-heading h2 span {
    color: #ffbb09;
}

.ddna-showcase-intro {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin-bottom: 30px;
    max-width: 600px;
}

/* Portfolio Card */
.ddna-portfolio-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.ddna-portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Card Thumbnail */
.ddna-card-thumbnail {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.ddna-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ddna-portfolio-card:hover .ddna-card-thumbnail img {
    transform: scale(1.08);
}

/* Hover Overlay */
.ddna-card-hover {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ddna-portfolio-card:hover .ddna-card-hover {
    opacity: 1;
}

.ddna-hover-content {
    text-align: center;
    color: #fff;
}

.ddna-hover-score {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: #ffbb09;
    line-height: 1;
}

.ddna-hover-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.8);
}

/* Card Body */
.ddna-card-body {
    padding: 15px;
}

.ddna-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ddna-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* Tier Badges */
.ddna-entry-tier {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ddna-entry-tier.bronze {
    background: #fef2f2;
    color: #dc2626;
}

.ddna-entry-tier.silver {
    background: #f3f4f6;
    color: #6b7280;
}

.ddna-entry-tier.gold {
    background: #fef3c7;
    color: #d97706;
}

/* View Link */
.ddna-view-link {
    font-size: 12px;
    color: #0077b5;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ddna-view-link i {
    font-size: 14px;
}

/* Swiper Navigation */
.ddna-entries-swiper {
    padding: 0 50px;
    position: relative;
}

.ddna-swiper-next,
.ddna-swiper-prev {
    width: 44px;
    height: 44px;
    background: #ffbb09;
    border-radius: 50%;
    color: #fff;
}

.ddna-swiper-next::after,
.ddna-swiper-prev::after {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.ddna-swiper-next:hover,
.ddna-swiper-prev:hover {
    background: #e5a800;
}

.ddna-swiper-prev {
    left: 0;
}

.ddna-swiper-next {
    right: 0;
}

/* Swiper disabled state */
.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 991px) {
    .ddna-entries-showcase {
        padding: 40px 0;
    }

    .ddna-entries-swiper {
        padding: 0 40px;
    }
}

@media (max-width: 576px) {
    .ddna-entries-showcase {
        padding: 30px 0;
    }

    .ddna-entries-swiper {
        padding: 0 30px;
    }

    .ddna-swiper-next,
    .ddna-swiper-prev {
        width: 36px;
        height: 36px;
    }

    .ddna-swiper-next::after,
    .ddna-swiper-prev::after {
        font-size: 14px;
    }
}

/* ==========================================================================
   Phase 42-03: Progressive Disclosure Sections
   ========================================================================== */

.ddna-form-section.collapsible {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.ddna-form-section .ddna-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.ddna-form-section .ddna-section-header:hover {
    background: #e9ecef;
}

.ddna-form-section .ddna-section-header h6 {
    margin: 0;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ddna-form-section .ddna-section-header .ddna-chevron {
    transition: transform 0.2s ease;
    font-size: 12px;
    color: #697177;
}

.ddna-form-section.expanded .ddna-section-header .ddna-chevron {
    transform: rotate(180deg);
}

.ddna-form-section .ddna-section-hint {
    font-size: 12px;
    color: #697177;
    font-style: italic;
}

.ddna-form-section.expanded .ddna-section-hint {
    display: none;
}

.ddna-form-section .ddna-section-content {
    border-top: 1px solid #e0e0e0;
}

/* Hidden utility class */
.ddna-hidden {
    display: none !important;
}

/* ==========================================================================
   Phase 42-03: Auto-Create Portfolio Button
   ========================================================================== */

#auto-create-portfolio-btn {
    margin-top: 8px;
    transition: all 0.2s ease;
}

#auto-create-portfolio-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

#auto-create-portfolio-btn.loading {
    opacity: 0.7;
    cursor: wait;
}

#auto-create-portfolio-btn i {
    margin-right: 6px;
}

/* No portfolio message styling */
#no-portfolio-message {
    border-left: 4px solid #ffc107;
}

#no-portfolio-message p {
    margin-bottom: 8px;
    color: #666;
}

/* Success message after portfolio creation */
#no-portfolio-message + .alert-success {
    border-left: 4px solid #28a745;
}

/* ==========================================================================
   Phase 42-03: Mobile Adjustments for Collapsible Sections
   ========================================================================== */

@media (max-width: 768px) {
    .ddna-form-section .ddna-section-header {
        padding: 10px 12px;
    }

    .ddna-form-section .ddna-section-header h6 {
        font-size: 14px;
    }

    .ddna-form-section .ddna-section-content {
        padding: 12px !important;
    }
}

/* ==========================================================================
   Phase 44: UX v2 Feature Flag Scoping
   All styles below only apply when body has .ux-v2 class
   Requires: ?ux_v2=true query parameter
   ========================================================================== */

/* CSS-01: Why Participate Section */
body.ux-v2 .od-why-participate {
    background: #f8f9fa;
    padding: 60px 0;
}

body.ux-v2 .od-why-participate .od-heading h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
}

body.ux-v2 .od-why-participate .od-heading h2 span {
    color: #ffbb09;
}

/* CSS-02: Benefit Cards */
body.ux-v2 .od-benefit-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

body.ux-v2 .od-benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

body.ux-v2 .od-benefit-card .od-card-icon {
    font-size: 3rem;
    color: #ffbb09;
    margin-bottom: 1.25rem;
}

body.ux-v2 .od-benefit-card .od-card-body h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
}

body.ux-v2 .od-benefit-card .od-card-body p {
    font-size: 0.9375rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* CSS-03: Judging Criteria Section */
body.ux-v2 .od-judging-criteria {
    background: #fff;
    padding: 60px 0;
}

body.ux-v2 .od-judging-criteria .od-heading h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
}

body.ux-v2 .od-judging-criteria .od-heading h2 span {
    color: #ffbb09;
}

body.ux-v2 .od-criteria-intro {
    text-align: center;
    font-size: 1.125rem;
    color: #6c757d;
    margin-bottom: 2.5rem;
}

body.ux-v2 .od-criteria-card {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ffbb09;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

body.ux-v2 .od-criteria-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* CSS-03: Score badges as 40px gold circles */
body.ux-v2 .od-criteria-score {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: #ffbb09;
    color: #1a1a2e;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    margin-right: 1rem;
    flex-shrink: 0;
}

body.ux-v2 .od-criteria-body h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 0.5rem 0;
}

body.ux-v2 .od-criteria-body p {
    font-size: 0.9375rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* CSS-04: Challenge Stats Section */
body.ux-v2 .od-challenge-stats {
    background: #fff;
    padding: 40px 0;
    border-bottom: 1px solid #e9ecef;
}

body.ux-v2 .od-stats-row {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 2rem;
}

body.ux-v2 .od-stat-item {
    text-align: center;
}

body.ux-v2 .od-stat-value {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #ffbb09;
    line-height: 1;
    margin-bottom: 0.5rem;
}

body.ux-v2 .od-stat-label {
    display: block;
    font-size: 0.875rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* CSS-08: Enhanced gradient overlay for card hover */
body.ux-v2 .ddna-card-hover {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.6) 40%,
        rgba(0, 0, 0, 0.2) 70%,
        transparent 100%
    );
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.ux-v2 .ddna-portfolio-card:hover .ddna-card-hover {
    opacity: 1;
}

body.ux-v2 .ddna-hover-score {
    transform: translateY(10px);
    transition: transform 0.3s ease 0.1s;
}

body.ux-v2 .ddna-portfolio-card:hover .ddna-hover-score {
    transform: translateY(0);
}

/* ==========================================================================
   Phase 44: UX v2 Responsive Overrides
   ========================================================================== */

@media (max-width: 991px) {
    body.ux-v2 .od-why-participate,
    body.ux-v2 .od-judging-criteria {
        padding: 50px 0;
    }

    body.ux-v2 .od-why-participate .od-heading h2,
    body.ux-v2 .od-judging-criteria .od-heading h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    body.ux-v2 .od-stats-row {
        gap: 2rem;
    }
}

@media (max-width: 767px) {
    body.ux-v2 .od-why-participate,
    body.ux-v2 .od-judging-criteria {
        padding: 40px 0;
    }

    body.ux-v2 .od-why-participate .od-heading h2,
    body.ux-v2 .od-judging-criteria .od-heading h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    body.ux-v2 .od-benefit-card {
        padding: 1.5rem 1.25rem;
    }

    body.ux-v2 .od-benefit-card .od-card-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    body.ux-v2 .od-criteria-card {
        padding: 1.25rem;
    }

    body.ux-v2 .od-challenge-stats {
        padding: 30px 0;
    }

    body.ux-v2 .od-stats-row {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    body.ux-v2 .od-stat-value {
        font-size: 2.25rem;
    }
}

/* ==========================================================================
   Phase 44: Netflix-style Carousel Hover Effects (CSS-07)
   Cards shift when hovering, creating space for the hovered card to scale
   Only active on desktop (>=992px) to avoid touch device issues
   ========================================================================== */

@media (min-width: 992px) {
    /* Allow overflow for hover scaling */
    body.ux-v2 .ddna-entries-swiper {
        overflow: visible;
    }

    body.ux-v2 .ddna-entries-swiper .swiper-wrapper {
        overflow: visible;
    }

    /* Base transition for all portfolio cards */
    body.ux-v2 .ddna-portfolio-card {
        transition: transform 300ms ease, box-shadow 300ms ease;
    }

    /* When hovering anywhere in carousel: shift ALL cards left */
    body.ux-v2 .ddna-entries-swiper:hover .ddna-portfolio-card {
        transform: translateX(-5%);
    }

    /* Hovered card: scale up, reset position, elevate z-index */
    body.ux-v2 .ddna-portfolio-card:hover {
        transform: scale(1.15);
        z-index: 10;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }

    /* Cards AFTER the hovered card's slide: shift right */
    body.ux-v2 .ddna-entries-swiper .swiper-slide:hover ~ .swiper-slide .ddna-portfolio-card {
        transform: translateX(5%);
    }

    /* Prevent Swiper navigation buttons from being covered */
    body.ux-v2 .ddna-swiper-next,
    body.ux-v2 .ddna-swiper-prev {
        z-index: 20;
    }
}

/* ==========================================================================
   Phase 44: Ensure smooth transitions and reset on mobile
   ========================================================================== */

@media (max-width: 991px) {
    /* Disable Netflix effect on mobile - standard hover only */
    body.ux-v2 .ddna-portfolio-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    body.ux-v2 .ddna-portfolio-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }
}
