/* Banner Section */
.port-banner {
  background-image: url("/assets/PT04.jpg");
  background-size: cover;
  background-position: initial;
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
}

.port-banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.port-banner-title {
  font-size: 3rem;
  margin-top: 1.5rem;
  font-weight: 300;
  z-index: 1;
}

.port-banner-subtitle {
  font-size: 1.2rem;
  margin-top: 0.8rem;
  z-index: 1;
  color: white;
}

/* Portfolio div */
.portfolio-container {
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-header {
  text-align: center;
  color: black;
}

.portfolio-header h1 {
  text-align: center;
  font-size: 1.2rem;
  /* padding: 4rem 2rem; */
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.portfolio-item {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgb(209, 29, 35, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgb(209, 29, 35, 0.5);
}

.portfolio-content {
  padding: 25px;
}

.portfolio-content img {
  width: 100%;
  height: auto;
  border-bottom: 1px solid #eee;
  margin-bottom: 15px;
  border-radius: 8px;
}

.portfolio-content h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: var(--primary-color);
  font-weight: 700;
}

.portfolio-content .client {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 0.9em;
}

.portfolio-content p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.portfolio-content a {
  flex-wrap: wrap;
  gap: 8px;
  text-decoration: none;
  color: var(--primary-color);
}

.portfolio-content a:hover {
  color: var(--primary-color-hover);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  margin-bottom: 3rem;
}

.pagination button {
  background: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  color: var(--primary-color);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pagination button:hover:not(:disabled) {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination .page-info {
  background: white;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1238px) {
  .portfolio-grid {
    margin: 2rem;
  }
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  /* Banner Section */
  .port-banner-title {
    font-size: 1.6rem;
  }
  .port-banner-subtitle {
    font-size: 1rem;
  }
  h2 {
    font-size: 1rem;
  }
}
