/* ============================================
   LGIO ENGINEERING - Global Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Noto+Sans+JP:wght@300;400;500&display=swap');

:root {
  --green-dark: #1a5c2a;
  --green-main: #2e7d32;
  --green-mid: #388e3c;
  --green-light: #43a047;
  --green-pale: #e8f5e9;
  --green-accent: #00c853;
  --gray-dark: #1c1c1c;
  --gray-mid: #424242;
  --gray-light: #f5f5f5;
  --white: #ffffff;
  --sidebar-width: 260px;
  --navbar-height: 64px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
  --radius: 8px;
}

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

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--gray-light);
  color: var(--gray-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============ NAVBAR ============ */
.lgio-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-height);
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-main) 60%, var(--green-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.lgio-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.lgio-brand .brand-icon {
  width: 40px; height: 40px;
  background: var(--green-accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 16px;
  color: var(--green-dark);
  letter-spacing: -1px;
}

.lgio-brand .brand-text {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 20px;
  color: var(--white);
  line-height: 1;
}
.lgio-brand .brand-sub {
  font-size: 11px; color: rgba(255,255,255,0.7);
  letter-spacing: 1.5px; text-transform: uppercase;
}

.navbar-nav-main {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.navbar-nav-main > li {
  position: relative;
}

.navbar-nav-main > li > a,
.navbar-nav-main > li > .nav-link-btn {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  display: flex; align-items: center; gap: 5px;
  transition: var(--transition);
  background: none; border: none; cursor: pointer;
  white-space: nowrap;
  font-family: 'Noto Sans JP', sans-serif;
}

.navbar-nav-main > li > a:hover,
.navbar-nav-main > li > .nav-link-btn:hover,
.navbar-nav-main > li > a.active {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.nav-arrow { font-size: 10px; transition: transform 0.2s; }
.nav-has-dropdown:hover .nav-arrow { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  padding: 8px 0;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 100;
  border-top: 3px solid var(--green-main);
}

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

.nav-dropdown a {
  display: block;
  padding: 10px 18px;
  color: var(--gray-dark);
  text-decoration: none;
  font-size: 13.5px;
  transition: var(--transition);
}
.nav-dropdown a:hover {
  background: var(--green-pale);
  color: var(--green-main);
  padding-left: 24px;
}
.nav-dropdown .dropdown-label {
  font-size: 10px; font-weight: 700;
  color: var(--green-main);
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 10px 18px 4px;
  border-top: 1px solid #f0f0f0;
}
.nav-dropdown .dropdown-label:first-child { border-top: none; }

.navbar-actions {
  display: flex; align-items: center; gap: 10px;
}

.btn-login {
  background: var(--green-accent);
  color: var(--green-dark);
  border: none; border-radius: 6px;
  padding: 8px 18px;
  font-weight: 700; font-size: 13px;
  cursor: pointer; text-decoration: none;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.5px;
  transition: var(--transition);
}
.btn-login:hover { background: #00e676; transform: translateY(-1px); }

.hamburger-btn {
  display: none;
  background: none; border: none;
  color: white; cursor: pointer;
  font-size: 22px; padding: 6px;
}

/* ============ LAYOUT ============ */
.lgio-layout {
  display: flex;
  margin-top: var(--navbar-height);
  min-height: calc(100vh - var(--navbar-height));
}

/* ============ SIDEBAR ============ */
.lgio-sidebar {
  width: var(--sidebar-width);
  background: var(--white);
  border-right: 1px solid #e0e0e0;
  position: fixed;
  top: var(--navbar-height);
  left: 0; bottom: 0;
  overflow-y: auto;
  transition: transform 0.3s ease;
  z-index: 900;
  padding-bottom: 24px;
}

.sidebar-section { padding: 16px 0 8px; }
.sidebar-section-title {
  font-size: 10px; font-weight: 700;
  color: var(--green-main);
  text-transform: uppercase; letter-spacing: 2px;
  padding: 0 20px 8px;
}

.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 20px;
  color: var(--gray-mid);
  text-decoration: none;
  font-size: 13.5px;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.sidebar-link:hover, .sidebar-link.active {
  background: var(--green-pale);
  color: var(--green-main);
  border-left-color: var(--green-main);
}
.sidebar-link .s-icon { width: 20px; text-align: center; font-size: 16px; }

.sidebar-divider {
  border: none; border-top: 1px solid #f0f0f0;
  margin: 8px 16px;
}

.sidebar-contact-box {
  margin: 16px 16px 0;
  background: var(--green-pale);
  border-radius: var(--radius);
  padding: 16px;
  border-left: 4px solid var(--green-main);
}
.sidebar-contact-box h4 {
  font-size: 13px; font-weight: 700;
  color: var(--green-dark); margin-bottom: 10px;
}
.sidebar-contact-box p {
  font-size: 12px; color: var(--gray-mid);
  line-height: 1.7; margin: 0;
}
.sidebar-contact-box a { color: var(--green-main); text-decoration: none; }

/* ============ MAIN CONTENT ============ */
.lgio-main {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-width: 0;
}

/* ============ HERO ============ */
.lgio-hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: var(--green-dark);
}

.hero-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0.45;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,92,42,0.85) 0%, rgba(0,0,0,0.4) 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 24px;
}

.hero-overlay h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  line-height: 1.1;
}

.hero-overlay .hero-accent {
  color: var(--green-accent);
}

.hero-overlay p {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  max-width: 580px;
  margin: 16px auto 28px;
  line-height: 1.7;
}

.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}

