/* =========================================================
   TAILWIND THEME - Thay thế Bootstrap, tối ưu visual
   ========================================================= */

/* CSS Variables */
:root {
  --brand-red:   #be212a;
  --brand-blue:  #0067ac;
  --brand-light: #00b1e7;
  --font-main: 'Inter', 'Roboto', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  --shadow-card: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.16);
  --radius: 8px;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; width: 100%; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); }

/* =========================================================
   GRID SYSTEM — thay Bootstrap .row/.col-*
   ========================================================= */
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 768px) { .container { width: 750px; } }
@media (min-width: 992px) { .container { width: 970px; } }
@media (min-width: 1200px) { .container { width: 1170px; } }

.row {
  margin-right: -15px;
  margin-left: -15px;
}
.row::before, .row::after {
  content: " ";
  display: table;
}
.row::after {
  clear: both;
}

[class*="col-"] {
  position: relative;
  min-height: 1px;
  padding-right: 15px;
  padding-left: 15px;
  float: left; /* Bootstrap 3 compatibility */
}

/* Extra Small */
.col-xs-12 { width: 100%; }
.col-xs-11 { width: 91.66666667%; }
.col-xs-10 { width: 83.33333333%; }
.col-xs-9  { width: 75%; }
.col-xs-8  { width: 66.66666667%; }
.col-xs-7  { width: 58.33333333%; }
.col-xs-6  { width: 50%; }
.col-xs-5  { width: 41.66666667%; }
.col-xs-4  { width: 33.33333333%; }
.col-xs-3  { width: 25%; }
.col-xs-2  { width: 16.66666667%; }
.col-xs-1  { width: 8.33333333%; }

/* Small */
@media (min-width: 768px) {
  .col-sm-12 { width: 100%; }
  .col-sm-11 { width: 91.66666667%; }
  .col-sm-10 { width: 83.33333333%; }
  .col-sm-9  { width: 75%; }
  .col-sm-8  { width: 66.66666667%; }
  .col-sm-7  { width: 58.33333333%; }
  .col-sm-6  { width: 50%; }
  .col-sm-5  { width: 41.66666667%; }
  .col-sm-4  { width: 33.33333333%; }
  .col-sm-3  { width: 25%; }
  .col-sm-2  { width: 16.66666667%; }
  .col-sm-1  { width: 8.33333333%; }
}

/* Medium */
@media (min-width: 992px) {
  .col-md-12 { width: 100%; }
  .col-md-11 { width: 91.66666667%; }
  .col-md-10 { width: 83.33333333%; }
  .col-md-9  { width: 75%; }
  .col-md-8  { width: 66.66666667%; }
  .col-md-7  { width: 58.33333333%; }
  .col-md-6  { width: 50%; }
  .col-md-5  { width: 41.66666667%; }
  .col-md-4  { width: 33.33333333%; }
  .col-md-3  { width: 25%; }
  .col-md-2  { width: 16.66666667%; }
  .col-md-1  { width: 8.33333333%; }
}

/* Large */
@media (min-width: 1200px) {
  .col-lg-12 { width: 100%; }
  .col-lg-11 { width: 91.66666667%; }
  .col-lg-10 { width: 83.33333333%; }
  .col-lg-9  { width: 75%; }
  .col-lg-8  { width: 66.66666667%; }
  .col-lg-7  { width: 58.33333333%; }
  .col-lg-6  { width: 50%; }
  .col-lg-5  { width: 41.66666667%; }
  .col-lg-4  { width: 33.33333333%; }
  .col-lg-3  { width: 25%; }
  .col-lg-2  { width: 16.66666667%; }
  .col-lg-1  { width: 8.33333333%; }
}
@media (max-width: 767px) {
  .hidden-xs { display: none !important; }
  .visible-xs { display: block !important; }
}
@media (min-width: 768px) {
  .visible-xs { display: none !important; }
  .hidden-xs  { display: block !important; }
  .hidden-sm  { display: block !important; }
  .visible-sm { display: none !important; }
}
.hidden-sm.hidden-xs { display: none !important; }
@media (max-width: 991px) {
  .hidden-sm.hidden-xs { display: none !important; }
}
@media (min-width: 992px) {
  .hidden-sm.hidden-xs { display: block !important; }
}

