/* DNCG Pathways Core Styles - Part 1: Variables & Base */
/* Clean, neutral styling for multi-site use */

:root {
    /* Color Palette - will be overridden by site-specific CSS */
    --dncg-primary-blue: #1e3a8a;
    --dncg-secondary-blue: #3b82f6;
    --dncg-teal: #0891b2;
    --dncg-light-blue: #dbeafe;
    --dncg-white: #ffffff;
    --dncg-dark: #1e293b;
    --dncg-gray: #64748b;
    --dncg-light-gray: #94a3b8;
    --dncg-border: #e2e8f0;
    --dncg-success: #059669;
    --dncg-warning: #d97706;
    --dncg-error: #dc2626;

    /* Typography */
    --dncg-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --dncg-font-size-base: 16px;
    --dncg-line-height-base: 1.6;

    /* Spacing */
    --dncg-spacing-xs: 0.25rem;
    --dncg-spacing-sm: 0.5rem;
    --dncg-spacing-md: 1rem;
    --dncg-spacing-lg: 1.5rem;
    --dncg-spacing-xl: 2rem;
    --dncg-spacing-2xl: 3rem;
    --dncg-spacing-3xl: 4rem;

    /* Borders */
    --dncg-border-radius-sm: 0.375rem;
    --dncg-border-radius-md: 0.5rem;
    --dncg-border-radius-lg: 0.75rem;
    --dncg-border-radius-xl: 1rem;

    /* Shadows */
    --dncg-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --dncg-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --dncg-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --dncg-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --dncg-transition-fast: 0.15s ease-in-out;
    --dncg-transition-normal: 0.3s ease-in-out;
    --dncg-transition-slow: 0.5s ease-in-out;
}

/* ================================
   BASE & RESET STYLES
   ================================ */

.dncg-subject-area-wrapper * {
    box-sizing: border-box;
}

.dncg-subject-area-wrapper {
    font-family: var(--dncg-font-family);
    font-size: var(--dncg-font-size-base);
    line-height: var(--dncg-line-height-base);
    color: var(--dncg-dark);
    background: var(--dncg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Container */
.dncg-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--dncg-spacing-md);
}

.dncg-container-wide {
    max-width: 90%;
}

@media (min-width: 768px) {
    .dncg-container {
        padding: 0 var(--dncg-spacing-xl);
    }
}

/* ================================
   TYPOGRAPHY
   ================================ */

.dncg-subject-area-wrapper h1,
.dncg-subject-area-wrapper h2,
.dncg-subject-area-wrapper h3,
.dncg-subject-area-wrapper h4,
.dncg-subject-area-wrapper h5,
.dncg-subject-area-wrapper h6 {
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: var(--dncg-spacing-md);
    color: var(--dncg-dark);
}

.dncg-subject-area-wrapper h1 {
    font-size: 2.25rem;
    line-height: 1.1;
    color: white;
}

.dncg-subject-area-wrapper h2 {
    font-size: 1.875rem;
}

.dncg-subject-area-wrapper h3 {
    font-size: 1.75rem;
}

.dncg-subject-area-wrapper h4 {
    font-size: 1.5rem;
}

.dncg-subject-area-wrapper h5 {
    font-size: 1.125rem;
}

.dncg-subject-area-wrapper h6 {
    font-size: 1rem;
}

@media (min-width: 768px) {
    .dncg-subject-area-wrapper h1 {
        font-size: 3.5rem;
    }

    .dncg-subject-area-wrapper h2 {
        font-size: 2.25rem;
    }

    .dncg-subject-area-wrapper h3 {
        font-size: 1.875rem;
    }
}

/* DNCG Pathways Core Styles - Part 2: Navigation & Hero */

/* ================================
   PAGE NAVIGATION
   ================================ */

.dncg-page-navigation {
    position: sticky;
    top: 0;
    margin-top: -3rem;
    width: 95%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    z-index: 5;
    transition: all 0.3s ease;
    padding: 1rem;
    margin-bottom: -2rem;
    background: var(--dncg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Navigation wrapper */
.dncg-nav-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.dncg-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 15px 0;
    position: relative;
    z-index: 2;
}

/* Navigation pills */
.dncg-nav-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
    z-index: 2;
}

.dncg-nav-label {
    font-weight: 600;
    color: var(--dncg-gray);
    margin-right: 8px;
    font-size: 1.1rem;
    opacity: 0.7;
}

.dncg-nav-pill {
    padding: 8px 14px;
    background: var(--dncg-white);
    border: 1px solid var(--dncg-border);
    border-radius: 20px;
    text-decoration: none;
    color: var(--dncg-gray);
    font-size: 1.1rem;
    font-weight: 500;
    transition: all var(--dncg-transition-fast);
    white-space: nowrap;
}

.dncg-nav-pill:hover,
.dncg-nav-pill.active {
    background: var(--dncg-primary-blue);
    color: var(--dncg-white);
    border-color: var(--dncg-primary-blue);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.2);
    text-decoration: none;
}

/* Apply Now Button */
.dncg-apply-wrapper {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.dncg-apply-now-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--dncg-teal) 0%, var(--dncg-primary-blue) 100%);
    color: var(--dncg-white);
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all var(--dncg-transition-normal);
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.3);
    position: relative;
    overflow: hidden;
}

.dncg-apply-now-btn::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;
}

.dncg-apply-now-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 25px rgba(8, 145, 178, 0.4);
    color: var(--dncg-white);
    text-decoration: none;
}

.dncg-apply-now-btn:hover::before {
    left: 100%;
}

.dncg-apply-text {
    font-weight: 700;
}

.dncg-apply-arrow {
    width: 18px;
    height: 18px;
    transition: transform var(--dncg-transition-normal);
}

.dncg-apply-now-btn:hover .dncg-apply-arrow {
    transform: translateX(3px);
}

/* Scrolled state */
.dncg-page-navigation.dncg-nav-scrolled {
    margin-top: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.dncg-page-navigation.dncg-nav-scrolled .dncg-nav-inner {
    padding: 10px 0;
}

.dncg-page-navigation.dncg-nav-scrolled .dncg-apply-now-btn {
    padding: 10px 24px;
    font-size: 0.95rem;
}

/* ================================
   HERO SECTION
   ================================ */

.dncg-hero-section {
    position: relative;
    min-height: 50vh;
    display: block;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--dncg-primary-blue);
    overflow: hidden;
}

/* Gradient overlay */
.dncg-hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(30, 58, 138, 0.95) 0%,
        rgba(37, 99, 235, 0.85) 50%,
        rgba(6, 182, 212, 0.75) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Ensure all content sits above the gradient */
.dncg-hero-content,
.dncg-hero-video-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
}

.dncg-hero-content {
    padding: 80px 0;
}

.dncg-hero-headline {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--dncg-white);
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

