/* ============================================
   TMS - Công ty TNHH Thương mại và Dịch vụ Hàng hải Hà Nội
   Main Stylesheet
   ============================================ */

/* --- CSS Variables / Design Tokens --- */
:root {
  --primary: #003366;
  --primary-dark: #002244;
  --primary-light: #004488;
  --accent: #F5A623;
  --accent-hover: #e6951a;
  --white: #FFFFFF;
  --off-white: #F5F5F5;
  --gray-light: #E8E8E8;
  --gray: #999999;
  --gray-dark: #666666;
  --text-dark: #1A1A1A;
  --text-body: #444444;
  --overlay-dark: rgba(0, 33, 66, 0.7);
  --overlay-light: rgba(0, 51, 102, 0.85);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.18);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --header-height: 90px;
  --header-height-scrolled: 70px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.3;
  font-weight: 700;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Preloader --- */
.preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition);
  background: transparent;
}

.site-header.scrolled {
  background: rgba(0, 34, 68, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.site-header.scrolled .header-main {
  height: var(--header-height-scrolled);
}

.site-header.scrolled .header-logo img {
  height: 45px;
}

/* Top bar */
.header-top {
  background: var(--primary-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 0;
  font-size: 0.8rem;
}

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

.header-top-left {
  display: flex;
  align-items: center;
  gap: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.header-top-left a {
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-top-left a:hover {
  color: var(--accent);
}

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

.header-top-right .social-links {
  display: flex;
  gap: 10px;
}

.header-top-right .social-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  transition: color var(--transition);
}

.header-top-right .social-links a:hover {
  color: var(--accent);
}

/* Main header */
.header-main {
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: height var(--transition);
}

.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-logo {
  flex-shrink: 0;
}

.header-logo img {
  height: 60px;
  transition: height var(--transition);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: flex;
  align-items: center;
  padding: 10px 18px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  transition: color var(--transition);
}

.nav-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-menu > li:hover > a::after,
.nav-menu > li.active > a::after {
  transform: scaleX(1);
}

.nav-menu > li:hover > a,
.nav-menu > li.active > a {
  color: var(--accent);
}

/* Dropdown */
.nav-dropdown-trigger > a .dropdown-arrow {
  margin-left: 5px;
  font-size: 0.65rem;
  transition: transform var(--transition);
}

.nav-dropdown-trigger:hover > a .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 320px;
  background: var(--white);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  padding: 10px 0;
  border-top: 3px solid var(--accent);
}

.nav-dropdown-trigger:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--text-dark);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition);
}

.dropdown-menu li a:hover {
  background: var(--off-white);
  color: var(--primary);
  padding-left: 28px;
}

.dropdown-menu li a .dropdown-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.dropdown-menu li a .dropdown-text {
  flex: 1;
}

.dropdown-menu li + li {
  border-top: 1px solid var(--gray-light);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.header-action-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border-radius: 50%;
  font-size: 1rem;
  transition: all var(--transition);
  position: relative;
}

.header-action-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--accent);
}

.header-action-btn .tooltip {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.7rem;
  background: var(--text-dark);
  color: var(--white);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.header-action-btn:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

/* Language switcher */
.lang-switcher {
  position: relative;
  margin-left: 10px;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
}

.lang-current:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  transition: all var(--transition);
  z-index: 10;
}

.lang-switcher:hover .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown a {
  display: block;
  padding: 8px 15px;
  color: var(--text-dark);
  font-size: 0.85rem;
  transition: all var(--transition);
}

.lang-dropdown a:hover {
  background: var(--off-white);
  color: var(--primary);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Banner / Slider --- */
.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide-bg {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 8s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero-slide-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 33, 66, 0.8) 0%,
    rgba(0, 51, 102, 0.5) 50%,
    rgba(0, 33, 66, 0.7) 100%
  );
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  width: 90%;
  max-width: 900px;
}

.hero-content .hero-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 20px;
  padding: 8px 20px;
  border: 1px solid rgba(245, 166, 35, 0.4);
  border-radius: 30px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 35px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 35px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
}

.hero-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(245, 166, 35, 0.5);
}

/* Slider controls */
.hero-slider-dots {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 5;
}

.hero-slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.hero-slider-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.2);
}

/* Scroll down indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  text-align: center;
  cursor: pointer;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.scroll-indicator .scroll-arrow {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  margin: 0 auto;
  position: relative;
}

.scroll-indicator .scroll-arrow::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollPulse 1.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes scrollPulse {
  0% { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 20px; }
}

/* --- Section Common Styles --- */
.section {
  padding: 100px 0;
}

.section-gray {
  background: var(--off-white);
}

.section-dark {
  background: var(--primary);
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 15px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--primary);
  margin-bottom: 20px;
  position: relative;
}

.section-dark .section-title {
  color: var(--white);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 15px auto 0;
  border-radius: 2px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--gray-dark);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

