/* Sidebar Services Element Styles */

:root {
  --primary-color: #168BEF;
  --secondary-color: #E52222;
}

.sidebar-services-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: #333333;
  line-height: 1.6;
}

/* Main sidebar content */
.sidebar-services-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

/* Sidebar Banner */
.sidebar-banner {
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 5px;
  overflow: hidden;
  text-align: center;
  padding: 15px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.sidebar-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 10px;
  border-radius: 5px;
}

.sidebar-banner h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 15px 0;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
}

.sidebar-phone {
  background-color: #fff;
  border-radius: 50px;
  color: var(--primary-color);
  font-size: 18px;
  font-weight: 700;
  padding: 8px 15px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin: 5px auto;
}

.sidebar-phone i {
  margin-right: 8px;
}

.banner-placeholder {
  height: 200px;
  background: linear-gradient(135deg, #199cf6, #0d5ba3);
  position: relative;
  border-radius: 5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.banner-placeholder::after {
  content: 'THI CÔNG BẢNG HIỆU QUẢNG CÁO';
  color: rgba(255,255,255,0.3);
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  padding: 20px;
  max-width: 80%;
}

/* Direct Service Links */
.direct-services {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 0;
}

/* Service Link Styles */
.direct-services .service-link {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 15px;
  background-color: var(--primary-color);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.direct-services .service-link i {
  margin-right: 10px;
  font-size: 16px;
}

.direct-services .service-link:hover {
  background-color: #0c67b6;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Sidebar Services */
.sidebar-services {
  background-color: #fff;
  color: #333;
  padding: 0;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sidebar-services h3 {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  margin: 0;
  padding: 12px 15px;
  border-bottom: 1px solid #e0e0e0;
  background-color: var(--primary-color);
  color: #fff;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.sidebar-services ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-services li {
  margin: 0;
  border-bottom: 1px solid #e0e0e0;
}

.sidebar-services li:last-child {
  border-bottom: none;
}

.sidebar-services a {
  color: #333;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-weight: 500;
  padding: 12px 15px;
  transition: all 0.2s ease;
}

.sidebar-services a i {
  margin-right: 8px;
  color: var(--primary-color);
}

.sidebar-services a:hover {
  background-color: #f5f5f5;
}

/* Sidebar Products */
.sidebar-products {
  background-color: #fff;
  padding: 0;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sidebar-products h3 {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  margin: 0;
  padding: 12px 15px;
  background-color: var(--primary-color);
  color: #fff;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 15px;
}

.sidebar-product {
  background-color: #fff;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.sidebar-product:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.sidebar-product a {
  text-decoration: none;
  color: inherit;
}

.sidebar-product .product-image {
  aspect-ratio: 1/1;
  background-color: #f9f9f9;
  position: relative;
  overflow: hidden;
}

.sidebar-product .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.sidebar-product:hover .product-image img {
  transform: scale(1.05);
}

.sidebar-product .product-image.placeholder {
  position: relative;
}

.sidebar-product .product-image.placeholder::before {
  content: '\f03e';
  font-family: "Font Awesome 5 Free";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: #ccc;
}

.sidebar-product h4 {
  font-size: 12px;
  padding: 10px 5px;
  margin: 0;
  text-align: center;
  font-weight: 600;
  color: #333;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Make sidebar full height for better appearance */
@media (min-width: 993px) {
  .bricks-element-sidebar-services {
    height: 100%;
  }
  
  .sidebar-services-wrapper {
    height: 100%;
  }
  
  .sidebar-services-content {
    height: 100%;
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .sidebar-banner h3 {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .sidebar-banner h3 {
    font-size: 18px;
  }
  
  .sidebar-phone {
    font-size: 16px;
    padding: 6px 12px;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
} 