/* Subject highlight - Clean version */
.dncg-hero-headline .subject-highlight {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    padding: 0 14px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
    font-size: 2.5rem;
    line-height: 1.2;
    text-shadow: none;
    display: inline;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

@media (min-width: 768px) {
    .dncg-hero-headline .subject-highlight {
        font-size: 3.5rem;
    }
}

.dncg-hero-intro {
    font-size: 1.2rem;
    color: var(--dncg-white);
    margin-bottom: 40px;
    max-width: 700px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.5;
    opacity: 0.95;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.dncg-hero-intro p {
    margin-bottom: 0;
}

.dncg-hero-audience-selector {
    text-align: center;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.dncg-hero-audience-selector .dncg-selector-label {
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dncg-white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 1.1rem;
}

/* Video Hero Layout */
.dncg-hero-with-video {
    min-height: 70vh;
    position: relative;
    overflow: hidden;
}

.dncg-hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.dncg-hero-video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.dncg-hero-video-content {
    position: relative;
    padding: 80px 0;
    min-height: auto;
    display: block;
    align-items: center;
}

.dncg-hero-video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
}

.dncg-hero-content-column {
    order: 2;
    position: relative;
}

.dncg-hero-video-column {
    order: 1;
    position: relative;
}

/* Video Container */
.dncg-hero-video-container {
    position: relative;
    max-width: 100%;
}

.dncg-video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.dncg-hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.dncg-video-caption {
    text-align: center;
    margin-top: 15px;
    color: var(--dncg-white);
    font-size: 0.9rem;
    opacity: 0.9;
    font-style: italic;
}

/* Video Hero Content Adjustments */
.dncg-hero-with-video .dncg-hero-headline {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.dncg-hero-with-video .dncg-hero-intro {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.dncg-hero-with-video .dncg-hero-audience-selector {
    margin-top: 30px;
}

/* Audience Dropdown in Hero */
.dncg-hero-top-controls {
    position: absolute;
    top: 20px;
    z-index: 10;
}

.dncg-audience-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--dncg-transition-normal);
}

.dncg-audience-compact:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.dncg-audience-compact label {
    color: var(--dncg-white);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
    white-space: nowrap;
}

.dncg-audience-dropdown {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dncg-primary-blue);
    cursor: pointer;
    transition: all var(--dncg-transition-normal);
    min-width: 150px;
    outline: none;
    margin-bottom: 0;
}

.dncg-audience-dropdown:hover {
    background: var(--dncg-white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dncg-audience-dropdown:focus {
    outline: 2px solid var(--dncg-teal);
    outline-offset: 2px;
}

/* Hero Responsive Design */
@media (min-width: 768px) {
    .dncg-hero-section {
        min-height: 50vh;
        display:flex;
    }

    .dncg-hero-headline {
        font-size: 3.5rem;
    }

    .dncg-hero-intro {
        font-size: 1.4rem;
    }

    .dncg-hero-content {
        padding: 100px 0;
    }

    .dncg-hero-video-content {
        padding: 70px 0;
        display: flex;
        min-height:60vh;
    }

    .dncg-hero-video-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }

    .dncg-hero-content-column {
        order: 1;
    }

    .dncg-hero-video-column {
        order: 2;
    }

    .dncg-hero-with-video .dncg-hero-headline {
        font-size: 2.5rem;
    }

    .dncg-hero-with-video .dncg-hero-intro {
        font-size: 1.2rem;
    }

    .dncg-hero-top-controls {
        right: 20px;
    }
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .dncg-page-navigation {
        margin-top: -40px;
        margin-bottom: -40px;
        padding: 40px 0;
    }
    
    .dncg-nav-inner {
        flex-direction: column;
        gap: 15px;
        padding: 12px 0;
    }
    
    .dncg-nav-pills {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
        width: 100%;
    }
    
    .dncg-nav-label {
        display: none;
    }
    
    .dncg-nav-pill {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
    
    .dncg-apply-wrapper {
        width: 100%;
    }
    
    .dncg-apply-now-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
}

/* DNCG Pathways Core Styles - Part 3: Features Section */

/* ================================
   FEATURES SECTION - CLEAN VERSION
   ================================ */

.dncg-features-section {
    padding: 80px 0;
    background: var(--dncg-white);
    position: relative;
}

.dncg-features-section-breakout {
    overflow: visible;
}

/* Default: Two column layout (no testimonial) */
.dncg-features-grid.dncg-no-testimonial {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .dncg-features-grid.dncg-no-testimonial {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }
}

/* Three column layout with testimonial (no image) */
.dncg-features-grid.dncg-testimonial-no-image {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .dncg-features-grid.dncg-testimonial-no-image {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (min-width: 1024px) {
    .dncg-features-grid.dncg-testimonial-no-image {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 30px;
        align-items: stretch;
    }
}

/* Three column layout with testimonial (with image) */
.dncg-features-grid.dncg-testimonial-with-image {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .dncg-features-grid.dncg-testimonial-with-image {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (min-width: 1024px) {
    .dncg-features-grid.dncg-testimonial-with-image {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 30px;
        align-items: stretch;
    }
}

/* Clean testimonial styling */
.dncg-testimonial-card {
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    position: relative;
    text-align: center;
    transition: all var(--dncg-transition-normal);
}

.dncg-testimonial-card:hover {
    transform: translateY(-2px);
}

/* Clean quote box */
.dncg-testimonial-quote {
    background: linear-gradient(135deg, var(--dncg-primary-blue) 0%, var(--dncg-secondary-blue) 100%);
    padding: 2rem;
    margin: 0 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 12px;
    color: white;
    position: relative;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.2);
    transition: all 0.3s ease;
}

/* Speech bubble pointer */
.dncg-testimonial-quote::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid var(--dncg-secondary-blue);
    z-index: 2;
}

/* Circular testimonial image */
.dncg-testimonial-image {
    margin-top: 0;
    position: relative;
    text-align: center;
}

.dncg-testimonial-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    transition: all var(--dncg-transition-normal);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--dncg-white);
}

.dncg-testimonial-image img:hover {
    transform: scale(1.05);
}

/* Clean attribution styling */
.dncg-testimonial-attribution {
    display: inline-block;
    text-align: center;
    margin-top: 1rem;
}

.dncg-testimonial-name {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--dncg-dark);
    margin-bottom: 0.25rem;
    display: table;
    line-height: 1.2;
}

.dncg-testimonial-course {
    font-size: 0.9rem;
    color: var(--dncg-gray);
    font-weight: 600;
    margin: 0;
    display: table;
    line-height: 1.3;
}

.dncg-testimonial-additional {
    padding:2rem;
    text-align:left;
}
.dncg-testimonial-additional p {
    font-size:1rem;
}

/* Avatar fallback */
.dncg-testimonial-avatar-fallback {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dncg-light-blue), var(--dncg-primary-blue));
    display: inline-block;
    margin: 10px auto;
    font-size: 2.5rem;
    color: var(--dncg-white);
    font-weight: 700;
    line-height: 120px;
    text-align: center;
    box-shadow: var(--dncg-shadow-md);
    transition: all var(--dncg-transition-normal);
}

/* Hide avatar fallback when no image */
.dncg-features-grid.dncg-testimonial-no-image .dncg-testimonial-avatar-fallback {
    display: none;
}

/* Special positioning for no-image testimonials */
.dncg-features-grid.dncg-testimonial-no-image .dncg-testimonial-attribution {
    position: relative;
    margin-top: 1.5rem;
    text-align: center;
}

/* Adjust quote for no-image layout */
.dncg-features-grid.dncg-testimonial-no-image .dncg-testimonial-quote {
    margin-bottom: 1.5rem;
}

/* With-image testimonial adjustments */
.dncg-features-grid.dncg-testimonial-with-image .dncg-testimonial-attribution {
    margin-top: 1rem;
    text-align: center;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .dncg-testimonial-quote {
        font-size: 1rem;
        padding: 1.5rem;
    }
    
    .dncg-testimonial-image img,
    .dncg-testimonial-avatar-fallback {
        width: 100px;
        height: 100px;
    }
    
    .dncg-testimonial-name {
        font-size: 1.1rem;
    }
    
    .dncg-testimonial-course {
        font-size: 0.85rem;
    }
}

/* ================================
   FEATURE CARDS
   ================================ */

.dncg-feature-card {
    background: var(--dncg-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--dncg-shadow-lg);
    border: 1px solid var(--dncg-border);
    transition: all var(--dncg-transition-normal);
    position: relative;
}

.dncg-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--dncg-shadow-xl);
}

.dncg-feature-card h3 {
    color: var(--dncg-primary-blue);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Feature list styling */
.dncg-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dncg-feature-item {
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: 0.75rem;
    align-items: start;
    margin-bottom: 1rem;
    padding: 0;
}

/* Bullet column */
.dncg-bullet {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 2rem;
    padding-top: 0.1rem;
}

/* Content column */
.dncg-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Heading styling */
.dncg-heading {
    font-weight: bold;
    font-size: 1rem;
    line-height: 1.2;
    color: #333;
    margin: 0;
}

/* Description styling */
.dncg-description {
    line-height: 1.4;
    color: #666;
    margin: 0;
}

/* Legacy items */
.dncg-feature-item.legacy .dncg-description {
    color: #333;
    font-weight: normal;
}

/* Icon styling */
.dncg-emoji {
    font-size: 1.5rem;
    display: block;
    line-height: 1;
}

.dncg-checkmark {
    color: #28a745;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Highlight stat styling */
.dncg-highlight-stat {
    background: linear-gradient(135deg, var(--dncg-teal), var(--dncg-secondary-blue));
    color: var(--dncg-white);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
    font-weight: 600;
}

/* CTA Button styling */
.dncg-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--dncg-teal);
    color: var(--dncg-white);
    padding: 15px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all var(--dncg-transition-normal);
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.3);
}

.dncg-cta-button:hover {
    background: var(--dncg-primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.4);
    color: var(--dncg-white);
    text-decoration: none;
}

.dncg-button-icon {
    font-size: 1.1em;
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
    .dncg-features-grid {
        gap: 25px;
    }
    
    .dncg-feature-card {
        padding: 25px;
    }
    
    .dncg-testimonial-card {
        padding: 15px;
        gap: 15px;
    }
    
    .dncg-feature-item {
        grid-template-columns: 1.5rem 1fr;
        gap: 0.5rem;
    }
    
    .dncg-bullet {
        width: 1.5rem;
    }
    
    .dncg-heading {
        font-size: 0.95rem;
    }
    
    .dncg-description {
        font-size: 0.9rem;
    }
}