.btn-primary-lgio {
  background: var(--green-accent);
  color: var(--green-dark);
  border: none; border-radius: 6px;
  padding: 12px 28px;
  font-weight: 700; font-size: 14px;
  cursor: pointer; text-decoration: none;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 1px;
  transition: var(--transition);
  display: inline-block;
}
.btn-primary-lgio:hover { background: #00e676; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,200,83,0.4); }

.btn-outline-lgio {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 6px;
  padding: 12px 28px;
  font-weight: 700; font-size: 14px;
  cursor: pointer; text-decoration: none;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 1px;
  transition: var(--transition);
  display: inline-block;
}
.btn-outline-lgio:hover { border-color: white; background: rgba(255,255,255,0.1); }

/* ============ CONTENT SECTIONS ============ */
.lgio-section {
  padding: 60px 48px;
}

.lgio-section.alt-bg {
  background: var(--white);
}

.section-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 40px;
}

.section-header h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 32px; font-weight: 700;
  color: var(--gray-dark);
  position: relative;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 48px; height: 4px;
  background: var(--green-accent);
  border-radius: 2px;
  margin-top: 6px;
}

/* ============ SERVICE CARDS ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid #e8f5e9;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-main), var(--green-accent));
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(46,125,50,0.15);
}

.service-icon {
  width: 64px; height: 64px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--green-main);
}

.service-card h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px; font-weight: 700;
  color: var(--green-dark); margin-bottom: 12px;
}

.service-card p {
  font-size: 13.5px; color: #666;
  line-height: 1.7;
}

.service-card .btn-sm {
  display: inline-block;
  margin-top: 20px;
  background: var(--green-pale);
  color: var(--green-main);
  border: 1px solid var(--green-main);
  border-radius: 4px;
  padding: 7px 18px;
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.service-card .btn-sm:hover {
  background: var(--green-main);
  color: white;
}

/* ============ GALLERY ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative; overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4/3;
  background: #e0e0e0;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(26,92,42,0.9), transparent);
  color: white;
  padding: 24px 12px 10px;
  font-size: 13px; font-weight: 600;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.5px;
  transform: translateY(0);
}

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  font-size: 14.5px; line-height: 1.85;
  color: #555; margin-bottom: 16px;
}

.about-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: 8px;
}

.stat-box {
  background: var(--white);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid var(--green-accent);
}
.stat-box .stat-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 36px; font-weight: 700;
  color: var(--green-main);
  line-height: 1;
}
.stat-box .stat-label {
  font-size: 12px; color: #888; margin-top: 6px;
}

.about-image img {
  width: 100%; border-radius: 12px;
  box-shadow: var(--shadow-md);
}

/* ============ CONTACT FORM ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-box {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  border-radius: 12px;
  padding: 40px;
  color: white;
}
.contact-info-box h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 24px; font-weight: 700;
  margin-bottom: 24px;
}
.contact-info-item {
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 20px;
}
.contact-info-item .ci-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.contact-info-item p { font-size: 14px; line-height: 1.6; opacity: 0.9; }
.contact-info-item a { color: var(--green-accent); text-decoration: none; }

.contact-form-box {
  background: var(--white);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.form-group-lgio {
  margin-bottom: 20px;
}
.form-group-lgio label {
  display: block; font-size: 13px;
  font-weight: 600; color: var(--gray-dark);
  margin-bottom: 6px;
}
.form-group-lgio input,
.form-group-lgio textarea,
.form-group-lgio select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: 'Noto Sans JP', sans-serif;
  transition: var(--transition);
  background: #fafafa;
}
.form-group-lgio input:focus,
.form-group-lgio textarea:focus,
.form-group-lgio select:focus {
  outline: none;
  border-color: var(--green-main);
  background: white;
  box-shadow: 0 0 0 3px rgba(46,125,50,0.1);
}
.form-group-lgio textarea { resize: vertical; min-height: 120px; }

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--green-main), var(--green-light));
  color: white; border: none;
  border-radius: 6px; padding: 13px;
  font-size: 15px; font-weight: 700;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 1px;
  cursor: pointer; transition: var(--transition);
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46,125,50,0.4);
}

/* ============ MAP ============ */
.map-section img {
  width: 100%; max-height: 380px;
  object-fit: cover; display: block;
}

