/* ============================================================
   CRANE COMPONENTS — STYLES
   Extracted verbatim from wimaccrane.eu/assets/css/style.css
   (source line range 5524-6281). All selectors are prefixed
   .comp-* / .th-* — no collision with any existing new/ CSS.
   The --comp-* variables this file uses were defined in a :root
   block just above the source range (source lines 5513-5521) —
   reproduced here so the sidebar / panels render correctly.
   ============================================================ */
:root {
    --comp-yellow: #ffe900;
    --comp-dark:   #0a0a0a;
    --comp-text:   #333;
    --comp-gray:   #666;
    --comp-light:  #f5f5f5;
    --comp-border: #e8e8e8;
    --comp-white:  #fff;
}

.comp-section {
    background: linear-gradient(180deg, #f8f8f8 0%, #fff 100%);
    padding: 60px 0;
    min-height: 600px;
}

.comp-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    align-items: start;
}

/* ==================== SIDEBAR - HOISTS STYLE ==================== */
.comp-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.comp-sidebar-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--comp-light);
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--comp-dark);
}

.comp-sidebar-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--comp-gray);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--comp-border);
}

/* Sidebar Menu */
.comp-sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.comp-sidebar-menu .comp-menu-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: transparent;
    border: none;
    text-align: left;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--comp-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
}

.comp-sidebar-menu .comp-menu-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--comp-yellow);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.comp-sidebar-menu .comp-menu-btn::after {
    display: none !important;
}

.comp-sidebar-menu .comp-menu-btn:hover {
    background: var(--comp-light);
}

.comp-sidebar-menu .comp-menu-btn.active {
    background: var(--comp-dark);
    color: #fff;
}

.comp-sidebar-menu .comp-menu-btn.active::before {
    transform: scaleY(1);
}

.comp-sidebar-menu .comp-menu-btn .comp-menu-icon {
    width: 20px;
    font-size: 14px;
    color: var(--comp-yellow);
}

.comp-sidebar-menu .comp-menu-btn.active .comp-menu-icon {
    color: var(--comp-yellow);
}

/* Sidebar CTA */
.comp-sidebar-cta {
    margin-top: 30px;
    padding: 25px;
    background: var(--comp-light);
    border: 1px dashed var(--comp-border);
}

.comp-sidebar-cta h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--comp-dark);
    margin-bottom: 10px;
}

.comp-sidebar-cta p {
    font-size: 13px;
    color: var(--comp-gray);
    margin-bottom: 15px;
    line-height: 1.6;
}

.comp-sidebar-cta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--comp-yellow);
    color: var(--comp-dark);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.comp-sidebar-cta a:hover {
    background: var(--comp-dark);
    color: #fff;
}

/* ==================== CONTENT PANELS ==================== */
.comp-content {
    min-width: 0;
}

.comp-panel {
    display: none;
    background: var(--comp-white);
    border-radius: 20px;
    box-shadow: 
        0 10px 40px rgba(0,0,0,0.06),
        0 0 0 1px rgba(0,0,0,0.03);
    animation: panelFadeIn 0.4s ease;
}

.comp-panel.active {
    display: block;
}

@keyframes panelFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(15px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Panel Header */
.comp-panel-head {
    padding: 35px 40px 30px;
    border-bottom: 1px solid var(--comp-border);
    position: relative;
}

.comp-panel-head::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 40px;
    width: 80px;
    height: 4px;
    background: var(--comp-yellow);
    border-radius: 2px;
}

.comp-panel-head h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--comp-dark);
    margin: 0;
}

/* Panel Body */
.comp-panel-body {
    padding: 35px 40px 45px;
}

.comp-panel-body p {
    font-size: 15px;
    line-height: 1.85;
    color: var(--comp-text);
    margin-bottom: 22px;
}

.comp-panel-body p:last-child {
    margin-bottom: 0;
}

/* ==================== MORE LINK ==================== */
.comp-more-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    padding: 16px 28px;
    background: var(--comp-dark);
    color: var(--comp-white);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(10,10,10,0.15);
}