/* DNCG Pathways Core Styles - Part 4: Facilities & Course Progression */

/* ================================
   FACILITIES SECTION
   ================================ */

.dncg-facilities-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, var(--dncg-light-blue) 100%);
    position: relative;
    overflow: hidden;
}

.dncg-facilities-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--dncg-border) 50%, transparent 100%);
}

.dncg-facilities-section .dncg-container, 
.dncg-facilities-section .dncg-facilities-wrapper {
    max-width: 1600px;
}

.dncg-facilities-header {
    text-align: center;
    margin-bottom: 60px;
}

.dncg-facilities-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dncg-primary-blue);
    margin-bottom: 20px;
    position: relative;
}

.dncg-facilities-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--dncg-teal);
    margin: 15px auto 0;
    border-radius: 2px;
}

.dncg-facilities-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.dncg-facility-item {
    margin-bottom: 80px;
    position: relative;
}

.dncg-facility-content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
    background: var(--dncg-white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(30, 58, 138, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all var(--dncg-transition-normal);
}

.dncg-facility-content-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(30, 58, 138, 0.15);
}

.dncg-facility-content-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--dncg-teal) 0%, var(--dncg-secondary-blue) 100%);
    z-index: 2;
}

.dncg-facility-even {
    margin-left: 0;
    margin-right: 40px;
}

.dncg-facility-odd {
    margin-left: 40px;
    margin-right: 0;
}

.dncg-facility-image-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 280px;
    background: var(--dncg-light-blue);
}

.dncg-facility-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.dncg-facility-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dncg-transition-slow);
}

.dncg-facility-content-wrapper:hover .dncg-facility-image img {
    transform: scale(1.05);
}

.dncg-facility-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(30, 58, 138, 0.1) 0%, 
        rgba(8, 145, 178, 0.2) 50%,
        rgba(59, 130, 246, 0.1) 100%
    );
    opacity: 0;
    transition: opacity var(--dncg-transition-normal);
}

.dncg-facility-content-wrapper:hover .dncg-facility-image-overlay {
    opacity: 1;
}

.dncg-facility-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dncg-light-blue) 0%, #e2e8f0 100%);
    color: var(--dncg-gray);
}

.dncg-placeholder-icon svg {
    width: 48px;
    height: 48px;
    opacity: 0.6;
}

.dncg-facility-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
}

.dncg-facility-text {
    flex: 1;
}

.dncg-facility-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dncg-primary-blue);
    margin-bottom: 20px;
    line-height: 1.3;
    position: relative;
}

.dncg-facility-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--dncg-gray);
}

.dncg-facility-description p {
    margin-bottom: 16px;
}

.dncg-facility-description p:last-child {
    margin-bottom: 0;
}

/* Tablet and Desktop Layout */
@media (min-width: 768px) {
    .dncg-facilities-wrapper {
        padding: 0 40px;
    }

    .dncg-facility-content-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
        padding: 50px;
    }

    .dncg-facility-image-container {
        height: 320px;
    }

    .dncg-facility-even .dncg-facility-image-container {
        order: 1;
    }

    .dncg-facility-even .dncg-facility-content {
        order: 2;
    }

    .dncg-facility-odd .dncg-facility-image-container {
        order: 2;
    }

    .dncg-facility-odd .dncg-facility-content {
        order: 1;
    }

    .dncg-facility-even {
        margin-left: 0;
        margin-right: 80px;
    }

    .dncg-facility-odd {
        margin-left: 80px;
        margin-right: 0;
    }

    .dncg-facility-title {
        font-size: 2rem;
    }

    .dncg-facility-description {
        font-size: 1.15rem;
    }
}

/* ================================
   MAIN SECTION STYLES & HEADERS
   ================================ */

.dncg-careers-section,
.dncg-courses-section,
.dncg-progression-section {
    padding: 80px 0;
}

.dncg-careers-section {
    background: var(--dncg-white);
}

.dncg-courses-section {
    background: linear-gradient(135deg, #f8fafc 0%, var(--dncg-light-blue) 100%);
}

.dncg-progression-section {
    background: var(--dncg-white);
}

/* Section headers */
.dncg-careers-section h2,
.dncg-courses-section h2,
.dncg-progression-section h2,
.dncg-news-social-section h2,
.dncg-gallery-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dncg-primary-blue);
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.dncg-careers-section h2::after,
.dncg-courses-section h2::after,
.dncg-progression-section h2::after,
.dncg-news-social-section h2::after,
.dncg-gallery-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--dncg-teal);
    margin: 15px auto 0;
    border-radius: 2px;
}

.dncg-section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--dncg-gray);
    max-width: 600px;
    margin: 0 auto 50px;
}

.dncg-course-filters {
    margin-bottom: 40px;
    text-align: center;
}

/* DNCG Pathways Core Styles - Part 5: Careers, News & Gallery */

/* ================================
   CAREER GRID STYLES
   ================================ */

.dncg-careers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 40px;
}

.dncg-career-card {
    background: linear-gradient(135deg, var(--dncg-primary-blue) 0%, var(--dncg-secondary-blue) 100%);
    border-radius: 15px;
    padding: 25px;
    color: var(--dncg-white);
    position: relative;
    overflow: hidden;
    transition: all var(--dncg-transition-normal);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
}

.dncg-career-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(8, 145, 178, 0.2) 100%);
    border-radius: 50%;
    transform: translate(30%, -30%);
    transition: all var(--dncg-transition-normal);
}

.dncg-career-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.4);
}

.dncg-career-card:hover::before {
    transform: translate(20%, -20%) scale(1.2);
}

.dncg-career-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.dncg-career-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    flex: 1;
    color: white !important;
}

.dncg-career-level {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.dncg-career-content {
    margin-bottom: 20px;
}

.dncg-career-description {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    opacity: 0.9;
}

.dncg-career-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.dncg-stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.dncg-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.dncg-stat-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

.dncg-career-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 15px;
    gap: 10px;
}

.dncg-job-postings {
    background: rgba(8, 145, 178, 0.3);
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.dncg-soc-code {
    font-family: monospace;
    font-weight: 600;
}

.dncg-career-footer {
    margin-top: auto;
}

.dncg-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dncg-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    transition: all var(--dncg-transition-normal);
    backdrop-filter: blur(10px);
}

.dncg-learn-more:hover {
    background: var(--dncg-white);
    color: var(--dncg-primary-blue);
    transform: translateX(5px);
    text-decoration: none;
}

@media (min-width: 768px) {
    .dncg-careers-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .dncg-career-card {
        padding: 30px;
    }

    .dncg-career-title {
        font-size: 1.4rem;
    }
}

/* ================================
   NEWS & SOCIAL MEDIA SECTION
   ================================ */

.dncg-news-social-section {
    padding: 60px 0;
    background: var(--dncg-white);
    border-top: 1px solid var(--dncg-border);
}

.dncg-news-social-section h2 {
    font-size: 2.25rem;
}

.dncg-news-social-section h2::after {
    width: 50px;
    height: 3px;
    margin: 12px auto 0;
}

.dncg-news-social-section .dncg-section-intro {
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto 40px;
}

.dncg-news-grid-compact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .dncg-news-grid-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (min-width: 1024px) {
    .dncg-news-grid-compact {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

.dncg-news-card-compact {
    background: var(--dncg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(30, 58, 138, 0.06);
    border: 1px solid var(--dncg-border);
    transition: all var(--dncg-transition-normal);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dncg-news-card-compact:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(30, 58, 138, 0.12);
    border-color: rgba(8, 145, 178, 0.3);
}

.dncg-news-image-compact {
    position: relative;
    height: 140px;
    overflow: hidden;
    background: var(--dncg-light-blue);
    flex-shrink: 0;
}

.dncg-news-image-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--dncg-transition-normal);
}

.dncg-news-card-compact:hover .dncg-news-image-compact img {
    transform: scale(1.03);
}

.dncg-news-image-compact.dncg-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dncg-light-blue) 0%, #e2e8f0 100%);
    color: var(--dncg-gray);
}

.dncg-news-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

.dncg-news-placeholder svg {
    width: 32px;
    height: 32px;
}

.dncg-news-content-compact {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dncg-news-meta-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 8px;
    font-size: 0.8rem;
}

.dncg-news-date-compact {
    color: var(--dncg-gray);
    font-weight: 500;
    flex-shrink: 0;
}

