/* Projects Page Styles */

/* Breadcrumbs */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.breadcrumb-link {
  font-family: "Inter", Helvetica;
  font-weight: 400;
  color: #6c757d;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-link:hover {
  color: #007bff;
}

.breadcrumb-separator {
  font-family: "Inter", Helvetica;
  font-weight: 400;
  color: #6c757d;
  font-size: 14px;
}

.breadcrumb-current {
  font-family: "Inter", Helvetica;
  font-weight: 400;
  color: #212529;
  font-size: 14px;
}

/* Fix main element alignment and flex-direction */
main.projects-page.element {
  align-items: center !important;
}

/* Fix footer styles for projects page */
.element .footer {
  flex-direction: row !important;
  padding: 40px 15px 64px;
  margin-top: 20px;
}

/* Fix email-box styles for projects page */
.element .email-box {
  background-color: #ffffff !important;
  border-radius: 24px !important;
  padding: 20px !important;
  margin-left: -4.00px !important;
}

/* Media queries for projects page footer */
@media (max-width: 1024px) {
  .element .footer {
    flex-direction: column !important;
  }
  
  .element .email-box {
    max-width: 100% !important;
    margin-left: 0 !important;
    padding: 16px !important;
  }
}



/* Header container width fix for projects page */
.header-white .container {
  max-width: 1312px !important;
}

/* Content wrappers for consistent width */
.hero-content,
.filters-content,
.grid-content {
  max-width: 1312px;
  width: 100%;
  padding: 0 15px;
  margin: 0 auto;
}

/* Container for content sections */
.container-content {
  max-width: 1342px;
  width: 100%;
  padding: 0px 15px;
  margin: 0px auto;
  position: relative;
}

/* Projects Hero Section */
.projects-hero {
  padding: 40px 0 20px;
  background: linear-gradient(180deg, rgba(248, 249, 250, 0.02) 0%, rgba(248, 249, 250, 0) 100%);
  width: 100%;
}

.projects-title {
  color: var(--dark-9);
  font-family: var(--head-01-font-family);
  font-size: 40px;
  font-weight: 700;
  line-height: 130%;
  margin-bottom: 24px;
  max-width: 900px;
}

.projects-subtitle {
  color: var(--gray-7);
  font-family: var(--text-m-14-font-family);
  font-size: 18px;
  font-weight: 400;
  line-height: 150%;
  max-width: 800px;
  margin-bottom: 16px;
}

.projects-custom-text {
  color: var(--gray-7);
  font-family: var(--text-m-14-font-family);
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
  margin-bottom: 32px;
}

.btn-hero {
  padding: 16px 32px;
  border-radius: 40px;
  background: #FFFFFF;
  color: #000000;
  font-family: var(--head-05-font-family);
  font-size: 16px;
  font-weight: 500;
  line-height: 130%;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #000000;
}

.btn-hero:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Filters Section */
.projects-filters {
  padding: 20px 0;
  background: transparent;
  width: 100%;
}

.filters-content {
  max-width: 1342px;
  margin: 0 auto;
  padding: 0 15px;
}

.filters-wrapper {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
  background: #F8F9FA;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  width: 100%;
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 180px;
}

.filter-label {
  color: #6C757D;
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 120%;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.filter-select {
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid #DEE2E6;
  background: #FFFFFF;
  color: #212529;
  font-family: Inter, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 120%;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23212529' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.filter-select:hover {
  border-color: #ADB5BD;
}

.filter-select:focus {
  outline: none;
  border-color: #FCC419;
  box-shadow: 0 0 0 3px rgba(252, 196, 25, 0.1);
}

.filter-btn {
  padding: 14px 40px;
  border-radius: 40px;
  background: #FCC419;
  color: #101113;
  font-family: Unbounded, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 130%;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  border: none;
  align-self: flex-end;
}

.filter-btn:hover {
  background: #e6b516;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(252, 196, 25, 0.3);
}

/* Projects Grid */
.projects-grid {
  padding: 20px 0 20px;
}

.grid-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 0;
  align-items: stretch;
}

