@charset "UTF-8";

/* UI/UX EXPERT FIX: Dynamic CSS Variables for Responsive Layout */
:root {
    --sidebar-width: 80px; /* Default for Desktop */
    --corp-blue: #0f172a;
    --corp-light-blue: #38bdf8;
}

/* ==========================================
   UI/UX EXPERT FIX: GLOBAL THICK SCROLLBARS FOR MOUSE USERS (DESKTOP/LAPTOP)
   ========================================== */
@media (hover: hover) and (pointer: fine) {
    ::-webkit-scrollbar { width: 14px; height: 14px; }
    ::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 8px; }
    ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; border: 3px solid #f1f5f9; }
    ::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
    .corporate-right-sidebar { scrollbar-width: auto; -ms-overflow-style: auto; }
    .corporate-right-sidebar::-webkit-scrollbar { display: block; }
}

@media (hover: none) and (pointer: coarse) {
    .corporate-right-sidebar::-webkit-scrollbar { display: none; }
    .corporate-right-sidebar { scrollbar-width: none; -ms-overflow-style: none; }
}

* { box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; margin: 0; padding: 0; }

body { 
    background: #f8fafc; display: flex; flex-direction: column; 
    height: 100dvh; width: 100vw; overflow: hidden; 
}

.top-layout-wrapper { display: flex; width: 100%; height: 80dvh; }

/* FIX: STRICT WIDTH & Z-INDEX ISOLATION TO PROTECT RIGHT SIDEBAR */
.left-section-wrapper {
    width: calc(100% - var(--sidebar-width));
    max-width: calc(100% - var(--sidebar-width));
    flex-shrink: 0; display: flex; flex-direction: column; transition: width 0.3s ease;
    position: relative; z-index: 1; overflow: hidden;
}