.dncg-news-category-compact {
    background: var(--dncg-light-blue);
    color: var(--dncg-primary-blue);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.dncg-news-title-compact {
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    flex: 1;
}

.dncg-news-title-compact a {
    color: var(--dncg-dark);
    text-decoration: none;
    transition: color var(--dncg-transition-normal);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dncg-news-title-compact a:hover {
    color: var(--dncg-primary-blue);
}

.dncg-news-excerpt-compact {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--dncg-gray);
    margin-top: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dncg-news-view-all-compact {
    text-align: center;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
}

/* ================================
   IMAGE GALLERY SECTION
   ================================ */

.dncg-gallery-section {
    padding: 80px 0;
    background: var(--dncg-white);
    border-top: 1px solid var(--dncg-border);
}

.dncg-gallery-section h2 {
    font-size: 2.5rem;
}

.dncg-gallery-section h2::after {
    width: 50px;
    height: 3px;
    margin: 12px auto 0;
}

.dncg-gallery-wrapper {
    margin-top: 50px;
}

/* Grid Layout */
.dncg-gallery-grid {
    display: grid;
    grid-template-columns: repeat(var(--columns, 3), 1fr);
    gap: 25px;
    align-items: stretch;
}

/* Masonry Layout */
.dncg-gallery-masonry {
    display: grid;
    grid-template-columns: repeat(var(--columns, 3), 1fr);
    gap: 25px;
    align-items: start;
}

@supports (column-count: 1) {
    .dncg-gallery-masonry {
        display: block;
        column-count: var(--columns, 3);
        column-gap: 25px;
        column-fill: balance;
    }
    
    .dncg-gallery-masonry .dncg-gallery-item {
        display: inline-block;
        width: 100%;
        margin-bottom: 25px;
        break-inside: avoid;
        page-break-inside: avoid;
        -webkit-column-break-inside: avoid;
    }
}

/* Gallery Items */
.dncg-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.1);
    transition: all var(--dncg-transition-normal);
    background: var(--dncg-white);
    cursor: pointer;
}

.dncg-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.15);
}

.dncg-gallery-item:focus {
    outline: 3px solid var(--dncg-teal);
    outline-offset: 2px;
}

/* Image Wrappers */
.dncg-gallery-image-wrapper {
    position: relative;
    overflow: hidden;
    background: var(--dncg-light-gray);
    aspect-ratio: 4/3;
}

.dncg-gallery-masonry .dncg-gallery-image-wrapper {
    aspect-ratio: unset;
    height: auto;
}

.dncg-gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--dncg-transition-slow);
    display: block;
}

.dncg-gallery-masonry .dncg-gallery-image-wrapper img {
    height: auto;
}

.dncg-gallery-item:hover .dncg-gallery-image-wrapper img {
    transform: scale(1.05);
}

/* Lightbox Overlay */
.dncg-gallery-wrapper .dncg-gallery-item .dncg-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 58, 138, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--dncg-transition-normal);
    z-index: 5;
}

.dncg-gallery-wrapper .dncg-gallery-item:hover .dncg-gallery-overlay {
    opacity: 1;
}

.dncg-gallery-wrapper .dncg-gallery-item .dncg-gallery-zoom-icon {
    color: white;
    transform: scale(0.8);
    transition: transform var(--dncg-transition-normal);
}

.dncg-gallery-wrapper .dncg-gallery-item:hover .dncg-gallery-zoom-icon {
    transform: scale(1);
}

/* Captions */
.dncg-gallery-caption {
    padding: 15px;
    font-size: 0.9rem;
    color: var(--dncg-gray);
    line-height: 1.4;
    background: var(--dncg-white);
    border-top: 1px solid var(--dncg-border);
    position: relative;
    z-index: 10;
}

/* Lightbox Modal */
.dncg-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.dncg-lightbox-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.dncg-lightbox-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dncg-lightbox-content {
    text-align: center;
    max-width: 100%;
    max-height: 100%;
}

.dncg-lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.dncg-lightbox-caption {
    color: white;
    font-size: 1rem;
    margin-top: 15px;
    padding: 0 20px;
    line-height: 1.4;
}

.dncg-lightbox-close,
.dncg-lightbox-prev,
.dncg-lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--dncg-transition-normal);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dncg-lightbox-close:hover,
.dncg-lightbox-prev:hover,
.dncg-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.dncg-lightbox-close {
    top: 20px;
    right: 20px;
}

.dncg-lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.dncg-lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.dncg-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

/* Prevent body scroll when lightbox is open */
.dncg-lightbox-open {
    overflow: hidden !important;
}

/* DNCG Pathways Core Styles - Part 6: Partner Courses & Utilities */

/* ================================
   PARTNER COURSES DISPLAY
   ================================ */

/* Regular Partner Courses Section */
.dncg-partner-courses-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px dashed rgba(30, 58, 138, 0.15);
}

.dncg-partner-courses-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.dncg-partner-site-block {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    border: 1px solid rgba(30, 58, 138, 0.1);
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 20px;
    transition: all var(--dncg-transition-normal);
}

.dncg-partner-site-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(30, 58, 138, 0.1);
    border-color: var(--dncg-teal);
}

.dncg-partner-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--dncg-teal) 0%, var(--dncg-primary-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dncg-partner-initial {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.dncg-partner-content {
    flex: 1;
}

.dncg-partner-message {
    margin: 0 0 10px 0;
    font-size: 1.05rem;
    color: var(--dncg-gray);
    line-height: 1.5;
}

.dncg-partner-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dncg-teal);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--dncg-transition-normal);
}

.dncg-partner-link:hover {
    color: var(--dncg-primary-blue);
    transform: translateX(5px);
}

/* HE Section */
.dncg-partner-he-section,
.dncg-he-level,
.dncg-level-row.dncg-he-level,
.dncg-level-row[data-level="he"] {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    height: auto !important;
    position: relative !important;
}

.dncg-he-level.dncg-empty-level {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body .dncg-partner-courses-container .dncg-he-level,
body .dncg-partner-courses-container .dncg-partner-he-section {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* HE Arrow */
.dncg-he-arrow {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 30px auto;
    position: relative;
    z-index: 10;
    justify-content: center;
    align-items: center;
    height: 60px;
    width: 100%;
}

.dncg-he-arrow .dncg-progression-arrow,
.dncg-he-progression-arrow {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    visibility: visible !important;
}

.dncg-level-row[data-level="l3"] + .dncg-level-arrow,
.dncg-level-arrow.dncg-he-arrow {
    display: flex !important;
}

.dncg-he-arrow .dncg-progression-arrow path {
    stroke: #7c3aed !important;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 2px 4px rgba(124, 58, 237, 0.3));
}

/* HE Header */
.dncg-partner-he-section {
    margin-top: 30px;
}

.dncg-he-level .dncg-level-row-header {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    position: relative;
}

.dncg-he-header .dncg-level-title {
    color: #ffffff !important;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.dncg-he-header .dncg-course-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Partner HE Card */
.dncg-partner-he-card {
    background: white;
    border: 2px solid #e9d5ff;
    border-radius: 16px;
    padding: 35px;
    margin: 25px;
    transition: all var(--dncg-transition-normal);
}

.dncg-partner-he-card:hover {
    border-color: #7c3aed;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.15);
    transform: translateY(-3px);
}

.dncg-partner-logo-area {
    margin-bottom: 25px;
}

.dncg-partner-badge {
    display: inline-block;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.dncg-partner-he-info h4 {
    color: #6d28d9;
    font-size: 1.4rem;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.dncg-he-description {
    color: #4b5563;
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.5;
}

/* HE Course Links */
.dncg-he-course-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.dncg-he-course-link-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: #ffffff;
    border: 2px solid #7c3aed;
    border-radius: 12px;
    text-decoration: none;
    color: #6d28d9;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dncg-he-course-link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transition: left 0.3s ease;
    z-index: 0;
}

.dncg-he-course-link-btn:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
    text-decoration: none;
    border-color: #7c3aed;
}

.dncg-he-course-link-btn:hover::before {
    left: 0;
}

.dncg-he-course-link-btn > * {
    position: relative;
    z-index: 1;
}

.dncg-he-level-badge {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.dncg-he-course-link-btn:hover .dncg-he-level-badge {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}

.dncg-he-course-name {
    flex: 1;
    font-size: 1rem;
    line-height: 1.3;
}

.dncg-he-link-arrow {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    color: currentColor;
}

.dncg-he-course-link-btn:hover .dncg-he-link-arrow {
    transform: translateX(4px);
}

/* ================================
   NO COURSES FOUND MESSAGE
   ================================ */

.dncg-no-courses-message {
    text-align: center;
    padding: 60px 20px;
    margin: 40px 0;
    background: linear-gradient(135deg, #f8fafc 0%, var(--dncg-light-blue) 50%, #f1f5f9 100%);
    border-radius: 20px;
    border: 2px dashed rgba(8, 145, 178, 0.3);
    position: relative;
    overflow: hidden;
}

.dncg-no-courses-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.dncg-no-courses-content {
    position: relative;
    z-index: 2;
    max-width: 400px;
    margin: 0 auto;
}

.dncg-no-courses-content svg {
    color: var(--dncg-teal);
    margin-bottom: 20px;
    opacity: 0.8;
}

.dncg-no-courses-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dncg-primary-blue);
    margin-bottom: 12px;
}

.dncg-no-courses-content p {
    font-size: 1rem;
    color: var(--dncg-gray);
    line-height: 1.6;
    margin-bottom: 25px;
}

.dncg-show-all-courses {
    margin-top: 10px;
    padding: 12px 24px;
    font-size: 0.9rem;
    border-radius: 25px;
    transition: all var(--dncg-transition-normal);
}

.dncg-show-all-courses:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.3);
}

/* ================================
   BUTTONS & FORM ELEMENTS
   ================================ */

.dncg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--dncg-spacing-sm);
    padding: var(--dncg-spacing-md) var(--dncg-spacing-lg);
    border: 2px solid transparent;
    border-radius: var(--dncg-border-radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all var(--dncg-transition-normal);
    white-space: nowrap;
}

