/* Decrease font size for top navigation bar */
nav, nav ul, nav ul li, nav ul li a, .nav-right, .nav-right button, .nav-right a {
    font-size: 0.85rem !important;
}
nav ul {
    gap: 0.5rem;
}
nav ul li {
    margin-right: 0.5rem;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background: #0056b3;
    padding: 10px 20px;
    color: white;
    display: flex;
    align-items: center;
}

.logo {
    width: 80px;
    margin-right: 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ffcc00;
}

/* Active / current page nav link */
nav ul li a.active, nav ul li a.current {
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav-right button,
.nav-right input {
    margin-left: 10px;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    background: #ffcc00;
    color: #0056b3;
    cursor: pointer;
    transition: background 0.3s;
}

.nav-right button:hover,
.nav-right input:hover {
    background: #e6b800;
}

.slideshow-container {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.slide {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#slogan {
    text-align: center;
    margin: 20px 0;
    color: white;
    font-size: 2em;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

footer {
    background: #eee;
    text-align: center;
    padding: 10px 0;
    color: #0056b3;
}

/* Further compact header controls to ensure language buttons and search fit */
.nav-right {
    gap: 0.4rem;
}
.nav-right button,
.nav-right a {
    font-size: 0.72rem !important;
    padding: 0.25rem 0.5rem !important;
    line-height: 1 !important;
    background: #ffcc00 !important;
    color: #0056b3 !important;
}
.nav-right input#searchQuery {
    font-size: 0.76rem !important;
    padding: 0.25rem 0.4rem !important;
    width: 160px;
    max-width: 40vw;
    margin-left: 0.4rem;
}
@media (max-width: 900px) {
    .nav-right input#searchQuery { width: 110px; }
    .nav-right button, .nav-right a { font-size: 0.68rem !important; padding: 0.18rem 0.3rem !important; }
}

/* Hero and page-specific styles moved from inline */
.hero { background-size: cover; background-position: center; color: white; }
.hero-overlay { background: rgba(0,0,0,0.45); padding: 80px 20px; }
.hero h1 { font-size: 2.8rem; margin: 0 0 10px; }
.hero p.lead { font-size: 1.1rem; margin-bottom: 20px; }

/* Research page styles */
.research-hero { position: relative }
.research-hero .overlay { position: absolute; left: 0; top: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; color: white }
.research-hero .overlay .box { background: rgba(0,0,0,0.45); padding: 32px; border-radius: 8px; max-width: 1100px; width: 100%; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px }
.filters select, .filters input { padding: 8px; border-radius: 4px; border: 1px solid #ccc }
.content-row { display: flex; gap: 20px; max-width: 1100px; margin: 40px auto; align-items: flex-start; flex-wrap: wrap }
.col { flex: 1 1 320px }
.feature { background: #fff; padding: 18px; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,0.06) }
.feature img { width: 100%; height: 260px; object-fit: cover; border-radius: 6px }
.popular-grid { display: flex; gap: 18px; max-width: 1100px; margin: 24px auto; flex-wrap: wrap }
.popular-item { flex: 1 1 300px }
.data-section { max-width: 1100px; margin: 40px auto; background: #fff; padding: 18px; border-radius: 8px }
.query-form { max-width: 700px; margin: 24px auto }

@media (max-width: 800px) {
    .hero h1 { font-size: 2rem }
    .feature img { height: 180px }
}

/* small utility */
.btn { display:inline-block }
.list-links a { display:block; margin:6px 0; color:#007bff; text-decoration:none }

/* Contact page components moved from inline */
.contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:28px; align-items:center; padding:12px 18px; }
.contact-left { background:#e8f6ff; padding:20px 24px; border-radius:10px; display:flex; flex-direction:column; justify-content:center; }
.contact-right { background:#fafafa; padding:20px 24px; border-radius:10px; box-shadow:0 6px 16px rgba(0,0,0,0.02); display:flex; flex-direction:column; justify-content:center; }
.inquiry-form input[type="text"], .inquiry-form input[type="email"], .inquiry-form textarea { width:100%; box-sizing:border-box; padding:8px; border:1px solid #ccc; border-radius:6px; }
.inquiry-feedback { margin-top:8px; color:green }
.inquiry-history-input { flex:1; padding:8px; border:1px solid #ccc; border-radius:4px }

/* Feedback card (smaller, rounded rectangle) */
.feedback-card-wrap { background:#c0e4ff; border:1px solid rgba(11,116,222,0.16); padding:14px; border-radius:16px; box-shadow:0 12px 28px rgba(13,82,157,0.06); max-width:760px; margin:0 auto; }
.feedback-card-inner { background:transparent; padding:0 }
.feedback-card-wrap input[type="text"], .feedback-card-wrap input[type="email"], .feedback-card-wrap textarea, .feedback-card-wrap select { width:100%; box-sizing:border-box; padding:8px 10px; border:1px solid #cfddeff0; border-radius:6px; margin-top:6px; margin-bottom:10px; background:#fff }
.feedback-actions { display:flex; gap:8px; align-items:center }

/* Research request / contact card */
.request-card { background:#0b74de; color:#fff; padding:16px; border-radius:10px; box-shadow:0 8px 24px rgba(11,116,222,0.12); max-width:900px; margin:24px auto }
.request-card input, .request-card select, .request-card textarea { padding:8px; border-radius:6px; border:none; box-sizing:border-box }
.request-card input, .request-card select { background:#fff; color:#111 }
.request-card textarea { min-height:120px }
.request-card .btn { background:transparent; color:#fff; border:1px solid rgba(255,255,255,0.18); padding:8px 12px; border-radius:6px }

/* Live chat moved to CSS */
#live-chat-floating { position:fixed; right:18px; bottom:24px; background:#0b74de; color:#fff; border:none; padding:12px; border-radius:50%; box-shadow:0 8px 20px rgba(11,116,222,0.24); cursor:pointer; z-index:9999 }
#live-chat-panel { display:none; position:fixed; right:18px; bottom:86px; width:320px; background:#fff; border-radius:8px; box-shadow:0 12px 36px rgba(0,0,0,0.2); z-index:10000; overflow:hidden }
#live-chat-panel .header { background:#0b74de; color:#fff; padding:10px }
#live-chat-messages { height:220px; overflow:auto; padding:10px }
#live-chat-input { flex:1; padding:8px; border:1px solid #ddd; border-radius:4px }
#live-chat-send { background:#0b74de; color:#fff; border:none; padding:8px 10px; border-radius:4px }

/* Footer: larger, blue like top bar */
footer { background:#0056b3; text-align:left; padding:36px 20px; color:#fff }
footer p { margin:6px 0 }
footer a { color: rgba(255,255,255,0.9) }

@media (max-width:900px){
    .contact-grid{ grid-template-columns:1fr }
    .contact-left, .contact-right{ align-items:flex-start }
    .request-card { margin:18px 12px }
}

/* small layout helpers */
.row-flex { display:flex; gap:18px; align-items:flex-start }
.support-box { background:transparent; padding:12px; border-radius:8px; border:1px solid rgba(255,255,255,0.08) }

/* About page helpers */
.about-hero { background-size:cover; background-position:center; color:white; padding:80px 20px; position:relative }
.about-hero .overlay-box { background: rgba(0,0,0,0.45); padding:40px; max-width:1000px; margin:0 auto; border-radius:8px }
.container { max-width:1100px; margin:40px auto }
.card { background:#ffffff; padding:16px; border-radius:8px; box-shadow:0 1px 4px rgba(0,0,0,0.08) }
.list-columns { columns:2; list-style: disc; padding-left:1.2rem }
.cta-center { text-align:center; margin-bottom:60px }

/* Featured image helper used by research.js innerHTML */
.featured-image { width:100%; height:220px; object-fit:cover; border-radius:6px; margin-bottom:12px }

/* Primary button used across pages */
.btn-primary { padding:8px 12px; border-radius:4px; background:#007bff; color:#fff; border:none; cursor:pointer }
.btn-secondary { padding:8px 12px; border-radius:4px; background:#0b74de; color:#fff; border:none; cursor:pointer }

/* Request card form layout */
.request-card .row-flex > input,
.request-card .row-flex > select { flex:1 1 200px; padding:8px; border-radius:6px; border:none }
.request-card .row-flex > input[type="email"] { flex:1 1 260px }
.request-card .row-flex > select { flex:1 1 140px }