/* === Custom Properties === */
:root {
  --color-primary: #065CA8;
  --color-primary-light: #84BFEC;
  --color-primary-bg: #f0f7ff;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-text: #1a202c;
  --color-text-secondary: #4a5568;
  --color-text-muted: #718096;
  --color-border: #e2e8f0;
  --color-footer-bg: #1a202c;
  --color-footer-text: #a0aec0;
  --font-family: 'M PLUS 1', sans-serif;
  --max-width: 1100px;
  --header-height: 60px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-bg);
}
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

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

/* === Top Bar === */
.top-bar {
  background: var(--color-primary);
  color: white;
  font-size: 13px;
  padding: 6px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a { color: white; }
.top-bar .contact-info { display: flex; gap: 12px; align-items: center; }
.top-bar-company { font-weight: 700; }
.top-bar-sep { opacity: 0.5; }
.top-bar .lang-switch { display: flex; gap: 8px; }
.top-bar .lang-switch a { opacity: 0.7; }
.top-bar .lang-switch a.active { opacity: 1; font-weight: 700; }
@media (max-width: 767px) {
  .top-bar { display: none; }
}

/* === Main Nav === */
.main-nav {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.main-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.site-logo img { height: 36px; width: auto; }
.site-logo span {
  font-weight: 700;
  font-size: 18px;
  color: var(--color-text);
}
.nav-links { display: flex; gap: 4px; align-items: center; list-style: none; }
.nav-links a {
  color: var(--color-text-secondary);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 4px;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--color-primary); text-decoration: none; }
.nav-links .nav-external {
  background: var(--color-primary);
  color: white;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 13px;
}
.nav-links .nav-external:hover { background: #054a8a; color: white; text-decoration: none; }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}
@media (max-width: 767px) {
  .hamburger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 16px; font-size: 15px; }
}

/* === Page Title Bar === */
.page-title-bar {
  background: var(--color-primary-bg);
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}
.page-title-bar h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}
.breadcrumb {
  font-size: 13px;
  color: var(--color-text-muted);
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .sep { margin: 0 6px; }

/* === Footer === */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 48px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-grid h3 {
  color: white;
  font-size: 15px;
  margin-bottom: 16px;
}
.footer-grid p,
.footer-grid li { font-size: 13px; line-height: 2; }
.footer-grid ul { list-style: none; }
.footer-grid a { color: var(--color-footer-text); }
.footer-grid a:hover { color: white; }
.social-links { display: flex; gap: 16px; margin-top: 8px; }
.social-links a {
  color: var(--color-footer-text);
  font-size: 14px;
}
.social-links a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid #2d3748;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { color: var(--color-footer-text); }
.footer-legal a:hover { color: white; }
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* === Hero Slideshow === */
.hero-slideshow {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
}
.hero-slide {
  display: none;
  width: 100%;
  height: 100%;
}
.hero-slide.active {
  display: block;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (max-width: 767px) {
  .hero-slideshow { height: 200px; }
}

/* === News Ticker === */
.news-ticker {
  background: var(--color-primary-bg);
  padding: 10px 0;
  font-size: 14px;
}
.news-ticker .container {
  display: flex;
  align-items: center;
  gap: 10px;
}
.news-ticker .badge {
  background: var(--color-primary);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.news-ticker a { color: var(--color-primary); }

/* === Section === */
.section { padding: 56px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}
.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-primary);
  margin: 12px auto 32px;
}

/* === Service Cards === */
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: white;
  border-radius: 8px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
}
.service-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.service-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.service-card h3 { font-size: 16px; margin-bottom: 8px; }
.service-card p { font-size: 13px; color: var(--color-text-secondary); }
@media (max-width: 767px) {
  .service-cards { grid-template-columns: 1fr; }
}
.section-link {
  text-align: center;
  margin-top: 28px;
  font-size: 14px;
}

/* === News List (Top Page) === */
.news-list { list-style: none; }
.news-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  gap: 16px;
  align-items: baseline;
}
.news-list .date {
  font-size: 13px;
  color: var(--color-text-muted);
  flex-shrink: 0;
  width: 90px;
}
.news-list a { color: var(--color-text); font-size: 15px; }
.news-list a:hover { color: var(--color-primary); }

/* === Content === */
.content { padding: 40px 0; }
.content-body {
  max-width: 800px;
  margin: 0 auto;
}
.content-body h2 {
  font-size: 22px;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary-bg);
}
.content-body h3 { font-size: 18px; margin: 32px 0 12px; }
.content-body h4 { font-size: 16px; margin: 24px 0 8px; }
.content-body p { margin-bottom: 16px; }
.content-body ul, .content-body ol { margin-bottom: 16px; padding-left: 24px; }
.content-body li { margin-bottom: 4px; }
.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 14px;
}
.content-body th, .content-body td {
  border: 1px solid var(--color-border);
  padding: 10px 12px;
  text-align: left;
}
.content-body th { background: var(--color-bg-alt); font-weight: 700; }
.content-body hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 32px 0;
}
.content-body img { border-radius: 6px; margin: 16px 0; }

/* === News Single === */
.news-meta {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}
.back-link {
  margin-top: 40px;
  font-size: 14px;
}

/* === List Page === */
.page-list { list-style: none; }
.page-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}
.page-list .date {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-right: 12px;
}
.page-list a { color: var(--color-text); font-size: 15px; }
.page-list a:hover { color: var(--color-primary); }

/* === Pagination === */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.pagination a, .pagination span {
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 14px;
  color: var(--color-text-secondary);
}
.pagination a:hover { border-color: var(--color-primary); color: var(--color-primary); text-decoration: none; }
.pagination .active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}