.dncg-btn-primary {
    background: var(--dncg-primary-blue);
    color: var(--dncg-white);
    box-shadow: var(--dncg-shadow-sm);
}

.dncg-btn-primary:hover {
    background: var(--dncg-secondary-blue);
    transform: translateY(-1px);
    box-shadow: var(--dncg-shadow-md);
    color: var(--dncg-white);
    text-decoration: none;
}

.dncg-btn-secondary {
    background: var(--dncg-teal);
    color: var(--dncg-white);
    box-shadow: var(--dncg-shadow-sm);
}

.dncg-btn-secondary:hover {
    background: #0e7490;
    transform: translateY(-1px);
    box-shadow: var(--dncg-shadow-md);
    color: var(--dncg-white);
    text-decoration: none;
}

.dncg-btn-outline {
    background: transparent;
    color: var(--dncg-primary-blue);
    border-color: var(--dncg-primary-blue);
}

.dncg-btn-outline:hover {
    background: var(--dncg-primary-blue);
    color: var(--dncg-white);
    text-decoration: none;
}

/* Audience Selector */
.dncg-audience-selector {
    display: flex;
    flex-wrap: wrap;
    gap: var(--dncg-spacing-sm);
    justify-content: center;
}

.dncg-audience-pill {
    padding: var(--dncg-spacing-sm) var(--dncg-spacing-md);
    background: var(--dncg-white);
    color: var(--dncg-gray);
    border: 2px solid var(--dncg-border);
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--dncg-transition-normal);
    display: inline-block;
}

.dncg-audience-pill:hover,
.dncg-audience-pill.active {
    background: var(--dncg-primary-blue);
    color: var(--dncg-white);
    border-color: var(--dncg-primary-blue);
    text-decoration: none;
}

/* Course option highlight */
.dncg-course-option.highlighted {
    animation: highlightPulse 1s ease-out 2;
}

@keyframes highlightPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(8, 145, 178, 0);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 20px 5px rgba(8, 145, 178, 0.3);
    }
}

.dncg-course-label.dncg-highlight-pulse {
    animation: dncg-pulse-highlight 1s ease-in-out 3;
}

@keyframes dncg-pulse-highlight {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(8, 145, 178, 0.4);
        background-color: transparent;
    }
    25% {
        box-shadow: 0 0 20px 5px rgba(8, 145, 178, 0.2);
        background-color: rgba(224, 242, 254, 0.3);
    }
    50% {
        box-shadow: 0 0 25px 10px rgba(8, 145, 178, 0.1);
        background-color: rgba(224, 242, 254, 0.5);
    }
    75% {
        box-shadow: 0 0 20px 5px rgba(8, 145, 178, 0.2);
        background-color: rgba(224, 242, 254, 0.3);
    }
}

/* DNCG Pathways Core Styles - Part 7: Accessibility & Responsive */

/* ================================
   ACCESSIBILITY & FOCUS STATES
   ================================ */

.dncg-btn:focus,
.dncg-audience-pill:focus,
.dncg-course-expand-horizontal:focus,
.dncg-nav-pill:focus,
.dncg-feature-card:focus-within,
.dncg-testimonial-card:focus-within,
.dncg-facility-content-wrapper:focus-within {
    outline: 2px solid var(--dncg-teal);
    outline-offset: 2px;
}

.dncg-cta-button:focus {
    outline: 2px solid var(--dncg-white);
    outline-offset: 2px;
}

.dncg-course-link-horizontal:focus {
    outline: 2px solid var(--dncg-teal);
    outline-offset: 2px;
    border-radius: 4px;
}

