body.roadmap-body .wp-block-group,
body.roadmap-body main,
body.roadmap-body .wp-block-post-content,
.tcr-wrapper .wp-block-group,
.tcr-wrapper main,
.wp-block-post-content:has(.tcr-wrapper) {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.roadmap-body .tcr-wrapper,
.tcr-wrapper {
    width: 100%;
    margin: 0 auto !important;
    padding: 0 !important;
    overflow-x: hidden;
}

/* Also target the parent entry-content if it exists */
.entry-content:has(.tcr-wrapper),
.wp-block-post-content:has(.tcr-wrapper) {
    max-width: none !important;
    padding: 0 !important;
}

.tcr-content-area { 
    max-width: 1280px; 
    margin-left: auto; 
    margin-right: auto; 
    padding-left: 1.5rem; 
    padding-right: 1.5rem;
}

/* Card Hover Effects */
.card {
    transition: all 0.3s ease;
    background-color: white; 
    border-radius: 0.75rem; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06); 
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

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

/* Remove focus outline on mouse click, keep for keyboard navigation - for certification cards */
.tcr-card-grid a:focus:not(:focus-visible) {
    outline: none;
}

.tcr-card-grid a:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
    border-radius: 0.75rem;
}

/* Also target career path cards if they're links */
.tcr-card-grid .card:focus:not(:focus-visible) {
    outline: none;
}

.tcr-card-grid .card:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

/* Tab Buttons */
.tab-button {
    transition: all 0.2s ease;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 15px;
    font-weight: 600;
    background-color: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    cursor: pointer;
}

.tab-button:hover {
    background-color: #e5e7eb;
}

