@charset "UTF-8";

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --primary-soft: rgba(59, 130, 246, 0.1);
}

.blue {
    color: var(--primary) !important;
}

/* WOW.js Visibility Fix for Tabs */
.tabcontent.active .wow {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Sticky Tab Navigation */
.tab-sticky-wrapper,
.si-tab-sticky {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 70px !important;
    /* Adjusted for scrolled header height */
    z-index: 999 !important;
    /* Above normal content but below mobile menu triggers if needed */
    background: white !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Modal Layering Fix */
.modal {
    z-index: 11000 !important;
}

.modal-backdrop {
    z-index: 10990 !important;
}

html {
    height: auto !important;
    min-height: 100% !important;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    height: auto !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    background-color: #020617 !important;
}

main {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    flex-shrink: 0;
}

section {
    flex-shrink: 0;
}

/* Ensure content sections expand to fill viewport when content is short */
section.bg-slate-50,
section#section {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

footer {
    margin-top: auto !important;
}

/* ===== RASTECH Common UI (Nav & Footer) ===== */

/* Base Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a,
a:hover,
a:focus,
a:active {
    text-decoration: none !important;
    outline: none !important;
}

ul,
li {
    list-style: none;
}

/* Global Container Width Expansion */
.container,
#mainNav .container {
    max-width: 1536px !important;
}

/* Navigation Structure */
#mainNav {
    height: 96px;
    transition: all 0.5s ease;
    border-bottom: none !important;
}

#mainNav.scrolled {
    height: 70px;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: none !important;
}

#mainNav.scrolled ~ .gnb-dropdown {
    top: 70px !important;
}

#mainNav:hover,
#mainNav.dropdown-open {
    background: rgba(2, 6, 23, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: none !important;
}

.gnb-trigger {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    white-space: nowrap;
}

.gnb-trigger::before {
    display: block;
    content: attr(data-text);
    font-weight: 700;
    height: 0;
    overflow: hidden;
    visibility: hidden;
}

/* 
.gnb-trigger:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.gnb-trigger:hover:after,
.gnb-trigger.gnb-open:after {
    width: 100%;
} */

.gnb-trigger.gnb-open {
    color: var(--primary) !important;
    font-weight: 700;
}

/* Mega Dropdown Panel - All at once */
.gnb-dropdown {
    display: none;
    position: fixed;
    top: 96px;
    left: 0;
    width: 100%;
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(20px);
    border-top: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 1000 !important;
    padding: 50px 0;
    transition: all 0.3s ease;
}

.gnb-dropdown.open {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.gnb-dropdown .drop-inner {
    max-width: 1536px;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.gnb-dropdown .drop-col {
    flex: 1;
    padding: 0 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    opacity: 0.3;
    /* Default dimmed */
}

.gnb-dropdown .drop-col:last-child {
    border-right: none;
}

.gnb-dropdown .drop-col.active {
    opacity: 1;
    /* Highlighted */
    transform: translateY(-5px);
}

.gnb-dropdown .drop-col-title {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #3b82f6;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
}

.gnb-dropdown .drop-col ul li a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    padding: 6px 0;
    display: block;
    transition: all 0.2s;
}

.gnb-dropdown .drop-col.active ul li a {
    color: rgba(255, 255, 255, 0.8);
}

.gnb-dropdown .drop-col ul li a:hover {
    color: #3b82f6 !important;
    padding-left: 10px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #020617;
    z-index: 9999;
    padding: 120px 40px 40px;
    display: none;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu.open {
    display: flex;
}

.navbar-toggler {
    display: none;
    z-index: 102;
}

@media (max-width: 991px) {
    .navbar-toggler {
        display: block;
    }

    #mainNav .hidden.md\:flex {
        display: none;
    }

    .gnb-dropdown {
        position: static !important;
        display: none;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 0 20px 20px !important;
    }

    .gnb-dropdown.open {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 1000 !important;
    }

    .gnb-dropdown .drop-inner {
        flex-direction: column;
        padding: 0 !important;
    }

    .gnb-dropdown .drop-col {
        display: none;
    }

    .gnb-dropdown .drop-col.mobile-show {
        display: block;
    }
}





.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #020617;
    z-index: 100;
    padding: 120px 40px 40px;
    display: none;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu.open {
    display: flex;
}

/* Mobile Navigation Styles */
.hamburger-lines .line {
    display: block;
    height: 1px;
    width: 100%;
    background: #fff;
    transition: transform 0.4s ease-in-out, opacity 0.2s ease-in-out;
}

.navbar-toggler.active .line1 {
    transform: rotate(45deg) translate(6px, 6px);
}

.navbar-toggler.active .line2 {
    opacity: 0;
}

.navbar-toggler.active .line3 {
    transform: rotate(-45deg) translate(6px, -6px);
}

#mainNav.menu-open {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
}

.mobile-menu ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 20px;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

@media (max-width: 991px) {
    .navbar-toggler {
        display: block;
    }

    #mainNav .hidden.md\:flex {
        display: none;
    }

    .gnb-dropdown {
        position: static !important;
        display: none;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 0 20px 20px !important;
    }

    .gnb-dropdown.open {
        display: block;
    }

    .gnb-dropdown .drop-inner {
        flex-direction: column;
        padding: 0 !important;
    }
}

/* ==========================================
   Centralized Subpage Layout Design System 
   ========================================== */

/* 1. Bullet Row Lists */
.row_list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #475569;
}

.row_list li::before {
    content: "•";
    position: absolute;
    left: -4px;
    color: #3b82f6;
    font-weight: bold;
}

/* 2. Unified Responsive Card Container */
.sub-card,
.product-card,
.factory-card,
.agv-card,
.si-card,
.comm-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid #f1f5f9;
    margin-bottom: 30px;
}

@media (min-width: 768px) {

    .sub-card,
    .product-card,
    .factory-card,
    .agv-card,
    .si-card,
    .comm-card {
        padding: 40px;
    }
}

/* 3. Sticky Tab Bar & Responsive Navigation */
.tab-container,
.si-tab-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.tab-container::-webkit-scrollbar,
.si-tab-container::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {

    .tab-container,
    .si-tab-container {
        justify-content: center;
        gap: 1.5rem;
    }
}

.tab-item,
.si-tab-item {
    text-align: center;
    white-space: nowrap;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s;
    padding: 10px 20px;
    border-radius: 12px;
}

.tab-item.active,
.si-tab-item.active {
    color: #3b82f6;
    background: #eff6ff;
}

/* 4. Unified Specifications Table (sub2) */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.spec-table th,
.spec-table td {
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
}

.spec-table th {
    background: #f8fafc;
    color: #1e293b;
    font-weight: 700;
    width: 30%;
}