.dncg-news-title-compact a:focus,
.dncg-gallery-item:focus-within {
    outline: 2px solid var(--dncg-teal);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

/* Small mobile devices */
@media (max-width: 480px) {
    .dncg-container {
        padding: 0 15px;
    }
    
    .dncg-hero-headline {
        font-size: 2rem;
    }
    
    .dncg-hero-intro {
        font-size: 1rem;
    }
    
    .dncg-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    
    .dncg-feature-card,
    .dncg-career-card {
        padding: 20px;
    }
    
    .dncg-features-section,
    .dncg-news-social-section,
    .dncg-gallery-section {
        padding: 50px 0;
    }
    
    .dncg-news-grid-compact,
    .dncg-gallery-grid {
        gap: 18px;
        margin-top: 30px;
    }
    
    .dncg-news-image-compact {
        height: 120px;
    }
    
    .dncg-news-content-compact {
        padding: 15px;
    }
    
    .dncg-news-title-compact {
        font-size: 0.95rem;
    }
    
    .dncg-news-meta-compact {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 10px;
    }
    
    .dncg-news-category-compact {
        max-width: none;
    }
    
    .dncg-gallery-caption {
        padding: 12px;
        font-size: 0.85rem;
    }
    
    .dncg-lightbox-close,
    .dncg-lightbox-prev,
    .dncg-lightbox-next {
        width: 40px;
        height: 40px;
    }
    
    .dncg-lightbox-close {
        top: 10px;
        right: 10px;
    }
    
    .dncg-lightbox-prev {
        left: 10px;
    }
    
    .dncg-lightbox-next {
        right: 10px;
    }
    
    .dncg-no-courses-message {
        padding: 40px 15px;
        margin: 30px 0;
    }
    
    .dncg-no-courses-content h3 {
        font-size: 1.3rem;
    }
    
    .dncg-no-courses-content p {
        font-size: 0.95rem;
    }
    
    .dncg-show-all-courses {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .dncg-news-image-compact {
        height: 130px;
    }
    
    .dncg-news-title-compact {
        font-size: 0.98rem;
    }
    
    .dncg-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dncg-gallery-masonry {
        grid-template-columns: repeat(2, 1fr);
    }
    
    @supports (column-count: 1) {
        .dncg-gallery-masonry {
            column-count: 2;
        }
    }
}

/* Large screen optimizations */
@media (min-width: 1024px) {
    .dncg-facilities-section {
        padding: 100px 0;
    }

    .dncg-facility-content-wrapper {
        gap: 60px;
        padding: 60px;
    }

    .dncg-facility-image-container {
        height: 360px;
    }

    .dncg-facility-even {
        margin-right: 120px;
    }

    .dncg-facility-odd {
        margin-left: 120px;
    }

    .dncg-facility-title {
        font-size: 2.2rem;
    }
    
    .dncg-careers-section,
    .dncg-courses-section,
    .dncg-progression-section {
        padding: 100px 0;
    }
    
    .dncg-hero-section {
        min-height: 50vh;
    }

    .dncg-hero-headline {
        font-size: 4rem;
    }

    .dncg-hero-intro {
        font-size: 1.5rem;
    }

    .dncg-hero-video-content {
        padding: 100px 0;
    }

    .dncg-hero-video-grid {
        gap: 80px;
    }

    .dncg-hero-with-video .dncg-hero-headline {
        font-size: 3rem;
    }

    .dncg-hero-with-video .dncg-hero-intro {
        font-size: 1.3rem;
    }
    
    .dncg-careers-grid {
        gap: 35px;
    }

    .dncg-career-card {
        padding: 35px;
    }
    
    .dncg-level-courses-horizontal {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 30px;
    }
}

@media (min-width: 1200px) {
    .dncg-news-social-section,
    .dncg-gallery-section {
        padding: 80px 0;
    }
    
    .dncg-news-grid-compact,
    .dncg-gallery-grid {
        gap: 35px;
    }
    
    .dncg-news-image-compact {
        height: 160px;
    }
    
    .dncg-news-content-compact {
        padding: 20px;
    }
    
    .dncg-news-title-compact {
        font-size: 1.1rem;
    }
    
    .dncg-feature-card {
        padding: 35px;
    }
    
    .dncg-feature-card h3 {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }
    
    .dncg-cta-button {
        padding: 18px 28px;
        font-size: 1.05rem;
    }
    
    .dncg-course-progression-wrapper-v2 {
        max-width: 1400px;
        margin:0 auto;
    }
    
    .dncg-level-courses-horizontal {
        grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
        gap: 35px;
        padding: 40px;
    }
    
    .dncg-course-card-content {
        padding: 30px;
    }
    
    .dncg-course-title-horizontal {
        font-size: 1.3rem;
    }
}

/* Ultra-wide screens */
@media (min-width: 1440px) {
    .dncg-nav-wrapper {
        max-width: 1600px;
    }
    
    .dncg-features-section {
        padding: 120px 0;
    }
    
    .dncg-feature-card {
        padding: 40px;
    }
    
    .dncg-feature-card h3 {
        font-size: 1.5rem;
        margin-bottom: 28px;
    }
   
    .dncg-cta-button {
        padding: 20px 32px;
        font-size: 1.1rem;
    }
}

/* Very large screens */
@media (min-width: 1920px) {
    .dncg-container,
    .dncg-nav-wrapper {
        max-width: 1800px;
    }
    
    .dncg-facilities-section .dncg-container,
    .dncg-facilities-section .dncg-facilities-wrapper {
        max-width: 1800px;
    }
}

/* Mobile specific adjustments */
@media (max-width: 767px) {
    /* Facilities */
    .dncg-facilities-section {
        padding: 60px 0;
    }

    .dncg-facilities-wrapper {
        padding: 0 15px;
    }

    .dncg-facility-item {
        margin-bottom: 50px;
    }

    .dncg-facility-even,
    .dncg-facility-odd {
        margin-left: 0;
        margin-right: 0;
    }

    .dncg-facility-content-wrapper {
        padding: 30px;
        gap: 25px;
    }

    .dncg-facility-image-container {
        height: 220px;
    }

    .dncg-facility-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .dncg-facility-description {
        font-size: 1rem;
        line-height: 1.6;
    }

    .dncg-facilities-header h2 {
        font-size: 2rem;
    }
    
    /* Course progression */
    .dncg-course-progression-wrapper-v2 {
        padding: 0 15px;
    }
    
    .dncg-level-row {
        margin-bottom: 25px;
    }
    
    .dncg-level-row-header {
        padding: 20px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .dncg-level-title {
        font-size: 1.3rem;
    }
    
    .dncg-level-courses-horizontal {
        padding: 20px;
        gap: 15px;
    }
    
    .dncg-course-card-content {
        padding: 20px;
    }
    
    .dncg-course-header-horizontal {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .dncg-course-expand-horizontal {
        align-self: flex-end;
        margin-top: -10px;
    }
    
    .dncg-course-title-horizontal {
        font-size: 1.1rem;
    }
    
    .dncg-progression-arrow {
        width: 36px;
        height: 36px;
    }
    
    .dncg-course-actions-horizontal {
        flex-direction: column;
        gap: 10px;
    }
    
    .dncg-apply-for-course-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    
    /* Partner content */
    .dncg-partner-site-block {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .dncg-he-arrow {
        margin: 20px auto;
    }
    
    .dncg-partner-he-card {
        margin: 15px;
        padding: 25px;
    }
    
    .dncg-he-header .dncg-level-title {
        font-size: 1.3rem;
    }
    
    .dncg-he-course-links {
        gap: 10px;
    }
    
    .dncg-he-course-link-btn {
        padding: 12px 16px;
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    
    .dncg-he-level-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .dncg-he-course-name {
        font-size: 0.9rem;
    }
    
    .dncg-he-link-arrow {
        font-size: 1.1rem;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .dncg-apply-now-btn,
    .dncg-feature-card,
    .dncg-feature-item,
    .dncg-testimonial-quote,
    .dncg-testimonial-image,
    .dncg-testimonial-attribution {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .dncg-feature-card:hover,
    .dncg-testimonial-card:hover,
    .dncg-cta-button:hover,
    .dncg-testimonial-image img:hover {
        transform: none !important;
    }
}

/* Print styles */
@media print {
    .dncg-subject-area-wrapper {
        background: white !important;
        color: black !important;
    }

    .dncg-hero-top-controls,
    .dncg-page-navigation,
    .dncg-audience-selector,
    .dncg-cta-button,
    .dncg-apply-wrapper,
    .dncg-course-expand-horizontal,
    .dncg-level-arrow,
    .dncg-lightbox-modal {
        display: none !important;
    }

    .dncg-career-card,
    .dncg-level-row,
    .dncg-feature-card,
    .dncg-facility-content-wrapper,
    .dncg-news-card-compact,
    .dncg-gallery-item {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        break-inside: avoid;
    }

    .dncg-course-details-horizontal {
        display: block !important;
    }

    .dncg-level-row-header {
        background: #f5f5f5 !important;
        color: black !important;
    }

    .dncg-facility-image-overlay,
    .dncg-gallery-overlay {
        display: none !important;
    }

    .dncg-facility-even,
    .dncg-facility-odd {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .dncg-testimonial-card {
        background: transparent !important;
        break-inside: avoid;
    }
    
    .dncg-testimonial-quote {
        box-shadow: none !important;
        background: #f5f5f5 !important;
        color: black !important;
    }
    
    .dncg-testimonial-quote::after {
        display: none !important;
    }
}


/* Subject Grid Shortcode Styles */
.dncg-subject-grid-shortcode-wrapper {
    margin: 40px 0;
}

.dncg-subject-grid {
    display: grid;
    gap: 30px;
    margin-top: 30px;
}

/* Grid columns */
.dncg-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.dncg-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.dncg-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }


/* ================================
   HE COURSE GRID LAYOUT
   Simplified display for university courses
   ================================ */

.dncg-he-course-grid-wrapper {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.dncg-he-course-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

@media (min-width: 768px) {
    .dncg-he-course-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (min-width: 1200px) {
    .dncg-he-course-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
    }
}

/* HE Course Cards */
.dncg-course-card-he {
    background: var(--dncg-white);
    border: 1px solid var(--dncg-border);
    border-radius: 12px;
    transition: all var(--dncg-transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dncg-course-card-he:hover {
    border-color: var(--dncg-teal);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(8, 145, 178, 0.1);
    transform: translateY(-2px);
}

.dncg-course-card-he .dncg-course-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* HE Header with Level Badge */
.dncg-course-header-he {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.dncg-course-title-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dncg-level-badge-he {
    display: inline-block;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

.dncg-course-title-he {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dncg-primary-blue);
    margin: 0;
    line-height: 1.4;
}

.dncg-htq-badge-he {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform var(--dncg-transition-normal);
}

.dncg-course-card-he:hover .dncg-htq-badge-he {
    transform: scale(1.05);
}

/* Responsive Adjustments for HE Grid */
@media (max-width: 767px) {
    .dncg-he-course-grid-wrapper {
        padding: 0 15px;
    }
    
    .dncg-he-course-grid {
        gap: 20px;
    }
    
    .dncg-course-card-he .dncg-course-card-content {
        padding: 20px;
    }
    
    .dncg-course-title-he {
        font-size: 1.125rem;
    }
    
    .dncg-level-badge-he {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .dncg-htq-badge-he {
        width: 32px;
        height: 32px;
    }
}

@media (min-width: 1400px) {
    .dncg-he-course-grid-wrapper {
        max-width: 1400px;
    }
}



/* ========================================
   ARCHIVE-STYLE LAYOUT FOR SUBJECT AREAS
   ======================================== */

/* Main Content Wrapper */
.dncg-courses-content.dncg-subject-area-courses {
    padding: 40px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
}

/* Layout Grid */
.dncg-course-progression-wrapper-v2 .dncg-courses-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

/* ========================================
   FILTER SIDEBAR
   ======================================== */

/* Filter Sidebar Container */
.dncg-filter-sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(30, 58, 138, 0.1);
    padding: 25px;
}

.filter-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.filter-sidebar-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dncg-primary-blue);
    margin: 0;
}

.mobile-close-filters {
    display: none;
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #64748b;
    transition: color 0.3s ease;
}

.mobile-close-filters:hover {
    color: var(--dncg-primary-blue);
}

/* Filter Accordion Items */
.filter-accordion-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 0;
}

.filter-accordion-item:last-child {
    border-bottom: none;
}

.filter-accordion-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    padding: 10px 0;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.filter-accordion-toggle:hover {
    color: var(--dncg-teal);
}

.accordion-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
}

.accordion-icon {
    transition: transform 0.3s ease;
    stroke: #64748b;
    flex-shrink: 0;
}

.filter-accordion-toggle.is-active .accordion-icon {
    transform: rotate(180deg);
    stroke: var(--dncg-teal);
}

/* Accordion Content - Collapsible */
.filter-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    opacity: 0;
}

.filter-accordion-content.is-open {
    max-height: 100%;
    opacity: 1;
    padding-top: 10px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Checkbox Styles */
.filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-checkbox-label:hover {
    color: #667eea;
}

.filter-checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.filter-checkbox:focus-visible + .checkbox-custom {
    outline: 2px solid #667eea;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    background: white;
}

.filter-checkbox:checked + .checkbox-custom {
    border-color: #667eea;
    background: #667eea;
}

.filter-checkbox:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    flex: 1;
    font-size: 0.9rem;
    color: #4a5568;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-checkbox:checked + .checkbox-custom + .checkbox-text {
    color: #2d3748;
    font-weight: 600;
}

.option-count {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: normal;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}

.btn-apply-filters {
    background: linear-gradient(135deg, var(--dncg-teal) 0%, var(--dncg-primary-blue) 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-apply-filters:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.3);
}

.btn-clear-filters {
    background: white;
    color: #64748b;
    border: 2px solid #e2e8f0;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-clear-filters:hover {
    border-color: var(--dncg-teal);
    color: var(--dncg-teal);
}

/* Mobile Filter Toggle Button */
.dncg-mobile-filter-toggle {
    display: none;
    background: white;
    border: 2px solid var(--dncg-border);
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--dncg-dark);
    gap: 10px;
    align-items: center;
    transition: all 0.3s ease;
}

.dncg-mobile-filter-toggle:hover {
    border-color: var(--dncg-teal);
    color: var(--dncg-teal);
}

.filter-count {
    background: var(--dncg-teal);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* ========================================
   COURSE RESULTS GRID
   ======================================== */

/* Results Header */
.results-header {
    background: white;
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(30, 58, 138, 0.08);
}

.results-count {
    font-size: 1.1rem;
    color: #4a5568;
    margin: 0;
}

.results-count strong {
    color: var(--dncg-primary-blue);
    font-weight: 700;
    font-size: 1.3rem;
}

/* Course Grid */
.subject-area-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Course Card Styling */
.subject-area-courses-grid .course-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.subject-area-courses-grid .course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.subject-area-courses-grid .course-card-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.subject-area-courses-grid .course-image {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #f7fafc;
}

.subject-area-courses-grid .course-image-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.subject-area-courses-grid .placeholder-icon {
    position: relative;
    z-index: 2;
}

.subject-area-courses-grid .placeholder-icon svg,
.dncg-level-courses-grid .placeholder-icon svg {
    display: none;
}

.subject-area-courses-grid .course-image-placeholder::after,
.dncg-level-courses-grid .course-image-placeholder::after {
    content: '📚';
    font-size: 3rem;
    opacity: 0.5;
}

.subject-area-courses-grid .course-image-placeholder,
.dncg-level-courses-grid .course-image-placeholder {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
}

.subject-area-courses-grid .course-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%);
}

.subject-area-courses-grid .course-content {
    padding: 20px;
}

.subject-area-courses-grid .course-subject {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.subject-area-courses-grid .course-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 12px;
    line-height: 1.4;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.subject-area-courses-grid .course-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
}

.subject-area-courses-grid .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #718096;
}

.subject-area-courses-grid .meta-item svg {
    flex-shrink: 0;
    stroke: #718096;
}

.subject-area-courses-grid .meta-audience {
    background: #e0f2fe;
    color: #0c4a6e;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
}

/* HTQ Badge - Small Version */
.dncg-htq-badge-small {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    object-fit: contain;
    z-index: 3;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.course-quick-actions,
.dncg-course-actions-horizontal {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    background: transparent;
    position: relative;
    padding: 0;
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-direction: row;
    justify-content: stretch;
}
.quick-apply-btn,
.dncg-apply-for-course-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--dncg-teal, #0891b2) 0%, var(--dncg-primary-blue, #1e3a8a) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    text-decoration: none;
}

.quick-apply-btn:hover,
.dncg-apply-for-course-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.4);
    color: white;
    text-decoration: none;
}


/* Empty State */
.dncg-no-courses-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(30, 58, 138, 0.08);
}

.no-courses-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-courses-content svg {
    color: var(--dncg-teal);
    margin-bottom: 20px;
    opacity: 0.6;
}

.no-courses-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dncg-primary-blue);
    margin-bottom: 12px;
}

