

:root {
  --primary:       #003087;
  --primary-dark:  #001a4d;
  --primary-light: #6699cc;
  --primary-xlt:   #ccd9f0;
  --primary-xxlt:  #e6ecf8;
  --accent:        #1ABC9C;
  --accent-dark:   #148F77;
  --white:         #ffffff;
  --text:          #2C3E50;
  --text-muted:    #5D6D7E;
  --shadow-sm:     0 2px 12px rgba(41,128,185,.10);
  --shadow-md:     0 6px 28px rgba(41,128,185,.15);
  --shadow-lg:     0 12px 48px rgba(41,128,185,.22);
  --radius:        12px;
  --radius-lg:     20px;
  --transition:    all .3s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--primary-xxlt); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ===== TOP BAR ===== */
.topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  padding: 7px 0;
}
.topbar a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
.topbar a:hover { color: white; }
.topbar .sep { margin: 0 10px; opacity: .4; }

/* ===== NAVBAR ===== */
.navbar-main {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--primary-light);
  transition: var(--transition);
}
.navbar-main.scrolled { box-shadow: var(--shadow-md); }

.navbar-brand {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--primary-dark) !important;
  letter-spacing: -1px;
  padding: 12px 0;
}
.navbar-brand .accent { color: var(--accent); }

.nav-link {
  font-weight: 600;
  color: var(--text) !important;
  padding: 1.3rem 1rem !important;
  font-size: .92rem;
  position: relative;
  transition: var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 3px;
  background: var(--primary);
  border-radius: 2px 2px 0 0;
  transition: var(--transition);
}
.nav-link:hover { color: var(--primary) !important; }
.nav-link:hover::after,
.nav-link.active::after { left: 0; right: 0; }
.nav-link.active { color: var(--primary) !important; }

.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 200px;
}
.dropdown-item {
  border-radius: 8px;
  padding: 9px 14px;
  font-size: .9rem;
  font-weight: 500;
  transition: var(--transition);
}
.dropdown-item:hover { background: var(--primary-xxlt); color: var(--primary); }
.dropdown-item i { width: 20px; }

/* Search inline */
.nav-search {
  display: flex;
  align-items: center;
  background: var(--primary-xxlt);
  border: 2px solid transparent;
  border-radius: 50px;
  padding: 5px 8px 5px 16px;
  gap: 6px;
  transition: var(--transition);
}
.nav-search:focus-within { border-color: var(--primary-light); background: white; }
.nav-search input { border: none; background: transparent; outline: none; font-size: .88rem; width: 160px; color: var(--text); }
.nav-search button {
  background: var(--primary);
  border: none;
  border-radius: 50px;
  color: white;
  padding: 5px 14px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.nav-search button:hover { background: var(--primary-dark); }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #5DADE2 100%);
  min-height: 640px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -80px;
  width: 550px; height: 550px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -60px;
  width: 450px; height: 450px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}
.hero-inner { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  color: white;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 900;
  color: white;
  line-height: 1.12;
  margin-bottom: 1.2rem;
}
.hero h1 em { font-style: normal; color: #AED6F1; }
.hero-lead { font-size: 1.08rem; color: rgba(255,255,255,.88); margin-bottom: 2rem; max-width: 520px; }

.btn-hero-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--primary-dark);
  padding: 14px 34px;
  border-radius: 50px;
  font-weight: 800;
  font-size: .96rem;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.btn-hero-main:hover { background: var(--primary-xxlt); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,.3); color: var(--primary-dark); }

.btn-hero-sec {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.14);
  color: white;
  padding: 14px 34px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .96rem;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,.5);
  transition: var(--transition);
}
.btn-hero-sec:hover { background: rgba(255,255,255,.24); color: white; border-color: white; }

.hero-stats { display: flex; gap: 2.5rem; margin-top: 2.8rem; flex-wrap: wrap; }
.hero-stat-num { font-size: 2.1rem; font-weight: 900; color: white; line-height: 1; }
.hero-stat-lbl { font-size: .82rem; color: rgba(255,255,255,.72); margin-top: 3px; }

.hero-img-wrap {
  position: relative; z-index: 2;
  animation: floatUp 3s ease-in-out infinite alternate;
}
@keyframes floatUp {
  from { transform: translateY(0); }
  to   { transform: translateY(-12px); }
}