/* ============ FOOTER ============ */
.lgio-footer {
  background: var(--gray-dark);
  color: rgba(255,255,255,0.8);
  padding: 40px 48px;
  margin-left: var(--sidebar-width);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand .brand-logo {
  font-family: 'Rajdhani', sans-serif;
  font-size: 24px; font-weight: 700;
  color: var(--green-accent); margin-bottom: 12px;
}
.footer-brand p {
  font-size: 13px; line-height: 1.7; opacity: 0.75;
}

.footer-col h4 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px; font-weight: 700;
  color: var(--white);
  text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.65); text-decoration: none;
  font-size: 13px; transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--green-accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: rgba(255,255,255,0.5);
  flex-wrap: wrap; gap: 8px;
}

/* ============ PAGE HERO (sub pages) ============ */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  padding: 48px 48px 40px;
  color: white;
}
.page-hero h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 40px; font-weight: 700;
  margin-bottom: 8px;
}
.page-hero p { opacity: 0.8; font-size: 15px; }

/* Breadcrumb */
.breadcrumb-lgio {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,0.7);
  margin-top: 16px; flex-wrap: wrap;
}
.breadcrumb-lgio a { color: var(--green-accent); text-decoration: none; }
.breadcrumb-lgio span { opacity: 0.5; }

/* ============ LOGIN PAGE ============ */
.login-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}

.login-card {
  background: white;
  border-radius: 16px;
  padding: 48px 40px;
  width: 100%; max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-logo {
  text-align: center; margin-bottom: 32px;
}
.login-logo .logo-box {
  width: 64px; height: 64px;
  background: var(--green-main);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px; font-weight: 700; color: white;
}
.login-logo h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 24px; font-weight: 700;
  color: var(--green-dark);
}
.login-logo p { font-size: 13px; color: #888; margin-top: 4px; }

/* ============ MOBILE OVERLAY ============ */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 850;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hamburger-btn { display: flex; }
  
  .navbar-nav-main {
    display: none;
    position: fixed;
    top: var(--navbar-height);
    left: 0; right: 0;
    background: var(--green-dark);
    flex-direction: column;
    padding: 16px 0;
    z-index: 999;
    box-shadow: var(--shadow-md);
    gap: 0;
  }
  .navbar-nav-main.mobile-open { display: flex; }
  
  .navbar-nav-main > li > a,
  .navbar-nav-main > li > .nav-link-btn {
    border-radius: 0; padding: 12px 24px;
  }

  .nav-dropdown {
    position: static;
    opacity: 1; visibility: visible;
    transform: none; box-shadow: none;
    border-radius: 0; border: none; border-top: none;
    background: rgba(0,0,0,0.2);
    display: none;
    padding: 0;
  }
  .nav-dropdown.mobile-open { display: block; }
  .nav-dropdown a { color: rgba(255,255,255,0.8); padding: 10px 40px; }
  .nav-dropdown a:hover { background: rgba(255,255,255,0.1); color: white; padding-left: 40px; }

  .lgio-sidebar {
    transform: translateX(-100%);
  }
  .lgio-sidebar.mobile-open {
    transform: translateX(0);
  }
  .sidebar-overlay.active { display: block; }

  .lgio-main { margin-left: 0; }
  .lgio-footer { margin-left: 0; }

  .lgio-section { padding: 40px 20px; }
  .page-hero { padding: 32px 20px; }
  .contact-info-box, .contact-form-box { padding: 24px; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .lgio-footer { padding: 32px 20px; }

  .hero-overlay h1 { font-size: 36px; }
  .lgio-hero { height: 380px; }
  
  .btn-login { padding: 7px 14px; font-size: 12px; }
}

@media (max-width: 480px) {
  .hero-overlay p { font-size: 14px; }
  .services-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============ UTILITIES ============ */
.text-green { color: var(--green-main); }
.badge-new {
  background: var(--green-accent);
  color: var(--green-dark);
  font-size: 9px; font-weight: 700;
  padding: 2px 6px; border-radius: 3px;
  vertical-align: middle; letter-spacing: 0.5px;
}

/* ============ RECRUITMENT / TUYEN DUNG PAGE ============ */
.page-container {
  max-width: 900px; margin: 0 auto;
  padding: 48px 48px;
}
@media(max-width:768px){ .page-container { padding: 24px 16px; } }

.article-body h4 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px; font-weight: 700;
  color: var(--green-dark); margin: 28px 0 10px;
}
.article-body h5 {
  font-size: 16px; font-weight: 700;
  color: var(--green-main); margin: 20px 0 8px;
}
.article-body p { font-size: 14.5px; line-height: 1.85; color: #555; margin-bottom: 12px; }
.article-body ul { padding-left: 20px; margin-bottom: 12px; }
.article-body ul li { font-size: 14px; line-height: 1.8; color: #555; }
.article-img { border-radius: 12px; box-shadow: var(--shadow-md); margin: 24px 0; max-width: 100%; }