.no-courses-content p {
    font-size: 1rem;
    color: #718096;
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn-clear-search {
    background: var(--dncg-teal);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-clear-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.3);
}

/* ========================================
   MOBILE RESPONSIVENESS
   ======================================== */

@media (max-width: 992px) {
    .dncg-subject-area-courses .dncg-courses-layout {
        grid-template-columns: 1fr;
    }
    
    .subject-area-courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .dncg-mobile-filter-toggle {
        display: flex;
    }

    .dncg-course-progression-wrapper-v2 .dncg-courses-layout {
        display: grid;
        grid-template-columns: 1fr;
      }
    
    .mobile-close-filters {
        display: block;
    }
    
    .dncg-filter-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        max-height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        border-radius: 0;
        overflow-y: auto;
    }
    
    .dncg-filter-sidebar.is-open {
        left: 0;
    }
    
    .filter-sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    body.filter-sidebar-open .filter-sidebar-overlay {
        opacity: 1;
        visibility: visible;
    }
    
    body.filter-sidebar-open {
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    .dncg-courses-content.dncg-subject-area-courses {
        padding: 30px 0;
    }
    
    .subject-area-courses-grid {
        grid-template-columns: 1fr;
    }
    
    .subject-area-courses-grid .course-title,
    .dncg-level-courses-grid .course-title,
    .dncg-course-title-horizontal {
        font-size: 1rem;
    }
    
    .course-quick-actions,
    .dncg-course-actions-horizontal {
        flex-direction: column;
        gap: 8px;
    }
    
    .dncg-more-info-btn,
    .quick-apply-btn,
    .dncg-apply-for-course-btn {
        width: 100%;
        flex: none;
    }
    
    .dncg-filter-sidebar {
        width: 280px;
        padding: 20px;
    }
    
    .filter-sidebar-title {
        font-size: 1.3rem;
    }
    
    .accordion-title {
        font-size: 1rem;
    }
    
    .results-header {
        padding: 15px 20px;
    }
    
    .results-count {
        font-size: 1rem;
    }
    
    .results-count strong {
        font-size: 1.2rem;
    }
}



/* ========================================
   LEVEL-BASED PROGRESSION LAYOUT
   ======================================== */

.dncg-course-progression-wrapper-v2 {
    padding: 60px 0;
}

