/* ================================
   BLOCK: PROJECTS
================================ */

.projects {
  text-align: center;
  padding: 80px 20px;
  background: #fff;
  color: #000;
}

.projects__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 40px auto;
  gap: 20px;
}

.projects__title {
  font-size: 48px;
  font-weight: 800;
  text-align: left;
  margin: 0;
}

.projects__nav {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
}

.projects__nav #current {
  font-weight: 700;
  font-size: 24px;
}

.projects__nav #total {
  font-weight: 600;
  font-size: 20px;
}

.projects__nav button {
  background: #ffcc00;
  border: none;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
}

/* ================================
   PROJECT CARD
================================ */

.project-card-wrapper {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  height: 270px;
  overflow: visible;
}

.project-card {
  width: 100%;
  height: 100%;
  padding: 30px 60px;
  box-sizing: border-box;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-logo {
  width: 100px;
  margin-bottom: 15px;
}

.project-desc {
  font-size: 16px;
  text-align: left;
  margin-bottom: 10px;
}

.meta-row-inline {
  display: flex;
  gap: 40px;
  flex-wrap: nowrap;
  width: 100%;
  margin-top: 10px;
}

.meta-inline {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-label {
  font-weight: 600;
}

.meta-values {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.meta-values .value {
  background: #f2f2f2;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
}

.meta-values .more {
  background: none;
  padding: 0;
  font-size: 14px;
  color: #000;
}

.geo-flag {
  width: 28px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
}

/* ================================
   PROJECTS GRID
================================ */

.projects-grid {
  background: #fff;
  padding: 60px 20px;
  text-align: center;
}

.projects-grid__wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.project-logo-grid {
  width: 100%;
  object-fit: contain;
  border-radius: 8px;
  padding: 10px;
  transition: transform 0.3s ease;
}

.project-logo-grid:hover {
  transform: scale(1.05);
}

/* ================================
   MOBILE FIXES
================================ */

/* small screens */
@media screen and (max-width: 560px) {
  .projects__title {
    font-size: 32px;
  }

  .project-card {
    padding: 20px;
  }

  .project-logo {
    width: 80px;
  }

  .meta-row-inline {
    flex-direction: column;
    gap: 12px;
  }
}

/* grid on tablets & phones */
@media screen and (max-width: 768px) {
  .projects-grid__wrapper {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}


@media (max-width: 768px) {
  .project-card-wrapper {
    height: 300px !important;
  }
}