.tab-button.active {
    background: linear-gradient(135deg, #80A1BA 0%, #578FCA 100%);
    color: white;
}

/* Hero Section */
.hero-gradient {
    background: linear-gradient(135deg, #074799 10%, #D1F8EF 90%);
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.hero-gradient .tcr-stat-box {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(4px);
    color: white;
}

.hero-gradient h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-gradient p {
    font-size: 1.25rem;
    color: #eff6ff;
    margin-bottom: 2rem;
}

.hero-gradient .flex {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-gradient .text-3xl {
    font-size: 1.875rem;
    font-weight: 700;
}

.hero-gradient .text-sm {
    font-size: 0.875rem;
    color: #eff6ff;
}

/* Icon Badge */
.icon-badge {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 28px;
    flex-shrink: 0;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* Roadmap Container */
.roadmap-container {
    display: flex;
    min-height: 100vh;
    max-width: 1280px;
    margin: 0 auto;
}

/* Left Panel (Sidebar) */
.roadmap-left-panel {
    width: 30%;
    flex-shrink: 0;
    background-color: white;
    border-right: 1px solid #e2e8f0;
    padding-left: 2rem;
    padding-right: 2rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Roadmap Step - FIXED VERSION */
.roadmap-step {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 0;
    cursor: pointer;
    min-height: 80px;
}

/* Vertical connecting line - FIXED */
.roadmap-step:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0.5rem;
    height: calc(100% + 0px);
    width: 2px;
    background-color: #cbd5e1;
    z-index: 1;
}

/* Roadmap Dot - CENTERED ON CARD */
.roadmap-dot {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid white;
    z-index: 10;
    transition: all 0.2s ease;
}

.roadmap-dot.active {
    background-color: #33A1E0;
}

.roadmap-dot.completed {
    background-color: #10b981;
}

.roadmap-dot.bg-gray-400 {
    background-color: #9ca3af;
}

/* Main Content Area */
.roadmap-main-content {
    flex-grow: 1;
    padding: 2rem;
    background-color: #f7fafc;
    min-width: 0;
}

/* Detail Card */
.detail-card {
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background-color: #f9fafb;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
}

/* Body Overflow */
.roadmap-body {
    overflow-x: hidden;
}

/* Progress Bar Animation */
#progress-bar {
    transition: width 0.7s ease;
}

/* Subgoal Checkbox Styling */
.subgoal-checkbox {
    cursor: pointer;
}

.subgoal-checkbox:checked + div label {
    text-decoration: none;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .roadmap-container {
        flex-direction: column;
    }
    
    .roadmap-left-panel {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .roadmap-main-content {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .icon-badge {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .roadmap-left-panel {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .roadmap-main-content {
        padding: 1rem;
    }
}

/* Search Input Styling */
input[type="text"].tcr-search {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 14px;
}

input[type="text"].tcr-search:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Button Styling */
.tcr-button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tcr-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tcr-button:active {
    transform: translateY(0);
}

/* Loading State */
.tcr-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s ease-in-out infinite;
}

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

/* Empty State */
.tcr-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.tcr-empty-state svg {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    opacity: 0.5;
}

/* Resource Links */
.tcr-resource-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #bfdbfe;
    border-radius: 9999px;
    color: #33A1E0;
    font-weight: 600;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tcr-resource-link:hover {
    background: #dbeafe;
    color: #1e40af;
    transform: translateY(-1px);
}

/* Milestone Container Fix for Checkbox Click Area */
.tcr-milestone {
    position: relative;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

/* Make the label the clickable area */
.tcr-milestone label {
    display: flex;
    width: 100%;
    cursor: pointer;
    align-items: flex-start;
}

.tcr-milestone .tcr-subgoal-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
    accent-color: #bfdbce;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

/* Remove ALL hover effects and background changes */
.tcr-milestone .tcr-subgoal-checkbox:hover,
.tcr-milestone:hover .tcr-subgoal-checkbox {
    transform: none;
    filter: none;
    box-shadow: none;
    background-color: white;
}

/* Ensure checked state always shows light green */
.tcr-milestone .tcr-subgoal-checkbox:checked,
.tcr-milestone:hover .tcr-subgoal-checkbox:checked {
    background-color: #10b981;
}

/* Reset any unwanted background on the checkbox itself */
.tcr-milestone .tcr-subgoal-checkbox {
    background-color: white;
}

/* Ensure all elements inside the link container have proper z-index */
.tcr-milestone label > div {
    position: relative;
    z-index: 3;
}

/* The links themselves must have a higher z-index */
.tcr-resource-link {
    position: relative;
    z-index: 10;
}

/* Navigation Buttons */
.tcr-nav-button {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tcr-nav-button:hover:not(:disabled) {
    color: #ea580c !important;
}

.tcr-nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Next button default color */
.tcr-next-module {
    color: #FFA726;
}

.tcr-next-module:hover:not(:disabled) {
    color: #ea580c;
}

/* Progress Text */
.tcr-progress-text {
    color: #33A1E0;
    font-weight: 600;
}

/* Module Step Button */
.tcr-module-button {
    width: 100%;
    text-align: left;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    background: transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-bottom: 0;
}

.roadmap-step button {
    width: 100%;
    text-align: left;
    padding: 0.75rem;
}

.roadmap-step button .text-xs {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
}

.roadmap-step button .text-base {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.roadmap-step button .text-sm {
    font-size: 0.875rem;
    color: #4b5563;
}

.tcr-module-button:hover {
    background: #f3f4f6;
}

.tcr-module-button.active {
    background: #eff6ff;
    border-color: #bfdbfe;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Card Grid - Fixed version */
.tcr-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 1.5rem;
    width: 100%;
    padding: 2rem 0;
}

.tcr-card-grid > .card,
.tcr-card-certs > a {
    display: flex; 
    flex-direction: column;
    height: 100%; 
    width: 100%;
}

.tcr-card-certs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    padding: 2rem 0;
    align-items: start;
}

@media (max-width: 768px) {
    .tcr-card-grid,
    .tcr-card-certs {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tcr-card-grid .card,
    .tcr-card-certs .card {
        max-width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .tcr-card-grid,
    .tcr-card-certs {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .tcr-card-grid,
    .tcr-card-certs {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tcr-card-certs .card {
        width: 80%;   
    }
}

/* Skill Tags */
.tcr-skill-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #e5e7eb;
    color: #374151;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Back Button */
.tcr-back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tcr-back-button:hover {
    color: #3b82f6;
    text-decoration: underline;
}

/* WordPress Admin Bar Compatibility */
body.admin-bar .roadmap-left-panel {
    top: 32px;
    height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
    body.admin-bar .roadmap-left-panel {
        top: 46px;
        height: calc(100vh - 46px);
    }
}

/* Material Icons alignment */
.material-icons {
    vertical-align: middle;
}

/* Print Styles */
@media print {
    .roadmap-left-panel,
    .tcr-nav-button,
    .tcr-back-button {
        display: none;
    }
    
    .roadmap-container {
        flex-direction: column;
    }
    
    .roadmap-main-content {
        width: 100%;
    }
}

/* NEW: Centralized Component Styling */
/* Module Title Styling */
.tcr-module-title {
    font-size: 1.5rem !important;
    font-weight: 900 !important;
    color: #36454F !important;
    margin-bottom: 0.5rem !important;
}

/* Module Completion Badge - GRAY VERSION */
.tcr-module-completion {
    padding: 0.25rem 0.75rem;
    background-color: #e5e7eb;
    color: #4b5563;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    border: solid 0.0001rem #C0C0C0;
    display: inline-block;
}

/* Subgoal Title Styling */
.tcr-subgoal-title {
    font-weight: 700 !important;
    color: #36454F !important;
    font-size: 1rem !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

/* Mark Complete Button */
.tcr-mark-complete {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.2s ease;
    background-color: #60a5fa;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 1.2rem;
}

.tcr-mark-complete:hover {
    background-color: #3b82f6;
}