/* ========================================
   SOKO LOCAL - Reusable Components
   ======================================== */

/* Fix for blog-detail page layout issues */
.card {
  position: relative;
  z-index: 1;
  clear: both;
}

.card-body {
  position: relative;
  z-index: 1;
}

/* Ensure sections don't overlap */
.section {
  position: relative;
  z-index: 1;
  clear: both;
}

/* Service Cards */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-orange), #d18008);
  transition: width 0.3s ease;
}

.service-card:hover::before {
  width: 100%;
  opacity: 0.05;
}

/* Feature List */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-orange);
  font-weight: 700;
  font-size: 1.25rem;
}

/* Partner Logos */
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: var(--transition-base);
  filter: grayscale(100%);
  opacity: 0.7;
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.partner-logo img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
}

/* Blog Cards */
.blog-card {
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-base);
}

.blog-card-img {
  height: 220px;
  object-fit: cover;
  width: 100%;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.blog-meta {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 1rem;
}

.blog-meta i {
  color: var(--accent-orange);
  margin-right: 0.5rem;
}

.blog-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: rgba(227, 144, 9, 0.1);
  color: var(--accent-orange);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Products Grid */
.product-card {
  position: relative;
  overflow: hidden;
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(5, 58, 102, 0.95), transparent);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: var(--transition-base);
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-info h4 {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.product-info p {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* Contact Info Box */
.contact-info-box {
  background: var(--primary-navy);
  color: var(--text-light);
  padding: 2rem;
  border-radius: 12px;
  height: 100%;
}

.contact-info-box h4 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--accent-orange);
  margin-right: 1rem;
  min-width: 30px;
}

.contact-text a {
  color: var(--text-light);
  text-decoration: none;
}

.contact-text a:hover {
  color: var(--accent-orange);
}

/* Values / Core Principles Cards */
.value-card {
  text-align: center;
  padding: 2rem;
  border-radius: 12px;
  background: #ffffff;
  transition: var(--transition-base);
  border: 2px solid transparent;
}

.value-card:hover {
  border-color: var(--accent-orange);
  transform: translateY(-5px);
}

.value-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-navy), var(--secondary-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--text-light);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-blue) 100%);
  color: var(--text-light);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(227, 144, 9, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section h2 {
  color: var(--text-light);
}

/* Process Steps */
.process-step {
  text-align: center;
  position: relative;
  padding: 2rem;
}

.process-number {
  width: 60px;
  height: 60px;
  background: var(--accent-orange);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  font-family: var(--font-heading);
}

.process-step::after {
  content: '';
  position: absolute;
  top: 30px;
  left: 60%;
  width: 80%;
  height: 2px;
  background: var(--neutral-gray);
  z-index: -1;
}

.process-step:last-child::after {
  display: none;
}

/* News/Article Preview */
.news-item {
  border-left: 4px solid var(--accent-orange);
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

.news-date {
  color: var(--accent-orange);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.news-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

/* Breadcrumb */
.breadcrumb {
  background: transparent;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.breadcrumb-item.active {
  color: var(--accent-orange);
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-blue) 100%);
  color: var(--text-light);
  padding: 6rem 0 3rem; /* Top padding accounts for body padding-top */
  margin-top: -70px; /* Offset body padding to extend to top */
  padding-top: calc(6rem + 70px); /* Add body padding back */
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.page-header h1 {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.125rem;
  opacity: 0.9;
}

/* Loading Spinner */
.spinner {
  border: 3px solid rgba(227, 144, 9, 0.1);
  border-top: 3px solid var(--accent-orange);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Badge */
.badge-custom {
  background-color: var(--accent-orange);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Hover Effects */
.hover-lift {
  transition: var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-8px);
}

/* Rating Input Styles */
.rating-input {
  display: inline-flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

.rating-star {
  font-size: 2.5rem;
  color: #ddd;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rating-star:hover,
.rating-star.active {
  color: var(--accent-orange);
  transform: scale(1.1);
}

.rating-star:hover ~ .rating-star {
  color: #ddd;
}

/* Responsive adjustments for components */

/* Tablets */
@media (max-width: 768px) {
  .process-step::after {
    display: none;
  }
  
  .contact-info-box {
    margin-bottom: 2rem;
  }
  
  .partner-logo {
    height: 100px;
  }
  
  .rating-star {
    font-size: 2rem;
  }
  
  .service-card,
  .value-card,
  .blog-card {
    margin-bottom: 1.5rem;
  }
}

/* Mobile phones */
@media (max-width: 576px) {
  .partner-logo {
    height: 80px;
  }
  
  .rating-star {
    font-size: 1.75rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .stat-card {
    padding: 1.5rem;
  }
}

/* ========================================
   Team Cards
   ======================================== */
.team-card {
  transition: all 0.3s ease;
  border-radius: 8px;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(5, 58, 102, 0.15) !important;
}

.team-avatar {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(5, 58, 102, 0.05) 0%, rgba(227, 144, 9, 0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card .social-links a {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.team-card .social-links a:hover {
  background: var(--accent-orange);
  color: white !important;
  transform: scale(1.1);
}

/* Responsive adjustments for team cards */
@media (max-width: 768px) {
  .team-avatar {
    width: 100px;
    height: 100px;
  }
  
  .team-card h4 {
    font-size: 1.1rem;
  }
}