.section-dark .section-desc {
  color: rgba(255, 255, 255, 0.7);
}

/* --- About Section --- */
.about-section {
  padding: 100px 0;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.about-image:hover img {
  transform: scale(1.03);
}

.about-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  border: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-stats {
  position: absolute;
  bottom: 30px;
  left: 30px;
  background: var(--accent);
  color: var(--white);
  padding: 20px 25px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.about-stats-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.about-stats-label {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.9;
}

.about-content {
  padding-left: 20px;
}

.about-content .about-logo {
  height: 70px;
  margin-bottom: 20px;
}

.about-content .section-tag {
  text-align: left;
}

.about-content h2 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 25px;
  line-height: 1.4;
}

.about-content p {
  color: var(--text-body);
  margin-bottom: 15px;
  line-height: 1.9;
  font-size: 0.95rem;
}

.about-content .highlight-text {
  color: var(--primary);
  font-weight: 600;
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 15px;
  margin: 20px 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 10px;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary .btn-arrow {
  transition: transform var(--transition);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(5px);
}

/* --- Services Section --- */
.services-section {
  padding: 100px 0;
  background: var(--off-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-card:hover .service-card-image img {
  transform: scale(1.1);
}

.service-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 33, 66, 0.6), transparent);
  transition: all var(--transition);
}

.service-card:hover .service-card-image::after {
  height: 100%;
  background: linear-gradient(to top, rgba(0, 33, 66, 0.8), rgba(0, 51, 102, 0.3));
}

.service-card-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 50px;
  height: 50px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  z-index: 2;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.service-card:hover .service-card-icon {
  transform: rotate(360deg) scale(1.1);
}

.service-card-body {
  padding: 25px;
}

.service-card-title {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 700;
  transition: color var(--transition);
}

.service-card:hover .service-card-title {
  color: var(--accent);
}

.service-card-text {
  font-size: 0.9rem;
  color: var(--gray-dark);
  line-height: 1.7;
  margin-bottom: 15px;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all var(--transition);
}

.service-card-link:hover {
  color: var(--accent);
  gap: 12px;
}

/* --- Partners Section --- */
.partners-section {
  padding: 80px 0;
  background: var(--white);
  overflow: hidden;
}

.partners-track {
  display: flex;
  gap: 50px;
  animation: scrollPartners 25s linear infinite;
  width: max-content;
}

.partners-track:hover {
  animation-play-state: paused;
}

.partner-logo {
  height: 55px;
  width: auto;
  object-fit: contain;
  opacity: 0.5;
  transition: all var(--transition);
  filter: grayscale(100%);
  flex-shrink: 0;
}

.partner-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.1);
}

.partner-logo.partner-text {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 55px;
  min-width: 150px;
  padding: 0 24px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 1px;
  color: var(--primary);
  background: var(--white);
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-md);
  filter: none;
  opacity: 0.75;
}

.partner-logo.partner-text:hover {
  opacity: 1;
  color: var(--accent);
  border-color: var(--accent);
  background: var(--white);
  transform: scale(1.05);
}

@keyframes scrollPartners {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- News Section --- */
.news-section {
  padding: 100px 0;
  background: var(--off-white);
}

.news-tabs {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.news-tab {
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-dark);
  background: var(--white);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.news-tab:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.news-tab.active {
  color: var(--white);
  background: var(--primary);
  border-color: var(--primary);
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.news-card-featured {
  grid-row: span 2;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.news-card-featured:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.news-card-featured .news-card-image {
  height: 300px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  transition: all var(--transition);
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.news-card-image {
  overflow: hidden;
  position: relative;
}

.news-card .news-card-image {
  width: 200px;
  flex-shrink: 0;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.news-card:hover .news-card-image img,
.news-card-featured:hover .news-card-image img {
  transform: scale(1.05);
}

.news-card-date {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--accent);
  color: var(--white);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
}

.news-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-card-category {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.news-card-title {
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  transition: color var(--transition);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card:hover .news-card-title,
.news-card-featured:hover .news-card-title {
  color: var(--primary);
}

.news-card-featured .news-card-title {
  font-size: 1.2rem;
  -webkit-line-clamp: 3;
}

.news-card-excerpt {
  font-size: 0.88rem;
  color: var(--gray-dark);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 12px;
  transition: all var(--transition);
}

.news-card-readmore:hover {
  color: var(--accent);
  gap: 10px;
}

.news-more-btn {
  text-align: center;
  margin-top: 40px;
}

/* --- Map / Office Section --- */
.offices-section {
  padding: 100px 0;
  background: var(--primary);
  position: relative;
  overflow: hidden;
}

.offices-section::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></svg>') repeat;
  opacity: 0.5;
}

.offices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}

.office-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 35px 30px;
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}

.office-card:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--accent);
  transform: translateY(-5px);
}

.office-card .office-icon {
  width: 50px;
  height: 50px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 20px;
}

.office-card h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 15px;
}

.office-card .office-detail {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  margin-bottom: 10px;
  line-height: 1.6;
}

.office-card .office-detail .office-detail-icon {
  color: var(--accent);
  margin-top: 3px;
  flex-shrink: 0;
}

/* --- Footer --- */
.site-footer {
  background: #001a33;
  color: rgba(255, 255, 255, 0.7);
  padding-top: 70px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .footer-logo {
  height: 60px;
  margin-bottom: 15px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.footer-brand .footer-company-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 15px;
  line-height: 1.4;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 12px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col ul li a::before {
  content: '›';
  color: var(--accent);
  font-weight: 700;
}

.footer-col ul li a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
}

.footer-contact-item .contact-icon {
  color: var(--accent);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-contact-item span {
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.footer-contact-item a:hover {
  color: var(--accent);
}

.footer-hotline {
  margin-top: 20px;
  padding: 15px 20px;
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.3);
  border-radius: var(--radius-md);
  text-align: center;
}

.footer-hotline .hotline-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 600;
}

.footer-hotline .hotline-number {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-top: 5px;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

/* --- Scroll animation --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Search Overlay --- */
.search-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 34, 68, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-overlay-inner {
  text-align: center;
  width: 90%;
  max-width: 600px;
}

.search-overlay h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 25px;
  font-weight: 600;
}

.search-overlay-input {
  width: 100%;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: 1.1rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition);
}

.search-overlay-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.search-overlay-input:focus {
  border-color: var(--accent);
}

.search-close-btn {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  transition: all var(--transition);
}

.search-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
}

