:root {
    --primary-color: #0d47a1; /* Deep Maritime Blue */
    --secondary-color: #00acc1; /* Ocean Cyan */
    --bg-color: #f8f9fa;
    --text-color: #333333;
    --light-text: #ffffff;
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.18);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #121212;
        --text-color: #e0e0e0;
        --glass-bg: rgba(30, 30, 30, 0.85);
        --glass-border: rgba(255, 255, 255, 0.08);
    }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-main); background-color: var(--bg-color); color: var(--text-color); line-height: 1.6; overflow-x: hidden; }

/* Glassmorphism Header */
header {
    position: fixed; width: 100%; top: 0; z-index: 1000;
    background: var(--glass-bg); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.top-bar {
    background: var(--primary-color); color: var(--light-text);
    padding: 8px 20px; font-size: 14px; display: flex; justify-content: space-between; align-items: center;
}
.top-bar .contact-info {
    flex: 1; text-align: center;
}

.top-bar a { color: var(--light-text); text-decoration: none; margin-left: 15px; }

.main-nav {
    display: flex; justify-content: center; align-items: center; padding: 15px 40px;
    position: relative;
}

.logo img { height: 50px; }
.logo { position: absolute; left: 40px; }

.nav-links { list-style: none; display: flex; gap: 25px; }
.nav-links li { position: relative; }
.nav-links a { text-decoration: none; color: var(--text-color); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; transition: color 0.3s; }
.nav-links a:hover { color: var(--secondary-color); }

.dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0;
    background: var(--glass-bg); backdrop-filter: blur(10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1); border-radius: 4px; padding: 10px 0; min-width: 200px;
    z-index: 1001; margin-top: 20px;
}
/* This pseudo-element acts as an invisible bridge to prevent losing hover in the 20px margin-top gap */
.dropdown-menu::before {
    content: ''; position: absolute; top: -20px; left: 0; width: 100%; height: 20px;
}
/* Only show direct child dropdown */
.nav-links li:hover > .dropdown-menu { display: block; animation: fadeIn 0.3s ease; }

.dropdown-menu li { padding: 8px 20px; position: relative; }
.dropdown-menu a { font-size: 14px; text-transform: none; display:block; }

/* Level 3 Sub-dropdown */
.dropdown-menu .sub-dropdown {
    top: 0; left: 100%; margin-top: 0; margin-left: 0;
}
.dropdown-menu .sub-dropdown::before {
    top: 0; left: -20px; width: 20px; height: 100%;
}
.dropdown-menu li.has-submenu:hover > .sub-dropdown { display: block; animation: fadeIn 0.3s ease; }

/* Hero Section */
.hero {
    height: 100vh; display: flex; justify-content: center; align-items: center; text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--light-text); padding-top: 80px;
}
.hero h1 { font-size: 4rem; margin-bottom: 20px; animation: slideUp 1s ease-out; }
.hero p { font-size: 1.5rem; max-width: 800px; margin: 0 auto; animation: slideUp 1.2s ease-out; }

/* Logos Section */
.logos-section { padding: 30px 20px; text-align: center; background: var(--bg-color); }
.logos-container {
    display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 40px; margin-top: 30px;
}
.logos-container img { height: 80px; filter: grayscale(100%); transition: all 0.4s ease; cursor: pointer; }
.logos-container img:hover { filter: grayscale(0%); transform: scale(1.1); }

/* Main Content */
.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; min-height: 60vh; padding-top: 120px; }
.content-box {
    background: var(--glass-bg); backdrop-filter: blur(5px);
    padding: 40px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    animation: fadeIn 0.8s ease;
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important; }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 20px; max-width: 600px; margin: 0 auto; }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 8px; font-family: inherit;
    background: var(--bg-color); color: var(--text-color);
}
.contact-form button {
    padding: 15px; background: var(--secondary-color); color: white; font-size: 16px; font-weight: bold; border: none; border-radius: 8px; cursor: pointer; transition: 0.3s;
}
.contact-form button:hover { background: var(--primary-color); }

/* Footer */
footer { background: #1a1a1a; color: #aaa; padding: 40px 20px; text-align: center; }
footer a { color: var(--secondary-color); text-decoration: none; }

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } }

/* Utility */
.mb-2 { margin-bottom: 20px; }
.text-center { text-align: center; }

/* Rich Content (WYSIWYG) */
.rich-content p { margin-bottom: 1em; }
.rich-content ul, .rich-content ol { margin-left: 20px; margin-bottom: 1em; padding-left: 20px; }
.rich-content h1, .rich-content h2, .rich-content h3 { margin-top: 1.5em; margin-bottom: 0.5em; }

/* Swiper Customize */
.swiper-container { width: 100%; height: 400px; border-radius: 12px; margin-bottom: 30px; }
.swiper-slide { text-align: center; background: #fff; display: flex; justify-content: center; align-items: center; }
.swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
/* Swiper navigation arrows */
.swiper-button-prev::after {
    content: "←"; /* left arrow */
    font-size: 24px;
    color: var(--secondary-color);
}
.swiper-button-next::after {
    content: "→"; /* right arrow */
    font-size: 24px;
    color: var(--secondary-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header */
    .top-bar {
        flex-direction: column;
        gap: 10px;
        padding: 10px 15px;
    }
    .top-bar .contact-info {
        font-size: 12px;
    }
    .main-nav {
        padding: 10px 15px;
    }
    .logo { position: static; margin-bottom: 10px; }
    .logo img { height: 40px; }
    
    .menu-toggle {
        display: block;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        border-radius: 0 0 8px 8px;
        z-index: 1002;
        max-height: 70vh;
        overflow-y: auto;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links > li {
        border-bottom: 1px solid #eee;
    }
    .nav-links > li > a {
        padding: 12px 20px;
        font-size: 14px;
    }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        backdrop-filter: none;
        background: white;
        border: none;
        border-radius: 0;
        padding: 0;
    }
    .dropdown-menu::before { display: none; }
    .dropdown-menu > li > a {
        padding-left: 40px;
        font-size: 13px;
    }
    .dropdown-menu .sub-dropdown { position: static; border: none; margin-left: 20px; }
    .dropdown-menu .sub-dropdown::before { display: none; }
    .dropdown-menu li.has-submenu > a::after { content: ' ▸'; font-size: 10px; }
    .dropdown-menu li.has-submenu > a { font-weight: 600; }
    
    /* Hero */
    .hero { height: 50vh; padding-top: 100px; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    
    /* Swiper in articles */
    .swiper-container { height: 250px; border-radius: 8px; margin-bottom: 20px; }
    
    /* Article content */
    .article-page-wrapper { flex-direction: column; }
    .article-content { 
        width: 100%; 
        padding: 15px; 
    }
    .article-sidebar { 
        width: 100%; 
        flex-direction: column; 
    }
    .article-sidebar .widget { min-width: auto; }
    
    /* Content */
    .container { padding: 80px 15px 40px; }
    .content-box { padding: 15px; }
    
    /* Rich content */
    .rich-content img { max-width: 100%; height: auto; }
    
    /* Footer */
    footer { padding: 20px 15px; }
    
    /* Maintenance */
    .maintenance-container h1 { font-size: 2rem; }
    .maintenance-container p { font-size: 1rem; }
    .logos-row { flex-wrap: wrap; }
    .logos-row img { height: 30px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.5rem; }
    .hero p { font-size: 0.9rem; }
    .contact-form { padding: 15px; }
    .content-box { padding: 15px; }
}