/* =========================================================
   HEADER — Glassmorphism + Sticky
   ========================================================= */
.header_top {
  background: rgba(255,255,255,0.97) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 30px rgba(0,0,0,0.08) !important;
  transition: box-shadow 0.3s ease;
}
.header_top.scrolled {
  box-shadow: 0 4px 40px rgba(0,0,0,0.15) !important;
}
.header_bottom {
  background: linear-gradient(135deg, #be212a 0%, #c0392b 50%, #0067ac 100%) !important;
  box-shadow: 0 4px 20px rgba(190,33,42,0.3) !important;
}
.tw-navigation ul li a {
  color: #333 !important;
  font-family: var(--font-main) !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  letter-spacing: 0.5px;
  padding: 8px 12px !important;
  position: relative;
  transition: var(--transition) !important;
  display: block;
  white-space: nowrap !important;
}
.tw-navigation ul li a::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--brand-blue);
  transition: width 0.3s ease;
  display: block !important;
}
.tw-navigation ul li:hover > a::after,
.tw-navigation ul li.current_page_item > a::after { width: 100%; }
.tw-navigation ul li:hover > a,
.tw-navigation ul li.current_page_item > a {
  color: var(--brand-blue) !important;
}

/* Submenu Desktop */
.tw-navigation ul li { position: relative; }
.tw-navigation ul li ul.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-radius: var(--radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
  padding: 10px 0;
}
.tw-navigation ul li:hover > ul.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.tw-navigation ul li ul.sub-menu li a {
  padding: 10px 20px !important;
  font-size: 14px !important;
  color: #555 !important;
  text-transform: none;
}
.tw-navigation ul li ul.sub-menu li a::after { display: none !important; }
.tw-navigation ul li ul.sub-menu li a:hover {
  background: #f8fafc;
  color: var(--brand-red) !important;
  padding-left: 25px !important;
}

