/* =====================================================================================
 * MGT MONTREAL CONOP - Styles
 * By Olivier RAVEAU - 2026-01-10 - Issue #2652
 * Pattern: CONOP Light Theme with MGT Branding (Turquoise #00B8D4 + Blue #0066CC)
 * ===================================================================================== */

/* MGT Montreal Color Palette */
:root {
    /* Primary Colors */
    --mgt-turquoise: #00B8D4;
    --mgt-blue: #0066CC;
    --mgt-dark-blue: #003D7A;

    /* Gradients */
    --mgt-gradient: linear-gradient(135deg, #00B8D4 0%, #0066CC 100%);
    --mgt-gradient-overlay: linear-gradient(135deg, rgba(0, 184, 212, 0.85) 0%, rgba(0, 102, 204, 0.75) 100%);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
}

body {
    background: #f8f9fa;
    min-height: 100vh;
    color: #212529;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Section Scroll Margins */
section[id] {
    scroll-margin-top: 20px;
}

/* ===========================================
   SECTION BASE STYLES
   =========================================== */
section {
    padding: 4rem 0;
}

/* NOTE: Background classes are applied MANUALLY per section file
   - section-white: #ffffff background
   - section-grey: #f8f9fa background
   - hero-section, trip-map: Have custom backgrounds
   DO NOT use nth-child selectors - they break hero section */

.section-white {
    background: #ffffff !important;
}

.section-grey {
    background: #f8f9fa !important;
}

.section-gradient-orange {
    background: linear-gradient(135deg, var(--mgt-turquoise) 0%, var(--mgt-blue) 50%, var(--mgt-dark-blue) 100%);
    color: #ffffff;
}

.section-gradient-orange h2,
.section-gradient-orange h5,
.section-gradient-orange .section-title,
.section-gradient-orange .lead {
    color: #ffffff !important;
}

.section-gradient-orange .text-muted {
    color: rgba(255,255,255,0.85) !important;
}

.section-gradient-blue {
    background: linear-gradient(135deg, #0d6efd 0%, #60a5fa 50%, #93c5fd 100%);
    color: #ffffff;
}

.section-gradient-blue h2,
.section-gradient-blue h5,
.section-gradient-blue .section-title,
.section-gradient-blue .lead {
    color: #ffffff !important;
}

.section-gradient-blue .text-muted {
    color: rgba(255,255,255,0.85) !important;
}

/* Industry Intelligence Section - Light Red to Red Gradient */
.section-gradient-red {
    background: linear-gradient(180deg, #ffeaea 0%, #ffcccc 50%, #ffb3b3 100%) !important;
}

.section-gradient-red .intel-stat-card {
    background: rgba(255,255,255,0.95);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.1);
}

.section-gradient-red .nav-pills .nav-link.active {
    background: linear-gradient(135deg, #dc3545, #e74c3c) !important;
}

.section-gradient-red .alert-info {
    background: rgba(255,255,255,0.9);
    border-color: #dc3545;
}

/* VBS Solution Badges */
.vbs-solution-badge {
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(13, 110, 253, 0.08);
    border: 1px solid rgba(13, 110, 253, 0.2);
    transition: all 0.3s ease;
}

.vbs-solution-badge:hover {
    background: rgba(13, 110, 253, 0.15);
    border-color: rgba(13, 110, 253, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.2);
}

.vbs-solution-badge .badge {
    font-size: 0.7rem;
    padding: 4px 8px;
}

.vbs-solution-badge .small {
    font-weight: 500;
}

/* Source Badges for Research Sources Footer */
.source-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
}

.source-badge:hover {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

.source-badge i {
    font-size: 0.9rem;
}

.source-badge-highlight {
    background: var(--mgt-turquoise);
    border-color: var(--mgt-turquoise);
    color: #ffffff;
}

.source-badge-highlight:hover {
    background: #dc3545;
    border-color: #dc3545;
}

/* Section Spacing for Better Readability */
section,
section.py-5,
section.py-4 {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

.hero-section,
section.hero-section,
section#hero,
section#document-info {
    padding-top: 100px !important;
    padding-bottom: 100px !important;
}

/* Navigation Styles */
.navbar-brand img {
    max-height: 40px;
}

.navbar-nav .nav-link {
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
}

.navbar-nav .nav-link:hover {
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    background: rgba(255,255,255,0.2);
    border-radius: 5px;
    color: #fff !important;
    font-weight: 600;
}

/* Hero Section - TraPac Orange/Blue Gradient with Container Terminal Background */
.hero-section {
    background: linear-gradient(135deg, rgba(253,126,20,0.85) 0%, rgba(13,110,253,0.85) 100%),
                url('../images/mgt-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section h1,
.hero-section h2,
.hero-section p,
.hero-section .lead {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Section padding for fixed navbar */
section[id] {
    scroll-margin-top: 20px;
}

/* Simple hover effects */
.card:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* Ribbon Styles */
.ribbon {
    position: absolute;
    top: 15px;
    right: -5px;
    background: #ffc107;
    color: #212529;
    padding: 5px 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: rotate(45deg);
    transform-origin: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}

.ribbon:before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    border-top: 3px solid #d4a905;
    border-left: 3px solid transparent;
}

.ribbon:after {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    border-top: 3px solid #d4a905;
    border-right: 3px solid transparent;
}

.card-with-ribbon {
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-1px);
    transition: transform 0.3s ease;
}

pre {
    background-color: #e9ecef;
    padding: 10px;
    border-radius: 5px;
    font-size: 12px;
}

/* Section Background Pattern */
.section-white {
    background: #ffffff;
    color: #333333;
}

.section-grey {
    background: #f8f9fa;
    color: #333333;
}

/* Terminal Gallery - Green Gradient (light theme) */
.section-gradient-green {
    background: linear-gradient(135deg, #198754 0%, #4ade80 50%, #86efac 100%);
    color: #ffffff;
}

/* DMS Solution Section - Light Green to Green Gradient */
.section-gradient-green-light {
    background: linear-gradient(180deg, #e8f5e9 0%, #c8e6c9 50%, #a5d6a7 100%) !important;
}

.section-gradient-green h2,
.section-gradient-green h5,
.section-gradient-green .section-title,
.section-gradient-green .lead {
    color: #ffffff !important;
}

.section-gradient-green .text-muted {
    color: rgba(255,255,255,0.85) !important;
}

.section-gradient-green .text-primary {
    color: #ffffff !important;
}

.section-gradient-green .phase-legend-item {
    color: #212529;
}

.section-gradient-green .phase-legend-item .text-muted {
    color: #6c757d !important;
}

.section-gradient-blue {
    background: linear-gradient(135deg, #0d6efd 0%, #60a5fa 50%, #93c5fd 100%);
    color: #ffffff;
}

.section-gradient-blue h2,
.section-gradient-blue h5,
.section-gradient-blue .section-title,
.section-gradient-blue .lead {
    color: #ffffff !important;
}

.section-gradient-blue .text-muted {
    color: rgba(255,255,255,0.85) !important;
}

.section-gradient-blue .text-primary {
    color: #ffffff !important;
}

.section-gradient-blue .alert-info {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
    color: #ffffff;
}

/* Remove container padding for full width */
.container-fluid.main-content {
    padding-left: 0;
    padding-right: 0;
}

/* Card padding fixes */
.card-header {
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

.solution-card .card-header,
.solution-card .card-body {
    padding: 1.25rem;
}

/* Checkbox row styling */
.task-row-completed {
    opacity: 0.5;
    text-decoration: line-through;
}

.task-row-completed td {
    text-decoration: line-through;
}

/* Mermaid diagram styling - White background */
.mermaid-container {
    background-color: white !important;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #dee2e6;
}

.mermaid-container pre.mermaid {
    background-color: white !important;
    border: none;
    margin: 0;
    padding: 0;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #0d6efd;
    color: white;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    font-size: 1.2rem;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: #0b5ed7;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

/* =====================================================================================
 * TEAM ORGANIZATION SECTION - Org Cards
 * ===================================================================================== */

.org-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

/* Fix single-member team cards (Martin) to be 1/3 width, not 100% */
.org-grid-1 {
    justify-content: center;
}

.org-grid-1 .org-card {
    max-width: 350px;
    margin: 0 auto;
}

.org-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #ffffff;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.org-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.org-avatar-img {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    max-width: 60px;
    max-height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid #0d6efd;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.org-avatar-img img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    display: block;
}

/* Avatar colors for fallback initials */
.org-avatar.olivier { background: linear-gradient(135deg, #007bff, #0056b3); }
.org-avatar.deane { background: linear-gradient(135deg, #28a745, #1e7e34); }
.org-avatar.audrey { background: linear-gradient(135deg, #e83e8c, #c21761); }
.org-avatar.paul { background: linear-gradient(135deg, #6f42c1, #59359a); }
.org-avatar.kelly { background: linear-gradient(135deg, var(--mgt-turquoise), var(--mgt-blue)); }
.org-avatar.jody { background: linear-gradient(135deg, #198754, #0f5132); }
.org-avatar.rachid { background: linear-gradient(135deg, #20c997, #16a679); }
.org-avatar.francine { background: linear-gradient(135deg, #d63384, #a02b69); }

.org-info h6 {
    margin: 0 0 0.25rem 0;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.linkedin-icon {
    color: #0077b5;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.linkedin-icon:hover {
    color: #005885;
}

.org-info .role {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.org-info .email {
    font-size: 0.75rem;
    color: #0099ff;
}

.org-info .focus {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Team Company Sections */
.team-company-section {
    margin-bottom: 2rem;
}

/* Centered grids for different card counts */
.org-grid-1,
.org-grid-2,
.org-grid-3 {
    justify-content: center;
}

/* =====================================================================================
 * TERMINAL GALLERY CAROUSEL
 * ===================================================================================== */

#terminalGalleryCarousel {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.gallery-image {
    height: 500px;
    object-fit: cover;
}

/* Custom Caption Overlay */
.carousel-caption-custom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 80px 30px 30px;
    text-align: left;
    color: white;
}

.carousel-caption-custom .caption-badges {
    margin-bottom: 10px;
}

.carousel-caption-custom h5 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.carousel-caption-custom p {
    margin: 0;
}

.carousel-caption-custom .desc {
    display: block;
    font-size: 1rem;
    opacity: 0.9;
}

.carousel-caption-custom .phase-info {
    display: block;
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 5px;
}

/* Phase Badge */
.phase-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

/* Step Badge */
.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 10px;
    color: white;
}

/* Phase Legend */
.phase-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.phase-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid;
}

.phase-legend-item .phase-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Carousel Controls */
#terminalGalleryCarousel .carousel-control-prev,
#terminalGalleryCarousel .carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

#terminalGalleryCarousel .carousel-control-prev { left: 20px; }
#terminalGalleryCarousel .carousel-control-next { right: 20px; }

#terminalGalleryCarousel .carousel-control-prev:hover,
#terminalGalleryCarousel .carousel-control-next:hover {
    opacity: 1;
    background: rgba(0,0,0,0.7);
}

/* Carousel Indicators */
#terminalGalleryCarousel .carousel-indicators {
    bottom: 110px;
}

#terminalGalleryCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 3px;
    opacity: 0.5;
    border: 2px solid white;
}

#terminalGalleryCarousel .carousel-indicators button.active {
    opacity: 1;
}

/* Thumbnail Strip */
.thumbnail-strip {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.thumbnail-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    scroll-behavior: smooth;
}

.thumbnail-scroll::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-scroll::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 3px;
}

.thumbnail-scroll::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 3px;
}

.thumbnail-item {
    position: relative;
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.thumbnail-item:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.thumbnail-item.active {
    opacity: 1;
    border-width: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

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

.thumbnail-item .thumb-phase {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    color: white;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-image {
        height: 300px;
    }

    .carousel-caption-custom {
        padding: 50px 20px 20px;
    }

    .carousel-caption-custom h5 {
        font-size: 1.1rem;
    }

    .carousel-caption-custom .desc {
        font-size: 0.9rem;
    }

    .phase-legend {
        gap: 0.75rem;
    }

    .phase-legend-item {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    #terminalGalleryCarousel .carousel-control-prev,
    #terminalGalleryCarousel .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    #terminalGalleryCarousel .carousel-control-prev { left: 10px; }
    #terminalGalleryCarousel .carousel-control-next { right: 10px; }

    #terminalGalleryCarousel .carousel-indicators {
        bottom: 80px;
    }

    .thumbnail-item {
        width: 60px;
        height: 45px;
    }
}

/* =====================================================================================
 * VBS LINK BUTTONS & ACTION BADGES
 * ===================================================================================== */

/* VBS Link Button - Circular icon linking to VBS module */
.vbs-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0d6efd;
    color: white;
    font-size: 11px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.vbs-link-btn:hover {
    transform: scale(1.15);
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.vbs-link-placeholder {
    display: inline-block;
    width: 24px;
    height: 24px;
}

/* Action Badges - Pill-shaped indicators for expected actions */
.action-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 3px;
    white-space: nowrap;
}

.action-badge i {
    margin-right: 3px;
    font-size: 9px;
}

/* Action Badge Colors */
.badge-photo {
    background: #17a2b8;
    color: white;
}

.badge-note {
    background: #ffc107;
    color: #212529;
}

.badge-ask {
    background: #0d6efd;
    color: white;
}

.badge-observe {
    background: #6c757d;
    color: white;
}

.badge-collect {
    background: #28a745;
    color: white;
}

.badge-demo {
    background: #6f42c1;
    color: white;
}

.badge-verify {
    background: #dc3545;
    color: white;
}

.badge-compare {
    background: #343a40;
    color: white;
}

/* Table cell adjustments for VBS column */
#tasklists-tab-content table th:nth-child(3),
#tasklists-tab-content table td:nth-child(3) {
    text-align: center;
    width: 40px;
}

/* Responsive adjustments for action badges */
@media (max-width: 768px) {
    .action-badge {
        padding: 1px 5px;
        font-size: 9px;
        margin-left: 2px;
    }

    .action-badge i {
        display: none;
    }

    .vbs-link-btn {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
}

/* =====================================================================================
 * PARTICIPANT CARDS (From NorthAm Trip Pattern)
 * ===================================================================================== */

.participant-card {
    border-radius: 16px;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.participant-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Team-specific gradient backgrounds */
.participant-card.team-trapac {
    background: linear-gradient(135deg, #fd7e14 0%, #ffc078 100%);
}

.participant-card.team-dms {
    background: linear-gradient(135deg, #0d6efd 0%, #60a5fa 100%);
}

/* =====================================================================================
 * PAIN POINTS CARDS
 * ===================================================================================== */

.pain-point-card {
    border-radius: 12px;
    border-left: 4px solid;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pain-point-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* =====================================================================================
 * NEXT STEPS CARDS
 * ===================================================================================== */

.next-step-card {
    border-radius: 12px;
    border-left: 4px solid;
    transition: all 0.3s ease;
}

.next-step-card:hover {
    transform: translateX(5px);
}

/* =====================================================================================
 * TIMELINE STYLING
 * ===================================================================================== */

.timeline-item {
    position: relative;
    padding-left: 30px;
    padding-bottom: 20px;
    border-left: 2px solid #dee2e6;
}

.timeline-item:last-child {
    border-left: 2px solid transparent;
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #0d6efd;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #0d6efd;
}

/* =====================================================================================
 * CONFIG DUMP SECTION
 * ===================================================================================== */

.config-dump-section pre {
    background: #1a1a2e;
    color: #e9ecef;
    padding: 1.5rem;
    border-radius: 12px;
    font-size: 0.85rem;
    max-height: 400px;
    overflow-y: auto;
}

.config-dump-section .nav-pills .nav-link {
    color: #495057;
    background: #f8f9fa;
    margin-right: 0.5rem;
    border-radius: 8px;
}

.config-dump-section .nav-pills .nav-link.active {
    background: #0d6efd;
    color: #fff;
}

/* =====================================================================================
 * MAP CONTAINER
 * ===================================================================================== */

#map-canvas {
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.map-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #6c757d;
}

/* =====================================================================================
 * LEAFLET POPUP STYLING
 * ===================================================================================== */

.leaflet-popup-content-wrapper {
    border-radius: 12px;
}

.popup-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.popup-dates,
.popup-client {
    font-size: 0.85rem;
    color: #6c757d;
}

/* =====================================================================================
 * REFERENCE CARDS
 * ===================================================================================== */

.reference-card {
    border-radius: 12px;
    border-left: 4px solid;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reference-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* =====================================================================================
 * VALUE PROPOSITION CARDS
 * ===================================================================================== */

.value-prop-card {
    border-radius: 12px;
    background: #fff;
    transition: all 0.3s ease;
}

.value-prop-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.value-prop-card .icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

/* =====================================================================================
 * INDUSTRY INTELLIGENCE SECTION
 * ===================================================================================== */

/* Intel Stat Cards - Big Numbers */
.intel-stat-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.intel-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.intel-stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0d6efd;
    line-height: 1.2;
}

.intel-stat-card .stat-value small {
    font-size: 1rem;
    margin-left: 5px;
    opacity: 0.7;
}

.intel-stat-card .stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* Intel Tab Pills */
#intelTabs {
    gap: 0.5rem;
}

#intelTabs .nav-link {
    border-radius: 20px;
    padding: 10px 20px;
    color: #495057;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

#intelTabs .nav-link:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

#intelTabs .nav-link.active {
    background: linear-gradient(135deg, #fd7e14, #0d6efd);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* Intel Top Cards */
.intel-top-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.intel-top-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Intel Accordion Items */
.intel-accordion-item {
    border-radius: 8px !important;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.intel-accordion-item .accordion-button {
    font-weight: 500;
}

.intel-accordion-item .accordion-button:not(.collapsed) {
    background-color: rgba(13, 110, 253, 0.05);
    color: #0d6efd;
}

/* Source Links in Accordion */
.source-link {
    color: #6c757d;
    transition: color 0.2s ease;
    font-size: 0.9rem;
}

.source-link:hover {
    color: #0d6efd;
}

/* Intel Testimonials */
.intel-testimonials {
    border-radius: 12px;
    overflow: hidden;
}

.intel-testimonials .card-header {
    font-weight: 600;
}

.testimonial-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

.testimonial-attribution {
    border-top: 1px solid #eee;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

/* Intel Detail Cards */
.intel-detail-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.intel-detail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.intel-detail-card .card-header {
    font-size: 0.85rem;
}

.intel-detail-card .card-body {
    font-size: 0.85rem;
}

/* Pain Points Accordion Styling */
#painPointsAccordion .accordion-item {
    border-radius: 8px !important;
    overflow: hidden;
}

#painPointsAccordion .accordion-button {
    font-weight: 500;
}

#painPointsAccordion .accordion-button:not(.collapsed) {
    box-shadow: none;
}

#painPointsAccordion .accordion-button::after {
    transition: transform 0.2s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .intel-stat-card .stat-value {
        font-size: 1.8rem;
    }

    .intel-stat-card .stat-value small {
        font-size: 0.8rem;
    }

    #intelTabs .nav-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    #intelTabs .nav-link i {
        display: none;
    }
}
/* ============================================================================
   ALBERTSCHOOL CYBERSECURITY COURSE - SECTION STYLES
   Adapted from Unit 01 HTML source for light theme Bootstrap 5 integration
   Date: 2026-02-06
   ============================================================================ */

/* Content Sections */
.sec {
    padding: 6px 2px 2px;
}
.sec p {
    margin: 10px 0;
    color: #495057;
    line-height: 1.7;
}
.sec ul {
    margin: 8px 0 0 18px;
    color: #495057;
}
.sec li {
    margin: 6px 0;
    line-height: 1.55;
}

/* Callout Boxes */
.callout {
    margin: 12px 0;
    padding: 16px 18px;
    border-radius: 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.callout-title {
    font-weight: 700;
    margin-bottom: 10px;
    color: #212529;
    font-size: 1.05rem;
}
.callout.info {
    background: rgba(13, 202, 240, 0.08);
    border-color: rgba(13, 202, 240, 0.25);
}
.callout.info .callout-title {
    color: #0a6ebd;
}
.callout.small {
    font-size: 0.9rem;
}
.callout p {
    margin: 8px 0;
    color: #495057;
    line-height: 1.6;
}
.callout ul {
    margin: 10px 0 0 20px;
    color: #495057;
}
.callout li {
    margin: 4px 0;
    line-height: 1.5;
}

/* Two-Column Layout */
.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}
@media (max-width: 768px) {
    .two-col {
        grid-template-columns: 1fr;
    }
}

/* Panel Boxes */
.panel {
    padding: 16px;
    border-radius: 12px;
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.15);
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.panel h4 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    font-weight: 700;
    color: #667eea;
}
.panel p {
    margin: 8px 0;
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.6;
}
.panel ul {
    margin: 10px 0 0 20px;
    font-size: 0.9rem;
    color: #495057;
}
.panel li {
    margin: 4px 0;
    line-height: 1.5;
}

/* Mini Tool Sections */
.mini-tool {
    margin-top: 16px;
    padding: 16px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.06);
    border: 1px solid rgba(56, 189, 248, 0.2);
}
.mini-tool-title {
    font-weight: 700;
    margin-bottom: 12px;
    color: #212529;
    font-size: 1rem;
}
.mini-tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
@media (max-width: 768px) {
    .mini-tool-grid {
        grid-template-columns: 1fr;
    }
}
.mini-tool-out {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #212529;
    font-weight: 600;
}

/* Details/Summary (Expandable Sections) */
details {
    border-radius: 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 14px 16px;
    margin-top: 12px;
}
details + details {
    margin-top: 12px;
}
summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: #212529;
    padding: 4px 0;
}
summary::-webkit-details-marker {
    display: none;
}
summary .chev {
    margin-left: auto;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    border: 1px solid #dee2e6;
    background: #ffffff;
    transition: transform 0.2s ease;
    font-weight: bold;
    color: #667eea;
}
details[open] summary .chev {
    transform: rotate(90deg);
}

/* Interactive Elements */
.interactive-title {
    font-weight: 700;
    margin-bottom: 10px;
    color: #212529;
    font-size: 1.1rem;
}
.threats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 12px;
}
@media (max-width: 768px) {
    .threats {
        grid-template-columns: 1fr;
    }
}
.tlist {
    display: grid;
    gap: 10px;
}
.tbtn {
    text-align: left;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    color: #212529;
}
.tbtn:hover {
    background: rgba(102, 126, 234, 0.08);
    border-color: rgba(102, 126, 234, 0.25);
    transform: translateX(4px);
}
.tbtn.active {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.4);
    color: #667eea;
}
.tdetails {
    padding: 16px;
    border-radius: 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}
.tdetails h4 {
    margin: 0 0 12px 0;
    color: #667eea;
    font-weight: 700;
}
.tdetails p {
    margin: 8px 0;
    color: #495057;
    line-height: 1.6;
}
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    font-size: 0.8rem;
    color: #667eea;
    font-weight: 600;
}

/* Flashcard Grid */
.flashgrid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
@media (max-width: 992px) {
    .flashgrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 576px) {
    .flashgrid {
        grid-template-columns: 1fr;
    }
}
.flash {
    perspective: 1000px;
    min-height: 140px;
}
.flash-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
    border-radius: 12px;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}
.flash.flipped .flash-inner {
    transform: rotateY(180deg);
}
.face {
    position: absolute;
    inset: 0;
    padding: 16px;
    border-radius: 12px;
    backface-visibility: hidden;
    border: 1px solid #dee2e6;
    background: #ffffff;
}
.front .term {
    font-weight: 700;
    letter-spacing: 0.2px;
    font-size: 1.05rem;
    color: #212529;
}
.front .hint {
    margin-top: 10px;
    color: #6c757d;
    font-size: 0.85rem;
}
.back {
    transform: rotateY(180deg);
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.3);
}
.back .def {
    font-size: 0.9rem;
    color: #212529;
    line-height: 1.6;
}

/* Form Elements */
label {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0 0 6px;
    font-weight: 600;
}
select, input[type="range"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    background: #ffffff;
    color: #212529;
    outline: none;
    transition: all 0.2s ease;
}
select:focus, input[type="range"]:focus {
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Utility Classes */
.muted {
    color: #6c757d;
}
.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Section Alternating Backgrounds */
.section-white {
    background: #ffffff;
}
.section-grey {
    background: #f8f9fa;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .sec p, .callout p, .panel p {
        font-size: 0.95rem;
    }
    .callout-title, .mini-tool-title {
        font-size: 1rem;
    }
}

/* ============================================================================
   ADVANCED UI/UX ENHANCEMENTS - Icons, Badges, Colors
   Date: 2026-02-06
   ============================================================================ */

/* Icon Badges */
.icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(102,126,234,0.15), rgba(118,75,162,0.15));
    border: 2px solid rgba(102,126,234,0.3);
    margin-right: 12px;
    box-shadow: 0 4px 8px rgba(102,126,234,0.2);
}
.icon-badge i {
    font-size: 1.2rem;
    color: #667eea;
}

/* Concept Badges */
.badge-concept {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.badge-threat {
    background: linear-gradient(135deg, #eb3349, #f45c43);
    color: white;
}
.badge-defense {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: white;
}
.badge-tech {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}
.badge-framework {
    background: linear-gradient(135deg, #4776e6, #8e54e9);
    color: white;
}
.badge-risk {
    background: linear-gradient(135deg, #f7971e, #ffd200);
    color: white;
}
.badge-info {
    background: linear-gradient(135deg, #38BDF8, #0ea5e9);
    color: white;
}

/* Enhanced Callouts with Icons */
.callout-icon {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.callout-icon-box {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.callout-icon-box.info {
    background: linear-gradient(135deg, #38BDF8, #0ea5e9);
    color: white;
}
.callout-icon-box.warning {
    background: linear-gradient(135deg, #f7971e, #ffd200);
    color: white;
}
.callout-icon-box.success {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: white;
}
.callout-icon-box.danger {
    background: linear-gradient(135deg, #eb3349, #f45c43);
    color: white;
}

/* Enhanced Lists with Icons */
.enhanced-list {
    list-style: none;
    padding-left: 0;
}
.enhanced-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 12px 0;
    padding: 12px;
    border-radius: 8px;
    background: rgba(102,126,234,0.03);
    border-left: 4px solid rgba(102,126,234,0.3);
    transition: all 0.3s ease;
}
.enhanced-list li:hover {
    background: rgba(102,126,234,0.08);
    transform: translateX(4px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}
.enhanced-list li i {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 0.85rem;
}

/* Colorful Panels */
.panel-purple {
    background: linear-gradient(135deg, rgba(102,126,234,0.08), rgba(118,75,162,0.08));
    border-color: rgba(102,126,234,0.3);
}
.panel-blue {
    background: linear-gradient(135deg, rgba(56,189,248,0.08), rgba(14,165,233,0.08));
    border-color: rgba(56,189,248,0.3);
}
.panel-green {
    background: linear-gradient(135deg, rgba(17,153,142,0.08), rgba(56,239,125,0.08));
    border-color: rgba(17,153,142,0.3);
}
.panel-orange {
    background: linear-gradient(135deg, rgba(247,151,30,0.08), rgba(255,210,0,0.08));
    border-color: rgba(247,151,30,0.3);
}
.panel-red {
    background: linear-gradient(135deg, rgba(235,51,73,0.08), rgba(244,92,67,0.08));
    border-color: rgba(235,51,73,0.3);
}

/* Stat Cards */
.stat-card {
    padding: 20px;
    border-radius: 12px;
    background: white;
    border: 2px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.stat-card .stat-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 8px;
}
.stat-card .stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 600;
}

/* Timeline Items */
.timeline-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}
.timeline-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.timeline-content {
    flex: 1;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid;
}

/* Key Terms Highlight */
.key-term {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(102,126,234,0.12);
    color: #667eea;
    font-weight: 600;
    margin: 0 2px;
}

/* Section Headers with Gradient */
.section-header-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 20px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 8px 24px rgba(102,126,234,0.3);
}
.section-header-gradient h2 {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.section-header-gradient p {
    color: rgba(255,255,255,0.95) !important;
}
