/* Minimalist, Clean Business Style CSS (Lingvo Template Inspired) */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #007bff; /* Clean Lingvo Blue */
    --text-color: #333333;
    --text-light: #777777;
    --bg-color: #ffffff;
    --white: #ffffff;
    --border-color: #eeeeee;
    --max-width: 1200px;
}

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

body {
    font-family: 'Roboto', 'Inter', sans-serif;
    color: var(--text-color);
    background-color: #fcfcfc;
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    overflow-y: scroll; /* Force scrollbar to prevent horizontal layout shift */
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar (Lingvo Style) */
.top-bar {
    background: #f9f9f9;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
    color: var(--text-light);
    padding: 12px 0;
}

.top-bar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact span {
    margin-right: 25px;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-right a {
    display: inline-block;
    transition: transform 0.2s;
}

.top-right a:hover {
    transform: scale(1.1);
}

.top-right img {
    height: 24px;
    width: auto;
}

/* Main Header (Logo + Nav) */
header.main-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 100;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo-banner img {
    max-height: 60px;
    width: auto;
}

/* Navigation inside header */
.header-nav ul {
    display: flex;
    gap: 30px;
}

.header-nav ul li a {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-color);
    letter-spacing: 0.5px;
    padding: 10px 0;
}

.header-nav ul li a:hover {
    color: var(--primary-color);
}

/* Main Content Area */
main.home-main {
    padding: 0 0 60px;
    background-color: var(--white);
}

main.subpage-main {
    padding: 40px;
    background-color: var(--white);
    margin: 40px auto;
}

/* Slider (Home) - Fixed Blurry Issue */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 956px;
    aspect-ratio: 956 / 380; /* Lock the aspect ratio to prevent vertical shift */
    margin: 0 auto 60px auto;
    background: #fcfcfc;
    overflow: hidden;
}

.slideshow {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.slideshow li {
    min-width: 100%;
    position: relative;
    display: flex;
    justify-content: center; /* Center image instead of stretching */
    background: #f0f0f0; /* Soft background if image doesn't fill width */
}

.slideshow img {
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Prevents blurry stretching */
    max-height: 600px;
}

.slidebar {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.slidebar ul {
    display: flex;
    gap: 12px;
}

.slidebar li {
    width: 10px;
    height: 10px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: transparent;
    border-radius: 50%;
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slidebar li.on, .slidebar li:hover {
    background: var(--primary-color);
}

/* Home Footer Links Grid (Clean Style without cards) */
.home-footer-links {
    display: grid;
    /* User requested wider contact column */
    grid-template-columns: 1fr 1fr 1fr 1.5fr; 
    gap: 40px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 20px;
    background: var(--white);
}

.footer-column {
    padding: 30px;
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.footer-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.footer-column h3 {
    color: var(--text-color);
    font-size: 16px;
    margin-bottom: 25px;
    text-transform: uppercase;
    font-weight: 700;
    height: 50px; /* Fixed height to perfectly align the links below across columns */
}

.footer-column p {
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.8;
    font-size: 14px;
}

.footer-column a {
    color: var(--text-light);
}

.footer-column a:hover {
    color: var(--primary-color);
}

/* CSS Button (with transparent extracted globe background) */
.css-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/map_btn_bg_transparent.png');
    background-size: cover;
    background-position: center;
    background-color: transparent;
    color: #002255 !important; /* Dark blue text */
    padding: 20px 60px; /* Larger button */
    font-size: 20px; /* Larger text */
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 8px;
    margin-top: 15px;
    box-shadow: none; /* Completely flat, blends with column */
    transition: transform 0.3s, color 0.3s;
    text-shadow: none;
}

.css-btn:hover {
    transform: translateY(-2px);
    color: #000000 !important; /* Darker text on hover */
}

/* Subpage Layout */
.subpage-banner {
    margin-bottom: 40px;
    text-align: center;
}

.subpage-banner img {
    margin: 0 auto;
    max-width: 100%;
}

.subpage-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 50px;
}

/* Sidebar Navigation */
.side-nav {
    background: var(--white);
    position: sticky;
    top: 20px;
}

.side-nav li {
    margin-bottom: 5px;
}

.side-nav li a {
    display: block;
    padding: 12px 15px;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.side-nav li a:hover, .side-nav li a.active {
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
    background: #f8f9fa;
}

/* Main Content Text */
.content-text {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.8;
}

.content-text p {
    margin-bottom: 20px;
    text-align: justify;
}

/* Global Footer */
.global-footer {
    text-align: center;
    padding: 30px 0;
    background-color: #f9f9f9;
    color: #999999;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    margin-top: 40px;
}

.global-footer a {
    color: #999999;
}

.global-footer a:hover {
    color: var(--primary-color);
}

.global-footer p {
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .home-footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar-flex {
        flex-direction: column;
        gap: 10px;
    }
    .header-flex {
        flex-direction: column;
        gap: 20px;
    }
    .header-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .home-footer-links {
        grid-template-columns: 1fr;
    }
    .subpage-grid {
        grid-template-columns: 1fr;
    }
    .side-nav {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .side-nav {
        grid-template-columns: 1fr;
    }
}
