/* ========================================
   意驰标准咨询有限公司 — 全局样式
   配色: 深蓝 #1a3a5c / 白 / 浅灰
   ======================================== */

:root {
  --primary: #1a3a5c;
  --primary-light: #2c5f8a;
  --primary-dark: #0f2640;
  --accent: #d4380d;
  --accent-light: #ff6b3d;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f0f2f5;
  --gray-200: #e8eaed;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --transition: all 0.3s ease;
  --max-width: 1200px;
  --desktop-min-width: 1200px;
  --desktop-logo-width: 320px;
  --brand-height: 64px;
  --nav-height: 56px;
  --header-height: 64px;
  --image-module-width: 900px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
  min-width: var(--desktop-min-width);
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Top Bar */
.top-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  font-size: 13px;
  padding: 6px 0;
}
.top-bar .container { display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
.top-bar a { color: var(--gray-500); font-size: 13px; }
.top-bar a:hover { color: var(--primary); }

/* Header / Nav */
.header { background: #fff; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 12px rgba(0,0,0,0.12); display: block; min-width: var(--desktop-min-width); }
.header > .container { width: 100%; min-width: var(--desktop-min-width); max-width: none; display: flex; align-items: center; height: var(--nav-height); padding: 0; margin: 0; background: linear-gradient(to right, #0057ff, #001f5c); }
.logo { display: flex; align-items: center; gap: 0; margin-right: 0; padding-left: 20px; background: #fff; height: var(--brand-height); width: 100%; min-width: var(--desktop-min-width); flex-shrink: 0; }
.logo img { width: var(--desktop-logo-width); height: auto; display: block; filter: none; }

.nav { display: flex; align-items: center; height: 100%; width: 100%; justify-content: stretch; }
.nav > li { position: relative; height: 100%; display: flex; align-items: center; flex: 1 1 0; min-width: 0; justify-content: center; }
.nav > li > a {
  width: 100%; box-sizing: border-box;
  color: rgba(255,255,255,0.9);
  padding: 0 18px;
  font-size: 16px;
  font-weight: 600;
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  white-space: nowrap;
  transition: var(--transition);
}
.nav > li > a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.nav > li.active > a { color: var(--gray-900); background: #fff; }
.nav > li > a::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 3px; background: rgba(174,199,255,0.6); transition: var(--transition);
}
.nav > li > a:hover::after { width: 100%; background: rgba(174,199,255,0.9); }
.nav > li.active > a::after { width: 0; }

/* Dropdown */
.nav .dropdown { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--white); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lg); padding: 8px 0; z-index: 100; }
.nav > li:hover .dropdown { display: block; }
.nav .dropdown li a {
  display: block; padding: 10px 20px; color: var(--gray-700); font-size: 14px; transition: var(--transition);
}
.nav .dropdown li a:hover { background: var(--gray-50); color: var(--primary); }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 24px; cursor: pointer; padding: 8px; margin-left: auto; }

/* Hero Section */
/* Hero Carousel */

.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.6s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide-caption { position: absolute; left: 24px; bottom: 24px; padding: 14px 18px; background: rgba(0,0,0,0.55); color: #fff; font-size: 14px; max-width: 560px; line-height: 1.6; border-radius: 4px; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.4); color: #fff; border: none; font-size: 28px; padding: 12px 16px; cursor: pointer; z-index: 10; border-radius: 4px; }
.hero-arrow:hover { background: rgba(0,0,0,0.7); }
.hero-arrow-left { left: 16px; }
.hero-arrow-right { right: 16px; }
.hero-carousel.hero-controls-anchored .hero-arrow-left { left: var(--hero-arrow-left-x, 16px); }
.hero-carousel.hero-controls-anchored .hero-arrow-right { left: var(--hero-arrow-right-x, auto); right: auto; }
.hero-dots { position: absolute; bottom: 16px; left: var(--hero-control-x, 50%); transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.hero-dot { width: 12px; height: 12px; background: rgba(255,255,255,0.5); border-radius: 50%; cursor: pointer; }
.hero-dot.active { background: #fff; }

/* Gradient text */
.gradient-text {
  background: linear-gradient(to right, #0057ff, #001f5c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Shared image module */
.image-module,
#module-3-container:not(.service-detail-list):not(.case-grid) {
  width: min(100%, var(--image-module-width));
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.image-module img,
#module-3-container:not(.service-detail-list):not(.case-grid) > img,
#module-3-container:not(.service-detail-list):not(.case-grid) > a > img {
  width: 100%;
  height: auto;
  display: block;
}

/* Platform Select Overlay */
.platform-select-wrap {
  position: relative;
  display: block;
  width: min(100%, var(--image-module-width));
  margin: 0 auto;
}
.platform-select-wrap img { display: block; }

/* Intl Image Overlay */
.intl-img-wrap { position: relative; max-width: var(--image-module-width); margin: 0 auto; }
.intl-img-wrap #module-3-container:not(.service-detail-list):not(.case-grid) {
  width: 100%;
  margin: 0;
  display: block;
  gap: 0;
}
.intl-img-wrap #module-3-container > img:first-child {
  width: 100%;
  height: auto;
  display: block;
}
.intl-img-wrap #module-3-container > img.intl-overlay-2 {
  width: 18%;
}
.intl-img-wrap #module-3-container > img.intl-overlay-3 {
  width: 30%;
}

@keyframes intlFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes intlSlideLeft {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.intl-overlay { position: absolute; opacity: 0; }

.intl-overlay-2 {
  right: 14%; bottom: 30%; width: 18%;
  animation: intlFadeIn 0.6s ease-out 0.15s forwards;
}

.intl-overlay-3 {
  right: 14%; bottom: 30%; width: 30%;
  animation: intlSlideLeft 0.6s ease-out 0.3s forwards;
}

.intl-overlay-5 {
  position: absolute;
  font-size: 12px;
  font-weight: 600;
  color: #1a3a5c;
  background: rgba(255, 255, 255, 0.85);
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
  opacity: 0;
  animation: intlFadeIn 0.8s ease-out 0.5s forwards;
  transition: all 0.3s ease;
}

.intl-overlay-5:hover {
  color: #0057ff;
  transform: scale(1.1);
}
.intl-caption { text-align: center; margin-top: 40px; max-width: 800px; margin-left: auto; margin-right: auto; }
.intl-caption p { color: #555; line-height: 1.8; font-size: 14px; margin: 6px 0; }

/* Training columns */
.training-title { text-align: center; font-size: 22px; font-weight: 700; color: #1a3a5c; margin: 0 0 30px; }
.training-columns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
.training-col { background: #fff; border: 1px solid #e8eaed; border-radius: 6px; overflow: hidden; }
.training-col-body { padding: 16px; display: none; }
.training-col.open .training-col-body { display: block; }
.training-col-title { background: #0057ff; color: #fff; text-align: center; padding: 14px; margin: 0; font-size: 16px; font-weight: 600; cursor: pointer; user-select: none; }
.training-col-title::after { content: " ▼"; font-size: 12px; }
.training-col-title.open::after { content: " ▲"; }
.training-col-body p { font-size: 13px; color: #333; line-height: 1.6; margin: 6px 0; }

/* Cases page */
.case-articles { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin: 0 auto 40px; }
.case-article { display: flex; gap: 16px; padding: 16px; border: 1px solid #e8eaed; border-radius: 6px; text-decoration: none; color: inherit; transition: box-shadow 0.2s; }
.case-article:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.case-article img { width: 140px; height: 100px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.case-article h3 { color: #1a3a5c; font-size: 16px; margin: auto 0; line-height: 1.5; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1000px; margin: 0 auto; }
.case-grid img { width: 100%; height: 240px; object-fit: cover; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.section-title { color: #1a3a5c; font-size: 24px; font-weight: 600; }

.hero { position: relative; width: 100%; height: 540px; overflow: hidden; }
#hero-carousel-section { width: max(100%, var(--desktop-min-width)); min-width: var(--desktop-min-width); background: #fff; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
#hero-carousel-section .hero-slide img { object-fit: contain; object-position: top center; }
.hero-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to right, rgba(26,58,92,0.85) 0%, rgba(26,58,92,0.3) 100%);
  display: flex; align-items: center;
}
.hero-content { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; color: var(--white); }
.hero-content h1 { font-size: 36px; font-weight: 700; margin-bottom: 16px; line-height: 1.3; }
.hero-content p { font-size: 18px; opacity: 0.9; max-width: 560px; line-height: 1.8; }

/* Section */
.section { padding: 60px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 28px; color: var(--primary); margin-bottom: 12px; }
.section-header p { color: var(--gray-500); font-size: 15px; }
.section-gray { background: var(--gray-50); }

/* Service Cards */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition); cursor: pointer;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card img { width: 100%; height: 180px; object-fit: cover; }
.service-card-body { padding: 20px; }
.service-card-body h3 { font-size: 17px; color: var(--primary); margin-bottom: 8px; }
.service-card-body p { font-size: 14px; color: var(--gray-500); }

/* News List */
/* News List — homepage uses a 4-column grid, news.html uses row list */
.news-section { display: block; }
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-item { display: flex; gap: 16px; padding: 16px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); transition: var(--transition); }
.news-item:hover { box-shadow: var(--shadow-lg); }
.news-item-img { width: 160px; height: 110px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; }
.news-item-img img { width: 100%; height: 100%; object-fit: fill; }
.news-item-img-placeholder { background: #e5e7eb; display: flex !important; align-items: center; justify-content: center; }
.news-item-img-placeholder svg { width: 40%; height: 40%; color: #9ca3af; }
.news-item-content { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.news-item-content h4 { font-size: 15px; color: var(--gray-900); margin-bottom: 8px; line-height: 1.5; }
.news-item-date { font-size: 13px; color: var(--gray-400); }
/* Homepage/news showcase grid — column count can be configured per article module. */
#home-news-list,
.article-module-list { display: grid; grid-template-columns: repeat(var(--article-columns, 6), 1fr); gap: 16px; align-items: stretch; }
#home-news-list .news-item,
.article-module-list .news-item { display: flex; flex-direction: column; gap: 0; padding: 0; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.08); transition: all .2s; height: 100%; }
#home-news-list .news-item:hover,
.article-module-list .news-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.12); transform: translateY(-2px); }
#home-news-list .news-item-img,
.article-module-list .news-item-img { width: 100%; aspect-ratio: 16/9; border-radius: 0; flex-shrink: 0; }
#home-news-list .news-item-content,
.article-module-list .news-item-content { padding: 10px 12px 12px; gap: 6px; flex: 1; }
#home-news-list .news-item-content h4,
.article-module-list .news-item-content h4 { font-size: 14px; line-height: 1.45; margin-bottom: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
#home-news-list .news-item-date,
.article-module-list .news-item-date { font-size: 12px; color: #9ca3af; margin-top: auto; }
@media (max-width: 767px) { #home-news-list, .article-module-list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { #home-news-list, .article-module-list { grid-template-columns: repeat(2, 1fr); } }

/* News list grid — same look as homepage when viewing a category */
.news-list.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}
.news-list.news-grid .news-item { flex-direction: column; gap: 0; padding: 0; height: 100%; }
.news-list.news-grid .news-item-img { width: 100%; aspect-ratio: 16/9; border-radius: 0; height: auto; flex-shrink: 0; }
.news-list.news-grid .news-item-content { padding: 10px 12px 12px; gap: 6px; }
.news-list.news-grid .news-item-content h4 { font-size: 14px; line-height: 1.45; margin-bottom: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.news-list.news-grid .news-item-date { font-size: 12px; color: #9ca3af; margin-top: auto; }
@media (max-width: 767px) { .news-list.news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .news-list.news-grid { grid-template-columns: repeat(1, 1fr); } }

/* Configurable article module — database layout */
.article-database-section .news-content { min-width: 0; }
.article-database-section .news-content-header { padding: 0 0 16px; border-bottom: 1px solid #e8eaed; margin-bottom: 20px; }
.article-database-section .news-content-header h2 { font-size: 18px; color: var(--gray-900); font-weight: 500; margin: 0 0 6px; }
.article-database-section .news-content-header p { color: var(--gray-500); font-size: 14px; margin: 0; }
.article-database-list { display: flex; flex-direction: column; gap: 16px; }

/* Sidebar Cards */
.sidebar-services { display: flex; flex-direction: column; gap: 16px; }
.sidebar-service-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition); cursor: pointer;
}
.sidebar-service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.sidebar-service-card img { width: 100%; height: 140px; object-fit: cover; }

/* Partners */
.partners-grid { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; }
.partner-item { padding: 16px 24px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.partner-item a { color: var(--gray-500); font-size: 14px; }
.partner-item a:hover { color: var(--primary); }

/* Page Banner */
.page-banner {
  background: linear-gradient(to right, #0057ff, #001f5c);
  padding: 48px 0;
  text-align: center;
  color: var(--white);
}
.page-banner h1 { font-size: 32px; margin-bottom: 10px; }
.page-banner p { font-size: 15px; opacity: 0.8; }

/* Service Detail Cards */
.service-detail-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-detail-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition);
}
.service-detail-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.service-detail-card img { width: 100%; height: 200px; object-fit: cover; }
.service-detail-card-body { padding: 24px; }
.service-detail-card-body h3 { font-size: 18px; color: var(--primary); margin-bottom: 10px; }
.service-detail-card-body p { font-size: 14px; color: var(--gray-500); }

/* Article Detail */
.article-detail { max-width: 800px; margin: 0 auto; padding: 40px 20px; }
.article-detail h1 { font-size: 28px; color: var(--gray-900); margin-bottom: 16px; line-height: 1.4; }
.article-meta { color: var(--gray-400); font-size: 14px; margin-bottom: 32px; padding-bottom: 16px; border-bottom: 1px solid var(--gray-200); }
.article-summary { font-size: 15px; color: #4b5563; background: #f3f4f6; padding: 14px 18px; border-radius: 6px; margin-bottom: 24px; line-height: 1.7; border-left: 3px solid #d1d5db; }
.article-body { font-size: 16px; line-height: 1.8; color: var(--gray-700); overflow-x:auto; }
.article-body p { margin: 0 0 16px; }
.article-body img { max-width: 100%; margin: 16px 0; border-radius: var(--radius); resize: both; overflow: auto; }
.article-body table { width: 100%; min-width: 520px; border-collapse: collapse; margin: 16px 0; }
.article-body table td, .article-body table th { padding: 8px 12px; border: 1px solid var(--gray-200); vertical-align: top; }
.article-body table th { background: #f8fafc; font-weight: 600; color: var(--gray-800); }
/* Quill rich-text formatting — make sure editor output renders on frontend */
.article-body .ql-size-small { font-size: 0.75em; }
.article-body .ql-size-large { font-size: 1.5em; }
.article-body .ql-size-huge { font-size: 2.5em; }
.article-body .ql-align-center { text-align: center; }
.article-body .ql-align-right { text-align: right; }
.article-body .ql-align-justify { text-align: justify; }
.article-body ul, .article-body ol { margin: 12px 0; padding-left: 28px; }
.article-body ul { list-style: disc; }
.article-body ul ul { list-style: circle; }
.article-body ul ul ul { list-style: square; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 4px; }
.article-body blockquote {
  border-left: 4px solid #d1d5db;
  margin: 12px 0;
  padding: 6px 16px;
  color: #6b7280;
  background: #f9fafb;
}
.article-body pre.ql-syntax {
  background: #1e293b;
  color: #e2e8f0;
  padding: 16px;
  border-radius: 6px;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  line-height: 1.6;
  margin: 12px 0;
}
.article-body a { color: #2563eb; text-decoration: underline; word-break: break-all; }
.article-body a:hover { color: #1d4ed8; }
.article-body iframe { display: block; width: 100%; height: 800px; border: 1px solid var(--gray-200); border-radius: var(--radius); margin: 16px 0; background: var(--gray-50); }

/* Contact Form */
.contact-form { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; color: var(--gray-700); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 10px 14px; font-size: 15px;
  border: 1px solid var(--gray-300); border-radius: var(--radius);
  outline: none; transition: var(--transition);
  font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,58,92,0.1); }
.btn {
  display: inline-block; padding: 10px 28px; font-size: 15px; font-weight: 500;
  border: none; border-radius: var(--radius); cursor: pointer; transition: var(--transition);
}
.btn-primary { background: #0057ff; color: var(--white); }
.btn-primary:hover { background: #003fcc; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: #b8330a; }

/* Floating Buttons */
.float-btns { position: fixed; right: 20px; bottom: 120px; display: flex; flex-direction: column; gap: 12px; z-index: 999; }
.float-btn {
  padding: 10px 14px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.2); transition: var(--transition);
  font-size: 14px; font-weight: 500; color: var(--white); border: none; white-space: nowrap;
}
.float-btn-consult { background: #0057ff; }
.float-btn-consult:hover { background: #003fcc; transform: scale(1.05); }
.float-btn-service { background: #0057ff; }
.float-btn-service:hover { background: #003fcc; transform: scale(1.05); }

/* Modal */
.modal-overlay {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); z-index: 2000; justify-content: center; align-items: center;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--white); border-radius: var(--radius-lg); padding: 32px;
  max-width: 500px; width: 90%; position: relative; box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute; top: 12px; right: 16px; background: none; border: none;
  font-size: 24px; cursor: pointer; color: var(--gray-400);
}
.modal h2 { font-size: 22px; color: var(--primary); margin-bottom: 20px; }

/* Footer */
.footer { background: linear-gradient(to right, #0057ff, #001f5c); color: rgba(255,255,255,0.9); padding: 40px 0 20px; position: relative; }
.footer-grid { display: flex; justify-content: center; margin-bottom: 30px; gap: 0; position: relative; }
.footer-banner-img { max-width: 100%; height: auto; display: block; border-radius: 0; }
.footer-friendlinks { position: absolute; right: 75px; bottom: 75px; text-align: left; }
.footer-friendlinks ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-friendlinks li { padding: 2px 0; }
.footer-friendlinks a { color: var(--primary); font-size: 13px; }
.footer-friendlinks a:hover { color: #0057ff; text-decoration: underline; }
.footer-col h4 { color: var(--white); font-size: 16px; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 14px; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; text-align: center; font-size: 13px; }

/* Breadcrumb */
.breadcrumb { padding: 16px 0; font-size: 14px; color: var(--gray-400); }
.breadcrumb a { color: var(--gray-400); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--gray-700); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.pagination button {
  padding: 8px 16px; border: 1px solid var(--gray-300); background: var(--white);
  border-radius: var(--radius); cursor: pointer; font-size: 14px; transition: var(--transition);
}
.pagination button:hover { border-color: var(--primary); color: var(--primary); }
.pagination button.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* Loading */
.loading { text-align: center; padding: 40px; color: var(--gray-400); }
.loading::before { content: ''; display: inline-block; width: 24px; height: 24px; border: 3px solid var(--gray-200); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin-right: 10px; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Fixed layout: always show nav, allow horizontal scroll on small windows */
@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .container { width: var(--desktop-min-width); max-width: none; }
  #home-news-list { grid-template-columns: repeat(6, 1fr); }
  .news-list.news-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 767px) {
  body { min-width: unset; }
  .header { min-width: unset; }
  .container { width: auto; max-width: var(--max-width); }
  .header .container { width: 100%; min-width: unset; flex-wrap: wrap; height: auto; padding: 8px 16px; background: linear-gradient(to right, #0057ff, #001f5c); }
  .logo { width: 100%; min-width: unset; height: 56px; margin-right: 0; padding-left: 16px; }
  .logo img { width: min(300px, calc(100vw - 32px)); }
  .nav-toggle { display: block; }
  .nav {
    display: none; flex-direction: column; width: 100%;
    background: var(--primary-dark); border-radius: 0 0 var(--radius) var(--radius);
    padding: 8px 0;
  }
  .nav.open { display: flex; }
  .nav > li { height: auto; width: 100%; }
  .nav > li > a {
    height: auto; padding: 12px 20px; font-size: 14px; white-space: normal;
  }
  .nav > li > a::after { display: none; }
  .nav .dropdown {
    position: static; box-shadow: none; border-radius: 0; padding: 0 0 0 16px;
    background: rgba(0,0,0,0.15); min-width: unset;
  }
  .nav .dropdown li a { color: rgba(255,255,255,0.8); padding: 8px 24px; font-size: 13px; }
  .nav .dropdown li a:hover { background: rgba(255,255,255,0.1); color: #fff; }
  /* Show dropdown on mobile when parent is tapped (JS toggles .open-sub) */
  .nav > li.open-sub > .dropdown { display: block; }
  .hero { width: 100%; min-width: unset; height: 220px; }
  #hero-carousel-section { width: 100%; min-width: unset; }
  .hero-carousel { height: 240px; }
  .hero-content h1 { font-size: 22px; }
  .hero-content p { font-size: 14px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-detail-list { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .case-articles { grid-template-columns: 1fr; }
  .training-columns { grid-template-columns: 1fr; }
  .partners-grid { flex-direction: column; gap: 12px; }
  .section { padding: 30px 0; }
  .section-header h2 { font-size: 20px; }
  .footer { padding: 20px 0 16px; text-align: center; }
  .footer-grid { display: block; margin-bottom: 0; position: relative; }
  .footer-banner-img { margin-bottom: 0; border-radius: 8px; }
  .footer-friendlinks { position: absolute; right: 0.01%; top: 44%; width: 24%; margin: 0; padding: 0; border: 0; text-align: left; overflow: visible; }
  .footer-friendlinks ul { display: flex; flex-direction: column; gap: 1px; }
  .footer-friendlinks li { padding: 0; }
  .footer-friendlinks a { display: block; font-size: clamp(4px, 1.1vw, 8px); line-height: 1.2; white-space: nowrap; }
  .footer-bottom { font-size: 12px; }
  .float-btns { right: 8px; bottom: 80px; }
  .float-btn { padding: 8px 12px; font-size: 12px; }
  .page-banner { padding: 24px 0; }
  .page-banner h1 { font-size: 22px; }
  .intl-img-wrap { max-width: 100%; }
  .article-detail h1 { font-size: 22px; }
}
@media (max-width: 480px) {
  .hero { height: 180px; }
  .hero-carousel { height: 200px; }
  .case-grid { grid-template-columns: 1fr; }
  #home-news-list, .article-module-list { grid-template-columns: repeat(2, 1fr); }
  .news-list.news-grid { grid-template-columns: repeat(2, 1fr); }
}