/* Mobile Navigation */
.tw-mobile-navigation ul li { display: block; border-bottom: 1px solid #f1f5f9; }
.tw-mobile-navigation ul li:last-child { border-bottom: none; }
.tw-mobile-navigation ul li a {
  display: block;
  padding: 12px 0;
  font-weight: 600;
  font-size: 15px;
  color: #334155;
  text-transform: uppercase;
  transition: all 0.2s;
}
.tw-mobile-navigation ul li a:hover { color: var(--brand-blue); }
.tw-mobile-navigation ul li ul.sub-menu {
  display: none;
  padding-left: 15px;
  background: #f8fafc;
  margin: 0 -20px;
  padding-right: 20px;
}
.tw-mobile-navigation ul li ul.sub-menu li a {
  text-transform: none;
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
  padding: 10px 20px;
  border-left: 2px solid transparent;
}
.tw-mobile-navigation ul li ul.sub-menu li a:hover {
  color: var(--brand-red);
  border-left-color: var(--brand-red);
}

.logo a { display: flex; align-items: center; }
.logo { position: static !important; }
.company-name {
  font-family: var(--font-main) !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =========================================================
   FOOTER — Gradient + Modern
   ========================================================= */
footer {
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
  color: #e0e6f0 !important;
  text-shadow: none !important;
  font-weight: 400 !important;
}
footer h5 {
  color: #fff !important;
  font-family: var(--font-main) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--brand-red);
  display: inline-block;
  margin-bottom: 18px !important;
}
footer a { color: #b0c4de !important; transition: var(--transition); }
footer a:hover { color: #fff !important; padding-left: 4px; }
footer .address p { font-size: 14px; line-height: 1.7; margin: 10px 0 0 !important; }
footer .line { border-color: rgba(255,255,255,0.1) !important; }
footer p.copy { color: #8899aa; font-size: 13px; }
footer ul.social li a { transition: var(--transition); display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); }
footer ul.social li a:hover { background: var(--brand-red) !important; color: #fff !important; transform: translateY(-3px); }
footer ul.social li a::before { content: none !important; }

/* =========================================================
   SECTIONS — Home
   ========================================================= */
.home-banner { margin-bottom: 0 !important; }
.featured_content { position: absolute; top: 50% !important; left: 50%; transform: translate(-50%, -50%); width: 100%; text-align: center; z-index: 5; }
.featured_content_box { background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); border-radius: 12px; padding: 30px 40px; display: inline-block; animation: fadeInUp 0.8s ease; }
.featured_content h2 { color: #fff !important; text-shadow: 0 2px 20px rgba(0,0,0,0.5); font-family: var(--font-main) !important; font-weight: 800 !important; }
.featured_content a { display: inline-block; margin-top: 15px; padding: 12px 32px; background: linear-gradient(135deg, var(--brand-red), #e84855); color: #fff !important; border-radius: 50px; font-weight: 600; font-size: 14px; letter-spacing: 0.5px; transition: var(--transition); box-shadow: 0 4px 15px rgba(190,33,42,0.4); }
.featured_content a:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(190,33,42,0.5); }

/* Section headings */
.home-who h2, .home-projects h2, .home-news h2,
.home-social h2, .home-clients h2, .home-testimonials h2 {
  font-family: var(--font-main) !important;
  font-weight: 800 !important;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
.home-who h2::after, .home-projects h2::after, .home-news h2::after,
.home-social h2::after, .home-clients h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-blue));
  border-radius: 2px;
}

/* Cards hover */
.home-who .item, .home-news .item, .home-social .item {
  transition: var(--transition);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: #fff;
}
.home-who .item:hover, .home-news .item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.home-who .item .caption {
  border-radius: 0 0 var(--radius) var(--radius);
}

/* Numbers section */
.home-numbers {
  background-attachment: fixed !important;
  position: relative;
}
.home-numbers::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(190,33,42,0.7) 0%, rgba(0,103,172,0.7) 100%);
}
.home-numbers .container { position: relative; z-index: 1; }
.home-numbers .item h4 { font-family: var(--font-main) !important; font-weight: 800 !important; font-size: 48px !important; }

/* Subheader */
.subheader {
  position: relative;
  overflow: hidden;
}
.subheader_image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.breadcrumbs_box {
  padding: 8px 16px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  display: inline-block;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.read-more, a.view-all, .btn-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-blue) !important;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  position: relative;
}
.read-more:hover { color: var(--brand-red) !important; gap: 10px; }
a.view-all {
  padding: 10px 28px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-light));
  color: #fff !important;
  border-radius: 50px;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(0,103,172,0.3);
}
a.view-all:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,103,172,0.4); }

/* =========================================================
   GO TO TOP
   ========================================================= */
.go-top.desktop {
  background: linear-gradient(135deg, var(--brand-red), #e84855) !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 20px rgba(190,33,42,0.4);
  transition: var(--transition);
}
.go-top.desktop:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(190,33,42,0.5); }

/* =========================================================
   BOX GENERAL (Floating buttons)
   ========================================================= */
.box-general a.box-hotline, .box-general a.box-contact {
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: var(--transition);
  background: linear-gradient(135deg, var(--brand-red), #c0392b) !important;
}
.box-general a.box-hotline:hover, .box-general a.box-contact:hover {
  transform: translateX(4px);
  box-shadow: 4px 4px 20px rgba(190,33,42,0.4);
}

/* =========================================================
   SIDEBAR product page layout
   ========================================================= */
.container.penci_sidebar {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
}
#main {
  flex: 1 1 0;
  min-width: 0;
}
#sidebar {
  width: 280px;
  flex-shrink: 0;
}
@media (max-width: 991px) {
  .container.penci_sidebar { flex-direction: column; }
  #sidebar { width: 100%; }
}

/* =========================================================
   SEARCH FORM
   ========================================================= */
.search-form input {
  border-radius: 50px !important;
  border: 2px solid #e0e6f0 !important;
  font-family: var(--font-main) !important;
  transition: var(--transition);
}
.search-form input:focus { border-color: var(--brand-blue) !important; box-shadow: 0 0 0 3px rgba(0,103,172,0.1) !important; }
.search-form button { border-radius: 50% !important; }

/* =========================================================
   SCROLL ANIMATIONS
   ========================================================= */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination span { background: var(--brand-blue) !important; border-radius: 6px; }
.pagination a { border-radius: 6px; transition: var(--transition); }
.pagination a:hover { background: var(--brand-red) !important; transform: translateY(-2px); }