/* Project Card */
.project-card {
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.project-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.project-name {
  color: #101113;
  font-family: Unbounded, sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 130%;
  margin: 0;
}

.project-type {
  color: #6C757D;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 140%;
  text-align: right;
}

.project-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 12px;
  margin-bottom: 24px;
  background: #F8F9FA;
  padding: 20px;
  border-radius: 12px;
}

.spec-row {
  display: contents;
}

.spec-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  min-height: 48px;
}

.spec-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 0;
  opacity: 0.6;
}

.spec-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-label {
  color: #6C757D;
  font-family: Inter, sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 120%;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.spec-value {
  color: #101113;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 120%;
}

.btn-view-project {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  border-radius: 8px;
  border: 1px solid #DEE2E6;
  background: transparent;
  color: #101113;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 130%;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: auto;
}

.btn-view-project svg {
  color: #FCC419;
  transition: transform 0.3s ease;
}

.btn-view-project:hover {
  border-color: #FCC419;
  background: rgba(252, 196, 25, 0.05);
}

.btn-view-project:hover svg {
  transform: rotate(90deg);
}

/* Load More Button */
.load-more-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.btn-load-more {
  padding: 16px 48px;
  border-radius: 40px;
  background: var(--yellow-5);
  color: var(--dark-9);
  font-family: var(--head-05-font-family);
  font-size: 16px;
  font-weight: 500;
  line-height: 130%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-load-more:hover {
  background: #e6b516;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(252, 196, 25, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .grid-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .projects-title {
    font-size: 32px;
  }

  .projects-subtitle {
    font-size: 16px;
  }

  .projects-custom-text {
    font-size: 14px;
  }

  .btn-hero {
    width: 100%;
    text-align: center;
  }

  .filters-wrapper {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
  }

  .filter-item {
    min-width: 100%;
  }

  .filter-btn {
    width: 100%;
  }

  .grid-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-specs {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .project-name {
    font-size: 20px;
  }

  .project-image {
    height: 220px;
  }
}

@media (max-width: 480px) {
  .projects-hero {
    padding: 40px 0 30px;
  }

  .projects-title {
    font-size: 26px;
  }

  .projects-filters {
    padding: 24px 0;
  }

  .projects-grid {
    padding: 40px 0;
  }

  .project-image {
    height: 200px;
  }

  .project-name {
    font-size: 20px;
  }

  .project-specs {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .spec-item {
    min-height: 60px;
  }

  .btn-load-more {
    padding: 14px 32px;
    font-size: 14px;
  }
}

/* Pagination Styles */
.pagination-container {
  display: flex;
  justify-content: center;
  margin-top: 60px;
  margin-bottom: 40px;
  width: 100%;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #374151;
  font-family: "Inter", Helvetica;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:hover:not(.disabled):not(.active) {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #111827;
}

.pagination-btn.active {
  background: #fcc419;
  border-color: #fcc419;
  color: #111827;
  font-weight: 600;
  cursor: default;
}

.pagination-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #f9fafb;
}

.pagination-dots {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-family: "Inter", Helvetica;
  font-size: 14px;
  user-select: none;
}

/* Responsive pagination */
@media (max-width: 768px) {
  .pagination-container {
    margin-top: 40px;
    margin-bottom: 30px;
  }
  
  .pagination {
    gap: 6px;
  }
  
  .pagination-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }
  
  .pagination-dots {
    min-width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .pagination-container {
    margin-top: 30px;
    margin-bottom: 20px;
  }
  
  .pagination {
    gap: 4px;
  }
  
  .pagination-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 12px;
  }
  
  .pagination-dots {
    min-width: 32px;
    height: 32px;
    font-size: 12px;
  }
}
