/* ==========================================================================
   PRNAV CAD - Master Production Grade Global Operational Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --logo-prnav-blue: #4a7ac5;   
    --logo-cad-red: #cc2433;      
    --primary-color: #3e2b5d;     
    --secondary-color: #f64c72;   
    --accent-blue: #2f80ed;       
    --accent-red: #dc2626;        
    --accent-green: #10b981;
    --text-dark: #1e293b;         
    --text-light: #ffffff;        
    --bg-main: #f8fafc;          
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --input-bg: #f1f5f9;
    --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
    --logo-prnav-blue: #60a5fa;   
    --logo-cad-red: #f87171;      
    --primary-color: #c084fc;     
    --secondary-color: #f64c72;   
    --accent-blue: #60a5fa;       
    --text-dark: #f1f5f9;         
    --text-light: #0f111a;        
    --bg-main: #0f111a;          
    --bg-card: #151824;
    --border-color: #24293d;
    --input-bg: #1f2438;
    --card-shadow: 0 10px 35px -10px rgba(0, 0, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Enforcing strict word wrapping across all elements to prevent text cutting */
p, h1, h2, h3, h4, span, div, td, th, li, label, input, select, textarea {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* --- Notification Announcement Ticker Bar --- */
.notification-ticker-bar {
    background: linear-gradient(90deg, #1e1b4b, var(--primary-color));
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 5%;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ticker-wrap-node {
    display: inline-block;
    padding-left: 100%;
    animation: marqueeTicker 24s linear infinite;
}

.ticker-wrap-node span {
    margin-right: 60px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@keyframes marqueeTicker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* --- Fixed Responsive Navigation Header --- */
header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-area img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.brand-text-wrapper {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.logo-text {
    font-size: 21px;
    font-weight: 800;
    color: var(--logo-prnav-blue);
    letter-spacing: -0.2px;
    line-height: 1.1;
}

.logo-text span { color: var(--logo-cad-red); }

.logo-tagline {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-dark);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 16px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 13px;
    padding: 6px 0;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--logo-cad-red);
}

.nav-utils { display: flex; align-items: center; gap: 12px; }

.theme-toggle-btn, .mobile-nav-toggle {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.mobile-nav-toggle {
    display: none;
    border-radius: 8px;
}

/* --- Slider Core Style Components --- */
.carousel-view-surface {
    position: relative;
    width: 100%;
    height: 520px;
    background: #090a10;
    overflow: hidden;
}

.carousel-track-node {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-slide-item {
    width: 33.333%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
}

.carousel-slide-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(15,17,26,0.4) 0%, rgba(15,17,26,0.85) 100%);
    z-index: 1;
}

.carousel-caption-pane {
    position: absolute;
    top: 50%; left: 5%; right: 5%;
    transform: translateY(-50%);
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    color: #ffffff;
    z-index: 2;
    padding: 0 10px;
}

.carousel-caption-pane h2 {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 15px;
}

.carousel-caption-pane h2 span {
    background: linear-gradient(90deg, #ff8a00, var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.carousel-caption-pane p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 25px;
}

.carousel-dots-cluster {
    position: absolute;
    bottom: 20px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.carousel-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.carousel-dot.active {
    background: var(--secondary-color);
    width: 24px;
    border-radius: 10px;
}

/* --- Layout Structure Elements --- */
section { padding: 60px 5%; max-width: 1400px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.section-title { text-align: center; font-size: 32px; color: var(--primary-color); font-weight: 800; margin-bottom: 40px; }
.section-title::after { content: ''; display: block; width: 50px; height: 4px; background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)); margin: 10px auto 0; border-radius: 10px; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 25px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 30px; }
.card { background: var(--bg-card); padding: 35px 25px; border-radius: 16px; box-shadow: var(--card-shadow); text-align: center; border: 1px solid var(--border-color); transition: var(--transition-smooth); }
.card:hover { transform: translateY(-5px); }

/* Buttons Systems */
.btn-group { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-top: 10px; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--logo-cad-red) 0%, #b01e2a 100%);
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14.5px;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(204, 36, 51, 0.2);
    transition: var(--transition-smooth);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(204, 36, 51, 0.35); }
.btn-reg { background: linear-gradient(135deg, var(--accent-blue) 0%, #1d68cd 100%); box-shadow: 0 6px 15px rgba(47, 128, 237, 0.2); }
.btn-outline { background: transparent; border: 2px solid #ffffff; box-shadow: none; }
.btn-outline:hover { background: #ffffff; color: #0f111a !important; }

/* --- TWO-IMAGE REAL COMPARATIVE SLIDER (MOBILE OPTIMIZED) --- */
.slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 850px;
    height: 480px;
    margin: 30px auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    user-select: none;
}

.slider-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.slider-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slider-img-after { z-index: 1; }
.slider-img-before { width: 50%; z-index: 2; overflow: hidden; border-right: 2px solid #ffffff; }
.slider-img-before img { width: 850px; max-width: none; }

.slider-bar-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; background: #ffffff; z-index: 3; cursor: ew-resize; box-shadow: 0 0 10px rgba(0,0,0,0.3); }
.slider-button-node { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 38px; height: 38px; background: var(--logo-cad-red); color: #ffffff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; }

.slider-label-tag { position: absolute; bottom: 15px; padding: 6px 14px; background: rgba(15, 17, 26, 0.85); color: #ffffff; font-size: 11px; font-weight: 700; text-transform: uppercase; border-radius: 4px; z-index: 4; letter-spacing: 0.5px; }
.label-before { left: 15px; }
.label-after { right: 15px; }

/* --- LIVE ENTERPRISE CLIENTS SCROLLING MATRIX --- */
.enterprise-scroller-window {
    width: 100%;
    overflow: hidden;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 25px 0;
    position: relative;
    margin: 40px 0;
}

.enterprise-scroller-track {
    display: flex;
    width: max-content;
    gap: 50px;
    animation: scrollLogos 28s linear infinite;
}

.enterprise-logo-node {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    opacity: 0.65;
    background: var(--input-bg);
    padding: 0 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    white-space: nowrap;
    transition: var(--transition-smooth);
}
.enterprise-logo-node:hover { opacity: 1; border-color: var(--logo-prnav-blue); color: var(--logo-prnav-blue); }
.enterprise-logo-node img { height: 100%; width: auto; object-fit: contain; }

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 25px)); }
}

/* --- Compliance Panels & Responsive Data Containers --- */
.compliance-alert-envelope { background: #eff6ff; border: 1px solid #bfdbfe; border-left: 5px solid var(--accent-blue); padding: 20px; border-radius: 12px; margin-bottom: 30px; display: flex; gap: 15px; align-items: center; text-align: left; }
[data-theme="dark"] .compliance-alert-envelope { background: #1e2433; border-color: #2e374f; }

/* Enforcing strict table response wrapping wrapper layout to prevent text columns crash on screens */
.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 30px 0;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.compliance-data-table-surface { width: 100%; border-collapse: collapse; background: var(--bg-card); margin: 0; }
.compliance-data-table-surface th { background: var(--primary-color); color: #ffffff; text-align: left; padding: 14px 18px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.compliance-data-table-surface td { padding: 14px 18px; border-bottom: 1px solid var(--border-color); font-size: 14px; color: var(--text-dark); text-align: left; }
.compliance-data-table-surface tr:nth-child(even) { background: var(--input-bg); }

.compliance-status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 30px; font-size: 11px; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.badge-verified-style { background: #dcfce7; color: #16a34a; }
.badge-free-style { background: #e0f2fe; color: #0369a1; }

.vacancy-counters-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 35px; }
.vacancy-counter-node { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 22px; text-align: center; border-top: 4px solid var(--primary-color); }
.vacancy-counter-node h5 { font-size: 14.5px; font-weight: 700; color: var(--text-dark); }
.vacancy-counter-node .seat-number { font-size: 36px; font-weight: 800; color: var(--logo-cad-red); }

.calculator-surface-panel { max-width: 760px; margin: 30px auto; background: var(--bg-card); padding: 30px; border-radius: 16px; border: 1px solid var(--border-color); box-shadow: var(--card-shadow); text-align: left; }
.calc-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.calc-field-group { display: flex; flex-direction: column; gap: 6px; text-align: left; }

/* Hardcoding strict plain template input backgrounds to avoid ugly patches */
.calc-select, .calc-input { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid var(--border-color) !important; 
    background: var(--input-bg) !important; 
    color: var(--text-dark) !important; 
    border-radius: 8px; 
    font-size: 14.5px; 
    outline: none; 
}

/* --- UNIFORM GLOBAL FOOTER --- */
footer {
    background: #0b0d14;
    color: #94a3b8;
    padding: 60px 5% 25px;
    margin-top: 60px;
    border-top: 1px solid #1f2438;
    width: 100%;
    box-sizing: border-box;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    text-align: left;
}

.footer-box h3 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
}

.footer-box h3::after {
    content: ''; position: absolute; left: 0; bottom: -6px; width: 28px; height: 3px; background: var(--logo-cad-red);
}

.footer-box p { font-size: 14px; line-height: 1.7; margin-bottom: 10px; }
.footer-box ul { list-style: none; }
.footer-box ul li { margin-bottom: 12px; }
.footer-box ul li a { color: #94a3b8; text-decoration: none; font-size: 14px; transition: var(--transition-smooth); }
.footer-box ul li a:hover { color: var(--logo-cad-red); padding-left: 4px; }

.social-icons { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.social-icons a { width: 38px; height: 38px; background: #151824; color: #94a3b8; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transition-smooth); text-decoration: none; font-size: 15px; }
.social-icons a:hover { color: #ffffff; transform: translateY(-3px); }
.social-icons a.insta:hover { background: #e1306c; }
.social-icons a.fb:hover { background-color: #1877f2; }
.social-icons a.yt:hover { background: #ff0000; }
.social-icons a.gmaps:hover { background: #4285f4; } /* Brand dynamic blue logic color for Google maps integration */

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid #1f2438;
    font-size: 13.5px;
    color: #64748b;
    font-weight: 500;
}
.footer-bottom a { color: #ffffff; text-decoration: none; font-weight: 600; transition: var(--transition-smooth); }
.footer-bottom a:hover { color: var(--logo-cad-red); }

/* --- PERMANENT FIXED WHATSAPP FLOATING BUBBLE --- */
.whatsapp-permanent-float {
    position: fixed;
    bottom: 25px; right: 25px;
    background-color: #25d366;
    color: #ffffff !important;
    width: 54px; height: 54px;
    border-radius: 50%; font-size: 28px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; transition: var(--transition-smooth);
}
.whatsapp-permanent-float:hover { transform: scale(1.1) translateY(-3px); }

/* --- RESPONSIVE ADJUSTMENTS ENGINE --- */
@media (max-width: 1024px) {
    .navbar { flex-wrap: wrap; gap: 15px; }
    .carousel-view-surface { height: 460px; }
    .carousel-caption-pane h2 { font-size: 32px; }
}

@media (max-width: 991px) {
    .mobile-nav-toggle { display: block; }
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 10px;
        padding-top: 15px;
        border-top: 1px solid var(--border-color);
    }
    .nav-links.active { display: flex; }
    .nav-links a { width: 100%; text-align: center; padding: 10px 0; background: var(--input-bg); border-radius: 8px; }
    .carousel-view-surface { height: 430px; }
}

@media (max-width: 768px) {
    .navbar { padding: 15px 5%; }
    .carousel-caption-pane h2 { font-size: 23px; line-height: 1.4; }
    .carousel-caption-pane p { font-size: 13.5px; display: none; }
    .btn-group { flex-direction: column; width: 100%; max-width: 280px; margin: 0 auto; gap: 10px; }
    .btn { width: 100%; padding: 11px 20px; }
    
    /* Enforcing relative width layout view matrix mapping to eliminate smartphone clipping drag lock crash */
    .slider-wrapper { height: 280px; margin: 20px auto; }
    .slider-img-before img { width: calc(100vw - 10%) !important; max-width: 850px !important; }

    .calc-form-grid { grid-template-columns: 1fr; gap: 15px; }
    section { padding: 45px 5%; }
    .section-title { font-size: 26px; margin-bottom: 30px; }
    
    footer { padding: 45px 5% 20px; }
    .footer-content { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .footer-box h3::after { left: 50%; transform: translateX(-50%); }
    .social-icons { justify-content: center; }
}