/* ===================================================
   CHU GIA SECURITY - ENTERPRISE SOLUTIONS STYLESHEET
   Dedicated solutions for Hikvision, Dahua & Ruijie
   =================================================== */

/* Hero Banner on Solutions Page */
.solutions-hero {
  position: relative;
  padding: 60px 0 50px;
  background: var(--dark-bg, #070B14);
  color: #FFFFFF;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.solutions-hero-grid {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.solutions-hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 14px 0 16px;
  letter-spacing: -0.5px;
}

.solutions-hero-sub {
  font-size: 1.05rem;
  color: #94A3B8;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Solutions Hero Stats */
.solutions-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 25px;
}

.sol-stat-item {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md, 10px);
  padding: 12px 16px;
  text-align: center;
  transition: all var(--transition, 0.25s ease);
}

.sol-stat-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(230, 0, 18, 0.4);
  transform: translateY(-2px);
}

.sol-stat-num {
  font-size: 1.3rem;
  font-weight: 800;
  color: #FF7A00;
}

.sol-stat-num.red { color: #EF4444; }
.sol-stat-num.blue { color: #38BDF8; }

.sol-stat-text {
  font-size: 0.74rem;
  color: #94A3B8;
  margin-top: 3px;
  font-weight: 500;
}

/* Filter & Search Toolbar */
.solutions-toolbar {
  background: #FFFFFF;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-subtle, #E2E8F0);
  position: sticky;
  top: 66px;
  z-index: 15;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.toolbar-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.sol-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sol-tab-btn {
  background: #F8FAFC;
  border: 1px solid var(--border-subtle, #E2E8F0);
  color: #475569;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-full, 9999px);
  cursor: pointer;
  transition: all var(--transition, 0.25s ease);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.sol-tab-btn:hover {
  background: #F1F5F9;
  color: #0F172A;
  border-color: #CBD5E1;
}

.sol-tab-btn.active {
  background: #0F172A;
  border-color: #0F172A;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.sol-tab-btn.active[data-brand="hikvision"] {
  background: #D9232E;
  border-color: #D9232E;
}

.sol-tab-btn.active[data-brand="dahua"] {
  background: #E60012;
  border-color: #E60012;
}

.sol-tab-btn.active[data-brand="software"] {
  background: #0284C7;
  border-color: #0284C7;
}

.sol-tab-btn.active[data-brand="ruijie"] {
  background: #0072C6;
  border-color: #0072C6;
}

.tab-counter {
  font-size: 0.7rem;
  padding: 1px 7px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.08);
}

.sol-tab-btn.active .tab-counter {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* Search input */
.sol-search-box {
  position: relative;
  min-width: 280px;
}

.sol-search-input {
  width: 100%;
  padding: 9px 16px 9px 38px;
  border-radius: var(--radius-full, 9999px);
  border: 1px solid var(--border-subtle, #E2E8F0);
  background: #F8FAFC;
  font-size: 0.85rem;
  color: var(--text-main, #0F172A);
  outline: none;
  transition: all var(--transition, 0.25s ease);
}

.sol-search-input:focus {
  border-color: #00A0E9;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(0, 160, 233, 0.15);
}

.sol-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  pointer-events: none;
}

/* Solutions Grid */
.solutions-section {
  padding: 45px 0 70px;
  background: #F8FAFC;
}

.solutions-grid-main {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 26px;
}

/* Individual Solution Card */
.sol-card {
  background: #FFFFFF;
  border-radius: var(--radius-md, 12px);
  border: 1px solid #E2E8F0;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.sol-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
  border-color: #CBD5E1;
}

/* Image box & Date Badge (matching nhaantoan.com screenshot) */
.sol-thumb-box {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: #0F172A;
}

.sol-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.sol-card:hover .sol-thumb-box img {
  transform: scale(1.06);
}

/* Calendar Date Badge like nhaantoan.com */
.post-date-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #E60012;
  color: #FFFFFF;
  border-radius: 6px;
  width: 44px;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  z-index: 2;
  font-family: inherit;
}

.post-date-day {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}

.post-date-month {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 2px;
  opacity: 0.95;
}

/* Brand Chip on top right of thumbnail */
.sol-brand-chip {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 10px;
  border-radius: var(--radius-full, 9999px);
  font-size: 0.68rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.sol-brand-chip.hikvision { background: #D9232E; }
.sol-brand-chip.dahua { background: #E60012; }
.sol-brand-chip.software { background: linear-gradient(135deg, #0284C7, #6366F1); }
.sol-brand-chip.ruijie { background: #0072C6; }

/* Card Body */
.sol-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.sol-category-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #FF6600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.sol-category-tag.blue { color: #0284C7; }
.sol-category-tag.red { color: #DC2626; }

.sol-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.4;
  margin-bottom: 10px;
}

.sol-excerpt {
  font-size: 0.88rem;
  color: #64748B;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* Highlights bullets */
.sol-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sol-highlights li {
  font-size: 0.82rem;
  color: #334155;
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.sol-highlights li svg {
  color: #10B981;
  flex-shrink: 0;
  margin-top: 3px;
}

/* Card Action Footer */
.sol-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.btn-sol-detail {
  flex: 1;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #0F172A;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition, 0.25s ease);
  text-align: center;
}

.btn-sol-detail:hover {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
}

.btn-sol-contact {
  flex: 1;
  background: linear-gradient(135deg, #FF6600, #EF4444);
  color: #FFFFFF;
  border: none;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition, 0.25s ease);
  text-align: center;
  box-shadow: 0 3px 10px rgba(255, 102, 0, 0.25);
}

.btn-sol-contact:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Empty State */
.sol-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #FFFFFF;
  border-radius: var(--radius-md, 12px);
  border: 1px dashed #CBD5E1;
}

.sol-empty-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 6px;
}

.sol-empty-desc {
  font-size: 0.9rem;
  color: #64748B;
}

/* Process Section */
.process-section {
  padding: 60px 0;
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 35px;
}

.process-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md, 12px);
  padding: 22px 18px;
  text-align: center;
  position: relative;
  transition: all var(--transition, 0.25s ease);
}

.process-card:hover {
  background: #FFFFFF;
  border-color: #00A0E9;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.process-step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00A0E9, #0284C7);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.process-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 6px;
}

.process-desc {
  font-size: 0.8rem;
  color: #64748B;
  line-height: 1.45;
}

/* Enterprise Consultation Form Section */
.consult-form-section {
  padding: 65px 0 80px;
  background: var(--dark-bg, #070B14);
  color: #FFFFFF;
  position: relative;
}

.consult-form-box {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg, 16px);
  padding: 35px 30px;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.consult-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.form-full {
  grid-column: 1 / -1;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #CBD5E1;
}

.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 10px 14px;
  color: #FFFFFF;
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition, 0.25s ease);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #FF6600;
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.form-field select option {
  background: #0F172A;
  color: #FFFFFF;
}

/* Solution Modal (Architecture & Components View) */
.solution-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(12px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.solution-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.solution-modal-content {
  background: #FFFFFF;
  border-radius: var(--radius-lg, 16px);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.solution-modal-overlay.active .solution-modal-content {
  transform: scale(1);
}

.solution-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.06);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  transition: all var(--transition, 0.25s ease);
  z-index: 10;
}

.solution-modal-close:hover {
  background: #E60012;
  color: #FFFFFF;
}

.modal-header-banner {
  width: 100%;
  height: 240px;
  position: relative;
  background: #0F172A;
}

.modal-header-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body-padding {
  padding: 26px 30px 35px;
}

.modal-section-heading {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F172A;
  margin: 22px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-components-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.modal-component-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 10px 14px;
}

.modal-component-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0F172A;
}

.modal-component-role {
  font-size: 0.74rem;
  color: #64748B;
  margin-top: 2px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .solutions-stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .solutions-grid-main {
    grid-template-columns: 1fr;
  }
  .consult-form-grid {
    grid-template-columns: 1fr;
  }
  .solutions-hero-title {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .solutions-hero {
    padding: 40px 0 35px;
  }
  .solutions-stats-strip {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .toolbar-flex {
    flex-direction: column;
    align-items: stretch;
  }
  .sol-search-box {
    width: 100%;
  }
  .consult-form-box {
    padding: 22px 14px;
  }
  .consult-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .form-field {
    min-width: 0;
    max-width: 100%;
  }
  .form-field input,
  .form-field select,
  .form-field textarea {
    width: 100%;
    box-sizing: border-box;
  }
}

/* ===================================================
   CUSTOM SOFTWARE ENGINEERING SECTION STYLES
   =================================================== */
.custom-software-section {
  padding: 85px 0;
  background: #090E1A;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.custom-software-section::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.16), transparent 70%);
  pointer-events: none;
}

.custom-software-section::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -80px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.14), transparent 70%);
  pointer-events: none;
}

.software-header {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 50px;
  position: relative;
  z-index: 2;
}

.software-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38BDF8;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 6px 16px;
  border-radius: 9999px;
  margin-bottom: 16px;
}

.software-title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.software-subtitle {
  font-size: 1.02rem;
  color: #94A3B8;
  line-height: 1.65;
}

.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  position: relative;
  z-index: 2;
  margin-bottom: 45px;
}

.software-card {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 26px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.software-card:hover {
  transform: translateY(-5px);
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 25px rgba(56, 189, 248, 0.15);
}

.software-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38BDF8;
  margin-bottom: 18px;
}

.software-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 12px;
  line-height: 1.35;
}

.software-card-desc {
  font-size: 0.88rem;
  color: #94A3B8;
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.software-card-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
}

.software-card-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: #CBD5E1;
  margin-bottom: 8px;
  line-height: 1.45;
}

.software-card-bullets svg {
  color: #34D399;
  flex-shrink: 0;
  margin-top: 3px;
}

.software-card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.software-badge-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #38BDF8;
  background: rgba(14, 165, 233, 0.15);
  padding: 3px 10px;
  border-radius: 9999px;
}

.software-tech-strip {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
  z-index: 2;
  margin-bottom: 40px;
}

.software-tech-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #E2E8F0;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.software-tech-items {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-tag-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94A3B8;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  font-family: monospace;
}

.software-cta-box {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(99, 102, 241, 0.12));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 14px;
  padding: 30px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.software-cta-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.software-cta-desc {
  font-size: 0.95rem;
  color: #94A3B8;
  max-width: 720px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.software-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
