/* ── COURSES PAGES SHARED CSS ── */

section { background: var(--white); }
section.alt-bg { background: var(--light-bg); }

/* tools section */
.tools-section { margin-top: 48px; }
.tools-section h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px; font-weight: 700; color: var(--navy);
  margin-bottom: 20px; letter-spacing: 0.5px;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}
.tool-chip {
  background: #fff; border: 1px solid #dde;
  border-radius: 10px; padding: 14px 12px;
  text-align: center; font-size: 13px; font-weight: 700; color: var(--navy);
  transition: all 0.2s;
  cursor: pointer;
  touch-action: manipulation;
}
.tool-chip:hover {
  border-color: var(--teal); color: var(--teal);
  box-shadow: 0 4px 12px rgba(0,174,204,0.12);
}

.dept-block {
  margin-bottom: 48px;
  padding: 24px;
  background: #f0f8fc;
  border-radius: 16px;
  border-left: 4px solid var(--teal);
}

.dept-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.dept-icon {
  font-size: 40px;
  flex-shrink: 0;
  min-width: 50px;
  text-align: center;
}

.dept-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.dept-desc {
  color: #5a7080;
  font-size: 14px;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .tools-grid { 
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); 
    gap: 10px; 
  }
  .tool-chip  { 
    padding: 12px 8px; 
    font-size: 12px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .tools-section h3 { font-size: 18px; margin-bottom: 16px; }
  
  .dept-block {
    margin-bottom: 36px;
    padding: 18px;
  }
  
  .dept-header { gap: 14px; }
  .dept-icon { font-size: 32px; min-width: 40px; }
  .dept-title { font-size: 18px; margin-bottom: 6px; }
  .dept-desc { font-size: 13px; }
}

@media (max-width: 480px) {
  .tools-grid { 
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .tool-chip {
    padding: 10px 6px;
    font-size: 11px;
    min-height: 44px;
  }
  
  .dept-block {
    margin-bottom: 24px;
    padding: 16px;
  }
  
  .dept-header { 
    gap: 12px; 
    flex-direction: column;
    align-items: flex-start;
  }
  .dept-icon { 
    font-size: 28px; 
    min-width: auto;
  }
  .dept-title { 
    font-size: 16px; 
    margin-bottom: 4px; 
  }
  .dept-desc { 
    font-size: 12px; 
    line-height: 1.5;
  }
}