.dncg-level-progression-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Level Blocks */
.dncg-level-row {
    background: white;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.dncg-level-row-header {
    background: linear-gradient(135deg, var(--dncg-teal) 0%, var(--dncg-primary-blue) 100%);
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dncg-level-title {
    color: white !important;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.dncg-course-count {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Grid within Level Blocks */
.dncg-level-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 32px;
}

/* Progression Arrows */
.dncg-level-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    margin: 20px 0;
}

.dncg-progression-arrow {
    width: 48px;
    height: 48px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.dncg-level-arrow:hover .dncg-progression-arrow {
    opacity: 1;
    transform: translateY(3px);
}

/* HE Level Styling */
.dncg-he-level .dncg-level-row-header {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

.dncg-he-arrow .dncg-progression-arrow path {
    stroke: url(#heArrowGradient) !important;
}

/* Partner Level Styling */
.dncg-partner-level .dncg-level-row-header {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
}

/* ========================================
   PARTNER ACCORDION CARDS
   ======================================== */

.dncg-partner-courses-accordion-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.dncg-partner-accordion-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    border: 2px solid rgba(8, 145, 178, 0.2);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.dncg-partner-accordion-card:hover {
    border-color: var(--dncg-teal);
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.15);
}

.dncg-partner-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.dncg-partner-info {
    flex: 1;
}

.dncg-partner-badge {
    display: inline-block;
    background: var(--dncg-teal);
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.dncg-partner-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dncg-primary-blue);
    margin: 0 0 8px 0;
}

.dncg-partner-summary {
    font-size: 1rem;
    color: var(--dncg-gray);
    margin: 0;
}

.dncg-accordion-toggle {
    background: white;
    border: 2px solid var(--dncg-border);
    border-radius: 8px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.dncg-accordion-toggle:hover {
    border-color: var(--dncg-teal);
    background: var(--dncg-light-blue);
}

.toggle-text {
    font-weight: 600;
    color: var(--dncg-dark);
    font-size: 0.9rem;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.dncg-partner-accordion-content {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(8, 145, 178, 0.2);
}

/* Partner Course List */
.dncg-partner-course-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dncg-partner-course-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border: 2px solid var(--dncg-border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--dncg-dark);
    transition: all 0.3s ease;
}

.dncg-partner-course-link:hover {
    border-color: var(--dncg-teal);
    background: var(--dncg-light-blue);
    transform: translateX(5px);
    text-decoration: none;
}

.dncg-course-level-badge {
    background: var(--dncg-teal);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.dncg-course-link-title {
    flex: 1;
    font-weight: 600;
    font-size: 0.95rem;
}

.dncg-external-icon {
    font-size: 1.2rem;
    color: var(--dncg-teal);
    transition: transform 0.3s ease;
}

.dncg-partner-course-link:hover .dncg-external-icon {
    transform: translateX(3px);
}

/* View All Message (for FE partners) */
.dncg-view-all-message {
    text-align: center;
    padding: 20px;
}

.dncg-view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dncg-teal);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dncg-view-all-link:hover {
    color: var(--dncg-primary-blue);
    transform: translateX(5px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .dncg-level-row-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 20px;
    }
    
    .dncg-level-title {
        font-size: 1.4rem;
    }
    
    .dncg-level-courses-grid {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }
    
    .dncg-partner-accordion-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dncg-accordion-toggle {
        width: 100%;
        justify-content: center;
    }
    
    .dncg-level-arrow {
        height: 40px;
        margin: 15px 0;
    }
    
    .dncg-progression-arrow {
        width: 36px;
        height: 36px;
    }
}

/* Remove full card link behavior */
.subject-area-courses-grid .course-card-link,
.dncg-level-courses-grid .course-card-link {
    pointer-events: none;
    cursor: default;
}

/* Make buttons clickable */
.subject-area-courses-grid .course-card-link .quick-apply-btn,
.subject-area-courses-grid .course-card-link .dncg-more-info-btn,
.dncg-level-courses-grid .course-card-link .quick-apply-btn,
.dncg-level-courses-grid .course-card-link .dncg-more-info-btn {
    pointer-events: all;
    cursor: pointer;
}

/* More Info Button - Secondary style */
.dncg-more-info-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background: white;
    color: var(--dncg-primary-blue, #1e3a8a);
    border: 2px solid var(--dncg-border, #e2e8f0);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    text-decoration: none;
}

.dncg-more-info-btn:hover {
    border-color: var(--dncg-primary-blue, #1e3a8a);
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.15);
    color: var(--dncg-primary-blue, #1e3a8a);
    text-decoration: none;
}

.dncg-more-info-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    transition: transform 0.3s ease;
}

.dncg-more-info-btn:hover svg {
    transform: translateX(3px);
}

/* Focus states for accessibility */
.dncg-more-info-btn:focus,
.quick-apply-btn:focus,
.dncg-apply-for-course-btn:focus {
    outline: 2px solid var(--dncg-teal, #0891b2);
    outline-offset: 2px;
}


/* ========================================
   FE COURSE CARDS - CLEAN DESIGN
   For Level Progression Layout
   No icons, simple and professional
   ======================================== */

/* Level Progression Grid */
.dncg-level-courses-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 30px;
}

@media (min-width: 768px) {
    .dncg-level-courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (min-width: 1200px) {
    .dncg-level-courses-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
    }
}

/* Course Card */
.dncg-level-courses-grid .course-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dncg-level-courses-grid .course-card:hover {
    border-color: #0891b2;
    box-shadow: 0 10px 15px -3px rgba(8, 145, 178, 0.1), 
                0 0 0 3px rgba(8, 145, 178, 0.1);
    transform: translateY(-2px);
}

.dncg-level-courses-grid .course-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Level Badge */
.course-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0891b2 0%, #1e3a8a 100%);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
    margin-bottom: 16px;
}

.htq-badge-inline {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Course Title */
.dncg-level-courses-grid .course-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
    line-height: 1.4;
    min-height: 3em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Course Code */
.course-code {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 12px;
}

/* Course Type Tags */
.course-type-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.course-type-tag {
    background: #e0f2fe;
    color: #0c4a6e;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Duration */
.course-duration {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

/* Entry Requirements Section */
.course-requirements-section {
    margin: 16px 0;
    flex-grow: 1;
}

.requirements-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
}

.requirements-toggle:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.requirements-toggle[aria-expanded="true"] {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background: #e0f2fe;
    border-color: #0891b2;
}

.chevron-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: #0891b2;
}

.requirements-toggle[aria-expanded="true"] .chevron-icon {
    transform: rotate(180deg);
}

.requirements-content {
    border: 1px solid #0891b2;
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    padding: 16px;
    background: #f0f9ff;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #475569;
}

.requirements-content p {
    margin: 0;
}

/* Action Buttons Container */
.course-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

/* Apply Now Button (Primary) */
.apply-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #0891b2 0%, #1e3a8a 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.4);
    color: #ffffff;
    text-decoration: none;
}

/* More Info Button (Secondary) */
.more-info-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: #ffffff;
    color: #0891b2;
    border: 2px solid #0891b2;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.more-info-btn:hover {
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.15);
    color: #0369a1;
    text-decoration: none;
}

/* Focus States for Accessibility */
.apply-btn:focus,
.more-info-btn:focus,
.requirements-toggle:focus {
    outline: 2px solid #0891b2;
    outline-offset: 2px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .dncg-level-courses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .dncg-level-courses-grid .course-content {
        padding: 20px;
    }
    
    .dncg-level-courses-grid .course-title {
        font-size: 1rem;
        min-height: auto;
    }
    
    .course-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .apply-btn,
    .more-info-btn {
        width: 100%;
    }
}

/* Remove any old styles that might conflict */
.dncg-level-courses-grid .course-card-link {
    pointer-events: none;
}

.dncg-level-courses-grid .course-image,
.dncg-level-courses-grid .course-image-placeholder,
.dncg-level-courses-grid .placeholder-icon,
.dncg-level-courses-grid .course-subject,
.dncg-level-courses-grid .meta-item svg,
.dncg-level-courses-grid .course-quick-actions {
    display: none !important;
}

.dncg-level-courses-grid .course-meta {
    display: none !important;
}

.dncg-level-courses-grid .dncg-htq-badge-small {
    display: none !important;
}

.dncg-partner-courses-accordion-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /**
 * CSS-Based Progression Arrows
 * Automatically hides arrows for:
 * - Hidden level boxes
 * - Level boxes followed by hidden boxes
 * - The last visible level box
 */

/* Wrapper needs relative positioning for arrow placement */
.dncg-level-progression-container {
    position: relative;
}

/* Level rows need relative positioning and margin for arrow space */
.dncg-level-row {
    position: relative;
    margin-bottom: 68px; /* Space for arrow: 20px top + 48px arrow + buffer */
}

.dncg-level-row:last-of-type {
    margin-bottom: 0; /* No margin on last row */
}

/* Base arrow styling - positioned AFTER/BELOW the level row */
.dncg-level-row::after {
    content: "";
    position: absolute;
    bottom: -68px; /* Position below the box */
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 48px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 48" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient id="arrow" x1="0%" y1="0%" x2="100%" y2="0%"><stop offset="0%" style="stop-color:%230891b2"/><stop offset="100%" style="stop-color:%231e3a8a"/></linearGradient></defs><path d="M12 4 L12 36 M12 36 L6 30 M12 36 L18 30" stroke="url(%23arrow)" stroke-width="3" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: 1;
}

/* RULE 1: Hide arrow if the level box itself is hidden */
.dncg-level-row[style*="display: none"]::after,
.dncg-level-row[style*="display:none"]::after {
    display: none !important;
}

/* RULE 2: Hide arrow if next sibling is hidden */
.dncg-level-row:has(+ .dncg-level-row[style*="display: none"])::after,
.dncg-level-row:has(+ .dncg-level-row[style*="display:none"])::after {
    display: none !important;
}

/* RULE 3: Hide arrow on the last visible level box */
.dncg-level-row:last-of-type::after {
    display: none !important;
}

/* RULE 4: Also handle partner course blocks (they should never have arrows) */
.dncg-he-level::after,
.dncg-partner-level::after {
    display: none !important;
}

/* Fallback for browsers without :has() support (very rare now) */
@supports not (selector(:has(*))) {
    /* Remove all ::after arrows and require the separate arrow elements */
    .dncg-level-row::after {
        display: none !important;
    }
}