/*
 Theme Name:   Astra Child
 Template:     astra
*/

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== CONTAINER ===== */

.projects {
  width: 100%;
}

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

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-header h1 {
  font-size: 28px;
  line-height: 1.2;
}

.section-header p {
  font-size: 14px;
  color: #666;
  margin-top: 8px;
}

/* ===== GRID ===== */
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

/* ===== CARD ===== */
.project-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

/* Hover only on desktop */
@media (hover: hover) {
  .project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
  }
}

/* ===== IMAGE ===== */
.card-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* ===== CONTENT ===== */
.card-content {
  padding: 16px;
}

.card-content h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.card-content p {
  font-size: 16px;
  margin-bottom: 5px;
  color: #444;
}

/* ===== BUTTON ===== */
.btn {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  background: #4f46e5;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.btn:hover {
  background: #3730a3;
  color: #fff;
}

/* ===== TABLET (≥768px) ===== */
@media (min-width: 768px) {
  .section-header h1 {
    font-size: 32px;
  }

  .section-header p {
    font-size: 16px;
  }

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

  .card-image img {
    height: 200px;
  }

  .card-content h3 {
    font-size: 20px;
  }
}

/* ===== DESKTOP (≥1024px) ===== */
@media (min-width: 1024px) {
  .container {
    padding: 30px 0;
  }

  .section-header {
    margin-bottom: 50px;
  }

  .section-header h1 {
    font-size: 36px;
  }

  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-image img {
    height: 220px;
  }

  .btn {
    font-size: 14px;
    padding: 8px 20px;
  }
}

/* ===== LARGE SCREENS (≥1280px) ===== */
@media (min-width: 1280px) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