/* ===== SECTION BASE ===== */
.section-title { font-size: 2.1rem; font-weight: 900; color: var(--primary-dark); }
.section-sub   { color: var(--text-muted); font-size: 1.02rem; }
.section-line  { width: 52px; height: 4px; background: linear-gradient(90deg,var(--primary),var(--accent)); border-radius: 2px; margin: .8rem 0 .5rem; }

/* ===== CATEGORY CARDS ===== */
.cats-section { background: var(--primary-xxlt); padding: 80px 0; }

.cat-card {
  display: block;
  text-decoration: none;
  background: white;
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 2.2rem 1.2rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.cat-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.cat-icon {
  width: 68px; height: 68px;
  background: var(--primary-xxlt);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  transition: var(--transition);
  font-size: 1.7rem;
  color: var(--primary);
}
.cat-card:hover .cat-icon { background: var(--primary); color: white; }
.cat-card h5 { font-weight: 700; color: var(--text); font-size: .95rem; margin-bottom: .3rem; }
.cat-card p  { color: var(--text-muted); font-size: .8rem; margin: 0; }

/* ===== PRODUCT CARDS ===== */
.products-section { padding: 80px 0; }

.product-card {
  background: white;
  border: 1.5px solid rgba(174,214,241,.35);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }

.prod-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--primary-xxlt);
  overflow: hidden;
}
.prod-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .prod-img-wrap img { transform: scale(1.06); }
.prod-no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--primary-light); }

.prod-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--accent); color: white;
  padding: 3px 10px; border-radius: 20px; font-size: .72rem; font-weight: 700;
}
.prod-cat-badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(26,82,118,.82); color: white;
  padding: 3px 10px; border-radius: 20px; font-size: .7rem; font-weight: 600;
}

.prod-body { padding: 1.15rem; flex: 1; display: flex; flex-direction: column; }
.prod-brand { color: var(--primary); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; }
.prod-name  { font-size: .98rem; font-weight: 700; color: var(--text); margin: 4px 0 7px; line-height: 1.3; }
.prod-desc  { color: var(--text-muted); font-size: .83rem; flex: 1; margin-bottom: .9rem; }
.prod-price { font-size: 1.28rem; font-weight: 900; color: var(--primary); margin-bottom: .9rem; }

.btn-detail {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; text-decoration: none;
  border-radius: 8px; padding: 10px 16px;
  font-weight: 700; font-size: .88rem;
  transition: var(--transition); width: 100%;
}
.btn-detail:hover { background: linear-gradient(135deg, var(--primary-dark), #0D2D4A); color: white; transform: translateY(-1px); }

/* ===== NEWS CARDS ===== */
.news-section { background: var(--primary-xxlt); padding: 80px 0; }

.news-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex; flex-direction: column; height: 100%;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.news-img-wrap { aspect-ratio: 16/9; overflow: hidden; background: var(--primary-xlt); }
.news-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .news-img-wrap img { transform: scale(1.05); }
.news-no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--primary-light); background: linear-gradient(135deg, var(--primary-xlt), var(--primary-xxlt)); }

.news-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.news-date  { color: var(--primary); font-size: .78rem; font-weight: 700; margin-bottom: .4rem; }
.news-title { font-size: 1rem; font-weight: 800; color: var(--text); margin-bottom: .7rem; line-height: 1.4; }
.news-sum   { color: var(--text-muted); font-size: .84rem; flex: 1; margin-bottom: 1rem; }
.news-more  { color: var(--primary); font-weight: 700; text-decoration: none; font-size: .85rem; display: flex; align-items: center; gap: 4px; transition: var(--transition); }
.news-more:hover { color: var(--primary-dark); gap: 8px; }

/* ===== STATS BAR ===== */
.stats-bar {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 56px 0;
}
.stat-box { text-align: center; }
.stat-num  { font-size: 2.8rem; font-weight: 900; color: white; line-height: 1; }
.stat-num span { color: var(--accent); }
.stat-lbl  { font-size: .88rem; color: rgba(255,255,255,.78); margin-top: 5px; }

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white; padding: 56px 0; text-align: center;
}
.page-header h1 { font-size: 2.2rem; font-weight: 900; margin-bottom: .4rem; }
.breadcrumb { background: none; padding: 0; margin: 0; justify-content: center; }
.breadcrumb-item a { color: rgba(255,255,255,.75); text-decoration: none; }
.breadcrumb-item.active { color: rgba(255,255,255,.9); }
.breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,.45); }