.corporate-top-header {
    height: 15dvh; width: 100%; background: #ffffff;
    border-bottom: 1px solid #e2e8f0; border-right: 1px solid #e2e8f0;
    display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
}
.header-logo { display: flex; align-items: center; gap: 10px; }
.header-logo h2 { font-size: 1.5rem; color: #0f172a; }
.status-badge { background: #dcfce7; color: #166534; padding: 5px 12px; border-radius: 20px; font-weight: bold; font-size: 0.85rem; }

main.corporate-website-content {
    height: 65dvh; width: 100%; overflow-y: auto; scroll-behavior: smooth; 
    background: #ffffff; display: flex; flex-direction: column; align-items: center;
    justify-content: flex-start; padding: 0 20px 0 20px; text-align: center;
    border-right: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; position: relative;
}

.corporate-website-content h1 {
    color: #0f172a; font-size: 3rem; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 16px; flex-shrink: 0;
    margin-top: 20px;
}
.corporate-website-content p.desc-text {
    color: #475569; font-size: 1.15rem; max-width: 600px; line-height: 1.7; margin-bottom: 15px; flex-shrink: 0;
}

/* ==========================================
   TRUE 3D COVERFLOW SLIDER (BASE STRUCTURE)
   ========================================== */
.corp-slider-section {
    width: 100%; max-width: 1400px; margin: 0 auto 30px auto; position: relative; flex-shrink: 0;
    z-index: 10; 
}

.corp-slider-wrapper {
    width: 100%; position: relative; perspective: 1200px;
    border-radius: 0 0 16px 16px; background: #f1f5f9; box-shadow: 0 15px 30px -15px rgba(15, 23, 42, 0.1);
    overflow: hidden; 
    touch-action: pan-y;
}

.corp-slider-preloader {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #ffffff;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    z-index: 50; transition: opacity 0.5s ease, visibility 0.5s;
}
.corp-spinner {
    width: 50px; height: 50px; border: 4px solid #e2e8f0; border-top: 4px solid var(--corp-light-blue);
    border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.corp-slides-container {
    position: relative; width: 100%; 
    transform-style: preserve-3d;
    pointer-events: none;
}

.corp-slide {
    position: absolute; 
    display: flex; flex-direction: column; opacity: 0; pointer-events: none;
    transition: all 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: #fff; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    overflow: hidden;
    transform: translateX(0) translateZ(-400px) rotateY(0deg);
    z-index: 1;
}

.corp-slide.active {
    opacity: 1; 
    pointer-events: auto !important;
    z-index: 10 !important;
    transform: translateX(0) translateZ(0px) rotateY(0deg); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.corp-slide.prev-slide { opacity: 0.7; z-index: 5; transform: translateX(-55%) translateZ(-200px) rotateY(35deg); pointer-events: none; }
.corp-slide.next-slide { opacity: 0.7; z-index: 5; transform: translateX(55%) translateZ(-200px) rotateY(-35deg); pointer-events: none; }

.corp-img-wrapper {
    display: flex; flex: 1 1 auto; min-height: 0; 
    width: 100%; justify-content: center; align-items: center;
    background: #f8fafc; border-bottom: 1px solid #e2e8f0; cursor: zoom-in;
    overflow: hidden;
}
.corp-slide-img {
    width: 100%; height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.corp-slide-content {
    width: 100%; display: flex; flex-direction: column; justify-content: center; 
    align-items: center; text-align: center; background: #ffffff; 
    padding: 12px 10px; flex-shrink: 0;
}
.corp-slide-content h3 { font-size: 1.1rem; color: var(--corp-blue); margin-bottom: 4px; font-weight: 700; line-height: 1.2; }
.corp-slide-content p { font-size: 0.85rem !important; color: #64748b !important; margin: 0 !important; line-height: 1.3 !important; }

.corp-slider-controls {
    position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 15px; z-index: 20; background: rgba(255, 255, 255, 0.95);
    padding: 8px 20px; border-radius: 40px; box-shadow: 0 10px 25px rgba(0,0,0,0.15); backdrop-filter: blur(5px);
    pointer-events: auto;
}
.corp-slider-btn { background: none; border: none; cursor: pointer; color: var(--corp-blue); display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; pointer-events: auto; }
.corp-slider-btn:hover { color: var(--corp-light-blue); transform: scale(1.2); }
.corp-slider-btn svg { width: 22px; height: 22px; fill: currentColor; }

/* ==========================================
   CORPORATE COLUMNS BELOW SLIDER
   ========================================== */
.corp-features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px;
    width: 100%; max-width: 1400px; margin: 0 auto 40px auto; flex-shrink: 0;
}
.corp-feature-card {
    background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 30px;
    text-align: left; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); position: relative; overflow: hidden; cursor: pointer;
}
.corp-feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
    background: var(--corp-light-blue); transform: scaleY(0); transition: transform 0.4s ease; transform-origin: bottom;
}
.corp-feature-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px -10px rgba(15, 23, 42, 0.1); border-color: #cbd5e1; }
.corp-feature-card:hover::before { transform: scaleY(1); transform-origin: top; }
.corp-feature-icon {
    width: 50px; height: 50px; background: #f1f5f9; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; color: var(--corp-light-blue); transition: all 0.3s ease;
}
.corp-feature-card:hover .corp-feature-icon { background: var(--corp-light-blue); color: #ffffff; transform: rotateY(180deg); }
.corp-feature-card h4 { font-size: 1.25rem; color: var(--corp-blue); margin-bottom: 10px; }
.corp-feature-card p { font-size: 0.95rem !important; color: #64748b !important; line-height: 1.6 !important; }

/* --- RIGHT SIDEBAR --- */
.corporate-right-sidebar {
    width: var(--sidebar-width); flex-shrink: 0; height: 80dvh; background: #f1f5f9;
    display: flex; flex-direction: column; align-items: center; padding-top: 20px; gap: 20px;
    border-bottom: 1px solid #e2e8f0; overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth; transition: width 0.3s ease;
    position: relative; 
    z-index: 9999; 
    pointer-events: auto !important;
}
.sidebar-item { display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; padding: 10px; border-radius: 8px; transition: 0.3s; z-index: 10000; position: relative;}
.sidebar-item:hover { background: #e2e8f0; }
.sidebar-item small { margin-top: 5px; font-size: 0.75rem; color: #475569; font-weight: 600; text-align: center; }

/* --- 20% CHATBOT AREA --- */
aside.corporate-chatbot-bar {
    flex: 0 0 20dvh; height: 20dvh; width: 100vw; background: #f1f5f9; position: relative; z-index: 10000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column;
}
aside.corporate-chatbot-bar.fullscreen-active { position: fixed; top: 0; left: 0; width: 100%; height: 100dvh; max-height: 100dvh; flex: 0 0 100dvh; z-index: 99999; }

/* CORPORATE MAIN FOOTER STYLES */
.corporate-main-footer {
    width: calc(100% + 40px); margin-left: -20px; margin-right: -20px; margin-top: auto; 
    padding: 15px 30px; background: #ffffff; border-top: 1px solid #e2e8f0;
    display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; color: #64748b; flex-shrink: 0; 
}
.footer-copyright { display: flex; align-items: center; gap: 8px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #475569; text-decoration: none; font-weight: 600; transition: color 0.3s ease; }
.footer-links a:hover { color: #0f172a; }

/* =========================================================================
   [BUG FIX & RWD] FULLSCREEN IMAGE OVERLAY UI & NAVIGATION (100% PERFECT FIT)
   ========================================================================= */
#corp-fullscreen-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(15, 23, 42, 0.95); 
    z-index: 2147483647 !important; /* EXTREME Z-INDEX */
    align-items: center; justify-content: center; 
    opacity: 0; transition: opacity 0.3s ease; backdrop-filter: blur(4px);
}
#corp-fullscreen-overlay.show-active { opacity: 1; }
.fullscreen-content-wrapper {
    display: flex; align-items: center; justify-content: center; gap: 30px;
    width: 100%; height: 100%; padding: 40px; position: relative;
}
.fs-nav-btn {
    background: rgba(255,255,255,0.1); border: 2px solid rgba(255,255,255,0.3); border-radius: 50%;
    width: 60px; height: 60px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #fff; transition: all 0.3s ease; flex-shrink: 0; z-index: 1000000;
}
.fs-nav-btn:hover { background: var(--corp-light-blue); transform: scale(1.1); border-color: var(--corp-light-blue); }
.fs-nav-btn svg { width: 35px; height: 35px; fill: currentColor; }

.mobile-only { display: none; }
.desktop-only { display: flex; }

#corp-fullscreen-overlay img {
    object-fit: contain;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); border-radius: 8px;
    transform: scale(0.85); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: zoom-out; 
}
#corp-fullscreen-overlay.show-active img { transform: scale(1); }
.corp-close-zoom-btn {
    position: absolute; top: 25px; right: 35px; color: #ffffff;
    font-size: 2.5rem; font-weight: bold; cursor: pointer;
    transition: all 0.3s ease; z-index: 9999999;
    width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.1); border-radius: 50%;
}
.corp-close-zoom-btn:hover { background: #ef4444; transform: rotate(90deg); }

/* =========================================================================
   4-DEVICE SEPARATE RESPONSIVE CONFIGURATIONS (Desktop, Laptop, Tablet, Mobile)
   ========================================================================= */

/* 1. DESKTOP SCREENS (>1200px) */
@media (min-width: 1201px) {
    :root { --sidebar-width: 80px; }
    .corporate-website-content { padding: 0 40px; }
    .corporate-website-content h1 { font-size: 3rem; }
    
    /* Slider specifics */
    .corp-slider-wrapper { min-height: 350px; }
    .corp-slides-container { height: 350px; }
    .corp-slide { width: 50%; left: 25%; top: 15px; height: calc(100% - 65px); }
    
    /* Fullscreen zoom specifics */
    #corp-fullscreen-overlay img { max-width: calc(100vw - 220px); max-height: 85vh; }
}

/* 2. LAPTOP SCREENS (1025px to 1200px) */
@media (min-width: 1025px) and (max-width: 1200px) {
    :root { --sidebar-width: 70px; }
    .corporate-website-content { padding: 0 30px; }
    .corporate-website-content h1 { font-size: 2.75rem; }
    
    /* Slider specifics */
    .corp-slider-wrapper { min-height: 300px; } 
    .corp-slides-container { height: 300px; }
    .corp-slide { width: 55%; left: 22.5%; top: 15px; height: calc(100% - 65px); }
    
    /* Fullscreen zoom specifics */
    #corp-fullscreen-overlay img { max-width: calc(100vw - 180px); max-height: 80vh; }
}

/* 3. TABLET SCREENS (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    :root { --sidebar-width: 65px; }
    .corporate-website-content { padding: 0 25px; }
    .corporate-website-content h1 { font-size: 2.5rem; }
    .corporate-website-content p.desc-text { font-size: 1.1rem; }
    
    /* Slider specifics */
    .corp-slider-wrapper { min-height: 280px; }
    .corp-slides-container { height: 280px; }
    .corp-slide { width: 65%; left: 17.5%; top: 15px; height: calc(100% - 60px); }
    .corp-slide.prev-slide { transform: translateX(-45%) translateZ(-200px) rotateY(35deg); }
    .corp-slide.next-slide { transform: translateX(45%) translateZ(-200px) rotateY(-35deg); }
    .corp-slide-content h3 { font-size: 1rem; }
    
    /* Fullscreen zoom specifics */
    .desktop-only { display: none; }
    .mobile-only { display: flex; gap: 60px; margin-top: 20px; }
    .fullscreen-content-wrapper { flex-direction: column; padding: 25px; }
    .fs-nav-btn { width: 55px; height: 55px; }
    .fs-nav-btn svg { width: 30px; height: 30px; }
    #corp-fullscreen-overlay img { max-width: 90vw; max-height: 75vh; }
}

/* 4. MOBILE PHONES (<= 768px) */
@media (max-width: 768px) {
    :root { --sidebar-width: max(10vw, 55px); }
    .corporate-website-content { padding: 0 15px; }
    .corporate-website-content h1 { font-size: 2rem; }
    .corporate-website-content p.desc-text { font-size: 1rem; line-height: 1.5; }
    
    .header-logo h2 { font-size: 1rem; }
    .sidebar-item svg { width: 18px; height: 18px; }
    .sidebar-item small { font-size: 0.65rem; word-break: break-all; }
    
    .corporate-main-footer { flex-direction: column; gap: 12px; padding: 15px; text-align: center; }
    .footer-links { gap: 15px; flex-wrap: wrap; justify-content: center; }
    
    .corp-feature-card { padding: 20px; }
    
    /* Slider specifics */
    .corp-slider-wrapper { min-height: 260px; }
    .corp-slides-container { height: 260px; }
    .corp-slide { width: 85%; left: 7.5%; top: 15px; height: calc(100% - 60px); }
    .corp-slide.prev-slide { transform: translateX(-40%) translateZ(-150px) rotateY(35deg); opacity: 0.6; } 
    .corp-slide.next-slide { transform: translateX(40%) translateZ(-150px) rotateY(-35deg); opacity: 0.6; }
    
    .corp-img-wrapper { background: #0f172a; } 
    .corp-slide-content { padding: 8px; }
    .corp-slide-content h3 { font-size: 0.9rem; margin-bottom: 2px; }
    .corp-slide-content p { 
        font-size: 0.75rem !important; line-height: 1.2 !important; 
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    .corp-slider-controls { bottom: 5px; padding: 6px 16px; gap: 20px; }
    
    /* Fullscreen zoom specifics */
    .desktop-only { display: none; }
    .mobile-only { display: flex; gap: 40px; margin-top: 15px; }
    .fullscreen-content-wrapper { flex-direction: column; padding: 20px; }
    .fs-nav-btn { width: 50px; height: 50px; }
    .fs-nav-btn svg { width: 28px; height: 28px; }
    #corp-fullscreen-overlay img { max-width: 95vw; max-height: 70vh; }
}