.comp-more-link i {
    color: var(--comp-yellow);
    transition: transform 0.4s ease;
}

.comp-more-link:hover {
    background: var(--comp-yellow);
    color: var(--comp-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,233,0,0.35);
}

.comp-more-link:hover i {
    color: var(--comp-dark);
    transform: translateX(6px);
}

/* ==================== IMAGES ==================== */
.comp-img {
    margin: 28px 0;
}

.comp-img img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.comp-img figcaption {
    margin-top: 12px;
    font-size: 13px;
    color: var(--comp-gray);
    font-style: italic;
}

/* Image Grid - Two Images */
.comp-img-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin: 28px 0;
}

.comp-img-grid figure {
    margin: 0;
}

.comp-img-grid img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
}

.comp-img-grid figure:hover img {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.comp-img-grid figcaption {
    margin-top: 10px;
    font-size: 12px;
    color: var(--comp-gray);
    text-align: center;
}

/* Image Trio - Three Images */
.comp-img-trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 28px 0;
}

.comp-img-trio figure {
    margin: 0;
}

.comp-img-trio img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
}

.comp-img-trio figure:hover img {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.comp-img-trio figcaption {
    margin-top: 10px;
    font-size: 12px;
    color: var(--comp-gray);
    text-align: center;
}

/* ==================== SUBTYPES ==================== */
.comp-subtype {
    margin: 32px 0;
    padding: 28px;
    background: var(--comp-light);
    border-radius: 16px;
    border-left: 5px solid var(--comp-yellow);
}

.comp-subtype h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--comp-dark);
    margin: 0 0 18px;
    padding-left: 18px;
    border-left: 4px solid var(--comp-yellow);
}

/* ==================== TABLE ==================== */
.comp-table {
    margin: 32px 0;
    overflow-x: auto;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid var(--comp-border);
}

.comp-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comp-table thead th {
    background: var(--comp-yellow);
    color: var(--comp-dark);
    padding: 16px 18px;
    text-align: center;
    vertical-align: top;
    font-weight: 700;
    font-size: 14px;
}

.comp-table thead th:first-child {
    text-align: left;
}

.comp-table thead th span {
    display: block;
}

.comp-table .th-main {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 3px;
}

.comp-table .th-sub {
    font-size: 11px;
    font-weight: 400;
    font-style: italic;
    opacity: 0.7;
    margin-bottom: 5px;
}

.comp-table .th-code {
    font-size: 12px;
    font-weight: 600;
}

.comp-table tbody td {
    padding: 14px 18px;
    text-align: center;
    border-bottom: 1px solid var(--comp-border);
    font-size: 14px;
    color: var(--comp-text);
    background: var(--comp-white);
}

.comp-table tbody td:first-child {
    text-align: left;
    font-weight: 600;
}

.comp-table tbody tr:hover td {
    background: #fffde7;
}

.comp-table tbody tr:last-child td {
    border-bottom: none;
}

/* ==================== FEATURES LIST ==================== */
.comp-features {
    margin-top: 32px;
    padding: 28px;
    background: var(--comp-light);
    border-radius: 14px;
}

.comp-features h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--comp-dark);
    margin: 0 0 18px;
}

.comp-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comp-features li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    font-size: 14px;
    color: var(--comp-text);
    line-height: 1.6;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.comp-features li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.comp-features li i {
    color: var(--comp-yellow);
    margin-top: 4px;
    flex-shrink: 0;
}