/* ===== PRODUCT DETAIL ===== */
.detail-img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.spec-table td:first-child { font-weight: 700; color: var(--primary-dark); background: var(--primary-xxlt); width: 38%; padding: 10px 14px; }
.spec-table td { padding: 10px 14px; font-size: .9rem; border-color: var(--primary-xlt) !important; }

/* ===== ABOUT ===== */
.about-card { background: white; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); border-left: 4px solid var(--primary); height: 100%; }
.mv-section { background: var(--primary-xxlt); padding: 80px 0; }

/* ===== CONTACT ===== */
.contact-section { padding: 80px 0; }
.contact-info-card {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius); padding: 2.5rem; color: white; height: 100%;
}
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.6rem; }
.contact-ic {
  width: 44px; height: 44px; min-width: 44px;
  background: rgba(255,255,255,.15); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.contact-form-card { background: white; border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow-md); }

.form-control {
  border: 2px solid var(--primary-xlt);
  border-radius: 10px; padding: 11px 15px; font-size: .93rem;
  transition: var(--transition);
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(41,128,185,.10); }

.btn-submit {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; border: none; border-radius: 10px;
  padding: 13px 36px; font-weight: 800; font-size: .97rem;
  transition: var(--transition); cursor: pointer;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(41,128,185,.38); color: white; }

/* ===== FOOTER ===== */
footer { background: var(--primary-dark); color: white; padding: 64px 0 0; }
.footer-brand { font-size: 1.65rem; font-weight: 900; }
.footer-brand .accent { color: var(--accent); }
.footer-desc { color: rgba(255,255,255,.68); font-size: .88rem; line-height: 1.75; margin: .8rem 0 1.2rem; }
.footer-heading { font-size: .85rem; font-weight: 800; color: var(--primary-light); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .45rem; }
.footer-links a { color: rgba(255,255,255,.68); text-decoration: none; font-size: .87rem; transition: var(--transition); display: flex; align-items: center; gap: 6px; }
.footer-links a:hover { color: white; padding-left: 4px; }
.footer-contact-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 1rem; color: rgba(255,255,255,.72); font-size: .87rem; }
.footer-contact-row i { color: var(--accent); min-width: 16px; margin-top: 2px; }
.social-links { display: flex; gap: 9px; margin-top: 1rem; }
.social-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: .9rem; text-decoration: none;
  transition: var(--transition);
}
.social-link:hover { background: var(--accent); transform: translateY(-3px); }
.footer-bottom { background: rgba(0,0,0,.22); margin-top: 3rem; padding: 1.1rem 0; text-align: center; font-size: .82rem; color: rgba(255,255,255,.55); }

/* ===== FILTER TABS ===== */
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1.8rem; }
.ftab {
  padding: 7px 18px; border-radius: 50px;
  background: white; border: 2px solid var(--primary-xlt);
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .85rem;
  transition: var(--transition);
}
.ftab:hover, .ftab.active { background: var(--primary); border-color: var(--primary); color: white; }

/* ===== PAGINATION ===== */
.pagination .page-link { color: var(--primary); border-color: var(--primary-xlt); }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); }

/* ===== ALERTS ===== */
.alert-success { background: #d5f5e3; border-color: #27ae60; color: #1a7a43; border-radius: 10px; }
.alert-danger  { background: #fdedec; border-color: #e74c3c; color: #922b21; border-radius: 10px; }

/* ===== CTA STRIP ===== */
.cta-strip { background: var(--primary-xxlt); padding: 60px 0; }
.cta-box { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); border-radius: 20px; padding: 3rem; }
.cta-box h3 { font-size: 1.8rem; font-weight: 900; color: white; }
.cta-box p { color: rgba(255,255,255,.82); margin: 0; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .6s ease forwards; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .2s; } .d3 { animation-delay: .3s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .hero { min-height: auto; padding: 64px 0; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 1.5rem; }
}
@media (max-width: 767px) {
  .section-title { font-size: 1.7rem; }
  .stat-num { font-size: 2rem; }
  .hero-stats { flex-wrap: wrap; gap: 1.2rem; }
}
