/* ==========================================================================
   MAUCHUKY - MAIN CSS
   Color palette: Teal (#136b76), Dark Teal (#23393c), Light Teal (#51b7c5), Gold (#ffd700)
   ========================================================================== */

/* --- Header & Navigation --- */
header.site-header {
  background: #136b76;
  width: 100%;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  min-height: 85px;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.brand-title .highlight {
  color: #ffd700;
}

.brand-sub {
  font-size: 11px;
  color: #d1ecf1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Header Search Form */
.header-search {
  position: relative;
  width: 320px;
  margin: 0 15px;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search input.input {
  width: 100%;
  height: 42px;
  padding: 8px 45px 8px 16px;
  border-radius: 25px;
  border: 1px solid #c2e6ea;
  background-color: #ffffff;
  font-size: 14px;
  color: #333333;
  transition: all 0.3s ease;
}

.header-search input.input:focus {
  border-color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.search-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #136b76;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn:hover {
  color: #0d4e56;
}

/* Search Autocomplete Dropdown */
.search-dropdown-results {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: 100%;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 1050;
  max-height: 380px;
  overflow-y: auto;
  display: none;
}

.search-dropdown-results.active {
  display: block;
}

.table-search-results tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
}

.table-search-results tr:hover {
  background-color: #f7fafb;
}

.table-search-results td {
  padding: 10px 14px;
  font-size: 14px;
}

.td_name a {
  font-weight: 600;
  color: #136b76;
  display: block;
}

.td_name a:hover {
  color: #0d4e56;
  text-decoration: underline;
}

.badge-count {
  background: #e6f4f6;
  color: #136b76;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.search-no-result {
  padding: 15px;
  font-size: 13px;
  color: #666;
  text-align: center;
}

/* Navigation Links */
.main-navigation .nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-navigation .nav-menu li a {
  display: inline-block;
  padding: 8px 12px;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.main-navigation .nav-menu li a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffd700;
  text-decoration: none;
}

.main-navigation .nav-menu li a.highlight-gold {
  color: #ffd700;
  background-color: rgba(0, 0, 0, 0.2);
}

.main-navigation .nav-menu li a.badge-new {
  position: relative;
}

.main-navigation .nav-menu li a.badge-new::after {
  content: "MỚI";
  position: absolute;
  top: -4px;
  right: 2px;
  background: #c01900;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
}

/* Mobile Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Off-Canvas Drawer */
.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: none;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: #ffffff;
  z-index: 2001;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: #136b76;
  color: #fff;
}

.drawer-close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.drawer-content {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.mobile-nav-list li a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  color: #333;
  font-weight: 600;
}

.mobile-nav-list li a:hover {
  color: #136b76;
  text-decoration: none;
}

.drawer-contact {
  margin-top: 25px;
  padding-top: 15px;
  border-top: 2px solid #eee;
  font-size: 14px;
}

/* --- Common Typography & Articles --- */
h1.main-title, h1.page-title {
  color: #07383f;
  font-weight: 800;
  font-size: 36px;
  line-height: 1.35;
  margin: 35px 0 18px 0;
  text-align: center;
  letter-spacing: -0.01em;
}

.page-subtitle {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 35px auto;
  color: #0a0f1d !important;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.7;
}

h2.title, h2.section-heading {
  width: 100%;
  text-align: center;
  color: #07383f;
  font-weight: 800;
  font-size: 30px;
  margin: 50px 0 15px 0;
  text-transform: uppercase;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

p.section-desc {
  text-align: center;
  color: #1e293b !important;
  margin-bottom: 40px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.65;
}

article.article-gray, section.article-gray {
  background-color: #f8f9fa;
  padding: 50px 30px;
  margin-top: 40px;
  border-radius: 12px;
}

/* Breadcrumbs */
.breadcrumb-nav {
  margin-top: 20px;
}

.breadcrumb {
  padding: 10px 18px;
  background-color: #f5f5f5;
  border-radius: 6px;
  font-size: 14px;
}

.breadcrumb > li {
  display: inline-block;
}

.breadcrumb > li + li::before {
  padding: 0 8px;
  color: #aaa;
  content: "/\00a0";
}

.breadcrumb > li a {
  color: #555;
}

.breadcrumb > li.active {
  color: #136b76;
  font-weight: 600;
}

/* Buttons */
.btn-primary-gradient {
  background: linear-gradient(135deg, #136b76 0%, #0d4e56 100%);
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 25px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(19, 107, 118, 0.3);
}

.btn-primary-gradient:hover {
  background: linear-gradient(135deg, #0d4e56 0%, #083339 100%);
  color: #ffd700;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(19, 107, 118, 0.4);
}

.btn-gold {
  background: linear-gradient(135deg, #ffd700 0%, #e6a800 100%);
  color: #23393c;
  border: none;
  padding: 12px 25px;
  font-size: 16px;
  font-weight: 800;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-gold:hover {
  background: #ffcc00;
  color: #000;
  transform: translateY(-2px);
}

.btn-gold-lg {
  display: inline-block;
  background: #ffd700;
  color: #23393c;
  padding: 14px 35px;
  font-size: 18px;
  font-weight: 800;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.btn-gold-lg:hover {
  background: #ffcc00;
  color: #000;
  text-decoration: none;
  transform: translateY(-2px);
}

/* --- Famous & Star Signatures Section (Standard chukydep.vn) --- */
.famous-signatures {
  display: flex;
  flex-wrap: wrap;
  margin: 50px -15px 20px;
}

.famous-signature {
  width: 50%;
  padding: 0 20px;
  position: relative;
  margin-bottom: 60px;
  box-sizing: border-box;
}

.famous-signature .signature-author {
  position: absolute;
  left: 5px;
  top: -20px;
  z-index: 2;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  object-fit: cover;
  background: #ffffff;
}

.famous-signature .signature-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 165px;
  padding: 20px 25px 20px 75px;
  background: #ffffff url('../images/text-lines-3.svg') no-repeat center center;
  background-size: cover;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  transform: rotate(-3deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e8e8e8;
  box-sizing: border-box;
}

.famous-signature:hover .signature-item {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 10px 25px rgba(19, 107, 118, 0.18);
}

.famous-signature .signature-img-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.famous-signature .signature-img {
  max-width: 220px;
  max-height: 85px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
}

.famous-signature h3.signature-title {
  margin: 18px 0 4px;
  font-weight: 700;
  font-size: 19px;
  text-align: center;
  color: #136b76;
}

.famous-signature .signature-sub {
  display: block;
  font-size: 13px;
  color: #777;
  text-align: center;
  margin-bottom: 6px;
  font-style: italic;
}

.famous-signature .signature-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #555;
  text-align: center;
  margin: 0;
}

.famous-stars .famous-signature {
  width: 50%;
}

@media (max-width: 768px) {
  .famous-signature,
  .famous-stars .famous-signature {
    width: 100%;
    padding: 0 10px;
    margin-bottom: 50px;
  }
  .famous-signature .signature-item {
    transform: none;
    min-height: 140px;
    padding-left: 60px;
  }
  .famous-signature .signature-author {
    width: 75px;
    height: 75px;
    top: -15px;
    left: 5px;
  }
}

/* --- Popular Names Section on Home --- */
.names-directory-grid {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.name-block-item {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}

.name-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 12px;
}

.name-block-header h3.name-title {
  font-size: 22px;
  color: #136b76;
  font-weight: 700;
}

.btn-view-all {
  font-weight: 700;
  color: #136b76;
  font-size: 14px;
}

.btn-view-all:hover {
  color: #0d4e56;
}

.name-previews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.name-preview-cell {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 15px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 140px;
  transition: border-color 0.2s;
}

.name-preview-cell:hover {
  border-color: #136b76;
  background: #fff;
}

.cell-svg {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-cell-preview {
  font-size: 12px;
  font-weight: 600;
  color: #136b76;
  padding: 4px 10px;
  background: #e6f4f6;
  border-radius: 12px;
}

.btn-cell-preview:hover {
  background: #136b76;
  color: #fff;
  text-decoration: none;
}

/* --- Pen Showcase Section --- */
.pens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.pen-card-inner {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
}

.pen-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

.pen-card-inner:hover .pen-img-wrap img {
  transform: scale(1.05);
}

.pen-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #c01900;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
}

.pen-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pen-title {
  font-size: 17px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.4;
}

.pen-price-row {
  margin-bottom: 10px;
}

.pen-price {
  font-size: 20px;
  font-weight: 800;
  color: #c01900;
}

.pen-old-price {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
  margin-left: 8px;
}

.pen-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 15px;
  flex: 1;
}

.btn-pen-order {
  display: block;
  text-align: center;
  background: #23393c;
  color: #fff;
  padding: 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
}

.btn-pen-order:hover {
  background: #136b76;
  color: #ffd700;
  text-decoration: none;
}

/* --- Footer --- */
footer.site-footer {
  background-color: #23393c;
  color: #cccccc;
  padding: 60px 0 25px 0;
  margin-top: 60px;
  clear: both;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 35px;
  margin-bottom: 40px;
}

.footer-col h2 {
  color: #ffffff !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  margin-bottom: 22px;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.footer-menu a {
  display: block;
  color: #f1f5f9 !important;
  font-size: 14.5px;
  font-weight: 500;
  margin-bottom: 12px;
  transition: all 0.2s;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.footer-menu a:hover {
  color: #ffd700 !important;
  text-decoration: underline;
  padding-left: 4px;
}

.footer-contact-info p {
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 12px;
  color: #f8fafc !important;
  font-weight: 500;
}

.footer-contact-info .hotline a {
  color: #ffd700 !important;
  font-weight: 800;
}

.social-links-grid {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.social-icon {
  display: inline-block;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
  background: #ffd700;
  color: #1a3134 !important;
  text-decoration: none;
}

.footer-row.copy {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 25px;
  text-align: center;
  font-size: 14.5px;
  color: #ffffff !important;
  line-height: 1.7;
  font-weight: 500;
}

.footer-row.copy strong {
  color: #ffd700 !important;
  font-weight: 800;
}

.footer-row.copy .sub-copy,
.footer-row.copy .text-muted {
  color: #e2e8f0 !important;
  font-size: 13.5px;
  font-weight: 400;
  margin-top: 6px;
  opacity: 1 !important;
}

/* --- Floating Widgets --- */
.hotline-phone-ring-wrap {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 999;
}

.hotline-phone-ring {
  position: relative;
  width: 60px;
  height: 60px;
}

.hotline-phone-ring-circle {
  width: 60px;
  height: 60px;
  top: 0;
  left: 0;
  position: absolute;
  background-color: transparent;
  border-radius: 100%;
  border: 2px solid #e60000;
  opacity: 0.5;
  animation: pps-circle-anim 1.2s infinite ease-in-out;
}

.hotline-phone-ring-circle-fill {
  width: 44px;
  height: 44px;
  top: 8px;
  left: 8px;
  position: absolute;
  background-color: rgba(230, 0, 0, 0.6);
  border-radius: 100%;
  border: 2px solid transparent;
  animation: pps-circle-fill-anim 2.3s infinite ease-in-out;
}

.hotline-phone-ring-img-circle {
  width: 34px;
  height: 34px;
  top: 13px;
  left: 13px;
  position: absolute;
  background: #e60000;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pps-circle-img-anim 1s infinite ease-in-out;
}

.hotline-bar {
  position: absolute;
  left: 45px;
  top: 14px;
  height: 34px;
  background: rgba(230, 0, 0, 0.9);
  border-radius: 20px;
  padding: 0 15px 0 25px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hotline-bar a {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

@keyframes pps-circle-anim {
  0% { transform: rotate(0) scale(0.5) skew(1deg); opacity: 0.1; }
  30% { opacity: 0.7; }
  100% { transform: rotate(0) scale(1.3) skew(1deg); opacity: 0.1; }
}

@keyframes pps-circle-fill-anim {
  0% { transform: rotate(0) scale(0.7) skew(1deg); opacity: 0.6; }
  50% { transform: rotate(0) scale(1) skew(1deg); opacity: 0.8; }
  100% { transform: rotate(0) scale(0.7) skew(1deg); opacity: 0.6; }
}

@keyframes pps-circle-img-anim {
  0% { transform: rotate(0) scale(1) skew(1deg); }
  10% { transform: rotate(-25deg) scale(1) skew(1deg); }
  20% { transform: rotate(25deg) scale(1) skew(1deg); }
  30% { transform: rotate(-25deg) scale(1) skew(1deg); }
  40% { transform: rotate(25deg) scale(1) skew(1deg); }
  50% { transform: rotate(0) scale(1) skew(1deg); }
  100% { transform: rotate(0) scale(1) skew(1deg); }
}

/* Floating Zalo */
.zalo-floating-wrap {
  position: fixed;
  bottom: 95px;
  left: 32px;
  z-index: 999;
}

.zalo-icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: #0068ff;
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 12px;
  box-shadow: 0 4px 15px rgba(0, 104, 255, 0.4);
  transition: transform 0.2s;
}

.zalo-icon-badge:hover {
  transform: scale(1.1);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 44px;
  height: 44px;
  background: #136b76;
  color: #fff;
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
}

.back-to-top:hover {
  background: #0d4e56;
  transform: translateY(-3px);
}

/* ==========================================================================
   GLOBAL TEXT SHARPNESS & HIGH CONTRAST ENHANCEMENTS
   ========================================================================== */
body, p, li, a, span, label, input, button, select, textarea {
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
  text-rendering: geometricPrecision;
  color: #0a0f1d;
}

h1, h2, h3, h4, h5, h6,
.main-title, .page-title, .section-heading, .title {
  color: #07383f !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
}

.section-heading, h2.title {
  color: #07383f !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  text-align: center;
  margin-bottom: 12px;
}

.section-desc, .page-subtitle {
  color: #0a0f1d !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  text-align: center;
  line-height: 1.7;
}

.article-gray {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 35px;
  margin-bottom: 40px;
}

.guide-box {
  color: #0a0f1d;
  font-size: 16px;
  line-height: 1.8;
}

.guide-box h2.sub-title {
  color: #07383f !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  margin: 25px 0 12px 0;
}

.guide-box p {
  color: #0a0f1d !important;
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
}

.guide-list li {
  color: #0a0f1d !important;
  margin-bottom: 12px;
  line-height: 1.75;
  font-size: 16px;
  font-weight: 500;
}

.guide-list li strong {
  color: #07383f !important;
  font-weight: 800;
}

.breadcrumb-nav, .breadcrumb {
  font-size: 14.5px;
  color: #334155;
  font-weight: 500;
}

.breadcrumb a {
  color: #0f626d;
  font-weight: 700;
}

.breadcrumb .active {
  color: #0a0f1d;
  font-weight: 800;
}

.name-block-header h3.name-title {
  color: #07383f !important;
  font-weight: 800;
}

.btn-view-all {
  color: #0f626d !important;
  font-weight: 800;
}