/* --- Back to top --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
}

/* --- Responsive --- */
@media (max-width: 1280px) {
  .container { max-width: 1100px; }
}

@media (max-width: 1024px) {
  .nav-menu > li > a {
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .offices-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
    --header-height-scrolled: 60px;
  }

  .header-top { display: none; }

  .mobile-menu-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--primary-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 30px 30px;
    transition: right var(--transition);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
  }

  .main-nav.active { right: 0; }

  .nav-menu {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .nav-menu > li > a {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
  }

  .nav-menu > li > a::after { display: none; }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.05);
    border-top: none;
    border-radius: 0;
    display: none;
    padding: 0;
  }

  .dropdown-menu.mobile-open {
    display: block;
  }

  .dropdown-menu li a {
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 15px;
  }

  .dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent);
  }

  .dropdown-menu li + li {
    border-top-color: rgba(255, 255, 255, 0.05);
  }

  .header-actions { display: none; }

  .lang-switcher {
    margin-left: 0;
    margin-top: 20px;
  }

  .lang-current {
    border-color: rgba(255, 255, 255, 0.2);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-content { padding-left: 0; }

  .about-image img { height: 350px; }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-card {
    flex-direction: column;
  }

  .news-card .news-card-image {
    width: 100%;
    height: 200px;
  }

  .offices-grid {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-content h1 { font-size: 1.8rem; }
  .hero-content p { font-size: 0.95rem; }

  .section { padding: 60px 0; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.5rem; }
  .hero-btn { padding: 12px 25px; font-size: 0.85rem; }
  .hero-slider-dots { bottom: 70px; }

  .news-tabs {
    gap: 3px;
  }

  .news-tab {
    padding: 8px 18px;
    font-size: 0.8rem;
  }

  .service-card-image { height: 180px; }
}

/* Mobile overlay */
.mobile-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* --- Page Banner (Sub-pages) --- */
.page-banner { position: relative; height: 350px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--primary-dark); }
.page-banner-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.page-banner-content { position: relative; z-index: 2; text-align: center; color: var(--white); }
.page-banner-content h1 { font-size: 2.5rem; color: var(--white); margin-bottom: 10px; font-weight: 800; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.breadcrumb { display: flex; gap: 10px; justify-content: center; font-size: 0.9rem; font-weight: 500; }
.breadcrumb a { color: var(--accent); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { opacity: 0.7; }
/* --- Contact Page --- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info-box { background: var(--off-white); padding: 40px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.contact-info-box h3 { margin-bottom: 25px; color: var(--primary); font-size: 1.5rem; }
.contact-form { background: var(--white); padding: 40px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-light); }
.form-group { margin-bottom: 20px; }
.form-control { width: 100%; padding: 12px 15px; border: 1px solid var(--gray-light); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 1rem; transition: border-color var(--transition); }
.form-control:focus { outline: none; border-color: var(--accent); }
textarea.form-control { resize: vertical; min-height: 120px; }
.map-container { margin-top: 50px; height: 450px; width: 100%; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.map-container iframe { width: 100%; height: 100%; border: none; }
@media (max-width: 768px) { .contact-wrap { grid-template-columns: 1fr; } .page-banner { height: 250px; } .page-banner-content h1 { font-size: 2rem; }}
