/* Competences Page Design - Simple and Clean */
@import './variables.css';

/* Header Section - Simple style matching individual competence pages */
.competences-header-wrapper {
  background: url('../images/competences-header.jpg') center/cover no-repeat;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 3rem;
}

.competences-header-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.6);
}

.competences-header {
  text-align: center;
  color: var(--black);
  max-width: 800px;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.competences-header h1 {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--black);
  margin: 0;
}

/* Competences Grid - Simple grid layout */
.competences-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

/* Competence Card - Simple card design */
.competence-card {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 200px;
}

.competence-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.competence-card h2 {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--black);
  margin-bottom: 1rem;
}

.competence-card hr {
  width: 40px;
  height: 2px;
  background: var(--blue);
  border: none;
  margin: 0 0 1rem;
}

.competence-card p {
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: auto;
  flex-grow: 1;
}

.learn-more {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--blue);
  margin-top: 1rem;
  transition: color 0.3s ease;
}

.learn-more::after {
  content: '→';
  margin-left: 0.5rem;
}

.competence-card:hover .learn-more {
  color: var(--coral);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .competences-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .competences-header-wrapper {
    min-height: 250px;
    margin-bottom: 2rem;
  }

  .competences-header {
    padding: 0 1rem;
  }

  .competences-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem 2rem;
    gap: 1.5rem;
  }

  .competence-card {
    padding: 1.5rem;
    min-height: 180px;
  }

  .competence-card h2 {
    font-size: 1.2rem;
  }

  .competence-card p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .competences-header-wrapper {
    min-height: 200px;
  }

  .competence-card {
    padding: 1.25rem;
    min-height: 160px;
  }

  .competence-card h2 {
    font-size: 1.1rem;
  }

  .competence-card p {
    font-size: 0.85rem;
  }

  .learn-more {
    font-size: 0.85rem;
  }
}
