/* ==========================================================================
   FLATSOME CORE FRAMEWORK & FPT TELECOM LAYOUT
   ========================================================================== */
:root {
  --primary-color: #F37021;
  --secondary-color: #0066B3;
  --success-color: #51B848;
  --fpt-orange: #F37021;
  --fpt-orange-hover: #d95b0e;
  --fpt-blue: #0066B3;
  --fpt-blue-dark: #003e70;
  --fpt-green: #51B848;
  --fpt-bg: #F4F6F9;
  --fpt-text: #1E293B;
  --fpt-border: #E2E8F0;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--fpt-text);
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--fpt-blue);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--fpt-orange);
}

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

/* FLATSOME GRID & CONTAINER SYSTEM */
.container,
.row,
.fpt-container {
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.row.row-collapse {
  margin-left: 0;
  margin-right: 0;
}

.row.row-full-width {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.col {
  padding-left: 15px;
  padding-right: 15px;
  width: 100%;
}

.row-collapse > .col {
  padding-left: 0;
  padding-right: 0;
}

.large-12 { width: 100%; }
.large-9  { width: 75%; }
.large-8  { width: 66.66667%; }
.large-6  { width: 50%; }
.large-4  { width: 33.33333%; }
.large-3  { width: 25%; }

.section {
  position: relative;
  width: 100%;
}

/* ==========================================================================
   FLATSOME HEADER (TOPBAR + HEADER MAIN + MOBILE DRAWER)
   ========================================================================== */
.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 9990;
  background: #fff;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.top-bar {
  background: var(--fpt-blue-dark);
  color: #fff;
  font-size: 13px;
  padding: 7px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-bar a {
  color: #fff;
  font-weight: 500;
}

.top-bar a:hover {
  color: #FFD166;
}

/* HEADER MAIN */
.header-main {
  background: #ffffff;
  padding: 12px 0;
  border-bottom: 3px solid var(--fpt-orange);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* LOGO FPT */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
}

.fpt-logo-bars {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}

.fpt-logo-bars span {
  display: inline-block;
  width: 14px;
  height: 26px;
  border-radius: 4px;
  transform: skewX(-16deg);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  line-height: 26px;
  text-align: center;
}

.fpt-logo-bars .bar-blue { background: #0066B3; }
.fpt-logo-bars .bar-orange { background: #F37021; }
.fpt-logo-bars .bar-green { background: #51B848; }

.site-logo-text {
  display: flex;
  flex-direction: column;
}

.site-logo-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--fpt-blue);
  line-height: 1.1;
  letter-spacing: -0.3px;
}

.site-logo-sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--fpt-orange);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* PRIMARY NAVIGATION */
.main-navigation .nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-navigation .nav > li > a {
  color: var(--fpt-text);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  padding: 8px 2px;
  position: relative;
}

.main-navigation .nav > li > a:hover,
.main-navigation .nav > li.current-menu-item > a {
  color: var(--fpt-orange);
}

.main-navigation .nav > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--fpt-orange);
  transition: width 0.25s ease;
}

.main-navigation .nav > li > a:hover::after,
.main-navigation .nav > li.current-menu-item > a::after {
  width: 100%;
}

/* HEADER HOTLINE BUTTON */
.header-cta-btn {
  background: var(--fpt-orange);
  color: #fff !important;
  font-weight: 800;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(243, 112, 33, 0.35);
  white-space: nowrap;
}

.header-cta-btn:hover {
  background: var(--fpt-orange-hover);
  transform: translateY(-1px);
}

/* MOBILE MENU TOGGLE */
.mobile-nav-toggle {
  display: none;
  background: var(--fpt-blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 18px;
  cursor: pointer;
}

/* ==========================================================================
   BLOG / ARCHIVE / SINGLE POST LAYOUT (CHUẨN SEO TỈNH THÀNH FPT)
   ========================================================================== */
.fpt-page-wrap {
  padding: 40px 0 60px;
}

.fpt-post-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 35px;
}

.fpt-article-card {
  background: #fff;
  border: 1px solid var(--fpt-border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.fpt-article-card h2 {
  margin-top: 0;
  font-size: 22px;
}

.fpt-sidebar-box {
  background: var(--fpt-bg);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 24px;
  border-top: 4px solid var(--fpt-orange);
}

.fpt-sidebar-box h3 {
  margin-top: 0;
  font-size: 18px;
  color: var(--fpt-blue);
}

/* ==========================================================================
   FLATSOME FOOTER 4 CỘT CHUẨN FPT TELECOM
   ========================================================================== */
.footer-wrapper {
  background: #0B2545;
  color: #E2E8F0;
  padding-top: 55px;
  border-top: 5px solid var(--fpt-orange);
}

.footer-widgets-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 30px;
  padding-bottom: 40px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--fpt-orange);
  display: inline-block;
}

.footer-col p,
.footer-col li {
  font-size: 14px;
  color: #CBD5E1;
  line-height: 1.7;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 9px;
}

.footer-links a {
  color: #CBD5E1;
}

.footer-links a:hover {
  color: var(--fpt-orange);
  padding-left: 4px;
}

.absolute-footer {
  background: #06172E;
  padding: 16px 0;
  text-align: center;
  font-size: 13.5px;
  color: #94A3B8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 992px) {
  .large-9, .large-8, .large-6, .large-4, .large-3 {
    width: 100%;
  }
  .mobile-nav-toggle {
    display: inline-block;
  }
  .main-navigation {
    display: none;
    width: 100%;
    margin-top: 12px;
  }
  .main-navigation.open {
    display: block;
  }
  .main-navigation .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    background: var(--fpt-bg);
    padding: 15px;
    border-radius: 8px;
  }
  .header-inner {
    flex-wrap: wrap;
  }
  .fpt-post-grid,
  .footer-widgets-grid {
    grid-template-columns: 1fr;
  }
  .top-bar-right {
    display: none;
  }
}
