/* Additional styles for portfolio sections */
/* Theme responsiveness */
:root {
  --skin-color: #ec1839;
}

.section-title h2 {
  color: var(--theme-color);
}

.card-header {
  border-bottom: 3px solid var(--theme-color);
}

.dark .card {
  background: #222;
  color: #fff;
}

.dark .card-body p {
  color: #ccc;
}

.dark .company a {
  color: #fff;
}

/* Section dividers */
.section-divider {
  margin: 40px 0 20px;
  padding-left: 15px;
}

.section-divider h3 {
  font-size: 24px;
  color: var(--theme-color, #ec1839);
  position: relative;
  padding-bottom: 10px;
}

.section-divider h3:before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background-color: var(--theme-color, #ec1839);
}

/* Upcoming portfolio badges and styles */
.upcoming-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 12px;
  z-index: 2;
}


/* Placeholder image style */
.portfolio-img img[src*="placeholder"] {
  object-fit: cover;
  background-color: #444;
}

.container {
  max-width: 1200px;
  margin: auto;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  gap: 30px;
  margin: 0 15px;

}

.card {
  width: calc(25% - 30px);
  /* For 4 cards per row */
  min-width: 30%;
  /* Minimum width for better visibility */
  height: 290px;
  /* Slightly taller */
  background: white;
  border-radius: 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
  
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .card {
    width: calc(33.33% - 30px);
    /* 3 cards per row */
  }
}

@media (max-width: 992px) {
  .card {
    width: calc(50% - 30px);
    /* 2 cards per row */
  }
}

@media (max-width: 576px) {
  .card {
    width: 100%;
    /* 1 card per row */
  }
}

.card-header {
  position: relative;
  background: url("../assets/logo/ep-portfolio-bg.jpeg") no-repeat center/cover;
  height: 80px;
}

.profile-img {
  position: absolute;
  bottom: -30px;
  left: 50px;
  /* Fixed position rather than percentage */
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid white;
  object-fit: cover;
}

@media (max-width: 576px) {
  .profile-img {
    left: 30px;
  }
}

.card-body {
  padding: 40px 15px 15px;
}

.card-body h3 {
  margin-bottom: 5px;
  font-size: 18px;
}

.card-body p {
  font-size: 12px;
  color: #555;
  margin-bottom: 5px;
}

.company {
  display: flex;
  align-items: center;
  margin-top: 12px;
  font-weight: bold;
  font-size: 14px;
  color: #333;
  gap: 5px;
}

.company a {
  color: var(--theme-color, #ec1839) !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.company a:hover {
  text-decoration: underline;
}

.company svg {
  width: 16px;
  height: 16px;
  margin-left: 4px;
}
