/* style.css */

html, body { 
  scroll-behavior: smooth;
}

body {
  padding-top: 0;
}

/* ============================================
   YLEISET TYYLIT
   ============================================ */

html, body { 
  scroll-behavior: smooth;
}

body {
  padding-top: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  line-height: 1.6;
}

/* ============================================
   NAVIGAATIO
   ============================================ */

.navbar {
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.25rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  color: #333;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #0d6efd;
}

.btn-primary {
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
}

/* ============================================
   HERO OSIO (Etusivu)
   ============================================ */

.hero-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-image-placeholder {
  height: 400px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* ============================================
   PALVELUT OSIO
   ============================================ */

.services-section {
  padding: 5rem 0;
  background: #fff;
}

.service-card {
  padding: 2rem;
  text-align: center;
  border-radius: 12px;
  transition: all 0.3s ease;
  height: 100%;
  background: #f8f9fa;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  background: #fff;
}

.service-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.75rem;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.service-card p {
  color: #666;
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ============================================
   YHTEYSTIEDOT OSIO
   ============================================ */

.contact-info-section {
  padding: 5rem 0;
  background: #f8f9fa;
}

.contact-info-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.contact-info-item i {
  font-size: 1.5rem;
  color: #0d6efd;
  width: 40px;
  height: 40px;
  background: rgba(13, 110, 253, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item h5 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.contact-info-item p {
  margin-bottom: 0;
  color: #666;
}

.contact-info-item a {
  color: #0d6efd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info-item a:hover {
  color: #0a58ca;
  text-decoration: underline;
}

.map-container {
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* ============================================
   SIVUN HEADER (Koulutus & Ota yhteyttä)
   ============================================ */

.page-header {
  padding: 4rem 0 3rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 1rem;
}

.page-header .lead {
  font-size: 1.25rem;
  opacity: 0.95;
}

/* ============================================
   KOULUTUS SIVU
   ============================================ */

.education-section {
  padding: 4rem 0;
  background: #fff;
}

.education-block {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #333;
  border-bottom: 3px solid #0d6efd;
  padding-bottom: 0.5rem;
  display: inline-block;
}

.education-grid {
  display: grid;
  gap: 2rem;
}

.education-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #0d6efd;
  transition: all 0.3s ease;
}

.education-item:hover {
  background: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transform: translateX(5px);
}

.education-year {
  font-weight: 700;
  color: #0d6efd;
  font-size: 1.1rem;
}

.education-content h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.education-list {
  display: grid;
  gap: 1rem;
}

.education-list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.education-list-item:hover {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transform: translateX(5px);
}

.education-list-item i {
  color: #0d6efd;
  font-size: 1.25rem;
}

.cta-box {
  margin-top: 4rem;
  padding: 3rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 16px;
  text-align: center;
}

.cta-box h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-box p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.cta-box .btn-primary {
  background: #fff;
  color: #667eea;
  border: none;
  font-weight: 600;
}

.cta-box .btn-primary:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ============================================
   YHTEYDENOTTO SIVU
   ============================================ */

.contact-section {
  padding: 4rem 0;
  background: #fff;
}

.contact-form-wrapper {
  background: #f8f9fa;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.contact-form-wrapper h2 {
  color: #333;
  font-weight: 700;
}

.form-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.form-control {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.contact-info-sidebar {
  padding: 2rem;
}

.contact-info-sidebar h2 {
  color: #333;
  font-weight: 700;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.map-container-small {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
  .hero-section {
    padding: 3rem 0;
  }
  
  .services-section,
  .contact-info-section,
  .education-section,
  .contact-section {
    padding: 3rem 0;
  }
  
  .hero-image-placeholder {
    height: 300px;
  }
  
  .education-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .contact-form-wrapper {
    padding: 2rem;
  }
}

@media (max-width: 767px) {
  .page-header {
    padding: 3rem 0 2rem;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .page-header .lead {
    font-size: 1.1rem;
  }
  
  .cta-box {
    padding: 2rem;
  }
  
  .cta-box h3 {
    font-size: 1.5rem;
  }
}

/* ============================================
   PAGE CONTENT WRAPPER
   ============================================ */

.page-content {
  min-height: calc(100vh - 200px);
}