/* =========================================================
   NEWS / BLOG items
   ========================================================= */
.home-news .item h4, .home-social .item h4 {
  font-family: var(--font-main) !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  transition: color 0.3s;
}
.home-news .item:hover h4, .home-social .item:hover h4 { color: var(--brand-blue) !important; }

/* Featured item */
.home-news .featured .img-wrapper img { width: 100%; height: auto; display: block; }
.home-news .featured .description { padding: 20px; }

/* Latest items */
.home-news .latest { display: flex; align-items: flex-start; margin-bottom: 20px; }
.home-news .latest .img-wrapper { 
  flex: 0 0 140px; 
  border-radius: var(--radius); 
  overflow: hidden; 
}
.home-news .latest .img-wrapper img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  transition: transform 0.5s ease; 
}
.home-news .latest:hover .img-wrapper img { transform: scale(1.06); }
.home-news .latest .description { 
  flex: 1; 
  padding: 10px 15px; 
}
.home-news .latest .description h4 { margin-top: 0; font-size: 15px; }
.home-news .latest .description p { font-size: 13px; color: #777; margin-bottom: 0; }


/* =========================================================
   OTHER PROJECTS carousel items
   ========================================================= */
.other-projects .item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); transition: var(--transition); }
.other-projects .item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.other-projects_image { overflow: hidden; }
.other-projects_image img { transition: transform 0.5s ease; }
.other-projects .item:hover .other-projects_image img { transform: scale(1.08); }

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contactus-office {
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  background: #fff;
  margin-bottom: 24px;
}
.contactus-office h2 { font-family: var(--font-main) !important; font-weight: 700 !important; font-size: 20px !important; color: var(--brand-blue) !important; margin-bottom: 16px; }
.contactus-office div { padding: 6px 0; border-bottom: 1px solid #f0f4f8; font-size: 14px; line-height: 1.6; color: #555; }
.contactus-office div:last-child { border-bottom: none; }
.map-wrapper { margin-top: 16px; border-radius: var(--radius); overflow: hidden; }
.map-wrapper iframe { border-radius: var(--radius); }
.contactus-form p { font-size: 15px; color: #555; line-height: 1.7; margin-bottom: 20px; }

/* =========================================================
   RESPONSIVE TWEAKS
   ========================================================= */
@media (max-width: 991px) {
  .header_bottom { top: 70px !important; }
  .featured_content_box { padding: 20px 24px; }
}
@media (max-width: 767px) {
  .container { padding: 0 12px; }
  .row { margin: 0 -8px; }
  [class*="col-"] { padding: 0 8px; }
  .home-numbers .item h4 { font-size: 32px !important; }
  .box-general a.box-hotline, .box-general a.box-contact {
    display: inline-flex !important;
    flex-direction: row !important;
    width: calc(50% - 2px) !important;
    justify-content: center;
    border-radius: 0 !important;
  }
}

/* =========================================================
   CUSTOM SCROLLBAR
   ========================================================= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--brand-red), var(--brand-blue)); border-radius: 3px; }

/* =========================================================
   SIDEBAR MENUS
   ========================================================= */
.tw-sidebar-menu ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.tw-sidebar-menu ul li { border-bottom: 1px dashed #e2e8f0; display: block; }
.tw-sidebar-menu ul li:last-child { border-bottom: none; }
.tw-sidebar-menu ul li a { 
    display: flex; 
    align-items: center; 
    padding: 12px 0; 
    color: #475569 !important; 
    font-weight: 500; 
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none !important;
}
.tw-sidebar-menu ul li a::before {
    content: '\f2fb'; /* zmdi-chevron-right */
    font-family: 'Material-Design-Iconic-Font';
    margin-right: 10px;
    color: var(--brand-blue);
    font-size: 16px;
    transition: transform 0.3s;
}
.tw-sidebar-menu ul li a:hover { color: var(--brand-red) !important; padding-left: 6px; }
.tw-sidebar-menu ul li.current-menu-item > a { color: var(--brand-red) !important; font-weight: 700; }
.tw-sidebar-menu ul li.current-menu-item > a::before { transform: translateX(4px); color: var(--brand-red); }