/* ==================== MOBILE BUTTON ==================== */
.comp-mobile-btn {
    display: none;
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: var(--comp-dark);
    color: var(--comp-white);
    border: none;
    padding: 16px 30px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 
        0 8px 30px rgba(0,0,0,0.3),
        0 0 0 3px rgba(255,233,0,0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: center;
    gap: 10px;
}

.comp-mobile-btn i {
    color: var(--comp-yellow);
    font-size: 16px;
}

.comp-mobile-btn:hover {
    transform: translateX(-50%) translateY(-4px);
    box-shadow: 
        0 15px 45px rgba(0,0,0,0.35),
        0 0 0 3px rgba(255,233,0,0.5);
}

.comp-mobile-btn:active {
    transform: translateX(-50%) translateY(-2px);
}

/* ==================== OVERLAY ==================== */
.comp-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 1998;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.comp-overlay.active {
    display: block;
    opacity: 1;
}

/* ==================== RESPONSIVE - TABLET ==================== */
@media (max-width: 1100px) {
    .comp-wrapper {
        grid-template-columns: 260px 1fr;
        gap: 35px;
    }
    
    .comp-panel-head,
    .comp-panel-body {
        padding-left: 30px;
        padding-right: 30px;
    }
    
    .comp-panel-head::after {
        left: 30px;
    }
    
    .comp-sidebar-menu .comp-menu-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* ==================== RESPONSIVE - MOBILE ==================== */
@media (max-width: 992px) {
    .comp-section {
        padding: 35px 0 110px;
    }
    
    .comp-wrapper {
        grid-template-columns: 1fr;
    }
    
    /* Sidebar as drawer */
    .comp-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 320px;
        max-width: 88%;
        height: 100vh;
        height: 100dvh;
        background: #fff;
        z-index: 1999;
        padding: 30px;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 5px 0 30px rgba(0,0,0,0.2);
    }
    
    .comp-sidebar.active {
        transform: translateX(0);
        box-shadow: 20px 0 60px rgba(0,0,0,0.3);
    }
    
    .comp-sidebar-close {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .comp-mobile-btn {
        display: flex;
    }
    
    .comp-panel {
        border-radius: 16px;
    }
    
    .comp-panel-head {
        padding: 28px 25px 24px;
    }
    
    .comp-panel-head::after {
        left: 25px;
        width: 60px;
    }
    
    .comp-panel-head h2 {
        font-size: 24px;
    }
    
    .comp-panel-body {
        padding: 28px 25px 35px;
    }
    
    .comp-img-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .comp-img-trio {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .comp-img-trio img {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .comp-section {
        padding: 25px 0 100px;
    }
    
    .comp-sidebar {
        width: 100%;
        max-width: 100%;
    }
    
    .comp-sidebar-title {
        font-size: 11px;
    }
    
    .comp-sidebar-menu .comp-menu-btn {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .comp-sidebar-cta {
        margin-top: 25px;
        padding: 20px;
    }
    
    .comp-panel {
        border-radius: 14px;
    }
    
    .comp-panel-head {
        padding: 22px 20px 18px;
    }
    
    .comp-panel-head h2 {
        font-size: 21px;
    }
    
    .comp-panel-body {
        padding: 22px 20px 30px;
    }
    
    .comp-panel-body p {
        font-size: 14px;
    }
    
    .comp-subtype h3 {
        font-size: 17px;
    }
    
    .comp-more-link {
        width: 100%;
        justify-content: center;
        padding: 14px 22px;
        font-size: 13px;
    }
    
    .comp-features {
        padding: 22px 18px;
    }
    
    .comp-features li {
        font-size: 13px;
    }
    
    .comp-table {
        margin-left: -20px;
        margin-right: -20px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .comp-mobile-btn {
        padding: 14px 26px;
        font-size: 13px;
        bottom: 20px;
    }
}

/* ==================== SAFE AREA ==================== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .comp-mobile-btn {
        bottom: calc(20px + env(safe-area-inset-bottom));
    }
    
    .comp-sidebar {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ==================== SCROLLBAR ==================== */
.comp-sidebar::-webkit-scrollbar {
    width: 5px;
}

.comp-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.comp-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
}

.comp-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.2);
}



/* ========================================
   WIMAC HOISTS PAGE - COMPLETE CSS
   ======================================== */

/* ======== VARIABLES ======== */
:root {
    --primary: #ffe900;
    --dark: #0a0a0a;
    --gray: #666;
    --light-bg: #f5f5f5;
    --border: #e5e5e5;
}

/* ======== PAGE HEADER ======== */
